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
// This file is part of the Luau programming language and is licensed under MIT License; see LICENSE.txt for details #pragma once #include "lua.h" #include <string> // Note: These are internal functions which are being exposed in a header // so they can be included by unit tests. int replMain(int argc, char** argv); void setupState(lua_State* L); std::string runCode(lua_State* L, const std::string& source);
44.67
9
(translation_unit) "// This file is part of the Luau programming language and is licensed under MIT License; see LICENSE.txt for details\n#pragma once\n\n#include "lua.h"\n\n#include <string>\n\n// Note: These are internal functions which are being exposed in a header\n// so they can be included by unit tests.\nint replMain(int argc, char** argv);\nvoid setupState(lua_State* L);\nstd::string runCode(lua_State* L, const std::string& source);\n" (comment) "// This file is part of the Luau programming language and is licensed under MIT License; see LICENSE.txt for details" (preproc_call) "#pragma once\n" (preproc_directive) "#pragma" (preproc_arg) "once" (preproc_include) "#include "lua.h"\n" (#include) "#include" (string_literal) ""lua.h"" (") """ (string_content) "lua.h" (") """ (preproc_include) "#include <string>\n" (#include) "#include" (system_lib_string) "<string>" (comment) "// Note: These are internal functions which are being exposed in a header" (comment) "// so they can be included by unit tests." (declaration) "int replMain(int argc, char** argv);" (primitive_type) "int" (function_declarator) "replMain(int argc, char** argv)" (identifier) "replMain" (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" ()) ")" (;) ";" (declaration) "void setupState(lua_State* L);" (primitive_type) "void" (function_declarator) "setupState(lua_State* L)" (identifier) "setupState" (parameter_list) "(lua_State* L)" (() "(" (parameter_declaration) "lua_State* L" (type_identifier) "lua_State" (pointer_declarator) "* L" (*) "*" (identifier) "L" ()) ")" (;) ";" (labeled_statement) "std::string runCode(lua_State* L, const std::string& source);" (statement_identifier) "std" (ERROR) "::string runCode(lua_State* L, const std:" (:) ":" (:) ":" (type_identifier) "string" (identifier) "runCode" (() "(" (parameter_declaration) "lua_State* L" (type_identifier) "lua_State" (pointer_declarator) "* L" (*) "*" (identifier) "L" (,) "," (parameter_declaration) "const std" (type_qualifier) "const" (const) "const" (type_identifier) "std" (:) ":" (:) ":" (expression_statement) "string& source);" (binary_expression) "string& source" (identifier) "string" (&) "&" (identifier) "source" (ERROR) ")" ()) ")" (;) ";"
76
2
{"language": "c", "success": true, "metadata": {"lines": 9, "avg_line_length": 44.67, "nodes": 49, "errors": 0, "source_hash": "4e8789cb14df6d18b2aaafab6b77392e4e235381b001dd6ebe049f2d4f81d488", "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": 1, "column": 0}, "end_point": {"row": 2, "column": 0}}, {"id": 1, "type": "preproc_directive", "text": "#pragma", "parent": 0, "children": [], "start_point": {"row": 1, "column": 0}, "end_point": {"row": 1, "column": 7}}, {"id": 2, "type": "preproc_arg", "text": "once", "parent": 0, "children": [], "start_point": {"row": 1, "column": 8}, "end_point": {"row": 1, "column": 12}}, {"id": 3, "type": "preproc_include", "text": "#include \"lua.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": "string_literal", "text": "\"lua.h\"", "parent": 3, "children": [], "start_point": {"row": 3, "column": 9}, "end_point": {"row": 3, "column": 16}}, {"id": 6, "type": "preproc_include", "text": "#include <string>\n", "parent": null, "children": [7, 8], "start_point": {"row": 5, "column": 0}, "end_point": {"row": 6, "column": 0}}, {"id": 7, "type": "#include", "text": "#include", "parent": 6, "children": [], "start_point": {"row": 5, "column": 0}, "end_point": {"row": 5, "column": 8}}, {"id": 8, "type": "system_lib_string", "text": "<string>", "parent": 6, "children": [], "start_point": {"row": 5, "column": 9}, "end_point": {"row": 5, "column": 17}}, {"id": 9, "type": "declaration", "text": "int replMain(int argc, char** argv);", "parent": null, "children": [10, 11], "start_point": {"row": 9, "column": 0}, "end_point": {"row": 9, "column": 36}}, {"id": 10, "type": "primitive_type", "text": "int", "parent": 9, "children": [], "start_point": {"row": 9, "column": 0}, "end_point": {"row": 9, "column": 3}}, {"id": 11, "type": "function_declarator", "text": "replMain(int argc, char** argv)", "parent": 9, "children": [12, 13], "start_point": {"row": 9, "column": 4}, "end_point": {"row": 9, "column": 35}}, {"id": 12, "type": "identifier", "text": "replMain", "parent": 11, "children": [], "start_point": {"row": 9, "column": 4}, "end_point": {"row": 9, "column": 12}}, {"id": 13, "type": "parameter_list", "text": "(int argc, char** argv)", "parent": 11, "children": [14, 17], "start_point": {"row": 9, "column": 12}, "end_point": {"row": 9, "column": 35}}, {"id": 14, "type": "parameter_declaration", "text": "int argc", "parent": 13, "children": [15, 16], "start_point": {"row": 9, "column": 13}, "end_point": {"row": 9, "column": 21}}, {"id": 15, "type": "primitive_type", "text": "int", "parent": 14, "children": [], "start_point": {"row": 9, "column": 13}, "end_point": {"row": 9, "column": 16}}, {"id": 16, "type": "identifier", "text": "argc", "parent": 14, "children": [], "start_point": {"row": 9, "column": 17}, "end_point": {"row": 9, "column": 21}}, {"id": 17, "type": "parameter_declaration", "text": "char** argv", "parent": 13, "children": [18, 19], "start_point": {"row": 9, "column": 23}, "end_point": {"row": 9, "column": 34}}, {"id": 18, "type": "primitive_type", "text": "char", "parent": 17, "children": [], "start_point": {"row": 9, "column": 23}, "end_point": {"row": 9, "column": 27}}, {"id": 19, "type": "pointer_declarator", "text": "** argv", "parent": 17, "children": [20, 21], "start_point": {"row": 9, "column": 27}, "end_point": {"row": 9, "column": 34}}, {"id": 20, "type": "*", "text": "*", "parent": 19, "children": [], "start_point": {"row": 9, "column": 27}, "end_point": {"row": 9, "column": 28}}, {"id": 21, "type": "pointer_declarator", "text": "* argv", "parent": 19, "children": [22, 23], "start_point": {"row": 9, "column": 28}, "end_point": {"row": 9, "column": 34}}, {"id": 22, "type": "*", "text": "*", "parent": 21, "children": [], "start_point": {"row": 9, "column": 28}, "end_point": {"row": 9, "column": 29}}, {"id": 23, "type": "identifier", "text": "argv", "parent": 21, "children": [], "start_point": {"row": 9, "column": 30}, "end_point": {"row": 9, "column": 34}}, {"id": 24, "type": "declaration", "text": "void setupState(lua_State* L);", "parent": null, "children": [25, 26], "start_point": {"row": 10, "column": 0}, "end_point": {"row": 10, "column": 30}}, {"id": 25, "type": "primitive_type", "text": "void", "parent": 24, "children": [], "start_point": {"row": 10, "column": 0}, "end_point": {"row": 10, "column": 4}}, {"id": 26, "type": "function_declarator", "text": "setupState(lua_State* L)", "parent": 24, "children": [27, 28], "start_point": {"row": 10, "column": 5}, "end_point": {"row": 10, "column": 29}}, {"id": 27, "type": "identifier", "text": "setupState", "parent": 26, "children": [], "start_point": {"row": 10, "column": 5}, "end_point": {"row": 10, "column": 15}}, {"id": 28, "type": "parameter_list", "text": "(lua_State* L)", "parent": 26, "children": [29], "start_point": {"row": 10, "column": 15}, "end_point": {"row": 10, "column": 29}}, {"id": 29, "type": "parameter_declaration", "text": "lua_State* L", "parent": 28, "children": [30, 31], "start_point": {"row": 10, "column": 16}, "end_point": {"row": 10, "column": 28}}, {"id": 30, "type": "type_identifier", "text": "lua_State", "parent": 29, "children": [], "start_point": {"row": 10, "column": 16}, "end_point": {"row": 10, "column": 25}}, {"id": 31, "type": "pointer_declarator", "text": "* L", "parent": 29, "children": [32, 33], "start_point": {"row": 10, "column": 25}, "end_point": {"row": 10, "column": 28}}, {"id": 32, "type": "*", "text": "*", "parent": 31, "children": [], "start_point": {"row": 10, "column": 25}, "end_point": {"row": 10, "column": 26}}, {"id": 33, "type": "identifier", "text": "L", "parent": 31, "children": [], "start_point": {"row": 10, "column": 27}, "end_point": {"row": 10, "column": 28}}, {"id": 34, "type": "labeled_statement", "text": "std::string runCode(lua_State* L, const std::string& source);", "parent": null, "children": [35, 36], "start_point": {"row": 11, "column": 0}, "end_point": {"row": 11, "column": 61}}, {"id": 35, "type": "statement_identifier", "text": "std", "parent": 34, "children": [], "start_point": {"row": 11, "column": 0}, "end_point": {"row": 11, "column": 3}}, {"id": 36, "type": "ERROR", "text": "::string runCode(lua_State* L, const std:", "parent": 34, "children": [37, 38, 39, 44], "start_point": {"row": 11, "column": 3}, "end_point": {"row": 11, "column": 44}}, {"id": 37, "type": "type_identifier", "text": "string", "parent": 36, "children": [], "start_point": {"row": 11, "column": 5}, "end_point": {"row": 11, "column": 11}}, {"id": 38, "type": "identifier", "text": "runCode", "parent": 36, "children": [], "start_point": {"row": 11, "column": 12}, "end_point": {"row": 11, "column": 19}}, {"id": 39, "type": "parameter_declaration", "text": "lua_State* L", "parent": 36, "children": [40, 41], "start_point": {"row": 11, "column": 20}, "end_point": {"row": 11, "column": 32}}, {"id": 40, "type": "type_identifier", "text": "lua_State", "parent": 39, "children": [], "start_point": {"row": 11, "column": 20}, "end_point": {"row": 11, "column": 29}}, {"id": 41, "type": "pointer_declarator", "text": "* L", "parent": 39, "children": [42, 43], "start_point": {"row": 11, "column": 29}, "end_point": {"row": 11, "column": 32}}, {"id": 42, "type": "*", "text": "*", "parent": 41, "children": [], "start_point": {"row": 11, "column": 29}, "end_point": {"row": 11, "column": 30}}, {"id": 43, "type": "identifier", "text": "L", "parent": 41, "children": [], "start_point": {"row": 11, "column": 31}, "end_point": {"row": 11, "column": 32}}, {"id": 44, "type": "parameter_declaration", "text": "const std", "parent": 36, "children": [45], "start_point": {"row": 11, "column": 34}, "end_point": {"row": 11, "column": 43}}, {"id": 45, "type": "type_identifier", "text": "std", "parent": 44, "children": [], "start_point": {"row": 11, "column": 40}, "end_point": {"row": 11, "column": 43}}, {"id": 46, "type": "binary_expression", "text": "string& source", "parent": 34, "children": [47, 48], "start_point": {"row": 11, "column": 45}, "end_point": {"row": 11, "column": 59}}, {"id": 47, "type": "identifier", "text": "string", "parent": 46, "children": [], "start_point": {"row": 11, "column": 45}, "end_point": {"row": 11, "column": 51}}, {"id": 48, "type": "identifier", "text": "source", "parent": 46, "children": [], "start_point": {"row": 11, "column": 53}, "end_point": {"row": 11, "column": 59}}]}, "node_categories": {"declarations": {"functions": [11, 26], "variables": [9, 14, 17, 24, 29, 39, 44], "classes": [], "imports": [3, 4, 6, 7], "modules": [], "enums": []}, "statements": {"expressions": [46], "assignments": [], "loops": [], "conditionals": [12, 16, 23, 27, 30, 33, 35, 37, 38, 40, 43, 45, 47, 48], "returns": [], "exceptions": []}, "expressions": {"calls": [0], "literals": [5, 8], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [{"node_id": 11, "universal_type": "function", "name": "unknown", "text_snippet": "replMain(int argc, char** argv)"}, {"node_id": 26, "universal_type": "function", "name": "unknown", "text_snippet": "setupState(lua_State* L)"}], "class_declarations": [], "import_statements": [{"node_id": 3, "text": "#include \"lua.h\"\n"}, {"node_id": 4, "text": "#include"}, {"node_id": 6, "text": "#include <string>\n"}, {"node_id": 7, "text": "#include"}]}, "original_source_code": "// This file is part of the Luau programming language and is licensed under MIT License; see LICENSE.txt for details\n#pragma once\n\n#include \"lua.h\"\n\n#include <string>\n\n// Note: These are internal functions which are being exposed in a header\n// so they can be included by unit tests.\nint replMain(int argc, char** argv);\nvoid setupState(lua_State* L);\nstd::string runCode(lua_State* L, const std::string& source);\n"}
80,000
c
// // ZHBaseAlert.h // TenantWallet // // Created by 李明伟 on 2017/4/29. // Copyright © 2017年 fintechzh. All rights reserved. // #import <UIKit/UIKit.h> /**消失回调*/ typedef void (^ZHBaseAlertDismissBlock)(void); /**警告框基础类(实现一些基础的动画与事件,用于继承)*/ @interface ZHBaseAlert : UIView /**是否允许点击旁白消失(默认YES)*/ @property (nonatomic , assign) BOOL shouldTapToDissmiss; /**浮板视图*/ @property (nonatomic , strong) UIView *panel; /**显示方法*/ - (void)showWithPanelView:(UIView *)panel; /**消失方法*/ - (void)dismiss; - (void)dismissWithBlock:(ZHBaseAlertDismissBlock)block; @end
24.14
22
(translation_unit) "//\n// ZHBaseAlert.h\n// TenantWallet\n//\n// Created by 李明伟 on 2017/4/29.\n// Copyright © 2017年 fintechzh. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n\n/**消失回调*/\ntypedef void (^ZHBaseAlertDismissBlock)(void);\n\n/**警告框基础类(实现一些基础的动画与事件,用于继承)*/\n@interface ZHBaseAlert : UIView\n\n/**是否允许点击旁白消失(默认YES)*/\n@property (nonatomic , assign) BOOL shouldTapToDissmiss;\n/**浮板视图*/\n@property (nonatomic , strong) UIView *panel;\n\n/**显示方法*/\n- (void)showWithPanelView:(UIView *)panel;\n\n/**消失方法*/\n- (void)dismiss;\n- (void)dismissWithBlock:(ZHBaseAlertDismissBlock)block;\n\n@end\n" (comment) "//" (comment) "// ZHBaseAlert.h" (comment) "// TenantWallet" (comment) "//" (comment) "// Created by 李明伟 on 2017/4/29.\n// C" (comment) "pyright © 2017年 fintechzh. All rights reserved.\n//\n\n#imp" (comment) "rt" (preproc_call) "UIKit/UIKit.h>\n\n/**消失回调*" (preproc_directive) "UIKit/U" (preproc_arg) "Kit.h>\n\n/**消失回调" (comment) "\ntypedef void (^Z" (type_definition) "BaseAlertDismissBlock)(void);\n\n/**警告框基础类(实现一些基" (typedef) "BaseAle" (primitive_type) "tDis" (function_declarator) "issBlock)(void);\n\n/**警告框基础类(实现一些" (parenthesized_declarator) "issBlock)(void);\n\n/**警告框基础" (() "i" (ERROR) "s" (^) "s" (type_identifier) "sBlock)(void);\n\n/**警告框基" ()) "础" (parameter_list) "类(实现一些" (() "类" (parameter_declaration) "(实现一" (primitive_type) "(实现一" ()) "些" (;) "基" (comment) "动画与事件,用于继承)*/\n@interface ZHBaseAlert : UIView\n\n/**是否允许点击旁白消失(默认YES)*/\n@property " (ERROR) "nonatomic , assign) BOOL shouldTapToDissmiss;\n/**浮板视图*/\n@property (nonatomic , strong) UIView *panel;\n\n/**显示方法*/\n- (void)showWithPanelView:(UIView *)panel;\n\n/**消失方法*/\n- (void)dismiss;\n- (void)dismissWithB" (ERROR) "n" (type_identifier) "onatomic " (ERROR) " assign) BOOL shouldTapToDissmiss;\n/**浮板视图*/\n@property (nonatomic , strong" (identifier) " assign) BO" (:) "L" (identifier) "should" (comment) "pToDissmiss;\n/**浮板视图*/\n@property (nonatomic , stro" (ERROR) "g" (function_declarator) ") UIView *panel;\n\n/**显示方法*/\n-" (identifier) ") UIView" (parameter_list) "*panel;\n\n/**显示方法*/\n-" (() "*" (identifier) "panel;\n\n/" (,) "*" (identifier) "示方法*/\n" ()) "-" (declaration) "(void)showWithPanelView:(" (type_identifier) "(voi" (identifier) ")showWithPanelView:" (;) "(" (comment) "IView *)panel;\n\n/" (ERROR) "*" (ERROR) "*" (declaration) "消失方法*/\n- (void)dismiss;\n- (void)dismissWithB" (macro_type_specifier) "消失方法*/\n- (void)dismiss;\n- (vo" (identifier) "消失方法*/\n-" (() "(" (type_descriptor) "void)dism" (type_identifier) "void)dism" (ERROR) "ss;\n- (v" (,) "s" (identifier) ";\n- (v" ()) "o" (ERROR) "d)dism" (identifier) "d)dism" (pointer_declarator) "ssWith" (*) "s" (identifier) "sWith" (;) "B" (comment) "ck:(ZHBaseAlertDi" (expression_statement) "missBlock)block;\n\n@end\n" (update_expression) "missBlock)block;\n\n@end\n" (binary_expression) "missBlock)block;\n\n@end\n" (unary_expression) "missBlock)block;\n\n@end\n" (-) "m" (cast_expression) "ssBlock)block;\n\n@end\n" (() "s" (type_descriptor) "sBlo" (primitive_type) "sBlo" ()) "c" (identifier) "k)block;\n\n@end\n" (ERROR) "" (:) "" (() "" (identifier) "" (*) "" (ERROR) "" ()) "" (identifier) "" (--) "" (;) "" (comment) "" (expression_statement) "" (unary_expression) "" (-) "" (cast_expression) "" (() "" (type_descriptor) "" (primitive_type) "" ()) "" (identifier) "" (;) "" (expression_statement) "" (unary_expression) "" (-) "" (cast_expression) "" (() "" (type_descriptor) "" (primitive_type) "" ()) "" (identifier) "" (ERROR) "" (:) "" (() "" (identifier) "" ()) "" (identifier) "" (;) "" (ERROR) "" (ERROR) "" (expression_statement) "" (identifier) "" (;) ""
123
14
{"language": "c", "success": true, "metadata": {"lines": 22, "avg_line_length": 24.14, "nodes": 75, "errors": 0, "source_hash": "9159360056de412a76ed2973f721e3caa4b78a0a7c4a8fa0dcd5bd7565d03c44", "categorized_nodes": 38}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "UIKit/UIKit.h>\n\n/**\u6d88\u5931\u56de\u8c03*", "parent": null, "children": [1, 2], "start_point": {"row": 8, "column": 0}, "end_point": {"row": 9, "column": 0}}, {"id": 1, "type": "preproc_directive", "text": "UIKit/U", "parent": 0, "children": [], "start_point": {"row": 8, "column": 0}, "end_point": {"row": 8, "column": 7}}, {"id": 2, "type": "preproc_arg", "text": "Kit.h>\n\n/**\u6d88\u5931\u56de\u8c03", "parent": 0, "children": [], "start_point": {"row": 8, "column": 8}, "end_point": {"row": 8, "column": 23}}, {"id": 3, "type": "type_definition", "text": "BaseAlertDismissBlock)(void);\n\n/**\u8b66\u544a\u6846\u57fa\u7840\u7c7b\uff08\u5b9e\u73b0\u4e00\u4e9b\u57fa", "parent": null, "children": [4, 5, 6], "start_point": {"row": 11, "column": 0}, "end_point": {"row": 11, "column": 46}}, {"id": 4, "type": "typedef", "text": "BaseAle", "parent": 3, "children": [], "start_point": {"row": 11, "column": 0}, "end_point": {"row": 11, "column": 7}}, {"id": 5, "type": "primitive_type", "text": "tDis", "parent": 3, "children": [], "start_point": {"row": 11, "column": 8}, "end_point": {"row": 11, "column": 12}}, {"id": 6, "type": "function_declarator", "text": "issBlock)(void);\n\n/**\u8b66\u544a\u6846\u57fa\u7840\u7c7b\uff08\u5b9e\u73b0\u4e00\u4e9b", "parent": 3, "children": [7, 11], "start_point": {"row": 11, "column": 13}, "end_point": {"row": 11, "column": 45}}, {"id": 7, "type": "parenthesized_declarator", "text": "issBlock)(void);\n\n/**\u8b66\u544a\u6846\u57fa\u7840", "parent": 6, "children": [8, 10], "start_point": {"row": 11, "column": 13}, "end_point": {"row": 11, "column": 39}}, {"id": 8, "type": "ERROR", "text": "s", "parent": 7, "children": [9], "start_point": {"row": 11, "column": 14}, "end_point": {"row": 11, "column": 15}}, {"id": 9, "type": "^", "text": "s", "parent": 8, "children": [], "start_point": {"row": 11, "column": 14}, "end_point": {"row": 11, "column": 15}}, {"id": 10, "type": "type_identifier", "text": "sBlock)(void);\n\n/**\u8b66\u544a\u6846\u57fa", "parent": 7, "children": [], "start_point": {"row": 11, "column": 15}, "end_point": {"row": 11, "column": 38}}, {"id": 11, "type": "parameter_list", "text": "\u7c7b\uff08\u5b9e\u73b0\u4e00\u4e9b", "parent": 6, "children": [12], "start_point": {"row": 11, "column": 39}, "end_point": {"row": 11, "column": 45}}, {"id": 12, "type": "parameter_declaration", "text": "\uff08\u5b9e\u73b0\u4e00", "parent": 11, "children": [13], "start_point": {"row": 11, "column": 40}, "end_point": {"row": 11, "column": 44}}, {"id": 13, "type": "primitive_type", "text": "\uff08\u5b9e\u73b0\u4e00", "parent": 12, "children": [], "start_point": {"row": 11, "column": 40}, "end_point": {"row": 11, "column": 44}}, {"id": 14, "type": "ERROR", "text": "nonatomic , assign) BOOL shouldTapToDissmiss;\n/**\u6d6e\u677f\u89c6\u56fe*/\n@property (nonatomic , strong) UIView *panel;\n\n/**\u663e\u793a\u65b9\u6cd5*/\n- (void)showWithPanelView:(UIView *)panel;\n\n/**\u6d88\u5931\u65b9\u6cd5*/\n- (void)dismiss;\n- (void)dismissWithB", "parent": null, "children": [15, 16, 17, 21, 26, 29, 31], "start_point": {"row": 14, "column": 0}, "end_point": {"row": 19, "column": 45}}, {"id": 15, "type": "ERROR", "text": "n", "parent": 14, "children": [], "start_point": {"row": 14, "column": 0}, "end_point": {"row": 14, "column": 1}}, {"id": 16, "type": "type_identifier", "text": "onatomic ", "parent": 14, "children": [], "start_point": {"row": 14, "column": 1}, "end_point": {"row": 14, "column": 10}}, {"id": 17, "type": "ERROR", "text": " assign) BOOL shouldTapToDissmiss;\n/**\u6d6e\u677f\u89c6\u56fe*/\n@property (nonatomic , strong", "parent": 14, "children": [18, 19, 20], "start_point": {"row": 14, "column": 11}, "end_point": {"row": 17, "column": 1}}, {"id": 18, "type": "identifier", "text": " assign) BO", "parent": 17, "children": [], "start_point": {"row": 14, "column": 11}, "end_point": {"row": 14, "column": 22}}, {"id": 19, "type": "identifier", "text": "should", "parent": 17, "children": [], "start_point": {"row": 14, "column": 25}, "end_point": {"row": 14, "column": 31}}, {"id": 20, "type": "ERROR", "text": "g", "parent": 17, "children": [], "start_point": {"row": 17, "column": 0}, "end_point": {"row": 17, "column": 1}}, {"id": 21, "type": "function_declarator", "text": ") UIView *panel;\n\n/**\u663e\u793a\u65b9\u6cd5*/\n-", "parent": 14, "children": [22, 23], "start_point": {"row": 17, "column": 1}, "end_point": {"row": 17, "column": 30}}, {"id": 22, "type": "identifier", "text": ") UIView", "parent": 21, "children": [], "start_point": {"row": 17, "column": 1}, "end_point": {"row": 17, "column": 9}}, {"id": 23, "type": "parameter_list", "text": "*panel;\n\n/**\u663e\u793a\u65b9\u6cd5*/\n-", "parent": 21, "children": [24, 25], "start_point": {"row": 17, "column": 10}, "end_point": {"row": 17, "column": 30}}, {"id": 24, "type": "identifier", "text": "panel;\n\n/", "parent": 23, "children": [], "start_point": {"row": 17, "column": 11}, "end_point": {"row": 17, "column": 20}}, {"id": 25, "type": "identifier", "text": "\u793a\u65b9\u6cd5*/\n", "parent": 23, "children": [], "start_point": {"row": 17, "column": 23}, "end_point": {"row": 17, "column": 29}}, {"id": 26, "type": "declaration", "text": "(void)showWithPanelView:(", "parent": 14, "children": [27, 28], "start_point": {"row": 17, "column": 31}, "end_point": {"row": 17, "column": 56}}, {"id": 27, "type": "type_identifier", "text": "(voi", "parent": 26, "children": [], "start_point": {"row": 17, "column": 31}, "end_point": {"row": 17, "column": 35}}, {"id": 28, "type": "identifier", "text": ")showWithPanelView:", "parent": 26, "children": [], "start_point": {"row": 17, "column": 36}, "end_point": {"row": 17, "column": 55}}, {"id": 29, "type": "ERROR", "text": "*", "parent": 14, "children": [30], "start_point": {"row": 19, "column": 0}, "end_point": {"row": 19, "column": 1}}, {"id": 30, "type": "ERROR", "text": "*", "parent": 29, "children": [], "start_point": {"row": 19, "column": 0}, "end_point": {"row": 19, "column": 1}}, {"id": 31, "type": "declaration", "text": "\u6d88\u5931\u65b9\u6cd5*/\n- (void)dismiss;\n- (void)dismissWithB", "parent": 14, "children": [32, 38, 40], "start_point": {"row": 19, "column": 1}, "end_point": {"row": 19, "column": 45}}, {"id": 32, "type": "macro_type_specifier", "text": "\u6d88\u5931\u65b9\u6cd5*/\n- (void)dismiss;\n- (vo", "parent": 31, "children": [33, 34, 36], "start_point": {"row": 19, "column": 1}, "end_point": {"row": 19, "column": 30}}, {"id": 33, "type": "identifier", "text": "\u6d88\u5931\u65b9\u6cd5*/\n-", "parent": 32, "children": [], "start_point": {"row": 19, "column": 1}, "end_point": {"row": 19, "column": 9}}, {"id": 34, "type": "type_descriptor", "text": "void)dism", "parent": 32, "children": [35], "start_point": {"row": 19, "column": 11}, "end_point": {"row": 19, "column": 20}}, {"id": 35, "type": "type_identifier", "text": "void)dism", "parent": 34, "children": [], "start_point": {"row": 19, "column": 11}, "end_point": {"row": 19, "column": 20}}, {"id": 36, "type": "ERROR", "text": "ss;\n- (v", "parent": 32, "children": [37], "start_point": {"row": 19, "column": 21}, "end_point": {"row": 19, "column": 29}}, {"id": 37, "type": "identifier", "text": ";\n- (v", "parent": 36, "children": [], "start_point": {"row": 19, "column": 23}, "end_point": {"row": 19, "column": 29}}, {"id": 38, "type": "ERROR", "text": "d)dism", "parent": 31, "children": [39], "start_point": {"row": 19, "column": 31}, "end_point": {"row": 19, "column": 37}}, {"id": 39, "type": "identifier", "text": "d)dism", "parent": 38, "children": [], "start_point": {"row": 19, "column": 31}, "end_point": {"row": 19, "column": 37}}, {"id": 40, "type": "pointer_declarator", "text": "ssWith", "parent": 31, "children": [41, 42], "start_point": {"row": 19, "column": 38}, "end_point": {"row": 19, "column": 44}}, {"id": 41, "type": "*", "text": "s", "parent": 40, "children": [], "start_point": {"row": 19, "column": 38}, "end_point": {"row": 19, "column": 39}}, {"id": 42, "type": "identifier", "text": "sWith", "parent": 40, "children": [], "start_point": {"row": 19, "column": 39}, "end_point": {"row": 19, "column": 44}}, {"id": 43, "type": "update_expression", "text": "missBlock)block;\n\n@end\n", "parent": null, "children": [44, 56], "start_point": {"row": 22, "column": 0}, "end_point": {"row": 22, "column": 41}}, {"id": 44, "type": "binary_expression", "text": "missBlock)block;\n\n@end\n", "parent": 43, "children": [45, 51, 53, 54, 55], "start_point": {"row": 22, "column": 0}, "end_point": {"row": 22, "column": 41}}, {"id": 45, "type": "unary_expression", "text": "missBlock)block;\n\n@end\n", "parent": 44, "children": [46, 47], "start_point": {"row": 22, "column": 0}, "end_point": {"row": 22, "column": 25}}, {"id": 46, "type": "-", "text": "m", "parent": 45, "children": [], "start_point": {"row": 22, "column": 0}, "end_point": {"row": 22, "column": 1}}, {"id": 47, "type": "cast_expression", "text": "ssBlock)block;\n\n@end\n", "parent": 45, "children": [48, 50], "start_point": {"row": 22, "column": 2}, "end_point": {"row": 22, "column": 25}}, {"id": 48, "type": "type_descriptor", "text": "sBlo", "parent": 47, "children": [49], "start_point": {"row": 22, "column": 3}, "end_point": {"row": 22, "column": 7}}, {"id": 49, "type": "primitive_type", "text": "sBlo", "parent": 48, "children": [], "start_point": {"row": 22, "column": 3}, "end_point": {"row": 22, "column": 7}}, {"id": 50, "type": "identifier", "text": "k)block;\n\n@end\n", "parent": 47, "children": [], "start_point": {"row": 22, "column": 8}, "end_point": {"row": 22, "column": 25}}, {"id": 51, "type": "ERROR", "text": "", "parent": 44, "children": [52], "start_point": {"row": 22, "column": 25}, "end_point": {"row": 22, "column": 33}}, {"id": 52, "type": "identifier", "text": "", "parent": 51, "children": [], "start_point": {"row": 22, "column": 27}, "end_point": {"row": 22, "column": 33}}, {"id": 53, "type": "*", "text": "", "parent": 44, "children": [], "start_point": {"row": 22, "column": 34}, "end_point": {"row": 22, "column": 35}}, {"id": 54, "type": "ERROR", "text": "", "parent": 44, "children": [], "start_point": {"row": 22, "column": 35}, "end_point": {"row": 22, "column": 36}}, {"id": 55, "type": "identifier", "text": "", "parent": 44, "children": [], "start_point": {"row": 22, "column": 36}, "end_point": {"row": 22, "column": 41}}, {"id": 56, "type": "--", "text": "", "parent": 43, "children": [], "start_point": {"row": 22, "column": 41}, "end_point": {"row": 22, "column": 41}}, {"id": 57, "type": "unary_expression", "text": "", "parent": null, "children": [58, 59], "start_point": {"row": 25, "column": 0}, "end_point": {"row": 25, "column": 15}}, {"id": 58, "type": "-", "text": "", "parent": 57, "children": [], "start_point": {"row": 25, "column": 0}, "end_point": {"row": 25, "column": 1}}, {"id": 59, "type": "cast_expression", "text": "", "parent": 57, "children": [60, 62], "start_point": {"row": 25, "column": 2}, "end_point": {"row": 25, "column": 15}}, {"id": 60, "type": "type_descriptor", "text": "", "parent": 59, "children": [61], "start_point": {"row": 25, "column": 3}, "end_point": {"row": 25, "column": 7}}, {"id": 61, "type": "primitive_type", "text": "", "parent": 60, "children": [], "start_point": {"row": 25, "column": 3}, "end_point": {"row": 25, "column": 7}}, {"id": 62, "type": "identifier", "text": "", "parent": 59, "children": [], "start_point": {"row": 25, "column": 8}, "end_point": {"row": 25, "column": 15}}, {"id": 63, "type": "unary_expression", "text": "", "parent": null, "children": [64, 65], "start_point": {"row": 26, "column": 0}, "end_point": {"row": 26, "column": 24}}, {"id": 64, "type": "-", "text": "", "parent": 63, "children": [], "start_point": {"row": 26, "column": 0}, "end_point": {"row": 26, "column": 1}}, {"id": 65, "type": "cast_expression", "text": "", "parent": 63, "children": [66, 68], "start_point": {"row": 26, "column": 2}, "end_point": {"row": 26, "column": 24}}, {"id": 66, "type": "type_descriptor", "text": "", "parent": 65, "children": [67], "start_point": {"row": 26, "column": 3}, "end_point": {"row": 26, "column": 7}}, {"id": 67, "type": "primitive_type", "text": "", "parent": 66, "children": [], "start_point": {"row": 26, "column": 3}, "end_point": {"row": 26, "column": 7}}, {"id": 68, "type": "identifier", "text": "", "parent": 65, "children": [], "start_point": {"row": 26, "column": 8}, "end_point": {"row": 26, "column": 24}}, {"id": 69, "type": "ERROR", "text": "", "parent": null, "children": [70, 71], "start_point": {"row": 26, "column": 24}, "end_point": {"row": 26, "column": 55}}, {"id": 70, "type": "identifier", "text": "", "parent": 69, "children": [], "start_point": {"row": 26, "column": 26}, "end_point": {"row": 26, "column": 49}}, {"id": 71, "type": "identifier", "text": "", "parent": 69, "children": [], "start_point": {"row": 26, "column": 50}, "end_point": {"row": 26, "column": 55}}, {"id": 72, "type": "ERROR", "text": "", "parent": null, "children": [73], "start_point": {"row": 28, "column": 0}, "end_point": {"row": 28, "column": 1}}, {"id": 73, "type": "ERROR", "text": "", "parent": 72, "children": [], "start_point": {"row": 28, "column": 0}, "end_point": {"row": 28, "column": 1}}, {"id": 74, "type": "identifier", "text": "", "parent": null, "children": [], "start_point": {"row": 28, "column": 1}, "end_point": {"row": 28, "column": 4}}]}, "node_categories": {"declarations": {"functions": [6, 21], "variables": [3, 12, 26, 31], "classes": [], "imports": [], "modules": [], "enums": []}, "statements": {"expressions": [43, 44, 45, 47, 57, 59, 63, 65], "assignments": [], "loops": [], "conditionals": [10, 16, 18, 19, 22, 24, 25, 27, 28, 32, 33, 35, 37, 39, 42, 50, 52, 55, 62, 68, 70, 71, 74], "returns": [], "exceptions": []}, "expressions": {"calls": [0], "literals": [], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [{"node_id": 6, "universal_type": "function", "name": "unknown", "text_snippet": "issBlock)(void);\n\n/**\u8b66\u544a\u6846\u57fa\u7840\u7c7b\uff08\u5b9e\u73b0\u4e00\u4e9b"}, {"node_id": 21, "universal_type": "function", "name": "unknown", "text_snippet": ") UIView *panel;\n\n/**\u663e\u793a\u65b9\u6cd5*/\n-"}], "class_declarations": [], "import_statements": []}, "original_source_code": "//\n// ZHBaseAlert.h\n// TenantWallet\n//\n// Created by \u674e\u660e\u4f1f on 2017/4/29.\n// Copyright \u00a9 2017\u5e74 fintechzh. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n\n/**\u6d88\u5931\u56de\u8c03*/\ntypedef void (^ZHBaseAlertDismissBlock)(void);\n\n/**\u8b66\u544a\u6846\u57fa\u7840\u7c7b\uff08\u5b9e\u73b0\u4e00\u4e9b\u57fa\u7840\u7684\u52a8\u753b\u4e0e\u4e8b\u4ef6\uff0c\u7528\u4e8e\u7ee7\u627f\uff09*/\n@interface ZHBaseAlert : UIView\n\n/**\u662f\u5426\u5141\u8bb8\u70b9\u51fb\u65c1\u767d\u6d88\u5931\uff08\u9ed8\u8ba4YES\uff09*/\n@property (nonatomic , assign) BOOL shouldTapToDissmiss;\n/**\u6d6e\u677f\u89c6\u56fe*/\n@property (nonatomic , strong) UIView *panel;\n\n/**\u663e\u793a\u65b9\u6cd5*/\n- (void)showWithPanelView:(UIView *)panel;\n\n/**\u6d88\u5931\u65b9\u6cd5*/\n- (void)dismiss;\n- (void)dismissWithBlock:(ZHBaseAlertDismissBlock)block;\n\n@end\n"}
80,001
c
// // JMPhotoBrowser.h // ControlTest // // Created by print on 2018/10/18. // Copyright © 2018年 liuxuanbo. All rights reserved. // #import <Foundation/Foundation.h> #import <UIKit/UIKit.h> NS_ASSUME_NONNULL_BEGIN #define SelectNotificationName @"DidSelectedImagesNotificationName" #define CancelNotificationName @"CancelSelectedImagesNotificationName" @class PHAsset, JMPhotoBrowser; @protocol JMPhotoBrowserDelegate <NSObject> @optional - (void)photoBrowser:(JMPhotoBrowser *)photoBrowser didFinishPickingMediaWithInfo:(NSDictionary<UIImagePickerControllerInfoKey,id> *)info; - (void)photoBrowser:(JMPhotoBrowser *)photoBrowser didSelectedImages:(NSArray *)selectedImages; - (void)photoBrowserDidDismissed; @end @interface JMPhotoBrowser : NSObject /// 照片是否是单选, 默认为YES @property (nonatomic, assign) BOOL singleSelect; /// 多选最大限制, 默认为9张 @property (nonatomic, assign) NSInteger maxSelectedCount; @property (nonatomic, strong) UIColor *footerViewBackgroundColor; @property (nonatomic, strong) UIColor *themeColor; @property (nonatomic, strong) UIColor *disableColor; @property (nonatomic, strong) UIImage *footerCheckImage; @property (nonatomic, strong) UIImage *footerNotCheckImage; @property (nonatomic, weak) id<JMPhotoBrowserDelegate> delegate; + (JMPhotoBrowser *)browserWithDelegate:(id)delegate presentController:(UIViewController *)presentController; - (void)showActionSheet; - (void)showPhotoSelectView; @end NS_ASSUME_NONNULL_END
39.11
36
(translation_unit) "//\n// JMPhotoBrowser.h\n// ControlTest\n//\n// Created by print on 2018/10/18.\n// Copyright © 2018年 liuxuanbo. All rights reserved.\n//\n\n#import <Foundation/Foundation.h>\n#import <UIKit/UIKit.h>\nNS_ASSUME_NONNULL_BEGIN\n\n#define SelectNotificationName @"DidSelectedImagesNotificationName"\n#define CancelNotificationName @"CancelSelectedImagesNotificationName"\n\n@class PHAsset, JMPhotoBrowser;\n@protocol JMPhotoBrowserDelegate <NSObject>\n\n@optional\n- (void)photoBrowser:(JMPhotoBrowser *)photoBrowser didFinishPickingMediaWithInfo:(NSDictionary<UIImagePickerControllerInfoKey,id> *)info;\n\n- (void)photoBrowser:(JMPhotoBrowser *)photoBrowser didSelectedImages:(NSArray *)selectedImages;\n\n- (void)photoBrowserDidDismissed;\n\n@end\n\n@interface JMPhotoBrowser : NSObject\n\n/// 照片是否是单选, 默认为YES\n@property (nonatomic, assign) BOOL singleSelect;\n/// 多选最大限制, 默认为9张\n@property (nonatomic, assign) NSInteger maxSelectedCount;\n\n@property (nonatomic, strong) UIColor *footerViewBackgroundColor;\n\n@property (nonatomic, strong) UIColor *themeColor;\n\n@property (nonatomic, strong) UIColor *disableColor;\n\n@property (nonatomic, strong) UIImage *footerCheckImage;\n\n@property (nonatomic, strong) UIImage *footerNotCheckImage;\n\n@property (nonatomic, weak) id<JMPhotoBrowserDelegate> delegate;\n\n\n+ (JMPhotoBrowser *)browserWithDelegate:(id)delegate presentController:(UIViewController *)presentController;\n\n- (void)showActionSheet;\n\n- (void)showPhotoSelectView;\n\n@end\n\nNS_ASSUME_NONNULL_END\n" (comment) "//" (comment) "// JMPhotoBrowser.h" (comment) "// ControlTest" (comment) "//" (comment) "// Created by print on 2018/10/18." (comment) "// Copyright © 2018年 liuxuanbo. All rights reserved.\n//" (comment) "\n#" (preproc_call) "port <Foundation/Foundation.h>\n#im" (preproc_directive) "port <F" (preproc_arg) "undation/Foundation.h>\n#i" (preproc_call) "port <UIKit/UIKit.h>\nNS_" (preproc_directive) "port <U" (preproc_arg) "Kit/UIKit.h>\nNS" (expression_statement) "ASSUME_NONNULL_BEGIN\n\n#" (identifier) "ASSUME_NONNULL_BEGIN\n\n#" (;) "" (preproc_def) "fine SelectNotificationName @"DidSelectedImagesNotificationName"\n#de" (#define) "fine Se" (identifier) "ectNotificationName @"" (preproc_arg) "idSelectedImagesNotificationName"\n#d" (preproc_def) "fine CancelNotificationName @"CancelSelectedImagesNotificationName"\n\n@c" (#define) "fine Ca" (identifier) "celNotificationName @"" (preproc_arg) "ancelSelectedImagesNotificationName"\n\n@" (ERROR) "a" (ERROR) "a" (declaration) "ss PHAsset, JMPhotoBrowser;\n@p" (type_identifier) "ss PH" (identifier) "sset, J" (,) "M" (identifier) "hotoBrowser;\n@" (;) "p" (ERROR) "otocol JMPhotoBrowserDelegate <NSObject>\n\n@optional\n- (void)photoBrowser:(JMPhotoBrowser *)photoBrowser didFinishPickingMediaWithInfo:(NSDictionary<UIImagePickerControllerInfoKey,id> *)info;\n\n" (ERROR) "o" (type_identifier) "tocol JM" (identifier) "hotoBrowserDelegate <N" (<) "O" (identifier) "bject>\n\n" (>) "@" (ERROR) "t" (identifier) "ional\n- " (unary_expression) "void)photoBrowser:(J" (-) "v" (cast_expression) "id)photoBrowser:(J" (() "i" (type_descriptor) "d)ph" (primitive_type) "d)ph" ()) "o" (identifier) "toBrowser:(J" (:) "M" (() "P" (binary_expression) "hotoBrowser *)photoBrowser didFinishPickingMediaWithInfo:(N" (identifier) "hotoBrowser *)" (*) "h" (ERROR) "otoBrowser di" ()) "o" (identifier) "toBrowser di" (identifier) "FinishPickingMediaWithInfo:(N" (:) "S" (() "D" (binary_expression) "ictionary<UIImagePickerControllerInfoKey,id" (identifier) "ictionary<UI" (<) "I" (identifier) "magePickerControllerInfoKey,id" (,) ">" (binary_expression) " *)info;\n\n" (identifier) " *" (>) ")" (pointer_expression) "nfo;\n\n" (*) "n" (ERROR) "f" ()) "f" (identifier) "o;\n\n" (expression_statement) "-" (;) "-" (expression_statement) "void)photoBrowser:(JMPhotoBrowser *)photoBrowser didSelectedImages:(NSArray *)selectedImages;\n\n-" (update_expression) "void)photoBrowser:(JMPhotoBrowser *)photoBrowser didSelectedImages:(NSArray *)selectedImages;\n\n" (binary_expression) "void)photoBrowser:(JMPhotoBrowser *)photoBrowser didSelectedImages:(NSArray *)selectedImages;\n\n" (binary_expression) "void)photoBrowser:(JMPhotoBrowser *)photoBrowser didSelectedImages:(N" (unary_expression) "void)photoBrowser:(J" (-) "v" (cast_expression) "id)photoBrowser:(J" (() "i" (type_descriptor) "d)ph" (primitive_type) "d)ph" ()) "o" (identifier) "toBrowser:(J" (ERROR) "MPhotoBrowser *)" (:) "M" (() "P" (identifier) "hotoBrowser *)" (*) "h" (ERROR) "otoBrowser di" ()) "o" (identifier) "toBrowser di" (identifier) "SelectedImages:(N" (ERROR) "SArray *)" (:) "S" (() "A" (identifier) "rray *)" (*) "e" (ERROR) "l" ()) "l" (identifier) "ectedImages;\n\n" (--) "" (;) "-" (expression_statement) "void)photoBrowserDidDismissed;\n\n@" (unary_expression) "void)photoBrowserDidDismissed;\n\n" (-) "v" (cast_expression) "id)photoBrowserDidDismissed;\n\n" (() "i" (type_descriptor) "d)ph" (primitive_type) "d)ph" ()) "o" (identifier) "toBrowserDidDismissed;\n\n" (;) "@" (ERROR) "d" (ERROR) "d" (declaration) "\n\n@interface JM" (type_identifier) "\n\n@" (ERROR) "t" (ERROR) "t" (identifier) "erface JM" (;) "" (labeled_statement) "hotoBrowser : NSObject\n\n/// 照片是否是单选, 默认为YES\n@property (nonatomic, assign) BOOL singleSelect;\n/// 多选最大限制, 默认为9张\n@property (nonatomic, assign) NSInteger maxSelectedCount;\n\n@property (nonatomic, strong) UIColor *footerViewBackgroundColor;\n\n@property (nonatomic, strong) UIColor *th" (statement_identifier) "hotoBrowser : " (:) "S" (declaration) "bject\n\n/// 照片是否是单选, 默认为YES\n@property (nonatomic, assign) BOOL singleSelect;\n/// 多选最大限制, 默认为9张\n@property (nonatomic, assign) NSInteger maxSelectedCount;\n\n@property (nonatomic, strong) UIColor *footerViewBackgroundColor;\n\n@property (nonatomic, strong) UIColor *th" (type_identifier) "bject\n\n/" (comment) " 照片是否是单选, 默认为YES\n@property (nonatomic, " (ERROR) "ssign) BOOL singleSelect;\n/// 多选最大限制, 默认为9张\n@property (nonatomic, assign) NSInteger maxSelectedCount;\n\n@property (nonatomic, strong) UIColor *footerViewBackgroundColor;\n\n@property (no" (ERROR) "s" (function_declarator) "sign) BOOL singleSelect;\n/// 多选最大限制, 默认为9张\n@pr" (identifier) "sign) BO" (parameter_list) "L singleSelect;\n///" (() "L" (parameter_declaration) " singleSe" (type_identifier) " singleSe" (,) "l" (parameter_declaration) "ct;\n//" (type_identifier) "ct;\n//" ()) "/" (identifier) "多选最大" (identifier) "制, 默认为9张\n@pr" (;) "o" (comment) "erty (nonatomic, assign) NSInteger ma" (ERROR) "S" (function_declarator) "electedCount;\n\n@property (nonatomic, strong) UIColor *f" (identifier) "electedC" (parameter_list) "unt;\n\n@property (no" (() "u" (parameter_declaration) "nt;\n\n@pro" (type_identifier) "nt;\n\n@pro" (,) "p" (parameter_declaration) "rty (n" (type_identifier) "rty (n" ()) "o" (identifier) "atomic, s" (identifier) "rong) UIColor *f" (;) "o" (ERROR) "e" (function_declarator) "rViewBackgroundColor;\n\n@property (no" (identifier) "rViewBac" (parameter_list) "groundColor;\n\n@prop" (() "g" (parameter_declaration) "roundColo" (type_identifier) "roundColo" (,) "r" (parameter_declaration) "\n\n@pro" (type_identifier) "\n\n@pro" ()) "p" (identifier) "rty (no" (pointer_declarator) "atomic, strong) UIColor *t" (*) "a" (identifier) "tomic, strong) UIColor *t" (;) "h" (ERROR) "e" (ERROR) "e" (expression_statement) "Color;\n\n@property (nonatomic" (call_expression) "Color;\n\n@property (nonatomic" (identifier) "Color;\n\n" (argument_list) "property (nonatomic" (() "p" (identifier) "roperty (" (,) "n" (identifier) "natomi" ()) "c" (;) "" (declaration) " strong) UIColor *di" (type_identifier) " strong" (pointer_declarator) " UIColor *d" (*) " " (identifier) "UIColor *d" (;) "i" (ERROR) "b" (ERROR) "b" (expression_statement) "leColor;\n\n@property (nonatom" (call_expression) "leColor;\n\n@property (nonatom" (identifier) "leColor;" (argument_list) "\n@property (nonatom" (() "\n" (identifier) "@property" (,) " " (identifier) "nonato" ()) "m" (;) "" (declaration) "c, strong) UIImage *fo" (type_identifier) "c, stro" (pointer_declarator) "g) UIImage *f" (*) "g" (identifier) ") UIImage *f" (;) "o" (ERROR) "e" (ERROR) "e" (expression_statement) "rCheckImage;\n\n@property (non" (call_expression) "rCheckImage;\n\n@property (non" (identifier) "rCheckIm" (argument_list) "ge;\n\n@property (non" (() "g" (identifier) "e;\n\n@prop" (,) "e" (identifier) "ty (no" ()) "n" (;) "" (declaration) "tomic, strong) UIImage *fo" (type_identifier) "tomic, " (pointer_declarator) "trong) UIImage *f" (*) "t" (identifier) "rong) UIImage *f" (;) "o" (ERROR) "e" (ERROR) "e" (expression_statement) "rNotCheckImage;\n\n@property (" (call_expression) "rNotCheckImage;\n\n@property (" (identifier) "rNotChec" (argument_list) "Image;\n\n@property (" (() "I" (identifier) "mage;\n\n@p" (,) "r" (identifier) "perty " ()) "(" (;) "" (declaration) "onatomic, weak) id<JMPhotoBro" (type_identifier) "onatomi" (pointer_declarator) ", weak) id<JMPhotoBr" (*) "," (identifier) " weak) id<JMPhotoBr" (;) "o" (ERROR) "erDelegate> delegate;\n\n\n+ (JMPhotoBrowser *)browserWithDelegate" (ERROR) "e" (binary_expression) "rDelegate> delegate;\n\n\n+ (JMPhotoBrowser *)browserWithDelegate" (binary_expression) "rDelegate> delegate;\n\n\n+ (JMPhotoBrowser *)browserWi" (call_expression) "rDelegate> delegate;\n\n\n+ (" (identifier) "rDelegat" (argument_list) "> delegate;\n\n\n+ (" (() ">" (identifier) " delegate" (,) ";" (identifier) "\n\n+ " ()) "(" (ERROR) "MP" (identifier) "MP" (<) "h" (identifier) "otoBrowser *)browserWi" (>) "t" (identifier) "Delegate" (expression_statement) ":" (;) ":" (ERROR) ")delegate presentController:(UIViewControlle" (unary_expression) ")delegate presentController:(UIViewCont" (+) ")" (cast_expression) "elegate presentController:(UIViewCont" (() "e" (type_descriptor) "legate presentCo" (type_identifier) "legate present" (abstract_pointer_declarator) "o" (*) "o" ()) "n" (identifier) "troller:(UIViewCont" (:) "r" (() "o" (identifier) "ll" ()) "e" (declaration) "r *)presentController;\n\n- (void)showActionSheet;\n\n- (void)showPho" (type_identifier) "r *)pres" (identifier) "ntController;\n\n- " (ERROR) "(void)showActionSheet;\n\n- (void)showPh" (:) "(" (() "v" (identifier) "oid)showActionSh" (*) "e" ()) "t" (identifier) ";\n\n- (void)showPh" (;) "o" (expression_statement) "SelectView;\n\n@end\n\nNS_AS" (unary_expression) "SelectView;\n\n@end\n\nNS_A" (-) "S" (cast_expression) "lectView;\n\n@end\n\nNS_A" (() "l" (type_descriptor) "ectV" (primitive_type) "ectV" ()) "i" (identifier) "ew;\n\n@end\n\nNS_A" (;) "S" (expression_statement) "ME_NONNULL_END\n" (unary_expression) "ME_NONNULL_END\n" (-) "M" (cast_expression) "_NONNULL_END\n" (() "_" (type_descriptor) "NONN" (primitive_type) "NONN" ()) "U" (identifier) "LL_END\n" (;) "" (ERROR) "" (ERROR) "" (declaration) "" (type_identifier) "" (identifier) "" (;) ""
321
34
{"language": "c", "success": true, "metadata": {"lines": 36, "avg_line_length": 39.11, "nodes": 218, "errors": 0, "source_hash": "53f7bb357617530783db3b9bb4d4378b48282d72340a703ae8911c8a08d5c4b5", "categorized_nodes": 127}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "port <Foundation/Foundation.h>\n#im", "parent": null, "children": [1, 2], "start_point": {"row": 8, "column": 0}, "end_point": {"row": 9, "column": 0}}, {"id": 1, "type": "preproc_directive", "text": "port <F", "parent": 0, "children": [], "start_point": {"row": 8, "column": 0}, "end_point": {"row": 8, "column": 7}}, {"id": 2, "type": "preproc_arg", "text": "undation/Foundation.h>\n#i", "parent": 0, "children": [], "start_point": {"row": 8, "column": 8}, "end_point": {"row": 8, "column": 33}}, {"id": 3, "type": "preproc_call", "text": "port <UIKit/UIKit.h>\nNS_", "parent": null, "children": [4, 5], "start_point": {"row": 9, "column": 0}, "end_point": {"row": 10, "column": 0}}, {"id": 4, "type": "preproc_directive", "text": "port <U", "parent": 3, "children": [], "start_point": {"row": 9, "column": 0}, "end_point": {"row": 9, "column": 7}}, {"id": 5, "type": "preproc_arg", "text": "Kit/UIKit.h>\nNS", "parent": 3, "children": [], "start_point": {"row": 9, "column": 8}, "end_point": {"row": 9, "column": 23}}, {"id": 6, "type": "identifier", "text": "ASSUME_NONNULL_BEGIN\n\n#", "parent": null, "children": [], "start_point": {"row": 10, "column": 0}, "end_point": {"row": 10, "column": 23}}, {"id": 7, "type": "preproc_def", "text": "fine SelectNotificationName @\"DidSelectedImagesNotificationName\"\n#de", "parent": null, "children": [8, 9, 10], "start_point": {"row": 12, "column": 0}, "end_point": {"row": 13, "column": 0}}, {"id": 8, "type": "#define", "text": "fine Se", "parent": 7, "children": [], "start_point": {"row": 12, "column": 0}, "end_point": {"row": 12, "column": 7}}, {"id": 9, "type": "identifier", "text": "ectNotificationName @\"", "parent": 7, "children": [], "start_point": {"row": 12, "column": 8}, "end_point": {"row": 12, "column": 30}}, {"id": 10, "type": "preproc_arg", "text": "idSelectedImagesNotificationName\"\n#d", "parent": 7, "children": [], "start_point": {"row": 12, "column": 31}, "end_point": {"row": 12, "column": 67}}, {"id": 11, "type": "preproc_def", "text": "fine CancelNotificationName @\"CancelSelectedImagesNotificationName\"\n\n@c", "parent": null, "children": [12, 13, 14], "start_point": {"row": 13, "column": 0}, "end_point": {"row": 14, "column": 0}}, {"id": 12, "type": "#define", "text": "fine Ca", "parent": 11, "children": [], "start_point": {"row": 13, "column": 0}, "end_point": {"row": 13, "column": 7}}, {"id": 13, "type": "identifier", "text": "celNotificationName @\"", "parent": 11, "children": [], "start_point": {"row": 13, "column": 8}, "end_point": {"row": 13, "column": 30}}, {"id": 14, "type": "preproc_arg", "text": "ancelSelectedImagesNotificationName\"\n\n@", "parent": 11, "children": [], "start_point": {"row": 13, "column": 31}, "end_point": {"row": 13, "column": 70}}, {"id": 15, "type": "ERROR", "text": "a", "parent": null, "children": [16], "start_point": {"row": 15, "column": 0}, "end_point": {"row": 15, "column": 1}}, {"id": 16, "type": "ERROR", "text": "a", "parent": 15, "children": [], "start_point": {"row": 15, "column": 0}, "end_point": {"row": 15, "column": 1}}, {"id": 17, "type": "declaration", "text": "ss PHAsset, JMPhotoBrowser;\n@p", "parent": null, "children": [18, 19, 20], "start_point": {"row": 15, "column": 1}, "end_point": {"row": 15, "column": 31}}, {"id": 18, "type": "type_identifier", "text": "ss PH", "parent": 17, "children": [], "start_point": {"row": 15, "column": 1}, "end_point": {"row": 15, "column": 6}}, {"id": 19, "type": "identifier", "text": "sset, J", "parent": 17, "children": [], "start_point": {"row": 15, "column": 7}, "end_point": {"row": 15, "column": 14}}, {"id": 20, "type": "identifier", "text": "hotoBrowser;\n@", "parent": 17, "children": [], "start_point": {"row": 15, "column": 16}, "end_point": {"row": 15, "column": 30}}, {"id": 21, "type": "ERROR", "text": "otocol JMPhotoBrowserDelegate <NSObject>\n\n@optional\n- (void)photoBrowser:(JMPhotoBrowser *)photoBrowser didFinishPickingMediaWithInfo:(NSDictionary<UIImagePickerControllerInfoKey,id> *)info;\n\n", "parent": null, "children": [22, 23, 24, 25, 26, 27, 28, 29, 30, 36, 42, 46], "start_point": {"row": 16, "column": 0}, "end_point": {"row": 19, "column": 137}}, {"id": 22, "type": "ERROR", "text": "o", "parent": 21, "children": [], "start_point": {"row": 16, "column": 0}, "end_point": {"row": 16, "column": 1}}, {"id": 23, "type": "type_identifier", "text": "tocol JM", "parent": 21, "children": [], "start_point": {"row": 16, "column": 1}, "end_point": {"row": 16, "column": 9}}, {"id": 24, "type": "identifier", "text": "hotoBrowserDelegate <N", "parent": 21, "children": [], "start_point": {"row": 16, "column": 10}, "end_point": {"row": 16, "column": 32}}, {"id": 25, "type": "<", "text": "O", "parent": 21, "children": [], "start_point": {"row": 16, "column": 33}, "end_point": {"row": 16, "column": 34}}, {"id": 26, "type": "identifier", "text": "bject>\n\n", "parent": 21, "children": [], "start_point": {"row": 16, "column": 34}, "end_point": {"row": 16, "column": 42}}, {"id": 27, "type": ">", "text": "@", "parent": 21, "children": [], "start_point": {"row": 16, "column": 42}, "end_point": {"row": 16, "column": 43}}, {"id": 28, "type": "ERROR", "text": "t", "parent": 21, "children": [], "start_point": {"row": 18, "column": 0}, "end_point": {"row": 18, "column": 1}}, {"id": 29, "type": "identifier", "text": "ional\n- ", "parent": 21, "children": [], "start_point": {"row": 18, "column": 1}, "end_point": {"row": 18, "column": 9}}, {"id": 30, "type": "unary_expression", "text": "void)photoBrowser:(J", "parent": 21, "children": [31, 32], "start_point": {"row": 19, "column": 0}, "end_point": {"row": 19, "column": 20}}, {"id": 31, "type": "-", "text": "v", "parent": 30, "children": [], "start_point": {"row": 19, "column": 0}, "end_point": {"row": 19, "column": 1}}, {"id": 32, "type": "cast_expression", "text": "id)photoBrowser:(J", "parent": 30, "children": [33, 35], "start_point": {"row": 19, "column": 2}, "end_point": {"row": 19, "column": 20}}, {"id": 33, "type": "type_descriptor", "text": "d)ph", "parent": 32, "children": [34], "start_point": {"row": 19, "column": 3}, "end_point": {"row": 19, "column": 7}}, {"id": 34, "type": "primitive_type", "text": "d)ph", "parent": 33, "children": [], "start_point": {"row": 19, "column": 3}, "end_point": {"row": 19, "column": 7}}, {"id": 35, "type": "identifier", "text": "toBrowser:(J", "parent": 32, "children": [], "start_point": {"row": 19, "column": 8}, "end_point": {"row": 19, "column": 20}}, {"id": 36, "type": "binary_expression", "text": "hotoBrowser *)photoBrowser didFinishPickingMediaWithInfo:(N", "parent": 21, "children": [37, 38, 39, 41], "start_point": {"row": 19, "column": 22}, "end_point": {"row": 19, "column": 81}}, {"id": 37, "type": "identifier", "text": "hotoBrowser *)", "parent": 36, "children": [], "start_point": {"row": 19, "column": 22}, "end_point": {"row": 19, "column": 36}}, {"id": 38, "type": "*", "text": "h", "parent": 36, "children": [], "start_point": {"row": 19, "column": 37}, "end_point": {"row": 19, "column": 38}}, {"id": 39, "type": "ERROR", "text": "otoBrowser di", "parent": 36, "children": [40], "start_point": {"row": 19, "column": 38}, "end_point": {"row": 19, "column": 51}}, {"id": 40, "type": "identifier", "text": "toBrowser di", "parent": 39, "children": [], "start_point": {"row": 19, "column": 39}, "end_point": {"row": 19, "column": 51}}, {"id": 41, "type": "identifier", "text": "FinishPickingMediaWithInfo:(N", "parent": 36, "children": [], "start_point": {"row": 19, "column": 52}, "end_point": {"row": 19, "column": 81}}, {"id": 42, "type": "binary_expression", "text": "ictionary<UIImagePickerControllerInfoKey,id", "parent": 21, "children": [43, 44, 45], "start_point": {"row": 19, "column": 83}, "end_point": {"row": 19, "column": 126}}, {"id": 43, "type": "identifier", "text": "ictionary<UI", "parent": 42, "children": [], "start_point": {"row": 19, "column": 83}, "end_point": {"row": 19, "column": 95}}, {"id": 44, "type": "<", "text": "I", "parent": 42, "children": [], "start_point": {"row": 19, "column": 95}, "end_point": {"row": 19, "column": 96}}, {"id": 45, "type": "identifier", "text": "magePickerControllerInfoKey,id", "parent": 42, "children": [], "start_point": {"row": 19, "column": 96}, "end_point": {"row": 19, "column": 126}}, {"id": 46, "type": "binary_expression", "text": " *)info;\n\n", "parent": 21, "children": [47, 48], "start_point": {"row": 19, "column": 127}, "end_point": {"row": 19, "column": 137}}, {"id": 47, "type": "identifier", "text": " *", "parent": 46, "children": [], "start_point": {"row": 19, "column": 127}, "end_point": {"row": 19, "column": 129}}, {"id": 48, "type": "pointer_expression", "text": "nfo;\n\n", "parent": 46, "children": [49, 50, 51], "start_point": {"row": 19, "column": 131}, "end_point": {"row": 19, "column": 137}}, {"id": 49, "type": "*", "text": "n", "parent": 48, "children": [], "start_point": {"row": 19, "column": 131}, "end_point": {"row": 19, "column": 132}}, {"id": 50, "type": "ERROR", "text": "f", "parent": 48, "children": [], "start_point": {"row": 19, "column": 132}, "end_point": {"row": 19, "column": 133}}, {"id": 51, "type": "identifier", "text": "o;\n\n", "parent": 48, "children": [], "start_point": {"row": 19, "column": 133}, "end_point": {"row": 19, "column": 137}}, {"id": 52, "type": "update_expression", "text": "void)photoBrowser:(JMPhotoBrowser *)photoBrowser didSelectedImages:(NSArray *)selectedImages;\n\n", "parent": null, "children": [53, 72], "start_point": {"row": 21, "column": 0}, "end_point": {"row": 21, "column": 95}}, {"id": 53, "type": "binary_expression", "text": "void)photoBrowser:(JMPhotoBrowser *)photoBrowser didSelectedImages:(NSArray *)selectedImages;\n\n", "parent": 52, "children": [54, 67, 69, 70, 71], "start_point": {"row": 21, "column": 0}, "end_point": {"row": 21, "column": 95}}, {"id": 54, "type": "binary_expression", "text": "void)photoBrowser:(JMPhotoBrowser *)photoBrowser didSelectedImages:(N", "parent": 53, "children": [55, 61, 63, 64, 66], "start_point": {"row": 21, "column": 0}, "end_point": {"row": 21, "column": 69}}, {"id": 55, "type": "unary_expression", "text": "void)photoBrowser:(J", "parent": 54, "children": [56, 57], "start_point": {"row": 21, "column": 0}, "end_point": {"row": 21, "column": 20}}, {"id": 56, "type": "-", "text": "v", "parent": 55, "children": [], "start_point": {"row": 21, "column": 0}, "end_point": {"row": 21, "column": 1}}, {"id": 57, "type": "cast_expression", "text": "id)photoBrowser:(J", "parent": 55, "children": [58, 60], "start_point": {"row": 21, "column": 2}, "end_point": {"row": 21, "column": 20}}, {"id": 58, "type": "type_descriptor", "text": "d)ph", "parent": 57, "children": [59], "start_point": {"row": 21, "column": 3}, "end_point": {"row": 21, "column": 7}}, {"id": 59, "type": "primitive_type", "text": "d)ph", "parent": 58, "children": [], "start_point": {"row": 21, "column": 3}, "end_point": {"row": 21, "column": 7}}, {"id": 60, "type": "identifier", "text": "toBrowser:(J", "parent": 57, "children": [], "start_point": {"row": 21, "column": 8}, "end_point": {"row": 21, "column": 20}}, {"id": 61, "type": "ERROR", "text": "MPhotoBrowser *)", "parent": 54, "children": [62], "start_point": {"row": 21, "column": 20}, "end_point": {"row": 21, "column": 36}}, {"id": 62, "type": "identifier", "text": "hotoBrowser *)", "parent": 61, "children": [], "start_point": {"row": 21, "column": 22}, "end_point": {"row": 21, "column": 36}}, {"id": 63, "type": "*", "text": "h", "parent": 54, "children": [], "start_point": {"row": 21, "column": 37}, "end_point": {"row": 21, "column": 38}}, {"id": 64, "type": "ERROR", "text": "otoBrowser di", "parent": 54, "children": [65], "start_point": {"row": 21, "column": 38}, "end_point": {"row": 21, "column": 51}}, {"id": 65, "type": "identifier", "text": "toBrowser di", "parent": 64, "children": [], "start_point": {"row": 21, "column": 39}, "end_point": {"row": 21, "column": 51}}, {"id": 66, "type": "identifier", "text": "SelectedImages:(N", "parent": 54, "children": [], "start_point": {"row": 21, "column": 52}, "end_point": {"row": 21, "column": 69}}, {"id": 67, "type": "ERROR", "text": "SArray *)", "parent": 53, "children": [68], "start_point": {"row": 21, "column": 69}, "end_point": {"row": 21, "column": 78}}, {"id": 68, "type": "identifier", "text": "rray *)", "parent": 67, "children": [], "start_point": {"row": 21, "column": 71}, "end_point": {"row": 21, "column": 78}}, {"id": 69, "type": "*", "text": "e", "parent": 53, "children": [], "start_point": {"row": 21, "column": 79}, "end_point": {"row": 21, "column": 80}}, {"id": 70, "type": "ERROR", "text": "l", "parent": 53, "children": [], "start_point": {"row": 21, "column": 80}, "end_point": {"row": 21, "column": 81}}, {"id": 71, "type": "identifier", "text": "ectedImages;\n\n", "parent": 53, "children": [], "start_point": {"row": 21, "column": 81}, "end_point": {"row": 21, "column": 95}}, {"id": 72, "type": "--", "text": "", "parent": 52, "children": [], "start_point": {"row": 21, "column": 95}, "end_point": {"row": 21, "column": 95}}, {"id": 73, "type": "unary_expression", "text": "void)photoBrowserDidDismissed;\n\n", "parent": null, "children": [74, 75], "start_point": {"row": 23, "column": 0}, "end_point": {"row": 23, "column": 32}}, {"id": 74, "type": "-", "text": "v", "parent": 73, "children": [], "start_point": {"row": 23, "column": 0}, "end_point": {"row": 23, "column": 1}}, {"id": 75, "type": "cast_expression", "text": "id)photoBrowserDidDismissed;\n\n", "parent": 73, "children": [76, 78], "start_point": {"row": 23, "column": 2}, "end_point": {"row": 23, "column": 32}}, {"id": 76, "type": "type_descriptor", "text": "d)ph", "parent": 75, "children": [77], "start_point": {"row": 23, "column": 3}, "end_point": {"row": 23, "column": 7}}, {"id": 77, "type": "primitive_type", "text": "d)ph", "parent": 76, "children": [], "start_point": {"row": 23, "column": 3}, "end_point": {"row": 23, "column": 7}}, {"id": 78, "type": "identifier", "text": "toBrowserDidDismissed;\n\n", "parent": 75, "children": [], "start_point": {"row": 23, "column": 8}, "end_point": {"row": 23, "column": 32}}, {"id": 79, "type": "ERROR", "text": "d", "parent": null, "children": [80], "start_point": {"row": 25, "column": 0}, "end_point": {"row": 25, "column": 1}}, {"id": 80, "type": "ERROR", "text": "d", "parent": 79, "children": [], "start_point": {"row": 25, "column": 0}, "end_point": {"row": 25, "column": 1}}, {"id": 81, "type": "declaration", "text": "\n\n@interface JM", "parent": null, "children": [82, 83, 85], "start_point": {"row": 25, "column": 1}, "end_point": {"row": 27, "column": 10}}, {"id": 82, "type": "type_identifier", "text": "\n\n@", "parent": 81, "children": [], "start_point": {"row": 25, "column": 1}, "end_point": {"row": 25, "column": 4}}, {"id": 83, "type": "ERROR", "text": "t", "parent": 81, "children": [84], "start_point": {"row": 27, "column": 0}, "end_point": {"row": 27, "column": 1}}, {"id": 84, "type": "ERROR", "text": "t", "parent": 83, "children": [], "start_point": {"row": 27, "column": 0}, "end_point": {"row": 27, "column": 1}}, {"id": 85, "type": "identifier", "text": "erface JM", "parent": 81, "children": [], "start_point": {"row": 27, "column": 1}, "end_point": {"row": 27, "column": 10}}, {"id": 86, "type": "labeled_statement", "text": "hotoBrowser : NSObject\n\n/// \u7167\u7247\u662f\u5426\u662f\u5355\u9009, \u9ed8\u8ba4\u4e3aYES\n@property (nonatomic, assign) BOOL singleSelect;\n/// \u591a\u9009\u6700\u5927\u9650\u5236, \u9ed8\u8ba4\u4e3a9\u5f20\n@property (nonatomic, assign) NSInteger maxSelectedCount;\n\n@property (nonatomic, strong) UIColor *footerViewBackgroundColor;\n\n@property (nonatomic, strong) UIColor *th", "parent": null, "children": [87, 88], "start_point": {"row": 27, "column": 11}, "end_point": {"row": 34, "column": 65}}, {"id": 87, "type": "statement_identifier", "text": "hotoBrowser : ", "parent": 86, "children": [], "start_point": {"row": 27, "column": 11}, "end_point": {"row": 27, "column": 25}}, {"id": 88, "type": "declaration", "text": "bject\n\n/// \u7167\u7247\u662f\u5426\u662f\u5355\u9009, \u9ed8\u8ba4\u4e3aYES\n@property (nonatomic, assign) BOOL singleSelect;\n/// \u591a\u9009\u6700\u5927\u9650\u5236, \u9ed8\u8ba4\u4e3a9\u5f20\n@property (nonatomic, assign) NSInteger maxSelectedCount;\n\n@property (nonatomic, strong) UIColor *footerViewBackgroundColor;\n\n@property (nonatomic, strong) UIColor *th", "parent": 86, "children": [89, 90, 120], "start_point": {"row": 27, "column": 28}, "end_point": {"row": 34, "column": 65}}, {"id": 89, "type": "type_identifier", "text": "bject\n\n/", "parent": 88, "children": [], "start_point": {"row": 27, "column": 28}, "end_point": {"row": 27, "column": 36}}, {"id": 90, "type": "ERROR", "text": "ssign) BOOL singleSelect;\n/// \u591a\u9009\u6700\u5927\u9650\u5236, \u9ed8\u8ba4\u4e3a9\u5f20\n@property (nonatomic, assign) NSInteger maxSelectedCount;\n\n@property (nonatomic, strong) UIColor *footerViewBackgroundColor;\n\n@property (no", "parent": 88, "children": [91, 92, 101, 102, 111, 112], "start_point": {"row": 30, "column": 0}, "end_point": {"row": 34, "column": 37}}, {"id": 91, "type": "ERROR", "text": "s", "parent": 90, "children": [], "start_point": {"row": 30, "column": 0}, "end_point": {"row": 30, "column": 1}}, {"id": 92, "type": "function_declarator", "text": "sign) BOOL singleSelect;\n/// \u591a\u9009\u6700\u5927\u9650\u5236, \u9ed8\u8ba4\u4e3a9\u5f20\n@pr", "parent": 90, "children": [93, 94, 99, 100], "start_point": {"row": 30, "column": 1}, "end_point": {"row": 30, "column": 47}}, {"id": 93, "type": "identifier", "text": "sign) BO", "parent": 92, "children": [], "start_point": {"row": 30, "column": 1}, "end_point": {"row": 30, "column": 9}}, {"id": 94, "type": "parameter_list", "text": "L singleSelect;\n///", "parent": 92, "children": [95, 97], "start_point": {"row": 30, "column": 10}, "end_point": {"row": 30, "column": 29}}, {"id": 95, "type": "parameter_declaration", "text": " singleSe", "parent": 94, "children": [96], "start_point": {"row": 30, "column": 11}, "end_point": {"row": 30, "column": 20}}, {"id": 96, "type": "type_identifier", "text": " singleSe", "parent": 95, "children": [], "start_point": {"row": 30, "column": 11}, "end_point": {"row": 30, "column": 20}}, {"id": 97, "type": "parameter_declaration", "text": "ct;\n//", "parent": 94, "children": [98], "start_point": {"row": 30, "column": 22}, "end_point": {"row": 30, "column": 28}}, {"id": 98, "type": "type_identifier", "text": "ct;\n//", "parent": 97, "children": [], "start_point": {"row": 30, "column": 22}, "end_point": {"row": 30, "column": 28}}, {"id": 99, "type": "identifier", "text": "\u591a\u9009\u6700\u5927", "parent": 92, "children": [], "start_point": {"row": 30, "column": 30}, "end_point": {"row": 30, "column": 34}}, {"id": 100, "type": "identifier", "text": "\u5236, \u9ed8\u8ba4\u4e3a9\u5f20\n@pr", "parent": 92, "children": [], "start_point": {"row": 30, "column": 35}, "end_point": {"row": 30, "column": 47}}, {"id": 101, "type": "ERROR", "text": "S", "parent": 90, "children": [], "start_point": {"row": 32, "column": 0}, "end_point": {"row": 32, "column": 1}}, {"id": 102, "type": "function_declarator", "text": "electedCount;\n\n@property (nonatomic, strong) UIColor *f", "parent": 90, "children": [103, 104, 109, 110], "start_point": {"row": 32, "column": 1}, "end_point": {"row": 32, "column": 56}}, {"id": 103, "type": "identifier", "text": "electedC", "parent": 102, "children": [], "start_point": {"row": 32, "column": 1}, "end_point": {"row": 32, "column": 9}}, {"id": 104, "type": "parameter_list", "text": "unt;\n\n@property (no", "parent": 102, "children": [105, 107], "start_point": {"row": 32, "column": 10}, "end_point": {"row": 32, "column": 29}}, {"id": 105, "type": "parameter_declaration", "text": "nt;\n\n@pro", "parent": 104, "children": [106], "start_point": {"row": 32, "column": 11}, "end_point": {"row": 32, "column": 20}}, {"id": 106, "type": "type_identifier", "text": "nt;\n\n@pro", "parent": 105, "children": [], "start_point": {"row": 32, "column": 11}, "end_point": {"row": 32, "column": 20}}, {"id": 107, "type": "parameter_declaration", "text": "rty (n", "parent": 104, "children": [108], "start_point": {"row": 32, "column": 22}, "end_point": {"row": 32, "column": 28}}, {"id": 108, "type": "type_identifier", "text": "rty (n", "parent": 107, "children": [], "start_point": {"row": 32, "column": 22}, "end_point": {"row": 32, "column": 28}}, {"id": 109, "type": "identifier", "text": "atomic, s", "parent": 102, "children": [], "start_point": {"row": 32, "column": 30}, "end_point": {"row": 32, "column": 39}}, {"id": 110, "type": "identifier", "text": "rong) UIColor *f", "parent": 102, "children": [], "start_point": {"row": 32, "column": 40}, "end_point": {"row": 32, "column": 56}}, {"id": 111, "type": "ERROR", "text": "e", "parent": 90, "children": [], "start_point": {"row": 34, "column": 0}, "end_point": {"row": 34, "column": 1}}, {"id": 112, "type": "function_declarator", "text": "rViewBackgroundColor;\n\n@property (no", "parent": 90, "children": [113, 114, 119], "start_point": {"row": 34, "column": 1}, "end_point": {"row": 34, "column": 37}}, {"id": 113, "type": "identifier", "text": "rViewBac", "parent": 112, "children": [], "start_point": {"row": 34, "column": 1}, "end_point": {"row": 34, "column": 9}}, {"id": 114, "type": "parameter_list", "text": "groundColor;\n\n@prop", "parent": 112, "children": [115, 117], "start_point": {"row": 34, "column": 10}, "end_point": {"row": 34, "column": 29}}, {"id": 115, "type": "parameter_declaration", "text": "roundColo", "parent": 114, "children": [116], "start_point": {"row": 34, "column": 11}, "end_point": {"row": 34, "column": 20}}, {"id": 116, "type": "type_identifier", "text": "roundColo", "parent": 115, "children": [], "start_point": {"row": 34, "column": 11}, "end_point": {"row": 34, "column": 20}}, {"id": 117, "type": "parameter_declaration", "text": "\n\n@pro", "parent": 114, "children": [118], "start_point": {"row": 34, "column": 22}, "end_point": {"row": 34, "column": 28}}, {"id": 118, "type": "type_identifier", "text": "\n\n@pro", "parent": 117, "children": [], "start_point": {"row": 34, "column": 22}, "end_point": {"row": 34, "column": 28}}, {"id": 119, "type": "identifier", "text": "rty (no", "parent": 112, "children": [], "start_point": {"row": 34, "column": 30}, "end_point": {"row": 34, "column": 37}}, {"id": 120, "type": "pointer_declarator", "text": "atomic, strong) UIColor *t", "parent": 88, "children": [121, 122], "start_point": {"row": 34, "column": 38}, "end_point": {"row": 34, "column": 64}}, {"id": 121, "type": "*", "text": "a", "parent": 120, "children": [], "start_point": {"row": 34, "column": 38}, "end_point": {"row": 34, "column": 39}}, {"id": 122, "type": "identifier", "text": "tomic, strong) UIColor *t", "parent": 120, "children": [], "start_point": {"row": 34, "column": 39}, "end_point": {"row": 34, "column": 64}}, {"id": 123, "type": "ERROR", "text": "e", "parent": null, "children": [124], "start_point": {"row": 36, "column": 0}, "end_point": {"row": 36, "column": 1}}, {"id": 124, "type": "ERROR", "text": "e", "parent": 123, "children": [], "start_point": {"row": 36, "column": 0}, "end_point": {"row": 36, "column": 1}}, {"id": 125, "type": "call_expression", "text": "Color;\n\n@property (nonatomic", "parent": null, "children": [126, 127], "start_point": {"row": 36, "column": 1}, "end_point": {"row": 36, "column": 29}}, {"id": 126, "type": "identifier", "text": "Color;\n\n", "parent": 125, "children": [], "start_point": {"row": 36, "column": 1}, "end_point": {"row": 36, "column": 9}}, {"id": 127, "type": "argument_list", "text": "property (nonatomic", "parent": 125, "children": [128, 129], "start_point": {"row": 36, "column": 10}, "end_point": {"row": 36, "column": 29}}, {"id": 128, "type": "identifier", "text": "roperty (", "parent": 127, "children": [], "start_point": {"row": 36, "column": 11}, "end_point": {"row": 36, "column": 20}}, {"id": 129, "type": "identifier", "text": "natomi", "parent": 127, "children": [], "start_point": {"row": 36, "column": 22}, "end_point": {"row": 36, "column": 28}}, {"id": 130, "type": "declaration", "text": " strong) UIColor *di", "parent": null, "children": [131, 132], "start_point": {"row": 36, "column": 30}, "end_point": {"row": 36, "column": 50}}, {"id": 131, "type": "type_identifier", "text": " strong", "parent": 130, "children": [], "start_point": {"row": 36, "column": 30}, "end_point": {"row": 36, "column": 37}}, {"id": 132, "type": "pointer_declarator", "text": " UIColor *d", "parent": 130, "children": [133, 134], "start_point": {"row": 36, "column": 38}, "end_point": {"row": 36, "column": 49}}, {"id": 133, "type": "*", "text": " ", "parent": 132, "children": [], "start_point": {"row": 36, "column": 38}, "end_point": {"row": 36, "column": 39}}, {"id": 134, "type": "identifier", "text": "UIColor *d", "parent": 132, "children": [], "start_point": {"row": 36, "column": 39}, "end_point": {"row": 36, "column": 49}}, {"id": 135, "type": "ERROR", "text": "b", "parent": null, "children": [136], "start_point": {"row": 38, "column": 0}, "end_point": {"row": 38, "column": 1}}, {"id": 136, "type": "ERROR", "text": "b", "parent": 135, "children": [], "start_point": {"row": 38, "column": 0}, "end_point": {"row": 38, "column": 1}}, {"id": 137, "type": "call_expression", "text": "leColor;\n\n@property (nonatom", "parent": null, "children": [138, 139], "start_point": {"row": 38, "column": 1}, "end_point": {"row": 38, "column": 29}}, {"id": 138, "type": "identifier", "text": "leColor;", "parent": 137, "children": [], "start_point": {"row": 38, "column": 1}, "end_point": {"row": 38, "column": 9}}, {"id": 139, "type": "argument_list", "text": "\n@property (nonatom", "parent": 137, "children": [140, 141], "start_point": {"row": 38, "column": 10}, "end_point": {"row": 38, "column": 29}}, {"id": 140, "type": "identifier", "text": "@property", "parent": 139, "children": [], "start_point": {"row": 38, "column": 11}, "end_point": {"row": 38, "column": 20}}, {"id": 141, "type": "identifier", "text": "nonato", "parent": 139, "children": [], "start_point": {"row": 38, "column": 22}, "end_point": {"row": 38, "column": 28}}, {"id": 142, "type": "declaration", "text": "c, strong) UIImage *fo", "parent": null, "children": [143, 144], "start_point": {"row": 38, "column": 30}, "end_point": {"row": 38, "column": 52}}, {"id": 143, "type": "type_identifier", "text": "c, stro", "parent": 142, "children": [], "start_point": {"row": 38, "column": 30}, "end_point": {"row": 38, "column": 37}}, {"id": 144, "type": "pointer_declarator", "text": "g) UIImage *f", "parent": 142, "children": [145, 146], "start_point": {"row": 38, "column": 38}, "end_point": {"row": 38, "column": 51}}, {"id": 145, "type": "*", "text": "g", "parent": 144, "children": [], "start_point": {"row": 38, "column": 38}, "end_point": {"row": 38, "column": 39}}, {"id": 146, "type": "identifier", "text": ") UIImage *f", "parent": 144, "children": [], "start_point": {"row": 38, "column": 39}, "end_point": {"row": 38, "column": 51}}, {"id": 147, "type": "ERROR", "text": "e", "parent": null, "children": [148], "start_point": {"row": 40, "column": 0}, "end_point": {"row": 40, "column": 1}}, {"id": 148, "type": "ERROR", "text": "e", "parent": 147, "children": [], "start_point": {"row": 40, "column": 0}, "end_point": {"row": 40, "column": 1}}, {"id": 149, "type": "call_expression", "text": "rCheckImage;\n\n@property (non", "parent": null, "children": [150, 151], "start_point": {"row": 40, "column": 1}, "end_point": {"row": 40, "column": 29}}, {"id": 150, "type": "identifier", "text": "rCheckIm", "parent": 149, "children": [], "start_point": {"row": 40, "column": 1}, "end_point": {"row": 40, "column": 9}}, {"id": 151, "type": "argument_list", "text": "ge;\n\n@property (non", "parent": 149, "children": [152, 153], "start_point": {"row": 40, "column": 10}, "end_point": {"row": 40, "column": 29}}, {"id": 152, "type": "identifier", "text": "e;\n\n@prop", "parent": 151, "children": [], "start_point": {"row": 40, "column": 11}, "end_point": {"row": 40, "column": 20}}, {"id": 153, "type": "identifier", "text": "ty (no", "parent": 151, "children": [], "start_point": {"row": 40, "column": 22}, "end_point": {"row": 40, "column": 28}}, {"id": 154, "type": "declaration", "text": "tomic, strong) UIImage *fo", "parent": null, "children": [155, 156], "start_point": {"row": 40, "column": 30}, "end_point": {"row": 40, "column": 56}}, {"id": 155, "type": "type_identifier", "text": "tomic, ", "parent": 154, "children": [], "start_point": {"row": 40, "column": 30}, "end_point": {"row": 40, "column": 37}}, {"id": 156, "type": "pointer_declarator", "text": "trong) UIImage *f", "parent": 154, "children": [157, 158], "start_point": {"row": 40, "column": 38}, "end_point": {"row": 40, "column": 55}}, {"id": 157, "type": "*", "text": "t", "parent": 156, "children": [], "start_point": {"row": 40, "column": 38}, "end_point": {"row": 40, "column": 39}}, {"id": 158, "type": "identifier", "text": "rong) UIImage *f", "parent": 156, "children": [], "start_point": {"row": 40, "column": 39}, "end_point": {"row": 40, "column": 55}}, {"id": 159, "type": "ERROR", "text": "e", "parent": null, "children": [160], "start_point": {"row": 42, "column": 0}, "end_point": {"row": 42, "column": 1}}, {"id": 160, "type": "ERROR", "text": "e", "parent": 159, "children": [], "start_point": {"row": 42, "column": 0}, "end_point": {"row": 42, "column": 1}}, {"id": 161, "type": "call_expression", "text": "rNotCheckImage;\n\n@property (", "parent": null, "children": [162, 163], "start_point": {"row": 42, "column": 1}, "end_point": {"row": 42, "column": 29}}, {"id": 162, "type": "identifier", "text": "rNotChec", "parent": 161, "children": [], "start_point": {"row": 42, "column": 1}, "end_point": {"row": 42, "column": 9}}, {"id": 163, "type": "argument_list", "text": "Image;\n\n@property (", "parent": 161, "children": [164, 165], "start_point": {"row": 42, "column": 10}, "end_point": {"row": 42, "column": 29}}, {"id": 164, "type": "identifier", "text": "mage;\n\n@p", "parent": 163, "children": [], "start_point": {"row": 42, "column": 11}, "end_point": {"row": 42, "column": 20}}, {"id": 165, "type": "identifier", "text": "perty ", "parent": 163, "children": [], "start_point": {"row": 42, "column": 22}, "end_point": {"row": 42, "column": 28}}, {"id": 166, "type": "declaration", "text": "onatomic, weak) id<JMPhotoBro", "parent": null, "children": [167, 168], "start_point": {"row": 42, "column": 30}, "end_point": {"row": 42, "column": 59}}, {"id": 167, "type": "type_identifier", "text": "onatomi", "parent": 166, "children": [], "start_point": {"row": 42, "column": 30}, "end_point": {"row": 42, "column": 37}}, {"id": 168, "type": "pointer_declarator", "text": ", weak) id<JMPhotoBr", "parent": 166, "children": [169], "start_point": {"row": 42, "column": 38}, "end_point": {"row": 42, "column": 58}}, {"id": 169, "type": "identifier", "text": " weak) id<JMPhotoBr", "parent": 168, "children": [], "start_point": {"row": 42, "column": 39}, "end_point": {"row": 42, "column": 58}}, {"id": 170, "type": "ERROR", "text": "erDelegate> delegate;\n\n\n+ (JMPhotoBrowser *)browserWithDelegate", "parent": null, "children": [171, 172], "start_point": {"row": 44, "column": 0}, "end_point": {"row": 44, "column": 63}}, {"id": 171, "type": "ERROR", "text": "e", "parent": 170, "children": [], "start_point": {"row": 44, "column": 0}, "end_point": {"row": 44, "column": 1}}, {"id": 172, "type": "binary_expression", "text": "rDelegate> delegate;\n\n\n+ (JMPhotoBrowser *)browserWithDelegate", "parent": 170, "children": [173, 183, 184], "start_point": {"row": 44, "column": 1}, "end_point": {"row": 44, "column": 63}}, {"id": 173, "type": "binary_expression", "text": "rDelegate> delegate;\n\n\n+ (JMPhotoBrowser *)browserWi", "parent": 172, "children": [174, 179, 181, 182], "start_point": {"row": 44, "column": 1}, "end_point": {"row": 44, "column": 53}}, {"id": 174, "type": "call_expression", "text": "rDelegate> delegate;\n\n\n+ (", "parent": 173, "children": [175, 176], "start_point": {"row": 44, "column": 1}, "end_point": {"row": 44, "column": 27}}, {"id": 175, "type": "identifier", "text": "rDelegat", "parent": 174, "children": [], "start_point": {"row": 44, "column": 1}, "end_point": {"row": 44, "column": 9}}, {"id": 176, "type": "argument_list", "text": "> delegate;\n\n\n+ (", "parent": 174, "children": [177, 178], "start_point": {"row": 44, "column": 10}, "end_point": {"row": 44, "column": 27}}, {"id": 177, "type": "identifier", "text": " delegate", "parent": 176, "children": [], "start_point": {"row": 44, "column": 11}, "end_point": {"row": 44, "column": 20}}, {"id": 178, "type": "identifier", "text": "\n\n+ ", "parent": 176, "children": [], "start_point": {"row": 44, "column": 22}, "end_point": {"row": 44, "column": 26}}, {"id": 179, "type": "ERROR", "text": "MP", "parent": 173, "children": [180], "start_point": {"row": 44, "column": 28}, "end_point": {"row": 44, "column": 30}}, {"id": 180, "type": "identifier", "text": "MP", "parent": 179, "children": [], "start_point": {"row": 44, "column": 28}, "end_point": {"row": 44, "column": 30}}, {"id": 181, "type": "<", "text": "h", "parent": 173, "children": [], "start_point": {"row": 44, "column": 30}, "end_point": {"row": 44, "column": 31}}, {"id": 182, "type": "identifier", "text": "otoBrowser *)browserWi", "parent": 173, "children": [], "start_point": {"row": 44, "column": 31}, "end_point": {"row": 44, "column": 53}}, {"id": 183, "type": ">", "text": "t", "parent": 172, "children": [], "start_point": {"row": 44, "column": 53}, "end_point": {"row": 44, "column": 54}}, {"id": 184, "type": "identifier", "text": "Delegate", "parent": 172, "children": [], "start_point": {"row": 44, "column": 55}, "end_point": {"row": 44, "column": 63}}, {"id": 185, "type": "ERROR", "text": ")delegate presentController:(UIViewControlle", "parent": null, "children": [186, 193], "start_point": {"row": 47, "column": 0}, "end_point": {"row": 47, "column": 44}}, {"id": 186, "type": "unary_expression", "text": ")delegate presentController:(UIViewCont", "parent": 185, "children": [187], "start_point": {"row": 47, "column": 0}, "end_point": {"row": 47, "column": 39}}, {"id": 187, "type": "cast_expression", "text": "elegate presentController:(UIViewCont", "parent": 186, "children": [188, 192], "start_point": {"row": 47, "column": 2}, "end_point": {"row": 47, "column": 39}}, {"id": 188, "type": "type_descriptor", "text": "legate presentCo", "parent": 187, "children": [189, 190], "start_point": {"row": 47, "column": 3}, "end_point": {"row": 47, "column": 19}}, {"id": 189, "type": "type_identifier", "text": "legate present", "parent": 188, "children": [], "start_point": {"row": 47, "column": 3}, "end_point": {"row": 47, "column": 17}}, {"id": 190, "type": "abstract_pointer_declarator", "text": "o", "parent": 188, "children": [191], "start_point": {"row": 47, "column": 18}, "end_point": {"row": 47, "column": 19}}, {"id": 191, "type": "*", "text": "o", "parent": 190, "children": [], "start_point": {"row": 47, "column": 18}, "end_point": {"row": 47, "column": 19}}, {"id": 192, "type": "identifier", "text": "troller:(UIViewCont", "parent": 187, "children": [], "start_point": {"row": 47, "column": 20}, "end_point": {"row": 47, "column": 39}}, {"id": 193, "type": "identifier", "text": "ll", "parent": 185, "children": [], "start_point": {"row": 47, "column": 41}, "end_point": {"row": 47, "column": 43}}, {"id": 194, "type": "declaration", "text": "r *)presentController;\n\n- (void)showActionSheet;\n\n- (void)showPho", "parent": null, "children": [195, 196, 197], "start_point": {"row": 47, "column": 44}, "end_point": {"row": 47, "column": 109}}, {"id": 195, "type": "type_identifier", "text": "r *)pres", "parent": 194, "children": [], "start_point": {"row": 47, "column": 44}, "end_point": {"row": 47, "column": 52}}, {"id": 196, "type": "identifier", "text": "ntController;\n\n- ", "parent": 194, "children": [], "start_point": {"row": 47, "column": 53}, "end_point": {"row": 47, "column": 70}}, {"id": 197, "type": "ERROR", "text": "(void)showActionSheet;\n\n- (void)showPh", "parent": 194, "children": [198, 199, 200], "start_point": {"row": 47, "column": 70}, "end_point": {"row": 47, "column": 108}}, {"id": 198, "type": "identifier", "text": "oid)showActionSh", "parent": 197, "children": [], "start_point": {"row": 47, "column": 72}, "end_point": {"row": 47, "column": 88}}, {"id": 199, "type": "*", "text": "e", "parent": 197, "children": [], "start_point": {"row": 47, "column": 89}, "end_point": {"row": 47, "column": 90}}, {"id": 200, "type": "identifier", "text": ";\n\n- (void)showPh", "parent": 197, "children": [], "start_point": {"row": 47, "column": 91}, "end_point": {"row": 47, "column": 108}}, {"id": 201, "type": "unary_expression", "text": "SelectView;\n\n@end\n\nNS_A", "parent": null, "children": [202, 203], "start_point": {"row": 49, "column": 0}, "end_point": {"row": 49, "column": 23}}, {"id": 202, "type": "-", "text": "S", "parent": 201, "children": [], "start_point": {"row": 49, "column": 0}, "end_point": {"row": 49, "column": 1}}, {"id": 203, "type": "cast_expression", "text": "lectView;\n\n@end\n\nNS_A", "parent": 201, "children": [204, 206], "start_point": {"row": 49, "column": 2}, "end_point": {"row": 49, "column": 23}}, {"id": 204, "type": "type_descriptor", "text": "ectV", "parent": 203, "children": [205], "start_point": {"row": 49, "column": 3}, "end_point": {"row": 49, "column": 7}}, {"id": 205, "type": "primitive_type", "text": "ectV", "parent": 204, "children": [], "start_point": {"row": 49, "column": 3}, "end_point": {"row": 49, "column": 7}}, {"id": 206, "type": "identifier", "text": "ew;\n\n@end\n\nNS_A", "parent": 203, "children": [], "start_point": {"row": 49, "column": 8}, "end_point": {"row": 49, "column": 23}}, {"id": 207, "type": "unary_expression", "text": "ME_NONNULL_END\n", "parent": null, "children": [208, 209], "start_point": {"row": 51, "column": 0}, "end_point": {"row": 51, "column": 27}}, {"id": 208, "type": "-", "text": "M", "parent": 207, "children": [], "start_point": {"row": 51, "column": 0}, "end_point": {"row": 51, "column": 1}}, {"id": 209, "type": "cast_expression", "text": "_NONNULL_END\n", "parent": 207, "children": [210, 212], "start_point": {"row": 51, "column": 2}, "end_point": {"row": 51, "column": 27}}, {"id": 210, "type": "type_descriptor", "text": "NONN", "parent": 209, "children": [211], "start_point": {"row": 51, "column": 3}, "end_point": {"row": 51, "column": 7}}, {"id": 211, "type": "primitive_type", "text": "NONN", "parent": 210, "children": [], "start_point": {"row": 51, "column": 3}, "end_point": {"row": 51, "column": 7}}, {"id": 212, "type": "identifier", "text": "LL_END\n", "parent": 209, "children": [], "start_point": {"row": 51, "column": 8}, "end_point": {"row": 51, "column": 27}}, {"id": 213, "type": "ERROR", "text": "", "parent": null, "children": [214], "start_point": {"row": 53, "column": 0}, "end_point": {"row": 53, "column": 1}}, {"id": 214, "type": "ERROR", "text": "", "parent": 213, "children": [], "start_point": {"row": 53, "column": 0}, "end_point": {"row": 53, "column": 1}}, {"id": 215, "type": "declaration", "text": "", "parent": null, "children": [216, 217], "start_point": {"row": 53, "column": 1}, "end_point": {"row": 55, "column": 21}}, {"id": 216, "type": "type_identifier", "text": "", "parent": 215, "children": [], "start_point": {"row": 53, "column": 1}, "end_point": {"row": 53, "column": 4}}, {"id": 217, "type": "identifier", "text": "", "parent": 215, "children": [], "start_point": {"row": 55, "column": 0}, "end_point": {"row": 55, "column": 21}}]}, "node_categories": {"declarations": {"functions": [92, 102, 112], "variables": [17, 81, 88, 95, 97, 105, 107, 115, 117, 130, 142, 154, 166, 194, 215], "classes": [], "imports": [], "modules": [], "enums": []}, "statements": {"expressions": [30, 32, 36, 42, 46, 48, 52, 53, 54, 55, 57, 73, 75, 125, 137, 149, 161, 172, 173, 174, 186, 187, 201, 203, 207, 209], "assignments": [], "loops": [], "conditionals": [6, 9, 13, 18, 19, 20, 23, 24, 26, 29, 35, 37, 40, 41, 43, 45, 47, 51, 60, 62, 65, 66, 68, 71, 78, 82, 85, 87, 89, 93, 96, 98, 99, 100, 103, 106, 108, 109, 110, 113, 116, 118, 119, 122, 126, 128, 129, 131, 134, 138, 140, 141, 143, 146, 150, 152, 153, 155, 158, 162, 164, 165, 167, 169, 175, 177, 178, 180, 182, 184, 189, 192, 193, 195, 196, 198, 200, 206, 212, 216, 217], "returns": [], "exceptions": []}, "expressions": {"calls": [0, 3], "literals": [], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [{"node_id": 92, "universal_type": "function", "name": "unknown", "text_snippet": "sign) BOOL singleSelect;\n/// \u591a\u9009\u6700\u5927\u9650\u5236, \u9ed8\u8ba4\u4e3a9\u5f20\n@pr"}, {"node_id": 102, "universal_type": "function", "name": "unknown", "text_snippet": "electedCount;\n\n@property (nonatomic, strong) UIColor *f"}, {"node_id": 112, "universal_type": "function", "name": "unknown", "text_snippet": "rViewBackgroundColor;\n\n@property (no"}], "class_declarations": [], "import_statements": []}, "original_source_code": "//\n// JMPhotoBrowser.h\n// ControlTest\n//\n// Created by print on 2018/10/18.\n// Copyright \u00a9 2018\u5e74 liuxuanbo. All rights reserved.\n//\n\n#import <Foundation/Foundation.h>\n#import <UIKit/UIKit.h>\nNS_ASSUME_NONNULL_BEGIN\n\n#define SelectNotificationName @\"DidSelectedImagesNotificationName\"\n#define CancelNotificationName @\"CancelSelectedImagesNotificationName\"\n\n@class PHAsset, JMPhotoBrowser;\n@protocol JMPhotoBrowserDelegate <NSObject>\n\n@optional\n- (void)photoBrowser:(JMPhotoBrowser *)photoBrowser didFinishPickingMediaWithInfo:(NSDictionary<UIImagePickerControllerInfoKey,id> *)info;\n\n- (void)photoBrowser:(JMPhotoBrowser *)photoBrowser didSelectedImages:(NSArray *)selectedImages;\n\n- (void)photoBrowserDidDismissed;\n\n@end\n\n@interface JMPhotoBrowser : NSObject\n\n/// \u7167\u7247\u662f\u5426\u662f\u5355\u9009, \u9ed8\u8ba4\u4e3aYES\n@property (nonatomic, assign) BOOL singleSelect;\n/// \u591a\u9009\u6700\u5927\u9650\u5236, \u9ed8\u8ba4\u4e3a9\u5f20\n@property (nonatomic, assign) NSInteger maxSelectedCount;\n\n@property (nonatomic, strong) UIColor *footerViewBackgroundColor;\n\n@property (nonatomic, strong) UIColor *themeColor;\n\n@property (nonatomic, strong) UIColor *disableColor;\n\n@property (nonatomic, strong) UIImage *footerCheckImage;\n\n@property (nonatomic, strong) UIImage *footerNotCheckImage;\n\n@property (nonatomic, weak) id<JMPhotoBrowserDelegate> delegate;\n\n\n+ (JMPhotoBrowser *)browserWithDelegate:(id)delegate presentController:(UIViewController *)presentController;\n\n- (void)showActionSheet;\n\n- (void)showPhotoSelectView;\n\n@end\n\nNS_ASSUME_NONNULL_END\n"}
80,002
c
/* * Contains the entry point for the project, and defines the ISR vectors * Copyright (C) 2013 <NAME> * * Permission is hereby granted, free of charge, to any person obtaining * a copy of this software and associated documentation files (the * "Software"), to deal in the Software without restriction, including * without limitation the rights to use, copy, modify, merge, publish, * distribute, sublicense, and/or sell copies of the Software, and to * permit persons to whom the Software is furnished to do so, subject to * the following conditions: * * The above copyright notice and this permission notice shall be * included in all copies or substantial portions of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE * LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION * OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION * WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ /* * A function for each of the interrupt vectors is weakly defined with an alias * so it may be optionally overridden elsewhere in the project. */ #define alias(f) __attribute__ ((alias(#f))) #define weak __attribute__ ((weak)) /* Cortex-M# Core Interrupts */ weak void Reset_Handler(void); weak void NMI_Handler(void) alias (Default_Handler); weak void HardFault_Handler(void); /* LPCxxxx Chip Interrupts */ /* This is defined in the linker script */ extern void __StackLimit(void); /* * This array of interrupt vectors is decared in a special section so that the * linker script can position it at 0x00000000. */ __attribute__ ((section(".isr_vector"))) const void *isr_vectors[] = { /* Cortex-M3 Core Interrupts */ &__StackLimit, // The end of the stack. Reset_Handler, // The Reset handler NMI_Handler, // The NMI handler HardFault_Handler, // The Hard Fault Handler }; /* These are defined in the linker script */ extern unsigned int __etext; extern unsigned int __data_start__; extern unsigned int __data_end__; extern unsigned int __bss_start__; extern unsigned int __bss_end__; extern int main(void); /* The entry point to our program */ __attribute__ ((naked)) void Reset_Handler (void) { /* Load constants / initial values */ for (unsigned int *source = &__etext, *destination = &__data_start__; destination < &__data_end__; ) *destination++ = *source++; /* Zero out bss data */ for (unsigned int *destination = &__bss_start__; destination < &__bss_end__; ) *destination++ = 0; main(); /* Wait here forever so the chip doesn't go haywire */ while (1); } /* Default handler for undefined interrupts */ void Default_Handler(void) { /* You shouldn't have got here! There's been an undefined interrupt triggered somewhere.. */ while(1); } /* HardFault Handler */ void HardFault_Handler(void) { /* Drat! A HardFault */ while(1); }
36.87
82
(translation_unit) "/* \n * Contains the entry point for the project, and defines the ISR vectors\n * Copyright (C) 2013 <NAME>\n * \n * Permission is hereby granted, free of charge, to any person obtaining\n * a copy of this software and associated documentation files (the\n * "Software"), to deal in the Software without restriction, including\n * without limitation the rights to use, copy, modify, merge, publish,\n * distribute, sublicense, and/or sell copies of the Software, and to\n * permit persons to whom the Software is furnished to do so, subject to\n * the following conditions:\n * \n * The above copyright notice and this permission notice shall be\n * included in all copies or substantial portions of the Software.\n * \n * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,\n * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\n * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND\n * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE\n * LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION\n * OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION\n * WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n */\n\n/*\n * A function for each of the interrupt vectors is weakly defined with an alias\n * so it may be optionally overridden elsewhere in the project.\n */\n#define alias(f) __attribute__ ((alias(#f)))\n#define weak __attribute__ ((weak))\n\n/* Cortex-M# Core Interrupts */\nweak void Reset_Handler(void);\nweak void NMI_Handler(void) alias (Default_Handler);\nweak void HardFault_Handler(void);\n\n/* LPCxxxx Chip Interrupts */\n\n/* This is defined in the linker script */\nextern void __StackLimit(void);\n\n/*\n * This array of interrupt vectors is decared in a special section so that the\n * linker script can position it at 0x00000000.\n */\n__attribute__ ((section(".isr_vector")))\nconst void *isr_vectors[] = {\n /* Cortex-M3 Core Interrupts */\n &__StackLimit, // The end of the stack.\n Reset_Handler, // The Reset handler\n NMI_Handler, // The NMI handler\n HardFault_Handler, // The Hard Fault Handler\n};\n\n/* These are defined in the linker script */\nextern unsigned int __etext;\nextern unsigned int __data_start__;\nextern unsigned int __data_end__;\nextern unsigned int __bss_start__;\nextern unsigned int __bss_end__;\n\nextern int main(void);\n\n/* The entry point to our program */\n__attribute__ ((naked))\nvoid Reset_Handler (void) {\n\n /* Load constants / initial values */\n for (unsigned int *source = &__etext, *destination = &__data_start__;\n destination < &__data_end__; )\n *destination++ = *source++;\n\n /* Zero out bss data */\n for (unsigned int *destination = &__bss_start__;\n destination < &__bss_end__; )\n *destination++ = 0;\n\n main();\n \n /* Wait here forever so the chip doesn't go haywire */\n while (1);\n}\n/* Default handler for undefined interrupts */\nvoid Default_Handler(void) {\n /* You shouldn't have got here! There's been an undefined\n interrupt triggered somewhere.. */\n\n while(1);\n}\n/* HardFault Handler */\nvoid HardFault_Handler(void) {\n /* Drat! A HardFault */\n\n while(1);\n}\n" (comment) "/* \n * Contains the entry point for the project, and defines the ISR vectors\n * Copyright (C) 2013 <NAME>\n * \n * Permission is hereby granted, free of charge, to any person obtaining\n * a copy of this software and associated documentation files (the\n * "Software"), to deal in the Software without restriction, including\n * without limitation the rights to use, copy, modify, merge, publish,\n * distribute, sublicense, and/or sell copies of the Software, and to\n * permit persons to whom the Software is furnished to do so, subject to\n * the following conditions:\n * \n * The above copyright notice and this permission notice shall be\n * included in all copies or substantial portions of the Software.\n * \n * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,\n * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\n * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND\n * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE\n * LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION\n * OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION\n * WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n */" (comment) "/*\n * A function for each of the interrupt vectors is weakly defined with an alias\n * so it may be optionally overridden elsewhere in the project.\n */" (preproc_function_def) "#define alias(f) __attribute__ ((alias(#f)))\n" (#define) "#define" (identifier) "alias" (preproc_params) "(f)" (() "(" (identifier) "f" ()) ")" (preproc_arg) "__attribute__ ((alias(#f)))" (preproc_def) "#define weak __attribute__ ((weak))\n" (#define) "#define" (identifier) "weak" (preproc_arg) "__attribute__ ((weak))" (comment) "/* Cortex-M# Core Interrupts */" (declaration) "weak void Reset_Handler(void);" (type_identifier) "weak" (ERROR) "void" (identifier) "void" (function_declarator) "Reset_Handler(void)" (identifier) "Reset_Handler" (parameter_list) "(void)" (() "(" (parameter_declaration) "void" (primitive_type) "void" ()) ")" (;) ";" (declaration) "weak void" (type_identifier) "weak" (identifier) "void" (;) "" (declaration) "NMI_Handler(void) alias (Default_Handler);" (macro_type_specifier) "NMI_Handler(void)" (identifier) "NMI_Handler" (() "(" (type_descriptor) "void" (primitive_type) "void" ()) ")" (function_declarator) "alias (Default_Handler)" (identifier) "alias" (parameter_list) "(Default_Handler)" (() "(" (parameter_declaration) "Default_Handler" (type_identifier) "Default_Handler" ()) ")" (;) ";" (declaration) "weak void HardFault_Handler(void);" (type_identifier) "weak" (ERROR) "void" (identifier) "void" (function_declarator) "HardFault_Handler(void)" (identifier) "HardFault_Handler" (parameter_list) "(void)" (() "(" (parameter_declaration) "void" (primitive_type) "void" ()) ")" (;) ";" (comment) "/* LPCxxxx Chip Interrupts */" (comment) "/* This is defined in the linker script */" (declaration) "extern void __StackLimit(void);" (storage_class_specifier) "extern" (extern) "extern" (primitive_type) "void" (function_declarator) "__StackLimit(void)" (identifier) "__StackLimit" (parameter_list) "(void)" (() "(" (parameter_declaration) "void" (primitive_type) "void" ()) ")" (;) ";" (comment) "/*\n * This array of interrupt vectors is decared in a special section so that the\n * linker script can position it at 0x00000000.\n */" (declaration) "__attribute__ ((section(".isr_vector")))\nconst void *isr_vectors[] = {\n /* Cortex-M3 Core Interrupts */\n &__StackLimit, // The end of the stack.\n Reset_Handler, // The Reset handler\n NMI_Handler, // The NMI handler\n HardFault_Handler, // The Hard Fault Handler\n};" (attribute_specifier) "__attribute__ ((section(".isr_vector")))" (__attribute__) "__attribute__" (() "(" (argument_list) "(section(".isr_vector"))" (() "(" (call_expression) "section(".isr_vector")" (identifier) "section" (argument_list) "(".isr_vector")" (() "(" (string_literal) "".isr_vector"" (") """ (string_content) ".isr_vector" (") """ ()) ")" ()) ")" ()) ")" (type_qualifier) "const" (const) "const" (primitive_type) "void" (init_declarator) "*isr_vectors[] = {\n /* Cortex-M3 Core Interrupts */\n &__StackLimit, // The end of the stack.\n Reset_Handler, // The Reset handler\n NMI_Handler, // The NMI handler\n HardFault_Handler, // The Hard Fault Handler\n}" (pointer_declarator) "*isr_vectors[]" (*) "*" (array_declarator) "isr_vectors[]" (identifier) "isr_vectors" ([) "[" (]) "]" (=) "=" (initializer_list) "{\n /* Cortex-M3 Core Interrupts */\n &__StackLimit, // The end of the stack.\n Reset_Handler, // The Reset handler\n NMI_Handler, // The NMI handler\n HardFault_Handler, // The Hard Fault Handler\n}" ({) "{" (comment) "/* Cortex-M3 Core Interrupts */" (pointer_expression) "&__StackLimit" (&) "&" (identifier) "__StackLimit" (,) "," (comment) "// The end of the stack." (identifier) "Reset_Handler" (,) "," (comment) "// The Reset handler" (identifier) "NMI_Handler" (,) "," (comment) "// The NMI handler" (identifier) "HardFault_Handler" (,) "," (comment) "// The Hard Fault Handler" (}) "}" (;) ";" (comment) "/* These are defined in the linker script */" (declaration) "extern unsigned int __etext;" (storage_class_specifier) "extern" (extern) "extern" (sized_type_specifier) "unsigned int" (unsigned) "unsigned" (primitive_type) "int" (identifier) "__etext" (;) ";" (declaration) "extern unsigned int __data_start__;" (storage_class_specifier) "extern" (extern) "extern" (sized_type_specifier) "unsigned int" (unsigned) "unsigned" (primitive_type) "int" (identifier) "__data_start__" (;) ";" (declaration) "extern unsigned int __data_end__;" (storage_class_specifier) "extern" (extern) "extern" (sized_type_specifier) "unsigned int" (unsigned) "unsigned" (primitive_type) "int" (identifier) "__data_end__" (;) ";" (declaration) "extern unsigned int __bss_start__;" (storage_class_specifier) "extern" (extern) "extern" (sized_type_specifier) "unsigned int" (unsigned) "unsigned" (primitive_type) "int" (identifier) "__bss_start__" (;) ";" (declaration) "extern unsigned int __bss_end__;" (storage_class_specifier) "extern" (extern) "extern" (sized_type_specifier) "unsigned int" (unsigned) "unsigned" (primitive_type) "int" (identifier) "__bss_end__" (;) ";" (declaration) "extern int main(void);" (storage_class_specifier) "extern" (extern) "extern" (primitive_type) "int" (function_declarator) "main(void)" (identifier) "main" (parameter_list) "(void)" (() "(" (parameter_declaration) "void" (primitive_type) "void" ()) ")" (;) ";" (comment) "/* The entry point to our program */" (function_definition) "__attribute__ ((naked))\nvoid Reset_Handler (void) {\n\n /* Load constants / initial values */\n for (unsigned int *source = &__etext, *destination = &__data_start__;\n destination < &__data_end__; )\n *destination++ = *source++;\n\n /* Zero out bss data */\n for (unsigned int *destination = &__bss_start__;\n destination < &__bss_end__; )\n *destination++ = 0;\n\n main();\n \n /* Wait here forever so the chip doesn't go haywire */\n while (1);\n}" (attribute_specifier) "__attribute__ ((naked))" (__attribute__) "__attribute__" (() "(" (argument_list) "(naked)" (() "(" (identifier) "naked" ()) ")" ()) ")" (primitive_type) "void" (function_declarator) "Reset_Handler (void)" (identifier) "Reset_Handler" (parameter_list) "(void)" (() "(" (parameter_declaration) "void" (primitive_type) "void" ()) ")" (compound_statement) "{\n\n /* Load constants / initial values */\n for (unsigned int *source = &__etext, *destination = &__data_start__;\n destination < &__data_end__; )\n *destination++ = *source++;\n\n /* Zero out bss data */\n for (unsigned int *destination = &__bss_start__;\n destination < &__bss_end__; )\n *destination++ = 0;\n\n main();\n \n /* Wait here forever so the chip doesn't go haywire */\n while (1);\n}" ({) "{" (comment) "/* Load constants / initial values */" (for_statement) "for (unsigned int *source = &__etext, *destination = &__data_start__;\n destination < &__data_end__; )\n *destination++ = *source++;" (for) "for" (() "(" (declaration) "unsigned int *source = &__etext, *destination = &__data_start__;" (sized_type_specifier) "unsigned int" (unsigned) "unsigned" (primitive_type) "int" (init_declarator) "*source = &__etext" (pointer_declarator) "*source" (*) "*" (identifier) "source" (=) "=" (pointer_expression) "&__etext" (&) "&" (identifier) "__etext" (,) "," (init_declarator) "*destination = &__data_start__" (pointer_declarator) "*destination" (*) "*" (identifier) "destination" (=) "=" (pointer_expression) "&__data_start__" (&) "&" (identifier) "__data_start__" (;) ";" (binary_expression) "destination < &__data_end__" (identifier) "destination" (<) "<" (pointer_expression) "&__data_end__" (&) "&" (identifier) "__data_end__" (;) ";" ()) ")" (expression_statement) "*destination++ = *source++;" (assignment_expression) "*destination++ = *source++" (pointer_expression) "*destination++" (*) "*" (update_expression) "destination++" (identifier) "destination" (++) "++" (=) "=" (pointer_expression) "*source++" (*) "*" (update_expression) "source++" (identifier) "source" (++) "++" (;) ";" (comment) "/* Zero out bss data */" (for_statement) "for (unsigned int *destination = &__bss_start__;\n destination < &__bss_end__; )\n *destination++ = 0;" (for) "for" (() "(" (declaration) "unsigned int *destination = &__bss_start__;" (sized_type_specifier) "unsigned int" (unsigned) "unsigned" (primitive_type) "int" (init_declarator) "*destination = &__bss_start__" (pointer_declarator) "*destination" (*) "*" (identifier) "destination" (=) "=" (pointer_expression) "&__bss_start__" (&) "&" (identifier) "__bss_start__" (;) ";" (binary_expression) "destination < &__bss_end__" (identifier) "destination" (<) "<" (pointer_expression) "&__bss_end__" (&) "&" (identifier) "__bss_end__" (;) ";" ()) ")" (expression_statement) "*destination++ = 0;" (assignment_expression) "*destination++ = 0" (pointer_expression) "*destination++" (*) "*" (update_expression) "destination++" (identifier) "destination" (++) "++" (=) "=" (number_literal) "0" (;) ";" (expression_statement) "main();" (call_expression) "main()" (identifier) "main" (argument_list) "()" (() "(" ()) ")" (;) ";" (comment) "/* Wait here forever so the chip doesn't go haywire */" (while_statement) "while (1);" (while) "while" (parenthesized_expression) "(1)" (() "(" (number_literal) "1" ()) ")" (expression_statement) ";" (;) ";" (}) "}" (comment) "/* Default handler for undefined interrupts */" (function_definition) "void Default_Handler(void) {\n /* You shouldn't have got here! There's been an undefined\n interrupt triggered somewhere.. */\n\n while(1);\n}" (primitive_type) "void" (function_declarator) "Default_Handler(void)" (identifier) "Default_Handler" (parameter_list) "(void)" (() "(" (parameter_declaration) "void" (primitive_type) "void" ()) ")" (compound_statement) "{\n /* You shouldn't have got here! There's been an undefined\n interrupt triggered somewhere.. */\n\n while(1);\n}" ({) "{" (comment) "/* You shouldn't have got here! There's been an undefined\n interrupt triggered somewhere.. */" (while_statement) "while(1);" (while) "while" (parenthesized_expression) "(1)" (() "(" (number_literal) "1" ()) ")" (expression_statement) ";" (;) ";" (}) "}" (comment) "/* HardFault Handler */" (function_definition) "void HardFault_Handler(void) {\n /* Drat! A HardFault */\n\n while(1);\n}" (primitive_type) "void" (function_declarator) "HardFault_Handler(void)" (identifier) "HardFault_Handler" (parameter_list) "(void)" (() "(" (parameter_declaration) "void" (primitive_type) "void" ()) ")" (compound_statement) "{\n /* Drat! A HardFault */\n\n while(1);\n}" ({) "{" (comment) "/* Drat! A HardFault */" (while_statement) "while(1);" (while) "while" (parenthesized_expression) "(1)" (() "(" (number_literal) "1" ()) ")" (expression_statement) ";" (;) ";" (}) "}"
338
2
{"language": "c", "success": true, "metadata": {"lines": 82, "avg_line_length": 36.87, "nodes": 213, "errors": 0, "source_hash": "ed2bb200c46652b0abe056ce90cc45411e8c6ee8e843997107bd52d741266b9b", "categorized_nodes": 127}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_function_def", "text": "#define alias(f) __attribute__ ((alias(#f)))\n", "parent": null, "children": [1, 2, 3, 5], "start_point": {"row": 28, "column": 0}, "end_point": {"row": 29, "column": 0}}, {"id": 1, "type": "#define", "text": "#define", "parent": 0, "children": [], "start_point": {"row": 28, "column": 0}, "end_point": {"row": 28, "column": 7}}, {"id": 2, "type": "identifier", "text": "alias", "parent": 0, "children": [], "start_point": {"row": 28, "column": 8}, "end_point": {"row": 28, "column": 13}}, {"id": 3, "type": "preproc_params", "text": "(f)", "parent": 0, "children": [4], "start_point": {"row": 28, "column": 13}, "end_point": {"row": 28, "column": 16}}, {"id": 4, "type": "identifier", "text": "f", "parent": 3, "children": [], "start_point": {"row": 28, "column": 14}, "end_point": {"row": 28, "column": 15}}, {"id": 5, "type": "preproc_arg", "text": "__attribute__ ((alias(#f)))", "parent": 0, "children": [], "start_point": {"row": 28, "column": 17}, "end_point": {"row": 28, "column": 44}}, {"id": 6, "type": "preproc_def", "text": "#define weak __attribute__ ((weak))\n", "parent": null, "children": [7, 8, 9], "start_point": {"row": 29, "column": 0}, "end_point": {"row": 30, "column": 0}}, {"id": 7, "type": "#define", "text": "#define", "parent": 6, "children": [], "start_point": {"row": 29, "column": 0}, "end_point": {"row": 29, "column": 7}}, {"id": 8, "type": "identifier", "text": "weak", "parent": 6, "children": [], "start_point": {"row": 29, "column": 8}, "end_point": {"row": 29, "column": 12}}, {"id": 9, "type": "preproc_arg", "text": "__attribute__ ((weak))", "parent": 6, "children": [], "start_point": {"row": 29, "column": 13}, "end_point": {"row": 29, "column": 35}}, {"id": 10, "type": "declaration", "text": "weak void Reset_Handler(void);", "parent": null, "children": [11, 12, 14], "start_point": {"row": 32, "column": 0}, "end_point": {"row": 32, "column": 30}}, {"id": 11, "type": "type_identifier", "text": "weak", "parent": 10, "children": [], "start_point": {"row": 32, "column": 0}, "end_point": {"row": 32, "column": 4}}, {"id": 12, "type": "ERROR", "text": "void", "parent": 10, "children": [13], "start_point": {"row": 32, "column": 5}, "end_point": {"row": 32, "column": 9}}, {"id": 13, "type": "identifier", "text": "void", "parent": 12, "children": [], "start_point": {"row": 32, "column": 5}, "end_point": {"row": 32, "column": 9}}, {"id": 14, "type": "function_declarator", "text": "Reset_Handler(void)", "parent": 10, "children": [15, 16], "start_point": {"row": 32, "column": 10}, "end_point": {"row": 32, "column": 29}}, {"id": 15, "type": "identifier", "text": "Reset_Handler", "parent": 14, "children": [], "start_point": {"row": 32, "column": 10}, "end_point": {"row": 32, "column": 23}}, {"id": 16, "type": "parameter_list", "text": "(void)", "parent": 14, "children": [17], "start_point": {"row": 32, "column": 23}, "end_point": {"row": 32, "column": 29}}, {"id": 17, "type": "parameter_declaration", "text": "void", "parent": 16, "children": [18], "start_point": {"row": 32, "column": 24}, "end_point": {"row": 32, "column": 28}}, {"id": 18, "type": "primitive_type", "text": "void", "parent": 17, "children": [], "start_point": {"row": 32, "column": 24}, "end_point": {"row": 32, "column": 28}}, {"id": 19, "type": "declaration", "text": "weak void", "parent": null, "children": [20, 21], "start_point": {"row": 33, "column": 0}, "end_point": {"row": 33, "column": 9}}, {"id": 20, "type": "type_identifier", "text": "weak", "parent": 19, "children": [], "start_point": {"row": 33, "column": 0}, "end_point": {"row": 33, "column": 4}}, {"id": 21, "type": "identifier", "text": "void", "parent": 19, "children": [], "start_point": {"row": 33, "column": 5}, "end_point": {"row": 33, "column": 9}}, {"id": 22, "type": "declaration", "text": "NMI_Handler(void) alias (Default_Handler);", "parent": null, "children": [23, 27], "start_point": {"row": 33, "column": 10}, "end_point": {"row": 33, "column": 52}}, {"id": 23, "type": "macro_type_specifier", "text": "NMI_Handler(void)", "parent": 22, "children": [24, 25], "start_point": {"row": 33, "column": 10}, "end_point": {"row": 33, "column": 27}}, {"id": 24, "type": "identifier", "text": "NMI_Handler", "parent": 23, "children": [], "start_point": {"row": 33, "column": 10}, "end_point": {"row": 33, "column": 21}}, {"id": 25, "type": "type_descriptor", "text": "void", "parent": 23, "children": [26], "start_point": {"row": 33, "column": 22}, "end_point": {"row": 33, "column": 26}}, {"id": 26, "type": "primitive_type", "text": "void", "parent": 25, "children": [], "start_point": {"row": 33, "column": 22}, "end_point": {"row": 33, "column": 26}}, {"id": 27, "type": "function_declarator", "text": "alias (Default_Handler)", "parent": 22, "children": [28, 29], "start_point": {"row": 33, "column": 28}, "end_point": {"row": 33, "column": 51}}, {"id": 28, "type": "identifier", "text": "alias", "parent": 27, "children": [], "start_point": {"row": 33, "column": 28}, "end_point": {"row": 33, "column": 33}}, {"id": 29, "type": "parameter_list", "text": "(Default_Handler)", "parent": 27, "children": [30], "start_point": {"row": 33, "column": 34}, "end_point": {"row": 33, "column": 51}}, {"id": 30, "type": "parameter_declaration", "text": "Default_Handler", "parent": 29, "children": [31], "start_point": {"row": 33, "column": 35}, "end_point": {"row": 33, "column": 50}}, {"id": 31, "type": "type_identifier", "text": "Default_Handler", "parent": 30, "children": [], "start_point": {"row": 33, "column": 35}, "end_point": {"row": 33, "column": 50}}, {"id": 32, "type": "declaration", "text": "weak void HardFault_Handler(void);", "parent": null, "children": [33, 34, 36], "start_point": {"row": 34, "column": 0}, "end_point": {"row": 34, "column": 34}}, {"id": 33, "type": "type_identifier", "text": "weak", "parent": 32, "children": [], "start_point": {"row": 34, "column": 0}, "end_point": {"row": 34, "column": 4}}, {"id": 34, "type": "ERROR", "text": "void", "parent": 32, "children": [35], "start_point": {"row": 34, "column": 5}, "end_point": {"row": 34, "column": 9}}, {"id": 35, "type": "identifier", "text": "void", "parent": 34, "children": [], "start_point": {"row": 34, "column": 5}, "end_point": {"row": 34, "column": 9}}, {"id": 36, "type": "function_declarator", "text": "HardFault_Handler(void)", "parent": 32, "children": [37, 38], "start_point": {"row": 34, "column": 10}, "end_point": {"row": 34, "column": 33}}, {"id": 37, "type": "identifier", "text": "HardFault_Handler", "parent": 36, "children": [], "start_point": {"row": 34, "column": 10}, "end_point": {"row": 34, "column": 27}}, {"id": 38, "type": "parameter_list", "text": "(void)", "parent": 36, "children": [39], "start_point": {"row": 34, "column": 27}, "end_point": {"row": 34, "column": 33}}, {"id": 39, "type": "parameter_declaration", "text": "void", "parent": 38, "children": [40], "start_point": {"row": 34, "column": 28}, "end_point": {"row": 34, "column": 32}}, {"id": 40, "type": "primitive_type", "text": "void", "parent": 39, "children": [], "start_point": {"row": 34, "column": 28}, "end_point": {"row": 34, "column": 32}}, {"id": 41, "type": "declaration", "text": "extern void __StackLimit(void);", "parent": null, "children": [42, 44, 45], "start_point": {"row": 39, "column": 0}, "end_point": {"row": 39, "column": 31}}, {"id": 42, "type": "storage_class_specifier", "text": "extern", "parent": 41, "children": [43], "start_point": {"row": 39, "column": 0}, "end_point": {"row": 39, "column": 6}}, {"id": 43, "type": "extern", "text": "extern", "parent": 42, "children": [], "start_point": {"row": 39, "column": 0}, "end_point": {"row": 39, "column": 6}}, {"id": 44, "type": "primitive_type", "text": "void", "parent": 41, "children": [], "start_point": {"row": 39, "column": 7}, "end_point": {"row": 39, "column": 11}}, {"id": 45, "type": "function_declarator", "text": "__StackLimit(void)", "parent": 41, "children": [46, 47], "start_point": {"row": 39, "column": 12}, "end_point": {"row": 39, "column": 30}}, {"id": 46, "type": "identifier", "text": "__StackLimit", "parent": 45, "children": [], "start_point": {"row": 39, "column": 12}, "end_point": {"row": 39, "column": 24}}, {"id": 47, "type": "parameter_list", "text": "(void)", "parent": 45, "children": [48], "start_point": {"row": 39, "column": 24}, "end_point": {"row": 39, "column": 30}}, {"id": 48, "type": "parameter_declaration", "text": "void", "parent": 47, "children": [49], "start_point": {"row": 39, "column": 25}, "end_point": {"row": 39, "column": 29}}, {"id": 49, "type": "primitive_type", "text": "void", "parent": 48, "children": [], "start_point": {"row": 39, "column": 25}, "end_point": {"row": 39, "column": 29}}, {"id": 50, "type": "declaration", "text": "__attribute__ ((section(\".isr_vector\")))\nconst void *isr_vectors[] = {\n /* Cortex-M3 Core Interrupts */\n &__StackLimit,\t // The end of the stack.\n Reset_Handler,\t // The Reset handler\n NMI_Handler,\t\t // The NMI handler\n HardFault_Handler,\t // The Hard Fault Handler\n};", "parent": null, "children": [51, 58, 59], "start_point": {"row": 45, "column": 0}, "end_point": {"row": 52, "column": 2}}, {"id": 51, "type": "attribute_specifier", "text": "__attribute__ ((section(\".isr_vector\")))", "parent": 50, "children": [52, 53], "start_point": {"row": 45, "column": 0}, "end_point": {"row": 45, "column": 40}}, {"id": 52, "type": "__attribute__", "text": "__attribute__", "parent": 51, "children": [], "start_point": {"row": 45, "column": 0}, "end_point": {"row": 45, "column": 13}}, {"id": 53, "type": "argument_list", "text": "(section(\".isr_vector\"))", "parent": 51, "children": [54], "start_point": {"row": 45, "column": 15}, "end_point": {"row": 45, "column": 39}}, {"id": 54, "type": "call_expression", "text": "section(\".isr_vector\")", "parent": 53, "children": [55, 56], "start_point": {"row": 45, "column": 16}, "end_point": {"row": 45, "column": 38}}, {"id": 55, "type": "identifier", "text": "section", "parent": 54, "children": [], "start_point": {"row": 45, "column": 16}, "end_point": {"row": 45, "column": 23}}, {"id": 56, "type": "argument_list", "text": "(\".isr_vector\")", "parent": 54, "children": [57], "start_point": {"row": 45, "column": 23}, "end_point": {"row": 45, "column": 38}}, {"id": 57, "type": "string_literal", "text": "\".isr_vector\"", "parent": 56, "children": [], "start_point": {"row": 45, "column": 24}, "end_point": {"row": 45, "column": 37}}, {"id": 58, "type": "primitive_type", "text": "void", "parent": 50, "children": [], "start_point": {"row": 46, "column": 6}, "end_point": {"row": 46, "column": 10}}, {"id": 59, "type": "init_declarator", "text": "*isr_vectors[] = {\n /* Cortex-M3 Core Interrupts */\n &__StackLimit,\t // The end of the stack.\n Reset_Handler,\t // The Reset handler\n NMI_Handler,\t\t // The NMI handler\n HardFault_Handler,\t // The Hard Fault Handler\n}", "parent": 50, "children": [60, 64, 65], "start_point": {"row": 46, "column": 11}, "end_point": {"row": 52, "column": 1}}, {"id": 60, "type": "pointer_declarator", "text": "*isr_vectors[]", "parent": 59, "children": [61, 62], "start_point": {"row": 46, "column": 11}, "end_point": {"row": 46, "column": 25}}, {"id": 61, "type": "*", "text": "*", "parent": 60, "children": [], "start_point": {"row": 46, "column": 11}, "end_point": {"row": 46, "column": 12}}, {"id": 62, "type": "array_declarator", "text": "isr_vectors[]", "parent": 60, "children": [63], "start_point": {"row": 46, "column": 12}, "end_point": {"row": 46, "column": 25}}, {"id": 63, "type": "identifier", "text": "isr_vectors", "parent": 62, "children": [], "start_point": {"row": 46, "column": 12}, "end_point": {"row": 46, "column": 23}}, {"id": 64, "type": "=", "text": "=", "parent": 59, "children": [], "start_point": {"row": 46, "column": 26}, "end_point": {"row": 46, "column": 27}}, {"id": 65, "type": "initializer_list", "text": "{\n /* Cortex-M3 Core Interrupts */\n &__StackLimit,\t // The end of the stack.\n Reset_Handler,\t // The Reset handler\n NMI_Handler,\t\t // The NMI handler\n HardFault_Handler,\t // The Hard Fault Handler\n}", "parent": 59, "children": [66, 68, 69, 70], "start_point": {"row": 46, "column": 28}, "end_point": {"row": 52, "column": 1}}, {"id": 66, "type": "pointer_expression", "text": "&__StackLimit", "parent": 65, "children": [67], "start_point": {"row": 48, "column": 2}, "end_point": {"row": 48, "column": 15}}, {"id": 67, "type": "identifier", "text": "__StackLimit", "parent": 66, "children": [], "start_point": {"row": 48, "column": 3}, "end_point": {"row": 48, "column": 15}}, {"id": 68, "type": "identifier", "text": "Reset_Handler", "parent": 65, "children": [], "start_point": {"row": 49, "column": 2}, "end_point": {"row": 49, "column": 15}}, {"id": 69, "type": "identifier", "text": "NMI_Handler", "parent": 65, "children": [], "start_point": {"row": 50, "column": 2}, "end_point": {"row": 50, "column": 13}}, {"id": 70, "type": "identifier", "text": "HardFault_Handler", "parent": 65, "children": [], "start_point": {"row": 51, "column": 2}, "end_point": {"row": 51, "column": 19}}, {"id": 71, "type": "declaration", "text": "extern unsigned int __etext;", "parent": null, "children": [72, 74, 77], "start_point": {"row": 55, "column": 0}, "end_point": {"row": 55, "column": 28}}, {"id": 72, "type": "storage_class_specifier", "text": "extern", "parent": 71, "children": [73], "start_point": {"row": 55, "column": 0}, "end_point": {"row": 55, "column": 6}}, {"id": 73, "type": "extern", "text": "extern", "parent": 72, "children": [], "start_point": {"row": 55, "column": 0}, "end_point": {"row": 55, "column": 6}}, {"id": 74, "type": "sized_type_specifier", "text": "unsigned int", "parent": 71, "children": [75, 76], "start_point": {"row": 55, "column": 7}, "end_point": {"row": 55, "column": 19}}, {"id": 75, "type": "unsigned", "text": "unsigned", "parent": 74, "children": [], "start_point": {"row": 55, "column": 7}, "end_point": {"row": 55, "column": 15}}, {"id": 76, "type": "primitive_type", "text": "int", "parent": 74, "children": [], "start_point": {"row": 55, "column": 16}, "end_point": {"row": 55, "column": 19}}, {"id": 77, "type": "identifier", "text": "__etext", "parent": 71, "children": [], "start_point": {"row": 55, "column": 20}, "end_point": {"row": 55, "column": 27}}, {"id": 78, "type": "declaration", "text": "extern unsigned int __data_start__;", "parent": null, "children": [79, 81, 84], "start_point": {"row": 56, "column": 0}, "end_point": {"row": 56, "column": 35}}, {"id": 79, "type": "storage_class_specifier", "text": "extern", "parent": 78, "children": [80], "start_point": {"row": 56, "column": 0}, "end_point": {"row": 56, "column": 6}}, {"id": 80, "type": "extern", "text": "extern", "parent": 79, "children": [], "start_point": {"row": 56, "column": 0}, "end_point": {"row": 56, "column": 6}}, {"id": 81, "type": "sized_type_specifier", "text": "unsigned int", "parent": 78, "children": [82, 83], "start_point": {"row": 56, "column": 7}, "end_point": {"row": 56, "column": 19}}, {"id": 82, "type": "unsigned", "text": "unsigned", "parent": 81, "children": [], "start_point": {"row": 56, "column": 7}, "end_point": {"row": 56, "column": 15}}, {"id": 83, "type": "primitive_type", "text": "int", "parent": 81, "children": [], "start_point": {"row": 56, "column": 16}, "end_point": {"row": 56, "column": 19}}, {"id": 84, "type": "identifier", "text": "__data_start__", "parent": 78, "children": [], "start_point": {"row": 56, "column": 20}, "end_point": {"row": 56, "column": 34}}, {"id": 85, "type": "declaration", "text": "extern unsigned int __data_end__;", "parent": null, "children": [86, 88, 91], "start_point": {"row": 57, "column": 0}, "end_point": {"row": 57, "column": 33}}, {"id": 86, "type": "storage_class_specifier", "text": "extern", "parent": 85, "children": [87], "start_point": {"row": 57, "column": 0}, "end_point": {"row": 57, "column": 6}}, {"id": 87, "type": "extern", "text": "extern", "parent": 86, "children": [], "start_point": {"row": 57, "column": 0}, "end_point": {"row": 57, "column": 6}}, {"id": 88, "type": "sized_type_specifier", "text": "unsigned int", "parent": 85, "children": [89, 90], "start_point": {"row": 57, "column": 7}, "end_point": {"row": 57, "column": 19}}, {"id": 89, "type": "unsigned", "text": "unsigned", "parent": 88, "children": [], "start_point": {"row": 57, "column": 7}, "end_point": {"row": 57, "column": 15}}, {"id": 90, "type": "primitive_type", "text": "int", "parent": 88, "children": [], "start_point": {"row": 57, "column": 16}, "end_point": {"row": 57, "column": 19}}, {"id": 91, "type": "identifier", "text": "__data_end__", "parent": 85, "children": [], "start_point": {"row": 57, "column": 20}, "end_point": {"row": 57, "column": 32}}, {"id": 92, "type": "declaration", "text": "extern unsigned int __bss_start__;", "parent": null, "children": [93, 95, 98], "start_point": {"row": 58, "column": 0}, "end_point": {"row": 58, "column": 34}}, {"id": 93, "type": "storage_class_specifier", "text": "extern", "parent": 92, "children": [94], "start_point": {"row": 58, "column": 0}, "end_point": {"row": 58, "column": 6}}, {"id": 94, "type": "extern", "text": "extern", "parent": 93, "children": [], "start_point": {"row": 58, "column": 0}, "end_point": {"row": 58, "column": 6}}, {"id": 95, "type": "sized_type_specifier", "text": "unsigned int", "parent": 92, "children": [96, 97], "start_point": {"row": 58, "column": 7}, "end_point": {"row": 58, "column": 19}}, {"id": 96, "type": "unsigned", "text": "unsigned", "parent": 95, "children": [], "start_point": {"row": 58, "column": 7}, "end_point": {"row": 58, "column": 15}}, {"id": 97, "type": "primitive_type", "text": "int", "parent": 95, "children": [], "start_point": {"row": 58, "column": 16}, "end_point": {"row": 58, "column": 19}}, {"id": 98, "type": "identifier", "text": "__bss_start__", "parent": 92, "children": [], "start_point": {"row": 58, "column": 20}, "end_point": {"row": 58, "column": 33}}, {"id": 99, "type": "declaration", "text": "extern unsigned int __bss_end__;", "parent": null, "children": [100, 102, 105], "start_point": {"row": 59, "column": 0}, "end_point": {"row": 59, "column": 32}}, {"id": 100, "type": "storage_class_specifier", "text": "extern", "parent": 99, "children": [101], "start_point": {"row": 59, "column": 0}, "end_point": {"row": 59, "column": 6}}, {"id": 101, "type": "extern", "text": "extern", "parent": 100, "children": [], "start_point": {"row": 59, "column": 0}, "end_point": {"row": 59, "column": 6}}, {"id": 102, "type": "sized_type_specifier", "text": "unsigned int", "parent": 99, "children": [103, 104], "start_point": {"row": 59, "column": 7}, "end_point": {"row": 59, "column": 19}}, {"id": 103, "type": "unsigned", "text": "unsigned", "parent": 102, "children": [], "start_point": {"row": 59, "column": 7}, "end_point": {"row": 59, "column": 15}}, {"id": 104, "type": "primitive_type", "text": "int", "parent": 102, "children": [], "start_point": {"row": 59, "column": 16}, "end_point": {"row": 59, "column": 19}}, {"id": 105, "type": "identifier", "text": "__bss_end__", "parent": 99, "children": [], "start_point": {"row": 59, "column": 20}, "end_point": {"row": 59, "column": 31}}, {"id": 106, "type": "declaration", "text": "extern int main(void);", "parent": null, "children": [107, 109, 110], "start_point": {"row": 61, "column": 0}, "end_point": {"row": 61, "column": 22}}, {"id": 107, "type": "storage_class_specifier", "text": "extern", "parent": 106, "children": [108], "start_point": {"row": 61, "column": 0}, "end_point": {"row": 61, "column": 6}}, {"id": 108, "type": "extern", "text": "extern", "parent": 107, "children": [], "start_point": {"row": 61, "column": 0}, "end_point": {"row": 61, "column": 6}}, {"id": 109, "type": "primitive_type", "text": "int", "parent": 106, "children": [], "start_point": {"row": 61, "column": 7}, "end_point": {"row": 61, "column": 10}}, {"id": 110, "type": "function_declarator", "text": "main(void)", "parent": 106, "children": [111, 112], "start_point": {"row": 61, "column": 11}, "end_point": {"row": 61, "column": 21}}, {"id": 111, "type": "identifier", "text": "main", "parent": 110, "children": [], "start_point": {"row": 61, "column": 11}, "end_point": {"row": 61, "column": 15}}, {"id": 112, "type": "parameter_list", "text": "(void)", "parent": 110, "children": [113], "start_point": {"row": 61, "column": 15}, "end_point": {"row": 61, "column": 21}}, {"id": 113, "type": "parameter_declaration", "text": "void", "parent": 112, "children": [114], "start_point": {"row": 61, "column": 16}, "end_point": {"row": 61, "column": 20}}, {"id": 114, "type": "primitive_type", "text": "void", "parent": 113, "children": [], "start_point": {"row": 61, "column": 16}, "end_point": {"row": 61, "column": 20}}, {"id": 115, "type": "function_definition", "text": "__attribute__ ((naked))\nvoid Reset_Handler (void) {\n\n /* Load constants / initial values */\n for (unsigned int *source = &__etext, *destination = &__data_start__;\n destination < &__data_end__; )\n *destination++ = *source++;\n\n /* Zero out bss data */\n for (unsigned int *destination = &__bss_start__;\n destination < &__bss_end__; )\n *destination++ = 0;\n\n main();\n \n /* Wait here forever so the chip doesn't go haywire */\n while (1);\n}", "parent": null, "children": [116, 120, 121], "start_point": {"row": 64, "column": 0}, "end_point": {"row": 81, "column": 1}}, {"id": 116, "type": "attribute_specifier", "text": "__attribute__ ((naked))", "parent": 115, "children": [117, 118], "start_point": {"row": 64, "column": 0}, "end_point": {"row": 64, "column": 23}}, {"id": 117, "type": "__attribute__", "text": "__attribute__", "parent": 116, "children": [], "start_point": {"row": 64, "column": 0}, "end_point": {"row": 64, "column": 13}}, {"id": 118, "type": "argument_list", "text": "(naked)", "parent": 116, "children": [119], "start_point": {"row": 64, "column": 15}, "end_point": {"row": 64, "column": 22}}, {"id": 119, "type": "identifier", "text": "naked", "parent": 118, "children": [], "start_point": {"row": 64, "column": 16}, "end_point": {"row": 64, "column": 21}}, {"id": 120, "type": "primitive_type", "text": "void", "parent": 115, "children": [], "start_point": {"row": 65, "column": 0}, "end_point": {"row": 65, "column": 4}}, {"id": 121, "type": "function_declarator", "text": "Reset_Handler (void)", "parent": 115, "children": [122, 123], "start_point": {"row": 65, "column": 5}, "end_point": {"row": 65, "column": 25}}, {"id": 122, "type": "identifier", "text": "Reset_Handler", "parent": 121, "children": [], "start_point": {"row": 65, "column": 5}, "end_point": {"row": 65, "column": 18}}, {"id": 123, "type": "parameter_list", "text": "(void)", "parent": 121, "children": [124], "start_point": {"row": 65, "column": 19}, "end_point": {"row": 65, "column": 25}}, {"id": 124, "type": "parameter_declaration", "text": "void", "parent": 123, "children": [125], "start_point": {"row": 65, "column": 20}, "end_point": {"row": 65, "column": 24}}, {"id": 125, "type": "primitive_type", "text": "void", "parent": 124, "children": [], "start_point": {"row": 65, "column": 20}, "end_point": {"row": 65, "column": 24}}, {"id": 126, "type": "for_statement", "text": "for (unsigned int *source = &__etext, *destination = &__data_start__;\n destination < &__data_end__; )\n *destination++ = *source++;", "parent": 115, "children": [127, 145], "start_point": {"row": 68, "column": 2}, "end_point": {"row": 70, "column": 31}}, {"id": 127, "type": "declaration", "text": "unsigned int *source = &__etext, *destination = &__data_start__;", "parent": 126, "children": [128, 131, 138], "start_point": {"row": 68, "column": 7}, "end_point": {"row": 68, "column": 71}}, {"id": 128, "type": "sized_type_specifier", "text": "unsigned int", "parent": 127, "children": [129, 130], "start_point": {"row": 68, "column": 7}, "end_point": {"row": 68, "column": 19}}, {"id": 129, "type": "unsigned", "text": "unsigned", "parent": 128, "children": [], "start_point": {"row": 68, "column": 7}, "end_point": {"row": 68, "column": 15}}, {"id": 130, "type": "primitive_type", "text": "int", "parent": 128, "children": [], "start_point": {"row": 68, "column": 16}, "end_point": {"row": 68, "column": 19}}, {"id": 131, "type": "init_declarator", "text": "*source = &__etext", "parent": 127, "children": [132, 135, 136], "start_point": {"row": 68, "column": 20}, "end_point": {"row": 68, "column": 38}}, {"id": 132, "type": "pointer_declarator", "text": "*source", "parent": 131, "children": [133, 134], "start_point": {"row": 68, "column": 20}, "end_point": {"row": 68, "column": 27}}, {"id": 133, "type": "*", "text": "*", "parent": 132, "children": [], "start_point": {"row": 68, "column": 20}, "end_point": {"row": 68, "column": 21}}, {"id": 134, "type": "identifier", "text": "source", "parent": 132, "children": [], "start_point": {"row": 68, "column": 21}, "end_point": {"row": 68, "column": 27}}, {"id": 135, "type": "=", "text": "=", "parent": 131, "children": [], "start_point": {"row": 68, "column": 28}, "end_point": {"row": 68, "column": 29}}, {"id": 136, "type": "pointer_expression", "text": "&__etext", "parent": 131, "children": [137], "start_point": {"row": 68, "column": 30}, "end_point": {"row": 68, "column": 38}}, {"id": 137, "type": "identifier", "text": "__etext", "parent": 136, "children": [], "start_point": {"row": 68, "column": 31}, "end_point": {"row": 68, "column": 38}}, {"id": 138, "type": "init_declarator", "text": "*destination = &__data_start__", "parent": 127, "children": [139, 142, 143], "start_point": {"row": 68, "column": 40}, "end_point": {"row": 68, "column": 70}}, {"id": 139, "type": "pointer_declarator", "text": "*destination", "parent": 138, "children": [140, 141], "start_point": {"row": 68, "column": 40}, "end_point": {"row": 68, "column": 52}}, {"id": 140, "type": "*", "text": "*", "parent": 139, "children": [], "start_point": {"row": 68, "column": 40}, "end_point": {"row": 68, "column": 41}}, {"id": 141, "type": "identifier", "text": "destination", "parent": 139, "children": [], "start_point": {"row": 68, "column": 41}, "end_point": {"row": 68, "column": 52}}, {"id": 142, "type": "=", "text": "=", "parent": 138, "children": [], "start_point": {"row": 68, "column": 53}, "end_point": {"row": 68, "column": 54}}, {"id": 143, "type": "pointer_expression", "text": "&__data_start__", "parent": 138, "children": [144], "start_point": {"row": 68, "column": 55}, "end_point": {"row": 68, "column": 70}}, {"id": 144, "type": "identifier", "text": "__data_start__", "parent": 143, "children": [], "start_point": {"row": 68, "column": 56}, "end_point": {"row": 68, "column": 70}}, {"id": 145, "type": "binary_expression", "text": "destination < &__data_end__", "parent": 126, "children": [146, 147, 148], "start_point": {"row": 69, "column": 7}, "end_point": {"row": 69, "column": 34}}, {"id": 146, "type": "identifier", "text": "destination", "parent": 145, "children": [], "start_point": {"row": 69, "column": 7}, "end_point": {"row": 69, "column": 18}}, {"id": 147, "type": "<", "text": "<", "parent": 145, "children": [], "start_point": {"row": 69, "column": 19}, "end_point": {"row": 69, "column": 20}}, {"id": 148, "type": "pointer_expression", "text": "&__data_end__", "parent": 145, "children": [149], "start_point": {"row": 69, "column": 21}, "end_point": {"row": 69, "column": 34}}, {"id": 149, "type": "identifier", "text": "__data_end__", "parent": 148, "children": [], "start_point": {"row": 69, "column": 22}, "end_point": {"row": 69, "column": 34}}, {"id": 150, "type": "assignment_expression", "text": "*destination++ = *source++", "parent": 126, "children": [151, 156, 157], "start_point": {"row": 70, "column": 4}, "end_point": {"row": 70, "column": 30}}, {"id": 151, "type": "pointer_expression", "text": "*destination++", "parent": 150, "children": [152, 153], "start_point": {"row": 70, "column": 4}, "end_point": {"row": 70, "column": 18}}, {"id": 152, "type": "*", "text": "*", "parent": 151, "children": [], "start_point": {"row": 70, "column": 4}, "end_point": {"row": 70, "column": 5}}, {"id": 153, "type": "update_expression", "text": "destination++", "parent": 151, "children": [154, 155], "start_point": {"row": 70, "column": 5}, "end_point": {"row": 70, "column": 18}}, {"id": 154, "type": "identifier", "text": "destination", "parent": 153, "children": [], "start_point": {"row": 70, "column": 5}, "end_point": {"row": 70, "column": 16}}, {"id": 155, "type": "++", "text": "++", "parent": 153, "children": [], "start_point": {"row": 70, "column": 16}, "end_point": {"row": 70, "column": 18}}, {"id": 156, "type": "=", "text": "=", "parent": 150, "children": [], "start_point": {"row": 70, "column": 19}, "end_point": {"row": 70, "column": 20}}, {"id": 157, "type": "pointer_expression", "text": "*source++", "parent": 150, "children": [158, 159], "start_point": {"row": 70, "column": 21}, "end_point": {"row": 70, "column": 30}}, {"id": 158, "type": "*", "text": "*", "parent": 157, "children": [], "start_point": {"row": 70, "column": 21}, "end_point": {"row": 70, "column": 22}}, {"id": 159, "type": "update_expression", "text": "source++", "parent": 157, "children": [160, 161], "start_point": {"row": 70, "column": 22}, "end_point": {"row": 70, "column": 30}}, {"id": 160, "type": "identifier", "text": "source", "parent": 159, "children": [], "start_point": {"row": 70, "column": 22}, "end_point": {"row": 70, "column": 28}}, {"id": 161, "type": "++", "text": "++", "parent": 159, "children": [], "start_point": {"row": 70, "column": 28}, "end_point": {"row": 70, "column": 30}}, {"id": 162, "type": "for_statement", "text": "for (unsigned int *destination = &__bss_start__;\n destination < &__bss_end__; )\n *destination++ = 0;", "parent": 115, "children": [163, 174], "start_point": {"row": 73, "column": 2}, "end_point": {"row": 75, "column": 23}}, {"id": 163, "type": "declaration", "text": "unsigned int *destination = &__bss_start__;", "parent": 162, "children": [164, 167], "start_point": {"row": 73, "column": 7}, "end_point": {"row": 73, "column": 50}}, {"id": 164, "type": "sized_type_specifier", "text": "unsigned int", "parent": 163, "children": [165, 166], "start_point": {"row": 73, "column": 7}, "end_point": {"row": 73, "column": 19}}, {"id": 165, "type": "unsigned", "text": "unsigned", "parent": 164, "children": [], "start_point": {"row": 73, "column": 7}, "end_point": {"row": 73, "column": 15}}, {"id": 166, "type": "primitive_type", "text": "int", "parent": 164, "children": [], "start_point": {"row": 73, "column": 16}, "end_point": {"row": 73, "column": 19}}, {"id": 167, "type": "init_declarator", "text": "*destination = &__bss_start__", "parent": 163, "children": [168, 171, 172], "start_point": {"row": 73, "column": 20}, "end_point": {"row": 73, "column": 49}}, {"id": 168, "type": "pointer_declarator", "text": "*destination", "parent": 167, "children": [169, 170], "start_point": {"row": 73, "column": 20}, "end_point": {"row": 73, "column": 32}}, {"id": 169, "type": "*", "text": "*", "parent": 168, "children": [], "start_point": {"row": 73, "column": 20}, "end_point": {"row": 73, "column": 21}}, {"id": 170, "type": "identifier", "text": "destination", "parent": 168, "children": [], "start_point": {"row": 73, "column": 21}, "end_point": {"row": 73, "column": 32}}, {"id": 171, "type": "=", "text": "=", "parent": 167, "children": [], "start_point": {"row": 73, "column": 33}, "end_point": {"row": 73, "column": 34}}, {"id": 172, "type": "pointer_expression", "text": "&__bss_start__", "parent": 167, "children": [173], "start_point": {"row": 73, "column": 35}, "end_point": {"row": 73, "column": 49}}, {"id": 173, "type": "identifier", "text": "__bss_start__", "parent": 172, "children": [], "start_point": {"row": 73, "column": 36}, "end_point": {"row": 73, "column": 49}}, {"id": 174, "type": "binary_expression", "text": "destination < &__bss_end__", "parent": 162, "children": [175, 176, 177], "start_point": {"row": 74, "column": 7}, "end_point": {"row": 74, "column": 33}}, {"id": 175, "type": "identifier", "text": "destination", "parent": 174, "children": [], "start_point": {"row": 74, "column": 7}, "end_point": {"row": 74, "column": 18}}, {"id": 176, "type": "<", "text": "<", "parent": 174, "children": [], "start_point": {"row": 74, "column": 19}, "end_point": {"row": 74, "column": 20}}, {"id": 177, "type": "pointer_expression", "text": "&__bss_end__", "parent": 174, "children": [178], "start_point": {"row": 74, "column": 21}, "end_point": {"row": 74, "column": 33}}, {"id": 178, "type": "identifier", "text": "__bss_end__", "parent": 177, "children": [], "start_point": {"row": 74, "column": 22}, "end_point": {"row": 74, "column": 33}}, {"id": 179, "type": "assignment_expression", "text": "*destination++ = 0", "parent": 162, "children": [180, 185, 186], "start_point": {"row": 75, "column": 4}, "end_point": {"row": 75, "column": 22}}, {"id": 180, "type": "pointer_expression", "text": "*destination++", "parent": 179, "children": [181, 182], "start_point": {"row": 75, "column": 4}, "end_point": {"row": 75, "column": 18}}, {"id": 181, "type": "*", "text": "*", "parent": 180, "children": [], "start_point": {"row": 75, "column": 4}, "end_point": {"row": 75, "column": 5}}, {"id": 182, "type": "update_expression", "text": "destination++", "parent": 180, "children": [183, 184], "start_point": {"row": 75, "column": 5}, "end_point": {"row": 75, "column": 18}}, {"id": 183, "type": "identifier", "text": "destination", "parent": 182, "children": [], "start_point": {"row": 75, "column": 5}, "end_point": {"row": 75, "column": 16}}, {"id": 184, "type": "++", "text": "++", "parent": 182, "children": [], "start_point": {"row": 75, "column": 16}, "end_point": {"row": 75, "column": 18}}, {"id": 185, "type": "=", "text": "=", "parent": 179, "children": [], "start_point": {"row": 75, "column": 19}, "end_point": {"row": 75, "column": 20}}, {"id": 186, "type": "number_literal", "text": "0", "parent": 179, "children": [], "start_point": {"row": 75, "column": 21}, "end_point": {"row": 75, "column": 22}}, {"id": 187, "type": "call_expression", "text": "main()", "parent": 115, "children": [188, 189], "start_point": {"row": 77, "column": 2}, "end_point": {"row": 77, "column": 8}}, {"id": 188, "type": "identifier", "text": "main", "parent": 187, "children": [], "start_point": {"row": 77, "column": 2}, "end_point": {"row": 77, "column": 6}}, {"id": 189, "type": "argument_list", "text": "()", "parent": 187, "children": [], "start_point": {"row": 77, "column": 6}, "end_point": {"row": 77, "column": 8}}, {"id": 190, "type": "while_statement", "text": "while (1);", "parent": 115, "children": [191], "start_point": {"row": 80, "column": 2}, "end_point": {"row": 80, "column": 12}}, {"id": 191, "type": "parenthesized_expression", "text": "(1)", "parent": 190, "children": [192], "start_point": {"row": 80, "column": 8}, "end_point": {"row": 80, "column": 11}}, {"id": 192, "type": "number_literal", "text": "1", "parent": 191, "children": [], "start_point": {"row": 80, "column": 9}, "end_point": {"row": 80, "column": 10}}, {"id": 193, "type": "function_definition", "text": "void Default_Handler(void) {\n /* You shouldn't have got here! There's been an undefined\n interrupt triggered somewhere.. */\n\n while(1);\n}", "parent": null, "children": [194, 195], "start_point": {"row": 83, "column": 0}, "end_point": {"row": 88, "column": 1}}, {"id": 194, "type": "primitive_type", "text": "void", "parent": 193, "children": [], "start_point": {"row": 83, "column": 0}, "end_point": {"row": 83, "column": 4}}, {"id": 195, "type": "function_declarator", "text": "Default_Handler(void)", "parent": 193, "children": [196, 197], "start_point": {"row": 83, "column": 5}, "end_point": {"row": 83, "column": 26}}, {"id": 196, "type": "identifier", "text": "Default_Handler", "parent": 195, "children": [], "start_point": {"row": 83, "column": 5}, "end_point": {"row": 83, "column": 20}}, {"id": 197, "type": "parameter_list", "text": "(void)", "parent": 195, "children": [198], "start_point": {"row": 83, "column": 20}, "end_point": {"row": 83, "column": 26}}, {"id": 198, "type": "parameter_declaration", "text": "void", "parent": 197, "children": [199], "start_point": {"row": 83, "column": 21}, "end_point": {"row": 83, "column": 25}}, {"id": 199, "type": "primitive_type", "text": "void", "parent": 198, "children": [], "start_point": {"row": 83, "column": 21}, "end_point": {"row": 83, "column": 25}}, {"id": 200, "type": "while_statement", "text": "while(1);", "parent": 193, "children": [201], "start_point": {"row": 87, "column": 2}, "end_point": {"row": 87, "column": 11}}, {"id": 201, "type": "parenthesized_expression", "text": "(1)", "parent": 200, "children": [202], "start_point": {"row": 87, "column": 7}, "end_point": {"row": 87, "column": 10}}, {"id": 202, "type": "number_literal", "text": "1", "parent": 201, "children": [], "start_point": {"row": 87, "column": 8}, "end_point": {"row": 87, "column": 9}}, {"id": 203, "type": "function_definition", "text": "void HardFault_Handler(void) {\n /* Drat! A HardFault */\n\n while(1);\n}", "parent": null, "children": [204, 205], "start_point": {"row": 90, "column": 0}, "end_point": {"row": 94, "column": 1}}, {"id": 204, "type": "primitive_type", "text": "void", "parent": 203, "children": [], "start_point": {"row": 90, "column": 0}, "end_point": {"row": 90, "column": 4}}, {"id": 205, "type": "function_declarator", "text": "HardFault_Handler(void)", "parent": 203, "children": [206, 207], "start_point": {"row": 90, "column": 5}, "end_point": {"row": 90, "column": 28}}, {"id": 206, "type": "identifier", "text": "HardFault_Handler", "parent": 205, "children": [], "start_point": {"row": 90, "column": 5}, "end_point": {"row": 90, "column": 22}}, {"id": 207, "type": "parameter_list", "text": "(void)", "parent": 205, "children": [208], "start_point": {"row": 90, "column": 22}, "end_point": {"row": 90, "column": 28}}, {"id": 208, "type": "parameter_declaration", "text": "void", "parent": 207, "children": [209], "start_point": {"row": 90, "column": 23}, "end_point": {"row": 90, "column": 27}}, {"id": 209, "type": "primitive_type", "text": "void", "parent": 208, "children": [], "start_point": {"row": 90, "column": 23}, "end_point": {"row": 90, "column": 27}}, {"id": 210, "type": "while_statement", "text": "while(1);", "parent": 203, "children": [211], "start_point": {"row": 93, "column": 2}, "end_point": {"row": 93, "column": 11}}, {"id": 211, "type": "parenthesized_expression", "text": "(1)", "parent": 210, "children": [212], "start_point": {"row": 93, "column": 7}, "end_point": {"row": 93, "column": 10}}, {"id": 212, "type": "number_literal", "text": "1", "parent": 211, "children": [], "start_point": {"row": 93, "column": 8}, "end_point": {"row": 93, "column": 9}}]}, "node_categories": {"declarations": {"functions": [0, 14, 27, 36, 45, 110, 115, 121, 193, 195, 203, 205], "variables": [10, 17, 19, 22, 30, 32, 39, 41, 48, 50, 71, 78, 85, 92, 99, 106, 113, 124, 127, 163, 198, 208], "classes": [42, 72, 79, 86, 93, 100, 107], "imports": [], "modules": [], "enums": []}, "statements": {"expressions": [54, 66, 136, 143, 145, 148, 151, 153, 157, 159, 172, 174, 177, 180, 182, 187, 191, 201, 211], "assignments": [150, 179], "loops": [126, 162, 190, 200, 210], "conditionals": [2, 4, 8, 11, 13, 15, 20, 21, 23, 24, 28, 31, 33, 35, 37, 46, 51, 55, 63, 67, 68, 69, 70, 74, 77, 81, 84, 88, 91, 95, 98, 102, 105, 111, 116, 119, 122, 128, 134, 137, 141, 144, 146, 149, 154, 160, 164, 170, 173, 175, 178, 183, 188, 196, 206], "returns": [], "exceptions": []}, "expressions": {"calls": [], "literals": [57, 186, 192, 202, 212], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [{"node_id": 0, "universal_type": "function", "name": "unknown", "text_snippet": "#define alias(f) __attribute__ ((alias(#f)))\n"}, {"node_id": 14, "universal_type": "function", "name": "unknown", "text_snippet": "Reset_Handler(void)"}, {"node_id": 27, "universal_type": "function", "name": "unknown", "text_snippet": "alias (Default_Handler)"}, {"node_id": 36, "universal_type": "function", "name": "unknown", "text_snippet": "HardFault_Handler(void)"}, {"node_id": 45, "universal_type": "function", "name": "unknown", "text_snippet": "__StackLimit(void)"}, {"node_id": 110, "universal_type": "function", "name": "unknown", "text_snippet": "main(void)"}, {"node_id": 115, "universal_type": "function", "name": "Reset_Handler", "text_snippet": "__attribute__ ((naked))\nvoid Reset_Handler (void) {\n\n /* Load constants / initial values */\n for ("}, {"node_id": 121, "universal_type": "function", "name": "unknown", "text_snippet": "Reset_Handler (void)"}, {"node_id": 193, "universal_type": "function", "name": "Default_Handler", "text_snippet": "void Default_Handler(void) {\n /* You shouldn't have got here! There's been an undefined\n interr"}, {"node_id": 195, "universal_type": "function", "name": "unknown", "text_snippet": "Default_Handler(void)"}, {"node_id": 203, "universal_type": "function", "name": "HardFault_Handler", "text_snippet": "void HardFault_Handler(void) {\n /* Drat! A HardFault */\n\n while(1);\n}"}, {"node_id": 205, "universal_type": "function", "name": "unknown", "text_snippet": "HardFault_Handler(void)"}], "class_declarations": [{"node_id": 42, "universal_type": "class", "name": "unknown", "text_snippet": "extern"}, {"node_id": 72, "universal_type": "class", "name": "unknown", "text_snippet": "extern"}, {"node_id": 79, "universal_type": "class", "name": "unknown", "text_snippet": "extern"}, {"node_id": 86, "universal_type": "class", "name": "unknown", "text_snippet": "extern"}, {"node_id": 93, "universal_type": "class", "name": "unknown", "text_snippet": "extern"}, {"node_id": 100, "universal_type": "class", "name": "unknown", "text_snippet": "extern"}, {"node_id": 107, "universal_type": "class", "name": "unknown", "text_snippet": "extern"}], "import_statements": []}, "original_source_code": "/* \n * Contains the entry point for the project, and defines the ISR vectors\n * Copyright (C) 2013 <NAME>\n * \n * Permission is hereby granted, free of charge, to any person obtaining\n * a copy of this software and associated documentation files (the\n * \"Software\"), to deal in the Software without restriction, including\n * without limitation the rights to use, copy, modify, merge, publish,\n * distribute, sublicense, and/or sell copies of the Software, and to\n * permit persons to whom the Software is furnished to do so, subject to\n * the following conditions:\n * \n * The above copyright notice and this permission notice shall be\n * included in all copies or substantial portions of the Software.\n * \n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND,\n * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\n * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND\n * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE\n * LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION\n * OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION\n * WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n */\n\n/*\n * A function for each of the interrupt vectors is weakly defined with an alias\n * so it may be optionally overridden elsewhere in the project.\n */\n#define alias(f) __attribute__ ((alias(#f)))\n#define weak __attribute__ ((weak))\n\n/* Cortex-M# Core Interrupts */\nweak void Reset_Handler(void);\nweak void NMI_Handler(void) alias (Default_Handler);\nweak void HardFault_Handler(void);\n\n/* LPCxxxx Chip Interrupts */\n\n/* This is defined in the linker script */\nextern void __StackLimit(void);\n\n/*\n * This array of interrupt vectors is decared in a special section so that the\n * linker script can position it at 0x00000000.\n */\n__attribute__ ((section(\".isr_vector\")))\nconst void *isr_vectors[] = {\n /* Cortex-M3 Core Interrupts */\n &__StackLimit,\t // The end of the stack.\n Reset_Handler,\t // The Reset handler\n NMI_Handler,\t\t // The NMI handler\n HardFault_Handler,\t // The Hard Fault Handler\n};\n\n/* These are defined in the linker script */\nextern unsigned int __etext;\nextern unsigned int __data_start__;\nextern unsigned int __data_end__;\nextern unsigned int __bss_start__;\nextern unsigned int __bss_end__;\n\nextern int main(void);\n\n/* The entry point to our program */\n__attribute__ ((naked))\nvoid Reset_Handler (void) {\n\n /* Load constants / initial values */\n for (unsigned int *source = &__etext, *destination = &__data_start__;\n destination < &__data_end__; )\n *destination++ = *source++;\n\n /* Zero out bss data */\n for (unsigned int *destination = &__bss_start__;\n destination < &__bss_end__; )\n *destination++ = 0;\n\n main();\n \n /* Wait here forever so the chip doesn't go haywire */\n while (1);\n}\n/* Default handler for undefined interrupts */\nvoid Default_Handler(void) {\n /* You shouldn't have got here! There's been an undefined\n interrupt triggered somewhere.. */\n\n while(1);\n}\n/* HardFault Handler */\nvoid HardFault_Handler(void) {\n /* Drat! A HardFault */\n\n while(1);\n}\n"}
80,003
c
// // ZHLLModel.h // AppDemo // // Created by TerryChao on 16/7/25. // Copyright © 2016年 czh. All rights reserved. // #import "ZHJSONModel.h" typedef NS_ENUM(NSInteger, ZHLLApiCode) { ZHLLApiCodeSuccess = 0, ZHLLApiCodeFail, }; @interface ZHLLModel : ZHJSONModel @property (copy, nonatomic) NSString *msg; @property (assign, nonatomic) ZHLLApiCode code; // #warning TODO:有时不是 NSDictionary @property (strong, nonatomic) NSDictionary *content; - (instancetype)initWithError:(NSError *)error; @end
25.68
19
(translation_unit) "//\n// ZHLLModel.h\n// AppDemo\n//\n// Created by TerryChao on 16/7/25.\n// Copyright © 2016年 czh. All rights reserved.\n//\n\n#import "ZHJSONModel.h"\n\ntypedef NS_ENUM(NSInteger, ZHLLApiCode) {\n ZHLLApiCodeSuccess = 0,\n ZHLLApiCodeFail,\n};\n\n@interface ZHLLModel : ZHJSONModel\n\n@property (copy, nonatomic) NSString *msg;\n@property (assign, nonatomic) ZHLLApiCode code;\n// #warning TODO:有时不是 NSDictionary\n@property (strong, nonatomic) NSDictionary *content;\n\n- (instancetype)initWithError:(NSError *)error;\n\n@end\n" (comment) "//" (comment) "// ZHLLModel.h" (comment) "// AppDemo" (comment) "//" (comment) "// Created by TerryChao on 16/7/25." (comment) "// Copyright © 2016年 czh. All rights reserved.\n//" (comment) "\n#" (preproc_call) "port "ZHJSONModel.h"\n\nty" (preproc_directive) "port "Z" (preproc_arg) "JSONModel.h"\n\nt" (ERROR) "edef NS_ENUM(NSInteger, ZHLLApiCode) {\n ZHLLApiCodeSuccess = 0,\n ZHLLApiCodeFail,\n};\n\n@interface ZHLLModel : ZHJSONModel\n\n@property (copy, nonatomic) NSString *msg;\n@property (assign, nonatomic) ZHLLApiCode code;\n// #warning TODO:有时不是 NSDictionary\n@property (strong, nonatomic) NSDictionary *content;\n\n- (instancetype)initWithError:(NSError *)error;\n\n@end\n" (typedef) "edef NS" (macro_type_specifier) "ENUM(NSInteger, ZHLLApiCode) {\n" (identifier) "ENUM(NS" (() "I" (ERROR) "nteger, ZH" (type_descriptor) "nteger, Z" (type_identifier) "nteger, Z" (,) "H" (type_descriptor) "LApiCode) {" (type_identifier) "LApiCode) {" ()) "\n" ({) " " (expression_statement) "LApiCodeSuccess = 0,\n ZHLLApiCodeFail,\n};\n\n@interface ZH" (comma_expression) "LApiCodeSuccess = 0,\n ZHLLApiCodeFail,\n};\n\n@interface ZH" (assignment_expression) "LApiCodeSuccess = 0,\n " (identifier) "LApiCodeSuccess = " (=) "," (number_literal) " " (,) " " (comma_expression) "LApiCodeFail,\n};\n\n@interface ZH" (identifier) "LApiCodeFail,\n}" (,) ";" (ERROR) "\n@int" (}) "\n" (;) "@" (ERROR) "t" (identifier) "erface ZH" (;) "" (labeled_statement) "LModel : ZHJSONModel\n\n@property (copy, nonatomic) NSString *msg;\n@p" (statement_identifier) "LModel : " (:) "H" (declaration) "SONModel\n\n@property (copy, nonatomic) NSString *msg;\n@p" (type_identifier) "SONModel\n\n@" (ERROR) "operty (copy, nonatomic) NSString *m" (ERROR) "o" (function_declarator) "perty (copy, nonatomic) NSString *m" (identifier) "perty (c" (parameter_list) "py, nonatomic) NS" (() "p" (parameter_declaration) "y, n" (type_identifier) "y, n" (,) "o" (parameter_declaration) "atomic) N" (type_identifier) "atomic) N" ()) "S" (identifier) "tring *m" (pointer_declarator) "g;\n@" (*) "g" (identifier) ";\n@" (;) "p" (ERROR) "operty (assign, nonatomic) ZHLLApiCode co" (ERROR) "o" (call_expression) "perty (assign, nonatomic) ZH" (identifier) "perty (a" (argument_list) "sign, nonatomic) ZH" (() "s" (identifier) "ign, n" (,) "o" (identifier) "atomic) Z" ()) "H" (identifier) "LApiCode co" (expression_statement) "e;\n//" (identifier) "e;\n/" (;) "/" (comment) "#warning TODO:有时不是 NSDictionary\n@property " (ERROR) "s" (ERROR) "s" (expression_statement) "trong, nonatomic) NSDictiona" (call_expression) "trong, nonatomic) NSDictiona" (identifier) "trong, n" (argument_list) "natomic) NSDictiona" (() "n" (identifier) "atomic" (,) ")" (identifier) "NSDiction" ()) "a" (;) "" (declaration) "y *content;\n\n- (instan" (type_identifier) "y *content;\n" (pointer_declarator) "- (insta" (*) "-" (identifier) " (insta" (;) "n" (expression_statement) "type)initWithError:(NSError *)error;\n\n@end\n" (binary_expression) "type)initWithError:(NSError *)error;\n\n@end\n" (unary_expression) "type)initWithError:(NSError *" (-) "t" (cast_expression) "pe)initWithError:(NSError *" (() "p" (type_descriptor) "e)initWithEr" (type_identifier) "e)initWithEr" ()) "r" (identifier) "or:(NSError *" (ERROR) ")error;\n\n" (:) ")" (() "e" (identifier) "rror;\n\n" (*) "e" (ERROR) "n" ()) "n" (identifier) "d\n" (;) "" (ERROR) "" (ERROR) "" (identifier) ""
117
14
{"language": "c", "success": true, "metadata": {"lines": 19, "avg_line_length": 25.68, "nodes": 74, "errors": 0, "source_hash": "33db0ae26833408942eb29c22bdb102b8c3e41ae3e26e19cb1437c0e6613a781", "categorized_nodes": 44}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "port \"ZHJSONModel.h\"\n\nty", "parent": null, "children": [1, 2], "start_point": {"row": 8, "column": 0}, "end_point": {"row": 9, "column": 0}}, {"id": 1, "type": "preproc_directive", "text": "port \"Z", "parent": 0, "children": [], "start_point": {"row": 8, "column": 0}, "end_point": {"row": 8, "column": 7}}, {"id": 2, "type": "preproc_arg", "text": "JSONModel.h\"\n\nt", "parent": 0, "children": [], "start_point": {"row": 8, "column": 8}, "end_point": {"row": 8, "column": 23}}, {"id": 3, "type": "ERROR", "text": "edef NS_ENUM(NSInteger, ZHLLApiCode) {\n ZHLLApiCodeSuccess = 0,\n ZHLLApiCodeFail,\n};\n\n@interface ZHLLModel : ZHJSONModel\n\n@property (copy, nonatomic) NSString *msg;\n@property (assign, nonatomic) ZHLLApiCode code;\n// #warning TODO:\u6709\u65f6\u4e0d\u662f NSDictionary\n@property (strong, nonatomic) NSDictionary *content;\n\n- (instancetype)initWithError:(NSError *)error;\n\n@end\n", "parent": null, "children": [4, 5, 21, 38, 47, 54, 71, 73], "start_point": {"row": 10, "column": 0}, "end_point": {"row": 24, "column": 4}}, {"id": 4, "type": "typedef", "text": "edef NS", "parent": 3, "children": [], "start_point": {"row": 10, "column": 0}, "end_point": {"row": 10, "column": 7}}, {"id": 5, "type": "macro_type_specifier", "text": "ENUM(NSInteger, ZHLLApiCode) {\n", "parent": 3, "children": [6, 7, 10], "start_point": {"row": 10, "column": 8}, "end_point": {"row": 10, "column": 39}}, {"id": 6, "type": "identifier", "text": "ENUM(NS", "parent": 5, "children": [], "start_point": {"row": 10, "column": 8}, "end_point": {"row": 10, "column": 15}}, {"id": 7, "type": "ERROR", "text": "nteger, ZH", "parent": 5, "children": [8], "start_point": {"row": 10, "column": 16}, "end_point": {"row": 10, "column": 26}}, {"id": 8, "type": "type_descriptor", "text": "nteger, Z", "parent": 7, "children": [9], "start_point": {"row": 10, "column": 16}, "end_point": {"row": 10, "column": 25}}, {"id": 9, "type": "type_identifier", "text": "nteger, Z", "parent": 8, "children": [], "start_point": {"row": 10, "column": 16}, "end_point": {"row": 10, "column": 25}}, {"id": 10, "type": "type_descriptor", "text": "LApiCode) {", "parent": 5, "children": [11], "start_point": {"row": 10, "column": 27}, "end_point": {"row": 10, "column": 38}}, {"id": 11, "type": "type_identifier", "text": "LApiCode) {", "parent": 10, "children": [], "start_point": {"row": 10, "column": 27}, "end_point": {"row": 10, "column": 38}}, {"id": 12, "type": "comma_expression", "text": "LApiCodeSuccess = 0,\n ZHLLApiCodeFail,\n};\n\n@interface ZH", "parent": 3, "children": [13, 16], "start_point": {"row": 11, "column": 4}, "end_point": {"row": 15, "column": 10}}, {"id": 13, "type": "assignment_expression", "text": "LApiCodeSuccess = 0,\n ", "parent": 12, "children": [14, 15], "start_point": {"row": 11, "column": 4}, "end_point": {"row": 11, "column": 26}}, {"id": 14, "type": "identifier", "text": "LApiCodeSuccess = ", "parent": 13, "children": [], "start_point": {"row": 11, "column": 4}, "end_point": {"row": 11, "column": 22}}, {"id": 15, "type": "number_literal", "text": " ", "parent": 13, "children": [], "start_point": {"row": 11, "column": 25}, "end_point": {"row": 11, "column": 26}}, {"id": 16, "type": "comma_expression", "text": "LApiCodeFail,\n};\n\n@interface ZH", "parent": 12, "children": [17, 18, 20], "start_point": {"row": 12, "column": 4}, "end_point": {"row": 15, "column": 10}}, {"id": 17, "type": "identifier", "text": "LApiCodeFail,\n}", "parent": 16, "children": [], "start_point": {"row": 12, "column": 4}, "end_point": {"row": 12, "column": 19}}, {"id": 18, "type": "ERROR", "text": "\n@int", "parent": 16, "children": [19], "start_point": {"row": 13, "column": 0}, "end_point": {"row": 15, "column": 1}}, {"id": 19, "type": "ERROR", "text": "t", "parent": 18, "children": [], "start_point": {"row": 15, "column": 0}, "end_point": {"row": 15, "column": 1}}, {"id": 20, "type": "identifier", "text": "erface ZH", "parent": 16, "children": [], "start_point": {"row": 15, "column": 1}, "end_point": {"row": 15, "column": 10}}, {"id": 21, "type": "labeled_statement", "text": "LModel : ZHJSONModel\n\n@property (copy, nonatomic) NSString *msg;\n@p", "parent": 3, "children": [22, 23], "start_point": {"row": 15, "column": 11}, "end_point": {"row": 17, "column": 42}}, {"id": 22, "type": "statement_identifier", "text": "LModel : ", "parent": 21, "children": [], "start_point": {"row": 15, "column": 11}, "end_point": {"row": 15, "column": 20}}, {"id": 23, "type": "declaration", "text": "SONModel\n\n@property (copy, nonatomic) NSString *msg;\n@p", "parent": 21, "children": [24, 25, 35], "start_point": {"row": 15, "column": 23}, "end_point": {"row": 17, "column": 42}}, {"id": 24, "type": "type_identifier", "text": "SONModel\n\n@", "parent": 23, "children": [], "start_point": {"row": 15, "column": 23}, "end_point": {"row": 15, "column": 34}}, {"id": 25, "type": "ERROR", "text": "operty (copy, nonatomic) NSString *m", "parent": 23, "children": [26, 27], "start_point": {"row": 17, "column": 0}, "end_point": {"row": 17, "column": 36}}, {"id": 26, "type": "ERROR", "text": "o", "parent": 25, "children": [], "start_point": {"row": 17, "column": 0}, "end_point": {"row": 17, "column": 1}}, {"id": 27, "type": "function_declarator", "text": "perty (copy, nonatomic) NSString *m", "parent": 25, "children": [28, 29, 34], "start_point": {"row": 17, "column": 1}, "end_point": {"row": 17, "column": 36}}, {"id": 28, "type": "identifier", "text": "perty (c", "parent": 27, "children": [], "start_point": {"row": 17, "column": 1}, "end_point": {"row": 17, "column": 9}}, {"id": 29, "type": "parameter_list", "text": "py, nonatomic) NS", "parent": 27, "children": [30, 32], "start_point": {"row": 17, "column": 10}, "end_point": {"row": 17, "column": 27}}, {"id": 30, "type": "parameter_declaration", "text": "y, n", "parent": 29, "children": [31], "start_point": {"row": 17, "column": 11}, "end_point": {"row": 17, "column": 15}}, {"id": 31, "type": "type_identifier", "text": "y, n", "parent": 30, "children": [], "start_point": {"row": 17, "column": 11}, "end_point": {"row": 17, "column": 15}}, {"id": 32, "type": "parameter_declaration", "text": "atomic) N", "parent": 29, "children": [33], "start_point": {"row": 17, "column": 17}, "end_point": {"row": 17, "column": 26}}, {"id": 33, "type": "type_identifier", "text": "atomic) N", "parent": 32, "children": [], "start_point": {"row": 17, "column": 17}, "end_point": {"row": 17, "column": 26}}, {"id": 34, "type": "identifier", "text": "tring *m", "parent": 27, "children": [], "start_point": {"row": 17, "column": 28}, "end_point": {"row": 17, "column": 36}}, {"id": 35, "type": "pointer_declarator", "text": "g;\n@", "parent": 23, "children": [36, 37], "start_point": {"row": 17, "column": 37}, "end_point": {"row": 17, "column": 41}}, {"id": 36, "type": "*", "text": "g", "parent": 35, "children": [], "start_point": {"row": 17, "column": 37}, "end_point": {"row": 17, "column": 38}}, {"id": 37, "type": "identifier", "text": ";\n@", "parent": 35, "children": [], "start_point": {"row": 17, "column": 38}, "end_point": {"row": 17, "column": 41}}, {"id": 38, "type": "ERROR", "text": "operty (assign, nonatomic) ZHLLApiCode co", "parent": 3, "children": [39, 40, 45], "start_point": {"row": 18, "column": 0}, "end_point": {"row": 18, "column": 41}}, {"id": 39, "type": "ERROR", "text": "o", "parent": 38, "children": [], "start_point": {"row": 18, "column": 0}, "end_point": {"row": 18, "column": 1}}, {"id": 40, "type": "call_expression", "text": "perty (assign, nonatomic) ZH", "parent": 38, "children": [41, 42], "start_point": {"row": 18, "column": 1}, "end_point": {"row": 18, "column": 29}}, {"id": 41, "type": "identifier", "text": "perty (a", "parent": 40, "children": [], "start_point": {"row": 18, "column": 1}, "end_point": {"row": 18, "column": 9}}, {"id": 42, "type": "argument_list", "text": "sign, nonatomic) ZH", "parent": 40, "children": [43, 44], "start_point": {"row": 18, "column": 10}, "end_point": {"row": 18, "column": 29}}, {"id": 43, "type": "identifier", "text": "ign, n", "parent": 42, "children": [], "start_point": {"row": 18, "column": 11}, "end_point": {"row": 18, "column": 17}}, {"id": 44, "type": "identifier", "text": "atomic) Z", "parent": 42, "children": [], "start_point": {"row": 18, "column": 19}, "end_point": {"row": 18, "column": 28}}, {"id": 45, "type": "identifier", "text": "LApiCode co", "parent": 38, "children": [], "start_point": {"row": 18, "column": 30}, "end_point": {"row": 18, "column": 41}}, {"id": 46, "type": "identifier", "text": "e;\n/", "parent": 3, "children": [], "start_point": {"row": 18, "column": 42}, "end_point": {"row": 18, "column": 46}}, {"id": 47, "type": "ERROR", "text": "s", "parent": 3, "children": [48], "start_point": {"row": 20, "column": 0}, "end_point": {"row": 20, "column": 1}}, {"id": 48, "type": "ERROR", "text": "s", "parent": 47, "children": [], "start_point": {"row": 20, "column": 0}, "end_point": {"row": 20, "column": 1}}, {"id": 49, "type": "call_expression", "text": "trong, nonatomic) NSDictiona", "parent": 3, "children": [50, 51], "start_point": {"row": 20, "column": 1}, "end_point": {"row": 20, "column": 29}}, {"id": 50, "type": "identifier", "text": "trong, n", "parent": 49, "children": [], "start_point": {"row": 20, "column": 1}, "end_point": {"row": 20, "column": 9}}, {"id": 51, "type": "argument_list", "text": "natomic) NSDictiona", "parent": 49, "children": [52, 53], "start_point": {"row": 20, "column": 10}, "end_point": {"row": 20, "column": 29}}, {"id": 52, "type": "identifier", "text": "atomic", "parent": 51, "children": [], "start_point": {"row": 20, "column": 11}, "end_point": {"row": 20, "column": 17}}, {"id": 53, "type": "identifier", "text": "NSDiction", "parent": 51, "children": [], "start_point": {"row": 20, "column": 19}, "end_point": {"row": 20, "column": 28}}, {"id": 54, "type": "declaration", "text": "y *content;\n\n- (instan", "parent": 3, "children": [55, 56], "start_point": {"row": 20, "column": 30}, "end_point": {"row": 20, "column": 52}}, {"id": 55, "type": "type_identifier", "text": "y *content;\n", "parent": 54, "children": [], "start_point": {"row": 20, "column": 30}, "end_point": {"row": 20, "column": 42}}, {"id": 56, "type": "pointer_declarator", "text": "- (insta", "parent": 54, "children": [57, 58], "start_point": {"row": 20, "column": 43}, "end_point": {"row": 20, "column": 51}}, {"id": 57, "type": "*", "text": "-", "parent": 56, "children": [], "start_point": {"row": 20, "column": 43}, "end_point": {"row": 20, "column": 44}}, {"id": 58, "type": "identifier", "text": " (insta", "parent": 56, "children": [], "start_point": {"row": 20, "column": 44}, "end_point": {"row": 20, "column": 51}}, {"id": 59, "type": "binary_expression", "text": "type)initWithError:(NSError *)error;\n\n@end\n", "parent": 3, "children": [60, 66, 68, 69, 70], "start_point": {"row": 22, "column": 0}, "end_point": {"row": 22, "column": 46}}, {"id": 60, "type": "unary_expression", "text": "type)initWithError:(NSError *", "parent": 59, "children": [61, 62], "start_point": {"row": 22, "column": 0}, "end_point": {"row": 22, "column": 29}}, {"id": 61, "type": "-", "text": "t", "parent": 60, "children": [], "start_point": {"row": 22, "column": 0}, "end_point": {"row": 22, "column": 1}}, {"id": 62, "type": "cast_expression", "text": "pe)initWithError:(NSError *", "parent": 60, "children": [63, 65], "start_point": {"row": 22, "column": 2}, "end_point": {"row": 22, "column": 29}}, {"id": 63, "type": "type_descriptor", "text": "e)initWithEr", "parent": 62, "children": [64], "start_point": {"row": 22, "column": 3}, "end_point": {"row": 22, "column": 15}}, {"id": 64, "type": "type_identifier", "text": "e)initWithEr", "parent": 63, "children": [], "start_point": {"row": 22, "column": 3}, "end_point": {"row": 22, "column": 15}}, {"id": 65, "type": "identifier", "text": "or:(NSError *", "parent": 62, "children": [], "start_point": {"row": 22, "column": 16}, "end_point": {"row": 22, "column": 29}}, {"id": 66, "type": "ERROR", "text": ")error;\n\n", "parent": 59, "children": [67], "start_point": {"row": 22, "column": 29}, "end_point": {"row": 22, "column": 38}}, {"id": 67, "type": "identifier", "text": "rror;\n\n", "parent": 66, "children": [], "start_point": {"row": 22, "column": 31}, "end_point": {"row": 22, "column": 38}}, {"id": 68, "type": "*", "text": "e", "parent": 59, "children": [], "start_point": {"row": 22, "column": 39}, "end_point": {"row": 22, "column": 40}}, {"id": 69, "type": "ERROR", "text": "n", "parent": 59, "children": [], "start_point": {"row": 22, "column": 40}, "end_point": {"row": 22, "column": 41}}, {"id": 70, "type": "identifier", "text": "d\n", "parent": 59, "children": [], "start_point": {"row": 22, "column": 41}, "end_point": {"row": 22, "column": 46}}, {"id": 71, "type": "ERROR", "text": "", "parent": 3, "children": [72], "start_point": {"row": 24, "column": 0}, "end_point": {"row": 24, "column": 1}}, {"id": 72, "type": "ERROR", "text": "", "parent": 71, "children": [], "start_point": {"row": 24, "column": 0}, "end_point": {"row": 24, "column": 1}}, {"id": 73, "type": "identifier", "text": "", "parent": 3, "children": [], "start_point": {"row": 24, "column": 1}, "end_point": {"row": 24, "column": 4}}]}, "node_categories": {"declarations": {"functions": [27], "variables": [23, 30, 32, 54], "classes": [], "imports": [], "modules": [], "enums": []}, "statements": {"expressions": [12, 16, 40, 49, 59, 60, 62], "assignments": [13], "loops": [], "conditionals": [5, 6, 9, 11, 14, 17, 20, 22, 24, 28, 31, 33, 34, 37, 41, 43, 44, 45, 46, 50, 52, 53, 55, 58, 64, 65, 67, 70, 73], "returns": [], "exceptions": []}, "expressions": {"calls": [0], "literals": [15], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [{"node_id": 27, "universal_type": "function", "name": "unknown", "text_snippet": "perty (copy, nonatomic) NSString *m"}], "class_declarations": [], "import_statements": []}, "original_source_code": "//\n// ZHLLModel.h\n// AppDemo\n//\n// Created by TerryChao on 16/7/25.\n// Copyright \u00a9 2016\u5e74 czh. All rights reserved.\n//\n\n#import \"ZHJSONModel.h\"\n\ntypedef NS_ENUM(NSInteger, ZHLLApiCode) {\n ZHLLApiCodeSuccess = 0,\n ZHLLApiCodeFail,\n};\n\n@interface ZHLLModel : ZHJSONModel\n\n@property (copy, nonatomic) NSString *msg;\n@property (assign, nonatomic) ZHLLApiCode code;\n// #warning TODO:\u6709\u65f6\u4e0d\u662f NSDictionary\n@property (strong, nonatomic) NSDictionary *content;\n\n- (instancetype)initWithError:(NSError *)error;\n\n@end\n"}
80,004
c
/* * Title : Car Wash System V1.0 * Developer : <NAME> * Compiler : gcc version 5.4.0 * OS : Ubuntu 16.04 LTS * IDE : Qt Creator 4.1.0 * License : The MIT License (MIT) * Indent : 4 spaces * *#Compiling with gcc * gcc Project_Lib/queue.c Project_Lib/carwashsystem.c Project_Lib/toolbox.c Project_Lib/linkedlist.c Project_Lib/debugging.c main.c -o main * *#Compiling with Qt Creator * Open the project by clicking .pro file ==> build by ctrl+b ==> run by ctrl+r */ #include <stdio.h> #include "Project_Lib/carwashsystem.h" #include "Project_Lib/debugging.h" #define ARGSIZE 3 #define SHIFTTIME 0 #define MAXWASHTIME 1 #define NUMOFMACHINES 2 void argparser(int argc, char *argv[], int args[]) { if( argc-1!=ARGSIZE ) { printf("[!] Please enter %d arguments.\n", ARGSIZE); printf("Usage : ./CNF213_Assignment_2 shiftTime maxWashTime numberOfMachines\n"); exit(EXIT_FAILURE); } args[SHIFTTIME] = atoi(argv[SHIFTTIME+1]); args[MAXWASHTIME] = atoi(argv[MAXWASHTIME+1]); args[NUMOFMACHINES] = atoi(argv[NUMOFMACHINES+1]); } int main(int argc, char *argv[]) { int args[ ARGSIZE ]; argparser(argc, argv, args); run_simulator(args[SHIFTTIME], args[MAXWASHTIME], args[NUMOFMACHINES]); return 0; }
30.41
41
(translation_unit) "/*\n * Title : Car Wash System V1.0\n * Developer : <NAME>\n * Compiler : gcc version 5.4.0\n * OS : Ubuntu 16.04 LTS\n * IDE : Qt Creator 4.1.0\n * License : The MIT License (MIT)\n * Indent : 4 spaces\n *\n *#Compiling with gcc\n * gcc Project_Lib/queue.c Project_Lib/carwashsystem.c Project_Lib/toolbox.c Project_Lib/linkedlist.c Project_Lib/debugging.c main.c -o main\n *\n *#Compiling with Qt Creator\n * Open the project by clicking .pro file ==> build by ctrl+b ==> run by ctrl+r\n */\n\n#include <stdio.h>\n#include "Project_Lib/carwashsystem.h"\n#include "Project_Lib/debugging.h"\n\n#define ARGSIZE 3\n#define SHIFTTIME 0\n#define MAXWASHTIME 1\n#define NUMOFMACHINES 2\n\nvoid argparser(int argc, char *argv[], int args[])\n{\n if( argc-1!=ARGSIZE )\n {\n printf("[!] Please enter %d arguments.\n", ARGSIZE);\n printf("Usage : ./CNF213_Assignment_2 shiftTime maxWashTime numberOfMachines\n");\n exit(EXIT_FAILURE);\n }\n\n args[SHIFTTIME] = atoi(argv[SHIFTTIME+1]);\n args[MAXWASHTIME] = atoi(argv[MAXWASHTIME+1]);\n args[NUMOFMACHINES] = atoi(argv[NUMOFMACHINES+1]);\n}\n\nint main(int argc, char *argv[])\n{\n int args[ ARGSIZE ];\n argparser(argc, argv, args);\n\n run_simulator(args[SHIFTTIME], args[MAXWASHTIME], args[NUMOFMACHINES]);\n\n return 0;\n}\n" (comment) "/*\n * Title : Car Wash System V1.0\n * Developer : <NAME>\n * Compiler : gcc version 5.4.0\n * OS : Ubuntu 16.04 LTS\n * IDE : Qt Creator 4.1.0\n * License : The MIT License (MIT)\n * Indent : 4 spaces\n *\n *#Compiling with gcc\n * gcc Project_Lib/queue.c Project_Lib/carwashsystem.c Project_Lib/toolbox.c Project_Lib/linkedlist.c Project_Lib/debugging.c main.c -o main\n *\n *#Compiling with Qt Creator\n * Open the project by clicking .pro file ==> build by ctrl+b ==> run by ctrl+r\n */" (preproc_include) "#include <stdio.h>\n" (#include) "#include" (system_lib_string) "<stdio.h>" (preproc_include) "#include "Project_Lib/carwashsystem.h"\n" (#include) "#include" (string_literal) ""Project_Lib/carwashsystem.h"" (") """ (string_content) "Project_Lib/carwashsystem.h" (") """ (preproc_include) "#include "Project_Lib/debugging.h"\n" (#include) "#include" (string_literal) ""Project_Lib/debugging.h"" (") """ (string_content) "Project_Lib/debugging.h" (") """ (preproc_def) "#define ARGSIZE 3\n" (#define) "#define" (identifier) "ARGSIZE" (preproc_arg) "3" (preproc_def) "#define SHIFTTIME 0\n" (#define) "#define" (identifier) "SHIFTTIME" (preproc_arg) "0" (preproc_def) "#define MAXWASHTIME 1\n" (#define) "#define" (identifier) "MAXWASHTIME" (preproc_arg) "1" (preproc_def) "#define NUMOFMACHINES 2\n" (#define) "#define" (identifier) "NUMOFMACHINES" (preproc_arg) "2" (function_definition) "void argparser(int argc, char *argv[], int args[])\n{\n if( argc-1!=ARGSIZE )\n {\n printf("[!] Please enter %d arguments.\n", ARGSIZE);\n printf("Usage : ./CNF213_Assignment_2 shiftTime maxWashTime numberOfMachines\n");\n exit(EXIT_FAILURE);\n }\n\n args[SHIFTTIME] = atoi(argv[SHIFTTIME+1]);\n args[MAXWASHTIME] = atoi(argv[MAXWASHTIME+1]);\n args[NUMOFMACHINES] = atoi(argv[NUMOFMACHINES+1]);\n}" (primitive_type) "void" (function_declarator) "argparser(int argc, char *argv[], int args[])" (identifier) "argparser" (parameter_list) "(int argc, char *argv[], int args[])" (() "(" (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 args[]" (primitive_type) "int" (array_declarator) "args[]" (identifier) "args" ([) "[" (]) "]" ()) ")" (compound_statement) "{\n if( argc-1!=ARGSIZE )\n {\n printf("[!] Please enter %d arguments.\n", ARGSIZE);\n printf("Usage : ./CNF213_Assignment_2 shiftTime maxWashTime numberOfMachines\n");\n exit(EXIT_FAILURE);\n }\n\n args[SHIFTTIME] = atoi(argv[SHIFTTIME+1]);\n args[MAXWASHTIME] = atoi(argv[MAXWASHTIME+1]);\n args[NUMOFMACHINES] = atoi(argv[NUMOFMACHINES+1]);\n}" ({) "{" (if_statement) "if( argc-1!=ARGSIZE )\n {\n printf("[!] Please enter %d arguments.\n", ARGSIZE);\n printf("Usage : ./CNF213_Assignment_2 shiftTime maxWashTime numberOfMachines\n");\n exit(EXIT_FAILURE);\n }" (if) "if" (parenthesized_expression) "( argc-1!=ARGSIZE )" (() "(" (binary_expression) "argc-1!=ARGSIZE" (binary_expression) "argc-1" (identifier) "argc" (-) "-" (number_literal) "1" (!=) "!=" (identifier) "ARGSIZE" ()) ")" (compound_statement) "{\n printf("[!] Please enter %d arguments.\n", ARGSIZE);\n printf("Usage : ./CNF213_Assignment_2 shiftTime maxWashTime numberOfMachines\n");\n exit(EXIT_FAILURE);\n }" ({) "{" (expression_statement) "printf("[!] Please enter %d arguments.\n", ARGSIZE);" (call_expression) "printf("[!] Please enter %d arguments.\n", ARGSIZE)" (identifier) "printf" (argument_list) "("[!] Please enter %d arguments.\n", ARGSIZE)" (() "(" (string_literal) ""[!] Please enter %d arguments.\n"" (") """ (string_content) "[!] Please enter %d arguments." (escape_sequence) "\n" (") """ (,) "," (identifier) "ARGSIZE" ()) ")" (;) ";" (expression_statement) "printf("Usage : ./CNF213_Assignment_2 shiftTime maxWashTime numberOfMachines\n");" (call_expression) "printf("Usage : ./CNF213_Assignment_2 shiftTime maxWashTime numberOfMachines\n")" (identifier) "printf" (argument_list) "("Usage : ./CNF213_Assignment_2 shiftTime maxWashTime numberOfMachines\n")" (() "(" (string_literal) ""Usage : ./CNF213_Assignment_2 shiftTime maxWashTime numberOfMachines\n"" (") """ (string_content) "Usage : ./CNF213_Assignment_2 shiftTime maxWashTime numberOfMachines" (escape_sequence) "\n" (") """ ()) ")" (;) ";" (expression_statement) "exit(EXIT_FAILURE);" (call_expression) "exit(EXIT_FAILURE)" (identifier) "exit" (argument_list) "(EXIT_FAILURE)" (() "(" (identifier) "EXIT_FAILURE" ()) ")" (;) ";" (}) "}" (expression_statement) "args[SHIFTTIME] = atoi(argv[SHIFTTIME+1]);" (assignment_expression) "args[SHIFTTIME] = atoi(argv[SHIFTTIME+1])" (subscript_expression) "args[SHIFTTIME]" (identifier) "args" ([) "[" (identifier) "SHIFTTIME" (]) "]" (=) "=" (call_expression) "atoi(argv[SHIFTTIME+1])" (identifier) "atoi" (argument_list) "(argv[SHIFTTIME+1])" (() "(" (subscript_expression) "argv[SHIFTTIME+1]" (identifier) "argv" ([) "[" (binary_expression) "SHIFTTIME+1" (identifier) "SHIFTTIME" (+) "+" (number_literal) "1" (]) "]" ()) ")" (;) ";" (expression_statement) "args[MAXWASHTIME] = atoi(argv[MAXWASHTIME+1]);" (assignment_expression) "args[MAXWASHTIME] = atoi(argv[MAXWASHTIME+1])" (subscript_expression) "args[MAXWASHTIME]" (identifier) "args" ([) "[" (identifier) "MAXWASHTIME" (]) "]" (=) "=" (call_expression) "atoi(argv[MAXWASHTIME+1])" (identifier) "atoi" (argument_list) "(argv[MAXWASHTIME+1])" (() "(" (subscript_expression) "argv[MAXWASHTIME+1]" (identifier) "argv" ([) "[" (binary_expression) "MAXWASHTIME+1" (identifier) "MAXWASHTIME" (+) "+" (number_literal) "1" (]) "]" ()) ")" (;) ";" (expression_statement) "args[NUMOFMACHINES] = atoi(argv[NUMOFMACHINES+1]);" (assignment_expression) "args[NUMOFMACHINES] = atoi(argv[NUMOFMACHINES+1])" (subscript_expression) "args[NUMOFMACHINES]" (identifier) "args" ([) "[" (identifier) "NUMOFMACHINES" (]) "]" (=) "=" (call_expression) "atoi(argv[NUMOFMACHINES+1])" (identifier) "atoi" (argument_list) "(argv[NUMOFMACHINES+1])" (() "(" (subscript_expression) "argv[NUMOFMACHINES+1]" (identifier) "argv" ([) "[" (binary_expression) "NUMOFMACHINES+1" (identifier) "NUMOFMACHINES" (+) "+" (number_literal) "1" (]) "]" ()) ")" (;) ";" (}) "}" (function_definition) "int main(int argc, char *argv[])\n{\n int args[ ARGSIZE ];\n argparser(argc, argv, args);\n\n run_simulator(args[SHIFTTIME], args[MAXWASHTIME], args[NUMOFMACHINES]);\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 int args[ ARGSIZE ];\n argparser(argc, argv, args);\n\n run_simulator(args[SHIFTTIME], args[MAXWASHTIME], args[NUMOFMACHINES]);\n\n return 0;\n}" ({) "{" (declaration) "int args[ ARGSIZE ];" (primitive_type) "int" (array_declarator) "args[ ARGSIZE ]" (identifier) "args" ([) "[" (identifier) "ARGSIZE" (]) "]" (;) ";" (expression_statement) "argparser(argc, argv, args);" (call_expression) "argparser(argc, argv, args)" (identifier) "argparser" (argument_list) "(argc, argv, args)" (() "(" (identifier) "argc" (,) "," (identifier) "argv" (,) "," (identifier) "args" ()) ")" (;) ";" (expression_statement) "run_simulator(args[SHIFTTIME], args[MAXWASHTIME], args[NUMOFMACHINES]);" (call_expression) "run_simulator(args[SHIFTTIME], args[MAXWASHTIME], args[NUMOFMACHINES])" (identifier) "run_simulator" (argument_list) "(args[SHIFTTIME], args[MAXWASHTIME], args[NUMOFMACHINES])" (() "(" (subscript_expression) "args[SHIFTTIME]" (identifier) "args" ([) "[" (identifier) "SHIFTTIME" (]) "]" (,) "," (subscript_expression) "args[MAXWASHTIME]" (identifier) "args" ([) "[" (identifier) "MAXWASHTIME" (]) "]" (,) "," (subscript_expression) "args[NUMOFMACHINES]" (identifier) "args" ([) "[" (identifier) "NUMOFMACHINES" (]) "]" ()) ")" (;) ";" (return_statement) "return 0;" (return) "return" (number_literal) "0" (;) ";" (}) "}"
247
0
{"language": "c", "success": true, "metadata": {"lines": 41, "avg_line_length": 30.41, "nodes": 148, "errors": 0, "source_hash": "8a803fbe45a1babd0e0a9098538278dbb6e6b9e6cdd068917781af2767c39d0f", "categorized_nodes": 100}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#include <stdio.h>\n", "parent": null, "children": [1, 2], "start_point": {"row": 16, "column": 0}, "end_point": {"row": 17, "column": 0}}, {"id": 1, "type": "#include", "text": "#include", "parent": 0, "children": [], "start_point": {"row": 16, "column": 0}, "end_point": {"row": 16, "column": 8}}, {"id": 2, "type": "system_lib_string", "text": "<stdio.h>", "parent": 0, "children": [], "start_point": {"row": 16, "column": 9}, "end_point": {"row": 16, "column": 18}}, {"id": 3, "type": "preproc_include", "text": "#include \"Project_Lib/carwashsystem.h\"\n", "parent": null, "children": [4, 5], "start_point": {"row": 17, "column": 0}, "end_point": {"row": 18, "column": 0}}, {"id": 4, "type": "#include", "text": "#include", "parent": 3, "children": [], "start_point": {"row": 17, "column": 0}, "end_point": {"row": 17, "column": 8}}, {"id": 5, "type": "string_literal", "text": "\"Project_Lib/carwashsystem.h\"", "parent": 3, "children": [], "start_point": {"row": 17, "column": 9}, "end_point": {"row": 17, "column": 38}}, {"id": 6, "type": "preproc_include", "text": "#include \"Project_Lib/debugging.h\"\n", "parent": null, "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": "\"Project_Lib/debugging.h\"", "parent": 6, "children": [], "start_point": {"row": 18, "column": 9}, "end_point": {"row": 18, "column": 34}}, {"id": 9, "type": "preproc_def", "text": "#define ARGSIZE 3\n", "parent": null, "children": [10, 11, 12], "start_point": {"row": 20, "column": 0}, "end_point": {"row": 21, "column": 0}}, {"id": 10, "type": "#define", "text": "#define", "parent": 9, "children": [], "start_point": {"row": 20, "column": 0}, "end_point": {"row": 20, "column": 7}}, {"id": 11, "type": "identifier", "text": "ARGSIZE", "parent": 9, "children": [], "start_point": {"row": 20, "column": 8}, "end_point": {"row": 20, "column": 15}}, {"id": 12, "type": "preproc_arg", "text": "3", "parent": 9, "children": [], "start_point": {"row": 20, "column": 16}, "end_point": {"row": 20, "column": 17}}, {"id": 13, "type": "preproc_def", "text": "#define SHIFTTIME 0\n", "parent": null, "children": [14, 15, 16], "start_point": {"row": 21, "column": 0}, "end_point": {"row": 22, "column": 0}}, {"id": 14, "type": "#define", "text": "#define", "parent": 13, "children": [], "start_point": {"row": 21, "column": 0}, "end_point": {"row": 21, "column": 7}}, {"id": 15, "type": "identifier", "text": "SHIFTTIME", "parent": 13, "children": [], "start_point": {"row": 21, "column": 8}, "end_point": {"row": 21, "column": 17}}, {"id": 16, "type": "preproc_arg", "text": "0", "parent": 13, "children": [], "start_point": {"row": 21, "column": 18}, "end_point": {"row": 21, "column": 19}}, {"id": 17, "type": "preproc_def", "text": "#define MAXWASHTIME 1\n", "parent": null, "children": [18, 19, 20], "start_point": {"row": 22, "column": 0}, "end_point": {"row": 23, "column": 0}}, {"id": 18, "type": "#define", "text": "#define", "parent": 17, "children": [], "start_point": {"row": 22, "column": 0}, "end_point": {"row": 22, "column": 7}}, {"id": 19, "type": "identifier", "text": "MAXWASHTIME", "parent": 17, "children": [], "start_point": {"row": 22, "column": 8}, "end_point": {"row": 22, "column": 19}}, {"id": 20, "type": "preproc_arg", "text": "1", "parent": 17, "children": [], "start_point": {"row": 22, "column": 20}, "end_point": {"row": 22, "column": 21}}, {"id": 21, "type": "preproc_def", "text": "#define NUMOFMACHINES 2\n", "parent": null, "children": [22, 23, 24], "start_point": {"row": 23, "column": 0}, "end_point": {"row": 24, "column": 0}}, {"id": 22, "type": "#define", "text": "#define", "parent": 21, "children": [], "start_point": {"row": 23, "column": 0}, "end_point": {"row": 23, "column": 7}}, {"id": 23, "type": "identifier", "text": "NUMOFMACHINES", "parent": 21, "children": [], "start_point": {"row": 23, "column": 8}, "end_point": {"row": 23, "column": 21}}, {"id": 24, "type": "preproc_arg", "text": "2", "parent": 21, "children": [], "start_point": {"row": 23, "column": 22}, "end_point": {"row": 23, "column": 23}}, {"id": 25, "type": "function_definition", "text": "void argparser(int argc, char *argv[], int args[])\n{\n if( argc-1!=ARGSIZE )\n {\n printf(\"[!] Please enter %d arguments.\\n\", ARGSIZE);\n printf(\"Usage : ./CNF213_Assignment_2 shiftTime maxWashTime numberOfMachines\\n\");\n exit(EXIT_FAILURE);\n }\n\n args[SHIFTTIME] = atoi(argv[SHIFTTIME+1]);\n args[MAXWASHTIME] = atoi(argv[MAXWASHTIME+1]);\n args[NUMOFMACHINES] = atoi(argv[NUMOFMACHINES+1]);\n}", "parent": null, "children": [26, 27], "start_point": {"row": 25, "column": 0}, "end_point": {"row": 37, "column": 1}}, {"id": 26, "type": "primitive_type", "text": "void", "parent": 25, "children": [], "start_point": {"row": 25, "column": 0}, "end_point": {"row": 25, "column": 4}}, {"id": 27, "type": "function_declarator", "text": "argparser(int argc, char *argv[], int args[])", "parent": 25, "children": [28, 29], "start_point": {"row": 25, "column": 5}, "end_point": {"row": 25, "column": 50}}, {"id": 28, "type": "identifier", "text": "argparser", "parent": 27, "children": [], "start_point": {"row": 25, "column": 5}, "end_point": {"row": 25, "column": 14}}, {"id": 29, "type": "parameter_list", "text": "(int argc, char *argv[], int args[])", "parent": 27, "children": [30, 33, 39], "start_point": {"row": 25, "column": 14}, "end_point": {"row": 25, "column": 50}}, {"id": 30, "type": "parameter_declaration", "text": "int argc", "parent": 29, "children": [31, 32], "start_point": {"row": 25, "column": 15}, "end_point": {"row": 25, "column": 23}}, {"id": 31, "type": "primitive_type", "text": "int", "parent": 30, "children": [], "start_point": {"row": 25, "column": 15}, "end_point": {"row": 25, "column": 18}}, {"id": 32, "type": "identifier", "text": "argc", "parent": 30, "children": [], "start_point": {"row": 25, "column": 19}, "end_point": {"row": 25, "column": 23}}, {"id": 33, "type": "parameter_declaration", "text": "char *argv[]", "parent": 29, "children": [34, 35], "start_point": {"row": 25, "column": 25}, "end_point": {"row": 25, "column": 37}}, {"id": 34, "type": "primitive_type", "text": "char", "parent": 33, "children": [], "start_point": {"row": 25, "column": 25}, "end_point": {"row": 25, "column": 29}}, {"id": 35, "type": "pointer_declarator", "text": "*argv[]", "parent": 33, "children": [36, 37], "start_point": {"row": 25, "column": 30}, "end_point": {"row": 25, "column": 37}}, {"id": 36, "type": "*", "text": "*", "parent": 35, "children": [], "start_point": {"row": 25, "column": 30}, "end_point": {"row": 25, "column": 31}}, {"id": 37, "type": "array_declarator", "text": "argv[]", "parent": 35, "children": [38], "start_point": {"row": 25, "column": 31}, "end_point": {"row": 25, "column": 37}}, {"id": 38, "type": "identifier", "text": "argv", "parent": 37, "children": [], "start_point": {"row": 25, "column": 31}, "end_point": {"row": 25, "column": 35}}, {"id": 39, "type": "parameter_declaration", "text": "int args[]", "parent": 29, "children": [40, 41], "start_point": {"row": 25, "column": 39}, "end_point": {"row": 25, "column": 49}}, {"id": 40, "type": "primitive_type", "text": "int", "parent": 39, "children": [], "start_point": {"row": 25, "column": 39}, "end_point": {"row": 25, "column": 42}}, {"id": 41, "type": "array_declarator", "text": "args[]", "parent": 39, "children": [42], "start_point": {"row": 25, "column": 43}, "end_point": {"row": 25, "column": 49}}, {"id": 42, "type": "identifier", "text": "args", "parent": 41, "children": [], "start_point": {"row": 25, "column": 43}, "end_point": {"row": 25, "column": 47}}, {"id": 43, "type": "if_statement", "text": "if( argc-1!=ARGSIZE )\n {\n printf(\"[!] Please enter %d arguments.\\n\", ARGSIZE);\n printf(\"Usage : ./CNF213_Assignment_2 shiftTime maxWashTime numberOfMachines\\n\");\n exit(EXIT_FAILURE);\n }", "parent": 25, "children": [44], "start_point": {"row": 27, "column": 4}, "end_point": {"row": 32, "column": 5}}, {"id": 44, "type": "parenthesized_expression", "text": "( argc-1!=ARGSIZE )", "parent": 43, "children": [45], "start_point": {"row": 27, "column": 6}, "end_point": {"row": 27, "column": 25}}, {"id": 45, "type": "binary_expression", "text": "argc-1!=ARGSIZE", "parent": 44, "children": [46, 50, 51], "start_point": {"row": 27, "column": 8}, "end_point": {"row": 27, "column": 23}}, {"id": 46, "type": "binary_expression", "text": "argc-1", "parent": 45, "children": [47, 48, 49], "start_point": {"row": 27, "column": 8}, "end_point": {"row": 27, "column": 14}}, {"id": 47, "type": "identifier", "text": "argc", "parent": 46, "children": [], "start_point": {"row": 27, "column": 8}, "end_point": {"row": 27, "column": 12}}, {"id": 48, "type": "-", "text": "-", "parent": 46, "children": [], "start_point": {"row": 27, "column": 12}, "end_point": {"row": 27, "column": 13}}, {"id": 49, "type": "number_literal", "text": "1", "parent": 46, "children": [], "start_point": {"row": 27, "column": 13}, "end_point": {"row": 27, "column": 14}}, {"id": 50, "type": "!=", "text": "!=", "parent": 45, "children": [], "start_point": {"row": 27, "column": 14}, "end_point": {"row": 27, "column": 16}}, {"id": 51, "type": "identifier", "text": "ARGSIZE", "parent": 45, "children": [], "start_point": {"row": 27, "column": 16}, "end_point": {"row": 27, "column": 23}}, {"id": 52, "type": "call_expression", "text": "printf(\"[!] Please enter %d arguments.\\n\", ARGSIZE)", "parent": 43, "children": [53, 54], "start_point": {"row": 29, "column": 8}, "end_point": {"row": 29, "column": 59}}, {"id": 53, "type": "identifier", "text": "printf", "parent": 52, "children": [], "start_point": {"row": 29, "column": 8}, "end_point": {"row": 29, "column": 14}}, {"id": 54, "type": "argument_list", "text": "(\"[!] Please enter %d arguments.\\n\", ARGSIZE)", "parent": 52, "children": [55, 57], "start_point": {"row": 29, "column": 14}, "end_point": {"row": 29, "column": 59}}, {"id": 55, "type": "string_literal", "text": "\"[!] Please enter %d arguments.\\n\"", "parent": 54, "children": [56], "start_point": {"row": 29, "column": 15}, "end_point": {"row": 29, "column": 49}}, {"id": 56, "type": "escape_sequence", "text": "\\n", "parent": 55, "children": [], "start_point": {"row": 29, "column": 46}, "end_point": {"row": 29, "column": 48}}, {"id": 57, "type": "identifier", "text": "ARGSIZE", "parent": 54, "children": [], "start_point": {"row": 29, "column": 51}, "end_point": {"row": 29, "column": 58}}, {"id": 58, "type": "call_expression", "text": "printf(\"Usage : ./CNF213_Assignment_2 shiftTime maxWashTime numberOfMachines\\n\")", "parent": 43, "children": [59, 60], "start_point": {"row": 30, "column": 8}, "end_point": {"row": 30, "column": 88}}, {"id": 59, "type": "identifier", "text": "printf", "parent": 58, "children": [], "start_point": {"row": 30, "column": 8}, "end_point": {"row": 30, "column": 14}}, {"id": 60, "type": "argument_list", "text": "(\"Usage : ./CNF213_Assignment_2 shiftTime maxWashTime numberOfMachines\\n\")", "parent": 58, "children": [61], "start_point": {"row": 30, "column": 14}, "end_point": {"row": 30, "column": 88}}, {"id": 61, "type": "string_literal", "text": "\"Usage : ./CNF213_Assignment_2 shiftTime maxWashTime numberOfMachines\\n\"", "parent": 60, "children": [62], "start_point": {"row": 30, "column": 15}, "end_point": {"row": 30, "column": 87}}, {"id": 62, "type": "escape_sequence", "text": "\\n", "parent": 61, "children": [], "start_point": {"row": 30, "column": 84}, "end_point": {"row": 30, "column": 86}}, {"id": 63, "type": "call_expression", "text": "exit(EXIT_FAILURE)", "parent": 43, "children": [64, 65], "start_point": {"row": 31, "column": 8}, "end_point": {"row": 31, "column": 26}}, {"id": 64, "type": "identifier", "text": "exit", "parent": 63, "children": [], "start_point": {"row": 31, "column": 8}, "end_point": {"row": 31, "column": 12}}, {"id": 65, "type": "argument_list", "text": "(EXIT_FAILURE)", "parent": 63, "children": [66], "start_point": {"row": 31, "column": 12}, "end_point": {"row": 31, "column": 26}}, {"id": 66, "type": "identifier", "text": "EXIT_FAILURE", "parent": 65, "children": [], "start_point": {"row": 31, "column": 13}, "end_point": {"row": 31, "column": 25}}, {"id": 67, "type": "assignment_expression", "text": "args[SHIFTTIME] = atoi(argv[SHIFTTIME+1])", "parent": 25, "children": [68, 71, 72], "start_point": {"row": 34, "column": 4}, "end_point": {"row": 34, "column": 45}}, {"id": 68, "type": "subscript_expression", "text": "args[SHIFTTIME]", "parent": 67, "children": [69, 70], "start_point": {"row": 34, "column": 4}, "end_point": {"row": 34, "column": 19}}, {"id": 69, "type": "identifier", "text": "args", "parent": 68, "children": [], "start_point": {"row": 34, "column": 4}, "end_point": {"row": 34, "column": 8}}, {"id": 70, "type": "identifier", "text": "SHIFTTIME", "parent": 68, "children": [], "start_point": {"row": 34, "column": 9}, "end_point": {"row": 34, "column": 18}}, {"id": 71, "type": "=", "text": "=", "parent": 67, "children": [], "start_point": {"row": 34, "column": 20}, "end_point": {"row": 34, "column": 21}}, {"id": 72, "type": "call_expression", "text": "atoi(argv[SHIFTTIME+1])", "parent": 67, "children": [73, 74], "start_point": {"row": 34, "column": 22}, "end_point": {"row": 34, "column": 45}}, {"id": 73, "type": "identifier", "text": "atoi", "parent": 72, "children": [], "start_point": {"row": 34, "column": 22}, "end_point": {"row": 34, "column": 26}}, {"id": 74, "type": "argument_list", "text": "(argv[SHIFTTIME+1])", "parent": 72, "children": [75], "start_point": {"row": 34, "column": 26}, "end_point": {"row": 34, "column": 45}}, {"id": 75, "type": "subscript_expression", "text": "argv[SHIFTTIME+1]", "parent": 74, "children": [76, 77], "start_point": {"row": 34, "column": 27}, "end_point": {"row": 34, "column": 44}}, {"id": 76, "type": "identifier", "text": "argv", "parent": 75, "children": [], "start_point": {"row": 34, "column": 27}, "end_point": {"row": 34, "column": 31}}, {"id": 77, "type": "binary_expression", "text": "SHIFTTIME+1", "parent": 75, "children": [78, 79, 80], "start_point": {"row": 34, "column": 32}, "end_point": {"row": 34, "column": 43}}, {"id": 78, "type": "identifier", "text": "SHIFTTIME", "parent": 77, "children": [], "start_point": {"row": 34, "column": 32}, "end_point": {"row": 34, "column": 41}}, {"id": 79, "type": "+", "text": "+", "parent": 77, "children": [], "start_point": {"row": 34, "column": 41}, "end_point": {"row": 34, "column": 42}}, {"id": 80, "type": "number_literal", "text": "1", "parent": 77, "children": [], "start_point": {"row": 34, "column": 42}, "end_point": {"row": 34, "column": 43}}, {"id": 81, "type": "assignment_expression", "text": "args[MAXWASHTIME] = atoi(argv[MAXWASHTIME+1])", "parent": 25, "children": [82, 85, 86], "start_point": {"row": 35, "column": 4}, "end_point": {"row": 35, "column": 49}}, {"id": 82, "type": "subscript_expression", "text": "args[MAXWASHTIME]", "parent": 81, "children": [83, 84], "start_point": {"row": 35, "column": 4}, "end_point": {"row": 35, "column": 21}}, {"id": 83, "type": "identifier", "text": "args", "parent": 82, "children": [], "start_point": {"row": 35, "column": 4}, "end_point": {"row": 35, "column": 8}}, {"id": 84, "type": "identifier", "text": "MAXWASHTIME", "parent": 82, "children": [], "start_point": {"row": 35, "column": 9}, "end_point": {"row": 35, "column": 20}}, {"id": 85, "type": "=", "text": "=", "parent": 81, "children": [], "start_point": {"row": 35, "column": 22}, "end_point": {"row": 35, "column": 23}}, {"id": 86, "type": "call_expression", "text": "atoi(argv[MAXWASHTIME+1])", "parent": 81, "children": [87, 88], "start_point": {"row": 35, "column": 24}, "end_point": {"row": 35, "column": 49}}, {"id": 87, "type": "identifier", "text": "atoi", "parent": 86, "children": [], "start_point": {"row": 35, "column": 24}, "end_point": {"row": 35, "column": 28}}, {"id": 88, "type": "argument_list", "text": "(argv[MAXWASHTIME+1])", "parent": 86, "children": [89], "start_point": {"row": 35, "column": 28}, "end_point": {"row": 35, "column": 49}}, {"id": 89, "type": "subscript_expression", "text": "argv[MAXWASHTIME+1]", "parent": 88, "children": [90, 91], "start_point": {"row": 35, "column": 29}, "end_point": {"row": 35, "column": 48}}, {"id": 90, "type": "identifier", "text": "argv", "parent": 89, "children": [], "start_point": {"row": 35, "column": 29}, "end_point": {"row": 35, "column": 33}}, {"id": 91, "type": "binary_expression", "text": "MAXWASHTIME+1", "parent": 89, "children": [92, 93, 94], "start_point": {"row": 35, "column": 34}, "end_point": {"row": 35, "column": 47}}, {"id": 92, "type": "identifier", "text": "MAXWASHTIME", "parent": 91, "children": [], "start_point": {"row": 35, "column": 34}, "end_point": {"row": 35, "column": 45}}, {"id": 93, "type": "+", "text": "+", "parent": 91, "children": [], "start_point": {"row": 35, "column": 45}, "end_point": {"row": 35, "column": 46}}, {"id": 94, "type": "number_literal", "text": "1", "parent": 91, "children": [], "start_point": {"row": 35, "column": 46}, "end_point": {"row": 35, "column": 47}}, {"id": 95, "type": "assignment_expression", "text": "args[NUMOFMACHINES] = atoi(argv[NUMOFMACHINES+1])", "parent": 25, "children": [96, 99, 100], "start_point": {"row": 36, "column": 4}, "end_point": {"row": 36, "column": 53}}, {"id": 96, "type": "subscript_expression", "text": "args[NUMOFMACHINES]", "parent": 95, "children": [97, 98], "start_point": {"row": 36, "column": 4}, "end_point": {"row": 36, "column": 23}}, {"id": 97, "type": "identifier", "text": "args", "parent": 96, "children": [], "start_point": {"row": 36, "column": 4}, "end_point": {"row": 36, "column": 8}}, {"id": 98, "type": "identifier", "text": "NUMOFMACHINES", "parent": 96, "children": [], "start_point": {"row": 36, "column": 9}, "end_point": {"row": 36, "column": 22}}, {"id": 99, "type": "=", "text": "=", "parent": 95, "children": [], "start_point": {"row": 36, "column": 24}, "end_point": {"row": 36, "column": 25}}, {"id": 100, "type": "call_expression", "text": "atoi(argv[NUMOFMACHINES+1])", "parent": 95, "children": [101, 102], "start_point": {"row": 36, "column": 26}, "end_point": {"row": 36, "column": 53}}, {"id": 101, "type": "identifier", "text": "atoi", "parent": 100, "children": [], "start_point": {"row": 36, "column": 26}, "end_point": {"row": 36, "column": 30}}, {"id": 102, "type": "argument_list", "text": "(argv[NUMOFMACHINES+1])", "parent": 100, "children": [103], "start_point": {"row": 36, "column": 30}, "end_point": {"row": 36, "column": 53}}, {"id": 103, "type": "subscript_expression", "text": "argv[NUMOFMACHINES+1]", "parent": 102, "children": [104, 105], "start_point": {"row": 36, "column": 31}, "end_point": {"row": 36, "column": 52}}, {"id": 104, "type": "identifier", "text": "argv", "parent": 103, "children": [], "start_point": {"row": 36, "column": 31}, "end_point": {"row": 36, "column": 35}}, {"id": 105, "type": "binary_expression", "text": "NUMOFMACHINES+1", "parent": 103, "children": [106, 107, 108], "start_point": {"row": 36, "column": 36}, "end_point": {"row": 36, "column": 51}}, {"id": 106, "type": "identifier", "text": "NUMOFMACHINES", "parent": 105, "children": [], "start_point": {"row": 36, "column": 36}, "end_point": {"row": 36, "column": 49}}, {"id": 107, "type": "+", "text": "+", "parent": 105, "children": [], "start_point": {"row": 36, "column": 49}, "end_point": {"row": 36, "column": 50}}, {"id": 108, "type": "number_literal", "text": "1", "parent": 105, "children": [], "start_point": {"row": 36, "column": 50}, "end_point": {"row": 36, "column": 51}}, {"id": 109, "type": "function_definition", "text": "int main(int argc, char *argv[])\n{\n int args[ ARGSIZE ];\n argparser(argc, argv, args);\n\n run_simulator(args[SHIFTTIME], args[MAXWASHTIME], args[NUMOFMACHINES]);\n\n return 0;\n}", "parent": null, "children": [110, 111], "start_point": {"row": 39, "column": 0}, "end_point": {"row": 47, "column": 1}}, {"id": 110, "type": "primitive_type", "text": "int", "parent": 109, "children": [], "start_point": {"row": 39, "column": 0}, "end_point": {"row": 39, "column": 3}}, {"id": 111, "type": "function_declarator", "text": "main(int argc, char *argv[])", "parent": 109, "children": [112, 113], "start_point": {"row": 39, "column": 4}, "end_point": {"row": 39, "column": 32}}, {"id": 112, "type": "identifier", "text": "main", "parent": 111, "children": [], "start_point": {"row": 39, "column": 4}, "end_point": {"row": 39, "column": 8}}, {"id": 113, "type": "parameter_list", "text": "(int argc, char *argv[])", "parent": 111, "children": [114, 117], "start_point": {"row": 39, "column": 8}, "end_point": {"row": 39, "column": 32}}, {"id": 114, "type": "parameter_declaration", "text": "int argc", "parent": 113, "children": [115, 116], "start_point": {"row": 39, "column": 9}, "end_point": {"row": 39, "column": 17}}, {"id": 115, "type": "primitive_type", "text": "int", "parent": 114, "children": [], "start_point": {"row": 39, "column": 9}, "end_point": {"row": 39, "column": 12}}, {"id": 116, "type": "identifier", "text": "argc", "parent": 114, "children": [], "start_point": {"row": 39, "column": 13}, "end_point": {"row": 39, "column": 17}}, {"id": 117, "type": "parameter_declaration", "text": "char *argv[]", "parent": 113, "children": [118, 119], "start_point": {"row": 39, "column": 19}, "end_point": {"row": 39, "column": 31}}, {"id": 118, "type": "primitive_type", "text": "char", "parent": 117, "children": [], "start_point": {"row": 39, "column": 19}, "end_point": {"row": 39, "column": 23}}, {"id": 119, "type": "pointer_declarator", "text": "*argv[]", "parent": 117, "children": [120, 121], "start_point": {"row": 39, "column": 24}, "end_point": {"row": 39, "column": 31}}, {"id": 120, "type": "*", "text": "*", "parent": 119, "children": [], "start_point": {"row": 39, "column": 24}, "end_point": {"row": 39, "column": 25}}, {"id": 121, "type": "array_declarator", "text": "argv[]", "parent": 119, "children": [122], "start_point": {"row": 39, "column": 25}, "end_point": {"row": 39, "column": 31}}, {"id": 122, "type": "identifier", "text": "argv", "parent": 121, "children": [], "start_point": {"row": 39, "column": 25}, "end_point": {"row": 39, "column": 29}}, {"id": 123, "type": "declaration", "text": "int args[ ARGSIZE ];", "parent": 109, "children": [124, 125], "start_point": {"row": 41, "column": 4}, "end_point": {"row": 41, "column": 24}}, {"id": 124, "type": "primitive_type", "text": "int", "parent": 123, "children": [], "start_point": {"row": 41, "column": 4}, "end_point": {"row": 41, "column": 7}}, {"id": 125, "type": "array_declarator", "text": "args[ ARGSIZE ]", "parent": 123, "children": [126, 127], "start_point": {"row": 41, "column": 8}, "end_point": {"row": 41, "column": 23}}, {"id": 126, "type": "identifier", "text": "args", "parent": 125, "children": [], "start_point": {"row": 41, "column": 8}, "end_point": {"row": 41, "column": 12}}, {"id": 127, "type": "identifier", "text": "ARGSIZE", "parent": 125, "children": [], "start_point": {"row": 41, "column": 14}, "end_point": {"row": 41, "column": 21}}, {"id": 128, "type": "call_expression", "text": "argparser(argc, argv, args)", "parent": 109, "children": [129, 130], "start_point": {"row": 42, "column": 4}, "end_point": {"row": 42, "column": 31}}, {"id": 129, "type": "identifier", "text": "argparser", "parent": 128, "children": [], "start_point": {"row": 42, "column": 4}, "end_point": {"row": 42, "column": 13}}, {"id": 130, "type": "argument_list", "text": "(argc, argv, args)", "parent": 128, "children": [131, 132, 133], "start_point": {"row": 42, "column": 13}, "end_point": {"row": 42, "column": 31}}, {"id": 131, "type": "identifier", "text": "argc", "parent": 130, "children": [], "start_point": {"row": 42, "column": 14}, "end_point": {"row": 42, "column": 18}}, {"id": 132, "type": "identifier", "text": "argv", "parent": 130, "children": [], "start_point": {"row": 42, "column": 20}, "end_point": {"row": 42, "column": 24}}, {"id": 133, "type": "identifier", "text": "args", "parent": 130, "children": [], "start_point": {"row": 42, "column": 26}, "end_point": {"row": 42, "column": 30}}, {"id": 134, "type": "call_expression", "text": "run_simulator(args[SHIFTTIME], args[MAXWASHTIME], args[NUMOFMACHINES])", "parent": 109, "children": [135, 136], "start_point": {"row": 44, "column": 4}, "end_point": {"row": 44, "column": 74}}, {"id": 135, "type": "identifier", "text": "run_simulator", "parent": 134, "children": [], "start_point": {"row": 44, "column": 4}, "end_point": {"row": 44, "column": 17}}, {"id": 136, "type": "argument_list", "text": "(args[SHIFTTIME], args[MAXWASHTIME], args[NUMOFMACHINES])", "parent": 134, "children": [137, 140, 143], "start_point": {"row": 44, "column": 17}, "end_point": {"row": 44, "column": 74}}, {"id": 137, "type": "subscript_expression", "text": "args[SHIFTTIME]", "parent": 136, "children": [138, 139], "start_point": {"row": 44, "column": 18}, "end_point": {"row": 44, "column": 33}}, {"id": 138, "type": "identifier", "text": "args", "parent": 137, "children": [], "start_point": {"row": 44, "column": 18}, "end_point": {"row": 44, "column": 22}}, {"id": 139, "type": "identifier", "text": "SHIFTTIME", "parent": 137, "children": [], "start_point": {"row": 44, "column": 23}, "end_point": {"row": 44, "column": 32}}, {"id": 140, "type": "subscript_expression", "text": "args[MAXWASHTIME]", "parent": 136, "children": [141, 142], "start_point": {"row": 44, "column": 35}, "end_point": {"row": 44, "column": 52}}, {"id": 141, "type": "identifier", "text": "args", "parent": 140, "children": [], "start_point": {"row": 44, "column": 35}, "end_point": {"row": 44, "column": 39}}, {"id": 142, "type": "identifier", "text": "MAXWASHTIME", "parent": 140, "children": [], "start_point": {"row": 44, "column": 40}, "end_point": {"row": 44, "column": 51}}, {"id": 143, "type": "subscript_expression", "text": "args[NUMOFMACHINES]", "parent": 136, "children": [144, 145], "start_point": {"row": 44, "column": 54}, "end_point": {"row": 44, "column": 73}}, {"id": 144, "type": "identifier", "text": "args", "parent": 143, "children": [], "start_point": {"row": 44, "column": 54}, "end_point": {"row": 44, "column": 58}}, {"id": 145, "type": "identifier", "text": "NUMOFMACHINES", "parent": 143, "children": [], "start_point": {"row": 44, "column": 59}, "end_point": {"row": 44, "column": 72}}, {"id": 146, "type": "return_statement", "text": "return 0;", "parent": 109, "children": [147], "start_point": {"row": 46, "column": 4}, "end_point": {"row": 46, "column": 13}}, {"id": 147, "type": "number_literal", "text": "0", "parent": 146, "children": [], "start_point": {"row": 46, "column": 11}, "end_point": {"row": 46, "column": 12}}]}, "node_categories": {"declarations": {"functions": [25, 27, 109, 111], "variables": [30, 33, 39, 114, 117, 123], "classes": [], "imports": [0, 1, 3, 4, 6, 7], "modules": [], "enums": []}, "statements": {"expressions": [44, 45, 46, 52, 58, 63, 68, 72, 75, 77, 82, 86, 89, 91, 96, 100, 103, 105, 128, 134, 137, 140, 143], "assignments": [67, 81, 95], "loops": [], "conditionals": [11, 15, 19, 23, 28, 32, 38, 42, 43, 47, 51, 53, 57, 59, 64, 66, 69, 70, 73, 76, 78, 83, 84, 87, 90, 92, 97, 98, 101, 104, 106, 112, 116, 122, 126, 127, 129, 131, 132, 133, 135, 138, 139, 141, 142, 144, 145], "returns": [146], "exceptions": []}, "expressions": {"calls": [], "literals": [2, 5, 8, 49, 55, 61, 80, 94, 108, 147], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [{"node_id": 25, "universal_type": "function", "name": "argparser", "text_snippet": "void argparser(int argc, char *argv[], int args[])\n{\n if( argc-1!=ARGSIZE )\n {\n printf("}, {"node_id": 27, "universal_type": "function", "name": "args[])", "text_snippet": "argparser(int argc, char *argv[], int args[])"}, {"node_id": 109, "universal_type": "function", "name": "main", "text_snippet": "int main(int argc, char *argv[])\n{\n int args[ ARGSIZE ];\n argparser(argc, argv, args);\n\n ru"}, {"node_id": 111, "universal_type": "function", "name": "unknown", "text_snippet": "main(int argc, char *argv[])"}], "class_declarations": [], "import_statements": [{"node_id": 0, "text": "#include <stdio.h>\n"}, {"node_id": 1, "text": "#include"}, {"node_id": 3, "text": "#include \"Project_Lib/carwashsystem.h\"\n"}, {"node_id": 4, "text": "#include"}, {"node_id": 6, "text": "#include \"Project_Lib/debugging.h\"\n"}, {"node_id": 7, "text": "#include"}]}, "original_source_code": "/*\n * Title : Car Wash System V1.0\n * Developer : <NAME>\n * Compiler : gcc version 5.4.0\n * OS : Ubuntu 16.04 LTS\n * IDE : Qt Creator 4.1.0\n * License : The MIT License (MIT)\n * Indent : 4 spaces\n *\n *#Compiling with gcc\n * gcc Project_Lib/queue.c Project_Lib/carwashsystem.c Project_Lib/toolbox.c Project_Lib/linkedlist.c Project_Lib/debugging.c main.c -o main\n *\n *#Compiling with Qt Creator\n * Open the project by clicking .pro file ==> build by ctrl+b ==> run by ctrl+r\n */\n\n#include <stdio.h>\n#include \"Project_Lib/carwashsystem.h\"\n#include \"Project_Lib/debugging.h\"\n\n#define ARGSIZE 3\n#define SHIFTTIME 0\n#define MAXWASHTIME 1\n#define NUMOFMACHINES 2\n\nvoid argparser(int argc, char *argv[], int args[])\n{\n if( argc-1!=ARGSIZE )\n {\n printf(\"[!] Please enter %d arguments.\\n\", ARGSIZE);\n printf(\"Usage : ./CNF213_Assignment_2 shiftTime maxWashTime numberOfMachines\\n\");\n exit(EXIT_FAILURE);\n }\n\n args[SHIFTTIME] = atoi(argv[SHIFTTIME+1]);\n args[MAXWASHTIME] = atoi(argv[MAXWASHTIME+1]);\n args[NUMOFMACHINES] = atoi(argv[NUMOFMACHINES+1]);\n}\n\nint main(int argc, char *argv[])\n{\n int args[ ARGSIZE ];\n argparser(argc, argv, args);\n\n run_simulator(args[SHIFTTIME], args[MAXWASHTIME], args[NUMOFMACHINES]);\n\n return 0;\n}\n"}
80,005
c
// // TLADayCollectionViewCell.h // travelApp // // Created by <NAME> on 08/05/2019. // Copyright © 2019 <NAME>. All rights reserved. // #import <UIKit/UIKit.h> NS_ASSUME_NONNULL_BEGIN @interface TLADayCollectionViewCell : UICollectionViewCell @property (nonatomic, strong) UILabel *dateLabel; /**< Дата */ - (void)selectedCell:(BOOL)selected; @end NS_ASSUME_NONNULL_END
21.24
17
(translation_unit) "//\n// TLADayCollectionViewCell.h\n// travelApp\n//\n// Created by <NAME> on 08/05/2019.\n// Copyright © 2019 <NAME>. All rights reserved.\n//\n\n\n#import <UIKit/UIKit.h>\n\n\nNS_ASSUME_NONNULL_BEGIN\n\n\n@interface TLADayCollectionViewCell : UICollectionViewCell\n\n@property (nonatomic, strong) UILabel *dateLabel; /**< Дата */\n\n- (void)selectedCell:(BOOL)selected;\n\n@end\n\nNS_ASSUME_NONNULL_END\n" (comment) "//" (comment) "// TLADayCollectionViewCell.h" (comment) "// travelApp" (comment) "//" (comment) "// Created by <NAME> on 08/05/2019." (comment) "// Copyright © 2019 <NAME>. All rights reserved.\n" (comment) "/\n" (preproc_call) "import <UIKit/UIKit.h>\n\n" (preproc_directive) "import " (preproc_arg) "UIKit/UIKit.h>\n" (declaration) "S_ASSUME_NONNULL_BEGIN\n\n\n@interface " (type_identifier) "S_ASSUME_NONNULL_BEGIN\n" (ERROR) "i" (ERROR) "i" (identifier) "nterface " (;) "" (labeled_statement) "LADayCollectionViewCell : UICollectionViewCell\n\n@property (nonatomic, strong) UILabel *dateLabel; " (statement_identifier) "LADayCollectionViewCell " (:) " " (declaration) "ICollectionViewCell\n\n@property (nonatomic, strong) UILabel *dateLabel; " (type_identifier) "ICollectionViewCell\n" (ERROR) "property (nonatomic, strong) UILabel " (ERROR) "p" (function_declarator) "roperty (nonatomic, strong) UILabel " (identifier) "roperty " (parameter_list) "nonatomic, strong) " (() "n" (parameter_declaration) "onatomic," (type_identifier) "onatomic," (,) " " (parameter_declaration) "trong)" (type_identifier) "trong)" ()) " " (identifier) "ILabel " (pointer_declarator) "dateLabel;" (*) "d" (identifier) "ateLabel;" (;) " " (comment) "**< Дата */\n\n- (" (expression_statement) "id)selectedCell:(BOOL)selected;\n\n@en" (unary_expression) "id)selectedCell:(BOO" (-) "i" (cast_expression) ")selectedCell:(BOO" (() ")" (type_descriptor) "sele" (primitive_type) "sele" ()) "c" (identifier) "tedCell:(BOO" (ERROR) "L)selected;\n\n@e" (:) "L" (() ")" (identifier) "sele" ()) "c" (identifier) "ted;\n\n@e" (;) "n" (ERROR) "\n" (ERROR) "\n" (declaration) "NS_ASSUME_NONNULL_END\n" (type_identifier) "NS_" (identifier) "SUME_NONNULL_END\n" (;) ""
62
7
{"language": "c", "success": true, "metadata": {"lines": 17, "avg_line_length": 21.24, "nodes": 38, "errors": 0, "source_hash": "17970b3e4895a277eb7a3e9bbbca7351095db9b925eea4d0e54932557b5d9709", "categorized_nodes": 23}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "import <UIKit/UIKit.h>\n\n", "parent": null, "children": [1], "start_point": {"row": 9, "column": 0}, "end_point": {"row": 10, "column": 0}}, {"id": 1, "type": "preproc_arg", "text": "UIKit/UIKit.h>\n", "parent": 0, "children": [], "start_point": {"row": 9, "column": 8}, "end_point": {"row": 9, "column": 23}}, {"id": 2, "type": "declaration", "text": "S_ASSUME_NONNULL_BEGIN\n\n\n@interface ", "parent": null, "children": [3, 4, 6], "start_point": {"row": 12, "column": 0}, "end_point": {"row": 15, "column": 10}}, {"id": 3, "type": "type_identifier", "text": "S_ASSUME_NONNULL_BEGIN\n", "parent": 2, "children": [], "start_point": {"row": 12, "column": 0}, "end_point": {"row": 12, "column": 23}}, {"id": 4, "type": "ERROR", "text": "i", "parent": 2, "children": [5], "start_point": {"row": 15, "column": 0}, "end_point": {"row": 15, "column": 1}}, {"id": 5, "type": "ERROR", "text": "i", "parent": 4, "children": [], "start_point": {"row": 15, "column": 0}, "end_point": {"row": 15, "column": 1}}, {"id": 6, "type": "identifier", "text": "nterface ", "parent": 2, "children": [], "start_point": {"row": 15, "column": 1}, "end_point": {"row": 15, "column": 10}}, {"id": 7, "type": "labeled_statement", "text": "LADayCollectionViewCell : UICollectionViewCell\n\n@property (nonatomic, strong) UILabel *dateLabel; ", "parent": null, "children": [8, 9], "start_point": {"row": 15, "column": 11}, "end_point": {"row": 17, "column": 49}}, {"id": 8, "type": "statement_identifier", "text": "LADayCollectionViewCell ", "parent": 7, "children": [], "start_point": {"row": 15, "column": 11}, "end_point": {"row": 15, "column": 35}}, {"id": 9, "type": "declaration", "text": "ICollectionViewCell\n\n@property (nonatomic, strong) UILabel *dateLabel; ", "parent": 7, "children": [10, 11, 21], "start_point": {"row": 15, "column": 38}, "end_point": {"row": 17, "column": 49}}, {"id": 10, "type": "type_identifier", "text": "ICollectionViewCell\n", "parent": 9, "children": [], "start_point": {"row": 15, "column": 38}, "end_point": {"row": 15, "column": 58}}, {"id": 11, "type": "ERROR", "text": "property (nonatomic, strong) UILabel ", "parent": 9, "children": [12, 13], "start_point": {"row": 17, "column": 0}, "end_point": {"row": 17, "column": 37}}, {"id": 12, "type": "ERROR", "text": "p", "parent": 11, "children": [], "start_point": {"row": 17, "column": 0}, "end_point": {"row": 17, "column": 1}}, {"id": 13, "type": "function_declarator", "text": "roperty (nonatomic, strong) UILabel ", "parent": 11, "children": [14, 15, 20], "start_point": {"row": 17, "column": 1}, "end_point": {"row": 17, "column": 37}}, {"id": 14, "type": "identifier", "text": "roperty ", "parent": 13, "children": [], "start_point": {"row": 17, "column": 1}, "end_point": {"row": 17, "column": 9}}, {"id": 15, "type": "parameter_list", "text": "nonatomic, strong) ", "parent": 13, "children": [16, 18], "start_point": {"row": 17, "column": 10}, "end_point": {"row": 17, "column": 29}}, {"id": 16, "type": "parameter_declaration", "text": "onatomic,", "parent": 15, "children": [17], "start_point": {"row": 17, "column": 11}, "end_point": {"row": 17, "column": 20}}, {"id": 17, "type": "type_identifier", "text": "onatomic,", "parent": 16, "children": [], "start_point": {"row": 17, "column": 11}, "end_point": {"row": 17, "column": 20}}, {"id": 18, "type": "parameter_declaration", "text": "trong)", "parent": 15, "children": [19], "start_point": {"row": 17, "column": 22}, "end_point": {"row": 17, "column": 28}}, {"id": 19, "type": "type_identifier", "text": "trong)", "parent": 18, "children": [], "start_point": {"row": 17, "column": 22}, "end_point": {"row": 17, "column": 28}}, {"id": 20, "type": "identifier", "text": "ILabel ", "parent": 13, "children": [], "start_point": {"row": 17, "column": 30}, "end_point": {"row": 17, "column": 37}}, {"id": 21, "type": "pointer_declarator", "text": "dateLabel;", "parent": 9, "children": [22, 23], "start_point": {"row": 17, "column": 38}, "end_point": {"row": 17, "column": 48}}, {"id": 22, "type": "*", "text": "d", "parent": 21, "children": [], "start_point": {"row": 17, "column": 38}, "end_point": {"row": 17, "column": 39}}, {"id": 23, "type": "identifier", "text": "ateLabel;", "parent": 21, "children": [], "start_point": {"row": 17, "column": 39}, "end_point": {"row": 17, "column": 48}}, {"id": 24, "type": "unary_expression", "text": "id)selectedCell:(BOO", "parent": null, "children": [25, 26], "start_point": {"row": 19, "column": 0}, "end_point": {"row": 19, "column": 20}}, {"id": 25, "type": "-", "text": "i", "parent": 24, "children": [], "start_point": {"row": 19, "column": 0}, "end_point": {"row": 19, "column": 1}}, {"id": 26, "type": "cast_expression", "text": ")selectedCell:(BOO", "parent": 24, "children": [27, 29], "start_point": {"row": 19, "column": 2}, "end_point": {"row": 19, "column": 20}}, {"id": 27, "type": "type_descriptor", "text": "sele", "parent": 26, "children": [28], "start_point": {"row": 19, "column": 3}, "end_point": {"row": 19, "column": 7}}, {"id": 28, "type": "primitive_type", "text": "sele", "parent": 27, "children": [], "start_point": {"row": 19, "column": 3}, "end_point": {"row": 19, "column": 7}}, {"id": 29, "type": "identifier", "text": "tedCell:(BOO", "parent": 26, "children": [], "start_point": {"row": 19, "column": 8}, "end_point": {"row": 19, "column": 20}}, {"id": 30, "type": "ERROR", "text": "L)selected;\n\n@e", "parent": null, "children": [31, 32], "start_point": {"row": 19, "column": 20}, "end_point": {"row": 19, "column": 35}}, {"id": 31, "type": "identifier", "text": "sele", "parent": 30, "children": [], "start_point": {"row": 19, "column": 22}, "end_point": {"row": 19, "column": 26}}, {"id": 32, "type": "identifier", "text": "ted;\n\n@e", "parent": 30, "children": [], "start_point": {"row": 19, "column": 27}, "end_point": {"row": 19, "column": 35}}, {"id": 33, "type": "ERROR", "text": "\n", "parent": null, "children": [34], "start_point": {"row": 21, "column": 0}, "end_point": {"row": 21, "column": 1}}, {"id": 34, "type": "ERROR", "text": "\n", "parent": 33, "children": [], "start_point": {"row": 21, "column": 0}, "end_point": {"row": 21, "column": 1}}, {"id": 35, "type": "declaration", "text": "NS_ASSUME_NONNULL_END\n", "parent": null, "children": [36, 37], "start_point": {"row": 21, "column": 1}, "end_point": {"row": 23, "column": 21}}, {"id": 36, "type": "type_identifier", "text": "NS_", "parent": 35, "children": [], "start_point": {"row": 21, "column": 1}, "end_point": {"row": 21, "column": 4}}, {"id": 37, "type": "identifier", "text": "SUME_NONNULL_END\n", "parent": 35, "children": [], "start_point": {"row": 23, "column": 0}, "end_point": {"row": 23, "column": 21}}]}, "node_categories": {"declarations": {"functions": [13], "variables": [2, 9, 16, 18, 35], "classes": [], "imports": [], "modules": [], "enums": []}, "statements": {"expressions": [24, 26], "assignments": [], "loops": [], "conditionals": [3, 6, 8, 10, 14, 17, 19, 20, 23, 29, 31, 32, 36, 37], "returns": [], "exceptions": []}, "expressions": {"calls": [0], "literals": [], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [{"node_id": 13, "universal_type": "function", "name": "unknown", "text_snippet": "roperty (nonatomic, strong) UILabel "}], "class_declarations": [], "import_statements": []}, "original_source_code": "//\n// TLADayCollectionViewCell.h\n// travelApp\n//\n// Created by <NAME> on 08/05/2019.\n// Copyright \u00a9 2019 <NAME>. All rights reserved.\n//\n\n\n#import <UIKit/UIKit.h>\n\n\nNS_ASSUME_NONNULL_BEGIN\n\n\n@interface TLADayCollectionViewCell : UICollectionViewCell\n\n@property (nonatomic, strong) UILabel *dateLabel; /**< \u0414\u0430\u0442\u0430 */\n\n- (void)selectedCell:(BOOL)selected;\n\n@end\n\nNS_ASSUME_NONNULL_END\n"}
80,006
c
// // EUCGroupController.h // EUCSDK_Sample // // Created by 肖乐 on 2018/3/9. // Copyright © 2018年 IMMoveMobile. All rights reserved. // #import "EUCBaseController.h" @interface EUCGroupController : EUCBaseController @end
21.5
10
(translation_unit) "//\n// EUCGroupController.h\n// EUCSDK_Sample\n//\n// Created by 肖乐 on 2018/3/9.\n// Copyright © 2018年 IMMoveMobile. All rights reserved.\n//\n\n#import "EUCBaseController.h"\n\n@interface EUCGroupController : EUCBaseController\n\n@end\n" (comment) "//" (comment) "// EUCGroupController.h" (comment) "// EUCSDK_Sample" (comment) "//" (comment) "// Created by 肖乐 on 2018/3/9.\n// " (comment) "Copyright © 2018年 IMMoveMobile. All rights reserved.\n//\n\n#i" (comment) "po" (preproc_call) " "EUCBaseController.h"\n\n@inter" (preproc_directive) " "EUCBa" (preproc_arg) "eController.h"\n\n@inte" (ERROR) "ace EUCGroupController : EUCBaseController\n\n@end\n" (ERROR) "a" (type_identifier) "ce EUCGro" (identifier) "pController : EUCB" (:) "s" (identifier) "Controller\n\n@end\n" (ERROR) "" (identifier) ""
19
3
{"language": "c", "success": true, "metadata": {"lines": 10, "avg_line_length": 21.5, "nodes": 10, "errors": 0, "source_hash": "a3e1974feb21762788b6c8869798925b388d95d70a2f53676ee3718c763c57d6", "categorized_nodes": 5}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": " \"EUCBaseController.h\"\n\n@inter", "parent": null, "children": [1, 2], "start_point": {"row": 8, "column": 0}, "end_point": {"row": 9, "column": 0}}, {"id": 1, "type": "preproc_directive", "text": " \"EUCBa", "parent": 0, "children": [], "start_point": {"row": 8, "column": 0}, "end_point": {"row": 8, "column": 7}}, {"id": 2, "type": "preproc_arg", "text": "eController.h\"\n\n@inte", "parent": 0, "children": [], "start_point": {"row": 8, "column": 8}, "end_point": {"row": 8, "column": 29}}, {"id": 3, "type": "ERROR", "text": "ace EUCGroupController : EUCBaseController\n\n@end\n", "parent": null, "children": [4, 5, 6, 7, 8, 9], "start_point": {"row": 10, "column": 0}, "end_point": {"row": 12, "column": 4}}, {"id": 4, "type": "ERROR", "text": "a", "parent": 3, "children": [], "start_point": {"row": 10, "column": 0}, "end_point": {"row": 10, "column": 1}}, {"id": 5, "type": "type_identifier", "text": "ce EUCGro", "parent": 3, "children": [], "start_point": {"row": 10, "column": 1}, "end_point": {"row": 10, "column": 10}}, {"id": 6, "type": "identifier", "text": "pController : EUCB", "parent": 3, "children": [], "start_point": {"row": 10, "column": 11}, "end_point": {"row": 10, "column": 29}}, {"id": 7, "type": "identifier", "text": "Controller\n\n@end\n", "parent": 3, "children": [], "start_point": {"row": 10, "column": 32}, "end_point": {"row": 10, "column": 49}}, {"id": 8, "type": "ERROR", "text": "", "parent": 3, "children": [], "start_point": {"row": 12, "column": 0}, "end_point": {"row": 12, "column": 1}}, {"id": 9, "type": "identifier", "text": "", "parent": 3, "children": [], "start_point": {"row": 12, "column": 1}, "end_point": {"row": 12, "column": 4}}]}, "node_categories": {"declarations": {"functions": [], "variables": [], "classes": [], "imports": [], "modules": [], "enums": []}, "statements": {"expressions": [], "assignments": [], "loops": [], "conditionals": [5, 6, 7, 9], "returns": [], "exceptions": []}, "expressions": {"calls": [0], "literals": [], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [], "class_declarations": [], "import_statements": []}, "original_source_code": "//\n// EUCGroupController.h\n// EUCSDK_Sample\n//\n// Created by \u8096\u4e50 on 2018/3/9.\n// Copyright \u00a9 2018\u5e74 IMMoveMobile. All rights reserved.\n//\n\n#import \"EUCBaseController.h\"\n\n@interface EUCGroupController : EUCBaseController\n\n@end\n"}
80,007
c
#include "unittest.h" #include <fcntl.h> #include <unistd.h> #include <stdbool.h> #include <stdio.h> #include <string.h> static const char red[] = "\033[1;31m"; static const char green[] = "\033[1;32m"; static const char end_color[] = "\033[0m"; void print_summary(const tests_summary *summary) { const char *color = ""; const char *end = ""; if (isatty(STDOUT_FILENO)) { color = summary->failed == 0 ? green : red; end = end_color; } const char *ending = summary->passed != 1 ? "s" : ""; printf("%s%s: Passed %d ", color, summary->name, summary->passed); printf("test%s and failed %d.%s\n", ending, summary->failed, end); } void print_failure_context(const char *program_name, const char *test_name) { printf("[%s] Failed test %s: ", program_name, test_name); } // Print a message describing a failed test. static void print_failure(const tests_summary *summary, const char *message) { printf("[%s] Failed test: %s\n", summary->name, message); } // Update the counters of passed and failed tests. static void count_test(bool passed, tests_summary *summary) { if (passed) { summary->passed++; } else { summary->failed++; } } void count_passed_test(tests_summary *summary) { count_test(true, summary); } void run_test(bool (*test)(const char *program_name), tests_summary *summary) { count_test(test(summary->name), summary); } void test_that(bool passed, tests_summary *summary, const char *message) { if (!passed) { print_failure(summary, message); } count_test(passed, summary); } void test_str_equals(const char *result, const char *expected, const char *test_name, tests_summary *summary) { bool passed = strcmp(result, expected) == 0; if (!passed) { print_failure_context(summary->name, test_name); printf("expected \"%s\", got \"%s\"\n", expected, result); } count_test(passed, summary); } int discard_stderr(void) { fflush(stderr); int old_stderr_fd = dup(STDERR_FILENO); int dev_null_fd = open("/dev/null", O_WRONLY); dup2(dev_null_fd, STDERR_FILENO); close(dev_null_fd); return old_stderr_fd; } void restore_stderr(int old_stderr_fd) { fflush(stderr); dup2(old_stderr_fd, STDERR_FILENO); close(old_stderr_fd); }
27.64
81
(translation_unit) "#include "unittest.h"\n\n#include <fcntl.h>\n#include <unistd.h>\n\n#include <stdbool.h>\n#include <stdio.h>\n#include <string.h>\n\n\nstatic const char red[] = "\033[1;31m";\nstatic const char green[] = "\033[1;32m";\nstatic const char end_color[] = "\033[0m";\n\n\nvoid print_summary(const tests_summary *summary)\n{\n const char *color = "";\n const char *end = "";\n if (isatty(STDOUT_FILENO)) {\n color = summary->failed == 0 ? green : red;\n end = end_color;\n }\n\n const char *ending = summary->passed != 1 ? "s" : "";\n printf("%s%s: Passed %d ", color, summary->name, summary->passed);\n printf("test%s and failed %d.%s\n", ending, summary->failed, end);\n}\n\nvoid print_failure_context(const char *program_name, const char *test_name)\n{\n printf("[%s] Failed test %s: ", program_name, test_name);\n}\n\n// Print a message describing a failed test.\nstatic void print_failure(const tests_summary *summary, const char *message)\n{\n printf("[%s] Failed test: %s\n", summary->name, message);\n}\n\n// Update the counters of passed and failed tests.\nstatic void count_test(bool passed, tests_summary *summary)\n{\n if (passed) {\n summary->passed++;\n } else {\n summary->failed++;\n }\n}\n\nvoid count_passed_test(tests_summary *summary)\n{\n count_test(true, summary);\n}\n\nvoid run_test(bool (*test)(const char *program_name), tests_summary *summary)\n{\n count_test(test(summary->name), summary);\n}\n\nvoid test_that(bool passed, tests_summary *summary, const char *message)\n{\n if (!passed) {\n print_failure(summary, message);\n }\n count_test(passed, summary);\n}\n\nvoid test_str_equals(const char *result, const char *expected,\n const char *test_name, tests_summary *summary)\n{\n bool passed = strcmp(result, expected) == 0;\n if (!passed) {\n print_failure_context(summary->name, test_name);\n printf("expected \"%s\", got \"%s\"\n", expected, result);\n }\n count_test(passed, summary);\n}\n\nint discard_stderr(void)\n{\n fflush(stderr);\n int old_stderr_fd = dup(STDERR_FILENO);\n int dev_null_fd = open("/dev/null", O_WRONLY);\n dup2(dev_null_fd, STDERR_FILENO);\n close(dev_null_fd);\n return old_stderr_fd;\n}\n\nvoid restore_stderr(int old_stderr_fd)\n{\n fflush(stderr);\n dup2(old_stderr_fd, STDERR_FILENO);\n close(old_stderr_fd);\n}\n" (preproc_include) "#include "unittest.h"\n" (#include) "#include" (string_literal) ""unittest.h"" (") """ (string_content) "unittest.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 <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 <string.h>\n" (#include) "#include" (system_lib_string) "<string.h>" (declaration) "static const char red[] = "\033[1;31m";" (storage_class_specifier) "static" (static) "static" (type_qualifier) "const" (const) "const" (primitive_type) "char" (init_declarator) "red[] = "\033[1;31m"" (array_declarator) "red[]" (identifier) "red" ([) "[" (]) "]" (=) "=" (string_literal) ""\033[1;31m"" (") """ (escape_sequence) "\033" (string_content) "[1;31m" (") """ (;) ";" (declaration) "static const char green[] = "\033[1;32m";" (storage_class_specifier) "static" (static) "static" (type_qualifier) "const" (const) "const" (primitive_type) "char" (init_declarator) "green[] = "\033[1;32m"" (array_declarator) "green[]" (identifier) "green" ([) "[" (]) "]" (=) "=" (string_literal) ""\033[1;32m"" (") """ (escape_sequence) "\033" (string_content) "[1;32m" (") """ (;) ";" (declaration) "static const char end_color[] = "\033[0m";" (storage_class_specifier) "static" (static) "static" (type_qualifier) "const" (const) "const" (primitive_type) "char" (init_declarator) "end_color[] = "\033[0m"" (array_declarator) "end_color[]" (identifier) "end_color" ([) "[" (]) "]" (=) "=" (string_literal) ""\033[0m"" (") """ (escape_sequence) "\033" (string_content) "[0m" (") """ (;) ";" (function_definition) "void print_summary(const tests_summary *summary)\n{\n const char *color = "";\n const char *end = "";\n if (isatty(STDOUT_FILENO)) {\n color = summary->failed == 0 ? green : red;\n end = end_color;\n }\n\n const char *ending = summary->passed != 1 ? "s" : "";\n printf("%s%s: Passed %d ", color, summary->name, summary->passed);\n printf("test%s and failed %d.%s\n", ending, summary->failed, end);\n}" (primitive_type) "void" (function_declarator) "print_summary(const tests_summary *summary)" (identifier) "print_summary" (parameter_list) "(const tests_summary *summary)" (() "(" (parameter_declaration) "const tests_summary *summary" (type_qualifier) "const" (const) "const" (type_identifier) "tests_summary" (pointer_declarator) "*summary" (*) "*" (identifier) "summary" ()) ")" (compound_statement) "{\n const char *color = "";\n const char *end = "";\n if (isatty(STDOUT_FILENO)) {\n color = summary->failed == 0 ? green : red;\n end = end_color;\n }\n\n const char *ending = summary->passed != 1 ? "s" : "";\n printf("%s%s: Passed %d ", color, summary->name, summary->passed);\n printf("test%s and failed %d.%s\n", ending, summary->failed, end);\n}" ({) "{" (declaration) "const char *color = "";" (type_qualifier) "const" (const) "const" (primitive_type) "char" (init_declarator) "*color = """ (pointer_declarator) "*color" (*) "*" (identifier) "color" (=) "=" (string_literal) """" (") """ (") """ (;) ";" (declaration) "const char *end = "";" (type_qualifier) "const" (const) "const" (primitive_type) "char" (init_declarator) "*end = """ (pointer_declarator) "*end" (*) "*" (identifier) "end" (=) "=" (string_literal) """" (") """ (") """ (;) ";" (if_statement) "if (isatty(STDOUT_FILENO)) {\n color = summary->failed == 0 ? green : red;\n end = end_color;\n }" (if) "if" (parenthesized_expression) "(isatty(STDOUT_FILENO))" (() "(" (call_expression) "isatty(STDOUT_FILENO)" (identifier) "isatty" (argument_list) "(STDOUT_FILENO)" (() "(" (identifier) "STDOUT_FILENO" ()) ")" ()) ")" (compound_statement) "{\n color = summary->failed == 0 ? green : red;\n end = end_color;\n }" ({) "{" (expression_statement) "color = summary->failed == 0 ? green : red;" (assignment_expression) "color = summary->failed == 0 ? green : red" (identifier) "color" (=) "=" (conditional_expression) "summary->failed == 0 ? green : red" (binary_expression) "summary->failed == 0" (field_expression) "summary->failed" (identifier) "summary" (->) "->" (field_identifier) "failed" (==) "==" (number_literal) "0" (?) "?" (identifier) "green" (:) ":" (identifier) "red" (;) ";" (expression_statement) "end = end_color;" (assignment_expression) "end = end_color" (identifier) "end" (=) "=" (identifier) "end_color" (;) ";" (}) "}" (declaration) "const char *ending = summary->passed != 1 ? "s" : "";" (type_qualifier) "const" (const) "const" (primitive_type) "char" (init_declarator) "*ending = summary->passed != 1 ? "s" : """ (pointer_declarator) "*ending" (*) "*" (identifier) "ending" (=) "=" (conditional_expression) "summary->passed != 1 ? "s" : """ (binary_expression) "summary->passed != 1" (field_expression) "summary->passed" (identifier) "summary" (->) "->" (field_identifier) "passed" (!=) "!=" (number_literal) "1" (?) "?" (string_literal) ""s"" (") """ (string_content) "s" (") """ (:) ":" (string_literal) """" (") """ (") """ (;) ";" (expression_statement) "printf("%s%s: Passed %d ", color, summary->name, summary->passed);" (call_expression) "printf("%s%s: Passed %d ", color, summary->name, summary->passed)" (identifier) "printf" (argument_list) "("%s%s: Passed %d ", color, summary->name, summary->passed)" (() "(" (string_literal) ""%s%s: Passed %d "" (") """ (string_content) "%s%s: Passed %d " (") """ (,) "," (identifier) "color" (,) "," (field_expression) "summary->name" (identifier) "summary" (->) "->" (field_identifier) "name" (,) "," (field_expression) "summary->passed" (identifier) "summary" (->) "->" (field_identifier) "passed" ()) ")" (;) ";" (expression_statement) "printf("test%s and failed %d.%s\n", ending, summary->failed, end);" (call_expression) "printf("test%s and failed %d.%s\n", ending, summary->failed, end)" (identifier) "printf" (argument_list) "("test%s and failed %d.%s\n", ending, summary->failed, end)" (() "(" (string_literal) ""test%s and failed %d.%s\n"" (") """ (string_content) "test%s and failed %d.%s" (escape_sequence) "\n" (") """ (,) "," (identifier) "ending" (,) "," (field_expression) "summary->failed" (identifier) "summary" (->) "->" (field_identifier) "failed" (,) "," (identifier) "end" ()) ")" (;) ";" (}) "}" (function_definition) "void print_failure_context(const char *program_name, const char *test_name)\n{\n printf("[%s] Failed test %s: ", program_name, test_name);\n}" (primitive_type) "void" (function_declarator) "print_failure_context(const char *program_name, const char *test_name)" (identifier) "print_failure_context" (parameter_list) "(const char *program_name, const char *test_name)" (() "(" (parameter_declaration) "const char *program_name" (type_qualifier) "const" (const) "const" (primitive_type) "char" (pointer_declarator) "*program_name" (*) "*" (identifier) "program_name" (,) "," (parameter_declaration) "const char *test_name" (type_qualifier) "const" (const) "const" (primitive_type) "char" (pointer_declarator) "*test_name" (*) "*" (identifier) "test_name" ()) ")" (compound_statement) "{\n printf("[%s] Failed test %s: ", program_name, test_name);\n}" ({) "{" (expression_statement) "printf("[%s] Failed test %s: ", program_name, test_name);" (call_expression) "printf("[%s] Failed test %s: ", program_name, test_name)" (identifier) "printf" (argument_list) "("[%s] Failed test %s: ", program_name, test_name)" (() "(" (string_literal) ""[%s] Failed test %s: "" (") """ (string_content) "[%s] Failed test %s: " (") """ (,) "," (identifier) "program_name" (,) "," (identifier) "test_name" ()) ")" (;) ";" (}) "}" (comment) "// Print a message describing a failed test." (function_definition) "static void print_failure(const tests_summary *summary, const char *message)\n{\n printf("[%s] Failed test: %s\n", summary->name, message);\n}" (storage_class_specifier) "static" (static) "static" (primitive_type) "void" (function_declarator) "print_failure(const tests_summary *summary, const char *message)" (identifier) "print_failure" (parameter_list) "(const tests_summary *summary, const char *message)" (() "(" (parameter_declaration) "const tests_summary *summary" (type_qualifier) "const" (const) "const" (type_identifier) "tests_summary" (pointer_declarator) "*summary" (*) "*" (identifier) "summary" (,) "," (parameter_declaration) "const char *message" (type_qualifier) "const" (const) "const" (primitive_type) "char" (pointer_declarator) "*message" (*) "*" (identifier) "message" ()) ")" (compound_statement) "{\n printf("[%s] Failed test: %s\n", summary->name, message);\n}" ({) "{" (expression_statement) "printf("[%s] Failed test: %s\n", summary->name, message);" (call_expression) "printf("[%s] Failed test: %s\n", summary->name, message)" (identifier) "printf" (argument_list) "("[%s] Failed test: %s\n", summary->name, message)" (() "(" (string_literal) ""[%s] Failed test: %s\n"" (") """ (string_content) "[%s] Failed test: %s" (escape_sequence) "\n" (") """ (,) "," (field_expression) "summary->name" (identifier) "summary" (->) "->" (field_identifier) "name" (,) "," (identifier) "message" ()) ")" (;) ";" (}) "}" (comment) "// Update the counters of passed and failed tests." (function_definition) "static void count_test(bool passed, tests_summary *summary)\n{\n if (passed) {\n summary->passed++;\n } else {\n summary->failed++;\n }\n}" (storage_class_specifier) "static" (static) "static" (primitive_type) "void" (function_declarator) "count_test(bool passed, tests_summary *summary)" (identifier) "count_test" (parameter_list) "(bool passed, tests_summary *summary)" (() "(" (parameter_declaration) "bool passed" (primitive_type) "bool" (identifier) "passed" (,) "," (parameter_declaration) "tests_summary *summary" (type_identifier) "tests_summary" (pointer_declarator) "*summary" (*) "*" (identifier) "summary" ()) ")" (compound_statement) "{\n if (passed) {\n summary->passed++;\n } else {\n summary->failed++;\n }\n}" ({) "{" (if_statement) "if (passed) {\n summary->passed++;\n } else {\n summary->failed++;\n }" (if) "if" (parenthesized_expression) "(passed)" (() "(" (identifier) "passed" ()) ")" (compound_statement) "{\n summary->passed++;\n }" ({) "{" (expression_statement) "summary->passed++;" (update_expression) "summary->passed++" (field_expression) "summary->passed" (identifier) "summary" (->) "->" (field_identifier) "passed" (++) "++" (;) ";" (}) "}" (else_clause) "else {\n summary->failed++;\n }" (else) "else" (compound_statement) "{\n summary->failed++;\n }" ({) "{" (expression_statement) "summary->failed++;" (update_expression) "summary->failed++" (field_expression) "summary->failed" (identifier) "summary" (->) "->" (field_identifier) "failed" (++) "++" (;) ";" (}) "}" (}) "}" (function_definition) "void count_passed_test(tests_summary *summary)\n{\n count_test(true, summary);\n}" (primitive_type) "void" (function_declarator) "count_passed_test(tests_summary *summary)" (identifier) "count_passed_test" (parameter_list) "(tests_summary *summary)" (() "(" (parameter_declaration) "tests_summary *summary" (type_identifier) "tests_summary" (pointer_declarator) "*summary" (*) "*" (identifier) "summary" ()) ")" (compound_statement) "{\n count_test(true, summary);\n}" ({) "{" (expression_statement) "count_test(true, summary);" (call_expression) "count_test(true, summary)" (identifier) "count_test" (argument_list) "(true, summary)" (() "(" (true) "true" (,) "," (identifier) "summary" ()) ")" (;) ";" (}) "}" (function_definition) "void run_test(bool (*test)(const char *program_name), tests_summary *summary)\n{\n count_test(test(summary->name), summary);\n}" (primitive_type) "void" (function_declarator) "run_test(bool (*test)(const char *program_name), tests_summary *summary)" (identifier) "run_test" (parameter_list) "(bool (*test)(const char *program_name), tests_summary *summary)" (() "(" (parameter_declaration) "bool (*test)(const char *program_name)" (primitive_type) "bool" (function_declarator) "(*test)(const char *program_name)" (parenthesized_declarator) "(*test)" (() "(" (pointer_declarator) "*test" (*) "*" (identifier) "test" ()) ")" (parameter_list) "(const char *program_name)" (() "(" (parameter_declaration) "const char *program_name" (type_qualifier) "const" (const) "const" (primitive_type) "char" (pointer_declarator) "*program_name" (*) "*" (identifier) "program_name" ()) ")" (,) "," (parameter_declaration) "tests_summary *summary" (type_identifier) "tests_summary" (pointer_declarator) "*summary" (*) "*" (identifier) "summary" ()) ")" (compound_statement) "{\n count_test(test(summary->name), summary);\n}" ({) "{" (expression_statement) "count_test(test(summary->name), summary);" (call_expression) "count_test(test(summary->name), summary)" (identifier) "count_test" (argument_list) "(test(summary->name), summary)" (() "(" (call_expression) "test(summary->name)" (identifier) "test" (argument_list) "(summary->name)" (() "(" (field_expression) "summary->name" (identifier) "summary" (->) "->" (field_identifier) "name" ()) ")" (,) "," (identifier) "summary" ()) ")" (;) ";" (}) "}" (function_definition) "void test_that(bool passed, tests_summary *summary, const char *message)\n{\n if (!passed) {\n print_failure(summary, message);\n }\n count_test(passed, summary);\n}" (primitive_type) "void" (function_declarator) "test_that(bool passed, tests_summary *summary, const char *message)" (identifier) "test_that" (parameter_list) "(bool passed, tests_summary *summary, const char *message)" (() "(" (parameter_declaration) "bool passed" (primitive_type) "bool" (identifier) "passed" (,) "," (parameter_declaration) "tests_summary *summary" (type_identifier) "tests_summary" (pointer_declarator) "*summary" (*) "*" (identifier) "summary" (,) "," (parameter_declaration) "const char *message" (type_qualifier) "const" (const) "const" (primitive_type) "char" (pointer_declarator) "*message" (*) "*" (identifier) "message" ()) ")" (compound_statement) "{\n if (!passed) {\n print_failure(summary, message);\n }\n count_test(passed, summary);\n}" ({) "{" (if_statement) "if (!passed) {\n print_failure(summary, message);\n }" (if) "if" (parenthesized_expression) "(!passed)" (() "(" (unary_expression) "!passed" (!) "!" (identifier) "passed" ()) ")" (compound_statement) "{\n print_failure(summary, message);\n }" ({) "{" (expression_statement) "print_failure(summary, message);" (call_expression) "print_failure(summary, message)" (identifier) "print_failure" (argument_list) "(summary, message)" (() "(" (identifier) "summary" (,) "," (identifier) "message" ()) ")" (;) ";" (}) "}" (expression_statement) "count_test(passed, summary);" (call_expression) "count_test(passed, summary)" (identifier) "count_test" (argument_list) "(passed, summary)" (() "(" (identifier) "passed" (,) "," (identifier) "summary" ()) ")" (;) ";" (}) "}" (function_definition) "void test_str_equals(const char *result, const char *expected,\n const char *test_name, tests_summary *summary)\n{\n bool passed = strcmp(result, expected) == 0;\n if (!passed) {\n print_failure_context(summary->name, test_name);\n printf("expected \"%s\", got \"%s\"\n", expected, result);\n }\n count_test(passed, summary);\n}" (primitive_type) "void" (function_declarator) "test_str_equals(const char *result, const char *expected,\n const char *test_name, tests_summary *summary)" (identifier) "test_str_equals" (parameter_list) "(const char *result, const char *expected,\n const char *test_name, tests_summary *summary)" (() "(" (parameter_declaration) "const char *result" (type_qualifier) "const" (const) "const" (primitive_type) "char" (pointer_declarator) "*result" (*) "*" (identifier) "result" (,) "," (parameter_declaration) "const char *expected" (type_qualifier) "const" (const) "const" (primitive_type) "char" (pointer_declarator) "*expected" (*) "*" (identifier) "expected" (,) "," (parameter_declaration) "const char *test_name" (type_qualifier) "const" (const) "const" (primitive_type) "char" (pointer_declarator) "*test_name" (*) "*" (identifier) "test_name" (,) "," (parameter_declaration) "tests_summary *summary" (type_identifier) "tests_summary" (pointer_declarator) "*summary" (*) "*" (identifier) "summary" ()) ")" (compound_statement) "{\n bool passed = strcmp(result, expected) == 0;\n if (!passed) {\n print_failure_context(summary->name, test_name);\n printf("expected \"%s\", got \"%s\"\n", expected, result);\n }\n count_test(passed, summary);\n}" ({) "{" (declaration) "bool passed = strcmp(result, expected) == 0;" (primitive_type) "bool" (init_declarator) "passed = strcmp(result, expected) == 0" (identifier) "passed" (=) "=" (binary_expression) "strcmp(result, expected) == 0" (call_expression) "strcmp(result, expected)" (identifier) "strcmp" (argument_list) "(result, expected)" (() "(" (identifier) "result" (,) "," (identifier) "expected" ()) ")" (==) "==" (number_literal) "0" (;) ";" (if_statement) "if (!passed) {\n print_failure_context(summary->name, test_name);\n printf("expected \"%s\", got \"%s\"\n", expected, result);\n }" (if) "if" (parenthesized_expression) "(!passed)" (() "(" (unary_expression) "!passed" (!) "!" (identifier) "passed" ()) ")" (compound_statement) "{\n print_failure_context(summary->name, test_name);\n printf("expected \"%s\", got \"%s\"\n", expected, result);\n }" ({) "{" (expression_statement) "print_failure_context(summary->name, test_name);" (call_expression) "print_failure_context(summary->name, test_name)" (identifier) "print_failure_context" (argument_list) "(summary->name, test_name)" (() "(" (field_expression) "summary->name" (identifier) "summary" (->) "->" (field_identifier) "name" (,) "," (identifier) "test_name" ()) ")" (;) ";" (expression_statement) "printf("expected \"%s\", got \"%s\"\n", expected, result);" (call_expression) "printf("expected \"%s\", got \"%s\"\n", expected, result)" (identifier) "printf" (argument_list) "("expected \"%s\", got \"%s\"\n", expected, result)" (() "(" (string_literal) ""expected \"%s\", got \"%s\"\n"" (") """ (string_content) "expected " (escape_sequence) "\"" (string_content) "%s" (escape_sequence) "\"" (string_content) ", got " (escape_sequence) "\"" (string_content) "%s" (escape_sequence) "\"" (escape_sequence) "\n" (") """ (,) "," (identifier) "expected" (,) "," (identifier) "result" ()) ")" (;) ";" (}) "}" (expression_statement) "count_test(passed, summary);" (call_expression) "count_test(passed, summary)" (identifier) "count_test" (argument_list) "(passed, summary)" (() "(" (identifier) "passed" (,) "," (identifier) "summary" ()) ")" (;) ";" (}) "}" (function_definition) "int discard_stderr(void)\n{\n fflush(stderr);\n int old_stderr_fd = dup(STDERR_FILENO);\n int dev_null_fd = open("/dev/null", O_WRONLY);\n dup2(dev_null_fd, STDERR_FILENO);\n close(dev_null_fd);\n return old_stderr_fd;\n}" (primitive_type) "int" (function_declarator) "discard_stderr(void)" (identifier) "discard_stderr" (parameter_list) "(void)" (() "(" (parameter_declaration) "void" (primitive_type) "void" ()) ")" (compound_statement) "{\n fflush(stderr);\n int old_stderr_fd = dup(STDERR_FILENO);\n int dev_null_fd = open("/dev/null", O_WRONLY);\n dup2(dev_null_fd, STDERR_FILENO);\n close(dev_null_fd);\n return old_stderr_fd;\n}" ({) "{" (expression_statement) "fflush(stderr);" (call_expression) "fflush(stderr)" (identifier) "fflush" (argument_list) "(stderr)" (() "(" (identifier) "stderr" ()) ")" (;) ";" (declaration) "int old_stderr_fd = dup(STDERR_FILENO);" (primitive_type) "int" (init_declarator) "old_stderr_fd = dup(STDERR_FILENO)" (identifier) "old_stderr_fd" (=) "=" (call_expression) "dup(STDERR_FILENO)" (identifier) "dup" (argument_list) "(STDERR_FILENO)" (() "(" (identifier) "STDERR_FILENO" ()) ")" (;) ";" (declaration) "int dev_null_fd = open("/dev/null", O_WRONLY);" (primitive_type) "int" (init_declarator) "dev_null_fd = open("/dev/null", O_WRONLY)" (identifier) "dev_null_fd" (=) "=" (call_expression) "open("/dev/null", O_WRONLY)" (identifier) "open" (argument_list) "("/dev/null", O_WRONLY)" (() "(" (string_literal) ""/dev/null"" (") """ (string_content) "/dev/null" (") """ (,) "," (identifier) "O_WRONLY" ()) ")" (;) ";" (expression_statement) "dup2(dev_null_fd, STDERR_FILENO);" (call_expression) "dup2(dev_null_fd, STDERR_FILENO)" (identifier) "dup2" (argument_list) "(dev_null_fd, STDERR_FILENO)" (() "(" (identifier) "dev_null_fd" (,) "," (identifier) "STDERR_FILENO" ()) ")" (;) ";" (expression_statement) "close(dev_null_fd);" (call_expression) "close(dev_null_fd)" (identifier) "close" (argument_list) "(dev_null_fd)" (() "(" (identifier) "dev_null_fd" ()) ")" (;) ";" (return_statement) "return old_stderr_fd;" (return) "return" (identifier) "old_stderr_fd" (;) ";" (}) "}" (function_definition) "void restore_stderr(int old_stderr_fd)\n{\n fflush(stderr);\n dup2(old_stderr_fd, STDERR_FILENO);\n close(old_stderr_fd);\n}" (primitive_type) "void" (function_declarator) "restore_stderr(int old_stderr_fd)" (identifier) "restore_stderr" (parameter_list) "(int old_stderr_fd)" (() "(" (parameter_declaration) "int old_stderr_fd" (primitive_type) "int" (identifier) "old_stderr_fd" ()) ")" (compound_statement) "{\n fflush(stderr);\n dup2(old_stderr_fd, STDERR_FILENO);\n close(old_stderr_fd);\n}" ({) "{" (expression_statement) "fflush(stderr);" (call_expression) "fflush(stderr)" (identifier) "fflush" (argument_list) "(stderr)" (() "(" (identifier) "stderr" ()) ")" (;) ";" (expression_statement) "dup2(old_stderr_fd, STDERR_FILENO);" (call_expression) "dup2(old_stderr_fd, STDERR_FILENO)" (identifier) "dup2" (argument_list) "(old_stderr_fd, STDERR_FILENO)" (() "(" (identifier) "old_stderr_fd" (,) "," (identifier) "STDERR_FILENO" ()) ")" (;) ";" (expression_statement) "close(old_stderr_fd);" (call_expression) "close(old_stderr_fd)" (identifier) "close" (argument_list) "(old_stderr_fd)" (() "(" (identifier) "old_stderr_fd" ()) ")" (;) ";" (}) "}"
725
0
{"language": "c", "success": true, "metadata": {"lines": 81, "avg_line_length": 27.64, "nodes": 407, "errors": 0, "source_hash": "4415f583a68b989f33e73f40850ae860f461ebe11d602a4ff7f8a8f70d80b40c", "categorized_nodes": 259}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#include \"unittest.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": "\"unittest.h\"", "parent": 0, "children": [], "start_point": {"row": 0, "column": 9}, "end_point": {"row": 0, "column": 21}}, {"id": 3, "type": "preproc_include", "text": "#include <fcntl.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": "<fcntl.h>", "parent": 3, "children": [], "start_point": {"row": 2, "column": 9}, "end_point": {"row": 2, "column": 18}}, {"id": 6, "type": "preproc_include", "text": "#include <unistd.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": "<unistd.h>", "parent": 6, "children": [], "start_point": {"row": 3, "column": 9}, "end_point": {"row": 3, "column": 19}}, {"id": 9, "type": "preproc_include", "text": "#include <stdbool.h>\n", "parent": null, "children": [10, 11], "start_point": {"row": 5, "column": 0}, "end_point": {"row": 6, "column": 0}}, {"id": 10, "type": "#include", "text": "#include", "parent": 9, "children": [], "start_point": {"row": 5, "column": 0}, "end_point": {"row": 5, "column": 8}}, {"id": 11, "type": "system_lib_string", "text": "<stdbool.h>", "parent": 9, "children": [], "start_point": {"row": 5, "column": 9}, "end_point": {"row": 5, "column": 20}}, {"id": 12, "type": "preproc_include", "text": "#include <stdio.h>\n", "parent": null, "children": [13, 14], "start_point": {"row": 6, "column": 0}, "end_point": {"row": 7, "column": 0}}, {"id": 13, "type": "#include", "text": "#include", "parent": 12, "children": [], "start_point": {"row": 6, "column": 0}, "end_point": {"row": 6, "column": 8}}, {"id": 14, "type": "system_lib_string", "text": "<stdio.h>", "parent": 12, "children": [], "start_point": {"row": 6, "column": 9}, "end_point": {"row": 6, "column": 18}}, {"id": 15, "type": "preproc_include", "text": "#include <string.h>\n", "parent": null, "children": [16, 17], "start_point": {"row": 7, "column": 0}, "end_point": {"row": 8, "column": 0}}, {"id": 16, "type": "#include", "text": "#include", "parent": 15, "children": [], "start_point": {"row": 7, "column": 0}, "end_point": {"row": 7, "column": 8}}, {"id": 17, "type": "system_lib_string", "text": "<string.h>", "parent": 15, "children": [], "start_point": {"row": 7, "column": 9}, "end_point": {"row": 7, "column": 19}}, {"id": 18, "type": "declaration", "text": "static const char red[] = \"\\033[1;31m\";", "parent": null, "children": [19, 20], "start_point": {"row": 10, "column": 0}, "end_point": {"row": 10, "column": 39}}, {"id": 19, "type": "primitive_type", "text": "char", "parent": 18, "children": [], "start_point": {"row": 10, "column": 13}, "end_point": {"row": 10, "column": 17}}, {"id": 20, "type": "init_declarator", "text": "red[] = \"\\033[1;31m\"", "parent": 18, "children": [21, 23, 24], "start_point": {"row": 10, "column": 18}, "end_point": {"row": 10, "column": 38}}, {"id": 21, "type": "array_declarator", "text": "red[]", "parent": 20, "children": [22], "start_point": {"row": 10, "column": 18}, "end_point": {"row": 10, "column": 23}}, {"id": 22, "type": "identifier", "text": "red", "parent": 21, "children": [], "start_point": {"row": 10, "column": 18}, "end_point": {"row": 10, "column": 21}}, {"id": 23, "type": "=", "text": "=", "parent": 20, "children": [], "start_point": {"row": 10, "column": 24}, "end_point": {"row": 10, "column": 25}}, {"id": 24, "type": "string_literal", "text": "\"\\033[1;31m\"", "parent": 20, "children": [25], "start_point": {"row": 10, "column": 26}, "end_point": {"row": 10, "column": 38}}, {"id": 25, "type": "escape_sequence", "text": "\\033", "parent": 24, "children": [], "start_point": {"row": 10, "column": 27}, "end_point": {"row": 10, "column": 31}}, {"id": 26, "type": "declaration", "text": "static const char green[] = \"\\033[1;32m\";", "parent": null, "children": [27, 28], "start_point": {"row": 11, "column": 0}, "end_point": {"row": 11, "column": 41}}, {"id": 27, "type": "primitive_type", "text": "char", "parent": 26, "children": [], "start_point": {"row": 11, "column": 13}, "end_point": {"row": 11, "column": 17}}, {"id": 28, "type": "init_declarator", "text": "green[] = \"\\033[1;32m\"", "parent": 26, "children": [29, 31, 32], "start_point": {"row": 11, "column": 18}, "end_point": {"row": 11, "column": 40}}, {"id": 29, "type": "array_declarator", "text": "green[]", "parent": 28, "children": [30], "start_point": {"row": 11, "column": 18}, "end_point": {"row": 11, "column": 25}}, {"id": 30, "type": "identifier", "text": "green", "parent": 29, "children": [], "start_point": {"row": 11, "column": 18}, "end_point": {"row": 11, "column": 23}}, {"id": 31, "type": "=", "text": "=", "parent": 28, "children": [], "start_point": {"row": 11, "column": 26}, "end_point": {"row": 11, "column": 27}}, {"id": 32, "type": "string_literal", "text": "\"\\033[1;32m\"", "parent": 28, "children": [33], "start_point": {"row": 11, "column": 28}, "end_point": {"row": 11, "column": 40}}, {"id": 33, "type": "escape_sequence", "text": "\\033", "parent": 32, "children": [], "start_point": {"row": 11, "column": 29}, "end_point": {"row": 11, "column": 33}}, {"id": 34, "type": "declaration", "text": "static const char end_color[] = \"\\033[0m\";", "parent": null, "children": [35, 36], "start_point": {"row": 12, "column": 0}, "end_point": {"row": 12, "column": 42}}, {"id": 35, "type": "primitive_type", "text": "char", "parent": 34, "children": [], "start_point": {"row": 12, "column": 13}, "end_point": {"row": 12, "column": 17}}, {"id": 36, "type": "init_declarator", "text": "end_color[] = \"\\033[0m\"", "parent": 34, "children": [37, 39, 40], "start_point": {"row": 12, "column": 18}, "end_point": {"row": 12, "column": 41}}, {"id": 37, "type": "array_declarator", "text": "end_color[]", "parent": 36, "children": [38], "start_point": {"row": 12, "column": 18}, "end_point": {"row": 12, "column": 29}}, {"id": 38, "type": "identifier", "text": "end_color", "parent": 37, "children": [], "start_point": {"row": 12, "column": 18}, "end_point": {"row": 12, "column": 27}}, {"id": 39, "type": "=", "text": "=", "parent": 36, "children": [], "start_point": {"row": 12, "column": 30}, "end_point": {"row": 12, "column": 31}}, {"id": 40, "type": "string_literal", "text": "\"\\033[0m\"", "parent": 36, "children": [41], "start_point": {"row": 12, "column": 32}, "end_point": {"row": 12, "column": 41}}, {"id": 41, "type": "escape_sequence", "text": "\\033", "parent": 40, "children": [], "start_point": {"row": 12, "column": 33}, "end_point": {"row": 12, "column": 37}}, {"id": 42, "type": "function_definition", "text": "void print_summary(const tests_summary *summary)\n{\n const char *color = \"\";\n const char *end = \"\";\n if (isatty(STDOUT_FILENO)) {\n color = summary->failed == 0 ? green : red;\n end = end_color;\n }\n\n const char *ending = summary->passed != 1 ? \"s\" : \"\";\n printf(\"%s%s: Passed %d \", color, summary->name, summary->passed);\n printf(\"test%s and failed %d.%s\\n\", ending, summary->failed, end);\n}", "parent": null, "children": [43, 44], "start_point": {"row": 15, "column": 0}, "end_point": {"row": 27, "column": 1}}, {"id": 43, "type": "primitive_type", "text": "void", "parent": 42, "children": [], "start_point": {"row": 15, "column": 0}, "end_point": {"row": 15, "column": 4}}, {"id": 44, "type": "function_declarator", "text": "print_summary(const tests_summary *summary)", "parent": 42, "children": [45, 46], "start_point": {"row": 15, "column": 5}, "end_point": {"row": 15, "column": 48}}, {"id": 45, "type": "identifier", "text": "print_summary", "parent": 44, "children": [], "start_point": {"row": 15, "column": 5}, "end_point": {"row": 15, "column": 18}}, {"id": 46, "type": "parameter_list", "text": "(const tests_summary *summary)", "parent": 44, "children": [47], "start_point": {"row": 15, "column": 18}, "end_point": {"row": 15, "column": 48}}, {"id": 47, "type": "parameter_declaration", "text": "const tests_summary *summary", "parent": 46, "children": [48, 49], "start_point": {"row": 15, "column": 19}, "end_point": {"row": 15, "column": 47}}, {"id": 48, "type": "type_identifier", "text": "tests_summary", "parent": 47, "children": [], "start_point": {"row": 15, "column": 25}, "end_point": {"row": 15, "column": 38}}, {"id": 49, "type": "pointer_declarator", "text": "*summary", "parent": 47, "children": [50, 51], "start_point": {"row": 15, "column": 39}, "end_point": {"row": 15, "column": 47}}, {"id": 50, "type": "*", "text": "*", "parent": 49, "children": [], "start_point": {"row": 15, "column": 39}, "end_point": {"row": 15, "column": 40}}, {"id": 51, "type": "identifier", "text": "summary", "parent": 49, "children": [], "start_point": {"row": 15, "column": 40}, "end_point": {"row": 15, "column": 47}}, {"id": 52, "type": "declaration", "text": "const char *color = \"\";", "parent": 42, "children": [53, 54], "start_point": {"row": 17, "column": 4}, "end_point": {"row": 17, "column": 27}}, {"id": 53, "type": "primitive_type", "text": "char", "parent": 52, "children": [], "start_point": {"row": 17, "column": 10}, "end_point": {"row": 17, "column": 14}}, {"id": 54, "type": "init_declarator", "text": "*color = \"\"", "parent": 52, "children": [55, 58, 59], "start_point": {"row": 17, "column": 15}, "end_point": {"row": 17, "column": 26}}, {"id": 55, "type": "pointer_declarator", "text": "*color", "parent": 54, "children": [56, 57], "start_point": {"row": 17, "column": 15}, "end_point": {"row": 17, "column": 21}}, {"id": 56, "type": "*", "text": "*", "parent": 55, "children": [], "start_point": {"row": 17, "column": 15}, "end_point": {"row": 17, "column": 16}}, {"id": 57, "type": "identifier", "text": "color", "parent": 55, "children": [], "start_point": {"row": 17, "column": 16}, "end_point": {"row": 17, "column": 21}}, {"id": 58, "type": "=", "text": "=", "parent": 54, "children": [], "start_point": {"row": 17, "column": 22}, "end_point": {"row": 17, "column": 23}}, {"id": 59, "type": "string_literal", "text": "\"\"", "parent": 54, "children": [], "start_point": {"row": 17, "column": 24}, "end_point": {"row": 17, "column": 26}}, {"id": 60, "type": "declaration", "text": "const char *end = \"\";", "parent": 42, "children": [61, 62], "start_point": {"row": 18, "column": 4}, "end_point": {"row": 18, "column": 25}}, {"id": 61, "type": "primitive_type", "text": "char", "parent": 60, "children": [], "start_point": {"row": 18, "column": 10}, "end_point": {"row": 18, "column": 14}}, {"id": 62, "type": "init_declarator", "text": "*end = \"\"", "parent": 60, "children": [63, 65, 66], "start_point": {"row": 18, "column": 15}, "end_point": {"row": 18, "column": 24}}, {"id": 63, "type": "pointer_declarator", "text": "*end", "parent": 62, "children": [64], "start_point": {"row": 18, "column": 15}, "end_point": {"row": 18, "column": 19}}, {"id": 64, "type": "*", "text": "*", "parent": 63, "children": [], "start_point": {"row": 18, "column": 15}, "end_point": {"row": 18, "column": 16}}, {"id": 65, "type": "=", "text": "=", "parent": 62, "children": [], "start_point": {"row": 18, "column": 20}, "end_point": {"row": 18, "column": 21}}, {"id": 66, "type": "string_literal", "text": "\"\"", "parent": 62, "children": [], "start_point": {"row": 18, "column": 22}, "end_point": {"row": 18, "column": 24}}, {"id": 67, "type": "if_statement", "text": "if (isatty(STDOUT_FILENO)) {\n color = summary->failed == 0 ? green : red;\n end = end_color;\n }", "parent": 42, "children": [68], "start_point": {"row": 19, "column": 4}, "end_point": {"row": 22, "column": 5}}, {"id": 68, "type": "parenthesized_expression", "text": "(isatty(STDOUT_FILENO))", "parent": 67, "children": [69], "start_point": {"row": 19, "column": 7}, "end_point": {"row": 19, "column": 30}}, {"id": 69, "type": "call_expression", "text": "isatty(STDOUT_FILENO)", "parent": 68, "children": [70, 71], "start_point": {"row": 19, "column": 8}, "end_point": {"row": 19, "column": 29}}, {"id": 70, "type": "identifier", "text": "isatty", "parent": 69, "children": [], "start_point": {"row": 19, "column": 8}, "end_point": {"row": 19, "column": 14}}, {"id": 71, "type": "argument_list", "text": "(STDOUT_FILENO)", "parent": 69, "children": [72], "start_point": {"row": 19, "column": 14}, "end_point": {"row": 19, "column": 29}}, {"id": 72, "type": "identifier", "text": "STDOUT_FILENO", "parent": 71, "children": [], "start_point": {"row": 19, "column": 15}, "end_point": {"row": 19, "column": 28}}, {"id": 73, "type": "assignment_expression", "text": "color = summary->failed == 0 ? green : red", "parent": 67, "children": [74, 75, 76], "start_point": {"row": 20, "column": 8}, "end_point": {"row": 20, "column": 50}}, {"id": 74, "type": "identifier", "text": "color", "parent": 73, "children": [], "start_point": {"row": 20, "column": 8}, "end_point": {"row": 20, "column": 13}}, {"id": 75, "type": "=", "text": "=", "parent": 73, "children": [], "start_point": {"row": 20, "column": 14}, "end_point": {"row": 20, "column": 15}}, {"id": 76, "type": "conditional_expression", "text": "summary->failed == 0 ? green : red", "parent": 73, "children": [77, 83, 84, 85], "start_point": {"row": 20, "column": 16}, "end_point": {"row": 20, "column": 50}}, {"id": 77, "type": "binary_expression", "text": "summary->failed == 0", "parent": 76, "children": [78, 81, 82], "start_point": {"row": 20, "column": 16}, "end_point": {"row": 20, "column": 36}}, {"id": 78, "type": "field_expression", "text": "summary->failed", "parent": 77, "children": [79, 80], "start_point": {"row": 20, "column": 16}, "end_point": {"row": 20, "column": 31}}, {"id": 79, "type": "identifier", "text": "summary", "parent": 78, "children": [], "start_point": {"row": 20, "column": 16}, "end_point": {"row": 20, "column": 23}}, {"id": 80, "type": "field_identifier", "text": "failed", "parent": 78, "children": [], "start_point": {"row": 20, "column": 25}, "end_point": {"row": 20, "column": 31}}, {"id": 81, "type": "==", "text": "==", "parent": 77, "children": [], "start_point": {"row": 20, "column": 32}, "end_point": {"row": 20, "column": 34}}, {"id": 82, "type": "number_literal", "text": "0", "parent": 77, "children": [], "start_point": {"row": 20, "column": 35}, "end_point": {"row": 20, "column": 36}}, {"id": 83, "type": "?", "text": "?", "parent": 76, "children": [], "start_point": {"row": 20, "column": 37}, "end_point": {"row": 20, "column": 38}}, {"id": 84, "type": "identifier", "text": "green", "parent": 76, "children": [], "start_point": {"row": 20, "column": 39}, "end_point": {"row": 20, "column": 44}}, {"id": 85, "type": "identifier", "text": "red", "parent": 76, "children": [], "start_point": {"row": 20, "column": 47}, "end_point": {"row": 20, "column": 50}}, {"id": 86, "type": "assignment_expression", "text": "end = end_color", "parent": 67, "children": [87, 88], "start_point": {"row": 21, "column": 8}, "end_point": {"row": 21, "column": 23}}, {"id": 87, "type": "=", "text": "=", "parent": 86, "children": [], "start_point": {"row": 21, "column": 12}, "end_point": {"row": 21, "column": 13}}, {"id": 88, "type": "identifier", "text": "end_color", "parent": 86, "children": [], "start_point": {"row": 21, "column": 14}, "end_point": {"row": 21, "column": 23}}, {"id": 89, "type": "declaration", "text": "const char *ending = summary->passed != 1 ? \"s\" : \"\";", "parent": 42, "children": [90, 91], "start_point": {"row": 24, "column": 4}, "end_point": {"row": 24, "column": 57}}, {"id": 90, "type": "primitive_type", "text": "char", "parent": 89, "children": [], "start_point": {"row": 24, "column": 10}, "end_point": {"row": 24, "column": 14}}, {"id": 91, "type": "init_declarator", "text": "*ending = summary->passed != 1 ? \"s\" : \"\"", "parent": 89, "children": [92, 95, 96], "start_point": {"row": 24, "column": 15}, "end_point": {"row": 24, "column": 56}}, {"id": 92, "type": "pointer_declarator", "text": "*ending", "parent": 91, "children": [93, 94], "start_point": {"row": 24, "column": 15}, "end_point": {"row": 24, "column": 22}}, {"id": 93, "type": "*", "text": "*", "parent": 92, "children": [], "start_point": {"row": 24, "column": 15}, "end_point": {"row": 24, "column": 16}}, {"id": 94, "type": "identifier", "text": "ending", "parent": 92, "children": [], "start_point": {"row": 24, "column": 16}, "end_point": {"row": 24, "column": 22}}, {"id": 95, "type": "=", "text": "=", "parent": 91, "children": [], "start_point": {"row": 24, "column": 23}, "end_point": {"row": 24, "column": 24}}, {"id": 96, "type": "conditional_expression", "text": "summary->passed != 1 ? \"s\" : \"\"", "parent": 91, "children": [97, 103, 104, 105], "start_point": {"row": 24, "column": 25}, "end_point": {"row": 24, "column": 56}}, {"id": 97, "type": "binary_expression", "text": "summary->passed != 1", "parent": 96, "children": [98, 101, 102], "start_point": {"row": 24, "column": 25}, "end_point": {"row": 24, "column": 45}}, {"id": 98, "type": "field_expression", "text": "summary->passed", "parent": 97, "children": [99, 100], "start_point": {"row": 24, "column": 25}, "end_point": {"row": 24, "column": 40}}, {"id": 99, "type": "identifier", "text": "summary", "parent": 98, "children": [], "start_point": {"row": 24, "column": 25}, "end_point": {"row": 24, "column": 32}}, {"id": 100, "type": "field_identifier", "text": "passed", "parent": 98, "children": [], "start_point": {"row": 24, "column": 34}, "end_point": {"row": 24, "column": 40}}, {"id": 101, "type": "!=", "text": "!=", "parent": 97, "children": [], "start_point": {"row": 24, "column": 41}, "end_point": {"row": 24, "column": 43}}, {"id": 102, "type": "number_literal", "text": "1", "parent": 97, "children": [], "start_point": {"row": 24, "column": 44}, "end_point": {"row": 24, "column": 45}}, {"id": 103, "type": "?", "text": "?", "parent": 96, "children": [], "start_point": {"row": 24, "column": 46}, "end_point": {"row": 24, "column": 47}}, {"id": 104, "type": "string_literal", "text": "\"s\"", "parent": 96, "children": [], "start_point": {"row": 24, "column": 48}, "end_point": {"row": 24, "column": 51}}, {"id": 105, "type": "string_literal", "text": "\"\"", "parent": 96, "children": [], "start_point": {"row": 24, "column": 54}, "end_point": {"row": 24, "column": 56}}, {"id": 106, "type": "call_expression", "text": "printf(\"%s%s: Passed %d \", color, summary->name, summary->passed)", "parent": 42, "children": [107, 108], "start_point": {"row": 25, "column": 4}, "end_point": {"row": 25, "column": 69}}, {"id": 107, "type": "identifier", "text": "printf", "parent": 106, "children": [], "start_point": {"row": 25, "column": 4}, "end_point": {"row": 25, "column": 10}}, {"id": 108, "type": "argument_list", "text": "(\"%s%s: Passed %d \", color, summary->name, summary->passed)", "parent": 106, "children": [109, 110, 111, 114], "start_point": {"row": 25, "column": 10}, "end_point": {"row": 25, "column": 69}}, {"id": 109, "type": "string_literal", "text": "\"%s%s: Passed %d \"", "parent": 108, "children": [], "start_point": {"row": 25, "column": 11}, "end_point": {"row": 25, "column": 29}}, {"id": 110, "type": "identifier", "text": "color", "parent": 108, "children": [], "start_point": {"row": 25, "column": 31}, "end_point": {"row": 25, "column": 36}}, {"id": 111, "type": "field_expression", "text": "summary->name", "parent": 108, "children": [112, 113], "start_point": {"row": 25, "column": 38}, "end_point": {"row": 25, "column": 51}}, {"id": 112, "type": "identifier", "text": "summary", "parent": 111, "children": [], "start_point": {"row": 25, "column": 38}, "end_point": {"row": 25, "column": 45}}, {"id": 113, "type": "field_identifier", "text": "name", "parent": 111, "children": [], "start_point": {"row": 25, "column": 47}, "end_point": {"row": 25, "column": 51}}, {"id": 114, "type": "field_expression", "text": "summary->passed", "parent": 108, "children": [115, 116], "start_point": {"row": 25, "column": 53}, "end_point": {"row": 25, "column": 68}}, {"id": 115, "type": "identifier", "text": "summary", "parent": 114, "children": [], "start_point": {"row": 25, "column": 53}, "end_point": {"row": 25, "column": 60}}, {"id": 116, "type": "field_identifier", "text": "passed", "parent": 114, "children": [], "start_point": {"row": 25, "column": 62}, "end_point": {"row": 25, "column": 68}}, {"id": 117, "type": "call_expression", "text": "printf(\"test%s and failed %d.%s\\n\", ending, summary->failed, end)", "parent": 42, "children": [118, 119], "start_point": {"row": 26, "column": 4}, "end_point": {"row": 26, "column": 69}}, {"id": 118, "type": "identifier", "text": "printf", "parent": 117, "children": [], "start_point": {"row": 26, "column": 4}, "end_point": {"row": 26, "column": 10}}, {"id": 119, "type": "argument_list", "text": "(\"test%s and failed %d.%s\\n\", ending, summary->failed, end)", "parent": 117, "children": [120, 122, 123], "start_point": {"row": 26, "column": 10}, "end_point": {"row": 26, "column": 69}}, {"id": 120, "type": "string_literal", "text": "\"test%s and failed %d.%s\\n\"", "parent": 119, "children": [121], "start_point": {"row": 26, "column": 11}, "end_point": {"row": 26, "column": 38}}, {"id": 121, "type": "escape_sequence", "text": "\\n", "parent": 120, "children": [], "start_point": {"row": 26, "column": 35}, "end_point": {"row": 26, "column": 37}}, {"id": 122, "type": "identifier", "text": "ending", "parent": 119, "children": [], "start_point": {"row": 26, "column": 40}, "end_point": {"row": 26, "column": 46}}, {"id": 123, "type": "field_expression", "text": "summary->failed", "parent": 119, "children": [124, 125], "start_point": {"row": 26, "column": 48}, "end_point": {"row": 26, "column": 63}}, {"id": 124, "type": "identifier", "text": "summary", "parent": 123, "children": [], "start_point": {"row": 26, "column": 48}, "end_point": {"row": 26, "column": 55}}, {"id": 125, "type": "field_identifier", "text": "failed", "parent": 123, "children": [], "start_point": {"row": 26, "column": 57}, "end_point": {"row": 26, "column": 63}}, {"id": 126, "type": "function_definition", "text": "void print_failure_context(const char *program_name, const char *test_name)\n{\n printf(\"[%s] Failed test %s: \", program_name, test_name);\n}", "parent": null, "children": [127, 128], "start_point": {"row": 29, "column": 0}, "end_point": {"row": 32, "column": 1}}, {"id": 127, "type": "primitive_type", "text": "void", "parent": 126, "children": [], "start_point": {"row": 29, "column": 0}, "end_point": {"row": 29, "column": 4}}, {"id": 128, "type": "function_declarator", "text": "print_failure_context(const char *program_name, const char *test_name)", "parent": 126, "children": [129, 130], "start_point": {"row": 29, "column": 5}, "end_point": {"row": 29, "column": 75}}, {"id": 129, "type": "identifier", "text": "print_failure_context", "parent": 128, "children": [], "start_point": {"row": 29, "column": 5}, "end_point": {"row": 29, "column": 26}}, {"id": 130, "type": "parameter_list", "text": "(const char *program_name, const char *test_name)", "parent": 128, "children": [131, 136], "start_point": {"row": 29, "column": 26}, "end_point": {"row": 29, "column": 75}}, {"id": 131, "type": "parameter_declaration", "text": "const char *program_name", "parent": 130, "children": [132, 133], "start_point": {"row": 29, "column": 27}, "end_point": {"row": 29, "column": 51}}, {"id": 132, "type": "primitive_type", "text": "char", "parent": 131, "children": [], "start_point": {"row": 29, "column": 33}, "end_point": {"row": 29, "column": 37}}, {"id": 133, "type": "pointer_declarator", "text": "*program_name", "parent": 131, "children": [134, 135], "start_point": {"row": 29, "column": 38}, "end_point": {"row": 29, "column": 51}}, {"id": 134, "type": "*", "text": "*", "parent": 133, "children": [], "start_point": {"row": 29, "column": 38}, "end_point": {"row": 29, "column": 39}}, {"id": 135, "type": "identifier", "text": "program_name", "parent": 133, "children": [], "start_point": {"row": 29, "column": 39}, "end_point": {"row": 29, "column": 51}}, {"id": 136, "type": "parameter_declaration", "text": "const char *test_name", "parent": 130, "children": [137, 138], "start_point": {"row": 29, "column": 53}, "end_point": {"row": 29, "column": 74}}, {"id": 137, "type": "primitive_type", "text": "char", "parent": 136, "children": [], "start_point": {"row": 29, "column": 59}, "end_point": {"row": 29, "column": 63}}, {"id": 138, "type": "pointer_declarator", "text": "*test_name", "parent": 136, "children": [139, 140], "start_point": {"row": 29, "column": 64}, "end_point": {"row": 29, "column": 74}}, {"id": 139, "type": "*", "text": "*", "parent": 138, "children": [], "start_point": {"row": 29, "column": 64}, "end_point": {"row": 29, "column": 65}}, {"id": 140, "type": "identifier", "text": "test_name", "parent": 138, "children": [], "start_point": {"row": 29, "column": 65}, "end_point": {"row": 29, "column": 74}}, {"id": 141, "type": "call_expression", "text": "printf(\"[%s] Failed test %s: \", program_name, test_name)", "parent": 126, "children": [142, 143], "start_point": {"row": 31, "column": 4}, "end_point": {"row": 31, "column": 60}}, {"id": 142, "type": "identifier", "text": "printf", "parent": 141, "children": [], "start_point": {"row": 31, "column": 4}, "end_point": {"row": 31, "column": 10}}, {"id": 143, "type": "argument_list", "text": "(\"[%s] Failed test %s: \", program_name, test_name)", "parent": 141, "children": [144, 145, 146], "start_point": {"row": 31, "column": 10}, "end_point": {"row": 31, "column": 60}}, {"id": 144, "type": "string_literal", "text": "\"[%s] Failed test %s: \"", "parent": 143, "children": [], "start_point": {"row": 31, "column": 11}, "end_point": {"row": 31, "column": 34}}, {"id": 145, "type": "identifier", "text": "program_name", "parent": 143, "children": [], "start_point": {"row": 31, "column": 36}, "end_point": {"row": 31, "column": 48}}, {"id": 146, "type": "identifier", "text": "test_name", "parent": 143, "children": [], "start_point": {"row": 31, "column": 50}, "end_point": {"row": 31, "column": 59}}, {"id": 147, "type": "function_definition", "text": "static void print_failure(const tests_summary *summary, const char *message)\n{\n printf(\"[%s] Failed test: %s\\n\", summary->name, message);\n}", "parent": null, "children": [148, 149], "start_point": {"row": 35, "column": 0}, "end_point": {"row": 38, "column": 1}}, {"id": 148, "type": "primitive_type", "text": "void", "parent": 147, "children": [], "start_point": {"row": 35, "column": 7}, "end_point": {"row": 35, "column": 11}}, {"id": 149, "type": "function_declarator", "text": "print_failure(const tests_summary *summary, const char *message)", "parent": 147, "children": [150, 151], "start_point": {"row": 35, "column": 12}, "end_point": {"row": 35, "column": 76}}, {"id": 150, "type": "identifier", "text": "print_failure", "parent": 149, "children": [], "start_point": {"row": 35, "column": 12}, "end_point": {"row": 35, "column": 25}}, {"id": 151, "type": "parameter_list", "text": "(const tests_summary *summary, const char *message)", "parent": 149, "children": [152, 157], "start_point": {"row": 35, "column": 25}, "end_point": {"row": 35, "column": 76}}, {"id": 152, "type": "parameter_declaration", "text": "const tests_summary *summary", "parent": 151, "children": [153, 154], "start_point": {"row": 35, "column": 26}, "end_point": {"row": 35, "column": 54}}, {"id": 153, "type": "type_identifier", "text": "tests_summary", "parent": 152, "children": [], "start_point": {"row": 35, "column": 32}, "end_point": {"row": 35, "column": 45}}, {"id": 154, "type": "pointer_declarator", "text": "*summary", "parent": 152, "children": [155, 156], "start_point": {"row": 35, "column": 46}, "end_point": {"row": 35, "column": 54}}, {"id": 155, "type": "*", "text": "*", "parent": 154, "children": [], "start_point": {"row": 35, "column": 46}, "end_point": {"row": 35, "column": 47}}, {"id": 156, "type": "identifier", "text": "summary", "parent": 154, "children": [], "start_point": {"row": 35, "column": 47}, "end_point": {"row": 35, "column": 54}}, {"id": 157, "type": "parameter_declaration", "text": "const char *message", "parent": 151, "children": [158, 159], "start_point": {"row": 35, "column": 56}, "end_point": {"row": 35, "column": 75}}, {"id": 158, "type": "primitive_type", "text": "char", "parent": 157, "children": [], "start_point": {"row": 35, "column": 62}, "end_point": {"row": 35, "column": 66}}, {"id": 159, "type": "pointer_declarator", "text": "*message", "parent": 157, "children": [160, 161], "start_point": {"row": 35, "column": 67}, "end_point": {"row": 35, "column": 75}}, {"id": 160, "type": "*", "text": "*", "parent": 159, "children": [], "start_point": {"row": 35, "column": 67}, "end_point": {"row": 35, "column": 68}}, {"id": 161, "type": "identifier", "text": "message", "parent": 159, "children": [], "start_point": {"row": 35, "column": 68}, "end_point": {"row": 35, "column": 75}}, {"id": 162, "type": "call_expression", "text": "printf(\"[%s] Failed test: %s\\n\", summary->name, message)", "parent": 147, "children": [163, 164], "start_point": {"row": 37, "column": 4}, "end_point": {"row": 37, "column": 60}}, {"id": 163, "type": "identifier", "text": "printf", "parent": 162, "children": [], "start_point": {"row": 37, "column": 4}, "end_point": {"row": 37, "column": 10}}, {"id": 164, "type": "argument_list", "text": "(\"[%s] Failed test: %s\\n\", summary->name, message)", "parent": 162, "children": [165, 167, 170], "start_point": {"row": 37, "column": 10}, "end_point": {"row": 37, "column": 60}}, {"id": 165, "type": "string_literal", "text": "\"[%s] Failed test: %s\\n\"", "parent": 164, "children": [166], "start_point": {"row": 37, "column": 11}, "end_point": {"row": 37, "column": 35}}, {"id": 166, "type": "escape_sequence", "text": "\\n", "parent": 165, "children": [], "start_point": {"row": 37, "column": 32}, "end_point": {"row": 37, "column": 34}}, {"id": 167, "type": "field_expression", "text": "summary->name", "parent": 164, "children": [168, 169], "start_point": {"row": 37, "column": 37}, "end_point": {"row": 37, "column": 50}}, {"id": 168, "type": "identifier", "text": "summary", "parent": 167, "children": [], "start_point": {"row": 37, "column": 37}, "end_point": {"row": 37, "column": 44}}, {"id": 169, "type": "field_identifier", "text": "name", "parent": 167, "children": [], "start_point": {"row": 37, "column": 46}, "end_point": {"row": 37, "column": 50}}, {"id": 170, "type": "identifier", "text": "message", "parent": 164, "children": [], "start_point": {"row": 37, "column": 52}, "end_point": {"row": 37, "column": 59}}, {"id": 171, "type": "function_definition", "text": "static void count_test(bool passed, tests_summary *summary)\n{\n if (passed) {\n summary->passed++;\n } else {\n summary->failed++;\n }\n}", "parent": null, "children": [172, 173], "start_point": {"row": 41, "column": 0}, "end_point": {"row": 48, "column": 1}}, {"id": 172, "type": "primitive_type", "text": "void", "parent": 171, "children": [], "start_point": {"row": 41, "column": 7}, "end_point": {"row": 41, "column": 11}}, {"id": 173, "type": "function_declarator", "text": "count_test(bool passed, tests_summary *summary)", "parent": 171, "children": [174, 175], "start_point": {"row": 41, "column": 12}, "end_point": {"row": 41, "column": 59}}, {"id": 174, "type": "identifier", "text": "count_test", "parent": 173, "children": [], "start_point": {"row": 41, "column": 12}, "end_point": {"row": 41, "column": 22}}, {"id": 175, "type": "parameter_list", "text": "(bool passed, tests_summary *summary)", "parent": 173, "children": [176, 179], "start_point": {"row": 41, "column": 22}, "end_point": {"row": 41, "column": 59}}, {"id": 176, "type": "parameter_declaration", "text": "bool passed", "parent": 175, "children": [177, 178], "start_point": {"row": 41, "column": 23}, "end_point": {"row": 41, "column": 34}}, {"id": 177, "type": "primitive_type", "text": "bool", "parent": 176, "children": [], "start_point": {"row": 41, "column": 23}, "end_point": {"row": 41, "column": 27}}, {"id": 178, "type": "identifier", "text": "passed", "parent": 176, "children": [], "start_point": {"row": 41, "column": 28}, "end_point": {"row": 41, "column": 34}}, {"id": 179, "type": "parameter_declaration", "text": "tests_summary *summary", "parent": 175, "children": [180, 181], "start_point": {"row": 41, "column": 36}, "end_point": {"row": 41, "column": 58}}, {"id": 180, "type": "type_identifier", "text": "tests_summary", "parent": 179, "children": [], "start_point": {"row": 41, "column": 36}, "end_point": {"row": 41, "column": 49}}, {"id": 181, "type": "pointer_declarator", "text": "*summary", "parent": 179, "children": [182, 183], "start_point": {"row": 41, "column": 50}, "end_point": {"row": 41, "column": 58}}, {"id": 182, "type": "*", "text": "*", "parent": 181, "children": [], "start_point": {"row": 41, "column": 50}, "end_point": {"row": 41, "column": 51}}, {"id": 183, "type": "identifier", "text": "summary", "parent": 181, "children": [], "start_point": {"row": 41, "column": 51}, "end_point": {"row": 41, "column": 58}}, {"id": 184, "type": "if_statement", "text": "if (passed) {\n summary->passed++;\n } else {\n summary->failed++;\n }", "parent": 171, "children": [185, 192], "start_point": {"row": 43, "column": 4}, "end_point": {"row": 47, "column": 5}}, {"id": 185, "type": "parenthesized_expression", "text": "(passed)", "parent": 184, "children": [186], "start_point": {"row": 43, "column": 7}, "end_point": {"row": 43, "column": 15}}, {"id": 186, "type": "identifier", "text": "passed", "parent": 185, "children": [], "start_point": {"row": 43, "column": 8}, "end_point": {"row": 43, "column": 14}}, {"id": 187, "type": "update_expression", "text": "summary->passed++", "parent": 184, "children": [188, 191], "start_point": {"row": 44, "column": 8}, "end_point": {"row": 44, "column": 25}}, {"id": 188, "type": "field_expression", "text": "summary->passed", "parent": 187, "children": [189, 190], "start_point": {"row": 44, "column": 8}, "end_point": {"row": 44, "column": 23}}, {"id": 189, "type": "identifier", "text": "summary", "parent": 188, "children": [], "start_point": {"row": 44, "column": 8}, "end_point": {"row": 44, "column": 15}}, {"id": 190, "type": "field_identifier", "text": "passed", "parent": 188, "children": [], "start_point": {"row": 44, "column": 17}, "end_point": {"row": 44, "column": 23}}, {"id": 191, "type": "++", "text": "++", "parent": 187, "children": [], "start_point": {"row": 44, "column": 23}, "end_point": {"row": 44, "column": 25}}, {"id": 192, "type": "else_clause", "text": "else {\n summary->failed++;\n }", "parent": 184, "children": [], "start_point": {"row": 45, "column": 6}, "end_point": {"row": 47, "column": 5}}, {"id": 193, "type": "update_expression", "text": "summary->failed++", "parent": 192, "children": [194, 197], "start_point": {"row": 46, "column": 8}, "end_point": {"row": 46, "column": 25}}, {"id": 194, "type": "field_expression", "text": "summary->failed", "parent": 193, "children": [195, 196], "start_point": {"row": 46, "column": 8}, "end_point": {"row": 46, "column": 23}}, {"id": 195, "type": "identifier", "text": "summary", "parent": 194, "children": [], "start_point": {"row": 46, "column": 8}, "end_point": {"row": 46, "column": 15}}, {"id": 196, "type": "field_identifier", "text": "failed", "parent": 194, "children": [], "start_point": {"row": 46, "column": 17}, "end_point": {"row": 46, "column": 23}}, {"id": 197, "type": "++", "text": "++", "parent": 193, "children": [], "start_point": {"row": 46, "column": 23}, "end_point": {"row": 46, "column": 25}}, {"id": 198, "type": "function_definition", "text": "void count_passed_test(tests_summary *summary)\n{\n count_test(true, summary);\n}", "parent": null, "children": [199, 200], "start_point": {"row": 50, "column": 0}, "end_point": {"row": 53, "column": 1}}, {"id": 199, "type": "primitive_type", "text": "void", "parent": 198, "children": [], "start_point": {"row": 50, "column": 0}, "end_point": {"row": 50, "column": 4}}, {"id": 200, "type": "function_declarator", "text": "count_passed_test(tests_summary *summary)", "parent": 198, "children": [201, 202], "start_point": {"row": 50, "column": 5}, "end_point": {"row": 50, "column": 46}}, {"id": 201, "type": "identifier", "text": "count_passed_test", "parent": 200, "children": [], "start_point": {"row": 50, "column": 5}, "end_point": {"row": 50, "column": 22}}, {"id": 202, "type": "parameter_list", "text": "(tests_summary *summary)", "parent": 200, "children": [203], "start_point": {"row": 50, "column": 22}, "end_point": {"row": 50, "column": 46}}, {"id": 203, "type": "parameter_declaration", "text": "tests_summary *summary", "parent": 202, "children": [204, 205], "start_point": {"row": 50, "column": 23}, "end_point": {"row": 50, "column": 45}}, {"id": 204, "type": "type_identifier", "text": "tests_summary", "parent": 203, "children": [], "start_point": {"row": 50, "column": 23}, "end_point": {"row": 50, "column": 36}}, {"id": 205, "type": "pointer_declarator", "text": "*summary", "parent": 203, "children": [206, 207], "start_point": {"row": 50, "column": 37}, "end_point": {"row": 50, "column": 45}}, {"id": 206, "type": "*", "text": "*", "parent": 205, "children": [], "start_point": {"row": 50, "column": 37}, "end_point": {"row": 50, "column": 38}}, {"id": 207, "type": "identifier", "text": "summary", "parent": 205, "children": [], "start_point": {"row": 50, "column": 38}, "end_point": {"row": 50, "column": 45}}, {"id": 208, "type": "call_expression", "text": "count_test(true, summary)", "parent": 198, "children": [209, 210], "start_point": {"row": 52, "column": 4}, "end_point": {"row": 52, "column": 29}}, {"id": 209, "type": "identifier", "text": "count_test", "parent": 208, "children": [], "start_point": {"row": 52, "column": 4}, "end_point": {"row": 52, "column": 14}}, {"id": 210, "type": "argument_list", "text": "(true, summary)", "parent": 208, "children": [211, 212], "start_point": {"row": 52, "column": 14}, "end_point": {"row": 52, "column": 29}}, {"id": 211, "type": "true", "text": "true", "parent": 210, "children": [], "start_point": {"row": 52, "column": 15}, "end_point": {"row": 52, "column": 19}}, {"id": 212, "type": "identifier", "text": "summary", "parent": 210, "children": [], "start_point": {"row": 52, "column": 21}, "end_point": {"row": 52, "column": 28}}, {"id": 213, "type": "function_definition", "text": "void run_test(bool (*test)(const char *program_name), tests_summary *summary)\n{\n count_test(test(summary->name), summary);\n}", "parent": null, "children": [214, 215], "start_point": {"row": 55, "column": 0}, "end_point": {"row": 58, "column": 1}}, {"id": 214, "type": "primitive_type", "text": "void", "parent": 213, "children": [], "start_point": {"row": 55, "column": 0}, "end_point": {"row": 55, "column": 4}}, {"id": 215, "type": "function_declarator", "text": "run_test(bool (*test)(const char *program_name), tests_summary *summary)", "parent": 213, "children": [216, 217], "start_point": {"row": 55, "column": 5}, "end_point": {"row": 55, "column": 77}}, {"id": 216, "type": "identifier", "text": "run_test", "parent": 215, "children": [], "start_point": {"row": 55, "column": 5}, "end_point": {"row": 55, "column": 13}}, {"id": 217, "type": "parameter_list", "text": "(bool (*test)(const char *program_name), tests_summary *summary)", "parent": 215, "children": [218, 231], "start_point": {"row": 55, "column": 13}, "end_point": {"row": 55, "column": 77}}, {"id": 218, "type": "parameter_declaration", "text": "bool (*test)(const char *program_name)", "parent": 217, "children": [219, 220], "start_point": {"row": 55, "column": 14}, "end_point": {"row": 55, "column": 52}}, {"id": 219, "type": "primitive_type", "text": "bool", "parent": 218, "children": [], "start_point": {"row": 55, "column": 14}, "end_point": {"row": 55, "column": 18}}, {"id": 220, "type": "function_declarator", "text": "(*test)(const char *program_name)", "parent": 218, "children": [221, 225], "start_point": {"row": 55, "column": 19}, "end_point": {"row": 55, "column": 52}}, {"id": 221, "type": "parenthesized_declarator", "text": "(*test)", "parent": 220, "children": [222], "start_point": {"row": 55, "column": 19}, "end_point": {"row": 55, "column": 26}}, {"id": 222, "type": "pointer_declarator", "text": "*test", "parent": 221, "children": [223, 224], "start_point": {"row": 55, "column": 20}, "end_point": {"row": 55, "column": 25}}, {"id": 223, "type": "*", "text": "*", "parent": 222, "children": [], "start_point": {"row": 55, "column": 20}, "end_point": {"row": 55, "column": 21}}, {"id": 224, "type": "identifier", "text": "test", "parent": 222, "children": [], "start_point": {"row": 55, "column": 21}, "end_point": {"row": 55, "column": 25}}, {"id": 225, "type": "parameter_list", "text": "(const char *program_name)", "parent": 220, "children": [226], "start_point": {"row": 55, "column": 26}, "end_point": {"row": 55, "column": 52}}, {"id": 226, "type": "parameter_declaration", "text": "const char *program_name", "parent": 225, "children": [227, 228], "start_point": {"row": 55, "column": 27}, "end_point": {"row": 55, "column": 51}}, {"id": 227, "type": "primitive_type", "text": "char", "parent": 226, "children": [], "start_point": {"row": 55, "column": 33}, "end_point": {"row": 55, "column": 37}}, {"id": 228, "type": "pointer_declarator", "text": "*program_name", "parent": 226, "children": [229, 230], "start_point": {"row": 55, "column": 38}, "end_point": {"row": 55, "column": 51}}, {"id": 229, "type": "*", "text": "*", "parent": 228, "children": [], "start_point": {"row": 55, "column": 38}, "end_point": {"row": 55, "column": 39}}, {"id": 230, "type": "identifier", "text": "program_name", "parent": 228, "children": [], "start_point": {"row": 55, "column": 39}, "end_point": {"row": 55, "column": 51}}, {"id": 231, "type": "parameter_declaration", "text": "tests_summary *summary", "parent": 217, "children": [232, 233], "start_point": {"row": 55, "column": 54}, "end_point": {"row": 55, "column": 76}}, {"id": 232, "type": "type_identifier", "text": "tests_summary", "parent": 231, "children": [], "start_point": {"row": 55, "column": 54}, "end_point": {"row": 55, "column": 67}}, {"id": 233, "type": "pointer_declarator", "text": "*summary", "parent": 231, "children": [234, 235], "start_point": {"row": 55, "column": 68}, "end_point": {"row": 55, "column": 76}}, {"id": 234, "type": "*", "text": "*", "parent": 233, "children": [], "start_point": {"row": 55, "column": 68}, "end_point": {"row": 55, "column": 69}}, {"id": 235, "type": "identifier", "text": "summary", "parent": 233, "children": [], "start_point": {"row": 55, "column": 69}, "end_point": {"row": 55, "column": 76}}, {"id": 236, "type": "call_expression", "text": "count_test(test(summary->name), summary)", "parent": 213, "children": [237, 238], "start_point": {"row": 57, "column": 4}, "end_point": {"row": 57, "column": 44}}, {"id": 237, "type": "identifier", "text": "count_test", "parent": 236, "children": [], "start_point": {"row": 57, "column": 4}, "end_point": {"row": 57, "column": 14}}, {"id": 238, "type": "argument_list", "text": "(test(summary->name), summary)", "parent": 236, "children": [239, 245], "start_point": {"row": 57, "column": 14}, "end_point": {"row": 57, "column": 44}}, {"id": 239, "type": "call_expression", "text": "test(summary->name)", "parent": 238, "children": [240, 241], "start_point": {"row": 57, "column": 15}, "end_point": {"row": 57, "column": 34}}, {"id": 240, "type": "identifier", "text": "test", "parent": 239, "children": [], "start_point": {"row": 57, "column": 15}, "end_point": {"row": 57, "column": 19}}, {"id": 241, "type": "argument_list", "text": "(summary->name)", "parent": 239, "children": [242], "start_point": {"row": 57, "column": 19}, "end_point": {"row": 57, "column": 34}}, {"id": 242, "type": "field_expression", "text": "summary->name", "parent": 241, "children": [243, 244], "start_point": {"row": 57, "column": 20}, "end_point": {"row": 57, "column": 33}}, {"id": 243, "type": "identifier", "text": "summary", "parent": 242, "children": [], "start_point": {"row": 57, "column": 20}, "end_point": {"row": 57, "column": 27}}, {"id": 244, "type": "field_identifier", "text": "name", "parent": 242, "children": [], "start_point": {"row": 57, "column": 29}, "end_point": {"row": 57, "column": 33}}, {"id": 245, "type": "identifier", "text": "summary", "parent": 238, "children": [], "start_point": {"row": 57, "column": 36}, "end_point": {"row": 57, "column": 43}}, {"id": 246, "type": "function_definition", "text": "void test_that(bool passed, tests_summary *summary, const char *message)\n{\n if (!passed) {\n print_failure(summary, message);\n }\n count_test(passed, summary);\n}", "parent": null, "children": [247, 248], "start_point": {"row": 60, "column": 0}, "end_point": {"row": 66, "column": 1}}, {"id": 247, "type": "primitive_type", "text": "void", "parent": 246, "children": [], "start_point": {"row": 60, "column": 0}, "end_point": {"row": 60, "column": 4}}, {"id": 248, "type": "function_declarator", "text": "test_that(bool passed, tests_summary *summary, const char *message)", "parent": 246, "children": [249, 250], "start_point": {"row": 60, "column": 5}, "end_point": {"row": 60, "column": 72}}, {"id": 249, "type": "identifier", "text": "test_that", "parent": 248, "children": [], "start_point": {"row": 60, "column": 5}, "end_point": {"row": 60, "column": 14}}, {"id": 250, "type": "parameter_list", "text": "(bool passed, tests_summary *summary, const char *message)", "parent": 248, "children": [251, 254, 259], "start_point": {"row": 60, "column": 14}, "end_point": {"row": 60, "column": 72}}, {"id": 251, "type": "parameter_declaration", "text": "bool passed", "parent": 250, "children": [252, 253], "start_point": {"row": 60, "column": 15}, "end_point": {"row": 60, "column": 26}}, {"id": 252, "type": "primitive_type", "text": "bool", "parent": 251, "children": [], "start_point": {"row": 60, "column": 15}, "end_point": {"row": 60, "column": 19}}, {"id": 253, "type": "identifier", "text": "passed", "parent": 251, "children": [], "start_point": {"row": 60, "column": 20}, "end_point": {"row": 60, "column": 26}}, {"id": 254, "type": "parameter_declaration", "text": "tests_summary *summary", "parent": 250, "children": [255, 256], "start_point": {"row": 60, "column": 28}, "end_point": {"row": 60, "column": 50}}, {"id": 255, "type": "type_identifier", "text": "tests_summary", "parent": 254, "children": [], "start_point": {"row": 60, "column": 28}, "end_point": {"row": 60, "column": 41}}, {"id": 256, "type": "pointer_declarator", "text": "*summary", "parent": 254, "children": [257, 258], "start_point": {"row": 60, "column": 42}, "end_point": {"row": 60, "column": 50}}, {"id": 257, "type": "*", "text": "*", "parent": 256, "children": [], "start_point": {"row": 60, "column": 42}, "end_point": {"row": 60, "column": 43}}, {"id": 258, "type": "identifier", "text": "summary", "parent": 256, "children": [], "start_point": {"row": 60, "column": 43}, "end_point": {"row": 60, "column": 50}}, {"id": 259, "type": "parameter_declaration", "text": "const char *message", "parent": 250, "children": [260, 261], "start_point": {"row": 60, "column": 52}, "end_point": {"row": 60, "column": 71}}, {"id": 260, "type": "primitive_type", "text": "char", "parent": 259, "children": [], "start_point": {"row": 60, "column": 58}, "end_point": {"row": 60, "column": 62}}, {"id": 261, "type": "pointer_declarator", "text": "*message", "parent": 259, "children": [262, 263], "start_point": {"row": 60, "column": 63}, "end_point": {"row": 60, "column": 71}}, {"id": 262, "type": "*", "text": "*", "parent": 261, "children": [], "start_point": {"row": 60, "column": 63}, "end_point": {"row": 60, "column": 64}}, {"id": 263, "type": "identifier", "text": "message", "parent": 261, "children": [], "start_point": {"row": 60, "column": 64}, "end_point": {"row": 60, "column": 71}}, {"id": 264, "type": "if_statement", "text": "if (!passed) {\n print_failure(summary, message);\n }", "parent": 246, "children": [265], "start_point": {"row": 62, "column": 4}, "end_point": {"row": 64, "column": 5}}, {"id": 265, "type": "parenthesized_expression", "text": "(!passed)", "parent": 264, "children": [266], "start_point": {"row": 62, "column": 7}, "end_point": {"row": 62, "column": 16}}, {"id": 266, "type": "unary_expression", "text": "!passed", "parent": 265, "children": [267, 268], "start_point": {"row": 62, "column": 8}, "end_point": {"row": 62, "column": 15}}, {"id": 267, "type": "!", "text": "!", "parent": 266, "children": [], "start_point": {"row": 62, "column": 8}, "end_point": {"row": 62, "column": 9}}, {"id": 268, "type": "identifier", "text": "passed", "parent": 266, "children": [], "start_point": {"row": 62, "column": 9}, "end_point": {"row": 62, "column": 15}}, {"id": 269, "type": "call_expression", "text": "print_failure(summary, message)", "parent": 264, "children": [270, 271], "start_point": {"row": 63, "column": 8}, "end_point": {"row": 63, "column": 39}}, {"id": 270, "type": "identifier", "text": "print_failure", "parent": 269, "children": [], "start_point": {"row": 63, "column": 8}, "end_point": {"row": 63, "column": 21}}, {"id": 271, "type": "argument_list", "text": "(summary, message)", "parent": 269, "children": [272, 273], "start_point": {"row": 63, "column": 21}, "end_point": {"row": 63, "column": 39}}, {"id": 272, "type": "identifier", "text": "summary", "parent": 271, "children": [], "start_point": {"row": 63, "column": 22}, "end_point": {"row": 63, "column": 29}}, {"id": 273, "type": "identifier", "text": "message", "parent": 271, "children": [], "start_point": {"row": 63, "column": 31}, "end_point": {"row": 63, "column": 38}}, {"id": 274, "type": "call_expression", "text": "count_test(passed, summary)", "parent": 246, "children": [275, 276], "start_point": {"row": 65, "column": 4}, "end_point": {"row": 65, "column": 31}}, {"id": 275, "type": "identifier", "text": "count_test", "parent": 274, "children": [], "start_point": {"row": 65, "column": 4}, "end_point": {"row": 65, "column": 14}}, {"id": 276, "type": "argument_list", "text": "(passed, summary)", "parent": 274, "children": [277, 278], "start_point": {"row": 65, "column": 14}, "end_point": {"row": 65, "column": 31}}, {"id": 277, "type": "identifier", "text": "passed", "parent": 276, "children": [], "start_point": {"row": 65, "column": 15}, "end_point": {"row": 65, "column": 21}}, {"id": 278, "type": "identifier", "text": "summary", "parent": 276, "children": [], "start_point": {"row": 65, "column": 23}, "end_point": {"row": 65, "column": 30}}, {"id": 279, "type": "function_definition", "text": "void test_str_equals(const char *result, const char *expected,\n const char *test_name, tests_summary *summary)\n{\n bool passed = strcmp(result, expected) == 0;\n if (!passed) {\n print_failure_context(summary->name, test_name);\n printf(\"expected \\\"%s\\\", got \\\"%s\\\"\\n\", expected, result);\n }\n count_test(passed, summary);\n}", "parent": null, "children": [280, 281], "start_point": {"row": 68, "column": 0}, "end_point": {"row": 77, "column": 1}}, {"id": 280, "type": "primitive_type", "text": "void", "parent": 279, "children": [], "start_point": {"row": 68, "column": 0}, "end_point": {"row": 68, "column": 4}}, {"id": 281, "type": "function_declarator", "text": "test_str_equals(const char *result, const char *expected,\n const char *test_name, tests_summary *summary)", "parent": 279, "children": [282, 283], "start_point": {"row": 68, "column": 5}, "end_point": {"row": 69, "column": 67}}, {"id": 282, "type": "identifier", "text": "test_str_equals", "parent": 281, "children": [], "start_point": {"row": 68, "column": 5}, "end_point": {"row": 68, "column": 20}}, {"id": 283, "type": "parameter_list", "text": "(const char *result, const char *expected,\n const char *test_name, tests_summary *summary)", "parent": 281, "children": [284, 289, 294, 299], "start_point": {"row": 68, "column": 20}, "end_point": {"row": 69, "column": 67}}, {"id": 284, "type": "parameter_declaration", "text": "const char *result", "parent": 283, "children": [285, 286], "start_point": {"row": 68, "column": 21}, "end_point": {"row": 68, "column": 39}}, {"id": 285, "type": "primitive_type", "text": "char", "parent": 284, "children": [], "start_point": {"row": 68, "column": 27}, "end_point": {"row": 68, "column": 31}}, {"id": 286, "type": "pointer_declarator", "text": "*result", "parent": 284, "children": [287, 288], "start_point": {"row": 68, "column": 32}, "end_point": {"row": 68, "column": 39}}, {"id": 287, "type": "*", "text": "*", "parent": 286, "children": [], "start_point": {"row": 68, "column": 32}, "end_point": {"row": 68, "column": 33}}, {"id": 288, "type": "identifier", "text": "result", "parent": 286, "children": [], "start_point": {"row": 68, "column": 33}, "end_point": {"row": 68, "column": 39}}, {"id": 289, "type": "parameter_declaration", "text": "const char *expected", "parent": 283, "children": [290, 291], "start_point": {"row": 68, "column": 41}, "end_point": {"row": 68, "column": 61}}, {"id": 290, "type": "primitive_type", "text": "char", "parent": 289, "children": [], "start_point": {"row": 68, "column": 47}, "end_point": {"row": 68, "column": 51}}, {"id": 291, "type": "pointer_declarator", "text": "*expected", "parent": 289, "children": [292, 293], "start_point": {"row": 68, "column": 52}, "end_point": {"row": 68, "column": 61}}, {"id": 292, "type": "*", "text": "*", "parent": 291, "children": [], "start_point": {"row": 68, "column": 52}, "end_point": {"row": 68, "column": 53}}, {"id": 293, "type": "identifier", "text": "expected", "parent": 291, "children": [], "start_point": {"row": 68, "column": 53}, "end_point": {"row": 68, "column": 61}}, {"id": 294, "type": "parameter_declaration", "text": "const char *test_name", "parent": 283, "children": [295, 296], "start_point": {"row": 69, "column": 21}, "end_point": {"row": 69, "column": 42}}, {"id": 295, "type": "primitive_type", "text": "char", "parent": 294, "children": [], "start_point": {"row": 69, "column": 27}, "end_point": {"row": 69, "column": 31}}, {"id": 296, "type": "pointer_declarator", "text": "*test_name", "parent": 294, "children": [297, 298], "start_point": {"row": 69, "column": 32}, "end_point": {"row": 69, "column": 42}}, {"id": 297, "type": "*", "text": "*", "parent": 296, "children": [], "start_point": {"row": 69, "column": 32}, "end_point": {"row": 69, "column": 33}}, {"id": 298, "type": "identifier", "text": "test_name", "parent": 296, "children": [], "start_point": {"row": 69, "column": 33}, "end_point": {"row": 69, "column": 42}}, {"id": 299, "type": "parameter_declaration", "text": "tests_summary *summary", "parent": 283, "children": [300, 301], "start_point": {"row": 69, "column": 44}, "end_point": {"row": 69, "column": 66}}, {"id": 300, "type": "type_identifier", "text": "tests_summary", "parent": 299, "children": [], "start_point": {"row": 69, "column": 44}, "end_point": {"row": 69, "column": 57}}, {"id": 301, "type": "pointer_declarator", "text": "*summary", "parent": 299, "children": [302, 303], "start_point": {"row": 69, "column": 58}, "end_point": {"row": 69, "column": 66}}, {"id": 302, "type": "*", "text": "*", "parent": 301, "children": [], "start_point": {"row": 69, "column": 58}, "end_point": {"row": 69, "column": 59}}, {"id": 303, "type": "identifier", "text": "summary", "parent": 301, "children": [], "start_point": {"row": 69, "column": 59}, "end_point": {"row": 69, "column": 66}}, {"id": 304, "type": "declaration", "text": "bool passed = strcmp(result, expected) == 0;", "parent": 279, "children": [305, 306], "start_point": {"row": 71, "column": 4}, "end_point": {"row": 71, "column": 48}}, {"id": 305, "type": "primitive_type", "text": "bool", "parent": 304, "children": [], "start_point": {"row": 71, "column": 4}, "end_point": {"row": 71, "column": 8}}, {"id": 306, "type": "init_declarator", "text": "passed = strcmp(result, expected) == 0", "parent": 304, "children": [307, 308, 309], "start_point": {"row": 71, "column": 9}, "end_point": {"row": 71, "column": 47}}, {"id": 307, "type": "identifier", "text": "passed", "parent": 306, "children": [], "start_point": {"row": 71, "column": 9}, "end_point": {"row": 71, "column": 15}}, {"id": 308, "type": "=", "text": "=", "parent": 306, "children": [], "start_point": {"row": 71, "column": 16}, "end_point": {"row": 71, "column": 17}}, {"id": 309, "type": "binary_expression", "text": "strcmp(result, expected) == 0", "parent": 306, "children": [310, 315, 316], "start_point": {"row": 71, "column": 18}, "end_point": {"row": 71, "column": 47}}, {"id": 310, "type": "call_expression", "text": "strcmp(result, expected)", "parent": 309, "children": [311, 312], "start_point": {"row": 71, "column": 18}, "end_point": {"row": 71, "column": 42}}, {"id": 311, "type": "identifier", "text": "strcmp", "parent": 310, "children": [], "start_point": {"row": 71, "column": 18}, "end_point": {"row": 71, "column": 24}}, {"id": 312, "type": "argument_list", "text": "(result, expected)", "parent": 310, "children": [313, 314], "start_point": {"row": 71, "column": 24}, "end_point": {"row": 71, "column": 42}}, {"id": 313, "type": "identifier", "text": "result", "parent": 312, "children": [], "start_point": {"row": 71, "column": 25}, "end_point": {"row": 71, "column": 31}}, {"id": 314, "type": "identifier", "text": "expected", "parent": 312, "children": [], "start_point": {"row": 71, "column": 33}, "end_point": {"row": 71, "column": 41}}, {"id": 315, "type": "==", "text": "==", "parent": 309, "children": [], "start_point": {"row": 71, "column": 43}, "end_point": {"row": 71, "column": 45}}, {"id": 316, "type": "number_literal", "text": "0", "parent": 309, "children": [], "start_point": {"row": 71, "column": 46}, "end_point": {"row": 71, "column": 47}}, {"id": 317, "type": "if_statement", "text": "if (!passed) {\n print_failure_context(summary->name, test_name);\n printf(\"expected \\\"%s\\\", got \\\"%s\\\"\\n\", expected, result);\n }", "parent": 279, "children": [318], "start_point": {"row": 72, "column": 4}, "end_point": {"row": 75, "column": 5}}, {"id": 318, "type": "parenthesized_expression", "text": "(!passed)", "parent": 317, "children": [319], "start_point": {"row": 72, "column": 7}, "end_point": {"row": 72, "column": 16}}, {"id": 319, "type": "unary_expression", "text": "!passed", "parent": 318, "children": [320, 321], "start_point": {"row": 72, "column": 8}, "end_point": {"row": 72, "column": 15}}, {"id": 320, "type": "!", "text": "!", "parent": 319, "children": [], "start_point": {"row": 72, "column": 8}, "end_point": {"row": 72, "column": 9}}, {"id": 321, "type": "identifier", "text": "passed", "parent": 319, "children": [], "start_point": {"row": 72, "column": 9}, "end_point": {"row": 72, "column": 15}}, {"id": 322, "type": "call_expression", "text": "print_failure_context(summary->name, test_name)", "parent": 317, "children": [323, 324], "start_point": {"row": 73, "column": 8}, "end_point": {"row": 73, "column": 55}}, {"id": 323, "type": "identifier", "text": "print_failure_context", "parent": 322, "children": [], "start_point": {"row": 73, "column": 8}, "end_point": {"row": 73, "column": 29}}, {"id": 324, "type": "argument_list", "text": "(summary->name, test_name)", "parent": 322, "children": [325, 328], "start_point": {"row": 73, "column": 29}, "end_point": {"row": 73, "column": 55}}, {"id": 325, "type": "field_expression", "text": "summary->name", "parent": 324, "children": [326, 327], "start_point": {"row": 73, "column": 30}, "end_point": {"row": 73, "column": 43}}, {"id": 326, "type": "identifier", "text": "summary", "parent": 325, "children": [], "start_point": {"row": 73, "column": 30}, "end_point": {"row": 73, "column": 37}}, {"id": 327, "type": "field_identifier", "text": "name", "parent": 325, "children": [], "start_point": {"row": 73, "column": 39}, "end_point": {"row": 73, "column": 43}}, {"id": 328, "type": "identifier", "text": "test_name", "parent": 324, "children": [], "start_point": {"row": 73, "column": 45}, "end_point": {"row": 73, "column": 54}}, {"id": 329, "type": "call_expression", "text": "printf(\"expected \\\"%s\\\", got \\\"%s\\\"\\n\", expected, result)", "parent": 317, "children": [330, 331], "start_point": {"row": 74, "column": 8}, "end_point": {"row": 74, "column": 65}}, {"id": 330, "type": "identifier", "text": "printf", "parent": 329, "children": [], "start_point": {"row": 74, "column": 8}, "end_point": {"row": 74, "column": 14}}, {"id": 331, "type": "argument_list", "text": "(\"expected \\\"%s\\\", got \\\"%s\\\"\\n\", expected, result)", "parent": 329, "children": [332, 338, 339], "start_point": {"row": 74, "column": 14}, "end_point": {"row": 74, "column": 65}}, {"id": 332, "type": "string_literal", "text": "\"expected \\\"%s\\\", got \\\"%s\\\"\\n\"", "parent": 331, "children": [333, 334, 335, 336, 337], "start_point": {"row": 74, "column": 15}, "end_point": {"row": 74, "column": 46}}, {"id": 333, "type": "escape_sequence", "text": "\\\"", "parent": 332, "children": [], "start_point": {"row": 74, "column": 25}, "end_point": {"row": 74, "column": 27}}, {"id": 334, "type": "escape_sequence", "text": "\\\"", "parent": 332, "children": [], "start_point": {"row": 74, "column": 29}, "end_point": {"row": 74, "column": 31}}, {"id": 335, "type": "escape_sequence", "text": "\\\"", "parent": 332, "children": [], "start_point": {"row": 74, "column": 37}, "end_point": {"row": 74, "column": 39}}, {"id": 336, "type": "escape_sequence", "text": "\\\"", "parent": 332, "children": [], "start_point": {"row": 74, "column": 41}, "end_point": {"row": 74, "column": 43}}, {"id": 337, "type": "escape_sequence", "text": "\\n", "parent": 332, "children": [], "start_point": {"row": 74, "column": 43}, "end_point": {"row": 74, "column": 45}}, {"id": 338, "type": "identifier", "text": "expected", "parent": 331, "children": [], "start_point": {"row": 74, "column": 48}, "end_point": {"row": 74, "column": 56}}, {"id": 339, "type": "identifier", "text": "result", "parent": 331, "children": [], "start_point": {"row": 74, "column": 58}, "end_point": {"row": 74, "column": 64}}, {"id": 340, "type": "call_expression", "text": "count_test(passed, summary)", "parent": 279, "children": [341, 342], "start_point": {"row": 76, "column": 4}, "end_point": {"row": 76, "column": 31}}, {"id": 341, "type": "identifier", "text": "count_test", "parent": 340, "children": [], "start_point": {"row": 76, "column": 4}, "end_point": {"row": 76, "column": 14}}, {"id": 342, "type": "argument_list", "text": "(passed, summary)", "parent": 340, "children": [343, 344], "start_point": {"row": 76, "column": 14}, "end_point": {"row": 76, "column": 31}}, {"id": 343, "type": "identifier", "text": "passed", "parent": 342, "children": [], "start_point": {"row": 76, "column": 15}, "end_point": {"row": 76, "column": 21}}, {"id": 344, "type": "identifier", "text": "summary", "parent": 342, "children": [], "start_point": {"row": 76, "column": 23}, "end_point": {"row": 76, "column": 30}}, {"id": 345, "type": "function_definition", "text": "int discard_stderr(void)\n{\n fflush(stderr);\n int old_stderr_fd = dup(STDERR_FILENO);\n int dev_null_fd = open(\"/dev/null\", O_WRONLY);\n dup2(dev_null_fd, STDERR_FILENO);\n close(dev_null_fd);\n return old_stderr_fd;\n}", "parent": null, "children": [346, 347], "start_point": {"row": 79, "column": 0}, "end_point": {"row": 87, "column": 1}}, {"id": 346, "type": "primitive_type", "text": "int", "parent": 345, "children": [], "start_point": {"row": 79, "column": 0}, "end_point": {"row": 79, "column": 3}}, {"id": 347, "type": "function_declarator", "text": "discard_stderr(void)", "parent": 345, "children": [348, 349], "start_point": {"row": 79, "column": 4}, "end_point": {"row": 79, "column": 24}}, {"id": 348, "type": "identifier", "text": "discard_stderr", "parent": 347, "children": [], "start_point": {"row": 79, "column": 4}, "end_point": {"row": 79, "column": 18}}, {"id": 349, "type": "parameter_list", "text": "(void)", "parent": 347, "children": [350], "start_point": {"row": 79, "column": 18}, "end_point": {"row": 79, "column": 24}}, {"id": 350, "type": "parameter_declaration", "text": "void", "parent": 349, "children": [351], "start_point": {"row": 79, "column": 19}, "end_point": {"row": 79, "column": 23}}, {"id": 351, "type": "primitive_type", "text": "void", "parent": 350, "children": [], "start_point": {"row": 79, "column": 19}, "end_point": {"row": 79, "column": 23}}, {"id": 352, "type": "call_expression", "text": "fflush(stderr)", "parent": 345, "children": [353, 354], "start_point": {"row": 81, "column": 4}, "end_point": {"row": 81, "column": 18}}, {"id": 353, "type": "identifier", "text": "fflush", "parent": 352, "children": [], "start_point": {"row": 81, "column": 4}, "end_point": {"row": 81, "column": 10}}, {"id": 354, "type": "argument_list", "text": "(stderr)", "parent": 352, "children": [355], "start_point": {"row": 81, "column": 10}, "end_point": {"row": 81, "column": 18}}, {"id": 355, "type": "identifier", "text": "stderr", "parent": 354, "children": [], "start_point": {"row": 81, "column": 11}, "end_point": {"row": 81, "column": 17}}, {"id": 356, "type": "declaration", "text": "int old_stderr_fd = dup(STDERR_FILENO);", "parent": 345, "children": [357, 358], "start_point": {"row": 82, "column": 4}, "end_point": {"row": 82, "column": 43}}, {"id": 357, "type": "primitive_type", "text": "int", "parent": 356, "children": [], "start_point": {"row": 82, "column": 4}, "end_point": {"row": 82, "column": 7}}, {"id": 358, "type": "init_declarator", "text": "old_stderr_fd = dup(STDERR_FILENO)", "parent": 356, "children": [359, 360, 361], "start_point": {"row": 82, "column": 8}, "end_point": {"row": 82, "column": 42}}, {"id": 359, "type": "identifier", "text": "old_stderr_fd", "parent": 358, "children": [], "start_point": {"row": 82, "column": 8}, "end_point": {"row": 82, "column": 21}}, {"id": 360, "type": "=", "text": "=", "parent": 358, "children": [], "start_point": {"row": 82, "column": 22}, "end_point": {"row": 82, "column": 23}}, {"id": 361, "type": "call_expression", "text": "dup(STDERR_FILENO)", "parent": 358, "children": [362, 363], "start_point": {"row": 82, "column": 24}, "end_point": {"row": 82, "column": 42}}, {"id": 362, "type": "identifier", "text": "dup", "parent": 361, "children": [], "start_point": {"row": 82, "column": 24}, "end_point": {"row": 82, "column": 27}}, {"id": 363, "type": "argument_list", "text": "(STDERR_FILENO)", "parent": 361, "children": [364], "start_point": {"row": 82, "column": 27}, "end_point": {"row": 82, "column": 42}}, {"id": 364, "type": "identifier", "text": "STDERR_FILENO", "parent": 363, "children": [], "start_point": {"row": 82, "column": 28}, "end_point": {"row": 82, "column": 41}}, {"id": 365, "type": "declaration", "text": "int dev_null_fd = open(\"/dev/null\", O_WRONLY);", "parent": 345, "children": [366, 367], "start_point": {"row": 83, "column": 4}, "end_point": {"row": 83, "column": 50}}, {"id": 366, "type": "primitive_type", "text": "int", "parent": 365, "children": [], "start_point": {"row": 83, "column": 4}, "end_point": {"row": 83, "column": 7}}, {"id": 367, "type": "init_declarator", "text": "dev_null_fd = open(\"/dev/null\", O_WRONLY)", "parent": 365, "children": [368, 369, 370], "start_point": {"row": 83, "column": 8}, "end_point": {"row": 83, "column": 49}}, {"id": 368, "type": "identifier", "text": "dev_null_fd", "parent": 367, "children": [], "start_point": {"row": 83, "column": 8}, "end_point": {"row": 83, "column": 19}}, {"id": 369, "type": "=", "text": "=", "parent": 367, "children": [], "start_point": {"row": 83, "column": 20}, "end_point": {"row": 83, "column": 21}}, {"id": 370, "type": "call_expression", "text": "open(\"/dev/null\", O_WRONLY)", "parent": 367, "children": [371, 372], "start_point": {"row": 83, "column": 22}, "end_point": {"row": 83, "column": 49}}, {"id": 371, "type": "identifier", "text": "open", "parent": 370, "children": [], "start_point": {"row": 83, "column": 22}, "end_point": {"row": 83, "column": 26}}, {"id": 372, "type": "argument_list", "text": "(\"/dev/null\", O_WRONLY)", "parent": 370, "children": [373, 374], "start_point": {"row": 83, "column": 26}, "end_point": {"row": 83, "column": 49}}, {"id": 373, "type": "string_literal", "text": "\"/dev/null\"", "parent": 372, "children": [], "start_point": {"row": 83, "column": 27}, "end_point": {"row": 83, "column": 38}}, {"id": 374, "type": "identifier", "text": "O_WRONLY", "parent": 372, "children": [], "start_point": {"row": 83, "column": 40}, "end_point": {"row": 83, "column": 48}}, {"id": 375, "type": "call_expression", "text": "dup2(dev_null_fd, STDERR_FILENO)", "parent": 345, "children": [376, 377], "start_point": {"row": 84, "column": 4}, "end_point": {"row": 84, "column": 36}}, {"id": 376, "type": "identifier", "text": "dup2", "parent": 375, "children": [], "start_point": {"row": 84, "column": 4}, "end_point": {"row": 84, "column": 8}}, {"id": 377, "type": "argument_list", "text": "(dev_null_fd, STDERR_FILENO)", "parent": 375, "children": [378, 379], "start_point": {"row": 84, "column": 8}, "end_point": {"row": 84, "column": 36}}, {"id": 378, "type": "identifier", "text": "dev_null_fd", "parent": 377, "children": [], "start_point": {"row": 84, "column": 9}, "end_point": {"row": 84, "column": 20}}, {"id": 379, "type": "identifier", "text": "STDERR_FILENO", "parent": 377, "children": [], "start_point": {"row": 84, "column": 22}, "end_point": {"row": 84, "column": 35}}, {"id": 380, "type": "call_expression", "text": "close(dev_null_fd)", "parent": 345, "children": [381, 382], "start_point": {"row": 85, "column": 4}, "end_point": {"row": 85, "column": 22}}, {"id": 381, "type": "identifier", "text": "close", "parent": 380, "children": [], "start_point": {"row": 85, "column": 4}, "end_point": {"row": 85, "column": 9}}, {"id": 382, "type": "argument_list", "text": "(dev_null_fd)", "parent": 380, "children": [383], "start_point": {"row": 85, "column": 9}, "end_point": {"row": 85, "column": 22}}, {"id": 383, "type": "identifier", "text": "dev_null_fd", "parent": 382, "children": [], "start_point": {"row": 85, "column": 10}, "end_point": {"row": 85, "column": 21}}, {"id": 384, "type": "return_statement", "text": "return old_stderr_fd;", "parent": 345, "children": [385], "start_point": {"row": 86, "column": 4}, "end_point": {"row": 86, "column": 25}}, {"id": 385, "type": "identifier", "text": "old_stderr_fd", "parent": 384, "children": [], "start_point": {"row": 86, "column": 11}, "end_point": {"row": 86, "column": 24}}, {"id": 386, "type": "function_definition", "text": "void restore_stderr(int old_stderr_fd)\n{\n fflush(stderr);\n dup2(old_stderr_fd, STDERR_FILENO);\n close(old_stderr_fd);\n}", "parent": null, "children": [387, 388], "start_point": {"row": 89, "column": 0}, "end_point": {"row": 94, "column": 1}}, {"id": 387, "type": "primitive_type", "text": "void", "parent": 386, "children": [], "start_point": {"row": 89, "column": 0}, "end_point": {"row": 89, "column": 4}}, {"id": 388, "type": "function_declarator", "text": "restore_stderr(int old_stderr_fd)", "parent": 386, "children": [389, 390], "start_point": {"row": 89, "column": 5}, "end_point": {"row": 89, "column": 38}}, {"id": 389, "type": "identifier", "text": "restore_stderr", "parent": 388, "children": [], "start_point": {"row": 89, "column": 5}, "end_point": {"row": 89, "column": 19}}, {"id": 390, "type": "parameter_list", "text": "(int old_stderr_fd)", "parent": 388, "children": [391], "start_point": {"row": 89, "column": 19}, "end_point": {"row": 89, "column": 38}}, {"id": 391, "type": "parameter_declaration", "text": "int old_stderr_fd", "parent": 390, "children": [392, 393], "start_point": {"row": 89, "column": 20}, "end_point": {"row": 89, "column": 37}}, {"id": 392, "type": "primitive_type", "text": "int", "parent": 391, "children": [], "start_point": {"row": 89, "column": 20}, "end_point": {"row": 89, "column": 23}}, {"id": 393, "type": "identifier", "text": "old_stderr_fd", "parent": 391, "children": [], "start_point": {"row": 89, "column": 24}, "end_point": {"row": 89, "column": 37}}, {"id": 394, "type": "call_expression", "text": "fflush(stderr)", "parent": 386, "children": [395, 396], "start_point": {"row": 91, "column": 4}, "end_point": {"row": 91, "column": 18}}, {"id": 395, "type": "identifier", "text": "fflush", "parent": 394, "children": [], "start_point": {"row": 91, "column": 4}, "end_point": {"row": 91, "column": 10}}, {"id": 396, "type": "argument_list", "text": "(stderr)", "parent": 394, "children": [397], "start_point": {"row": 91, "column": 10}, "end_point": {"row": 91, "column": 18}}, {"id": 397, "type": "identifier", "text": "stderr", "parent": 396, "children": [], "start_point": {"row": 91, "column": 11}, "end_point": {"row": 91, "column": 17}}, {"id": 398, "type": "call_expression", "text": "dup2(old_stderr_fd, STDERR_FILENO)", "parent": 386, "children": [399, 400], "start_point": {"row": 92, "column": 4}, "end_point": {"row": 92, "column": 38}}, {"id": 399, "type": "identifier", "text": "dup2", "parent": 398, "children": [], "start_point": {"row": 92, "column": 4}, "end_point": {"row": 92, "column": 8}}, {"id": 400, "type": "argument_list", "text": "(old_stderr_fd, STDERR_FILENO)", "parent": 398, "children": [401, 402], "start_point": {"row": 92, "column": 8}, "end_point": {"row": 92, "column": 38}}, {"id": 401, "type": "identifier", "text": "old_stderr_fd", "parent": 400, "children": [], "start_point": {"row": 92, "column": 9}, "end_point": {"row": 92, "column": 22}}, {"id": 402, "type": "identifier", "text": "STDERR_FILENO", "parent": 400, "children": [], "start_point": {"row": 92, "column": 24}, "end_point": {"row": 92, "column": 37}}, {"id": 403, "type": "call_expression", "text": "close(old_stderr_fd)", "parent": 386, "children": [404, 405], "start_point": {"row": 93, "column": 4}, "end_point": {"row": 93, "column": 24}}, {"id": 404, "type": "identifier", "text": "close", "parent": 403, "children": [], "start_point": {"row": 93, "column": 4}, "end_point": {"row": 93, "column": 9}}, {"id": 405, "type": "argument_list", "text": "(old_stderr_fd)", "parent": 403, "children": [406], "start_point": {"row": 93, "column": 9}, "end_point": {"row": 93, "column": 24}}, {"id": 406, "type": "identifier", "text": "old_stderr_fd", "parent": 405, "children": [], "start_point": {"row": 93, "column": 10}, "end_point": {"row": 93, "column": 23}}]}, "node_categories": {"declarations": {"functions": [42, 44, 126, 128, 147, 149, 171, 173, 198, 200, 213, 215, 220, 246, 248, 279, 281, 345, 347, 386, 388], "variables": [18, 26, 34, 47, 52, 60, 89, 131, 136, 152, 157, 176, 179, 203, 218, 226, 231, 251, 254, 259, 284, 289, 294, 299, 304, 350, 356, 365, 391], "classes": [], "imports": [0, 1, 3, 4, 6, 7, 9, 10, 12, 13, 15, 16], "modules": [], "enums": []}, "statements": {"expressions": [68, 69, 77, 78, 97, 98, 106, 111, 114, 117, 123, 141, 162, 167, 185, 187, 188, 193, 194, 208, 236, 239, 242, 265, 266, 269, 274, 309, 310, 318, 319, 322, 325, 329, 340, 352, 361, 370, 375, 380, 394, 398, 403], "assignments": [73, 86], "loops": [], "conditionals": [22, 30, 38, 45, 48, 51, 57, 67, 70, 72, 74, 76, 79, 80, 84, 85, 88, 94, 96, 99, 100, 107, 110, 112, 113, 115, 116, 118, 122, 124, 125, 129, 135, 140, 142, 145, 146, 150, 153, 156, 161, 163, 168, 169, 170, 174, 178, 180, 183, 184, 186, 189, 190, 195, 196, 201, 204, 207, 209, 212, 216, 224, 230, 232, 235, 237, 240, 243, 244, 245, 249, 253, 255, 258, 263, 264, 268, 270, 272, 273, 275, 277, 278, 282, 288, 293, 298, 300, 303, 307, 311, 313, 314, 317, 321, 323, 326, 327, 328, 330, 338, 339, 341, 343, 344, 348, 353, 355, 359, 362, 364, 368, 371, 374, 376, 378, 379, 381, 383, 385, 389, 393, 395, 397, 399, 401, 402, 404, 406], "returns": [384], "exceptions": []}, "expressions": {"calls": [], "literals": [2, 5, 8, 11, 14, 17, 24, 32, 40, 59, 66, 82, 102, 104, 105, 109, 120, 144, 165, 316, 332, 373], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [{"node_id": 42, "universal_type": "function", "name": "print_summary", "text_snippet": "void print_summary(const tests_summary *summary)\n{\n const char *color = \"\";\n const char *end ="}, {"node_id": 44, "universal_type": "function", "name": "unknown", "text_snippet": "print_summary(const tests_summary *summary)"}, {"node_id": 126, "universal_type": "function", "name": "print_failure_context", "text_snippet": "void print_failure_context(const char *program_name, const char *test_name)\n{\n printf(\"[%s] Faile"}, {"node_id": 128, "universal_type": "function", "name": "unknown", "text_snippet": "print_failure_context(const char *program_name, const char *test_name)"}, {"node_id": 147, "universal_type": "function", "name": "print_failure", "text_snippet": "static void print_failure(const tests_summary *summary, const char *message)\n{\n printf(\"[%s] Fail"}, {"node_id": 149, "universal_type": "function", "name": "unknown", "text_snippet": "print_failure(const tests_summary *summary, const char *message)"}, {"node_id": 171, "universal_type": "function", "name": "count_test", "text_snippet": "static void count_test(bool passed, tests_summary *summary)\n{\n if (passed) {\n summary->pas"}, {"node_id": 173, "universal_type": "function", "name": "unknown", "text_snippet": "count_test(bool passed, tests_summary *summary)"}, {"node_id": 198, "universal_type": "function", "name": "count_passed_test", "text_snippet": "void count_passed_test(tests_summary *summary)\n{\n count_test(true, summary);\n}"}, {"node_id": 200, "universal_type": "function", "name": "unknown", "text_snippet": "count_passed_test(tests_summary *summary)"}, {"node_id": 213, "universal_type": "function", "name": "run_test", "text_snippet": "void run_test(bool (*test)(const char *program_name), tests_summary *summary)\n{\n count_test(test("}, {"node_id": 215, "universal_type": "function", "name": "unknown", "text_snippet": "run_test(bool (*test)(const char *program_name), tests_summary *summary)"}, {"node_id": 220, "universal_type": "function", "name": "unknown", "text_snippet": "(*test)(const char *program_name)"}, {"node_id": 246, "universal_type": "function", "name": "test_that", "text_snippet": "void test_that(bool passed, tests_summary *summary, const char *message)\n{\n if (!passed) {\n "}, {"node_id": 248, "universal_type": "function", "name": "unknown", "text_snippet": "test_that(bool passed, tests_summary *summary, const char *message)"}, {"node_id": 279, "universal_type": "function", "name": "test_str_equals", "text_snippet": "void test_str_equals(const char *result, const char *expected,\n const char *test"}, {"node_id": 281, "universal_type": "function", "name": "unknown", "text_snippet": "test_str_equals(const char *result, const char *expected,\n const char *test_name"}, {"node_id": 345, "universal_type": "function", "name": "discard_stderr", "text_snippet": "int discard_stderr(void)\n{\n fflush(stderr);\n int old_stderr_fd = dup(STDERR_FILENO);\n int d"}, {"node_id": 347, "universal_type": "function", "name": "unknown", "text_snippet": "discard_stderr(void)"}, {"node_id": 386, "universal_type": "function", "name": "restore_stderr", "text_snippet": "void restore_stderr(int old_stderr_fd)\n{\n fflush(stderr);\n dup2(old_stderr_fd, STDERR_FILENO);"}, {"node_id": 388, "universal_type": "function", "name": "unknown", "text_snippet": "restore_stderr(int old_stderr_fd)"}], "class_declarations": [], "import_statements": [{"node_id": 0, "text": "#include \"unittest.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 <unistd.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 <string.h>\n"}, {"node_id": 16, "text": "#include"}]}, "original_source_code": "#include \"unittest.h\"\n\n#include <fcntl.h>\n#include <unistd.h>\n\n#include <stdbool.h>\n#include <stdio.h>\n#include <string.h>\n\n\nstatic const char red[] = \"\\033[1;31m\";\nstatic const char green[] = \"\\033[1;32m\";\nstatic const char end_color[] = \"\\033[0m\";\n\n\nvoid print_summary(const tests_summary *summary)\n{\n const char *color = \"\";\n const char *end = \"\";\n if (isatty(STDOUT_FILENO)) {\n color = summary->failed == 0 ? green : red;\n end = end_color;\n }\n\n const char *ending = summary->passed != 1 ? \"s\" : \"\";\n printf(\"%s%s: Passed %d \", color, summary->name, summary->passed);\n printf(\"test%s and failed %d.%s\\n\", ending, summary->failed, end);\n}\n\nvoid print_failure_context(const char *program_name, const char *test_name)\n{\n printf(\"[%s] Failed test %s: \", program_name, test_name);\n}\n\n// Print a message describing a failed test.\nstatic void print_failure(const tests_summary *summary, const char *message)\n{\n printf(\"[%s] Failed test: %s\\n\", summary->name, message);\n}\n\n// Update the counters of passed and failed tests.\nstatic void count_test(bool passed, tests_summary *summary)\n{\n if (passed) {\n summary->passed++;\n } else {\n summary->failed++;\n }\n}\n\nvoid count_passed_test(tests_summary *summary)\n{\n count_test(true, summary);\n}\n\nvoid run_test(bool (*test)(const char *program_name), tests_summary *summary)\n{\n count_test(test(summary->name), summary);\n}\n\nvoid test_that(bool passed, tests_summary *summary, const char *message)\n{\n if (!passed) {\n print_failure(summary, message);\n }\n count_test(passed, summary);\n}\n\nvoid test_str_equals(const char *result, const char *expected,\n const char *test_name, tests_summary *summary)\n{\n bool passed = strcmp(result, expected) == 0;\n if (!passed) {\n print_failure_context(summary->name, test_name);\n printf(\"expected \\\"%s\\\", got \\\"%s\\\"\\n\", expected, result);\n }\n count_test(passed, summary);\n}\n\nint discard_stderr(void)\n{\n fflush(stderr);\n int old_stderr_fd = dup(STDERR_FILENO);\n int dev_null_fd = open(\"/dev/null\", O_WRONLY);\n dup2(dev_null_fd, STDERR_FILENO);\n close(dev_null_fd);\n return old_stderr_fd;\n}\n\nvoid restore_stderr(int old_stderr_fd)\n{\n fflush(stderr);\n dup2(old_stderr_fd, STDERR_FILENO);\n close(old_stderr_fd);\n}\n"}
80,008
c
#include <stdio.h> int main (){ int num1 = 0; int num2 = 1; int sum = 0; int i = 0; long sumapares = 0; int seguir = 1; do{ sum = num1 + num2; if (sum < 4000000){ if (sum % 2 == 0){ sumapares += sum; } num1 = num2; num2 = sum; printf ("%d\n", num2); } else{ seguir = 0; } }while (seguir); printf ("la suma de los numeros pares de la secuencia de fibonacci entre 0 y 10 es: %d\n", sumapares); return 0; }
15.59
27
(translation_unit) "#include <stdio.h>\n\n\nint main (){\n\n int num1 = 0;\n int num2 = 1;\n int sum = 0;\n int i = 0;\n long sumapares = 0;\n int seguir = 1;\n\n do{\n sum = num1 + num2;\n if (sum < 4000000){\n if (sum % 2 == 0){\n sumapares += sum;\n }\n num1 = num2;\n num2 = sum;\n\n printf ("%d\n", num2);\n }\n else{\n seguir = 0;\n }\n\n }while (seguir);\n\n printf ("la suma de los numeros pares de la secuencia de fibonacci entre 0 y 10 es: %d\n", sumapares);\n\n\n return 0;\n}\n" (preproc_include) "#include <stdio.h>\n" (#include) "#include" (system_lib_string) "<stdio.h>" (function_definition) "int main (){\n\n int num1 = 0;\n int num2 = 1;\n int sum = 0;\n int i = 0;\n long sumapares = 0;\n int seguir = 1;\n\n do{\n sum = num1 + num2;\n if (sum < 4000000){\n if (sum % 2 == 0){\n sumapares += sum;\n }\n num1 = num2;\n num2 = sum;\n\n printf ("%d\n", num2);\n }\n else{\n seguir = 0;\n }\n\n }while (seguir);\n\n printf ("la suma de los numeros pares de la secuencia de fibonacci entre 0 y 10 es: %d\n", sumapares);\n\n\n return 0;\n}" (primitive_type) "int" (function_declarator) "main ()" (identifier) "main" (parameter_list) "()" (() "(" ()) ")" (compound_statement) "{\n\n int num1 = 0;\n int num2 = 1;\n int sum = 0;\n int i = 0;\n long sumapares = 0;\n int seguir = 1;\n\n do{\n sum = num1 + num2;\n if (sum < 4000000){\n if (sum % 2 == 0){\n sumapares += sum;\n }\n num1 = num2;\n num2 = sum;\n\n printf ("%d\n", num2);\n }\n else{\n seguir = 0;\n }\n\n }while (seguir);\n\n printf ("la suma de los numeros pares de la secuencia de fibonacci entre 0 y 10 es: %d\n", sumapares);\n\n\n return 0;\n}" ({) "{" (declaration) "int num1 = 0;" (primitive_type) "int" (init_declarator) "num1 = 0" (identifier) "num1" (=) "=" (number_literal) "0" (;) ";" (declaration) "int num2 = 1;" (primitive_type) "int" (init_declarator) "num2 = 1" (identifier) "num2" (=) "=" (number_literal) "1" (;) ";" (declaration) "int sum = 0;" (primitive_type) "int" (init_declarator) "sum = 0" (identifier) "sum" (=) "=" (number_literal) "0" (;) ";" (declaration) "int i = 0;" (primitive_type) "int" (init_declarator) "i = 0" (identifier) "i" (=) "=" (number_literal) "0" (;) ";" (declaration) "long sumapares = 0;" (sized_type_specifier) "long" (long) "long" (init_declarator) "sumapares = 0" (identifier) "sumapares" (=) "=" (number_literal) "0" (;) ";" (declaration) "int seguir = 1;" (primitive_type) "int" (init_declarator) "seguir = 1" (identifier) "seguir" (=) "=" (number_literal) "1" (;) ";" (do_statement) "do{\n sum = num1 + num2;\n if (sum < 4000000){\n if (sum % 2 == 0){\n sumapares += sum;\n }\n num1 = num2;\n num2 = sum;\n\n printf ("%d\n", num2);\n }\n else{\n seguir = 0;\n }\n\n }while (seguir);" (do) "do" (compound_statement) "{\n sum = num1 + num2;\n if (sum < 4000000){\n if (sum % 2 == 0){\n sumapares += sum;\n }\n num1 = num2;\n num2 = sum;\n\n printf ("%d\n", num2);\n }\n else{\n seguir = 0;\n }\n\n }" ({) "{" (expression_statement) "sum = num1 + num2;" (assignment_expression) "sum = num1 + num2" (identifier) "sum" (=) "=" (binary_expression) "num1 + num2" (identifier) "num1" (+) "+" (identifier) "num2" (;) ";" (if_statement) "if (sum < 4000000){\n if (sum % 2 == 0){\n sumapares += sum;\n }\n num1 = num2;\n num2 = sum;\n\n printf ("%d\n", num2);\n }\n else{\n seguir = 0;\n }" (if) "if" (parenthesized_expression) "(sum < 4000000)" (() "(" (binary_expression) "sum < 4000000" (identifier) "sum" (<) "<" (number_literal) "4000000" ()) ")" (compound_statement) "{\n if (sum % 2 == 0){\n sumapares += sum;\n }\n num1 = num2;\n num2 = sum;\n\n printf ("%d\n", num2);\n }" ({) "{" (if_statement) "if (sum % 2 == 0){\n sumapares += sum;\n }" (if) "if" (parenthesized_expression) "(sum % 2 == 0)" (() "(" (binary_expression) "sum % 2 == 0" (binary_expression) "sum % 2" (identifier) "sum" (%) "%" (number_literal) "2" (==) "==" (number_literal) "0" ()) ")" (compound_statement) "{\n sumapares += sum;\n }" ({) "{" (expression_statement) "sumapares += sum;" (assignment_expression) "sumapares += sum" (identifier) "sumapares" (+=) "+=" (identifier) "sum" (;) ";" (}) "}" (expression_statement) "num1 = num2;" (assignment_expression) "num1 = num2" (identifier) "num1" (=) "=" (identifier) "num2" (;) ";" (expression_statement) "num2 = sum;" (assignment_expression) "num2 = sum" (identifier) "num2" (=) "=" (identifier) "sum" (;) ";" (expression_statement) "printf ("%d\n", num2);" (call_expression) "printf ("%d\n", num2)" (identifier) "printf" (argument_list) "("%d\n", num2)" (() "(" (string_literal) ""%d\n"" (") """ (string_content) "%d" (escape_sequence) "\n" (") """ (,) "," (identifier) "num2" ()) ")" (;) ";" (}) "}" (else_clause) "else{\n seguir = 0;\n }" (else) "else" (compound_statement) "{\n seguir = 0;\n }" ({) "{" (expression_statement) "seguir = 0;" (assignment_expression) "seguir = 0" (identifier) "seguir" (=) "=" (number_literal) "0" (;) ";" (}) "}" (}) "}" (while) "while" (parenthesized_expression) "(seguir)" (() "(" (identifier) "seguir" ()) ")" (;) ";" (expression_statement) "printf ("la suma de los numeros pares de la secuencia de fibonacci entre 0 y 10 es: %d\n", sumapares);" (call_expression) "printf ("la suma de los numeros pares de la secuencia de fibonacci entre 0 y 10 es: %d\n", sumapares)" (identifier) "printf" (argument_list) "("la suma de los numeros pares de la secuencia de fibonacci entre 0 y 10 es: %d\n", sumapares)" (() "(" (string_literal) ""la suma de los numeros pares de la secuencia de fibonacci entre 0 y 10 es: %d\n"" (") """ (string_content) "la suma de los numeros pares de la secuencia de fibonacci entre 0 y 10 es: %d" (escape_sequence) "\n" (") """ (,) "," (identifier) "sumapares" ()) ")" (;) ";" (return_statement) "return 0;" (return) "return" (number_literal) "0" (;) ";" (}) "}"
165
0
{"language": "c", "success": true, "metadata": {"lines": 27, "avg_line_length": 15.59, "nodes": 101, "errors": 0, "source_hash": "fee426eb9c9a06b717d0b6994f2261245c20e05918bcf46775948990f7d66ea4", "categorized_nodes": 66}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#include <stdio.h>\n", "parent": null, "children": [1, 2], "start_point": {"row": 0, "column": 0}, "end_point": {"row": 1, "column": 0}}, {"id": 1, "type": "#include", "text": "#include", "parent": 0, "children": [], "start_point": {"row": 0, "column": 0}, "end_point": {"row": 0, "column": 8}}, {"id": 2, "type": "system_lib_string", "text": "<stdio.h>", "parent": 0, "children": [], "start_point": {"row": 0, "column": 9}, "end_point": {"row": 0, "column": 18}}, {"id": 3, "type": "function_definition", "text": "int main (){\n\n\tint num1 = 0;\n\tint num2 = 1;\n\tint sum = 0;\n\tint i = 0;\n\tlong sumapares = 0;\n\tint seguir = 1;\n\n\tdo{\n\t\tsum = num1 + num2;\n\t\tif (sum < 4000000){\n\t\t\tif (sum % 2 == 0){\n\t\t\t\tsumapares += sum;\n\t\t\t}\n\t\t\tnum1 = num2;\n\t\t\tnum2 = sum;\n\n\t\t\tprintf (\"%d\\n\", num2);\n\t\t}\n\t\telse{\n\t\t\tseguir = 0;\n\t\t}\n\n\t}while (seguir);\n\n\tprintf (\"la suma de los numeros pares de la secuencia de fibonacci entre 0 y 10 es: %d\\n\", sumapares);\n\n\n\treturn 0;\n}", "parent": null, "children": [4, 5], "start_point": {"row": 3, "column": 0}, "end_point": {"row": 33, "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 ()", "parent": 3, "children": [6, 7], "start_point": {"row": 3, "column": 4}, "end_point": {"row": 3, "column": 11}}, {"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": "()", "parent": 5, "children": [], "start_point": {"row": 3, "column": 9}, "end_point": {"row": 3, "column": 11}}, {"id": 8, "type": "declaration", "text": "int num1 = 0;", "parent": 3, "children": [9, 10], "start_point": {"row": 5, "column": 1}, "end_point": {"row": 5, "column": 14}}, {"id": 9, "type": "primitive_type", "text": "int", "parent": 8, "children": [], "start_point": {"row": 5, "column": 1}, "end_point": {"row": 5, "column": 4}}, {"id": 10, "type": "init_declarator", "text": "num1 = 0", "parent": 8, "children": [11, 12, 13], "start_point": {"row": 5, "column": 5}, "end_point": {"row": 5, "column": 13}}, {"id": 11, "type": "identifier", "text": "num1", "parent": 10, "children": [], "start_point": {"row": 5, "column": 5}, "end_point": {"row": 5, "column": 9}}, {"id": 12, "type": "=", "text": "=", "parent": 10, "children": [], "start_point": {"row": 5, "column": 10}, "end_point": {"row": 5, "column": 11}}, {"id": 13, "type": "number_literal", "text": "0", "parent": 10, "children": [], "start_point": {"row": 5, "column": 12}, "end_point": {"row": 5, "column": 13}}, {"id": 14, "type": "declaration", "text": "int num2 = 1;", "parent": 3, "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": "init_declarator", "text": "num2 = 1", "parent": 14, "children": [17, 18, 19], "start_point": {"row": 6, "column": 5}, "end_point": {"row": 6, "column": 13}}, {"id": 17, "type": "identifier", "text": "num2", "parent": 16, "children": [], "start_point": {"row": 6, "column": 5}, "end_point": {"row": 6, "column": 9}}, {"id": 18, "type": "=", "text": "=", "parent": 16, "children": [], "start_point": {"row": 6, "column": 10}, "end_point": {"row": 6, "column": 11}}, {"id": 19, "type": "number_literal", "text": "1", "parent": 16, "children": [], "start_point": {"row": 6, "column": 12}, "end_point": {"row": 6, "column": 13}}, {"id": 20, "type": "declaration", "text": "int sum = 0;", "parent": 3, "children": [21, 22], "start_point": {"row": 7, "column": 1}, "end_point": {"row": 7, "column": 13}}, {"id": 21, "type": "primitive_type", "text": "int", "parent": 20, "children": [], "start_point": {"row": 7, "column": 1}, "end_point": {"row": 7, "column": 4}}, {"id": 22, "type": "init_declarator", "text": "sum = 0", "parent": 20, "children": [23, 24, 25], "start_point": {"row": 7, "column": 5}, "end_point": {"row": 7, "column": 12}}, {"id": 23, "type": "identifier", "text": "sum", "parent": 22, "children": [], "start_point": {"row": 7, "column": 5}, "end_point": {"row": 7, "column": 8}}, {"id": 24, "type": "=", "text": "=", "parent": 22, "children": [], "start_point": {"row": 7, "column": 9}, "end_point": {"row": 7, "column": 10}}, {"id": 25, "type": "number_literal", "text": "0", "parent": 22, "children": [], "start_point": {"row": 7, "column": 11}, "end_point": {"row": 7, "column": 12}}, {"id": 26, "type": "declaration", "text": "int i = 0;", "parent": 3, "children": [27, 28], "start_point": {"row": 8, "column": 1}, "end_point": {"row": 8, "column": 11}}, {"id": 27, "type": "primitive_type", "text": "int", "parent": 26, "children": [], "start_point": {"row": 8, "column": 1}, "end_point": {"row": 8, "column": 4}}, {"id": 28, "type": "init_declarator", "text": "i = 0", "parent": 26, "children": [29, 30, 31], "start_point": {"row": 8, "column": 5}, "end_point": {"row": 8, "column": 10}}, {"id": 29, "type": "identifier", "text": "i", "parent": 28, "children": [], "start_point": {"row": 8, "column": 5}, "end_point": {"row": 8, "column": 6}}, {"id": 30, "type": "=", "text": "=", "parent": 28, "children": [], "start_point": {"row": 8, "column": 7}, "end_point": {"row": 8, "column": 8}}, {"id": 31, "type": "number_literal", "text": "0", "parent": 28, "children": [], "start_point": {"row": 8, "column": 9}, "end_point": {"row": 8, "column": 10}}, {"id": 32, "type": "declaration", "text": "long sumapares = 0;", "parent": 3, "children": [33, 35], "start_point": {"row": 9, "column": 1}, "end_point": {"row": 9, "column": 20}}, {"id": 33, "type": "sized_type_specifier", "text": "long", "parent": 32, "children": [34], "start_point": {"row": 9, "column": 1}, "end_point": {"row": 9, "column": 5}}, {"id": 34, "type": "long", "text": "long", "parent": 33, "children": [], "start_point": {"row": 9, "column": 1}, "end_point": {"row": 9, "column": 5}}, {"id": 35, "type": "init_declarator", "text": "sumapares = 0", "parent": 32, "children": [36, 37, 38], "start_point": {"row": 9, "column": 6}, "end_point": {"row": 9, "column": 19}}, {"id": 36, "type": "identifier", "text": "sumapares", "parent": 35, "children": [], "start_point": {"row": 9, "column": 6}, "end_point": {"row": 9, "column": 15}}, {"id": 37, "type": "=", "text": "=", "parent": 35, "children": [], "start_point": {"row": 9, "column": 16}, "end_point": {"row": 9, "column": 17}}, {"id": 38, "type": "number_literal", "text": "0", "parent": 35, "children": [], "start_point": {"row": 9, "column": 18}, "end_point": {"row": 9, "column": 19}}, {"id": 39, "type": "declaration", "text": "int seguir = 1;", "parent": 3, "children": [40, 41], "start_point": {"row": 10, "column": 1}, "end_point": {"row": 10, "column": 16}}, {"id": 40, "type": "primitive_type", "text": "int", "parent": 39, "children": [], "start_point": {"row": 10, "column": 1}, "end_point": {"row": 10, "column": 4}}, {"id": 41, "type": "init_declarator", "text": "seguir = 1", "parent": 39, "children": [42, 43, 44], "start_point": {"row": 10, "column": 5}, "end_point": {"row": 10, "column": 15}}, {"id": 42, "type": "identifier", "text": "seguir", "parent": 41, "children": [], "start_point": {"row": 10, "column": 5}, "end_point": {"row": 10, "column": 11}}, {"id": 43, "type": "=", "text": "=", "parent": 41, "children": [], "start_point": {"row": 10, "column": 12}, "end_point": {"row": 10, "column": 13}}, {"id": 44, "type": "number_literal", "text": "1", "parent": 41, "children": [], "start_point": {"row": 10, "column": 14}, "end_point": {"row": 10, "column": 15}}, {"id": 45, "type": "do_statement", "text": "do{\n\t\tsum = num1 + num2;\n\t\tif (sum < 4000000){\n\t\t\tif (sum % 2 == 0){\n\t\t\t\tsumapares += sum;\n\t\t\t}\n\t\t\tnum1 = num2;\n\t\t\tnum2 = sum;\n\n\t\t\tprintf (\"%d\\n\", num2);\n\t\t}\n\t\telse{\n\t\t\tseguir = 0;\n\t\t}\n\n\t}while (seguir);", "parent": 3, "children": [91], "start_point": {"row": 12, "column": 1}, "end_point": {"row": 27, "column": 17}}, {"id": 46, "type": "assignment_expression", "text": "sum = num1 + num2", "parent": 45, "children": [47, 48, 49], "start_point": {"row": 13, "column": 2}, "end_point": {"row": 13, "column": 19}}, {"id": 47, "type": "identifier", "text": "sum", "parent": 46, "children": [], "start_point": {"row": 13, "column": 2}, "end_point": {"row": 13, "column": 5}}, {"id": 48, "type": "=", "text": "=", "parent": 46, "children": [], "start_point": {"row": 13, "column": 6}, "end_point": {"row": 13, "column": 7}}, {"id": 49, "type": "binary_expression", "text": "num1 + num2", "parent": 46, "children": [50, 51, 52], "start_point": {"row": 13, "column": 8}, "end_point": {"row": 13, "column": 19}}, {"id": 50, "type": "identifier", "text": "num1", "parent": 49, "children": [], "start_point": {"row": 13, "column": 8}, "end_point": {"row": 13, "column": 12}}, {"id": 51, "type": "+", "text": "+", "parent": 49, "children": [], "start_point": {"row": 13, "column": 13}, "end_point": {"row": 13, "column": 14}}, {"id": 52, "type": "identifier", "text": "num2", "parent": 49, "children": [], "start_point": {"row": 13, "column": 15}, "end_point": {"row": 13, "column": 19}}, {"id": 53, "type": "if_statement", "text": "if (sum < 4000000){\n\t\t\tif (sum % 2 == 0){\n\t\t\t\tsumapares += sum;\n\t\t\t}\n\t\t\tnum1 = num2;\n\t\t\tnum2 = sum;\n\n\t\t\tprintf (\"%d\\n\", num2);\n\t\t}\n\t\telse{\n\t\t\tseguir = 0;\n\t\t}", "parent": 45, "children": [54, 86], "start_point": {"row": 14, "column": 2}, "end_point": {"row": 25, "column": 3}}, {"id": 54, "type": "parenthesized_expression", "text": "(sum < 4000000)", "parent": 53, "children": [55], "start_point": {"row": 14, "column": 5}, "end_point": {"row": 14, "column": 20}}, {"id": 55, "type": "binary_expression", "text": "sum < 4000000", "parent": 54, "children": [56, 57, 58], "start_point": {"row": 14, "column": 6}, "end_point": {"row": 14, "column": 19}}, {"id": 56, "type": "identifier", "text": "sum", "parent": 55, "children": [], "start_point": {"row": 14, "column": 6}, "end_point": {"row": 14, "column": 9}}, {"id": 57, "type": "<", "text": "<", "parent": 55, "children": [], "start_point": {"row": 14, "column": 10}, "end_point": {"row": 14, "column": 11}}, {"id": 58, "type": "number_literal", "text": "4000000", "parent": 55, "children": [], "start_point": {"row": 14, "column": 12}, "end_point": {"row": 14, "column": 19}}, {"id": 59, "type": "if_statement", "text": "if (sum % 2 == 0){\n\t\t\t\tsumapares += sum;\n\t\t\t}", "parent": 53, "children": [60], "start_point": {"row": 15, "column": 3}, "end_point": {"row": 17, "column": 4}}, {"id": 60, "type": "parenthesized_expression", "text": "(sum % 2 == 0)", "parent": 59, "children": [61], "start_point": {"row": 15, "column": 6}, "end_point": {"row": 15, "column": 20}}, {"id": 61, "type": "binary_expression", "text": "sum % 2 == 0", "parent": 60, "children": [62, 66, 67], "start_point": {"row": 15, "column": 7}, "end_point": {"row": 15, "column": 19}}, {"id": 62, "type": "binary_expression", "text": "sum % 2", "parent": 61, "children": [63, 64, 65], "start_point": {"row": 15, "column": 7}, "end_point": {"row": 15, "column": 14}}, {"id": 63, "type": "identifier", "text": "sum", "parent": 62, "children": [], "start_point": {"row": 15, "column": 7}, "end_point": {"row": 15, "column": 10}}, {"id": 64, "type": "%", "text": "%", "parent": 62, "children": [], "start_point": {"row": 15, "column": 11}, "end_point": {"row": 15, "column": 12}}, {"id": 65, "type": "number_literal", "text": "2", "parent": 62, "children": [], "start_point": {"row": 15, "column": 13}, "end_point": {"row": 15, "column": 14}}, {"id": 66, "type": "==", "text": "==", "parent": 61, "children": [], "start_point": {"row": 15, "column": 15}, "end_point": {"row": 15, "column": 17}}, {"id": 67, "type": "number_literal", "text": "0", "parent": 61, "children": [], "start_point": {"row": 15, "column": 18}, "end_point": {"row": 15, "column": 19}}, {"id": 68, "type": "assignment_expression", "text": "sumapares += sum", "parent": 59, "children": [69, 70, 71], "start_point": {"row": 16, "column": 4}, "end_point": {"row": 16, "column": 20}}, {"id": 69, "type": "identifier", "text": "sumapares", "parent": 68, "children": [], "start_point": {"row": 16, "column": 4}, "end_point": {"row": 16, "column": 13}}, {"id": 70, "type": "+=", "text": "+=", "parent": 68, "children": [], "start_point": {"row": 16, "column": 14}, "end_point": {"row": 16, "column": 16}}, {"id": 71, "type": "identifier", "text": "sum", "parent": 68, "children": [], "start_point": {"row": 16, "column": 17}, "end_point": {"row": 16, "column": 20}}, {"id": 72, "type": "assignment_expression", "text": "num1 = num2", "parent": 53, "children": [73, 74, 75], "start_point": {"row": 18, "column": 3}, "end_point": {"row": 18, "column": 14}}, {"id": 73, "type": "identifier", "text": "num1", "parent": 72, "children": [], "start_point": {"row": 18, "column": 3}, "end_point": {"row": 18, "column": 7}}, {"id": 74, "type": "=", "text": "=", "parent": 72, "children": [], "start_point": {"row": 18, "column": 8}, "end_point": {"row": 18, "column": 9}}, {"id": 75, "type": "identifier", "text": "num2", "parent": 72, "children": [], "start_point": {"row": 18, "column": 10}, "end_point": {"row": 18, "column": 14}}, {"id": 76, "type": "assignment_expression", "text": "num2 = sum", "parent": 53, "children": [77, 78, 79], "start_point": {"row": 19, "column": 3}, "end_point": {"row": 19, "column": 13}}, {"id": 77, "type": "identifier", "text": "num2", "parent": 76, "children": [], "start_point": {"row": 19, "column": 3}, "end_point": {"row": 19, "column": 7}}, {"id": 78, "type": "=", "text": "=", "parent": 76, "children": [], "start_point": {"row": 19, "column": 8}, "end_point": {"row": 19, "column": 9}}, {"id": 79, "type": "identifier", "text": "sum", "parent": 76, "children": [], "start_point": {"row": 19, "column": 10}, "end_point": {"row": 19, "column": 13}}, {"id": 80, "type": "call_expression", "text": "printf (\"%d\\n\", num2)", "parent": 53, "children": [81, 82], "start_point": {"row": 21, "column": 3}, "end_point": {"row": 21, "column": 24}}, {"id": 81, "type": "identifier", "text": "printf", "parent": 80, "children": [], "start_point": {"row": 21, "column": 3}, "end_point": {"row": 21, "column": 9}}, {"id": 82, "type": "argument_list", "text": "(\"%d\\n\", num2)", "parent": 80, "children": [83, 85], "start_point": {"row": 21, "column": 10}, "end_point": {"row": 21, "column": 24}}, {"id": 83, "type": "string_literal", "text": "\"%d\\n\"", "parent": 82, "children": [84], "start_point": {"row": 21, "column": 11}, "end_point": {"row": 21, "column": 17}}, {"id": 84, "type": "escape_sequence", "text": "\\n", "parent": 83, "children": [], "start_point": {"row": 21, "column": 14}, "end_point": {"row": 21, "column": 16}}, {"id": 85, "type": "identifier", "text": "num2", "parent": 82, "children": [], "start_point": {"row": 21, "column": 19}, "end_point": {"row": 21, "column": 23}}, {"id": 86, "type": "else_clause", "text": "else{\n\t\t\tseguir = 0;\n\t\t}", "parent": 53, "children": [], "start_point": {"row": 23, "column": 2}, "end_point": {"row": 25, "column": 3}}, {"id": 87, "type": "assignment_expression", "text": "seguir = 0", "parent": 86, "children": [88, 89, 90], "start_point": {"row": 24, "column": 3}, "end_point": {"row": 24, "column": 13}}, {"id": 88, "type": "identifier", "text": "seguir", "parent": 87, "children": [], "start_point": {"row": 24, "column": 3}, "end_point": {"row": 24, "column": 9}}, {"id": 89, "type": "=", "text": "=", "parent": 87, "children": [], "start_point": {"row": 24, "column": 10}, "end_point": {"row": 24, "column": 11}}, {"id": 90, "type": "number_literal", "text": "0", "parent": 87, "children": [], "start_point": {"row": 24, "column": 12}, "end_point": {"row": 24, "column": 13}}, {"id": 91, "type": "parenthesized_expression", "text": "(seguir)", "parent": 45, "children": [92], "start_point": {"row": 27, "column": 8}, "end_point": {"row": 27, "column": 16}}, {"id": 92, "type": "identifier", "text": "seguir", "parent": 91, "children": [], "start_point": {"row": 27, "column": 9}, "end_point": {"row": 27, "column": 15}}, {"id": 93, "type": "call_expression", "text": "printf (\"la suma de los numeros pares de la secuencia de fibonacci entre 0 y 10 es: %d\\n\", sumapares)", "parent": 3, "children": [94, 95], "start_point": {"row": 29, "column": 1}, "end_point": {"row": 29, "column": 102}}, {"id": 94, "type": "identifier", "text": "printf", "parent": 93, "children": [], "start_point": {"row": 29, "column": 1}, "end_point": {"row": 29, "column": 7}}, {"id": 95, "type": "argument_list", "text": "(\"la suma de los numeros pares de la secuencia de fibonacci entre 0 y 10 es: %d\\n\", sumapares)", "parent": 93, "children": [96, 98], "start_point": {"row": 29, "column": 8}, "end_point": {"row": 29, "column": 102}}, {"id": 96, "type": "string_literal", "text": "\"la suma de los numeros pares de la secuencia de fibonacci entre 0 y 10 es: %d\\n\"", "parent": 95, "children": [97], "start_point": {"row": 29, "column": 9}, "end_point": {"row": 29, "column": 90}}, {"id": 97, "type": "escape_sequence", "text": "\\n", "parent": 96, "children": [], "start_point": {"row": 29, "column": 87}, "end_point": {"row": 29, "column": 89}}, {"id": 98, "type": "identifier", "text": "sumapares", "parent": 95, "children": [], "start_point": {"row": 29, "column": 92}, "end_point": {"row": 29, "column": 101}}, {"id": 99, "type": "return_statement", "text": "return 0;", "parent": 3, "children": [100], "start_point": {"row": 32, "column": 1}, "end_point": {"row": 32, "column": 10}}, {"id": 100, "type": "number_literal", "text": "0", "parent": 99, "children": [], "start_point": {"row": 32, "column": 8}, "end_point": {"row": 32, "column": 9}}]}, "node_categories": {"declarations": {"functions": [3, 5], "variables": [8, 14, 20, 26, 32, 39], "classes": [], "imports": [0, 1], "modules": [], "enums": []}, "statements": {"expressions": [49, 54, 55, 60, 61, 62, 80, 91, 93], "assignments": [46, 68, 72, 76, 87], "loops": [], "conditionals": [6, 11, 17, 23, 29, 33, 36, 42, 47, 50, 52, 53, 56, 59, 63, 69, 71, 73, 75, 77, 79, 81, 85, 88, 92, 94, 98], "returns": [99], "exceptions": []}, "expressions": {"calls": [], "literals": [2, 13, 19, 25, 31, 38, 44, 58, 65, 67, 83, 90, 96, 100], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [{"node_id": 3, "universal_type": "function", "name": "main", "text_snippet": "int main (){\n\n\tint num1 = 0;\n\tint num2 = 1;\n\tint sum = 0;\n\tint i = 0;\n\tlong sumapares = 0;\n\tint segu"}, {"node_id": 5, "universal_type": "function", "name": "unknown", "text_snippet": "main ()"}], "class_declarations": [], "import_statements": [{"node_id": 0, "text": "#include <stdio.h>\n"}, {"node_id": 1, "text": "#include"}]}, "original_source_code": "#include <stdio.h>\n\n\nint main (){\n\n\tint num1 = 0;\n\tint num2 = 1;\n\tint sum = 0;\n\tint i = 0;\n\tlong sumapares = 0;\n\tint seguir = 1;\n\n\tdo{\n\t\tsum = num1 + num2;\n\t\tif (sum < 4000000){\n\t\t\tif (sum % 2 == 0){\n\t\t\t\tsumapares += sum;\n\t\t\t}\n\t\t\tnum1 = num2;\n\t\t\tnum2 = sum;\n\n\t\t\tprintf (\"%d\\n\", num2);\n\t\t}\n\t\telse{\n\t\t\tseguir = 0;\n\t\t}\n\n\t}while (seguir);\n\n\tprintf (\"la suma de los numeros pares de la secuencia de fibonacci entre 0 y 10 es: %d\\n\", sumapares);\n\n\n\treturn 0;\n}\n"}
80,009
c
#ifndef ITP_POLL_H #define ITP_POLL_H #include <sys/poll.h> #endif // ITP_POLL_H
19.5
4
(translation_unit) "fndef ITP_POLL_H\n#define ITP_POLL_H\n\n#include <sys/poll.h>\n\n#endif // ITP_POLL_H\n" (preproc_ifdef) "fndef ITP_POLL_H\n#define ITP_POLL_H\n\n#include <sys/poll.h>\n\n#endif /" (#ifndef) "fndef I" (identifier) "P_POLL_H\n#" (preproc_def) "efine ITP_POLL_H\n\n#" (#define) "efine I" (identifier) "P_POLL_H\n\n" (preproc_include) "nclude <sys/poll.h>\n\n#" (#include) "nclude <" (system_lib_string) "ys/poll.h>\n\n" (#endif) "ndif /" (comment) " ITP_POLL_H\n"
12
0
{"language": "c", "success": true, "metadata": {"lines": 4, "avg_line_length": 19.5, "nodes": 10, "errors": 0, "source_hash": "3460e24b936a2726f235854b23b5141af34ac804dc593b7e414039d723dedf28", "categorized_nodes": 8}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "fndef ITP_POLL_H\n#define ITP_POLL_H\n\n#include <sys/poll.h>\n\n#endif /", "parent": null, "children": [1, 2, 3, 6, 9], "start_point": {"row": 0, "column": 3}, "end_point": {"row": 5, "column": 6}}, {"id": 1, "type": "#ifndef", "text": "fndef I", "parent": 0, "children": [], "start_point": {"row": 0, "column": 3}, "end_point": {"row": 0, "column": 10}}, {"id": 2, "type": "identifier", "text": "P_POLL_H\n#", "parent": 0, "children": [], "start_point": {"row": 0, "column": 11}, "end_point": {"row": 0, "column": 21}}, {"id": 3, "type": "preproc_def", "text": "efine ITP_POLL_H\n\n#", "parent": 0, "children": [4, 5], "start_point": {"row": 1, "column": 0}, "end_point": {"row": 2, "column": 0}}, {"id": 4, "type": "#define", "text": "efine I", "parent": 3, "children": [], "start_point": {"row": 1, "column": 0}, "end_point": {"row": 1, "column": 7}}, {"id": 5, "type": "identifier", "text": "P_POLL_H\n\n", "parent": 3, "children": [], "start_point": {"row": 1, "column": 8}, "end_point": {"row": 1, "column": 18}}, {"id": 6, "type": "preproc_include", "text": "nclude <sys/poll.h>\n\n#", "parent": 0, "children": [7, 8], "start_point": {"row": 3, "column": 0}, "end_point": {"row": 4, "column": 0}}, {"id": 7, "type": "#include", "text": "nclude <", "parent": 6, "children": [], "start_point": {"row": 3, "column": 0}, "end_point": {"row": 3, "column": 8}}, {"id": 8, "type": "system_lib_string", "text": "ys/poll.h>\n\n", "parent": 6, "children": [], "start_point": {"row": 3, "column": 9}, "end_point": {"row": 3, "column": 21}}, {"id": 9, "type": "#endif", "text": "ndif /", "parent": 0, "children": [], "start_point": {"row": 5, "column": 0}, "end_point": {"row": 5, "column": 6}}]}, "node_categories": {"declarations": {"functions": [], "variables": [], "classes": [], "imports": [6, 7], "modules": [], "enums": []}, "statements": {"expressions": [], "assignments": [], "loops": [], "conditionals": [0, 1, 2, 5, 9], "returns": [], "exceptions": []}, "expressions": {"calls": [], "literals": [8], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [], "class_declarations": [], "import_statements": [{"node_id": 6, "text": "nclude <sys/poll.h>\n\n#"}, {"node_id": 7, "text": "nclude <"}]}, "original_source_code": "\ufeff#ifndef ITP_POLL_H\n#define ITP_POLL_H\n\n#include <sys/poll.h>\n\n#endif // ITP_POLL_H\n"}
80,010
c
#ifndef CMAINFRAME_H #define CMAINFRAME_H class CMainToolBar : public CToolBar { public: CMainToolBar(); virtual ~CMainToolBar(); DECLARE_DYNCREATE(CMainToolBar) virtual int Create(CWnd *parent); enum { NoState = 0, ViewFree, }; virtual void EnableState(int state, BOOL enabled); void UpdateButtonsForView(class CFolderView *view); void Reload(void); protected: //{{AFX_MSG(CMainToolBar) afx_msg void OnIgnoreUpdate(CCmdUI *ui); //}}AFX_MSG DECLARE_MESSAGE_MAP() }; class CMainFrame : public CFrameWnd { public: CMainFrame(); virtual ~CMainFrame(); DECLARE_DYNCREATE(CMainFrame) BOOL PreCreateWindow(CREATESTRUCT& cs); virtual void RecalcLayout(BOOL bNotify); protected: //{{AFX_MSG(CMainFrame) afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct); afx_msg void OnDestroy(void); afx_msg void OnSysCommand(UINT nid, LPARAM lparam); afx_msg void OnClose(); afx_msg void OnActivateApp(BOOL bActive, HTASK hTask); afx_msg BOOL OnEraseBkgnd(CDC* pDC); afx_msg void OnWindowPosChanged(WINDOWPOS *wp); afx_msg void OnShowWindow(BOOL bShow, UINT status); //}}AFX_MSG afx_msg void OnIgnoreUpdate(CCmdUI *ui); DECLARE_MESSAGE_MAP() public: CMainToolBar m_toolbar; }; #endif
21.21
57
(translation_unit) "#ifndef CMAINFRAME_H \n#define CMAINFRAME_H \n \nclass CMainToolBar : public CToolBar { \npublic: \n CMainToolBar(); \n virtual ~CMainToolBar(); \n DECLARE_DYNCREATE(CMainToolBar) \n \n virtual int Create(CWnd *parent); \n \n enum { \n NoState = 0, \n ViewFree, \n }; \n \n virtual void EnableState(int state, BOOL enabled); \n void UpdateButtonsForView(class CFolderView *view); \n \n void Reload(void); \n \nprotected: \n //{{AFX_MSG(CMainToolBar) \n afx_msg void OnIgnoreUpdate(CCmdUI *ui); \n //}}AFX_MSG \n DECLARE_MESSAGE_MAP() \n \n}; \n \nclass CMainFrame : public CFrameWnd { \npublic: \n CMainFrame(); \n virtual ~CMainFrame(); \n DECLARE_DYNCREATE(CMainFrame) \n BOOL PreCreateWindow(CREATESTRUCT& cs); \n \n virtual void RecalcLayout(BOOL bNotify); \n \nprotected: \n //{{AFX_MSG(CMainFrame) \n afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct); \n afx_msg void OnDestroy(void); \n afx_msg void OnSysCommand(UINT nid, LPARAM lparam); \n afx_msg void OnClose(); \n afx_msg void OnActivateApp(BOOL bActive, HTASK hTask); \n afx_msg BOOL OnEraseBkgnd(CDC* pDC); \n afx_msg void OnWindowPosChanged(WINDOWPOS *wp); \n afx_msg void OnShowWindow(BOOL bShow, UINT status); \n //}}AFX_MSG \n afx_msg void OnIgnoreUpdate(CCmdUI *ui); \n DECLARE_MESSAGE_MAP() \n \npublic: \n CMainToolBar m_toolbar; \n}; \n \n#endif \n \n" (ERROR) "#ifndef CMAINFRAME_H \n#define CMAINFRAME_H \n \nclass CMainToolBar : public CToolBar { \npublic: \n CMainToolBar(); \n virtual ~CMainToolBar(); \n DECLARE_DYNCREATE(CMainToolBar) \n \n virtual int Create(CWnd *parent); \n \n enum { \n NoState = 0, \n ViewFree, \n }; \n \n virtual void EnableState(int state, BOOL enabled); \n void UpdateButtonsForView(class CFolderView *view); \n \n void Reload(void); \n \nprotected: \n //{{AFX_MSG(CMainToolBar) \n afx_msg void OnIgnoreUpdate(CCmdUI *ui); \n //}}AFX_MSG \n DECLARE_MESSAGE_MAP() \n \n}; \n \nclass CMainFrame : public CFrameWnd { \npublic: \n CMainFrame(); \n virtual ~CMainFrame(); \n DECLARE_DYNCREATE(CMainFrame) \n BOOL PreCreateWindow(CREATESTRUCT& cs); \n \n virtual void RecalcLayout(BOOL bNotify); \n \nprotected: \n //{{AFX_MSG(CMainFrame) \n afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct); \n afx_msg void OnDestroy(void); \n afx_msg void OnSysCommand(UINT nid, LPARAM lparam); \n afx_msg void OnClose(); \n afx_msg void OnActivateApp(BOOL bActive, HTASK hTask); \n afx_msg BOOL OnEraseBkgnd(CDC* pDC); \n afx_msg void OnWindowPosChanged(WINDOWPOS *wp); \n afx_msg void OnShowWindow(BOOL bShow, UINT status); \n //}}AFX_MSG \n afx_msg void OnIgnoreUpdate(CCmdUI *ui); \n DECLARE_MESSAGE_MAP() \n \npublic: \n CMainToolBar m_toolbar; \n}; \n \n#endif \n" (#ifndef) "#ifndef" (identifier) "CMAINFRAME_H" (preproc_def) "#define CMAINFRAME_H \n" (#define) "#define" (identifier) "CMAINFRAME_H" (type_identifier) "class" (identifier) "CMainToolBar" (ERROR) ": public CToolBar" (:) ":" (identifier) "public" (identifier) "CToolBar" ({) "{" (labeled_statement) "public: \n CMainToolBar();" (statement_identifier) "public" (:) ":" (expression_statement) "CMainToolBar();" (call_expression) "CMainToolBar()" (identifier) "CMainToolBar" (argument_list) "()" (() "(" ()) ")" (;) ";" (declaration) "virtual ~CMainToolBar();" (type_identifier) "virtual" (ERROR) "~" (~) "~" (function_declarator) "CMainToolBar()" (identifier) "CMainToolBar" (parameter_list) "()" (() "(" ()) ")" (;) ";" (declaration) "DECLARE_DYNCREATE(CMainToolBar) \n \n virtual" (macro_type_specifier) "DECLARE_DYNCREATE(CMainToolBar)" (identifier) "DECLARE_DYNCREATE" (() "(" (type_descriptor) "CMainToolBar" (type_identifier) "CMainToolBar" ()) ")" (identifier) "virtual" (;) "" (declaration) "int Create(CWnd *parent);" (primitive_type) "int" (function_declarator) "Create(CWnd *parent)" (identifier) "Create" (parameter_list) "(CWnd *parent)" (() "(" (parameter_declaration) "CWnd *parent" (type_identifier) "CWnd" (pointer_declarator) "*parent" (*) "*" (identifier) "parent" ()) ")" (;) ";" (enum_specifier) "enum { \n NoState = 0, \n ViewFree, \n }" (enum) "enum" (enumerator_list) "{ \n NoState = 0, \n ViewFree, \n }" ({) "{" (enumerator) "NoState = 0" (identifier) "NoState" (=) "=" (number_literal) "0" (,) "," (enumerator) "ViewFree" (identifier) "ViewFree" (,) "," (}) "}" (;) ";" (declaration) "virtual void EnableState(int state, BOOL enabled);" (type_identifier) "virtual" (ERROR) "void" (identifier) "void" (function_declarator) "EnableState(int state, BOOL enabled)" (identifier) "EnableState" (parameter_list) "(int state, BOOL enabled)" (() "(" (parameter_declaration) "int state" (primitive_type) "int" (identifier) "state" (,) "," (parameter_declaration) "BOOL enabled" (type_identifier) "BOOL" (identifier) "enabled" ()) ")" (;) ";" (declaration) "void UpdateButtonsForView(class CFolderView *view);" (primitive_type) "void" (function_declarator) "UpdateButtonsForView(class CFolderView *view)" (identifier) "UpdateButtonsForView" (parameter_list) "(class CFolderView *view)" (() "(" (parameter_declaration) "class CFolderView *view" (type_identifier) "class" (ERROR) "CFolderView" (identifier) "CFolderView" (pointer_declarator) "*view" (*) "*" (identifier) "view" ()) ")" (;) ";" (declaration) "void Reload(void);" (primitive_type) "void" (function_declarator) "Reload(void)" (identifier) "Reload" (parameter_list) "(void)" (() "(" (parameter_declaration) "void" (primitive_type) "void" ()) ")" (;) ";" (labeled_statement) "protected: \n //{{AFX_MSG(CMainToolBar) \n afx_msg void OnIgnoreUpdate(CCmdUI *ui);" (statement_identifier) "protected" (:) ":" (comment) "//{{AFX_MSG(CMainToolBar) " (declaration) "afx_msg void OnIgnoreUpdate(CCmdUI *ui);" (type_identifier) "afx_msg" (ERROR) "void" (identifier) "void" (function_declarator) "OnIgnoreUpdate(CCmdUI *ui)" (identifier) "OnIgnoreUpdate" (parameter_list) "(CCmdUI *ui)" (() "(" (parameter_declaration) "CCmdUI *ui" (type_identifier) "CCmdUI" (pointer_declarator) "*ui" (*) "*" (identifier) "ui" ()) ")" (;) ";" (comment) "//}}AFX_MSG " (expression_statement) "DECLARE_MESSAGE_MAP() \n \n};" (call_expression) "DECLARE_MESSAGE_MAP()" (identifier) "DECLARE_MESSAGE_MAP" (argument_list) "()" (() "(" ()) ")" (ERROR) "}" (}) "}" (;) ";" (function_definition) "class CMainFrame : public CFrameWnd { \npublic: \n CMainFrame(); \n virtual ~CMainFrame(); \n DECLARE_DYNCREATE(CMainFrame) \n BOOL PreCreateWindow(CREATESTRUCT& cs); \n \n virtual void RecalcLayout(BOOL bNotify); \n \nprotected: \n //{{AFX_MSG(CMainFrame) \n afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct); \n afx_msg void OnDestroy(void); \n afx_msg void OnSysCommand(UINT nid, LPARAM lparam); \n afx_msg void OnClose(); \n afx_msg void OnActivateApp(BOOL bActive, HTASK hTask); \n afx_msg BOOL OnEraseBkgnd(CDC* pDC); \n afx_msg void OnWindowPosChanged(WINDOWPOS *wp); \n afx_msg void OnShowWindow(BOOL bShow, UINT status); \n //}}AFX_MSG \n afx_msg void OnIgnoreUpdate(CCmdUI *ui); \n DECLARE_MESSAGE_MAP() \n \npublic: \n CMainToolBar m_toolbar; \n}" (type_identifier) "class" (identifier) "CMainFrame" (ERROR) ": public CFrameWnd" (:) ":" (identifier) "public" (identifier) "CFrameWnd" (compound_statement) "{ \npublic: \n CMainFrame(); \n virtual ~CMainFrame(); \n DECLARE_DYNCREATE(CMainFrame) \n BOOL PreCreateWindow(CREATESTRUCT& cs); \n \n virtual void RecalcLayout(BOOL bNotify); \n \nprotected: \n //{{AFX_MSG(CMainFrame) \n afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct); \n afx_msg void OnDestroy(void); \n afx_msg void OnSysCommand(UINT nid, LPARAM lparam); \n afx_msg void OnClose(); \n afx_msg void OnActivateApp(BOOL bActive, HTASK hTask); \n afx_msg BOOL OnEraseBkgnd(CDC* pDC); \n afx_msg void OnWindowPosChanged(WINDOWPOS *wp); \n afx_msg void OnShowWindow(BOOL bShow, UINT status); \n //}}AFX_MSG \n afx_msg void OnIgnoreUpdate(CCmdUI *ui); \n DECLARE_MESSAGE_MAP() \n \npublic: \n CMainToolBar m_toolbar; \n}" ({) "{" (labeled_statement) "public: \n CMainFrame();" (statement_identifier) "public" (:) ":" (expression_statement) "CMainFrame();" (call_expression) "CMainFrame()" (identifier) "CMainFrame" (argument_list) "()" (() "(" ()) ")" (;) ";" (declaration) "virtual ~CMainFrame();" (type_identifier) "virtual" (ERROR) "~" (~) "~" (function_declarator) "CMainFrame()" (identifier) "CMainFrame" (parameter_list) "()" (() "(" ()) ")" (;) ";" (declaration) "DECLARE_DYNCREATE(CMainFrame) \n BOOL" (macro_type_specifier) "DECLARE_DYNCREATE(CMainFrame)" (identifier) "DECLARE_DYNCREATE" (() "(" (type_descriptor) "CMainFrame" (type_identifier) "CMainFrame" ()) ")" (identifier) "BOOL" (;) "" (expression_statement) "PreCreateWindow(CREATESTRUCT& cs);" (call_expression) "PreCreateWindow(CREATESTRUCT& cs)" (identifier) "PreCreateWindow" (argument_list) "(CREATESTRUCT& cs)" (() "(" (binary_expression) "CREATESTRUCT& cs" (identifier) "CREATESTRUCT" (&) "&" (identifier) "cs" ()) ")" (;) ";" (declaration) "virtual void RecalcLayout(BOOL bNotify);" (type_identifier) "virtual" (ERROR) "void" (identifier) "void" (function_declarator) "RecalcLayout(BOOL bNotify)" (identifier) "RecalcLayout" (parameter_list) "(BOOL bNotify)" (() "(" (parameter_declaration) "BOOL bNotify" (type_identifier) "BOOL" (identifier) "bNotify" ()) ")" (;) ";" (labeled_statement) "protected: \n //{{AFX_MSG(CMainFrame) \n afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);" (statement_identifier) "protected" (:) ":" (comment) "//{{AFX_MSG(CMainFrame) " (declaration) "afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);" (type_identifier) "afx_msg" (ERROR) "int" (identifier) "int" (function_declarator) "OnCreate(LPCREATESTRUCT lpCreateStruct)" (identifier) "OnCreate" (parameter_list) "(LPCREATESTRUCT lpCreateStruct)" (() "(" (parameter_declaration) "LPCREATESTRUCT lpCreateStruct" (type_identifier) "LPCREATESTRUCT" (identifier) "lpCreateStruct" ()) ")" (;) ";" (declaration) "afx_msg void OnDestroy(void);" (type_identifier) "afx_msg" (ERROR) "void" (identifier) "void" (function_declarator) "OnDestroy(void)" (identifier) "OnDestroy" (parameter_list) "(void)" (() "(" (parameter_declaration) "void" (primitive_type) "void" ()) ")" (;) ";" (declaration) "afx_msg void OnSysCommand(UINT nid, LPARAM lparam);" (type_identifier) "afx_msg" (ERROR) "void" (identifier) "void" (function_declarator) "OnSysCommand(UINT nid, LPARAM lparam)" (identifier) "OnSysCommand" (parameter_list) "(UINT nid, LPARAM lparam)" (() "(" (parameter_declaration) "UINT nid" (type_identifier) "UINT" (identifier) "nid" (,) "," (parameter_declaration) "LPARAM lparam" (type_identifier) "LPARAM" (identifier) "lparam" ()) ")" (;) ";" (declaration) "afx_msg void OnClose();" (type_identifier) "afx_msg" (ERROR) "void" (identifier) "void" (function_declarator) "OnClose()" (identifier) "OnClose" (parameter_list) "()" (() "(" ()) ")" (;) ";" (declaration) "afx_msg void OnActivateApp(BOOL bActive, HTASK hTask);" (type_identifier) "afx_msg" (ERROR) "void" (identifier) "void" (function_declarator) "OnActivateApp(BOOL bActive, HTASK hTask)" (identifier) "OnActivateApp" (parameter_list) "(BOOL bActive, HTASK hTask)" (() "(" (parameter_declaration) "BOOL bActive" (type_identifier) "BOOL" (identifier) "bActive" (,) "," (parameter_declaration) "HTASK hTask" (type_identifier) "HTASK" (identifier) "hTask" ()) ")" (;) ";" (declaration) "afx_msg BOOL OnEraseBkgnd(CDC* pDC);" (type_identifier) "afx_msg" (ERROR) "BOOL" (identifier) "BOOL" (function_declarator) "OnEraseBkgnd(CDC* pDC)" (identifier) "OnEraseBkgnd" (parameter_list) "(CDC* pDC)" (() "(" (parameter_declaration) "CDC* pDC" (type_identifier) "CDC" (pointer_declarator) "* pDC" (*) "*" (identifier) "pDC" ()) ")" (;) ";" (declaration) "afx_msg void OnWindowPosChanged(WINDOWPOS *wp);" (type_identifier) "afx_msg" (ERROR) "void" (identifier) "void" (function_declarator) "OnWindowPosChanged(WINDOWPOS *wp)" (identifier) "OnWindowPosChanged" (parameter_list) "(WINDOWPOS *wp)" (() "(" (parameter_declaration) "WINDOWPOS *wp" (type_identifier) "WINDOWPOS" (pointer_declarator) "*wp" (*) "*" (identifier) "wp" ()) ")" (;) ";" (declaration) "afx_msg void OnShowWindow(BOOL bShow, UINT status);" (type_identifier) "afx_msg" (ERROR) "void" (identifier) "void" (function_declarator) "OnShowWindow(BOOL bShow, UINT status)" (identifier) "OnShowWindow" (parameter_list) "(BOOL bShow, UINT status)" (() "(" (parameter_declaration) "BOOL bShow" (type_identifier) "BOOL" (identifier) "bShow" (,) "," (parameter_declaration) "UINT status" (type_identifier) "UINT" (identifier) "status" ()) ")" (;) ";" (comment) "//}}AFX_MSG " (declaration) "afx_msg void OnIgnoreUpdate(CCmdUI *ui);" (type_identifier) "afx_msg" (ERROR) "void" (identifier) "void" (function_declarator) "OnIgnoreUpdate(CCmdUI *ui)" (identifier) "OnIgnoreUpdate" (parameter_list) "(CCmdUI *ui)" (() "(" (parameter_declaration) "CCmdUI *ui" (type_identifier) "CCmdUI" (pointer_declarator) "*ui" (*) "*" (identifier) "ui" ()) ")" (;) ";" (expression_statement) "DECLARE_MESSAGE_MAP()" (call_expression) "DECLARE_MESSAGE_MAP()" (identifier) "DECLARE_MESSAGE_MAP" (argument_list) "()" (() "(" ()) ")" (;) "" (labeled_statement) "public: \n CMainToolBar m_toolbar;" (statement_identifier) "public" (:) ":" (declaration) "CMainToolBar m_toolbar;" (type_identifier) "CMainToolBar" (identifier) "m_toolbar" (;) ";" (}) "}" (expression_statement) ";" (;) ";" (preproc_call) "#endif \n" (preproc_directive) "#endif"
358
19
{"language": "c", "success": true, "metadata": {"lines": 57, "avg_line_length": 21.21, "nodes": 240, "errors": 0, "source_hash": "0c2214150bb9dd003a9c8a829f0a1e04ca126ad610c2fa0be5a0b6b967014d92", "categorized_nodes": 169}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "ERROR", "text": "#ifndef CMAINFRAME_H\r\n#define CMAINFRAME_H\r\n\r\nclass CMainToolBar : public CToolBar {\r\npublic:\r\n\tCMainToolBar();\r\n\tvirtual ~CMainToolBar();\r\n\tDECLARE_DYNCREATE(CMainToolBar)\r\n\r\n\tvirtual int Create(CWnd *parent);\r\n\r\n\tenum {\r\n\t\tNoState = 0,\r\n\t\tViewFree,\r\n\t};\r\n\r\n\tvirtual void EnableState(int state, BOOL enabled);\r\n\tvoid UpdateButtonsForView(class CFolderView *view);\r\n\r\n\tvoid Reload(void);\r\n\r\nprotected:\r\n\t//{{AFX_MSG(CMainToolBar)\r\n\tafx_msg void OnIgnoreUpdate(CCmdUI *ui);\r\n\t//}}AFX_MSG\r\n\tDECLARE_MESSAGE_MAP()\r\n\r\n};\r\n\r\nclass CMainFrame : public CFrameWnd {\r\npublic:\r\n\tCMainFrame();\r\n\tvirtual ~CMainFrame();\r\n\tDECLARE_DYNCREATE(CMainFrame)\r\n\tBOOL PreCreateWindow(CREATESTRUCT& cs);\r\n\r\n\tvirtual void RecalcLayout(BOOL bNotify);\r\n\r\nprotected:\r\n\t//{{AFX_MSG(CMainFrame)\r\n\tafx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);\r\n\tafx_msg void OnDestroy(void);\r\n\tafx_msg void OnSysCommand(UINT nid, LPARAM lparam);\r\n\tafx_msg void OnClose();\r\n\tafx_msg void OnActivateApp(BOOL bActive, HTASK hTask);\r\n\tafx_msg BOOL OnEraseBkgnd(CDC* pDC);\r\n\tafx_msg void OnWindowPosChanged(WINDOWPOS *wp);\r\n\tafx_msg void OnShowWindow(BOOL bShow, UINT status);\r\n\t//}}AFX_MSG\r\n\tafx_msg void OnIgnoreUpdate(CCmdUI *ui);\r\n\tDECLARE_MESSAGE_MAP()\r\n\r\npublic:\r\n\tCMainToolBar m_toolbar;\r\n};\r\n\r\n#endif\r\n", "parent": null, "children": [1, 2, 3, 6, 7, 9, 13, 20, 26, 36, 45, 58, 69, 76, 92, 238], "start_point": {"row": 1, "column": 0}, "end_point": {"row": 58, "column": 0}}, {"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": "CMAINFRAME_H", "parent": 0, "children": [], "start_point": {"row": 1, "column": 8}, "end_point": {"row": 1, "column": 20}}, {"id": 3, "type": "preproc_def", "text": "#define CMAINFRAME_H\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": "CMAINFRAME_H", "parent": 3, "children": [], "start_point": {"row": 2, "column": 8}, "end_point": {"row": 2, "column": 20}}, {"id": 6, "type": "identifier", "text": "CMainToolBar", "parent": 0, "children": [], "start_point": {"row": 4, "column": 6}, "end_point": {"row": 4, "column": 18}}, {"id": 7, "type": "ERROR", "text": ": public CToolBar", "parent": 0, "children": [8], "start_point": {"row": 4, "column": 19}, "end_point": {"row": 4, "column": 36}}, {"id": 8, "type": "identifier", "text": "CToolBar", "parent": 7, "children": [], "start_point": {"row": 4, "column": 28}, "end_point": {"row": 4, "column": 36}}, {"id": 9, "type": "labeled_statement", "text": "public:\r\n\tCMainToolBar();", "parent": 0, "children": [], "start_point": {"row": 5, "column": 0}, "end_point": {"row": 6, "column": 16}}, {"id": 10, "type": "call_expression", "text": "CMainToolBar()", "parent": 9, "children": [11, 12], "start_point": {"row": 6, "column": 1}, "end_point": {"row": 6, "column": 15}}, {"id": 11, "type": "identifier", "text": "CMainToolBar", "parent": 10, "children": [], "start_point": {"row": 6, "column": 1}, "end_point": {"row": 6, "column": 13}}, {"id": 12, "type": "argument_list", "text": "()", "parent": 10, "children": [], "start_point": {"row": 6, "column": 13}, "end_point": {"row": 6, "column": 15}}, {"id": 13, "type": "declaration", "text": "virtual ~CMainToolBar();", "parent": 0, "children": [14, 15, 17], "start_point": {"row": 7, "column": 1}, "end_point": {"row": 7, "column": 25}}, {"id": 14, "type": "type_identifier", "text": "virtual", "parent": 13, "children": [], "start_point": {"row": 7, "column": 1}, "end_point": {"row": 7, "column": 8}}, {"id": 15, "type": "ERROR", "text": "~", "parent": 13, "children": [16], "start_point": {"row": 7, "column": 9}, "end_point": {"row": 7, "column": 10}}, {"id": 16, "type": "~", "text": "~", "parent": 15, "children": [], "start_point": {"row": 7, "column": 9}, "end_point": {"row": 7, "column": 10}}, {"id": 17, "type": "function_declarator", "text": "CMainToolBar()", "parent": 13, "children": [18, 19], "start_point": {"row": 7, "column": 10}, "end_point": {"row": 7, "column": 24}}, {"id": 18, "type": "identifier", "text": "CMainToolBar", "parent": 17, "children": [], "start_point": {"row": 7, "column": 10}, "end_point": {"row": 7, "column": 22}}, {"id": 19, "type": "parameter_list", "text": "()", "parent": 17, "children": [], "start_point": {"row": 7, "column": 22}, "end_point": {"row": 7, "column": 24}}, {"id": 20, "type": "declaration", "text": "DECLARE_DYNCREATE(CMainToolBar)\r\n\r\n\tvirtual", "parent": 0, "children": [21, 25], "start_point": {"row": 8, "column": 1}, "end_point": {"row": 10, "column": 8}}, {"id": 21, "type": "macro_type_specifier", "text": "DECLARE_DYNCREATE(CMainToolBar)", "parent": 20, "children": [22, 23], "start_point": {"row": 8, "column": 1}, "end_point": {"row": 8, "column": 32}}, {"id": 22, "type": "identifier", "text": "DECLARE_DYNCREATE", "parent": 21, "children": [], "start_point": {"row": 8, "column": 1}, "end_point": {"row": 8, "column": 18}}, {"id": 23, "type": "type_descriptor", "text": "CMainToolBar", "parent": 21, "children": [24], "start_point": {"row": 8, "column": 19}, "end_point": {"row": 8, "column": 31}}, {"id": 24, "type": "type_identifier", "text": "CMainToolBar", "parent": 23, "children": [], "start_point": {"row": 8, "column": 19}, "end_point": {"row": 8, "column": 31}}, {"id": 25, "type": "identifier", "text": "virtual", "parent": 20, "children": [], "start_point": {"row": 10, "column": 1}, "end_point": {"row": 10, "column": 8}}, {"id": 26, "type": "declaration", "text": "int Create(CWnd *parent);", "parent": 0, "children": [27, 28], "start_point": {"row": 10, "column": 9}, "end_point": {"row": 10, "column": 34}}, {"id": 27, "type": "primitive_type", "text": "int", "parent": 26, "children": [], "start_point": {"row": 10, "column": 9}, "end_point": {"row": 10, "column": 12}}, {"id": 28, "type": "function_declarator", "text": "Create(CWnd *parent)", "parent": 26, "children": [29, 30], "start_point": {"row": 10, "column": 13}, "end_point": {"row": 10, "column": 33}}, {"id": 29, "type": "identifier", "text": "Create", "parent": 28, "children": [], "start_point": {"row": 10, "column": 13}, "end_point": {"row": 10, "column": 19}}, {"id": 30, "type": "parameter_list", "text": "(CWnd *parent)", "parent": 28, "children": [31], "start_point": {"row": 10, "column": 19}, "end_point": {"row": 10, "column": 33}}, {"id": 31, "type": "parameter_declaration", "text": "CWnd *parent", "parent": 30, "children": [32, 33], "start_point": {"row": 10, "column": 20}, "end_point": {"row": 10, "column": 32}}, {"id": 32, "type": "type_identifier", "text": "CWnd", "parent": 31, "children": [], "start_point": {"row": 10, "column": 20}, "end_point": {"row": 10, "column": 24}}, {"id": 33, "type": "pointer_declarator", "text": "*parent", "parent": 31, "children": [34, 35], "start_point": {"row": 10, "column": 25}, "end_point": {"row": 10, "column": 32}}, {"id": 34, "type": "*", "text": "*", "parent": 33, "children": [], "start_point": {"row": 10, "column": 25}, "end_point": {"row": 10, "column": 26}}, {"id": 35, "type": "identifier", "text": "parent", "parent": 33, "children": [], "start_point": {"row": 10, "column": 26}, "end_point": {"row": 10, "column": 32}}, {"id": 36, "type": "enum_specifier", "text": "enum {\r\n\t\tNoState = 0,\r\n\t\tViewFree,\r\n\t}", "parent": 0, "children": [37, 38], "start_point": {"row": 12, "column": 1}, "end_point": {"row": 15, "column": 2}}, {"id": 37, "type": "enum", "text": "enum", "parent": 36, "children": [], "start_point": {"row": 12, "column": 1}, "end_point": {"row": 12, "column": 5}}, {"id": 38, "type": "enumerator_list", "text": "{\r\n\t\tNoState = 0,\r\n\t\tViewFree,\r\n\t}", "parent": 36, "children": [39, 43], "start_point": {"row": 12, "column": 6}, "end_point": {"row": 15, "column": 2}}, {"id": 39, "type": "enumerator", "text": "NoState = 0", "parent": 38, "children": [40, 41, 42], "start_point": {"row": 13, "column": 2}, "end_point": {"row": 13, "column": 13}}, {"id": 40, "type": "identifier", "text": "NoState", "parent": 39, "children": [], "start_point": {"row": 13, "column": 2}, "end_point": {"row": 13, "column": 9}}, {"id": 41, "type": "=", "text": "=", "parent": 39, "children": [], "start_point": {"row": 13, "column": 10}, "end_point": {"row": 13, "column": 11}}, {"id": 42, "type": "number_literal", "text": "0", "parent": 39, "children": [], "start_point": {"row": 13, "column": 12}, "end_point": {"row": 13, "column": 13}}, {"id": 43, "type": "enumerator", "text": "ViewFree", "parent": 38, "children": [44], "start_point": {"row": 14, "column": 2}, "end_point": {"row": 14, "column": 10}}, {"id": 44, "type": "identifier", "text": "ViewFree", "parent": 43, "children": [], "start_point": {"row": 14, "column": 2}, "end_point": {"row": 14, "column": 10}}, {"id": 45, "type": "declaration", "text": "virtual void EnableState(int state, BOOL enabled);", "parent": 0, "children": [46, 47, 49], "start_point": {"row": 17, "column": 1}, "end_point": {"row": 17, "column": 51}}, {"id": 46, "type": "type_identifier", "text": "virtual", "parent": 45, "children": [], "start_point": {"row": 17, "column": 1}, "end_point": {"row": 17, "column": 8}}, {"id": 47, "type": "ERROR", "text": "void", "parent": 45, "children": [48], "start_point": {"row": 17, "column": 9}, "end_point": {"row": 17, "column": 13}}, {"id": 48, "type": "identifier", "text": "void", "parent": 47, "children": [], "start_point": {"row": 17, "column": 9}, "end_point": {"row": 17, "column": 13}}, {"id": 49, "type": "function_declarator", "text": "EnableState(int state, BOOL enabled)", "parent": 45, "children": [50, 51], "start_point": {"row": 17, "column": 14}, "end_point": {"row": 17, "column": 50}}, {"id": 50, "type": "identifier", "text": "EnableState", "parent": 49, "children": [], "start_point": {"row": 17, "column": 14}, "end_point": {"row": 17, "column": 25}}, {"id": 51, "type": "parameter_list", "text": "(int state, BOOL enabled)", "parent": 49, "children": [52, 55], "start_point": {"row": 17, "column": 25}, "end_point": {"row": 17, "column": 50}}, {"id": 52, "type": "parameter_declaration", "text": "int state", "parent": 51, "children": [53, 54], "start_point": {"row": 17, "column": 26}, "end_point": {"row": 17, "column": 35}}, {"id": 53, "type": "primitive_type", "text": "int", "parent": 52, "children": [], "start_point": {"row": 17, "column": 26}, "end_point": {"row": 17, "column": 29}}, {"id": 54, "type": "identifier", "text": "state", "parent": 52, "children": [], "start_point": {"row": 17, "column": 30}, "end_point": {"row": 17, "column": 35}}, {"id": 55, "type": "parameter_declaration", "text": "BOOL enabled", "parent": 51, "children": [56, 57], "start_point": {"row": 17, "column": 37}, "end_point": {"row": 17, "column": 49}}, {"id": 56, "type": "type_identifier", "text": "BOOL", "parent": 55, "children": [], "start_point": {"row": 17, "column": 37}, "end_point": {"row": 17, "column": 41}}, {"id": 57, "type": "identifier", "text": "enabled", "parent": 55, "children": [], "start_point": {"row": 17, "column": 42}, "end_point": {"row": 17, "column": 49}}, {"id": 58, "type": "declaration", "text": "void UpdateButtonsForView(class CFolderView *view);", "parent": 0, "children": [59, 60], "start_point": {"row": 18, "column": 1}, "end_point": {"row": 18, "column": 52}}, {"id": 59, "type": "primitive_type", "text": "void", "parent": 58, "children": [], "start_point": {"row": 18, "column": 1}, "end_point": {"row": 18, "column": 5}}, {"id": 60, "type": "function_declarator", "text": "UpdateButtonsForView(class CFolderView *view)", "parent": 58, "children": [61, 62], "start_point": {"row": 18, "column": 6}, "end_point": {"row": 18, "column": 51}}, {"id": 61, "type": "identifier", "text": "UpdateButtonsForView", "parent": 60, "children": [], "start_point": {"row": 18, "column": 6}, "end_point": {"row": 18, "column": 26}}, {"id": 62, "type": "parameter_list", "text": "(class CFolderView *view)", "parent": 60, "children": [63], "start_point": {"row": 18, "column": 26}, "end_point": {"row": 18, "column": 51}}, {"id": 63, "type": "parameter_declaration", "text": "class CFolderView *view", "parent": 62, "children": [64, 66], "start_point": {"row": 18, "column": 27}, "end_point": {"row": 18, "column": 50}}, {"id": 64, "type": "ERROR", "text": "CFolderView", "parent": 63, "children": [65], "start_point": {"row": 18, "column": 33}, "end_point": {"row": 18, "column": 44}}, {"id": 65, "type": "identifier", "text": "CFolderView", "parent": 64, "children": [], "start_point": {"row": 18, "column": 33}, "end_point": {"row": 18, "column": 44}}, {"id": 66, "type": "pointer_declarator", "text": "*view", "parent": 63, "children": [67, 68], "start_point": {"row": 18, "column": 45}, "end_point": {"row": 18, "column": 50}}, {"id": 67, "type": "*", "text": "*", "parent": 66, "children": [], "start_point": {"row": 18, "column": 45}, "end_point": {"row": 18, "column": 46}}, {"id": 68, "type": "identifier", "text": "view", "parent": 66, "children": [], "start_point": {"row": 18, "column": 46}, "end_point": {"row": 18, "column": 50}}, {"id": 69, "type": "declaration", "text": "void Reload(void);", "parent": 0, "children": [70, 71], "start_point": {"row": 20, "column": 1}, "end_point": {"row": 20, "column": 19}}, {"id": 70, "type": "primitive_type", "text": "void", "parent": 69, "children": [], "start_point": {"row": 20, "column": 1}, "end_point": {"row": 20, "column": 5}}, {"id": 71, "type": "function_declarator", "text": "Reload(void)", "parent": 69, "children": [72, 73], "start_point": {"row": 20, "column": 6}, "end_point": {"row": 20, "column": 18}}, {"id": 72, "type": "identifier", "text": "Reload", "parent": 71, "children": [], "start_point": {"row": 20, "column": 6}, "end_point": {"row": 20, "column": 12}}, {"id": 73, "type": "parameter_list", "text": "(void)", "parent": 71, "children": [74], "start_point": {"row": 20, "column": 12}, "end_point": {"row": 20, "column": 18}}, {"id": 74, "type": "parameter_declaration", "text": "void", "parent": 73, "children": [75], "start_point": {"row": 20, "column": 13}, "end_point": {"row": 20, "column": 17}}, {"id": 75, "type": "primitive_type", "text": "void", "parent": 74, "children": [], "start_point": {"row": 20, "column": 13}, "end_point": {"row": 20, "column": 17}}, {"id": 76, "type": "labeled_statement", "text": "protected:\r\n\t//{{AFX_MSG(CMainToolBar)\r\n\tafx_msg void OnIgnoreUpdate(CCmdUI *ui);", "parent": 0, "children": [77], "start_point": {"row": 22, "column": 0}, "end_point": {"row": 24, "column": 41}}, {"id": 77, "type": "declaration", "text": "afx_msg void OnIgnoreUpdate(CCmdUI *ui);", "parent": 76, "children": [78, 79, 81], "start_point": {"row": 24, "column": 1}, "end_point": {"row": 24, "column": 41}}, {"id": 78, "type": "type_identifier", "text": "afx_msg", "parent": 77, "children": [], "start_point": {"row": 24, "column": 1}, "end_point": {"row": 24, "column": 8}}, {"id": 79, "type": "ERROR", "text": "void", "parent": 77, "children": [80], "start_point": {"row": 24, "column": 9}, "end_point": {"row": 24, "column": 13}}, {"id": 80, "type": "identifier", "text": "void", "parent": 79, "children": [], "start_point": {"row": 24, "column": 9}, "end_point": {"row": 24, "column": 13}}, {"id": 81, "type": "function_declarator", "text": "OnIgnoreUpdate(CCmdUI *ui)", "parent": 77, "children": [82, 83], "start_point": {"row": 24, "column": 14}, "end_point": {"row": 24, "column": 40}}, {"id": 82, "type": "identifier", "text": "OnIgnoreUpdate", "parent": 81, "children": [], "start_point": {"row": 24, "column": 14}, "end_point": {"row": 24, "column": 28}}, {"id": 83, "type": "parameter_list", "text": "(CCmdUI *ui)", "parent": 81, "children": [84], "start_point": {"row": 24, "column": 28}, "end_point": {"row": 24, "column": 40}}, {"id": 84, "type": "parameter_declaration", "text": "CCmdUI *ui", "parent": 83, "children": [85, 86], "start_point": {"row": 24, "column": 29}, "end_point": {"row": 24, "column": 39}}, {"id": 85, "type": "type_identifier", "text": "CCmdUI", "parent": 84, "children": [], "start_point": {"row": 24, "column": 29}, "end_point": {"row": 24, "column": 35}}, {"id": 86, "type": "pointer_declarator", "text": "*ui", "parent": 84, "children": [87, 88], "start_point": {"row": 24, "column": 36}, "end_point": {"row": 24, "column": 39}}, {"id": 87, "type": "*", "text": "*", "parent": 86, "children": [], "start_point": {"row": 24, "column": 36}, "end_point": {"row": 24, "column": 37}}, {"id": 88, "type": "identifier", "text": "ui", "parent": 86, "children": [], "start_point": {"row": 24, "column": 37}, "end_point": {"row": 24, "column": 39}}, {"id": 89, "type": "call_expression", "text": "DECLARE_MESSAGE_MAP()", "parent": 0, "children": [90, 91], "start_point": {"row": 26, "column": 1}, "end_point": {"row": 26, "column": 22}}, {"id": 90, "type": "identifier", "text": "DECLARE_MESSAGE_MAP", "parent": 89, "children": [], "start_point": {"row": 26, "column": 1}, "end_point": {"row": 26, "column": 20}}, {"id": 91, "type": "argument_list", "text": "()", "parent": 89, "children": [], "start_point": {"row": 26, "column": 20}, "end_point": {"row": 26, "column": 22}}, {"id": 92, "type": "function_definition", "text": "class CMainFrame : public CFrameWnd {\r\npublic:\r\n\tCMainFrame();\r\n\tvirtual ~CMainFrame();\r\n\tDECLARE_DYNCREATE(CMainFrame)\r\n\tBOOL PreCreateWindow(CREATESTRUCT& cs);\r\n\r\n\tvirtual void RecalcLayout(BOOL bNotify);\r\n\r\nprotected:\r\n\t//{{AFX_MSG(CMainFrame)\r\n\tafx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);\r\n\tafx_msg void OnDestroy(void);\r\n\tafx_msg void OnSysCommand(UINT nid, LPARAM lparam);\r\n\tafx_msg void OnClose();\r\n\tafx_msg void OnActivateApp(BOOL bActive, HTASK hTask);\r\n\tafx_msg BOOL OnEraseBkgnd(CDC* pDC);\r\n\tafx_msg void OnWindowPosChanged(WINDOWPOS *wp);\r\n\tafx_msg void OnShowWindow(BOOL bShow, UINT status);\r\n\t//}}AFX_MSG\r\n\tafx_msg void OnIgnoreUpdate(CCmdUI *ui);\r\n\tDECLARE_MESSAGE_MAP()\r\n\r\npublic:\r\n\tCMainToolBar m_toolbar;\r\n}", "parent": 0, "children": [93, 94], "start_point": {"row": 30, "column": 0}, "end_point": {"row": 55, "column": 1}}, {"id": 93, "type": "identifier", "text": "CMainFrame", "parent": 92, "children": [], "start_point": {"row": 30, "column": 6}, "end_point": {"row": 30, "column": 16}}, {"id": 94, "type": "ERROR", "text": ": public CFrameWnd", "parent": 92, "children": [95], "start_point": {"row": 30, "column": 17}, "end_point": {"row": 30, "column": 35}}, {"id": 95, "type": "identifier", "text": "CFrameWnd", "parent": 94, "children": [], "start_point": {"row": 30, "column": 26}, "end_point": {"row": 30, "column": 35}}, {"id": 96, "type": "labeled_statement", "text": "public:\r\n\tCMainFrame();", "parent": 92, "children": [], "start_point": {"row": 31, "column": 0}, "end_point": {"row": 32, "column": 14}}, {"id": 97, "type": "call_expression", "text": "CMainFrame()", "parent": 96, "children": [98, 99], "start_point": {"row": 32, "column": 1}, "end_point": {"row": 32, "column": 13}}, {"id": 98, "type": "identifier", "text": "CMainFrame", "parent": 97, "children": [], "start_point": {"row": 32, "column": 1}, "end_point": {"row": 32, "column": 11}}, {"id": 99, "type": "argument_list", "text": "()", "parent": 97, "children": [], "start_point": {"row": 32, "column": 11}, "end_point": {"row": 32, "column": 13}}, {"id": 100, "type": "declaration", "text": "virtual ~CMainFrame();", "parent": 92, "children": [101, 102, 104], "start_point": {"row": 33, "column": 1}, "end_point": {"row": 33, "column": 23}}, {"id": 101, "type": "type_identifier", "text": "virtual", "parent": 100, "children": [], "start_point": {"row": 33, "column": 1}, "end_point": {"row": 33, "column": 8}}, {"id": 102, "type": "ERROR", "text": "~", "parent": 100, "children": [103], "start_point": {"row": 33, "column": 9}, "end_point": {"row": 33, "column": 10}}, {"id": 103, "type": "~", "text": "~", "parent": 102, "children": [], "start_point": {"row": 33, "column": 9}, "end_point": {"row": 33, "column": 10}}, {"id": 104, "type": "function_declarator", "text": "CMainFrame()", "parent": 100, "children": [105, 106], "start_point": {"row": 33, "column": 10}, "end_point": {"row": 33, "column": 22}}, {"id": 105, "type": "identifier", "text": "CMainFrame", "parent": 104, "children": [], "start_point": {"row": 33, "column": 10}, "end_point": {"row": 33, "column": 20}}, {"id": 106, "type": "parameter_list", "text": "()", "parent": 104, "children": [], "start_point": {"row": 33, "column": 20}, "end_point": {"row": 33, "column": 22}}, {"id": 107, "type": "declaration", "text": "DECLARE_DYNCREATE(CMainFrame)\r\n\tBOOL", "parent": 92, "children": [108, 112], "start_point": {"row": 34, "column": 1}, "end_point": {"row": 35, "column": 5}}, {"id": 108, "type": "macro_type_specifier", "text": "DECLARE_DYNCREATE(CMainFrame)", "parent": 107, "children": [109, 110], "start_point": {"row": 34, "column": 1}, "end_point": {"row": 34, "column": 30}}, {"id": 109, "type": "identifier", "text": "DECLARE_DYNCREATE", "parent": 108, "children": [], "start_point": {"row": 34, "column": 1}, "end_point": {"row": 34, "column": 18}}, {"id": 110, "type": "type_descriptor", "text": "CMainFrame", "parent": 108, "children": [111], "start_point": {"row": 34, "column": 19}, "end_point": {"row": 34, "column": 29}}, {"id": 111, "type": "type_identifier", "text": "CMainFrame", "parent": 110, "children": [], "start_point": {"row": 34, "column": 19}, "end_point": {"row": 34, "column": 29}}, {"id": 112, "type": "identifier", "text": "BOOL", "parent": 107, "children": [], "start_point": {"row": 35, "column": 1}, "end_point": {"row": 35, "column": 5}}, {"id": 113, "type": "call_expression", "text": "PreCreateWindow(CREATESTRUCT& cs)", "parent": 92, "children": [114, 115], "start_point": {"row": 35, "column": 6}, "end_point": {"row": 35, "column": 39}}, {"id": 114, "type": "identifier", "text": "PreCreateWindow", "parent": 113, "children": [], "start_point": {"row": 35, "column": 6}, "end_point": {"row": 35, "column": 21}}, {"id": 115, "type": "argument_list", "text": "(CREATESTRUCT& cs)", "parent": 113, "children": [116], "start_point": {"row": 35, "column": 21}, "end_point": {"row": 35, "column": 39}}, {"id": 116, "type": "binary_expression", "text": "CREATESTRUCT& cs", "parent": 115, "children": [117, 118], "start_point": {"row": 35, "column": 22}, "end_point": {"row": 35, "column": 38}}, {"id": 117, "type": "identifier", "text": "CREATESTRUCT", "parent": 116, "children": [], "start_point": {"row": 35, "column": 22}, "end_point": {"row": 35, "column": 34}}, {"id": 118, "type": "identifier", "text": "cs", "parent": 116, "children": [], "start_point": {"row": 35, "column": 36}, "end_point": {"row": 35, "column": 38}}, {"id": 119, "type": "declaration", "text": "virtual void RecalcLayout(BOOL bNotify);", "parent": 92, "children": [120, 121, 123], "start_point": {"row": 37, "column": 1}, "end_point": {"row": 37, "column": 41}}, {"id": 120, "type": "type_identifier", "text": "virtual", "parent": 119, "children": [], "start_point": {"row": 37, "column": 1}, "end_point": {"row": 37, "column": 8}}, {"id": 121, "type": "ERROR", "text": "void", "parent": 119, "children": [122], "start_point": {"row": 37, "column": 9}, "end_point": {"row": 37, "column": 13}}, {"id": 122, "type": "identifier", "text": "void", "parent": 121, "children": [], "start_point": {"row": 37, "column": 9}, "end_point": {"row": 37, "column": 13}}, {"id": 123, "type": "function_declarator", "text": "RecalcLayout(BOOL bNotify)", "parent": 119, "children": [124, 125], "start_point": {"row": 37, "column": 14}, "end_point": {"row": 37, "column": 40}}, {"id": 124, "type": "identifier", "text": "RecalcLayout", "parent": 123, "children": [], "start_point": {"row": 37, "column": 14}, "end_point": {"row": 37, "column": 26}}, {"id": 125, "type": "parameter_list", "text": "(BOOL bNotify)", "parent": 123, "children": [126], "start_point": {"row": 37, "column": 26}, "end_point": {"row": 37, "column": 40}}, {"id": 126, "type": "parameter_declaration", "text": "BOOL bNotify", "parent": 125, "children": [127, 128], "start_point": {"row": 37, "column": 27}, "end_point": {"row": 37, "column": 39}}, {"id": 127, "type": "type_identifier", "text": "BOOL", "parent": 126, "children": [], "start_point": {"row": 37, "column": 27}, "end_point": {"row": 37, "column": 31}}, {"id": 128, "type": "identifier", "text": "bNotify", "parent": 126, "children": [], "start_point": {"row": 37, "column": 32}, "end_point": {"row": 37, "column": 39}}, {"id": 129, "type": "labeled_statement", "text": "protected:\r\n\t//{{AFX_MSG(CMainFrame)\r\n\tafx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);", "parent": 92, "children": [130], "start_point": {"row": 39, "column": 0}, "end_point": {"row": 41, "column": 53}}, {"id": 130, "type": "declaration", "text": "afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);", "parent": 129, "children": [131, 132, 134], "start_point": {"row": 41, "column": 1}, "end_point": {"row": 41, "column": 53}}, {"id": 131, "type": "type_identifier", "text": "afx_msg", "parent": 130, "children": [], "start_point": {"row": 41, "column": 1}, "end_point": {"row": 41, "column": 8}}, {"id": 132, "type": "ERROR", "text": "int", "parent": 130, "children": [133], "start_point": {"row": 41, "column": 9}, "end_point": {"row": 41, "column": 12}}, {"id": 133, "type": "identifier", "text": "int", "parent": 132, "children": [], "start_point": {"row": 41, "column": 9}, "end_point": {"row": 41, "column": 12}}, {"id": 134, "type": "function_declarator", "text": "OnCreate(LPCREATESTRUCT lpCreateStruct)", "parent": 130, "children": [135, 136], "start_point": {"row": 41, "column": 13}, "end_point": {"row": 41, "column": 52}}, {"id": 135, "type": "identifier", "text": "OnCreate", "parent": 134, "children": [], "start_point": {"row": 41, "column": 13}, "end_point": {"row": 41, "column": 21}}, {"id": 136, "type": "parameter_list", "text": "(LPCREATESTRUCT lpCreateStruct)", "parent": 134, "children": [137], "start_point": {"row": 41, "column": 21}, "end_point": {"row": 41, "column": 52}}, {"id": 137, "type": "parameter_declaration", "text": "LPCREATESTRUCT lpCreateStruct", "parent": 136, "children": [138, 139], "start_point": {"row": 41, "column": 22}, "end_point": {"row": 41, "column": 51}}, {"id": 138, "type": "type_identifier", "text": "LPCREATESTRUCT", "parent": 137, "children": [], "start_point": {"row": 41, "column": 22}, "end_point": {"row": 41, "column": 36}}, {"id": 139, "type": "identifier", "text": "lpCreateStruct", "parent": 137, "children": [], "start_point": {"row": 41, "column": 37}, "end_point": {"row": 41, "column": 51}}, {"id": 140, "type": "declaration", "text": "afx_msg void OnDestroy(void);", "parent": 92, "children": [141, 142, 144], "start_point": {"row": 42, "column": 1}, "end_point": {"row": 42, "column": 30}}, {"id": 141, "type": "type_identifier", "text": "afx_msg", "parent": 140, "children": [], "start_point": {"row": 42, "column": 1}, "end_point": {"row": 42, "column": 8}}, {"id": 142, "type": "ERROR", "text": "void", "parent": 140, "children": [143], "start_point": {"row": 42, "column": 9}, "end_point": {"row": 42, "column": 13}}, {"id": 143, "type": "identifier", "text": "void", "parent": 142, "children": [], "start_point": {"row": 42, "column": 9}, "end_point": {"row": 42, "column": 13}}, {"id": 144, "type": "function_declarator", "text": "OnDestroy(void)", "parent": 140, "children": [145, 146], "start_point": {"row": 42, "column": 14}, "end_point": {"row": 42, "column": 29}}, {"id": 145, "type": "identifier", "text": "OnDestroy", "parent": 144, "children": [], "start_point": {"row": 42, "column": 14}, "end_point": {"row": 42, "column": 23}}, {"id": 146, "type": "parameter_list", "text": "(void)", "parent": 144, "children": [147], "start_point": {"row": 42, "column": 23}, "end_point": {"row": 42, "column": 29}}, {"id": 147, "type": "parameter_declaration", "text": "void", "parent": 146, "children": [148], "start_point": {"row": 42, "column": 24}, "end_point": {"row": 42, "column": 28}}, {"id": 148, "type": "primitive_type", "text": "void", "parent": 147, "children": [], "start_point": {"row": 42, "column": 24}, "end_point": {"row": 42, "column": 28}}, {"id": 149, "type": "declaration", "text": "afx_msg void OnSysCommand(UINT nid, LPARAM lparam);", "parent": 92, "children": [150, 151, 153], "start_point": {"row": 43, "column": 1}, "end_point": {"row": 43, "column": 52}}, {"id": 150, "type": "type_identifier", "text": "afx_msg", "parent": 149, "children": [], "start_point": {"row": 43, "column": 1}, "end_point": {"row": 43, "column": 8}}, {"id": 151, "type": "ERROR", "text": "void", "parent": 149, "children": [152], "start_point": {"row": 43, "column": 9}, "end_point": {"row": 43, "column": 13}}, {"id": 152, "type": "identifier", "text": "void", "parent": 151, "children": [], "start_point": {"row": 43, "column": 9}, "end_point": {"row": 43, "column": 13}}, {"id": 153, "type": "function_declarator", "text": "OnSysCommand(UINT nid, LPARAM lparam)", "parent": 149, "children": [154, 155], "start_point": {"row": 43, "column": 14}, "end_point": {"row": 43, "column": 51}}, {"id": 154, "type": "identifier", "text": "OnSysCommand", "parent": 153, "children": [], "start_point": {"row": 43, "column": 14}, "end_point": {"row": 43, "column": 26}}, {"id": 155, "type": "parameter_list", "text": "(UINT nid, LPARAM lparam)", "parent": 153, "children": [156, 159], "start_point": {"row": 43, "column": 26}, "end_point": {"row": 43, "column": 51}}, {"id": 156, "type": "parameter_declaration", "text": "UINT nid", "parent": 155, "children": [157, 158], "start_point": {"row": 43, "column": 27}, "end_point": {"row": 43, "column": 35}}, {"id": 157, "type": "type_identifier", "text": "UINT", "parent": 156, "children": [], "start_point": {"row": 43, "column": 27}, "end_point": {"row": 43, "column": 31}}, {"id": 158, "type": "identifier", "text": "nid", "parent": 156, "children": [], "start_point": {"row": 43, "column": 32}, "end_point": {"row": 43, "column": 35}}, {"id": 159, "type": "parameter_declaration", "text": "LPARAM lparam", "parent": 155, "children": [160, 161], "start_point": {"row": 43, "column": 37}, "end_point": {"row": 43, "column": 50}}, {"id": 160, "type": "type_identifier", "text": "LPARAM", "parent": 159, "children": [], "start_point": {"row": 43, "column": 37}, "end_point": {"row": 43, "column": 43}}, {"id": 161, "type": "identifier", "text": "lparam", "parent": 159, "children": [], "start_point": {"row": 43, "column": 44}, "end_point": {"row": 43, "column": 50}}, {"id": 162, "type": "declaration", "text": "afx_msg void OnClose();", "parent": 92, "children": [163, 164, 166], "start_point": {"row": 44, "column": 1}, "end_point": {"row": 44, "column": 24}}, {"id": 163, "type": "type_identifier", "text": "afx_msg", "parent": 162, "children": [], "start_point": {"row": 44, "column": 1}, "end_point": {"row": 44, "column": 8}}, {"id": 164, "type": "ERROR", "text": "void", "parent": 162, "children": [165], "start_point": {"row": 44, "column": 9}, "end_point": {"row": 44, "column": 13}}, {"id": 165, "type": "identifier", "text": "void", "parent": 164, "children": [], "start_point": {"row": 44, "column": 9}, "end_point": {"row": 44, "column": 13}}, {"id": 166, "type": "function_declarator", "text": "OnClose()", "parent": 162, "children": [167, 168], "start_point": {"row": 44, "column": 14}, "end_point": {"row": 44, "column": 23}}, {"id": 167, "type": "identifier", "text": "OnClose", "parent": 166, "children": [], "start_point": {"row": 44, "column": 14}, "end_point": {"row": 44, "column": 21}}, {"id": 168, "type": "parameter_list", "text": "()", "parent": 166, "children": [], "start_point": {"row": 44, "column": 21}, "end_point": {"row": 44, "column": 23}}, {"id": 169, "type": "declaration", "text": "afx_msg void OnActivateApp(BOOL bActive, HTASK hTask);", "parent": 92, "children": [170, 171, 173], "start_point": {"row": 45, "column": 1}, "end_point": {"row": 45, "column": 55}}, {"id": 170, "type": "type_identifier", "text": "afx_msg", "parent": 169, "children": [], "start_point": {"row": 45, "column": 1}, "end_point": {"row": 45, "column": 8}}, {"id": 171, "type": "ERROR", "text": "void", "parent": 169, "children": [172], "start_point": {"row": 45, "column": 9}, "end_point": {"row": 45, "column": 13}}, {"id": 172, "type": "identifier", "text": "void", "parent": 171, "children": [], "start_point": {"row": 45, "column": 9}, "end_point": {"row": 45, "column": 13}}, {"id": 173, "type": "function_declarator", "text": "OnActivateApp(BOOL bActive, HTASK hTask)", "parent": 169, "children": [174, 175], "start_point": {"row": 45, "column": 14}, "end_point": {"row": 45, "column": 54}}, {"id": 174, "type": "identifier", "text": "OnActivateApp", "parent": 173, "children": [], "start_point": {"row": 45, "column": 14}, "end_point": {"row": 45, "column": 27}}, {"id": 175, "type": "parameter_list", "text": "(BOOL bActive, HTASK hTask)", "parent": 173, "children": [176, 179], "start_point": {"row": 45, "column": 27}, "end_point": {"row": 45, "column": 54}}, {"id": 176, "type": "parameter_declaration", "text": "BOOL bActive", "parent": 175, "children": [177, 178], "start_point": {"row": 45, "column": 28}, "end_point": {"row": 45, "column": 40}}, {"id": 177, "type": "type_identifier", "text": "BOOL", "parent": 176, "children": [], "start_point": {"row": 45, "column": 28}, "end_point": {"row": 45, "column": 32}}, {"id": 178, "type": "identifier", "text": "bActive", "parent": 176, "children": [], "start_point": {"row": 45, "column": 33}, "end_point": {"row": 45, "column": 40}}, {"id": 179, "type": "parameter_declaration", "text": "HTASK hTask", "parent": 175, "children": [180, 181], "start_point": {"row": 45, "column": 42}, "end_point": {"row": 45, "column": 53}}, {"id": 180, "type": "type_identifier", "text": "HTASK", "parent": 179, "children": [], "start_point": {"row": 45, "column": 42}, "end_point": {"row": 45, "column": 47}}, {"id": 181, "type": "identifier", "text": "hTask", "parent": 179, "children": [], "start_point": {"row": 45, "column": 48}, "end_point": {"row": 45, "column": 53}}, {"id": 182, "type": "declaration", "text": "afx_msg BOOL OnEraseBkgnd(CDC* pDC);", "parent": 92, "children": [183, 184, 186], "start_point": {"row": 46, "column": 1}, "end_point": {"row": 46, "column": 37}}, {"id": 183, "type": "type_identifier", "text": "afx_msg", "parent": 182, "children": [], "start_point": {"row": 46, "column": 1}, "end_point": {"row": 46, "column": 8}}, {"id": 184, "type": "ERROR", "text": "BOOL", "parent": 182, "children": [185], "start_point": {"row": 46, "column": 9}, "end_point": {"row": 46, "column": 13}}, {"id": 185, "type": "identifier", "text": "BOOL", "parent": 184, "children": [], "start_point": {"row": 46, "column": 9}, "end_point": {"row": 46, "column": 13}}, {"id": 186, "type": "function_declarator", "text": "OnEraseBkgnd(CDC* pDC)", "parent": 182, "children": [187, 188], "start_point": {"row": 46, "column": 14}, "end_point": {"row": 46, "column": 36}}, {"id": 187, "type": "identifier", "text": "OnEraseBkgnd", "parent": 186, "children": [], "start_point": {"row": 46, "column": 14}, "end_point": {"row": 46, "column": 26}}, {"id": 188, "type": "parameter_list", "text": "(CDC* pDC)", "parent": 186, "children": [189], "start_point": {"row": 46, "column": 26}, "end_point": {"row": 46, "column": 36}}, {"id": 189, "type": "parameter_declaration", "text": "CDC* pDC", "parent": 188, "children": [190, 191], "start_point": {"row": 46, "column": 27}, "end_point": {"row": 46, "column": 35}}, {"id": 190, "type": "type_identifier", "text": "CDC", "parent": 189, "children": [], "start_point": {"row": 46, "column": 27}, "end_point": {"row": 46, "column": 30}}, {"id": 191, "type": "pointer_declarator", "text": "* pDC", "parent": 189, "children": [192, 193], "start_point": {"row": 46, "column": 30}, "end_point": {"row": 46, "column": 35}}, {"id": 192, "type": "*", "text": "*", "parent": 191, "children": [], "start_point": {"row": 46, "column": 30}, "end_point": {"row": 46, "column": 31}}, {"id": 193, "type": "identifier", "text": "pDC", "parent": 191, "children": [], "start_point": {"row": 46, "column": 32}, "end_point": {"row": 46, "column": 35}}, {"id": 194, "type": "declaration", "text": "afx_msg void OnWindowPosChanged(WINDOWPOS *wp);", "parent": 92, "children": [195, 196, 198], "start_point": {"row": 47, "column": 1}, "end_point": {"row": 47, "column": 48}}, {"id": 195, "type": "type_identifier", "text": "afx_msg", "parent": 194, "children": [], "start_point": {"row": 47, "column": 1}, "end_point": {"row": 47, "column": 8}}, {"id": 196, "type": "ERROR", "text": "void", "parent": 194, "children": [197], "start_point": {"row": 47, "column": 9}, "end_point": {"row": 47, "column": 13}}, {"id": 197, "type": "identifier", "text": "void", "parent": 196, "children": [], "start_point": {"row": 47, "column": 9}, "end_point": {"row": 47, "column": 13}}, {"id": 198, "type": "function_declarator", "text": "OnWindowPosChanged(WINDOWPOS *wp)", "parent": 194, "children": [199, 200], "start_point": {"row": 47, "column": 14}, "end_point": {"row": 47, "column": 47}}, {"id": 199, "type": "identifier", "text": "OnWindowPosChanged", "parent": 198, "children": [], "start_point": {"row": 47, "column": 14}, "end_point": {"row": 47, "column": 32}}, {"id": 200, "type": "parameter_list", "text": "(WINDOWPOS *wp)", "parent": 198, "children": [201], "start_point": {"row": 47, "column": 32}, "end_point": {"row": 47, "column": 47}}, {"id": 201, "type": "parameter_declaration", "text": "WINDOWPOS *wp", "parent": 200, "children": [202, 203], "start_point": {"row": 47, "column": 33}, "end_point": {"row": 47, "column": 46}}, {"id": 202, "type": "type_identifier", "text": "WINDOWPOS", "parent": 201, "children": [], "start_point": {"row": 47, "column": 33}, "end_point": {"row": 47, "column": 42}}, {"id": 203, "type": "pointer_declarator", "text": "*wp", "parent": 201, "children": [204, 205], "start_point": {"row": 47, "column": 43}, "end_point": {"row": 47, "column": 46}}, {"id": 204, "type": "*", "text": "*", "parent": 203, "children": [], "start_point": {"row": 47, "column": 43}, "end_point": {"row": 47, "column": 44}}, {"id": 205, "type": "identifier", "text": "wp", "parent": 203, "children": [], "start_point": {"row": 47, "column": 44}, "end_point": {"row": 47, "column": 46}}, {"id": 206, "type": "declaration", "text": "afx_msg void OnShowWindow(BOOL bShow, UINT status);", "parent": 92, "children": [207, 208, 210], "start_point": {"row": 48, "column": 1}, "end_point": {"row": 48, "column": 52}}, {"id": 207, "type": "type_identifier", "text": "afx_msg", "parent": 206, "children": [], "start_point": {"row": 48, "column": 1}, "end_point": {"row": 48, "column": 8}}, {"id": 208, "type": "ERROR", "text": "void", "parent": 206, "children": [209], "start_point": {"row": 48, "column": 9}, "end_point": {"row": 48, "column": 13}}, {"id": 209, "type": "identifier", "text": "void", "parent": 208, "children": [], "start_point": {"row": 48, "column": 9}, "end_point": {"row": 48, "column": 13}}, {"id": 210, "type": "function_declarator", "text": "OnShowWindow(BOOL bShow, UINT status)", "parent": 206, "children": [211, 212], "start_point": {"row": 48, "column": 14}, "end_point": {"row": 48, "column": 51}}, {"id": 211, "type": "identifier", "text": "OnShowWindow", "parent": 210, "children": [], "start_point": {"row": 48, "column": 14}, "end_point": {"row": 48, "column": 26}}, {"id": 212, "type": "parameter_list", "text": "(BOOL bShow, UINT status)", "parent": 210, "children": [213, 216], "start_point": {"row": 48, "column": 26}, "end_point": {"row": 48, "column": 51}}, {"id": 213, "type": "parameter_declaration", "text": "BOOL bShow", "parent": 212, "children": [214, 215], "start_point": {"row": 48, "column": 27}, "end_point": {"row": 48, "column": 37}}, {"id": 214, "type": "type_identifier", "text": "BOOL", "parent": 213, "children": [], "start_point": {"row": 48, "column": 27}, "end_point": {"row": 48, "column": 31}}, {"id": 215, "type": "identifier", "text": "bShow", "parent": 213, "children": [], "start_point": {"row": 48, "column": 32}, "end_point": {"row": 48, "column": 37}}, {"id": 216, "type": "parameter_declaration", "text": "UINT status", "parent": 212, "children": [217, 218], "start_point": {"row": 48, "column": 39}, "end_point": {"row": 48, "column": 50}}, {"id": 217, "type": "type_identifier", "text": "UINT", "parent": 216, "children": [], "start_point": {"row": 48, "column": 39}, "end_point": {"row": 48, "column": 43}}, {"id": 218, "type": "identifier", "text": "status", "parent": 216, "children": [], "start_point": {"row": 48, "column": 44}, "end_point": {"row": 48, "column": 50}}, {"id": 219, "type": "declaration", "text": "afx_msg void OnIgnoreUpdate(CCmdUI *ui);", "parent": 92, "children": [220, 221, 223], "start_point": {"row": 50, "column": 1}, "end_point": {"row": 50, "column": 41}}, {"id": 220, "type": "type_identifier", "text": "afx_msg", "parent": 219, "children": [], "start_point": {"row": 50, "column": 1}, "end_point": {"row": 50, "column": 8}}, {"id": 221, "type": "ERROR", "text": "void", "parent": 219, "children": [222], "start_point": {"row": 50, "column": 9}, "end_point": {"row": 50, "column": 13}}, {"id": 222, "type": "identifier", "text": "void", "parent": 221, "children": [], "start_point": {"row": 50, "column": 9}, "end_point": {"row": 50, "column": 13}}, {"id": 223, "type": "function_declarator", "text": "OnIgnoreUpdate(CCmdUI *ui)", "parent": 219, "children": [224, 225], "start_point": {"row": 50, "column": 14}, "end_point": {"row": 50, "column": 40}}, {"id": 224, "type": "identifier", "text": "OnIgnoreUpdate", "parent": 223, "children": [], "start_point": {"row": 50, "column": 14}, "end_point": {"row": 50, "column": 28}}, {"id": 225, "type": "parameter_list", "text": "(CCmdUI *ui)", "parent": 223, "children": [226], "start_point": {"row": 50, "column": 28}, "end_point": {"row": 50, "column": 40}}, {"id": 226, "type": "parameter_declaration", "text": "CCmdUI *ui", "parent": 225, "children": [227, 228], "start_point": {"row": 50, "column": 29}, "end_point": {"row": 50, "column": 39}}, {"id": 227, "type": "type_identifier", "text": "CCmdUI", "parent": 226, "children": [], "start_point": {"row": 50, "column": 29}, "end_point": {"row": 50, "column": 35}}, {"id": 228, "type": "pointer_declarator", "text": "*ui", "parent": 226, "children": [229, 230], "start_point": {"row": 50, "column": 36}, "end_point": {"row": 50, "column": 39}}, {"id": 229, "type": "*", "text": "*", "parent": 228, "children": [], "start_point": {"row": 50, "column": 36}, "end_point": {"row": 50, "column": 37}}, {"id": 230, "type": "identifier", "text": "ui", "parent": 228, "children": [], "start_point": {"row": 50, "column": 37}, "end_point": {"row": 50, "column": 39}}, {"id": 231, "type": "call_expression", "text": "DECLARE_MESSAGE_MAP()", "parent": 92, "children": [232, 233], "start_point": {"row": 51, "column": 1}, "end_point": {"row": 51, "column": 22}}, {"id": 232, "type": "identifier", "text": "DECLARE_MESSAGE_MAP", "parent": 231, "children": [], "start_point": {"row": 51, "column": 1}, "end_point": {"row": 51, "column": 20}}, {"id": 233, "type": "argument_list", "text": "()", "parent": 231, "children": [], "start_point": {"row": 51, "column": 20}, "end_point": {"row": 51, "column": 22}}, {"id": 234, "type": "labeled_statement", "text": "public:\r\n\tCMainToolBar m_toolbar;", "parent": 92, "children": [235], "start_point": {"row": 53, "column": 0}, "end_point": {"row": 54, "column": 24}}, {"id": 235, "type": "declaration", "text": "CMainToolBar m_toolbar;", "parent": 234, "children": [236, 237], "start_point": {"row": 54, "column": 1}, "end_point": {"row": 54, "column": 24}}, {"id": 236, "type": "type_identifier", "text": "CMainToolBar", "parent": 235, "children": [], "start_point": {"row": 54, "column": 1}, "end_point": {"row": 54, "column": 13}}, {"id": 237, "type": "identifier", "text": "m_toolbar", "parent": 235, "children": [], "start_point": {"row": 54, "column": 14}, "end_point": {"row": 54, "column": 23}}, {"id": 238, "type": "preproc_call", "text": "#endif\r\n", "parent": 0, "children": [239], "start_point": {"row": 57, "column": 0}, "end_point": {"row": 58, "column": 0}}, {"id": 239, "type": "preproc_directive", "text": "#endif", "parent": 238, "children": [], "start_point": {"row": 57, "column": 0}, "end_point": {"row": 57, "column": 6}}]}, "node_categories": {"declarations": {"functions": [17, 28, 49, 60, 71, 81, 92, 104, 123, 134, 144, 153, 166, 173, 186, 198, 210, 223], "variables": [13, 20, 26, 31, 45, 52, 55, 58, 63, 69, 74, 77, 84, 100, 107, 119, 126, 130, 137, 140, 147, 149, 156, 159, 162, 169, 176, 179, 182, 189, 194, 201, 206, 213, 216, 219, 226, 235], "classes": [], "imports": [], "modules": [], "enums": [36, 37, 38, 39, 43]}, "statements": {"expressions": [10, 89, 97, 113, 116, 231], "assignments": [], "loops": [], "conditionals": [1, 2, 5, 6, 8, 11, 14, 18, 21, 22, 24, 25, 29, 32, 35, 40, 44, 46, 48, 50, 54, 56, 57, 61, 65, 68, 72, 78, 80, 82, 85, 88, 90, 93, 95, 98, 101, 105, 108, 109, 111, 112, 114, 117, 118, 120, 122, 124, 127, 128, 131, 133, 135, 138, 139, 141, 143, 145, 150, 152, 154, 157, 158, 160, 161, 163, 165, 167, 170, 172, 174, 177, 178, 180, 181, 183, 185, 187, 190, 193, 195, 197, 199, 202, 205, 207, 209, 211, 214, 215, 217, 218, 220, 222, 224, 227, 230, 232, 236, 237], "returns": [], "exceptions": []}, "expressions": {"calls": [238], "literals": [42], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [{"node_id": 17, "universal_type": "function", "name": "unknown", "text_snippet": "CMainToolBar()"}, {"node_id": 28, "universal_type": "function", "name": "unknown", "text_snippet": "Create(CWnd *parent)"}, {"node_id": 49, "universal_type": "function", "name": "unknown", "text_snippet": "EnableState(int state, BOOL enabled)"}, {"node_id": 60, "universal_type": "function", "name": "unknown", "text_snippet": "UpdateButtonsForView(class CFolderView *view)"}, {"node_id": 71, "universal_type": "function", "name": "unknown", "text_snippet": "Reload(void)"}, {"node_id": 81, "universal_type": "function", "name": "unknown", "text_snippet": "OnIgnoreUpdate(CCmdUI *ui)"}, {"node_id": 92, "universal_type": "function", "name": "CMainFrame", "text_snippet": "class CMainFrame : public CFrameWnd {\r\npublic:\r\n\tCMainFrame();\r\n\tvirtual ~CMainFrame();\r\n\tDECLARE_DY"}, {"node_id": 104, "universal_type": "function", "name": "unknown", "text_snippet": "CMainFrame()"}, {"node_id": 123, "universal_type": "function", "name": "unknown", "text_snippet": "RecalcLayout(BOOL bNotify)"}, {"node_id": 134, "universal_type": "function", "name": "unknown", "text_snippet": "OnCreate(LPCREATESTRUCT lpCreateStruct)"}, {"node_id": 144, "universal_type": "function", "name": "unknown", "text_snippet": "OnDestroy(void)"}, {"node_id": 153, "universal_type": "function", "name": "unknown", "text_snippet": "OnSysCommand(UINT nid, LPARAM lparam)"}, {"node_id": 166, "universal_type": "function", "name": "unknown", "text_snippet": "OnClose()"}, {"node_id": 173, "universal_type": "function", "name": "unknown", "text_snippet": "OnActivateApp(BOOL bActive, HTASK hTask)"}, {"node_id": 186, "universal_type": "function", "name": "unknown", "text_snippet": "OnEraseBkgnd(CDC* pDC)"}, {"node_id": 198, "universal_type": "function", "name": "unknown", "text_snippet": "OnWindowPosChanged(WINDOWPOS *wp)"}, {"node_id": 210, "universal_type": "function", "name": "unknown", "text_snippet": "OnShowWindow(BOOL bShow, UINT status)"}, {"node_id": 223, "universal_type": "function", "name": "unknown", "text_snippet": "OnIgnoreUpdate(CCmdUI *ui)"}], "class_declarations": [], "import_statements": []}, "original_source_code": "\r\n#ifndef CMAINFRAME_H\r\n#define CMAINFRAME_H\r\n\r\nclass CMainToolBar : public CToolBar {\r\npublic:\r\n\tCMainToolBar();\r\n\tvirtual ~CMainToolBar();\r\n\tDECLARE_DYNCREATE(CMainToolBar)\r\n\r\n\tvirtual int Create(CWnd *parent);\r\n\r\n\tenum {\r\n\t\tNoState = 0,\r\n\t\tViewFree,\r\n\t};\r\n\r\n\tvirtual void EnableState(int state, BOOL enabled);\r\n\tvoid UpdateButtonsForView(class CFolderView *view);\r\n\r\n\tvoid Reload(void);\r\n\r\nprotected:\r\n\t//{{AFX_MSG(CMainToolBar)\r\n\tafx_msg void OnIgnoreUpdate(CCmdUI *ui);\r\n\t//}}AFX_MSG\r\n\tDECLARE_MESSAGE_MAP()\r\n\r\n};\r\n\r\nclass CMainFrame : public CFrameWnd {\r\npublic:\r\n\tCMainFrame();\r\n\tvirtual ~CMainFrame();\r\n\tDECLARE_DYNCREATE(CMainFrame)\r\n\tBOOL PreCreateWindow(CREATESTRUCT& cs);\r\n\r\n\tvirtual void RecalcLayout(BOOL bNotify);\r\n\r\nprotected:\r\n\t//{{AFX_MSG(CMainFrame)\r\n\tafx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);\r\n\tafx_msg void OnDestroy(void);\r\n\tafx_msg void OnSysCommand(UINT nid, LPARAM lparam);\r\n\tafx_msg void OnClose();\r\n\tafx_msg void OnActivateApp(BOOL bActive, HTASK hTask);\r\n\tafx_msg BOOL OnEraseBkgnd(CDC* pDC);\r\n\tafx_msg void OnWindowPosChanged(WINDOWPOS *wp);\r\n\tafx_msg void OnShowWindow(BOOL bShow, UINT status);\r\n\t//}}AFX_MSG\r\n\tafx_msg void OnIgnoreUpdate(CCmdUI *ui);\r\n\tDECLARE_MESSAGE_MAP()\r\n\r\npublic:\r\n\tCMainToolBar m_toolbar;\r\n};\r\n\r\n#endif\r\n\r\n"}
80,011
c
#include "Logger.h" #include "OSSupport/File.h" class cFileListener : public cLogger::cListener { public: cFileListener(); cFileListener(AString a_Filename); virtual void Log(AString a_Message, cLogger::eLogLevel a_LogLevel) override; private: cFile m_File; }; cLogger::cListener * MakeConsoleListener();
16.56
18
(translation_unit) "#include "Logger.h"\n#include "OSSupport/File.h"\n\n\n\n\n\nclass cFileListener\n : public cLogger::cListener\n{\npublic:\n\n cFileListener();\n cFileListener(AString a_Filename);\n\n virtual void Log(AString a_Message, cLogger::eLogLevel a_LogLevel) override;\n \nprivate:\n\n cFile m_File;\n};\n\n\n\n\n\ncLogger::cListener * MakeConsoleListener();\n\n\n\n\n" (preproc_include) "#include "Logger.h"\n" (#include) "#include" (string_literal) ""Logger.h"" (") """ (string_content) "Logger.h" (") """ (preproc_include) "#include "OSSupport/File.h"\n" (#include) "#include" (string_literal) ""OSSupport/File.h"" (") """ (string_content) "OSSupport/File.h" (") """ (function_definition) "class cFileListener\n : public cLogger::cListener\n{\npublic:\n\n cFileListener();\n cFileListener(AString a_Filename);\n\n virtual void Log(AString a_Message, cLogger::eLogLevel a_LogLevel) override;\n \nprivate:\n\n cFile m_File;\n}" (type_identifier) "class" (identifier) "cFileListener" (ERROR) ": public cLogger::cListener" (:) ":" (identifier) "public" (identifier) "cLogger" (:) ":" (:) ":" (identifier) "cListener" (compound_statement) "{\npublic:\n\n cFileListener();\n cFileListener(AString a_Filename);\n\n virtual void Log(AString a_Message, cLogger::eLogLevel a_LogLevel) override;\n \nprivate:\n\n cFile m_File;\n}" ({) "{" (labeled_statement) "public:\n\n cFileListener();" (statement_identifier) "public" (:) ":" (expression_statement) "cFileListener();" (call_expression) "cFileListener()" (identifier) "cFileListener" (argument_list) "()" (() "(" ()) ")" (;) ";" (macro_type_specifier) "cFileListener(AString a_Filename)" (identifier) "cFileListener" (() "(" (ERROR) "AString" (type_identifier) "AString" (type_descriptor) "a_Filename" (type_identifier) "a_Filename" ()) ")" (;) ";" (ERROR) "virtual void Log(AString a_Message, cLogger::eLogLevel a_LogLevel) override" (type_identifier) "virtual" (ERROR) "void" (identifier) "void" (function_declarator) "Log(AString a_Message, cLogger::eLogLevel a_LogLevel) override" (identifier) "Log" (parameter_list) "(AString a_Message, cLogger::eLogLevel a_LogLevel)" (() "(" (parameter_declaration) "AString a_Message" (type_identifier) "AString" (identifier) "a_Message" (,) "," (parameter_declaration) "cLogger::eLogLevel a_LogLevel" (type_identifier) "cLogger" (ERROR) "::eLogLevel" (:) ":" (:) ":" (identifier) "eLogLevel" (identifier) "a_LogLevel" ()) ")" (identifier) "override" (expression_statement) ";" (;) ";" (labeled_statement) "private:\n\n cFile m_File;" (statement_identifier) "private" (:) ":" (declaration) "cFile m_File;" (type_identifier) "cFile" (identifier) "m_File" (;) ";" (}) "}" (expression_statement) ";" (;) ";" (labeled_statement) "cLogger::cListener * MakeConsoleListener();" (statement_identifier) "cLogger" (:) ":" (ERROR) ":" (:) ":" (declaration) "cListener * MakeConsoleListener();" (type_identifier) "cListener" (pointer_declarator) "* MakeConsoleListener()" (*) "*" (function_declarator) "MakeConsoleListener()" (identifier) "MakeConsoleListener" (parameter_list) "()" (() "(" ()) ")" (;) ";"
92
6
{"language": "c", "success": true, "metadata": {"lines": 18, "avg_line_length": 16.56, "nodes": 50, "errors": 0, "source_hash": "0a2f7df8cf2b4140691ad89452ee016454a046dfbcde674d4411fdada63ed737", "categorized_nodes": 36}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#include \"Logger.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": "string_literal", "text": "\"Logger.h\"", "parent": 0, "children": [], "start_point": {"row": 1, "column": 9}, "end_point": {"row": 1, "column": 19}}, {"id": 3, "type": "preproc_include", "text": "#include \"OSSupport/File.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": "\"OSSupport/File.h\"", "parent": 3, "children": [], "start_point": {"row": 2, "column": 9}, "end_point": {"row": 2, "column": 27}}, {"id": 6, "type": "function_definition", "text": "class cFileListener\n\t: public cLogger::cListener\n{\npublic:\n\n\tcFileListener();\n\tcFileListener(AString a_Filename);\n\n\tvirtual void Log(AString a_Message, cLogger::eLogLevel a_LogLevel) override;\n\t\nprivate:\n\n\tcFile m_File;\n}", "parent": null, "children": [7, 8], "start_point": {"row": 8, "column": 0}, "end_point": {"row": 21, "column": 1}}, {"id": 7, "type": "identifier", "text": "cFileListener", "parent": 6, "children": [], "start_point": {"row": 8, "column": 6}, "end_point": {"row": 8, "column": 19}}, {"id": 8, "type": "ERROR", "text": ": public cLogger::cListener", "parent": 6, "children": [9, 10], "start_point": {"row": 9, "column": 1}, "end_point": {"row": 9, "column": 28}}, {"id": 9, "type": "identifier", "text": "cLogger", "parent": 8, "children": [], "start_point": {"row": 9, "column": 10}, "end_point": {"row": 9, "column": 17}}, {"id": 10, "type": "identifier", "text": "cListener", "parent": 8, "children": [], "start_point": {"row": 9, "column": 19}, "end_point": {"row": 9, "column": 28}}, {"id": 11, "type": "labeled_statement", "text": "public:\n\n\tcFileListener();", "parent": 6, "children": [], "start_point": {"row": 11, "column": 0}, "end_point": {"row": 13, "column": 17}}, {"id": 12, "type": "call_expression", "text": "cFileListener()", "parent": 11, "children": [13, 14], "start_point": {"row": 13, "column": 1}, "end_point": {"row": 13, "column": 16}}, {"id": 13, "type": "identifier", "text": "cFileListener", "parent": 12, "children": [], "start_point": {"row": 13, "column": 1}, "end_point": {"row": 13, "column": 14}}, {"id": 14, "type": "argument_list", "text": "()", "parent": 12, "children": [], "start_point": {"row": 13, "column": 14}, "end_point": {"row": 13, "column": 16}}, {"id": 15, "type": "macro_type_specifier", "text": "cFileListener(AString a_Filename)", "parent": 6, "children": [16, 17, 19], "start_point": {"row": 14, "column": 1}, "end_point": {"row": 14, "column": 34}}, {"id": 16, "type": "identifier", "text": "cFileListener", "parent": 15, "children": [], "start_point": {"row": 14, "column": 1}, "end_point": {"row": 14, "column": 14}}, {"id": 17, "type": "ERROR", "text": "AString", "parent": 15, "children": [18], "start_point": {"row": 14, "column": 15}, "end_point": {"row": 14, "column": 22}}, {"id": 18, "type": "type_identifier", "text": "AString", "parent": 17, "children": [], "start_point": {"row": 14, "column": 15}, "end_point": {"row": 14, "column": 22}}, {"id": 19, "type": "type_descriptor", "text": "a_Filename", "parent": 15, "children": [20], "start_point": {"row": 14, "column": 23}, "end_point": {"row": 14, "column": 33}}, {"id": 20, "type": "type_identifier", "text": "a_Filename", "parent": 19, "children": [], "start_point": {"row": 14, "column": 23}, "end_point": {"row": 14, "column": 33}}, {"id": 21, "type": "ERROR", "text": "virtual void Log(AString a_Message, cLogger::eLogLevel a_LogLevel) override", "parent": 6, "children": [22, 23, 25], "start_point": {"row": 16, "column": 1}, "end_point": {"row": 16, "column": 76}}, {"id": 22, "type": "type_identifier", "text": "virtual", "parent": 21, "children": [], "start_point": {"row": 16, "column": 1}, "end_point": {"row": 16, "column": 8}}, {"id": 23, "type": "ERROR", "text": "void", "parent": 21, "children": [24], "start_point": {"row": 16, "column": 9}, "end_point": {"row": 16, "column": 13}}, {"id": 24, "type": "identifier", "text": "void", "parent": 23, "children": [], "start_point": {"row": 16, "column": 9}, "end_point": {"row": 16, "column": 13}}, {"id": 25, "type": "function_declarator", "text": "Log(AString a_Message, cLogger::eLogLevel a_LogLevel) override", "parent": 21, "children": [26, 27, 36], "start_point": {"row": 16, "column": 14}, "end_point": {"row": 16, "column": 76}}, {"id": 26, "type": "identifier", "text": "Log", "parent": 25, "children": [], "start_point": {"row": 16, "column": 14}, "end_point": {"row": 16, "column": 17}}, {"id": 27, "type": "parameter_list", "text": "(AString a_Message, cLogger::eLogLevel a_LogLevel)", "parent": 25, "children": [28, 31], "start_point": {"row": 16, "column": 17}, "end_point": {"row": 16, "column": 67}}, {"id": 28, "type": "parameter_declaration", "text": "AString a_Message", "parent": 27, "children": [29, 30], "start_point": {"row": 16, "column": 18}, "end_point": {"row": 16, "column": 35}}, {"id": 29, "type": "type_identifier", "text": "AString", "parent": 28, "children": [], "start_point": {"row": 16, "column": 18}, "end_point": {"row": 16, "column": 25}}, {"id": 30, "type": "identifier", "text": "a_Message", "parent": 28, "children": [], "start_point": {"row": 16, "column": 26}, "end_point": {"row": 16, "column": 35}}, {"id": 31, "type": "parameter_declaration", "text": "cLogger::eLogLevel a_LogLevel", "parent": 27, "children": [32, 33, 35], "start_point": {"row": 16, "column": 37}, "end_point": {"row": 16, "column": 66}}, {"id": 32, "type": "type_identifier", "text": "cLogger", "parent": 31, "children": [], "start_point": {"row": 16, "column": 37}, "end_point": {"row": 16, "column": 44}}, {"id": 33, "type": "ERROR", "text": "::eLogLevel", "parent": 31, "children": [34], "start_point": {"row": 16, "column": 44}, "end_point": {"row": 16, "column": 55}}, {"id": 34, "type": "identifier", "text": "eLogLevel", "parent": 33, "children": [], "start_point": {"row": 16, "column": 46}, "end_point": {"row": 16, "column": 55}}, {"id": 35, "type": "identifier", "text": "a_LogLevel", "parent": 31, "children": [], "start_point": {"row": 16, "column": 56}, "end_point": {"row": 16, "column": 66}}, {"id": 36, "type": "identifier", "text": "override", "parent": 25, "children": [], "start_point": {"row": 16, "column": 68}, "end_point": {"row": 16, "column": 76}}, {"id": 37, "type": "labeled_statement", "text": "private:\n\n\tcFile m_File;", "parent": 6, "children": [38], "start_point": {"row": 18, "column": 0}, "end_point": {"row": 20, "column": 14}}, {"id": 38, "type": "declaration", "text": "cFile m_File;", "parent": 37, "children": [39, 40], "start_point": {"row": 20, "column": 1}, "end_point": {"row": 20, "column": 14}}, {"id": 39, "type": "type_identifier", "text": "cFile", "parent": 38, "children": [], "start_point": {"row": 20, "column": 1}, "end_point": {"row": 20, "column": 6}}, {"id": 40, "type": "identifier", "text": "m_File", "parent": 38, "children": [], "start_point": {"row": 20, "column": 7}, "end_point": {"row": 20, "column": 13}}, {"id": 41, "type": "labeled_statement", "text": "cLogger::cListener * MakeConsoleListener();", "parent": null, "children": [42, 43], "start_point": {"row": 27, "column": 0}, "end_point": {"row": 27, "column": 43}}, {"id": 42, "type": "statement_identifier", "text": "cLogger", "parent": 41, "children": [], "start_point": {"row": 27, "column": 0}, "end_point": {"row": 27, "column": 7}}, {"id": 43, "type": "declaration", "text": "cListener * MakeConsoleListener();", "parent": 41, "children": [44, 45], "start_point": {"row": 27, "column": 9}, "end_point": {"row": 27, "column": 43}}, {"id": 44, "type": "type_identifier", "text": "cListener", "parent": 43, "children": [], "start_point": {"row": 27, "column": 9}, "end_point": {"row": 27, "column": 18}}, {"id": 45, "type": "pointer_declarator", "text": "* MakeConsoleListener()", "parent": 43, "children": [46, 47], "start_point": {"row": 27, "column": 19}, "end_point": {"row": 27, "column": 42}}, {"id": 46, "type": "*", "text": "*", "parent": 45, "children": [], "start_point": {"row": 27, "column": 19}, "end_point": {"row": 27, "column": 20}}, {"id": 47, "type": "function_declarator", "text": "MakeConsoleListener()", "parent": 45, "children": [48, 49], "start_point": {"row": 27, "column": 21}, "end_point": {"row": 27, "column": 42}}, {"id": 48, "type": "identifier", "text": "MakeConsoleListener", "parent": 47, "children": [], "start_point": {"row": 27, "column": 21}, "end_point": {"row": 27, "column": 40}}, {"id": 49, "type": "parameter_list", "text": "()", "parent": 47, "children": [], "start_point": {"row": 27, "column": 40}, "end_point": {"row": 27, "column": 42}}]}, "node_categories": {"declarations": {"functions": [6, 25, 47], "variables": [28, 31, 38, 43], "classes": [], "imports": [0, 1, 3, 4], "modules": [], "enums": []}, "statements": {"expressions": [12], "assignments": [], "loops": [], "conditionals": [7, 9, 10, 13, 15, 16, 18, 20, 22, 24, 26, 29, 30, 32, 34, 35, 36, 39, 40, 42, 44, 48], "returns": [], "exceptions": []}, "expressions": {"calls": [], "literals": [2, 5], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [{"node_id": 6, "universal_type": "function", "name": "cFileListener", "text_snippet": "class cFileListener\n\t: public cLogger::cListener\n{\npublic:\n\n\tcFileListener();\n\tcFileListener(AString"}, {"node_id": 25, "universal_type": "function", "name": "unknown", "text_snippet": "Log(AString a_Message, cLogger::eLogLevel a_LogLevel) override"}, {"node_id": 47, "universal_type": "function", "name": "unknown", "text_snippet": "MakeConsoleListener()"}], "class_declarations": [], "import_statements": [{"node_id": 0, "text": "#include \"Logger.h\"\n"}, {"node_id": 1, "text": "#include"}, {"node_id": 3, "text": "#include \"OSSupport/File.h\"\n"}, {"node_id": 4, "text": "#include"}]}, "original_source_code": "\n#include \"Logger.h\"\n#include \"OSSupport/File.h\"\n\n\n\n\n\nclass cFileListener\n\t: public cLogger::cListener\n{\npublic:\n\n\tcFileListener();\n\tcFileListener(AString a_Filename);\n\n\tvirtual void Log(AString a_Message, cLogger::eLogLevel a_LogLevel) override;\n\t\nprivate:\n\n\tcFile m_File;\n};\n\n\n\n\n\ncLogger::cListener * MakeConsoleListener();\n\n\n\n\n"}
80,012
c
// Copyright 2016 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef CHROME_BROWSER_UI_APP_LIST_ARC_ARC_DEFAULT_APP_LIST_H_ #define CHROME_BROWSER_UI_APP_LIST_ARC_ARC_DEFAULT_APP_LIST_H_ #include <stdint.h> #include <map> #include <memory> #include <string> #include <unordered_set> #include "base/files/file_path.h" #include "base/macros.h" #include "base/memory/weak_ptr.h" namespace content { class BrowserContext; } // Contains map of default pre-installed apps and packages. class ArcDefaultAppList { public: class Delegate { public: virtual void OnDefaultAppsReady() = 0; protected: virtual ~Delegate() {} }; struct AppInfo { AppInfo(const std::string& name, const std::string& package_name, const std::string& activity, bool oem, const base::FilePath app_path); ~AppInfo(); std::string name; std::string package_name; std::string activity; bool oem; base::FilePath app_path; // App folder that contains pre-installed icons. }; enum class FilterLevel { // Filter nothing. NOTHING, // Filter out only optional apps, excluding Play Store for example. Used in // case when Play Store is managed and enabled. OPTIONAL_APPS, // Filter out everything. Used in case when Play Store is managed and // disabled. ALL }; // Defines App id to default AppInfo mapping. using AppInfoMap = std::map<std::string, std::unique_ptr<AppInfo>>; ArcDefaultAppList(Delegate* delegate, content::BrowserContext* context); ~ArcDefaultAppList(); static void UseTestAppsDirectory(); // Returns default app info if it is found in defaults and its package is not // marked as uninstalled. const AppInfo* GetApp(const std::string& app_id) const; // Returns true if app is found in defaults and its package is not marked as // uninstalled. bool HasApp(const std::string& app_id) const; // Returns true if package exists in default packages list. Note it may be // marked as uninstalled. bool HasPackage(const std::string& package_name) const; // Sets uninstalled flag for default package if it exists in default packages // list. void MaybeMarkPackageUninstalled(const std::string& package_name, bool uninstalled); // Returns set of packages which are marked not as uninstalled. std::unordered_set<std::string> GetActivePackages() const; const AppInfoMap& app_map() const { return apps_; } void set_filter_level(FilterLevel filter_level) { filter_level_ = filter_level; } private: // Defines mapping package name to uninstalled state. using PackageMap = std::map<std::string, bool>; // Called when default apps are read. void OnAppsReady(std::unique_ptr<AppInfoMap> apps); // Unowned pointer. Delegate* const delegate_; content::BrowserContext* const context_; FilterLevel filter_level_ = FilterLevel::ALL; AppInfoMap apps_; PackageMap packages_; base::WeakPtrFactory<ArcDefaultAppList> weak_ptr_factory_; DISALLOW_COPY_AND_ASSIGN(ArcDefaultAppList); }; #endif // CHROME_BROWSER_UI_APP_LIST_ARC_ARC_DEFAULT_APP_LIST_H_
36.59
87
(translation_unit) "// Copyright 2016 The Chromium Authors. All rights reserved.\n// Use of this source code is governed by a BSD-style license that can be\n// found in the LICENSE file.\n\n#ifndef CHROME_BROWSER_UI_APP_LIST_ARC_ARC_DEFAULT_APP_LIST_H_\n#define CHROME_BROWSER_UI_APP_LIST_ARC_ARC_DEFAULT_APP_LIST_H_\n\n#include <stdint.h>\n\n#include <map>\n#include <memory>\n#include <string>\n#include <unordered_set>\n\n#include "base/files/file_path.h"\n#include "base/macros.h"\n#include "base/memory/weak_ptr.h"\n\nnamespace content {\nclass BrowserContext;\n}\n\n// Contains map of default pre-installed apps and packages.\nclass ArcDefaultAppList {\n public:\n class Delegate {\n public:\n virtual void OnDefaultAppsReady() = 0;\n\n protected:\n virtual ~Delegate() {}\n };\n\n struct AppInfo {\n AppInfo(const std::string& name,\n const std::string& package_name,\n const std::string& activity,\n bool oem,\n const base::FilePath app_path);\n ~AppInfo();\n\n std::string name;\n std::string package_name;\n std::string activity;\n bool oem;\n base::FilePath app_path; // App folder that contains pre-installed icons.\n };\n\n enum class FilterLevel {\n // Filter nothing.\n NOTHING,\n // Filter out only optional apps, excluding Play Store for example. Used in\n // case when Play Store is managed and enabled.\n OPTIONAL_APPS,\n // Filter out everything. Used in case when Play Store is managed and\n // disabled.\n ALL\n };\n\n // Defines App id to default AppInfo mapping.\n using AppInfoMap = std::map<std::string, std::unique_ptr<AppInfo>>;\n\n ArcDefaultAppList(Delegate* delegate, content::BrowserContext* context);\n ~ArcDefaultAppList();\n\n static void UseTestAppsDirectory();\n\n // Returns default app info if it is found in defaults and its package is not\n // marked as uninstalled.\n const AppInfo* GetApp(const std::string& app_id) const;\n // Returns true if app is found in defaults and its package is not marked as\n // uninstalled.\n bool HasApp(const std::string& app_id) const;\n // Returns true if package exists in default packages list. Note it may be\n // marked as uninstalled.\n bool HasPackage(const std::string& package_name) const;\n // Sets uninstalled flag for default package if it exists in default packages\n // list.\n void MaybeMarkPackageUninstalled(const std::string& package_name,\n bool uninstalled);\n\n // Returns set of packages which are marked not as uninstalled.\n std::unordered_set<std::string> GetActivePackages() const;\n\n const AppInfoMap& app_map() const { return apps_; }\n\n void set_filter_level(FilterLevel filter_level) {\n filter_level_ = filter_level;\n }\n\n private:\n // Defines mapping package name to uninstalled state.\n using PackageMap = std::map<std::string, bool>;\n\n // Called when default apps are read.\n void OnAppsReady(std::unique_ptr<AppInfoMap> apps);\n\n // Unowned pointer.\n Delegate* const delegate_;\n content::BrowserContext* const context_;\n FilterLevel filter_level_ = FilterLevel::ALL;\n\n AppInfoMap apps_;\n PackageMap packages_;\n\n base::WeakPtrFactory<ArcDefaultAppList> weak_ptr_factory_;\n\n DISALLOW_COPY_AND_ASSIGN(ArcDefaultAppList);\n};\n\n#endif // CHROME_BROWSER_UI_APP_LIST_ARC_ARC_DEFAULT_APP_LIST_H_\n" (comment) "// Copyright 2016 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." (ERROR) "#ifndef CHROME_BROWSER_UI_APP_LIST_ARC_ARC_DEFAULT_APP_LIST_H_\n#define CHROME_BROWSER_UI_APP_LIST_ARC_ARC_DEFAULT_APP_LIST_H_\n\n#include <stdint.h>\n\n#include <map>\n#include <memory>\n#include <string>\n#include <unordered_set>\n\n#include "base/files/file_path.h"\n#include "base/macros.h"\n#include "base/memory/weak_ptr.h"\n\nnamespace content {\nclass BrowserContext;\n}\n\n// Contains map of default pre-installed apps and packages.\nclass ArcDefaultAppList {\n public:\n class Delegate {\n public:\n virtual void OnDefaultAppsReady() = 0;\n\n protected:\n virtual ~Delegate() {}\n };\n\n struct AppInfo {\n AppInfo(const std::string& name,\n const std::string& package_name,\n const std::string& activity,\n bool oem,\n const base::FilePath app_path);\n ~AppInfo();\n\n std::string name;\n std::string package_name;\n std::string activity;\n bool oem;\n base::FilePath app_path; // App folder that contains pre-installed icons.\n };\n\n enum class FilterLevel {\n // Filter nothing.\n NOTHING,\n // Filter out only optional apps, excluding Play Store for example. Used in\n // case when Play Store is managed and enabled.\n OPTIONAL_APPS,\n // Filter out everything. Used in case when Play Store is managed and\n // disabled.\n ALL\n };\n\n // Defines App id to default AppInfo mapping.\n using AppInfoMap = std::map<std::string, std::unique_ptr<AppInfo>>;\n\n ArcDefaultAppList(Delegate* delegate, content::BrowserContext* context);\n ~ArcDefaultAppList();\n\n static void UseTestAppsDirectory();\n\n // Returns default app info if it is found in defaults and its package is not\n // marked as uninstalled.\n const AppInfo* GetApp(const std::string& app_id) const;\n // Returns true if app is found in defaults and its package is not marked as\n // uninstalled.\n bool HasApp(const std::string& app_id) const;\n // Returns true if package exists in default packages list. Note it may be\n // marked as uninstalled.\n bool HasPackage(const std::string& package_name) const;\n // Sets uninstalled flag for default package if it exists in default packages\n // list.\n void MaybeMarkPackageUninstalled(const std::string& package_name,\n bool uninstalled);\n\n // Returns set of packages which are marked not as uninstalled.\n std::unordered_set<std::string> GetActivePackages() const;\n\n const AppInfoMap& app_map() const { return apps_; }\n\n void set_filter_level(FilterLevel filter_level) {\n filter_level_ = filter_level;\n }\n\n private:\n // Defines mapping package name to uninstalled state.\n using PackageMap = std::map<std::string, bool>;\n\n // Called when default apps are read.\n void OnAppsReady(std::unique_ptr<AppInfoMap> apps);\n\n // Unowned pointer.\n Delegate* const delegate_;\n content::BrowserContext* const context_;\n FilterLevel filter_level_ = FilterLevel::ALL;\n\n AppInfoMap apps_;\n PackageMap packages_;\n\n base::WeakPtrFactory<ArcDefaultAppList> weak_ptr_factory_;\n\n DISALLOW_COPY_AND_ASSIGN(ArcDefaultAppList);\n};\n\n#endif // CHROME_BROWSER_UI_APP_LIST_ARC_ARC_DEFAULT_APP_LIST_H_\n" (#ifndef) "#ifndef" (identifier) "CHROME_BROWSER_UI_APP_LIST_ARC_ARC_DEFAULT_APP_LIST_H_" (preproc_def) "#define CHROME_BROWSER_UI_APP_LIST_ARC_ARC_DEFAULT_APP_LIST_H_\n" (#define) "#define" (identifier) "CHROME_BROWSER_UI_APP_LIST_ARC_ARC_DEFAULT_APP_LIST_H_" (preproc_include) "#include <stdint.h>\n" (#include) "#include" (system_lib_string) "<stdint.h>" (preproc_include) "#include <map>\n" (#include) "#include" (system_lib_string) "<map>" (preproc_include) "#include <memory>\n" (#include) "#include" (system_lib_string) "<memory>" (preproc_include) "#include <string>\n" (#include) "#include" (system_lib_string) "<string>" (preproc_include) "#include <unordered_set>\n" (#include) "#include" (system_lib_string) "<unordered_set>" (preproc_include) "#include "base/files/file_path.h"\n" (#include) "#include" (string_literal) ""base/files/file_path.h"" (") """ (string_content) "base/files/file_path.h" (") """ (preproc_include) "#include "base/macros.h"\n" (#include) "#include" (string_literal) ""base/macros.h"" (") """ (string_content) "base/macros.h" (") """ (preproc_include) "#include "base/memory/weak_ptr.h"\n" (#include) "#include" (string_literal) ""base/memory/weak_ptr.h"" (") """ (string_content) "base/memory/weak_ptr.h" (") """ (function_definition) "namespace content {\nclass BrowserContext;\n}" (type_identifier) "namespace" (identifier) "content" (compound_statement) "{\nclass BrowserContext;\n}" ({) "{" (declaration) "class BrowserContext;" (type_identifier) "class" (identifier) "BrowserContext" (;) ";" (}) "}" (comment) "// Contains map of default pre-installed apps and packages." (type_identifier) "class" (identifier) "ArcDefaultAppList" ({) "{" (labeled_statement) "public:\n class Delegate {\n public:\n virtual void OnDefaultAppsReady() = 0;\n\n protected:\n virtual ~Delegate() {}\n }" (statement_identifier) "public" (:) ":" (ERROR) "class Delegate" (type_identifier) "class" (identifier) "Delegate" (compound_statement) "{\n public:\n virtual void OnDefaultAppsReady() = 0;\n\n protected:\n virtual ~Delegate() {}\n }" ({) "{" (labeled_statement) "public:\n virtual void OnDefaultAppsReady() = 0;" (statement_identifier) "public" (:) ":" (declaration) "virtual void OnDefaultAppsReady() = 0;" (type_identifier) "virtual" (ERROR) "void" (identifier) "void" (init_declarator) "OnDefaultAppsReady() = 0" (function_declarator) "OnDefaultAppsReady()" (identifier) "OnDefaultAppsReady" (parameter_list) "()" (() "(" ()) ")" (=) "=" (number_literal) "0" (;) ";" (labeled_statement) "protected:\n virtual ~Delegate() {}" (statement_identifier) "protected" (:) ":" (ERROR) "virtual ~Delegate()" (type_identifier) "virtual" (ERROR) "~" (~) "~" (function_declarator) "Delegate()" (identifier) "Delegate" (parameter_list) "()" (() "(" ()) ")" (compound_statement) "{}" ({) "{" (}) "}" (}) "}" (expression_statement) ";" (;) ";" (struct_specifier) "struct AppInfo {\n AppInfo(const std::string& name,\n const std::string& package_name,\n const std::string& activity,\n bool oem,\n const base::FilePath app_path);\n ~AppInfo();\n\n std::string name;\n std::string package_name;\n std::string activity;\n bool oem;\n base::FilePath app_path; // App folder that contains pre-installed icons.\n }" (struct) "struct" (type_identifier) "AppInfo" (field_declaration_list) "{\n AppInfo(const std::string& name,\n const std::string& package_name,\n const std::string& activity,\n bool oem,\n const base::FilePath app_path);\n ~AppInfo();\n\n std::string name;\n std::string package_name;\n std::string activity;\n bool oem;\n base::FilePath app_path; // App folder that contains pre-installed icons.\n }" ({) "{" (field_declaration) "AppInfo(const std::string& name,\n const std::string& package_name,\n const std::string& activity,\n bool oem,\n const base::FilePath app_path);" (macro_type_specifier) "AppInfo(const std::string& name,\n const std::string& package_name,\n const" (identifier) "AppInfo" (() "(" (ERROR) "const std::string& name,\n const std::" (type_descriptor) "const std" (type_qualifier) "const" (const) "const" (type_identifier) "std" (:) ":" (:) ":" (identifier) "string" (&) "&" (identifier) "name" (,) "," (type_descriptor) "const std" (type_qualifier) "const" (const) "const" (type_identifier) "std" (:) ":" (:) ":" (type_descriptor) "string& package_name,\n const" (type_identifier) "string" (ERROR) "& package_name," (&) "&" (identifier) "package_name" (,) "," (type_qualifier) "const" (const) "const" ()) "" (field_identifier) "std" (ERROR) ":" (:) ":" (bitfield_clause) ":string& activity" (:) ":" (binary_expression) "string& activity" (identifier) "string" (&) "&" (identifier) "activity" (,) "," (field_identifier) "bool" (ERROR) "oem" (identifier) "oem" (,) "," (field_identifier) "const" (ERROR) "base:" (identifier) "base" (:) ":" (bitfield_clause) ":FilePath" (:) ":" (identifier) "FilePath" (ERROR) "app_path)" (identifier) "app_path" ()) ")" (;) ";" (ERROR) "~" (~) "~" (field_declaration) "AppInfo();" (macro_type_specifier) "AppInfo()" (identifier) "AppInfo" (() "(" (type_descriptor) "" (type_identifier) "" ()) ")" (;) ";" (field_declaration) "std::string name;" (type_identifier) "std" (ERROR) "::string" (:) ":" (:) ":" (field_identifier) "string" (field_identifier) "name" (;) ";" (field_declaration) "std::string package_name;" (type_identifier) "std" (ERROR) "::string" (:) ":" (:) ":" (field_identifier) "string" (field_identifier) "package_name" (;) ";" (field_declaration) "std::string activity;" (type_identifier) "std" (ERROR) "::string" (:) ":" (:) ":" (field_identifier) "string" (field_identifier) "activity" (;) ";" (field_declaration) "bool oem;" (primitive_type) "bool" (field_identifier) "oem" (;) ";" (field_declaration) "base::FilePath app_path;" (type_identifier) "base" (ERROR) "::FilePath" (:) ":" (:) ":" (field_identifier) "FilePath" (field_identifier) "app_path" (;) ";" (comment) "// App folder that contains pre-installed icons." (}) "}" (;) ";" (function_definition) "enum class FilterLevel {\n // Filter nothing.\n NOTHING,\n // Filter out only optional apps, excluding Play Store for example. Used in\n // case when Play Store is managed and enabled.\n OPTIONAL_APPS,\n // Filter out everything. Used in case when Play Store is managed and\n // disabled.\n ALL\n };\n\n // Defines App id to default AppInfo mapping.\n using AppInfoMap = std::map<std::string, std::unique_ptr<AppInfo>>;\n\n ArcDefaultAppList(Delegate* delegate, content::BrowserContext* context);\n ~ArcDefaultAppList();\n\n static void UseTestAppsDirectory();\n\n // Returns default app info if it is found in defaults and its package is not\n // marked as uninstalled.\n const AppInfo* GetApp(const std::string& app_id) const;\n // Returns true if app is found in defaults and its package is not marked as\n // uninstalled.\n bool HasApp(const std::string& app_id) const;\n // Returns true if package exists in default packages list. Note it may be\n // marked as uninstalled.\n bool HasPackage(const std::string& package_name) const;\n // Sets uninstalled flag for default package if it exists in default packages\n // list.\n void MaybeMarkPackageUninstalled(const std::string& package_name,\n bool uninstalled);\n\n // Returns set of packages which are marked not as uninstalled.\n std::unordered_set<std::string> GetActivePackages() const;\n\n const AppInfoMap& app_map() const { return apps_; }\n\n void set_filter_level(FilterLevel filter_level) {\n filter_level_ = filter_level;\n }\n\n private:\n // Defines mapping package name to uninstalled state.\n using PackageMap = std::map<std::string, bool>;\n\n // Called when default apps are read.\n void OnAppsReady(std::unique_ptr<AppInfoMap> apps);\n\n // Unowned pointer.\n Delegate* const delegate_;\n content::BrowserContext* const context_;\n FilterLevel filter_level_ = FilterLevel::ALL;\n\n AppInfoMap apps_;\n PackageMap packages_;\n\n base::WeakPtrFactory<ArcDefaultAppList> weak_ptr_factory_;\n\n DISALLOW_COPY_AND_ASSIGN(ArcDefaultAppList);\n}" (enum_specifier) "enum class" (enum) "enum" (type_identifier) "class" (identifier) "FilterLevel" (compound_statement) "{\n // Filter nothing.\n NOTHING,\n // Filter out only optional apps, excluding Play Store for example. Used in\n // case when Play Store is managed and enabled.\n OPTIONAL_APPS,\n // Filter out everything. Used in case when Play Store is managed and\n // disabled.\n ALL\n };\n\n // Defines App id to default AppInfo mapping.\n using AppInfoMap = std::map<std::string, std::unique_ptr<AppInfo>>;\n\n ArcDefaultAppList(Delegate* delegate, content::BrowserContext* context);\n ~ArcDefaultAppList();\n\n static void UseTestAppsDirectory();\n\n // Returns default app info if it is found in defaults and its package is not\n // marked as uninstalled.\n const AppInfo* GetApp(const std::string& app_id) const;\n // Returns true if app is found in defaults and its package is not marked as\n // uninstalled.\n bool HasApp(const std::string& app_id) const;\n // Returns true if package exists in default packages list. Note it may be\n // marked as uninstalled.\n bool HasPackage(const std::string& package_name) const;\n // Sets uninstalled flag for default package if it exists in default packages\n // list.\n void MaybeMarkPackageUninstalled(const std::string& package_name,\n bool uninstalled);\n\n // Returns set of packages which are marked not as uninstalled.\n std::unordered_set<std::string> GetActivePackages() const;\n\n const AppInfoMap& app_map() const { return apps_; }\n\n void set_filter_level(FilterLevel filter_level) {\n filter_level_ = filter_level;\n }\n\n private:\n // Defines mapping package name to uninstalled state.\n using PackageMap = std::map<std::string, bool>;\n\n // Called when default apps are read.\n void OnAppsReady(std::unique_ptr<AppInfoMap> apps);\n\n // Unowned pointer.\n Delegate* const delegate_;\n content::BrowserContext* const context_;\n FilterLevel filter_level_ = FilterLevel::ALL;\n\n AppInfoMap apps_;\n PackageMap packages_;\n\n base::WeakPtrFactory<ArcDefaultAppList> weak_ptr_factory_;\n\n DISALLOW_COPY_AND_ASSIGN(ArcDefaultAppList);\n}" ({) "{" (comment) "// Filter nothing." (expression_statement) "NOTHING,\n // Filter out only optional apps, excluding Play Store for example. Used in\n // case when Play Store is managed and enabled.\n OPTIONAL_APPS,\n // Filter out everything. Used in case when Play Store is managed and\n // disabled.\n ALL\n };" (comma_expression) "NOTHING,\n // Filter out only optional apps, excluding Play Store for example. Used in\n // case when Play Store is managed and enabled.\n OPTIONAL_APPS,\n // Filter out everything. Used in case when Play Store is managed and\n // disabled.\n ALL" (identifier) "NOTHING" (,) "," (comment) "// Filter out only optional apps, excluding Play Store for example. Used in" (comment) "// case when Play Store is managed and enabled." (comma_expression) "OPTIONAL_APPS,\n // Filter out everything. Used in case when Play Store is managed and\n // disabled.\n ALL" (identifier) "OPTIONAL_APPS" (,) "," (comment) "// Filter out everything. Used in case when Play Store is managed and" (comment) "// disabled." (identifier) "ALL" (ERROR) "}" (}) "}" (;) ";" (comment) "// Defines App id to default AppInfo mapping." (declaration) "using AppInfoMap = std::map<std::string, std::unique_ptr<AppInfo>>;" (type_identifier) "using" (init_declarator) "AppInfoMap = std::map<std::string" (identifier) "AppInfoMap" (=) "=" (ERROR) "std::map<std::" (identifier) "std" (:) ":" (:) ":" (binary_expression) "map<std" (identifier) "map" (<) "<" (identifier) "std" (:) ":" (:) ":" (identifier) "string" (,) "," (ERROR) "std::unique_ptr<" (identifier) "std" (:) ":" (:) ":" (identifier) "unique_ptr" (<) "<" (identifier) "AppInfo" (ERROR) ">>" (>>) ">>" (;) ";" (expression_statement) "ArcDefaultAppList(Delegate* delegate, content::BrowserContext* context);" (call_expression) "ArcDefaultAppList(Delegate* delegate, content::BrowserContext* context)" (identifier) "ArcDefaultAppList" (argument_list) "(Delegate* delegate, content::BrowserContext* context)" (() "(" (binary_expression) "Delegate* delegate" (identifier) "Delegate" (*) "*" (identifier) "delegate" (,) "," (ERROR) "content::" (identifier) "content" (:) ":" (:) ":" (binary_expression) "BrowserContext* context" (identifier) "BrowserContext" (*) "*" (identifier) "context" ()) ")" (;) ";" (expression_statement) "~ArcDefaultAppList();" (unary_expression) "~ArcDefaultAppList()" (~) "~" (call_expression) "ArcDefaultAppList()" (identifier) "ArcDefaultAppList" (argument_list) "()" (() "(" ()) ")" (;) ";" (declaration) "static void UseTestAppsDirectory();" (storage_class_specifier) "static" (static) "static" (primitive_type) "void" (function_declarator) "UseTestAppsDirectory()" (identifier) "UseTestAppsDirectory" (parameter_list) "()" (() "(" ()) ")" (;) ";" (comment) "// Returns default app info if it is found in defaults and its package is not" (comment) "// marked as uninstalled." (declaration) "const AppInfo* GetApp(const std::string& app_id) const;" (type_qualifier) "const" (const) "const" (type_identifier) "AppInfo" (pointer_declarator) "* GetApp(const std::string& app_id) const" (*) "*" (function_declarator) "GetApp(const std::string& app_id) const" (identifier) "GetApp" (parameter_list) "(const std::string& app_id)" (() "(" (parameter_declaration) "const std::string& app_id" (type_qualifier) "const" (const) "const" (type_identifier) "std" (ERROR) "::string&" (:) ":" (:) ":" (identifier) "string" (&) "&" (identifier) "app_id" ()) ")" (identifier) "const" (;) ";" (comment) "// Returns true if app is found in defaults and its package is not marked as" (comment) "// uninstalled." (ERROR) "bool HasApp(const std::string& app_id) const" (primitive_type) "bool" (function_declarator) "HasApp(const std::string& app_id) const" (identifier) "HasApp" (parameter_list) "(const std::string& app_id)" (() "(" (parameter_declaration) "const std::string& app_id" (type_qualifier) "const" (const) "const" (type_identifier) "std" (ERROR) "::string&" (:) ":" (:) ":" (identifier) "string" (&) "&" (identifier) "app_id" ()) ")" (identifier) "const" (expression_statement) ";" (;) ";" (comment) "// Returns true if package exists in default packages list. Note it may be" (comment) "// marked as uninstalled." (ERROR) "bool HasPackage(const std::string& package_name) const" (primitive_type) "bool" (function_declarator) "HasPackage(const std::string& package_name) const" (identifier) "HasPackage" (parameter_list) "(const std::string& package_name)" (() "(" (parameter_declaration) "const std::string& package_name" (type_qualifier) "const" (const) "const" (type_identifier) "std" (ERROR) "::string&" (:) ":" (:) ":" (identifier) "string" (&) "&" (identifier) "package_name" ()) ")" (identifier) "const" (expression_statement) ";" (;) ";" (comment) "// Sets uninstalled flag for default package if it exists in default packages" (comment) "// list." (declaration) "void MaybeMarkPackageUninstalled(const std::string& package_name,\n bool uninstalled);" (primitive_type) "void" (function_declarator) "MaybeMarkPackageUninstalled(const std::string& package_name,\n bool uninstalled)" (identifier) "MaybeMarkPackageUninstalled" (parameter_list) "(const std::string& package_name,\n bool uninstalled)" (() "(" (parameter_declaration) "const std::string& package_name" (type_qualifier) "const" (const) "const" (type_identifier) "std" (ERROR) "::string&" (:) ":" (:) ":" (identifier) "string" (&) "&" (identifier) "package_name" (,) "," (parameter_declaration) "bool uninstalled" (primitive_type) "bool" (identifier) "uninstalled" ()) ")" (;) ";" (comment) "// Returns set of packages which are marked not as uninstalled." (labeled_statement) "std::unordered_set<std::string> GetActivePackages() const;" (statement_identifier) "std" (ERROR) "::unordered_set<std:" (:) ":" (:) ":" (binary_expression) "unordered_set<std" (identifier) "unordered_set" (<) "<" (identifier) "std" (:) ":" (:) ":" (expression_statement) "string> GetActivePackages() const;" (binary_expression) "string> GetActivePackages()" (identifier) "string" (>) ">" (call_expression) "GetActivePackages()" (identifier) "GetActivePackages" (argument_list) "()" (() "(" ()) ")" (ERROR) "const" (identifier) "const" (;) ";" (ERROR) "const AppInfoMap& app_map() const" (type_qualifier) "const" (const) "const" (type_identifier) "AppInfoMap" (ERROR) "&" (&) "&" (function_declarator) "app_map()" (identifier) "app_map" (parameter_list) "()" (() "(" ()) ")" (type_qualifier) "const" (const) "const" (compound_statement) "{ return apps_; }" ({) "{" (return_statement) "return apps_;" (return) "return" (identifier) "apps_" (;) ";" (}) "}" (function_definition) "void set_filter_level(FilterLevel filter_level) {\n filter_level_ = filter_level;\n }" (primitive_type) "void" (function_declarator) "set_filter_level(FilterLevel filter_level)" (identifier) "set_filter_level" (parameter_list) "(FilterLevel filter_level)" (() "(" (parameter_declaration) "FilterLevel filter_level" (type_identifier) "FilterLevel" (identifier) "filter_level" ()) ")" (compound_statement) "{\n filter_level_ = filter_level;\n }" ({) "{" (expression_statement) "filter_level_ = filter_level;" (assignment_expression) "filter_level_ = filter_level" (identifier) "filter_level_" (=) "=" (identifier) "filter_level" (;) ";" (}) "}" (labeled_statement) "private:\n // Defines mapping package name to uninstalled state.\n using PackageMap = std::map<std::string, bool>;" (statement_identifier) "private" (:) ":" (comment) "// Defines mapping package name to uninstalled state." (declaration) "using PackageMap = std::map<std::string, bool>;" (type_identifier) "using" (init_declarator) "PackageMap = std::map<std::string" (identifier) "PackageMap" (=) "=" (ERROR) "std::map<std::" (identifier) "std" (:) ":" (:) ":" (binary_expression) "map<std" (identifier) "map" (<) "<" (identifier) "std" (:) ":" (:) ":" (identifier) "string" (,) "," (identifier) "bool" (ERROR) ">" (>) ">" (;) ";" (comment) "// Called when default apps are read." (declaration) "void OnAppsReady(std::unique_ptr<AppInfoMap> apps);" (primitive_type) "void" (function_declarator) "OnAppsReady(std::unique_ptr<AppInfoMap> apps)" (identifier) "OnAppsReady" (parameter_list) "(std::unique_ptr<AppInfoMap> apps)" (() "(" (parameter_declaration) "std::unique_ptr<AppInfoMap> apps" (type_identifier) "std" (ERROR) "::unique_ptr<AppInfoMap>" (:) ":" (:) ":" (identifier) "unique_ptr" (<) "<" (identifier) "AppInfoMap" (>) ">" (identifier) "apps" ()) ")" (;) ";" (comment) "// Unowned pointer." (declaration) "Delegate* const delegate_;" (type_identifier) "Delegate" (pointer_declarator) "* const delegate_" (*) "*" (type_qualifier) "const" (const) "const" (identifier) "delegate_" (;) ";" (labeled_statement) "content::BrowserContext* const context_;" (statement_identifier) "content" (:) ":" (ERROR) ":" (:) ":" (declaration) "BrowserContext* const context_;" (type_identifier) "BrowserContext" (pointer_declarator) "* const context_" (*) "*" (type_qualifier) "const" (const) "const" (identifier) "context_" (;) ";" (declaration) "FilterLevel filter_level_ = FilterLevel::ALL;" (type_identifier) "FilterLevel" (init_declarator) "filter_level_ = FilterLevel" (identifier) "filter_level_" (=) "=" (identifier) "FilterLevel" (ERROR) "::ALL" (:) ":" (:) ":" (identifier) "ALL" (;) ";" (declaration) "AppInfoMap apps_;" (type_identifier) "AppInfoMap" (identifier) "apps_" (;) ";" (declaration) "PackageMap packages_;" (type_identifier) "PackageMap" (identifier) "packages_" (;) ";" (labeled_statement) "base::WeakPtrFactory<ArcDefaultAppList> weak_ptr_factory_;" (statement_identifier) "base" (:) ":" (ERROR) ":" (:) ":" (expression_statement) "WeakPtrFactory<ArcDefaultAppList> weak_ptr_factory_;" (binary_expression) "WeakPtrFactory<ArcDefaultAppList> weak_ptr_factory_" (binary_expression) "WeakPtrFactory<ArcDefaultAppList" (identifier) "WeakPtrFactory" (<) "<" (identifier) "ArcDefaultAppList" (>) ">" (identifier) "weak_ptr_factory_" (;) ";" (expression_statement) "DISALLOW_COPY_AND_ASSIGN(ArcDefaultAppList);" (call_expression) "DISALLOW_COPY_AND_ASSIGN(ArcDefaultAppList)" (identifier) "DISALLOW_COPY_AND_ASSIGN" (argument_list) "(ArcDefaultAppList)" (() "(" (identifier) "ArcDefaultAppList" ()) ")" (;) ";" (}) "}" (expression_statement) ";" (;) ";" (preproc_call) "#endif // CHROME_BROWSER_UI_APP_LIST_ARC_ARC_DEFAULT_APP_LIST_H_\n" (preproc_directive) "#endif" (comment) "// CHROME_BROWSER_UI_APP_LIST_ARC_ARC_DEFAULT_APP_LIST_H_"
567
37
{"language": "c", "success": true, "metadata": {"lines": 87, "avg_line_length": 36.59, "nodes": 317, "errors": 0, "source_hash": "4efd118fafc6e780f0cef817f98fc89bc0fa9b1d1694def92fc4d5eb8fb319b8", "categorized_nodes": 219}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "ERROR", "text": "#ifndef CHROME_BROWSER_UI_APP_LIST_ARC_ARC_DEFAULT_APP_LIST_H_\n#define CHROME_BROWSER_UI_APP_LIST_ARC_ARC_DEFAULT_APP_LIST_H_\n\n#include <stdint.h>\n\n#include <map>\n#include <memory>\n#include <string>\n#include <unordered_set>\n\n#include \"base/files/file_path.h\"\n#include \"base/macros.h\"\n#include \"base/memory/weak_ptr.h\"\n\nnamespace content {\nclass BrowserContext;\n}\n\n// Contains map of default pre-installed apps and packages.\nclass ArcDefaultAppList {\n public:\n class Delegate {\n public:\n virtual void OnDefaultAppsReady() = 0;\n\n protected:\n virtual ~Delegate() {}\n };\n\n struct AppInfo {\n AppInfo(const std::string& name,\n const std::string& package_name,\n const std::string& activity,\n bool oem,\n const base::FilePath app_path);\n ~AppInfo();\n\n std::string name;\n std::string package_name;\n std::string activity;\n bool oem;\n base::FilePath app_path; // App folder that contains pre-installed icons.\n };\n\n enum class FilterLevel {\n // Filter nothing.\n NOTHING,\n // Filter out only optional apps, excluding Play Store for example. Used in\n // case when Play Store is managed and enabled.\n OPTIONAL_APPS,\n // Filter out everything. Used in case when Play Store is managed and\n // disabled.\n ALL\n };\n\n // Defines App id to default AppInfo mapping.\n using AppInfoMap = std::map<std::string, std::unique_ptr<AppInfo>>;\n\n ArcDefaultAppList(Delegate* delegate, content::BrowserContext* context);\n ~ArcDefaultAppList();\n\n static void UseTestAppsDirectory();\n\n // Returns default app info if it is found in defaults and its package is not\n // marked as uninstalled.\n const AppInfo* GetApp(const std::string& app_id) const;\n // Returns true if app is found in defaults and its package is not marked as\n // uninstalled.\n bool HasApp(const std::string& app_id) const;\n // Returns true if package exists in default packages list. Note it may be\n // marked as uninstalled.\n bool HasPackage(const std::string& package_name) const;\n // Sets uninstalled flag for default package if it exists in default packages\n // list.\n void MaybeMarkPackageUninstalled(const std::string& package_name,\n bool uninstalled);\n\n // Returns set of packages which are marked not as uninstalled.\n std::unordered_set<std::string> GetActivePackages() const;\n\n const AppInfoMap& app_map() const { return apps_; }\n\n void set_filter_level(FilterLevel filter_level) {\n filter_level_ = filter_level;\n }\n\n private:\n // Defines mapping package name to uninstalled state.\n using PackageMap = std::map<std::string, bool>;\n\n // Called when default apps are read.\n void OnAppsReady(std::unique_ptr<AppInfoMap> apps);\n\n // Unowned pointer.\n Delegate* const delegate_;\n content::BrowserContext* const context_;\n FilterLevel filter_level_ = FilterLevel::ALL;\n\n AppInfoMap apps_;\n PackageMap packages_;\n\n base::WeakPtrFactory<ArcDefaultAppList> weak_ptr_factory_;\n\n DISALLOW_COPY_AND_ASSIGN(ArcDefaultAppList);\n};\n\n#endif // CHROME_BROWSER_UI_APP_LIST_ARC_ARC_DEFAULT_APP_LIST_H_\n", "parent": null, "children": [1, 2, 3, 6, 9, 12, 15, 18, 21, 24, 27, 30, 35, 36, 58, 119, 315], "start_point": {"row": 4, "column": 0}, "end_point": {"row": 111, "column": 0}}, {"id": 1, "type": "#ifndef", "text": "#ifndef", "parent": 0, "children": [], "start_point": {"row": 4, "column": 0}, "end_point": {"row": 4, "column": 7}}, {"id": 2, "type": "identifier", "text": "CHROME_BROWSER_UI_APP_LIST_ARC_ARC_DEFAULT_APP_LIST_H_", "parent": 0, "children": [], "start_point": {"row": 4, "column": 8}, "end_point": {"row": 4, "column": 62}}, {"id": 3, "type": "preproc_def", "text": "#define CHROME_BROWSER_UI_APP_LIST_ARC_ARC_DEFAULT_APP_LIST_H_\n", "parent": 0, "children": [4, 5], "start_point": {"row": 5, "column": 0}, "end_point": {"row": 6, "column": 0}}, {"id": 4, "type": "#define", "text": "#define", "parent": 3, "children": [], "start_point": {"row": 5, "column": 0}, "end_point": {"row": 5, "column": 7}}, {"id": 5, "type": "identifier", "text": "CHROME_BROWSER_UI_APP_LIST_ARC_ARC_DEFAULT_APP_LIST_H_", "parent": 3, "children": [], "start_point": {"row": 5, "column": 8}, "end_point": {"row": 5, "column": 62}}, {"id": 6, "type": "preproc_include", "text": "#include <stdint.h>\n", "parent": 0, "children": [7, 8], "start_point": {"row": 7, "column": 0}, "end_point": {"row": 8, "column": 0}}, {"id": 7, "type": "#include", "text": "#include", "parent": 6, "children": [], "start_point": {"row": 7, "column": 0}, "end_point": {"row": 7, "column": 8}}, {"id": 8, "type": "system_lib_string", "text": "<stdint.h>", "parent": 6, "children": [], "start_point": {"row": 7, "column": 9}, "end_point": {"row": 7, "column": 19}}, {"id": 9, "type": "preproc_include", "text": "#include <map>\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": "system_lib_string", "text": "<map>", "parent": 9, "children": [], "start_point": {"row": 9, "column": 9}, "end_point": {"row": 9, "column": 14}}, {"id": 12, "type": "preproc_include", "text": "#include <memory>\n", "parent": 0, "children": [13, 14], "start_point": {"row": 10, "column": 0}, "end_point": {"row": 11, "column": 0}}, {"id": 13, "type": "#include", "text": "#include", "parent": 12, "children": [], "start_point": {"row": 10, "column": 0}, "end_point": {"row": 10, "column": 8}}, {"id": 14, "type": "system_lib_string", "text": "<memory>", "parent": 12, "children": [], "start_point": {"row": 10, "column": 9}, "end_point": {"row": 10, "column": 17}}, {"id": 15, "type": "preproc_include", "text": "#include <string>\n", "parent": 0, "children": [16, 17], "start_point": {"row": 11, "column": 0}, "end_point": {"row": 12, "column": 0}}, {"id": 16, "type": "#include", "text": "#include", "parent": 15, "children": [], "start_point": {"row": 11, "column": 0}, "end_point": {"row": 11, "column": 8}}, {"id": 17, "type": "system_lib_string", "text": "<string>", "parent": 15, "children": [], "start_point": {"row": 11, "column": 9}, "end_point": {"row": 11, "column": 17}}, {"id": 18, "type": "preproc_include", "text": "#include <unordered_set>\n", "parent": 0, "children": [19, 20], "start_point": {"row": 12, "column": 0}, "end_point": {"row": 13, "column": 0}}, {"id": 19, "type": "#include", "text": "#include", "parent": 18, "children": [], "start_point": {"row": 12, "column": 0}, "end_point": {"row": 12, "column": 8}}, {"id": 20, "type": "system_lib_string", "text": "<unordered_set>", "parent": 18, "children": [], "start_point": {"row": 12, "column": 9}, "end_point": {"row": 12, "column": 24}}, {"id": 21, "type": "preproc_include", "text": "#include \"base/files/file_path.h\"\n", "parent": 0, "children": [22, 23], "start_point": {"row": 14, "column": 0}, "end_point": {"row": 15, "column": 0}}, {"id": 22, "type": "#include", "text": "#include", "parent": 21, "children": [], "start_point": {"row": 14, "column": 0}, "end_point": {"row": 14, "column": 8}}, {"id": 23, "type": "string_literal", "text": "\"base/files/file_path.h\"", "parent": 21, "children": [], "start_point": {"row": 14, "column": 9}, "end_point": {"row": 14, "column": 33}}, {"id": 24, "type": "preproc_include", "text": "#include \"base/macros.h\"\n", "parent": 0, "children": [25, 26], "start_point": {"row": 15, "column": 0}, "end_point": {"row": 16, "column": 0}}, {"id": 25, "type": "#include", "text": "#include", "parent": 24, "children": [], "start_point": {"row": 15, "column": 0}, "end_point": {"row": 15, "column": 8}}, {"id": 26, "type": "string_literal", "text": "\"base/macros.h\"", "parent": 24, "children": [], "start_point": {"row": 15, "column": 9}, "end_point": {"row": 15, "column": 24}}, {"id": 27, "type": "preproc_include", "text": "#include \"base/memory/weak_ptr.h\"\n", "parent": 0, "children": [28, 29], "start_point": {"row": 16, "column": 0}, "end_point": {"row": 17, "column": 0}}, {"id": 28, "type": "#include", "text": "#include", "parent": 27, "children": [], "start_point": {"row": 16, "column": 0}, "end_point": {"row": 16, "column": 8}}, {"id": 29, "type": "string_literal", "text": "\"base/memory/weak_ptr.h\"", "parent": 27, "children": [], "start_point": {"row": 16, "column": 9}, "end_point": {"row": 16, "column": 33}}, {"id": 30, "type": "function_definition", "text": "namespace content {\nclass BrowserContext;\n}", "parent": 0, "children": [31, 32], "start_point": {"row": 18, "column": 0}, "end_point": {"row": 20, "column": 1}}, {"id": 31, "type": "type_identifier", "text": "namespace", "parent": 30, "children": [], "start_point": {"row": 18, "column": 0}, "end_point": {"row": 18, "column": 9}}, {"id": 32, "type": "identifier", "text": "content", "parent": 30, "children": [], "start_point": {"row": 18, "column": 10}, "end_point": {"row": 18, "column": 17}}, {"id": 33, "type": "declaration", "text": "class BrowserContext;", "parent": 30, "children": [34], "start_point": {"row": 19, "column": 0}, "end_point": {"row": 19, "column": 21}}, {"id": 34, "type": "identifier", "text": "BrowserContext", "parent": 33, "children": [], "start_point": {"row": 19, "column": 6}, "end_point": {"row": 19, "column": 20}}, {"id": 35, "type": "identifier", "text": "ArcDefaultAppList", "parent": 0, "children": [], "start_point": {"row": 23, "column": 6}, "end_point": {"row": 23, "column": 23}}, {"id": 36, "type": "labeled_statement", "text": "public:\n class Delegate {\n public:\n virtual void OnDefaultAppsReady() = 0;\n\n protected:\n virtual ~Delegate() {}\n }", "parent": 0, "children": [37], "start_point": {"row": 24, "column": 1}, "end_point": {"row": 31, "column": 3}}, {"id": 37, "type": "ERROR", "text": "class Delegate", "parent": 36, "children": [38], "start_point": {"row": 25, "column": 2}, "end_point": {"row": 25, "column": 16}}, {"id": 38, "type": "identifier", "text": "Delegate", "parent": 37, "children": [], "start_point": {"row": 25, "column": 8}, "end_point": {"row": 25, "column": 16}}, {"id": 39, "type": "labeled_statement", "text": "public:\n virtual void OnDefaultAppsReady() = 0;", "parent": 36, "children": [40], "start_point": {"row": 26, "column": 3}, "end_point": {"row": 27, "column": 42}}, {"id": 40, "type": "declaration", "text": "virtual void OnDefaultAppsReady() = 0;", "parent": 39, "children": [41, 42, 44], "start_point": {"row": 27, "column": 4}, "end_point": {"row": 27, "column": 42}}, {"id": 41, "type": "type_identifier", "text": "virtual", "parent": 40, "children": [], "start_point": {"row": 27, "column": 4}, "end_point": {"row": 27, "column": 11}}, {"id": 42, "type": "ERROR", "text": "void", "parent": 40, "children": [43], "start_point": {"row": 27, "column": 12}, "end_point": {"row": 27, "column": 16}}, {"id": 43, "type": "identifier", "text": "void", "parent": 42, "children": [], "start_point": {"row": 27, "column": 12}, "end_point": {"row": 27, "column": 16}}, {"id": 44, "type": "init_declarator", "text": "OnDefaultAppsReady() = 0", "parent": 40, "children": [45, 48, 49], "start_point": {"row": 27, "column": 17}, "end_point": {"row": 27, "column": 41}}, {"id": 45, "type": "function_declarator", "text": "OnDefaultAppsReady()", "parent": 44, "children": [46, 47], "start_point": {"row": 27, "column": 17}, "end_point": {"row": 27, "column": 37}}, {"id": 46, "type": "identifier", "text": "OnDefaultAppsReady", "parent": 45, "children": [], "start_point": {"row": 27, "column": 17}, "end_point": {"row": 27, "column": 35}}, {"id": 47, "type": "parameter_list", "text": "()", "parent": 45, "children": [], "start_point": {"row": 27, "column": 35}, "end_point": {"row": 27, "column": 37}}, {"id": 48, "type": "=", "text": "=", "parent": 44, "children": [], "start_point": {"row": 27, "column": 38}, "end_point": {"row": 27, "column": 39}}, {"id": 49, "type": "number_literal", "text": "0", "parent": 44, "children": [], "start_point": {"row": 27, "column": 40}, "end_point": {"row": 27, "column": 41}}, {"id": 50, "type": "labeled_statement", "text": "protected:\n virtual ~Delegate() {}", "parent": 36, "children": [51], "start_point": {"row": 29, "column": 3}, "end_point": {"row": 30, "column": 26}}, {"id": 51, "type": "ERROR", "text": "virtual ~Delegate()", "parent": 50, "children": [52, 53, 55], "start_point": {"row": 30, "column": 4}, "end_point": {"row": 30, "column": 23}}, {"id": 52, "type": "type_identifier", "text": "virtual", "parent": 51, "children": [], "start_point": {"row": 30, "column": 4}, "end_point": {"row": 30, "column": 11}}, {"id": 53, "type": "ERROR", "text": "~", "parent": 51, "children": [54], "start_point": {"row": 30, "column": 12}, "end_point": {"row": 30, "column": 13}}, {"id": 54, "type": "~", "text": "~", "parent": 53, "children": [], "start_point": {"row": 30, "column": 12}, "end_point": {"row": 30, "column": 13}}, {"id": 55, "type": "function_declarator", "text": "Delegate()", "parent": 51, "children": [56, 57], "start_point": {"row": 30, "column": 13}, "end_point": {"row": 30, "column": 23}}, {"id": 56, "type": "identifier", "text": "Delegate", "parent": 55, "children": [], "start_point": {"row": 30, "column": 13}, "end_point": {"row": 30, "column": 21}}, {"id": 57, "type": "parameter_list", "text": "()", "parent": 55, "children": [], "start_point": {"row": 30, "column": 21}, "end_point": {"row": 30, "column": 23}}, {"id": 58, "type": "struct_specifier", "text": "struct AppInfo {\n AppInfo(const std::string& name,\n const std::string& package_name,\n const std::string& activity,\n bool oem,\n const base::FilePath app_path);\n ~AppInfo();\n\n std::string name;\n std::string package_name;\n std::string activity;\n bool oem;\n base::FilePath app_path; // App folder that contains pre-installed icons.\n }", "parent": 0, "children": [59, 60], "start_point": {"row": 33, "column": 2}, "end_point": {"row": 46, "column": 3}}, {"id": 59, "type": "struct", "text": "struct", "parent": 58, "children": [], "start_point": {"row": 33, "column": 2}, "end_point": {"row": 33, "column": 8}}, {"id": 60, "type": "type_identifier", "text": "AppInfo", "parent": 58, "children": [], "start_point": {"row": 33, "column": 9}, "end_point": {"row": 33, "column": 16}}, {"id": 61, "type": "field_declaration", "text": "AppInfo(const std::string& name,\n const std::string& package_name,\n const std::string& activity,\n bool oem,\n const base::FilePath app_path);", "parent": 58, "children": [62, 75, 76, 80, 81, 83, 85, 87], "start_point": {"row": 34, "column": 4}, "end_point": {"row": 38, "column": 50}}, {"id": 62, "type": "macro_type_specifier", "text": "AppInfo(const std::string& name,\n const std::string& package_name,\n const", "parent": 61, "children": [63, 64, 71], "start_point": {"row": 34, "column": 4}, "end_point": {"row": 36, "column": 24}}, {"id": 63, "type": "identifier", "text": "AppInfo", "parent": 62, "children": [], "start_point": {"row": 34, "column": 4}, "end_point": {"row": 34, "column": 11}}, {"id": 64, "type": "ERROR", "text": "const std::string& name,\n const std::", "parent": 62, "children": [65, 67, 68, 69], "start_point": {"row": 34, "column": 12}, "end_point": {"row": 35, "column": 30}}, {"id": 65, "type": "type_descriptor", "text": "const std", "parent": 64, "children": [66], "start_point": {"row": 34, "column": 12}, "end_point": {"row": 34, "column": 21}}, {"id": 66, "type": "type_identifier", "text": "std", "parent": 65, "children": [], "start_point": {"row": 34, "column": 18}, "end_point": {"row": 34, "column": 21}}, {"id": 67, "type": "identifier", "text": "string", "parent": 64, "children": [], "start_point": {"row": 34, "column": 23}, "end_point": {"row": 34, "column": 29}}, {"id": 68, "type": "identifier", "text": "name", "parent": 64, "children": [], "start_point": {"row": 34, "column": 31}, "end_point": {"row": 34, "column": 35}}, {"id": 69, "type": "type_descriptor", "text": "const std", "parent": 64, "children": [70], "start_point": {"row": 35, "column": 19}, "end_point": {"row": 35, "column": 28}}, {"id": 70, "type": "type_identifier", "text": "std", "parent": 69, "children": [], "start_point": {"row": 35, "column": 25}, "end_point": {"row": 35, "column": 28}}, {"id": 71, "type": "type_descriptor", "text": "string& package_name,\n const", "parent": 62, "children": [72, 73], "start_point": {"row": 35, "column": 30}, "end_point": {"row": 36, "column": 24}}, {"id": 72, "type": "type_identifier", "text": "string", "parent": 71, "children": [], "start_point": {"row": 35, "column": 30}, "end_point": {"row": 35, "column": 36}}, {"id": 73, "type": "ERROR", "text": "& package_name,", "parent": 71, "children": [74], "start_point": {"row": 35, "column": 36}, "end_point": {"row": 35, "column": 51}}, {"id": 74, "type": "identifier", "text": "package_name", "parent": 73, "children": [], "start_point": {"row": 35, "column": 38}, "end_point": {"row": 35, "column": 50}}, {"id": 75, "type": "field_identifier", "text": "std", "parent": 61, "children": [], "start_point": {"row": 36, "column": 25}, "end_point": {"row": 36, "column": 28}}, {"id": 76, "type": "bitfield_clause", "text": ":string& activity", "parent": 61, "children": [77], "start_point": {"row": 36, "column": 29}, "end_point": {"row": 36, "column": 46}}, {"id": 77, "type": "binary_expression", "text": "string& activity", "parent": 76, "children": [78, 79], "start_point": {"row": 36, "column": 30}, "end_point": {"row": 36, "column": 46}}, {"id": 78, "type": "identifier", "text": "string", "parent": 77, "children": [], "start_point": {"row": 36, "column": 30}, "end_point": {"row": 36, "column": 36}}, {"id": 79, "type": "identifier", "text": "activity", "parent": 77, "children": [], "start_point": {"row": 36, "column": 38}, "end_point": {"row": 36, "column": 46}}, {"id": 80, "type": "field_identifier", "text": "bool", "parent": 61, "children": [], "start_point": {"row": 37, "column": 19}, "end_point": {"row": 37, "column": 23}}, {"id": 81, "type": "ERROR", "text": "oem", "parent": 61, "children": [82], "start_point": {"row": 37, "column": 24}, "end_point": {"row": 37, "column": 27}}, {"id": 82, "type": "identifier", "text": "oem", "parent": 81, "children": [], "start_point": {"row": 37, "column": 24}, "end_point": {"row": 37, "column": 27}}, {"id": 83, "type": "ERROR", "text": "base:", "parent": 61, "children": [84], "start_point": {"row": 38, "column": 25}, "end_point": {"row": 38, "column": 30}}, {"id": 84, "type": "identifier", "text": "base", "parent": 83, "children": [], "start_point": {"row": 38, "column": 25}, "end_point": {"row": 38, "column": 29}}, {"id": 85, "type": "bitfield_clause", "text": ":FilePath", "parent": 61, "children": [86], "start_point": {"row": 38, "column": 30}, "end_point": {"row": 38, "column": 39}}, {"id": 86, "type": "identifier", "text": "FilePath", "parent": 85, "children": [], "start_point": {"row": 38, "column": 31}, "end_point": {"row": 38, "column": 39}}, {"id": 87, "type": "ERROR", "text": "app_path)", "parent": 61, "children": [88], "start_point": {"row": 38, "column": 40}, "end_point": {"row": 38, "column": 49}}, {"id": 88, "type": "identifier", "text": "app_path", "parent": 87, "children": [], "start_point": {"row": 38, "column": 40}, "end_point": {"row": 38, "column": 48}}, {"id": 89, "type": "ERROR", "text": "~", "parent": 58, "children": [90], "start_point": {"row": 39, "column": 4}, "end_point": {"row": 39, "column": 5}}, {"id": 90, "type": "~", "text": "~", "parent": 89, "children": [], "start_point": {"row": 39, "column": 4}, "end_point": {"row": 39, "column": 5}}, {"id": 91, "type": "field_declaration", "text": "AppInfo();", "parent": 58, "children": [92], "start_point": {"row": 39, "column": 5}, "end_point": {"row": 39, "column": 15}}, {"id": 92, "type": "macro_type_specifier", "text": "AppInfo()", "parent": 91, "children": [93, 94], "start_point": {"row": 39, "column": 5}, "end_point": {"row": 39, "column": 14}}, {"id": 93, "type": "identifier", "text": "AppInfo", "parent": 92, "children": [], "start_point": {"row": 39, "column": 5}, "end_point": {"row": 39, "column": 12}}, {"id": 94, "type": "type_descriptor", "text": "", "parent": 92, "children": [95], "start_point": {"row": 39, "column": 13}, "end_point": {"row": 39, "column": 13}}, {"id": 95, "type": "type_identifier", "text": "", "parent": 94, "children": [], "start_point": {"row": 39, "column": 13}, "end_point": {"row": 39, "column": 13}}, {"id": 96, "type": "field_declaration", "text": "std::string name;", "parent": 58, "children": [97, 98, 100], "start_point": {"row": 41, "column": 4}, "end_point": {"row": 41, "column": 21}}, {"id": 97, "type": "type_identifier", "text": "std", "parent": 96, "children": [], "start_point": {"row": 41, "column": 4}, "end_point": {"row": 41, "column": 7}}, {"id": 98, "type": "ERROR", "text": "::string", "parent": 96, "children": [99], "start_point": {"row": 41, "column": 7}, "end_point": {"row": 41, "column": 15}}, {"id": 99, "type": "field_identifier", "text": "string", "parent": 98, "children": [], "start_point": {"row": 41, "column": 9}, "end_point": {"row": 41, "column": 15}}, {"id": 100, "type": "field_identifier", "text": "name", "parent": 96, "children": [], "start_point": {"row": 41, "column": 16}, "end_point": {"row": 41, "column": 20}}, {"id": 101, "type": "field_declaration", "text": "std::string package_name;", "parent": 58, "children": [102, 103, 105], "start_point": {"row": 42, "column": 4}, "end_point": {"row": 42, "column": 29}}, {"id": 102, "type": "type_identifier", "text": "std", "parent": 101, "children": [], "start_point": {"row": 42, "column": 4}, "end_point": {"row": 42, "column": 7}}, {"id": 103, "type": "ERROR", "text": "::string", "parent": 101, "children": [104], "start_point": {"row": 42, "column": 7}, "end_point": {"row": 42, "column": 15}}, {"id": 104, "type": "field_identifier", "text": "string", "parent": 103, "children": [], "start_point": {"row": 42, "column": 9}, "end_point": {"row": 42, "column": 15}}, {"id": 105, "type": "field_identifier", "text": "package_name", "parent": 101, "children": [], "start_point": {"row": 42, "column": 16}, "end_point": {"row": 42, "column": 28}}, {"id": 106, "type": "field_declaration", "text": "std::string activity;", "parent": 58, "children": [107, 108, 110], "start_point": {"row": 43, "column": 4}, "end_point": {"row": 43, "column": 25}}, {"id": 107, "type": "type_identifier", "text": "std", "parent": 106, "children": [], "start_point": {"row": 43, "column": 4}, "end_point": {"row": 43, "column": 7}}, {"id": 108, "type": "ERROR", "text": "::string", "parent": 106, "children": [109], "start_point": {"row": 43, "column": 7}, "end_point": {"row": 43, "column": 15}}, {"id": 109, "type": "field_identifier", "text": "string", "parent": 108, "children": [], "start_point": {"row": 43, "column": 9}, "end_point": {"row": 43, "column": 15}}, {"id": 110, "type": "field_identifier", "text": "activity", "parent": 106, "children": [], "start_point": {"row": 43, "column": 16}, "end_point": {"row": 43, "column": 24}}, {"id": 111, "type": "field_declaration", "text": "bool oem;", "parent": 58, "children": [112, 113], "start_point": {"row": 44, "column": 4}, "end_point": {"row": 44, "column": 13}}, {"id": 112, "type": "primitive_type", "text": "bool", "parent": 111, "children": [], "start_point": {"row": 44, "column": 4}, "end_point": {"row": 44, "column": 8}}, {"id": 113, "type": "field_identifier", "text": "oem", "parent": 111, "children": [], "start_point": {"row": 44, "column": 9}, "end_point": {"row": 44, "column": 12}}, {"id": 114, "type": "field_declaration", "text": "base::FilePath app_path;", "parent": 58, "children": [115, 116, 118], "start_point": {"row": 45, "column": 4}, "end_point": {"row": 45, "column": 28}}, {"id": 115, "type": "type_identifier", "text": "base", "parent": 114, "children": [], "start_point": {"row": 45, "column": 4}, "end_point": {"row": 45, "column": 8}}, {"id": 116, "type": "ERROR", "text": "::FilePath", "parent": 114, "children": [117], "start_point": {"row": 45, "column": 8}, "end_point": {"row": 45, "column": 18}}, {"id": 117, "type": "field_identifier", "text": "FilePath", "parent": 116, "children": [], "start_point": {"row": 45, "column": 10}, "end_point": {"row": 45, "column": 18}}, {"id": 118, "type": "field_identifier", "text": "app_path", "parent": 114, "children": [], "start_point": {"row": 45, "column": 19}, "end_point": {"row": 45, "column": 27}}, {"id": 119, "type": "function_definition", "text": "enum class FilterLevel {\n // Filter nothing.\n NOTHING,\n // Filter out only optional apps, excluding Play Store for example. Used in\n // case when Play Store is managed and enabled.\n OPTIONAL_APPS,\n // Filter out everything. Used in case when Play Store is managed and\n // disabled.\n ALL\n };\n\n // Defines App id to default AppInfo mapping.\n using AppInfoMap = std::map<std::string, std::unique_ptr<AppInfo>>;\n\n ArcDefaultAppList(Delegate* delegate, content::BrowserContext* context);\n ~ArcDefaultAppList();\n\n static void UseTestAppsDirectory();\n\n // Returns default app info if it is found in defaults and its package is not\n // marked as uninstalled.\n const AppInfo* GetApp(const std::string& app_id) const;\n // Returns true if app is found in defaults and its package is not marked as\n // uninstalled.\n bool HasApp(const std::string& app_id) const;\n // Returns true if package exists in default packages list. Note it may be\n // marked as uninstalled.\n bool HasPackage(const std::string& package_name) const;\n // Sets uninstalled flag for default package if it exists in default packages\n // list.\n void MaybeMarkPackageUninstalled(const std::string& package_name,\n bool uninstalled);\n\n // Returns set of packages which are marked not as uninstalled.\n std::unordered_set<std::string> GetActivePackages() const;\n\n const AppInfoMap& app_map() const { return apps_; }\n\n void set_filter_level(FilterLevel filter_level) {\n filter_level_ = filter_level;\n }\n\n private:\n // Defines mapping package name to uninstalled state.\n using PackageMap = std::map<std::string, bool>;\n\n // Called when default apps are read.\n void OnAppsReady(std::unique_ptr<AppInfoMap> apps);\n\n // Unowned pointer.\n Delegate* const delegate_;\n content::BrowserContext* const context_;\n FilterLevel filter_level_ = FilterLevel::ALL;\n\n AppInfoMap apps_;\n PackageMap packages_;\n\n base::WeakPtrFactory<ArcDefaultAppList> weak_ptr_factory_;\n\n DISALLOW_COPY_AND_ASSIGN(ArcDefaultAppList);\n}", "parent": 0, "children": [120, 122], "start_point": {"row": 48, "column": 2}, "end_point": {"row": 108, "column": 1}}, {"id": 120, "type": "enum_specifier", "text": "enum class", "parent": 119, "children": [121], "start_point": {"row": 48, "column": 2}, "end_point": {"row": 48, "column": 12}}, {"id": 121, "type": "enum", "text": "enum", "parent": 120, "children": [], "start_point": {"row": 48, "column": 2}, "end_point": {"row": 48, "column": 6}}, {"id": 122, "type": "identifier", "text": "FilterLevel", "parent": 119, "children": [], "start_point": {"row": 48, "column": 13}, "end_point": {"row": 48, "column": 24}}, {"id": 123, "type": "comma_expression", "text": "NOTHING,\n // Filter out only optional apps, excluding Play Store for example. Used in\n // case when Play Store is managed and enabled.\n OPTIONAL_APPS,\n // Filter out everything. Used in case when Play Store is managed and\n // disabled.\n ALL", "parent": 119, "children": [124, 125], "start_point": {"row": 50, "column": 4}, "end_point": {"row": 56, "column": 7}}, {"id": 124, "type": "identifier", "text": "NOTHING", "parent": 123, "children": [], "start_point": {"row": 50, "column": 4}, "end_point": {"row": 50, "column": 11}}, {"id": 125, "type": "comma_expression", "text": "OPTIONAL_APPS,\n // Filter out everything. Used in case when Play Store is managed and\n // disabled.\n ALL", "parent": 123, "children": [126, 127], "start_point": {"row": 53, "column": 4}, "end_point": {"row": 56, "column": 7}}, {"id": 126, "type": "identifier", "text": "OPTIONAL_APPS", "parent": 125, "children": [], "start_point": {"row": 53, "column": 4}, "end_point": {"row": 53, "column": 17}}, {"id": 127, "type": "identifier", "text": "ALL", "parent": 125, "children": [], "start_point": {"row": 56, "column": 4}, "end_point": {"row": 56, "column": 7}}, {"id": 128, "type": "declaration", "text": "using AppInfoMap = std::map<std::string, std::unique_ptr<AppInfo>>;", "parent": 119, "children": [129, 130, 140, 144, 145], "start_point": {"row": 60, "column": 2}, "end_point": {"row": 60, "column": 69}}, {"id": 129, "type": "type_identifier", "text": "using", "parent": 128, "children": [], "start_point": {"row": 60, "column": 2}, "end_point": {"row": 60, "column": 7}}, {"id": 130, "type": "init_declarator", "text": "AppInfoMap = std::map<std::string", "parent": 128, "children": [131, 132, 133, 139], "start_point": {"row": 60, "column": 8}, "end_point": {"row": 60, "column": 41}}, {"id": 131, "type": "identifier", "text": "AppInfoMap", "parent": 130, "children": [], "start_point": {"row": 60, "column": 8}, "end_point": {"row": 60, "column": 18}}, {"id": 132, "type": "=", "text": "=", "parent": 130, "children": [], "start_point": {"row": 60, "column": 19}, "end_point": {"row": 60, "column": 20}}, {"id": 133, "type": "ERROR", "text": "std::map<std::", "parent": 130, "children": [134, 135], "start_point": {"row": 60, "column": 21}, "end_point": {"row": 60, "column": 35}}, {"id": 134, "type": "identifier", "text": "std", "parent": 133, "children": [], "start_point": {"row": 60, "column": 21}, "end_point": {"row": 60, "column": 24}}, {"id": 135, "type": "binary_expression", "text": "map<std", "parent": 133, "children": [136, 137, 138], "start_point": {"row": 60, "column": 26}, "end_point": {"row": 60, "column": 33}}, {"id": 136, "type": "identifier", "text": "map", "parent": 135, "children": [], "start_point": {"row": 60, "column": 26}, "end_point": {"row": 60, "column": 29}}, {"id": 137, "type": "<", "text": "<", "parent": 135, "children": [], "start_point": {"row": 60, "column": 29}, "end_point": {"row": 60, "column": 30}}, {"id": 138, "type": "identifier", "text": "std", "parent": 135, "children": [], "start_point": {"row": 60, "column": 30}, "end_point": {"row": 60, "column": 33}}, {"id": 139, "type": "identifier", "text": "string", "parent": 130, "children": [], "start_point": {"row": 60, "column": 35}, "end_point": {"row": 60, "column": 41}}, {"id": 140, "type": "ERROR", "text": "std::unique_ptr<", "parent": 128, "children": [141, 142, 143], "start_point": {"row": 60, "column": 43}, "end_point": {"row": 60, "column": 59}}, {"id": 141, "type": "identifier", "text": "std", "parent": 140, "children": [], "start_point": {"row": 60, "column": 43}, "end_point": {"row": 60, "column": 46}}, {"id": 142, "type": "identifier", "text": "unique_ptr", "parent": 140, "children": [], "start_point": {"row": 60, "column": 48}, "end_point": {"row": 60, "column": 58}}, {"id": 143, "type": "<", "text": "<", "parent": 140, "children": [], "start_point": {"row": 60, "column": 58}, "end_point": {"row": 60, "column": 59}}, {"id": 144, "type": "identifier", "text": "AppInfo", "parent": 128, "children": [], "start_point": {"row": 60, "column": 59}, "end_point": {"row": 60, "column": 66}}, {"id": 145, "type": "ERROR", "text": ">>", "parent": 128, "children": [146], "start_point": {"row": 60, "column": 66}, "end_point": {"row": 60, "column": 68}}, {"id": 146, "type": ">>", "text": ">>", "parent": 145, "children": [], "start_point": {"row": 60, "column": 66}, "end_point": {"row": 60, "column": 68}}, {"id": 147, "type": "call_expression", "text": "ArcDefaultAppList(Delegate* delegate, content::BrowserContext* context)", "parent": 119, "children": [148, 149], "start_point": {"row": 62, "column": 2}, "end_point": {"row": 62, "column": 73}}, {"id": 148, "type": "identifier", "text": "ArcDefaultAppList", "parent": 147, "children": [], "start_point": {"row": 62, "column": 2}, "end_point": {"row": 62, "column": 19}}, {"id": 149, "type": "argument_list", "text": "(Delegate* delegate, content::BrowserContext* context)", "parent": 147, "children": [150, 154, 156], "start_point": {"row": 62, "column": 19}, "end_point": {"row": 62, "column": 73}}, {"id": 150, "type": "binary_expression", "text": "Delegate* delegate", "parent": 149, "children": [151, 152, 153], "start_point": {"row": 62, "column": 20}, "end_point": {"row": 62, "column": 38}}, {"id": 151, "type": "identifier", "text": "Delegate", "parent": 150, "children": [], "start_point": {"row": 62, "column": 20}, "end_point": {"row": 62, "column": 28}}, {"id": 152, "type": "*", "text": "*", "parent": 150, "children": [], "start_point": {"row": 62, "column": 28}, "end_point": {"row": 62, "column": 29}}, {"id": 153, "type": "identifier", "text": "delegate", "parent": 150, "children": [], "start_point": {"row": 62, "column": 30}, "end_point": {"row": 62, "column": 38}}, {"id": 154, "type": "ERROR", "text": "content::", "parent": 149, "children": [155], "start_point": {"row": 62, "column": 40}, "end_point": {"row": 62, "column": 49}}, {"id": 155, "type": "identifier", "text": "content", "parent": 154, "children": [], "start_point": {"row": 62, "column": 40}, "end_point": {"row": 62, "column": 47}}, {"id": 156, "type": "binary_expression", "text": "BrowserContext* context", "parent": 149, "children": [157, 158, 159], "start_point": {"row": 62, "column": 49}, "end_point": {"row": 62, "column": 72}}, {"id": 157, "type": "identifier", "text": "BrowserContext", "parent": 156, "children": [], "start_point": {"row": 62, "column": 49}, "end_point": {"row": 62, "column": 63}}, {"id": 158, "type": "*", "text": "*", "parent": 156, "children": [], "start_point": {"row": 62, "column": 63}, "end_point": {"row": 62, "column": 64}}, {"id": 159, "type": "identifier", "text": "context", "parent": 156, "children": [], "start_point": {"row": 62, "column": 65}, "end_point": {"row": 62, "column": 72}}, {"id": 160, "type": "unary_expression", "text": "~ArcDefaultAppList()", "parent": 119, "children": [161, 162], "start_point": {"row": 63, "column": 2}, "end_point": {"row": 63, "column": 22}}, {"id": 161, "type": "~", "text": "~", "parent": 160, "children": [], "start_point": {"row": 63, "column": 2}, "end_point": {"row": 63, "column": 3}}, {"id": 162, "type": "call_expression", "text": "ArcDefaultAppList()", "parent": 160, "children": [163, 164], "start_point": {"row": 63, "column": 3}, "end_point": {"row": 63, "column": 22}}, {"id": 163, "type": "identifier", "text": "ArcDefaultAppList", "parent": 162, "children": [], "start_point": {"row": 63, "column": 3}, "end_point": {"row": 63, "column": 20}}, {"id": 164, "type": "argument_list", "text": "()", "parent": 162, "children": [], "start_point": {"row": 63, "column": 20}, "end_point": {"row": 63, "column": 22}}, {"id": 165, "type": "declaration", "text": "static void UseTestAppsDirectory();", "parent": 119, "children": [166, 167], "start_point": {"row": 65, "column": 2}, "end_point": {"row": 65, "column": 37}}, {"id": 166, "type": "primitive_type", "text": "void", "parent": 165, "children": [], "start_point": {"row": 65, "column": 9}, "end_point": {"row": 65, "column": 13}}, {"id": 167, "type": "function_declarator", "text": "UseTestAppsDirectory()", "parent": 165, "children": [168, 169], "start_point": {"row": 65, "column": 14}, "end_point": {"row": 65, "column": 36}}, {"id": 168, "type": "identifier", "text": "UseTestAppsDirectory", "parent": 167, "children": [], "start_point": {"row": 65, "column": 14}, "end_point": {"row": 65, "column": 34}}, {"id": 169, "type": "parameter_list", "text": "()", "parent": 167, "children": [], "start_point": {"row": 65, "column": 34}, "end_point": {"row": 65, "column": 36}}, {"id": 170, "type": "declaration", "text": "const AppInfo* GetApp(const std::string& app_id) const;", "parent": 119, "children": [171, 172], "start_point": {"row": 69, "column": 2}, "end_point": {"row": 69, "column": 57}}, {"id": 171, "type": "type_identifier", "text": "AppInfo", "parent": 170, "children": [], "start_point": {"row": 69, "column": 8}, "end_point": {"row": 69, "column": 15}}, {"id": 172, "type": "pointer_declarator", "text": "* GetApp(const std::string& app_id) const", "parent": 170, "children": [173, 174], "start_point": {"row": 69, "column": 15}, "end_point": {"row": 69, "column": 56}}, {"id": 173, "type": "*", "text": "*", "parent": 172, "children": [], "start_point": {"row": 69, "column": 15}, "end_point": {"row": 69, "column": 16}}, {"id": 174, "type": "function_declarator", "text": "GetApp(const std::string& app_id) const", "parent": 172, "children": [175, 176], "start_point": {"row": 69, "column": 17}, "end_point": {"row": 69, "column": 56}}, {"id": 175, "type": "identifier", "text": "GetApp", "parent": 174, "children": [], "start_point": {"row": 69, "column": 17}, "end_point": {"row": 69, "column": 23}}, {"id": 176, "type": "parameter_list", "text": "(const std::string& app_id)", "parent": 174, "children": [177], "start_point": {"row": 69, "column": 23}, "end_point": {"row": 69, "column": 50}}, {"id": 177, "type": "parameter_declaration", "text": "const std::string& app_id", "parent": 176, "children": [178, 179, 181], "start_point": {"row": 69, "column": 24}, "end_point": {"row": 69, "column": 49}}, {"id": 178, "type": "type_identifier", "text": "std", "parent": 177, "children": [], "start_point": {"row": 69, "column": 30}, "end_point": {"row": 69, "column": 33}}, {"id": 179, "type": "ERROR", "text": "::string&", "parent": 177, "children": [180], "start_point": {"row": 69, "column": 33}, "end_point": {"row": 69, "column": 42}}, {"id": 180, "type": "identifier", "text": "string", "parent": 179, "children": [], "start_point": {"row": 69, "column": 35}, "end_point": {"row": 69, "column": 41}}, {"id": 181, "type": "identifier", "text": "app_id", "parent": 177, "children": [], "start_point": {"row": 69, "column": 43}, "end_point": {"row": 69, "column": 49}}, {"id": 182, "type": "ERROR", "text": "bool HasApp(const std::string& app_id) const", "parent": 119, "children": [183, 184], "start_point": {"row": 72, "column": 2}, "end_point": {"row": 72, "column": 46}}, {"id": 183, "type": "primitive_type", "text": "bool", "parent": 182, "children": [], "start_point": {"row": 72, "column": 2}, "end_point": {"row": 72, "column": 6}}, {"id": 184, "type": "function_declarator", "text": "HasApp(const std::string& app_id) const", "parent": 182, "children": [185, 186], "start_point": {"row": 72, "column": 7}, "end_point": {"row": 72, "column": 46}}, {"id": 185, "type": "identifier", "text": "HasApp", "parent": 184, "children": [], "start_point": {"row": 72, "column": 7}, "end_point": {"row": 72, "column": 13}}, {"id": 186, "type": "parameter_list", "text": "(const std::string& app_id)", "parent": 184, "children": [187], "start_point": {"row": 72, "column": 13}, "end_point": {"row": 72, "column": 40}}, {"id": 187, "type": "parameter_declaration", "text": "const std::string& app_id", "parent": 186, "children": [188, 189, 191], "start_point": {"row": 72, "column": 14}, "end_point": {"row": 72, "column": 39}}, {"id": 188, "type": "type_identifier", "text": "std", "parent": 187, "children": [], "start_point": {"row": 72, "column": 20}, "end_point": {"row": 72, "column": 23}}, {"id": 189, "type": "ERROR", "text": "::string&", "parent": 187, "children": [190], "start_point": {"row": 72, "column": 23}, "end_point": {"row": 72, "column": 32}}, {"id": 190, "type": "identifier", "text": "string", "parent": 189, "children": [], "start_point": {"row": 72, "column": 25}, "end_point": {"row": 72, "column": 31}}, {"id": 191, "type": "identifier", "text": "app_id", "parent": 187, "children": [], "start_point": {"row": 72, "column": 33}, "end_point": {"row": 72, "column": 39}}, {"id": 192, "type": "ERROR", "text": "bool HasPackage(const std::string& package_name) const", "parent": 119, "children": [193, 194], "start_point": {"row": 75, "column": 2}, "end_point": {"row": 75, "column": 56}}, {"id": 193, "type": "primitive_type", "text": "bool", "parent": 192, "children": [], "start_point": {"row": 75, "column": 2}, "end_point": {"row": 75, "column": 6}}, {"id": 194, "type": "function_declarator", "text": "HasPackage(const std::string& package_name) const", "parent": 192, "children": [195, 196], "start_point": {"row": 75, "column": 7}, "end_point": {"row": 75, "column": 56}}, {"id": 195, "type": "identifier", "text": "HasPackage", "parent": 194, "children": [], "start_point": {"row": 75, "column": 7}, "end_point": {"row": 75, "column": 17}}, {"id": 196, "type": "parameter_list", "text": "(const std::string& package_name)", "parent": 194, "children": [197], "start_point": {"row": 75, "column": 17}, "end_point": {"row": 75, "column": 50}}, {"id": 197, "type": "parameter_declaration", "text": "const std::string& package_name", "parent": 196, "children": [198, 199, 201], "start_point": {"row": 75, "column": 18}, "end_point": {"row": 75, "column": 49}}, {"id": 198, "type": "type_identifier", "text": "std", "parent": 197, "children": [], "start_point": {"row": 75, "column": 24}, "end_point": {"row": 75, "column": 27}}, {"id": 199, "type": "ERROR", "text": "::string&", "parent": 197, "children": [200], "start_point": {"row": 75, "column": 27}, "end_point": {"row": 75, "column": 36}}, {"id": 200, "type": "identifier", "text": "string", "parent": 199, "children": [], "start_point": {"row": 75, "column": 29}, "end_point": {"row": 75, "column": 35}}, {"id": 201, "type": "identifier", "text": "package_name", "parent": 197, "children": [], "start_point": {"row": 75, "column": 37}, "end_point": {"row": 75, "column": 49}}, {"id": 202, "type": "declaration", "text": "void MaybeMarkPackageUninstalled(const std::string& package_name,\n bool uninstalled);", "parent": 119, "children": [203, 204], "start_point": {"row": 78, "column": 2}, "end_point": {"row": 79, "column": 53}}, {"id": 203, "type": "primitive_type", "text": "void", "parent": 202, "children": [], "start_point": {"row": 78, "column": 2}, "end_point": {"row": 78, "column": 6}}, {"id": 204, "type": "function_declarator", "text": "MaybeMarkPackageUninstalled(const std::string& package_name,\n bool uninstalled)", "parent": 202, "children": [205, 206], "start_point": {"row": 78, "column": 7}, "end_point": {"row": 79, "column": 52}}, {"id": 205, "type": "identifier", "text": "MaybeMarkPackageUninstalled", "parent": 204, "children": [], "start_point": {"row": 78, "column": 7}, "end_point": {"row": 78, "column": 34}}, {"id": 206, "type": "parameter_list", "text": "(const std::string& package_name,\n bool uninstalled)", "parent": 204, "children": [207, 212], "start_point": {"row": 78, "column": 34}, "end_point": {"row": 79, "column": 52}}, {"id": 207, "type": "parameter_declaration", "text": "const std::string& package_name", "parent": 206, "children": [208, 209, 211], "start_point": {"row": 78, "column": 35}, "end_point": {"row": 78, "column": 66}}, {"id": 208, "type": "type_identifier", "text": "std", "parent": 207, "children": [], "start_point": {"row": 78, "column": 41}, "end_point": {"row": 78, "column": 44}}, {"id": 209, "type": "ERROR", "text": "::string&", "parent": 207, "children": [210], "start_point": {"row": 78, "column": 44}, "end_point": {"row": 78, "column": 53}}, {"id": 210, "type": "identifier", "text": "string", "parent": 209, "children": [], "start_point": {"row": 78, "column": 46}, "end_point": {"row": 78, "column": 52}}, {"id": 211, "type": "identifier", "text": "package_name", "parent": 207, "children": [], "start_point": {"row": 78, "column": 54}, "end_point": {"row": 78, "column": 66}}, {"id": 212, "type": "parameter_declaration", "text": "bool uninstalled", "parent": 206, "children": [213, 214], "start_point": {"row": 79, "column": 35}, "end_point": {"row": 79, "column": 51}}, {"id": 213, "type": "primitive_type", "text": "bool", "parent": 212, "children": [], "start_point": {"row": 79, "column": 35}, "end_point": {"row": 79, "column": 39}}, {"id": 214, "type": "identifier", "text": "uninstalled", "parent": 212, "children": [], "start_point": {"row": 79, "column": 40}, "end_point": {"row": 79, "column": 51}}, {"id": 215, "type": "labeled_statement", "text": "std::unordered_set<std::string> GetActivePackages() const;", "parent": 119, "children": [216, 217], "start_point": {"row": 82, "column": 2}, "end_point": {"row": 82, "column": 60}}, {"id": 216, "type": "statement_identifier", "text": "std", "parent": 215, "children": [], "start_point": {"row": 82, "column": 2}, "end_point": {"row": 82, "column": 5}}, {"id": 217, "type": "ERROR", "text": "::unordered_set<std:", "parent": 215, "children": [218], "start_point": {"row": 82, "column": 5}, "end_point": {"row": 82, "column": 25}}, {"id": 218, "type": "binary_expression", "text": "unordered_set<std", "parent": 217, "children": [219, 220, 221], "start_point": {"row": 82, "column": 7}, "end_point": {"row": 82, "column": 24}}, {"id": 219, "type": "identifier", "text": "unordered_set", "parent": 218, "children": [], "start_point": {"row": 82, "column": 7}, "end_point": {"row": 82, "column": 20}}, {"id": 220, "type": "<", "text": "<", "parent": 218, "children": [], "start_point": {"row": 82, "column": 20}, "end_point": {"row": 82, "column": 21}}, {"id": 221, "type": "identifier", "text": "std", "parent": 218, "children": [], "start_point": {"row": 82, "column": 21}, "end_point": {"row": 82, "column": 24}}, {"id": 222, "type": "binary_expression", "text": "string> GetActivePackages()", "parent": 215, "children": [223, 224, 225], "start_point": {"row": 82, "column": 26}, "end_point": {"row": 82, "column": 53}}, {"id": 223, "type": "identifier", "text": "string", "parent": 222, "children": [], "start_point": {"row": 82, "column": 26}, "end_point": {"row": 82, "column": 32}}, {"id": 224, "type": ">", "text": ">", "parent": 222, "children": [], "start_point": {"row": 82, "column": 32}, "end_point": {"row": 82, "column": 33}}, {"id": 225, "type": "call_expression", "text": "GetActivePackages()", "parent": 222, "children": [226, 227], "start_point": {"row": 82, "column": 34}, "end_point": {"row": 82, "column": 53}}, {"id": 226, "type": "identifier", "text": "GetActivePackages", "parent": 225, "children": [], "start_point": {"row": 82, "column": 34}, "end_point": {"row": 82, "column": 51}}, {"id": 227, "type": "argument_list", "text": "()", "parent": 225, "children": [], "start_point": {"row": 82, "column": 51}, "end_point": {"row": 82, "column": 53}}, {"id": 228, "type": "ERROR", "text": "const AppInfoMap& app_map() const", "parent": 119, "children": [229, 230], "start_point": {"row": 84, "column": 2}, "end_point": {"row": 84, "column": 35}}, {"id": 229, "type": "type_identifier", "text": "AppInfoMap", "parent": 228, "children": [], "start_point": {"row": 84, "column": 8}, "end_point": {"row": 84, "column": 18}}, {"id": 230, "type": "function_declarator", "text": "app_map()", "parent": 228, "children": [231, 232], "start_point": {"row": 84, "column": 20}, "end_point": {"row": 84, "column": 29}}, {"id": 231, "type": "identifier", "text": "app_map", "parent": 230, "children": [], "start_point": {"row": 84, "column": 20}, "end_point": {"row": 84, "column": 27}}, {"id": 232, "type": "parameter_list", "text": "()", "parent": 230, "children": [], "start_point": {"row": 84, "column": 27}, "end_point": {"row": 84, "column": 29}}, {"id": 233, "type": "return_statement", "text": "return apps_;", "parent": 119, "children": [234], "start_point": {"row": 84, "column": 38}, "end_point": {"row": 84, "column": 51}}, {"id": 234, "type": "identifier", "text": "apps_", "parent": 233, "children": [], "start_point": {"row": 84, "column": 45}, "end_point": {"row": 84, "column": 50}}, {"id": 235, "type": "function_definition", "text": "void set_filter_level(FilterLevel filter_level) {\n filter_level_ = filter_level;\n }", "parent": 119, "children": [236, 237], "start_point": {"row": 86, "column": 2}, "end_point": {"row": 88, "column": 3}}, {"id": 236, "type": "primitive_type", "text": "void", "parent": 235, "children": [], "start_point": {"row": 86, "column": 2}, "end_point": {"row": 86, "column": 6}}, {"id": 237, "type": "function_declarator", "text": "set_filter_level(FilterLevel filter_level)", "parent": 235, "children": [238, 239], "start_point": {"row": 86, "column": 7}, "end_point": {"row": 86, "column": 49}}, {"id": 238, "type": "identifier", "text": "set_filter_level", "parent": 237, "children": [], "start_point": {"row": 86, "column": 7}, "end_point": {"row": 86, "column": 23}}, {"id": 239, "type": "parameter_list", "text": "(FilterLevel filter_level)", "parent": 237, "children": [240], "start_point": {"row": 86, "column": 23}, "end_point": {"row": 86, "column": 49}}, {"id": 240, "type": "parameter_declaration", "text": "FilterLevel filter_level", "parent": 239, "children": [241, 242], "start_point": {"row": 86, "column": 24}, "end_point": {"row": 86, "column": 48}}, {"id": 241, "type": "type_identifier", "text": "FilterLevel", "parent": 240, "children": [], "start_point": {"row": 86, "column": 24}, "end_point": {"row": 86, "column": 35}}, {"id": 242, "type": "identifier", "text": "filter_level", "parent": 240, "children": [], "start_point": {"row": 86, "column": 36}, "end_point": {"row": 86, "column": 48}}, {"id": 243, "type": "assignment_expression", "text": "filter_level_ = filter_level", "parent": 235, "children": [244, 245, 246], "start_point": {"row": 87, "column": 4}, "end_point": {"row": 87, "column": 32}}, {"id": 244, "type": "identifier", "text": "filter_level_", "parent": 243, "children": [], "start_point": {"row": 87, "column": 4}, "end_point": {"row": 87, "column": 17}}, {"id": 245, "type": "=", "text": "=", "parent": 243, "children": [], "start_point": {"row": 87, "column": 18}, "end_point": {"row": 87, "column": 19}}, {"id": 246, "type": "identifier", "text": "filter_level", "parent": 243, "children": [], "start_point": {"row": 87, "column": 20}, "end_point": {"row": 87, "column": 32}}, {"id": 247, "type": "labeled_statement", "text": "private:\n // Defines mapping package name to uninstalled state.\n using PackageMap = std::map<std::string, bool>;", "parent": 119, "children": [248], "start_point": {"row": 90, "column": 1}, "end_point": {"row": 92, "column": 49}}, {"id": 248, "type": "declaration", "text": "using PackageMap = std::map<std::string, bool>;", "parent": 247, "children": [249, 250, 260, 261], "start_point": {"row": 92, "column": 2}, "end_point": {"row": 92, "column": 49}}, {"id": 249, "type": "type_identifier", "text": "using", "parent": 248, "children": [], "start_point": {"row": 92, "column": 2}, "end_point": {"row": 92, "column": 7}}, {"id": 250, "type": "init_declarator", "text": "PackageMap = std::map<std::string", "parent": 248, "children": [251, 252, 253, 259], "start_point": {"row": 92, "column": 8}, "end_point": {"row": 92, "column": 41}}, {"id": 251, "type": "identifier", "text": "PackageMap", "parent": 250, "children": [], "start_point": {"row": 92, "column": 8}, "end_point": {"row": 92, "column": 18}}, {"id": 252, "type": "=", "text": "=", "parent": 250, "children": [], "start_point": {"row": 92, "column": 19}, "end_point": {"row": 92, "column": 20}}, {"id": 253, "type": "ERROR", "text": "std::map<std::", "parent": 250, "children": [254, 255], "start_point": {"row": 92, "column": 21}, "end_point": {"row": 92, "column": 35}}, {"id": 254, "type": "identifier", "text": "std", "parent": 253, "children": [], "start_point": {"row": 92, "column": 21}, "end_point": {"row": 92, "column": 24}}, {"id": 255, "type": "binary_expression", "text": "map<std", "parent": 253, "children": [256, 257, 258], "start_point": {"row": 92, "column": 26}, "end_point": {"row": 92, "column": 33}}, {"id": 256, "type": "identifier", "text": "map", "parent": 255, "children": [], "start_point": {"row": 92, "column": 26}, "end_point": {"row": 92, "column": 29}}, {"id": 257, "type": "<", "text": "<", "parent": 255, "children": [], "start_point": {"row": 92, "column": 29}, "end_point": {"row": 92, "column": 30}}, {"id": 258, "type": "identifier", "text": "std", "parent": 255, "children": [], "start_point": {"row": 92, "column": 30}, "end_point": {"row": 92, "column": 33}}, {"id": 259, "type": "identifier", "text": "string", "parent": 250, "children": [], "start_point": {"row": 92, "column": 35}, "end_point": {"row": 92, "column": 41}}, {"id": 260, "type": "identifier", "text": "bool", "parent": 248, "children": [], "start_point": {"row": 92, "column": 43}, "end_point": {"row": 92, "column": 47}}, {"id": 261, "type": "ERROR", "text": ">", "parent": 248, "children": [262], "start_point": {"row": 92, "column": 47}, "end_point": {"row": 92, "column": 48}}, {"id": 262, "type": ">", "text": ">", "parent": 261, "children": [], "start_point": {"row": 92, "column": 47}, "end_point": {"row": 92, "column": 48}}, {"id": 263, "type": "declaration", "text": "void OnAppsReady(std::unique_ptr<AppInfoMap> apps);", "parent": 119, "children": [264, 265], "start_point": {"row": 95, "column": 2}, "end_point": {"row": 95, "column": 53}}, {"id": 264, "type": "primitive_type", "text": "void", "parent": 263, "children": [], "start_point": {"row": 95, "column": 2}, "end_point": {"row": 95, "column": 6}}, {"id": 265, "type": "function_declarator", "text": "OnAppsReady(std::unique_ptr<AppInfoMap> apps)", "parent": 263, "children": [266, 267], "start_point": {"row": 95, "column": 7}, "end_point": {"row": 95, "column": 52}}, {"id": 266, "type": "identifier", "text": "OnAppsReady", "parent": 265, "children": [], "start_point": {"row": 95, "column": 7}, "end_point": {"row": 95, "column": 18}}, {"id": 267, "type": "parameter_list", "text": "(std::unique_ptr<AppInfoMap> apps)", "parent": 265, "children": [268], "start_point": {"row": 95, "column": 18}, "end_point": {"row": 95, "column": 52}}, {"id": 268, "type": "parameter_declaration", "text": "std::unique_ptr<AppInfoMap> apps", "parent": 267, "children": [269, 270, 275], "start_point": {"row": 95, "column": 19}, "end_point": {"row": 95, "column": 51}}, {"id": 269, "type": "type_identifier", "text": "std", "parent": 268, "children": [], "start_point": {"row": 95, "column": 19}, "end_point": {"row": 95, "column": 22}}, {"id": 270, "type": "ERROR", "text": "::unique_ptr<AppInfoMap>", "parent": 268, "children": [271, 272, 273, 274], "start_point": {"row": 95, "column": 22}, "end_point": {"row": 95, "column": 46}}, {"id": 271, "type": "identifier", "text": "unique_ptr", "parent": 270, "children": [], "start_point": {"row": 95, "column": 24}, "end_point": {"row": 95, "column": 34}}, {"id": 272, "type": "<", "text": "<", "parent": 270, "children": [], "start_point": {"row": 95, "column": 34}, "end_point": {"row": 95, "column": 35}}, {"id": 273, "type": "identifier", "text": "AppInfoMap", "parent": 270, "children": [], "start_point": {"row": 95, "column": 35}, "end_point": {"row": 95, "column": 45}}, {"id": 274, "type": ">", "text": ">", "parent": 270, "children": [], "start_point": {"row": 95, "column": 45}, "end_point": {"row": 95, "column": 46}}, {"id": 275, "type": "identifier", "text": "apps", "parent": 268, "children": [], "start_point": {"row": 95, "column": 47}, "end_point": {"row": 95, "column": 51}}, {"id": 276, "type": "declaration", "text": "Delegate* const delegate_;", "parent": 119, "children": [277, 278], "start_point": {"row": 98, "column": 2}, "end_point": {"row": 98, "column": 28}}, {"id": 277, "type": "type_identifier", "text": "Delegate", "parent": 276, "children": [], "start_point": {"row": 98, "column": 2}, "end_point": {"row": 98, "column": 10}}, {"id": 278, "type": "pointer_declarator", "text": "* const delegate_", "parent": 276, "children": [279, 280], "start_point": {"row": 98, "column": 10}, "end_point": {"row": 98, "column": 27}}, {"id": 279, "type": "*", "text": "*", "parent": 278, "children": [], "start_point": {"row": 98, "column": 10}, "end_point": {"row": 98, "column": 11}}, {"id": 280, "type": "identifier", "text": "delegate_", "parent": 278, "children": [], "start_point": {"row": 98, "column": 18}, "end_point": {"row": 98, "column": 27}}, {"id": 281, "type": "labeled_statement", "text": "content::BrowserContext* const context_;", "parent": 119, "children": [282, 283], "start_point": {"row": 99, "column": 2}, "end_point": {"row": 99, "column": 42}}, {"id": 282, "type": "statement_identifier", "text": "content", "parent": 281, "children": [], "start_point": {"row": 99, "column": 2}, "end_point": {"row": 99, "column": 9}}, {"id": 283, "type": "declaration", "text": "BrowserContext* const context_;", "parent": 281, "children": [284, 285], "start_point": {"row": 99, "column": 11}, "end_point": {"row": 99, "column": 42}}, {"id": 284, "type": "type_identifier", "text": "BrowserContext", "parent": 283, "children": [], "start_point": {"row": 99, "column": 11}, "end_point": {"row": 99, "column": 25}}, {"id": 285, "type": "pointer_declarator", "text": "* const context_", "parent": 283, "children": [286, 287], "start_point": {"row": 99, "column": 25}, "end_point": {"row": 99, "column": 41}}, {"id": 286, "type": "*", "text": "*", "parent": 285, "children": [], "start_point": {"row": 99, "column": 25}, "end_point": {"row": 99, "column": 26}}, {"id": 287, "type": "identifier", "text": "context_", "parent": 285, "children": [], "start_point": {"row": 99, "column": 33}, "end_point": {"row": 99, "column": 41}}, {"id": 288, "type": "declaration", "text": "FilterLevel filter_level_ = FilterLevel::ALL;", "parent": 119, "children": [289, 290, 294], "start_point": {"row": 100, "column": 2}, "end_point": {"row": 100, "column": 47}}, {"id": 289, "type": "type_identifier", "text": "FilterLevel", "parent": 288, "children": [], "start_point": {"row": 100, "column": 2}, "end_point": {"row": 100, "column": 13}}, {"id": 290, "type": "init_declarator", "text": "filter_level_ = FilterLevel", "parent": 288, "children": [291, 292, 293], "start_point": {"row": 100, "column": 14}, "end_point": {"row": 100, "column": 41}}, {"id": 291, "type": "identifier", "text": "filter_level_", "parent": 290, "children": [], "start_point": {"row": 100, "column": 14}, "end_point": {"row": 100, "column": 27}}, {"id": 292, "type": "=", "text": "=", "parent": 290, "children": [], "start_point": {"row": 100, "column": 28}, "end_point": {"row": 100, "column": 29}}, {"id": 293, "type": "identifier", "text": "FilterLevel", "parent": 290, "children": [], "start_point": {"row": 100, "column": 30}, "end_point": {"row": 100, "column": 41}}, {"id": 294, "type": "ERROR", "text": "::ALL", "parent": 288, "children": [295], "start_point": {"row": 100, "column": 41}, "end_point": {"row": 100, "column": 46}}, {"id": 295, "type": "identifier", "text": "ALL", "parent": 294, "children": [], "start_point": {"row": 100, "column": 43}, "end_point": {"row": 100, "column": 46}}, {"id": 296, "type": "declaration", "text": "AppInfoMap apps_;", "parent": 119, "children": [297, 298], "start_point": {"row": 102, "column": 2}, "end_point": {"row": 102, "column": 19}}, {"id": 297, "type": "type_identifier", "text": "AppInfoMap", "parent": 296, "children": [], "start_point": {"row": 102, "column": 2}, "end_point": {"row": 102, "column": 12}}, {"id": 298, "type": "identifier", "text": "apps_", "parent": 296, "children": [], "start_point": {"row": 102, "column": 13}, "end_point": {"row": 102, "column": 18}}, {"id": 299, "type": "declaration", "text": "PackageMap packages_;", "parent": 119, "children": [300, 301], "start_point": {"row": 103, "column": 2}, "end_point": {"row": 103, "column": 23}}, {"id": 300, "type": "type_identifier", "text": "PackageMap", "parent": 299, "children": [], "start_point": {"row": 103, "column": 2}, "end_point": {"row": 103, "column": 12}}, {"id": 301, "type": "identifier", "text": "packages_", "parent": 299, "children": [], "start_point": {"row": 103, "column": 13}, "end_point": {"row": 103, "column": 22}}, {"id": 302, "type": "labeled_statement", "text": "base::WeakPtrFactory<ArcDefaultAppList> weak_ptr_factory_;", "parent": 119, "children": [303], "start_point": {"row": 105, "column": 2}, "end_point": {"row": 105, "column": 60}}, {"id": 303, "type": "statement_identifier", "text": "base", "parent": 302, "children": [], "start_point": {"row": 105, "column": 2}, "end_point": {"row": 105, "column": 6}}, {"id": 304, "type": "binary_expression", "text": "WeakPtrFactory<ArcDefaultAppList> weak_ptr_factory_", "parent": 302, "children": [305, 309, 310], "start_point": {"row": 105, "column": 8}, "end_point": {"row": 105, "column": 59}}, {"id": 305, "type": "binary_expression", "text": "WeakPtrFactory<ArcDefaultAppList", "parent": 304, "children": [306, 307, 308], "start_point": {"row": 105, "column": 8}, "end_point": {"row": 105, "column": 40}}, {"id": 306, "type": "identifier", "text": "WeakPtrFactory", "parent": 305, "children": [], "start_point": {"row": 105, "column": 8}, "end_point": {"row": 105, "column": 22}}, {"id": 307, "type": "<", "text": "<", "parent": 305, "children": [], "start_point": {"row": 105, "column": 22}, "end_point": {"row": 105, "column": 23}}, {"id": 308, "type": "identifier", "text": "ArcDefaultAppList", "parent": 305, "children": [], "start_point": {"row": 105, "column": 23}, "end_point": {"row": 105, "column": 40}}, {"id": 309, "type": ">", "text": ">", "parent": 304, "children": [], "start_point": {"row": 105, "column": 40}, "end_point": {"row": 105, "column": 41}}, {"id": 310, "type": "identifier", "text": "weak_ptr_factory_", "parent": 304, "children": [], "start_point": {"row": 105, "column": 42}, "end_point": {"row": 105, "column": 59}}, {"id": 311, "type": "call_expression", "text": "DISALLOW_COPY_AND_ASSIGN(ArcDefaultAppList)", "parent": 119, "children": [312, 313], "start_point": {"row": 107, "column": 2}, "end_point": {"row": 107, "column": 45}}, {"id": 312, "type": "identifier", "text": "DISALLOW_COPY_AND_ASSIGN", "parent": 311, "children": [], "start_point": {"row": 107, "column": 2}, "end_point": {"row": 107, "column": 26}}, {"id": 313, "type": "argument_list", "text": "(ArcDefaultAppList)", "parent": 311, "children": [314], "start_point": {"row": 107, "column": 26}, "end_point": {"row": 107, "column": 45}}, {"id": 314, "type": "identifier", "text": "ArcDefaultAppList", "parent": 313, "children": [], "start_point": {"row": 107, "column": 27}, "end_point": {"row": 107, "column": 44}}, {"id": 315, "type": "preproc_call", "text": "#endif // CHROME_BROWSER_UI_APP_LIST_ARC_ARC_DEFAULT_APP_LIST_H_\n", "parent": 0, "children": [316], "start_point": {"row": 110, "column": 0}, "end_point": {"row": 111, "column": 0}}, {"id": 316, "type": "preproc_directive", "text": "#endif", "parent": 315, "children": [], "start_point": {"row": 110, "column": 0}, "end_point": {"row": 110, "column": 6}}]}, "node_categories": {"declarations": {"functions": [30, 45, 55, 119, 167, 174, 184, 194, 204, 230, 235, 237, 265], "variables": [33, 40, 61, 91, 96, 101, 106, 111, 114, 128, 165, 170, 177, 187, 197, 202, 207, 212, 240, 248, 263, 268, 276, 283, 288, 296, 299], "classes": [58, 59], "imports": [6, 7, 9, 10, 12, 13, 15, 16, 18, 19, 21, 22, 24, 25, 27, 28], "modules": [], "enums": [120, 121]}, "statements": {"expressions": [77, 123, 125, 135, 147, 150, 156, 160, 162, 218, 222, 225, 255, 304, 305, 311], "assignments": [243], "loops": [], "conditionals": [1, 2, 5, 31, 32, 34, 35, 38, 41, 43, 46, 52, 56, 60, 62, 63, 66, 67, 68, 70, 72, 74, 75, 78, 79, 80, 82, 84, 86, 88, 92, 93, 95, 97, 99, 100, 102, 104, 105, 107, 109, 110, 113, 115, 117, 118, 122, 124, 126, 127, 129, 131, 134, 136, 138, 139, 141, 142, 144, 148, 151, 153, 155, 157, 159, 163, 168, 171, 175, 178, 180, 181, 185, 188, 190, 191, 195, 198, 200, 201, 205, 208, 210, 211, 214, 216, 219, 221, 223, 226, 229, 231, 234, 238, 241, 242, 244, 246, 249, 251, 254, 256, 258, 259, 260, 266, 269, 271, 273, 275, 277, 280, 282, 284, 287, 289, 291, 293, 295, 297, 298, 300, 301, 303, 306, 308, 310, 312, 314], "returns": [233], "exceptions": []}, "expressions": {"calls": [315], "literals": [8, 11, 14, 17, 20, 23, 26, 29, 49], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": [76, 85]}}, "cross_language_map": {"function_declarations": [{"node_id": 30, "universal_type": "function", "name": "BrowserContext;", "text_snippet": "namespace content {\nclass BrowserContext;\n}"}, {"node_id": 45, "universal_type": "function", "name": "unknown", "text_snippet": "OnDefaultAppsReady()"}, {"node_id": 55, "universal_type": "function", "name": "unknown", "text_snippet": "Delegate()"}, {"node_id": 119, "universal_type": "function", "name": "FilterLevel", "text_snippet": "enum class FilterLevel {\n // Filter nothing.\n NOTHING,\n // Filter out only optional apps, e"}, {"node_id": 167, "universal_type": "function", "name": "unknown", "text_snippet": "UseTestAppsDirectory()"}, {"node_id": 174, "universal_type": "function", "name": "unknown", "text_snippet": "GetApp(const std::string& app_id) const"}, {"node_id": 184, "universal_type": "function", "name": "unknown", "text_snippet": "HasApp(const std::string& app_id) const"}, {"node_id": 194, "universal_type": "function", "name": "unknown", "text_snippet": "HasPackage(const std::string& package_name) const"}, {"node_id": 204, "universal_type": "function", "name": "uninstalled)", "text_snippet": "MaybeMarkPackageUninstalled(const std::string& package_name,\n bool"}, {"node_id": 230, "universal_type": "function", "name": "unknown", "text_snippet": "app_map()"}, {"node_id": 235, "universal_type": "function", "name": "set_filter_level", "text_snippet": "void set_filter_level(FilterLevel filter_level) {\n filter_level_ = filter_level;\n }"}, {"node_id": 237, "universal_type": "function", "name": "unknown", "text_snippet": "set_filter_level(FilterLevel filter_level)"}, {"node_id": 265, "universal_type": "function", "name": "unknown", "text_snippet": "OnAppsReady(std::unique_ptr<AppInfoMap> apps)"}], "class_declarations": [{"node_id": 58, "universal_type": "class", "name": "AppInfo", "text_snippet": "struct AppInfo {\n AppInfo(const std::string& name,\n const std::string& package_"}, {"node_id": 59, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}], "import_statements": [{"node_id": 6, "text": "#include <stdint.h>\n"}, {"node_id": 7, "text": "#include"}, {"node_id": 9, "text": "#include <map>\n"}, {"node_id": 10, "text": "#include"}, {"node_id": 12, "text": "#include <memory>\n"}, {"node_id": 13, "text": "#include"}, {"node_id": 15, "text": "#include <string>\n"}, {"node_id": 16, "text": "#include"}, {"node_id": 18, "text": "#include <unordered_set>\n"}, {"node_id": 19, "text": "#include"}, {"node_id": 21, "text": "#include \"base/files/file_path.h\"\n"}, {"node_id": 22, "text": "#include"}, {"node_id": 24, "text": "#include \"base/macros.h\"\n"}, {"node_id": 25, "text": "#include"}, {"node_id": 27, "text": "#include \"base/memory/weak_ptr.h\"\n"}, {"node_id": 28, "text": "#include"}]}, "original_source_code": "// Copyright 2016 The Chromium Authors. All rights reserved.\n// Use of this source code is governed by a BSD-style license that can be\n// found in the LICENSE file.\n\n#ifndef CHROME_BROWSER_UI_APP_LIST_ARC_ARC_DEFAULT_APP_LIST_H_\n#define CHROME_BROWSER_UI_APP_LIST_ARC_ARC_DEFAULT_APP_LIST_H_\n\n#include <stdint.h>\n\n#include <map>\n#include <memory>\n#include <string>\n#include <unordered_set>\n\n#include \"base/files/file_path.h\"\n#include \"base/macros.h\"\n#include \"base/memory/weak_ptr.h\"\n\nnamespace content {\nclass BrowserContext;\n}\n\n// Contains map of default pre-installed apps and packages.\nclass ArcDefaultAppList {\n public:\n class Delegate {\n public:\n virtual void OnDefaultAppsReady() = 0;\n\n protected:\n virtual ~Delegate() {}\n };\n\n struct AppInfo {\n AppInfo(const std::string& name,\n const std::string& package_name,\n const std::string& activity,\n bool oem,\n const base::FilePath app_path);\n ~AppInfo();\n\n std::string name;\n std::string package_name;\n std::string activity;\n bool oem;\n base::FilePath app_path; // App folder that contains pre-installed icons.\n };\n\n enum class FilterLevel {\n // Filter nothing.\n NOTHING,\n // Filter out only optional apps, excluding Play Store for example. Used in\n // case when Play Store is managed and enabled.\n OPTIONAL_APPS,\n // Filter out everything. Used in case when Play Store is managed and\n // disabled.\n ALL\n };\n\n // Defines App id to default AppInfo mapping.\n using AppInfoMap = std::map<std::string, std::unique_ptr<AppInfo>>;\n\n ArcDefaultAppList(Delegate* delegate, content::BrowserContext* context);\n ~ArcDefaultAppList();\n\n static void UseTestAppsDirectory();\n\n // Returns default app info if it is found in defaults and its package is not\n // marked as uninstalled.\n const AppInfo* GetApp(const std::string& app_id) const;\n // Returns true if app is found in defaults and its package is not marked as\n // uninstalled.\n bool HasApp(const std::string& app_id) const;\n // Returns true if package exists in default packages list. Note it may be\n // marked as uninstalled.\n bool HasPackage(const std::string& package_name) const;\n // Sets uninstalled flag for default package if it exists in default packages\n // list.\n void MaybeMarkPackageUninstalled(const std::string& package_name,\n bool uninstalled);\n\n // Returns set of packages which are marked not as uninstalled.\n std::unordered_set<std::string> GetActivePackages() const;\n\n const AppInfoMap& app_map() const { return apps_; }\n\n void set_filter_level(FilterLevel filter_level) {\n filter_level_ = filter_level;\n }\n\n private:\n // Defines mapping package name to uninstalled state.\n using PackageMap = std::map<std::string, bool>;\n\n // Called when default apps are read.\n void OnAppsReady(std::unique_ptr<AppInfoMap> apps);\n\n // Unowned pointer.\n Delegate* const delegate_;\n content::BrowserContext* const context_;\n FilterLevel filter_level_ = FilterLevel::ALL;\n\n AppInfoMap apps_;\n PackageMap packages_;\n\n base::WeakPtrFactory<ArcDefaultAppList> weak_ptr_factory_;\n\n DISALLOW_COPY_AND_ASSIGN(ArcDefaultAppList);\n};\n\n#endif // CHROME_BROWSER_UI_APP_LIST_ARC_ARC_DEFAULT_APP_LIST_H_\n"}
80,013
c
// // LMWebWKInterfaceImage.h // LMWebWKInterfaceImage // // Created by <NAME> on 03.11.16. // Copyright © 2016 BigBadBird. All rights reserved. // #import <WatchKit/WatchKit.h> #import <Foundation/Foundation.h> @interface WKInterfaceImage (LMWebWKInterfaceImage) - (void) setImageWithURL:(NSURL*) url; - (void) setImageWithURL:(NSURL*) url completion:(void (^)(UIImage* image))completionBlock; @end
30.08
13
(translation_unit) "//\n// LMWebWKInterfaceImage.h\n// LMWebWKInterfaceImage\n//\n// Created by <NAME> on 03.11.16.\n// Copyright © 2016 BigBadBird. All rights reserved.\n//\n\n#import <WatchKit/WatchKit.h>\n#import <Foundation/Foundation.h>\n\n@interface WKInterfaceImage (LMWebWKInterfaceImage)\n- (void) setImageWithURL:(NSURL*) url;\n- (void) setImageWithURL:(NSURL*) url completion:(void (^)(UIImage* image))completionBlock;\n\n@end\n" (comment) "//" (comment) "// LMWebWKInterfaceImage.h" (comment) "// LMWebWKInterfaceImage" (comment) "//" (comment) "// Created by <NAME> on 03.11.16." (comment) "// Copyright © 2016 BigBadBird. All rights reserved.\n" (comment) "/\n" (preproc_call) "import <WatchKit/WatchKit.h>\n#" (preproc_directive) "import " (preproc_arg) "WatchKit/WatchKit.h>\n" (preproc_call) "import <Foundation/Foundation.h>\n\n" (preproc_directive) "import " (preproc_arg) "Foundation/Foundation.h>\n" (ERROR) "interface WKInterfaceImage (LMWebWKInterfaceImage)\n- (void) setImageWithURL:(NSURL*) url;" (ERROR) "i" (type_identifier) "nterface " (function_declarator) "KInterfaceImage (LMWebWKInterfaceImage)\n" (identifier) "KInterfaceImage " (parameter_list) "LMWebWKInterfaceImage)\n" (() "L" (identifier) "MWebWKInterfaceImage)" ()) "\n" (unary_expression) " (void) setImageWithURL:" (-) " " (cast_expression) "void) setImageWithURL:" (() "v" (type_descriptor) "oid)" (primitive_type) "oid)" ()) " " (identifier) "etImageWithURL:" (:) "(" (() "N" (binary_expression) "SURL*) url;" (identifier) "SURL*" (*) ")" (ERROR) " " ()) " " (identifier) "rl;" (expression_statement) "\n" (;) "\n" (expression_statement) " (void) setImageWithURL:(NSURL*) url completion:(void (^)(UIImage* image))completionBlock;\n" (call_expression) " (void) setImageWithURL:(NSURL*) url completion:(void (^)(UIImage* image))" (call_expression) " (void) setImageWithURL:(NSURL*) url completion:(void (^)(" (binary_expression) " (void) setImageWithURL:(NSURL*) url completion:" (unary_expression) " (void) setImageWithURL:" (-) " " (cast_expression) "void) setImageWithURL:" (() "v" (type_descriptor) "oid)" (primitive_type) "oid)" ()) " " (identifier) "etImageWithURL:" (ERROR) "(NSURL*" (:) "(" (() "N" (identifier) "SURL*" (*) ")" (ERROR) " url " ()) " " (identifier) "rl " (identifier) "ompletion:" (ERROR) "(void " (:) "(" (() "v" (primitive_type) "oid " (argument_list) "^)(" (() "^" (ERROR) ")" (^) ")" ()) "(" (argument_list) "UIImage* image))" (() "U" (binary_expression) "IImage* image)" (identifier) "IImage*" (*) " " (identifier) "mage)" ()) ")" (ERROR) "completionBlock;" ()) "c" (identifier) "ompletionBlock;" (;) "\n" (ERROR) "e" (ERROR) "e" (expression_statement) "nd\n" (identifier) "nd\n" (;) ""
87
10
{"language": "c", "success": true, "metadata": {"lines": 13, "avg_line_length": 30.08, "nodes": 48, "errors": 0, "source_hash": "b8c6cc8f81cf5a7d0b97109dccf3a476525c81f2642770f3df286b2c30158a25", "categorized_nodes": 26}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "import <WatchKit/WatchKit.h>\n#", "parent": null, "children": [1], "start_point": {"row": 8, "column": 0}, "end_point": {"row": 9, "column": 0}}, {"id": 1, "type": "preproc_arg", "text": "WatchKit/WatchKit.h>\n", "parent": 0, "children": [], "start_point": {"row": 8, "column": 8}, "end_point": {"row": 8, "column": 29}}, {"id": 2, "type": "preproc_call", "text": "import <Foundation/Foundation.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": "Foundation/Foundation.h>\n", "parent": 2, "children": [], "start_point": {"row": 9, "column": 8}, "end_point": {"row": 9, "column": 33}}, {"id": 4, "type": "ERROR", "text": "interface WKInterfaceImage (LMWebWKInterfaceImage)\n- (void) setImageWithURL:(NSURL*) url;", "parent": null, "children": [5, 6, 7, 11, 17], "start_point": {"row": 11, "column": 0}, "end_point": {"row": 12, "column": 37}}, {"id": 5, "type": "ERROR", "text": "i", "parent": 4, "children": [], "start_point": {"row": 11, "column": 0}, "end_point": {"row": 11, "column": 1}}, {"id": 6, "type": "type_identifier", "text": "nterface ", "parent": 4, "children": [], "start_point": {"row": 11, "column": 1}, "end_point": {"row": 11, "column": 10}}, {"id": 7, "type": "function_declarator", "text": "KInterfaceImage (LMWebWKInterfaceImage)\n", "parent": 4, "children": [8, 9], "start_point": {"row": 11, "column": 11}, "end_point": {"row": 11, "column": 51}}, {"id": 8, "type": "identifier", "text": "KInterfaceImage ", "parent": 7, "children": [], "start_point": {"row": 11, "column": 11}, "end_point": {"row": 11, "column": 27}}, {"id": 9, "type": "parameter_list", "text": "LMWebWKInterfaceImage)\n", "parent": 7, "children": [10], "start_point": {"row": 11, "column": 28}, "end_point": {"row": 11, "column": 51}}, {"id": 10, "type": "identifier", "text": "MWebWKInterfaceImage)", "parent": 9, "children": [], "start_point": {"row": 11, "column": 29}, "end_point": {"row": 11, "column": 50}}, {"id": 11, "type": "unary_expression", "text": " (void) setImageWithURL:", "parent": 4, "children": [12, 13], "start_point": {"row": 12, "column": 0}, "end_point": {"row": 12, "column": 24}}, {"id": 12, "type": "-", "text": " ", "parent": 11, "children": [], "start_point": {"row": 12, "column": 0}, "end_point": {"row": 12, "column": 1}}, {"id": 13, "type": "cast_expression", "text": "void) setImageWithURL:", "parent": 11, "children": [14, 16], "start_point": {"row": 12, "column": 2}, "end_point": {"row": 12, "column": 24}}, {"id": 14, "type": "type_descriptor", "text": "oid)", "parent": 13, "children": [15], "start_point": {"row": 12, "column": 3}, "end_point": {"row": 12, "column": 7}}, {"id": 15, "type": "primitive_type", "text": "oid)", "parent": 14, "children": [], "start_point": {"row": 12, "column": 3}, "end_point": {"row": 12, "column": 7}}, {"id": 16, "type": "identifier", "text": "etImageWithURL:", "parent": 13, "children": [], "start_point": {"row": 12, "column": 9}, "end_point": {"row": 12, "column": 24}}, {"id": 17, "type": "binary_expression", "text": "SURL*) url;", "parent": 4, "children": [18, 19, 20], "start_point": {"row": 12, "column": 26}, "end_point": {"row": 12, "column": 37}}, {"id": 18, "type": "identifier", "text": "SURL*", "parent": 17, "children": [], "start_point": {"row": 12, "column": 26}, "end_point": {"row": 12, "column": 31}}, {"id": 19, "type": "ERROR", "text": " ", "parent": 17, "children": [], "start_point": {"row": 12, "column": 32}, "end_point": {"row": 12, "column": 33}}, {"id": 20, "type": "identifier", "text": "rl;", "parent": 17, "children": [], "start_point": {"row": 12, "column": 34}, "end_point": {"row": 12, "column": 37}}, {"id": 21, "type": "call_expression", "text": " (void) setImageWithURL:(NSURL*) url completion:(void (^)(UIImage* image))", "parent": null, "children": [22, 38], "start_point": {"row": 13, "column": 0}, "end_point": {"row": 13, "column": 74}}, {"id": 22, "type": "call_expression", "text": " (void) setImageWithURL:(NSURL*) url completion:(void (^)(", "parent": 21, "children": [23, 35, 37], "start_point": {"row": 13, "column": 0}, "end_point": {"row": 13, "column": 58}}, {"id": 23, "type": "binary_expression", "text": " (void) setImageWithURL:(NSURL*) url completion:", "parent": 22, "children": [24, 30, 32, 34], "start_point": {"row": 13, "column": 0}, "end_point": {"row": 13, "column": 48}}, {"id": 24, "type": "unary_expression", "text": " (void) setImageWithURL:", "parent": 23, "children": [25, 26], "start_point": {"row": 13, "column": 0}, "end_point": {"row": 13, "column": 24}}, {"id": 25, "type": "-", "text": " ", "parent": 24, "children": [], "start_point": {"row": 13, "column": 0}, "end_point": {"row": 13, "column": 1}}, {"id": 26, "type": "cast_expression", "text": "void) setImageWithURL:", "parent": 24, "children": [27, 29], "start_point": {"row": 13, "column": 2}, "end_point": {"row": 13, "column": 24}}, {"id": 27, "type": "type_descriptor", "text": "oid)", "parent": 26, "children": [28], "start_point": {"row": 13, "column": 3}, "end_point": {"row": 13, "column": 7}}, {"id": 28, "type": "primitive_type", "text": "oid)", "parent": 27, "children": [], "start_point": {"row": 13, "column": 3}, "end_point": {"row": 13, "column": 7}}, {"id": 29, "type": "identifier", "text": "etImageWithURL:", "parent": 26, "children": [], "start_point": {"row": 13, "column": 9}, "end_point": {"row": 13, "column": 24}}, {"id": 30, "type": "ERROR", "text": "(NSURL*", "parent": 23, "children": [31], "start_point": {"row": 13, "column": 24}, "end_point": {"row": 13, "column": 31}}, {"id": 31, "type": "identifier", "text": "SURL*", "parent": 30, "children": [], "start_point": {"row": 13, "column": 26}, "end_point": {"row": 13, "column": 31}}, {"id": 32, "type": "ERROR", "text": " url ", "parent": 23, "children": [33], "start_point": {"row": 13, "column": 32}, "end_point": {"row": 13, "column": 37}}, {"id": 33, "type": "identifier", "text": "rl ", "parent": 32, "children": [], "start_point": {"row": 13, "column": 34}, "end_point": {"row": 13, "column": 37}}, {"id": 34, "type": "identifier", "text": "ompletion:", "parent": 23, "children": [], "start_point": {"row": 13, "column": 38}, "end_point": {"row": 13, "column": 48}}, {"id": 35, "type": "ERROR", "text": "(void ", "parent": 22, "children": [36], "start_point": {"row": 13, "column": 48}, "end_point": {"row": 13, "column": 54}}, {"id": 36, "type": "primitive_type", "text": "oid ", "parent": 35, "children": [], "start_point": {"row": 13, "column": 50}, "end_point": {"row": 13, "column": 54}}, {"id": 37, "type": "argument_list", "text": "^)(", "parent": 22, "children": [], "start_point": {"row": 13, "column": 55}, "end_point": {"row": 13, "column": 58}}, {"id": 38, "type": "argument_list", "text": "UIImage* image))", "parent": 21, "children": [39], "start_point": {"row": 13, "column": 58}, "end_point": {"row": 13, "column": 74}}, {"id": 39, "type": "binary_expression", "text": "IImage* image)", "parent": 38, "children": [40, 41, 42], "start_point": {"row": 13, "column": 59}, "end_point": {"row": 13, "column": 73}}, {"id": 40, "type": "identifier", "text": "IImage*", "parent": 39, "children": [], "start_point": {"row": 13, "column": 59}, "end_point": {"row": 13, "column": 66}}, {"id": 41, "type": "*", "text": " ", "parent": 39, "children": [], "start_point": {"row": 13, "column": 66}, "end_point": {"row": 13, "column": 67}}, {"id": 42, "type": "identifier", "text": "mage)", "parent": 39, "children": [], "start_point": {"row": 13, "column": 68}, "end_point": {"row": 13, "column": 73}}, {"id": 43, "type": "ERROR", "text": "completionBlock;", "parent": null, "children": [44], "start_point": {"row": 13, "column": 74}, "end_point": {"row": 13, "column": 90}}, {"id": 44, "type": "identifier", "text": "ompletionBlock;", "parent": 43, "children": [], "start_point": {"row": 13, "column": 75}, "end_point": {"row": 13, "column": 90}}, {"id": 45, "type": "ERROR", "text": "e", "parent": null, "children": [46], "start_point": {"row": 15, "column": 0}, "end_point": {"row": 15, "column": 1}}, {"id": 46, "type": "ERROR", "text": "e", "parent": 45, "children": [], "start_point": {"row": 15, "column": 0}, "end_point": {"row": 15, "column": 1}}, {"id": 47, "type": "identifier", "text": "nd\n", "parent": null, "children": [], "start_point": {"row": 15, "column": 1}, "end_point": {"row": 15, "column": 4}}]}, "node_categories": {"declarations": {"functions": [7], "variables": [], "classes": [], "imports": [], "modules": [], "enums": []}, "statements": {"expressions": [11, 13, 17, 21, 22, 23, 24, 26, 39], "assignments": [], "loops": [], "conditionals": [6, 8, 10, 16, 18, 20, 29, 31, 33, 34, 40, 42, 44, 47], "returns": [], "exceptions": []}, "expressions": {"calls": [0, 2], "literals": [], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [{"node_id": 7, "universal_type": "function", "name": "unknown", "text_snippet": "KInterfaceImage (LMWebWKInterfaceImage)\n"}], "class_declarations": [], "import_statements": []}, "original_source_code": "//\n// LMWebWKInterfaceImage.h\n// LMWebWKInterfaceImage\n//\n// Created by <NAME> on 03.11.16.\n// Copyright \u00a9 2016 BigBadBird. All rights reserved.\n//\n\n#import <WatchKit/WatchKit.h>\n#import <Foundation/Foundation.h>\n\n@interface WKInterfaceImage (LMWebWKInterfaceImage)\n- (void) setImageWithURL:(NSURL*) url;\n- (void) setImageWithURL:(NSURL*) url completion:(void (^)(UIImage* image))completionBlock;\n\n@end\n"}
80,014
c
#pragma once // License: MIT http://opensource.org/licenses/MIT // Author: dustpg mailto:<EMAIL> #include "sfc_famicom.h" /// <summary> /// 实用函数-StepFC: 载入8k PRG-ROM /// </summary> /// <param name="famicom">The famicom.</param> /// <param name="des">The DES.</param> /// <param name="src">The source.</param> static inline void sfc_load_prgrom_8k( sfc_famicom_t* famicom, int des, int src) { famicom->prg_banks[4 + des] = famicom->rom_info.data_prgrom + 8 * 1024 * src; } /// <summary> /// 实用函数-StepFC: 载入1k CHR-ROM /// </summary> /// <param name="famicom">The famicom.</param> /// <param name="des">The DES.</param> /// <param name="src">The source.</param> static inline void sfc_load_chrrom_1k( sfc_famicom_t* famicom, int des, int src) { famicom->ppu.banks[des] = famicom->rom_info.data_chrrom + 1024 * src; }
32.4
25
(translation_unit) "ragma once\n// License: MIT http://opensource.org/licenses/MIT\n// Author: dustpg mailto:<EMAIL>\n\n#include "sfc_famicom.h"\n\n\n/// <summary>\n/// 实用函数-StepFC: 载入8k PRG-ROM\n/// </summary>\n/// <param name="famicom">The famicom.</param>\n/// <param name="des">The DES.</param>\n/// <param name="src">The source.</param>\nstatic inline void sfc_load_prgrom_8k(\n sfc_famicom_t* famicom, int des, int src) {\n famicom->prg_banks[4 + des] = famicom->rom_info.data_prgrom + 8 * 1024 * src;\n}\n\n/// <summary>\n/// 实用函数-StepFC: 载入1k CHR-ROM\n/// </summary>\n/// <param name="famicom">The famicom.</param>\n/// <param name="des">The DES.</param>\n/// <param name="src">The source.</param>\nstatic inline void sfc_load_chrrom_1k(\n sfc_famicom_t* famicom, int des, int src) {\n famicom->ppu.banks[des] = famicom->rom_info.data_chrrom + 1024 * src;\n}" (preproc_call) "ragma once\n//" (preproc_directive) "ragma o" (preproc_arg) "ce\n/" (comment) " License: MIT http://opensource.org/licenses/MIT\n/" (comment) " Author: dustpg mailto:<EMAIL>\n\n" (preproc_include) "nclude "sfc_famicom.h"\n\n\n" (#include) "nclude "" (string_literal) "fc_famicom.h"\n\n" (") "f" (string_content) "c_famicom.h"\n" (") "\n" (comment) "/ <summary>\n/" (comment) "/ 实用函数-StepFC: 载入8k PRG-ROM\n/// </summary" (comment) "\n/// <param na" (comment) "e="famicom">The famicom.</param>\n/// <param na" (comment) "e="des">The DES.</param>\n/// <param na" (comment) "e="src">The source.</param>\nstatic inline" (function_definition) "void sfc_load_prgrom_8k(\n sfc_famicom_t* famicom, int des, int src) {\n famicom->prg_banks[4 + des] = famicom->rom_info.data_prgrom + 8 * 1024 * src;\n}\n\n/// <summary" (storage_class_specifier) "void s" (static) "void s" (storage_class_specifier) "c_load" (inline) "c_load" (primitive_type) "prgr" (function_declarator) "m_8k(\n sfc_famicom_t* famicom, int des, int src) {\n famicom" (identifier) "m_8k(\n sfc_fami" (parameter_list) "com_t* famicom, int des, int src) {\n famicom" (() "c" (parameter_declaration) " famicom, int des, int" (type_identifier) " famicom, int" (pointer_declarator) " des, int" (*) " " (identifier) "es, int" (,) " " (parameter_declaration) "rc) {\n " (primitive_type) "rc)" (identifier) "{\n " (,) " " (parameter_declaration) " famico" (primitive_type) " fa" (identifier) "ico" ()) "m" (compound_statement) ">prg_banks[4 + des] = famicom->rom_info.data_prgrom + 8 * 1024 * src;\n}\n\n/// <summary" ({) ">" (expression_statement) "anks[4 + des] = famicom->rom_info.data_prgrom + 8 * 1024 * src;\n}\n\n/// <summa" (assignment_expression) "anks[4 + des] = famicom->rom_info.data_prgrom + 8 * 1024 * src;\n}\n\n/// <summ" (subscript_expression) "anks[4 + des] = famicom->ro" (field_expression) "anks[4 + des] = fa" (identifier) "anks[4 " (->) "+ " (field_identifier) "des] = fa" ([) "m" (binary_expression) "icom->r" (number_literal) "i" (+) "o" (identifier) "->r" (]) "o" (=) "_" (binary_expression) "nfo.data_prgrom + 8 * 1024 * src;\n}\n\n/// <summ" (field_expression) "nfo.data_prgrom + 8 * 1024 * " (field_expression) "nfo.data_prgrom +" (identifier) "nfo.dat" (->) "a_" (field_identifier) "prgrom +" (.) " " (field_identifier) "8 * 1024 * " (+) "r" (binary_expression) ";\n}\n\n/// <summ" (binary_expression) ";\n}\n\n///" (number_literal) ";" (*) "}" (number_literal) "\n///" (*) "<" (identifier) "umm" (;) "a" (}) "y" (comment) "/// 实用函数-Step" (comment) "C: 载入1k CHR-ROM\n/// </summary>\n/// <param" (comment) "name="famicom"" (comment) "The famicom.</param>\n/// <param name="des">The" (comment) "DES.</param>\n/// <param name="src">The" (comment) "source.</param>\nstatic inline void sfc_lo" (function_definition) "d_chrrom_1k(\n sfc_famicom_t* famicom, int des, int src) {\n famicom->ppu.banks[des] = famicom->rom_info.data_chrrom + 1024 * src;\n}" (storage_class_specifier) "d_chrr" (static) "d_chrr" (storage_class_specifier) "m_1k(\n" (inline) "m_1k(\n" (primitive_type) " s" (function_declarator) "c_famicom_t* famicom, int des, int src) {\n famicom->ppu.banks[" (identifier) "c_famicom_t* famic" (parameter_list) "om, int des, int src) {\n famicom->ppu.banks[" (() "o" (parameter_declaration) "t des, int src) {\n " (type_identifier) "t des, int sr" (pointer_declarator) "c) {\n " (*) "c" (identifier) " {\n " (,) "f" (parameter_declaration) "micom->" (primitive_type) "mic" (identifier) "m->" (,) "p" (parameter_declaration) "u.banks" (primitive_type) "u.b" (identifier) "nks" ()) "[" (compound_statement) "es] = famicom->rom_info.data_chrrom + 1024 * src;\n}" ({) "e" (expression_statement) "famicom->rom_info.data_chrrom + 1024 * src;\n}" (assignment_expression) "famicom->rom_info.data_chrrom + 1024 * src;\n}" (subscript_expression) "famicom->rom_info.data_" (field_expression) "famicom->rom_info." (field_expression) "famicom->rom" (identifier) "famicom" (->) "->" (field_identifier) "rom" (.) "_" (field_identifier) "info." ([) "d" (identifier) "ata" (]) "_" (=) "h" (binary_expression) "rom + 1024 * src;\n}" (field_expression) "rom + 1024 * src;\n}" (field_expression) "rom + 1024 * src;" (identifier) "rom + 1" (->) "02" (field_identifier) "4 * src;" (.) "\n" (field_identifier) "}" (+) "" (binary_expression) "" (number_literal) "" (*) "" (identifier) "" (;) "" (}) ""
137
0
{"language": "c", "success": true, "metadata": {"lines": 25, "avg_line_length": 32.4, "nodes": 86, "errors": 0, "source_hash": "9afd119458a29c9ffa460a2305716371548548097e227944901ea710245e6b0f", "categorized_nodes": 60}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "ragma once\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/", "parent": 0, "children": [], "start_point": {"row": 0, "column": 11}, "end_point": {"row": 0, "column": 15}}, {"id": 3, "type": "preproc_include", "text": "nclude \"sfc_famicom.h\"\n\n\n", "parent": null, "children": [4, 5], "start_point": {"row": 4, "column": 0}, "end_point": {"row": 5, "column": 0}}, {"id": 4, "type": "#include", "text": "nclude \"", "parent": 3, "children": [], "start_point": {"row": 4, "column": 0}, "end_point": {"row": 4, "column": 8}}, {"id": 5, "type": "string_literal", "text": "fc_famicom.h\"\n\n", "parent": 3, "children": [], "start_point": {"row": 4, "column": 9}, "end_point": {"row": 4, "column": 24}}, {"id": 6, "type": "function_definition", "text": "void sfc_load_prgrom_8k(\n sfc_famicom_t* famicom, int des, int src) {\n famicom->prg_banks[4 + des] = famicom->rom_info.data_prgrom + 8 * 1024 * src;\n}\n\n/// <summary", "parent": null, "children": [7, 8, 10, 11], "start_point": {"row": 13, "column": 0}, "end_point": {"row": 16, "column": 1}}, {"id": 7, "type": "storage_class_specifier", "text": "void s", "parent": 6, "children": [], "start_point": {"row": 13, "column": 0}, "end_point": {"row": 13, "column": 6}}, {"id": 8, "type": "storage_class_specifier", "text": "c_load", "parent": 6, "children": [9], "start_point": {"row": 13, "column": 7}, "end_point": {"row": 13, "column": 13}}, {"id": 9, "type": "inline", "text": "c_load", "parent": 8, "children": [], "start_point": {"row": 13, "column": 7}, "end_point": {"row": 13, "column": 13}}, {"id": 10, "type": "primitive_type", "text": "prgr", "parent": 6, "children": [], "start_point": {"row": 13, "column": 14}, "end_point": {"row": 13, "column": 18}}, {"id": 11, "type": "function_declarator", "text": "m_8k(\n sfc_famicom_t* famicom, int des, int src) {\n famicom", "parent": 6, "children": [12, 13], "start_point": {"row": 13, "column": 19}, "end_point": {"row": 14, "column": 45}}, {"id": 12, "type": "identifier", "text": "m_8k(\n sfc_fami", "parent": 11, "children": [], "start_point": {"row": 13, "column": 19}, "end_point": {"row": 13, "column": 37}}, {"id": 13, "type": "parameter_list", "text": "com_t* famicom, int des, int src) {\n famicom", "parent": 11, "children": [14, 19, 21], "start_point": {"row": 13, "column": 37}, "end_point": {"row": 14, "column": 45}}, {"id": 14, "type": "parameter_declaration", "text": " famicom, int des, int", "parent": 13, "children": [15, 16], "start_point": {"row": 14, "column": 4}, "end_point": {"row": 14, "column": 26}}, {"id": 15, "type": "type_identifier", "text": " famicom, int", "parent": 14, "children": [], "start_point": {"row": 14, "column": 4}, "end_point": {"row": 14, "column": 17}}, {"id": 16, "type": "pointer_declarator", "text": " des, int", "parent": 14, "children": [17, 18], "start_point": {"row": 14, "column": 17}, "end_point": {"row": 14, "column": 26}}, {"id": 17, "type": "*", "text": " ", "parent": 16, "children": [], "start_point": {"row": 14, "column": 17}, "end_point": {"row": 14, "column": 18}}, {"id": 18, "type": "identifier", "text": "es, int", "parent": 16, "children": [], "start_point": {"row": 14, "column": 19}, "end_point": {"row": 14, "column": 26}}, {"id": 19, "type": "parameter_declaration", "text": "rc) {\n ", "parent": 13, "children": [20], "start_point": {"row": 14, "column": 28}, "end_point": {"row": 14, "column": 35}}, {"id": 20, "type": "primitive_type", "text": "rc)", "parent": 19, "children": [], "start_point": {"row": 14, "column": 28}, "end_point": {"row": 14, "column": 31}}, {"id": 21, "type": "parameter_declaration", "text": " famico", "parent": 13, "children": [22, 23], "start_point": {"row": 14, "column": 37}, "end_point": {"row": 14, "column": 44}}, {"id": 22, "type": "primitive_type", "text": " fa", "parent": 21, "children": [], "start_point": {"row": 14, "column": 37}, "end_point": {"row": 14, "column": 40}}, {"id": 23, "type": "identifier", "text": "ico", "parent": 21, "children": [], "start_point": {"row": 14, "column": 41}, "end_point": {"row": 14, "column": 44}}, {"id": 24, "type": "assignment_expression", "text": "anks[4 + des] = famicom->rom_info.data_prgrom + 8 * 1024 * src;\n}\n\n/// <summ", "parent": 6, "children": [25, 34, 35], "start_point": {"row": 15, "column": 4}, "end_point": {"row": 15, "column": 80}}, {"id": 25, "type": "subscript_expression", "text": "anks[4 + des] = famicom->ro", "parent": 24, "children": [26, 30], "start_point": {"row": 15, "column": 4}, "end_point": {"row": 15, "column": 31}}, {"id": 26, "type": "field_expression", "text": "anks[4 + des] = fa", "parent": 25, "children": [27, 28, 29], "start_point": {"row": 15, "column": 4}, "end_point": {"row": 15, "column": 22}}, {"id": 27, "type": "identifier", "text": "anks[4 ", "parent": 26, "children": [], "start_point": {"row": 15, "column": 4}, "end_point": {"row": 15, "column": 11}}, {"id": 28, "type": "->", "text": "+ ", "parent": 26, "children": [], "start_point": {"row": 15, "column": 11}, "end_point": {"row": 15, "column": 13}}, {"id": 29, "type": "field_identifier", "text": "des] = fa", "parent": 26, "children": [], "start_point": {"row": 15, "column": 13}, "end_point": {"row": 15, "column": 22}}, {"id": 30, "type": "binary_expression", "text": "icom->r", "parent": 25, "children": [31, 32, 33], "start_point": {"row": 15, "column": 23}, "end_point": {"row": 15, "column": 30}}, {"id": 31, "type": "number_literal", "text": "i", "parent": 30, "children": [], "start_point": {"row": 15, "column": 23}, "end_point": {"row": 15, "column": 24}}, {"id": 32, "type": "+", "text": "o", "parent": 30, "children": [], "start_point": {"row": 15, "column": 25}, "end_point": {"row": 15, "column": 26}}, {"id": 33, "type": "identifier", "text": "->r", "parent": 30, "children": [], "start_point": {"row": 15, "column": 27}, "end_point": {"row": 15, "column": 30}}, {"id": 34, "type": "=", "text": "_", "parent": 24, "children": [], "start_point": {"row": 15, "column": 32}, "end_point": {"row": 15, "column": 33}}, {"id": 35, "type": "binary_expression", "text": "nfo.data_prgrom + 8 * 1024 * src;\n}\n\n/// <summ", "parent": 24, "children": [36, 42, 43], "start_point": {"row": 15, "column": 34}, "end_point": {"row": 15, "column": 80}}, {"id": 36, "type": "field_expression", "text": "nfo.data_prgrom + 8 * 1024 * ", "parent": 35, "children": [37, 41], "start_point": {"row": 15, "column": 34}, "end_point": {"row": 15, "column": 63}}, {"id": 37, "type": "field_expression", "text": "nfo.data_prgrom +", "parent": 36, "children": [38, 39, 40], "start_point": {"row": 15, "column": 34}, "end_point": {"row": 15, "column": 51}}, {"id": 38, "type": "identifier", "text": "nfo.dat", "parent": 37, "children": [], "start_point": {"row": 15, "column": 34}, "end_point": {"row": 15, "column": 41}}, {"id": 39, "type": "->", "text": "a_", "parent": 37, "children": [], "start_point": {"row": 15, "column": 41}, "end_point": {"row": 15, "column": 43}}, {"id": 40, "type": "field_identifier", "text": "prgrom +", "parent": 37, "children": [], "start_point": {"row": 15, "column": 43}, "end_point": {"row": 15, "column": 51}}, {"id": 41, "type": "field_identifier", "text": "8 * 1024 * ", "parent": 36, "children": [], "start_point": {"row": 15, "column": 52}, "end_point": {"row": 15, "column": 63}}, {"id": 42, "type": "+", "text": "r", "parent": 35, "children": [], "start_point": {"row": 15, "column": 64}, "end_point": {"row": 15, "column": 65}}, {"id": 43, "type": "binary_expression", "text": ";\n}\n\n/// <summ", "parent": 35, "children": [44, 46, 47], "start_point": {"row": 15, "column": 66}, "end_point": {"row": 15, "column": 80}}, {"id": 44, "type": "binary_expression", "text": ";\n}\n\n///", "parent": 43, "children": [45], "start_point": {"row": 15, "column": 66}, "end_point": {"row": 15, "column": 74}}, {"id": 45, "type": "number_literal", "text": "\n///", "parent": 44, "children": [], "start_point": {"row": 15, "column": 70}, "end_point": {"row": 15, "column": 74}}, {"id": 46, "type": "*", "text": "<", "parent": 43, "children": [], "start_point": {"row": 15, "column": 75}, "end_point": {"row": 15, "column": 76}}, {"id": 47, "type": "identifier", "text": "umm", "parent": 43, "children": [], "start_point": {"row": 15, "column": 77}, "end_point": {"row": 15, "column": 80}}, {"id": 48, "type": "function_definition", "text": "d_chrrom_1k(\n sfc_famicom_t* famicom, int des, int src) {\n famicom->ppu.banks[des] = famicom->rom_info.data_chrrom + 1024 * src;\n}", "parent": null, "children": [49, 50, 52, 53], "start_point": {"row": 24, "column": 0}, "end_point": {"row": 27, "column": 1}}, {"id": 49, "type": "storage_class_specifier", "text": "d_chrr", "parent": 48, "children": [], "start_point": {"row": 24, "column": 0}, "end_point": {"row": 24, "column": 6}}, {"id": 50, "type": "storage_class_specifier", "text": "m_1k(\n", "parent": 48, "children": [51], "start_point": {"row": 24, "column": 7}, "end_point": {"row": 24, "column": 13}}, {"id": 51, "type": "inline", "text": "m_1k(\n", "parent": 50, "children": [], "start_point": {"row": 24, "column": 7}, "end_point": {"row": 24, "column": 13}}, {"id": 52, "type": "primitive_type", "text": " s", "parent": 48, "children": [], "start_point": {"row": 24, "column": 14}, "end_point": {"row": 24, "column": 18}}, {"id": 53, "type": "function_declarator", "text": "c_famicom_t* famicom, int des, int src) {\n famicom->ppu.banks[", "parent": 48, "children": [54, 55], "start_point": {"row": 24, "column": 19}, "end_point": {"row": 25, "column": 45}}, {"id": 54, "type": "identifier", "text": "c_famicom_t* famic", "parent": 53, "children": [], "start_point": {"row": 24, "column": 19}, "end_point": {"row": 24, "column": 37}}, {"id": 55, "type": "parameter_list", "text": "om, int des, int src) {\n famicom->ppu.banks[", "parent": 53, "children": [56, 60, 63], "start_point": {"row": 24, "column": 37}, "end_point": {"row": 25, "column": 45}}, {"id": 56, "type": "parameter_declaration", "text": "t des, int src) {\n ", "parent": 55, "children": [57, 58], "start_point": {"row": 25, "column": 4}, "end_point": {"row": 25, "column": 26}}, {"id": 57, "type": "type_identifier", "text": "t des, int sr", "parent": 56, "children": [], "start_point": {"row": 25, "column": 4}, "end_point": {"row": 25, "column": 17}}, {"id": 58, "type": "pointer_declarator", "text": "c) {\n ", "parent": 56, "children": [59], "start_point": {"row": 25, "column": 17}, "end_point": {"row": 25, "column": 26}}, {"id": 59, "type": "*", "text": "c", "parent": 58, "children": [], "start_point": {"row": 25, "column": 17}, "end_point": {"row": 25, "column": 18}}, {"id": 60, "type": "parameter_declaration", "text": "micom->", "parent": 55, "children": [61, 62], "start_point": {"row": 25, "column": 28}, "end_point": {"row": 25, "column": 35}}, {"id": 61, "type": "primitive_type", "text": "mic", "parent": 60, "children": [], "start_point": {"row": 25, "column": 28}, "end_point": {"row": 25, "column": 31}}, {"id": 62, "type": "identifier", "text": "m->", "parent": 60, "children": [], "start_point": {"row": 25, "column": 32}, "end_point": {"row": 25, "column": 35}}, {"id": 63, "type": "parameter_declaration", "text": "u.banks", "parent": 55, "children": [64, 65], "start_point": {"row": 25, "column": 37}, "end_point": {"row": 25, "column": 44}}, {"id": 64, "type": "primitive_type", "text": "u.b", "parent": 63, "children": [], "start_point": {"row": 25, "column": 37}, "end_point": {"row": 25, "column": 40}}, {"id": 65, "type": "identifier", "text": "nks", "parent": 63, "children": [], "start_point": {"row": 25, "column": 41}, "end_point": {"row": 25, "column": 44}}, {"id": 66, "type": "assignment_expression", "text": "famicom->rom_info.data_chrrom + 1024 * src;\n}", "parent": 48, "children": [67, 74, 75], "start_point": {"row": 26, "column": 4}, "end_point": {"row": 26, "column": 72}}, {"id": 67, "type": "subscript_expression", "text": "famicom->rom_info.data_", "parent": 66, "children": [68, 73], "start_point": {"row": 26, "column": 4}, "end_point": {"row": 26, "column": 27}}, {"id": 68, "type": "field_expression", "text": "famicom->rom_info.", "parent": 67, "children": [69, 72], "start_point": {"row": 26, "column": 4}, "end_point": {"row": 26, "column": 22}}, {"id": 69, "type": "field_expression", "text": "famicom->rom", "parent": 68, "children": [70, 71], "start_point": {"row": 26, "column": 4}, "end_point": {"row": 26, "column": 16}}, {"id": 70, "type": "identifier", "text": "famicom", "parent": 69, "children": [], "start_point": {"row": 26, "column": 4}, "end_point": {"row": 26, "column": 11}}, {"id": 71, "type": "field_identifier", "text": "rom", "parent": 69, "children": [], "start_point": {"row": 26, "column": 13}, "end_point": {"row": 26, "column": 16}}, {"id": 72, "type": "field_identifier", "text": "info.", "parent": 68, "children": [], "start_point": {"row": 26, "column": 17}, "end_point": {"row": 26, "column": 22}}, {"id": 73, "type": "identifier", "text": "ata", "parent": 67, "children": [], "start_point": {"row": 26, "column": 23}, "end_point": {"row": 26, "column": 26}}, {"id": 74, "type": "=", "text": "h", "parent": 66, "children": [], "start_point": {"row": 26, "column": 28}, "end_point": {"row": 26, "column": 29}}, {"id": 75, "type": "binary_expression", "text": "rom + 1024 * src;\n}", "parent": 66, "children": [76, 81, 82], "start_point": {"row": 26, "column": 30}, "end_point": {"row": 26, "column": 72}}, {"id": 76, "type": "field_expression", "text": "rom + 1024 * src;\n}", "parent": 75, "children": [77], "start_point": {"row": 26, "column": 30}, "end_point": {"row": 26, "column": 59}}, {"id": 77, "type": "field_expression", "text": "rom + 1024 * src;", "parent": 76, "children": [78, 79, 80], "start_point": {"row": 26, "column": 30}, "end_point": {"row": 26, "column": 47}}, {"id": 78, "type": "identifier", "text": "rom + 1", "parent": 77, "children": [], "start_point": {"row": 26, "column": 30}, "end_point": {"row": 26, "column": 37}}, {"id": 79, "type": "->", "text": "02", "parent": 77, "children": [], "start_point": {"row": 26, "column": 37}, "end_point": {"row": 26, "column": 39}}, {"id": 80, "type": "field_identifier", "text": "4 * src;", "parent": 77, "children": [], "start_point": {"row": 26, "column": 39}, "end_point": {"row": 26, "column": 47}}, {"id": 81, "type": "+", "text": "", "parent": 75, "children": [], "start_point": {"row": 26, "column": 60}, "end_point": {"row": 26, "column": 61}}, {"id": 82, "type": "binary_expression", "text": "", "parent": 75, "children": [83, 84, 85], "start_point": {"row": 26, "column": 62}, "end_point": {"row": 26, "column": 72}}, {"id": 83, "type": "number_literal", "text": "", "parent": 82, "children": [], "start_point": {"row": 26, "column": 62}, "end_point": {"row": 26, "column": 66}}, {"id": 84, "type": "*", "text": "", "parent": 82, "children": [], "start_point": {"row": 26, "column": 67}, "end_point": {"row": 26, "column": 68}}, {"id": 85, "type": "identifier", "text": "", "parent": 82, "children": [], "start_point": {"row": 26, "column": 69}, "end_point": {"row": 26, "column": 72}}]}, "node_categories": {"declarations": {"functions": [6, 11, 48, 53], "variables": [14, 19, 21, 56, 60, 63], "classes": [7, 8, 49, 50], "imports": [3, 4], "modules": [], "enums": []}, "statements": {"expressions": [25, 26, 30, 35, 36, 37, 43, 44, 67, 68, 69, 75, 76, 77, 82], "assignments": [24, 66], "loops": [], "conditionals": [12, 15, 18, 23, 27, 29, 33, 38, 40, 41, 47, 54, 57, 62, 65, 70, 71, 72, 73, 78, 80, 85], "returns": [], "exceptions": []}, "expressions": {"calls": [0], "literals": [5, 31, 45, 83], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [{"node_id": 6, "universal_type": "function", "name": "sfc_load_prgrom_8k", "text_snippet": "void sfc_load_prgrom_8k(\n sfc_famicom_t* famicom, int des, int src) {\n famicom->prg_banks[4 + "}, {"node_id": 11, "universal_type": "function", "name": "des,", "text_snippet": "m_8k(\n sfc_famicom_t* famicom, int des, int src) {\n famicom"}, {"node_id": 48, "universal_type": "function", "name": "des,", "text_snippet": "d_chrrom_1k(\n sfc_famicom_t* famicom, int des, int src) {\n famicom->ppu.banks[des] = famicom->"}, {"node_id": 53, "universal_type": "function", "name": "des,", "text_snippet": "c_famicom_t* famicom, int des, int src) {\n famicom->ppu.banks["}], "class_declarations": [{"node_id": 7, "universal_type": "class", "name": "s", "text_snippet": "void s"}, {"node_id": 8, "universal_type": "class", "name": "unknown", "text_snippet": "c_load"}, {"node_id": 49, "universal_type": "class", "name": "unknown", "text_snippet": "d_chrr"}, {"node_id": 50, "universal_type": "class", "name": "unknown", "text_snippet": "m_1k(\n"}], "import_statements": [{"node_id": 3, "text": "nclude \"sfc_famicom.h\"\n\n\n"}, {"node_id": 4, "text": "nclude \""}]}, "original_source_code": "\ufeff#pragma once\n// License: MIT http://opensource.org/licenses/MIT\n// Author: dustpg mailto:<EMAIL>\n\n#include \"sfc_famicom.h\"\n\n\n/// <summary>\n/// \u5b9e\u7528\u51fd\u6570-StepFC: \u8f7d\u51658k PRG-ROM\n/// </summary>\n/// <param name=\"famicom\">The famicom.</param>\n/// <param name=\"des\">The DES.</param>\n/// <param name=\"src\">The source.</param>\nstatic inline void sfc_load_prgrom_8k(\n sfc_famicom_t* famicom, int des, int src) {\n famicom->prg_banks[4 + des] = famicom->rom_info.data_prgrom + 8 * 1024 * src;\n}\n\n/// <summary>\n/// \u5b9e\u7528\u51fd\u6570-StepFC: \u8f7d\u51651k CHR-ROM\n/// </summary>\n/// <param name=\"famicom\">The famicom.</param>\n/// <param name=\"des\">The DES.</param>\n/// <param name=\"src\">The source.</param>\nstatic inline void sfc_load_chrrom_1k(\n sfc_famicom_t* famicom, int des, int src) {\n famicom->ppu.banks[des] = famicom->rom_info.data_chrrom + 1024 * src;\n}"}
80,015
c
#include <stdio.h>f main() { char ch; printf("Enter any Character\n"); ch=getchar(); printf("you entered "); putchar(ch); }//end main
14.91
11
(translation_unit) "#include <stdio.h>f\nmain()\n\n{\n char ch;\n printf("Enter any Character\n");\n \n ch=getchar(); \n printf("you entered ");\n putchar(ch);\n \n}//end main\n" (preproc_include) "#include <stdio.h>" (#include) "#include" (system_lib_string) "<stdio.h>" (function_definition) "f\nmain()\n\n{\n char ch;\n printf("Enter any Character\n");\n \n ch=getchar(); \n printf("you entered ");\n putchar(ch);\n \n}" (type_identifier) "f" (function_declarator) "main()" (identifier) "main" (parameter_list) "()" (() "(" ()) ")" (compound_statement) "{\n char ch;\n printf("Enter any Character\n");\n \n ch=getchar(); \n printf("you entered ");\n putchar(ch);\n \n}" ({) "{" (declaration) "char ch;" (primitive_type) "char" (identifier) "ch" (;) ";" (expression_statement) "printf("Enter any Character\n");" (call_expression) "printf("Enter any Character\n")" (identifier) "printf" (argument_list) "("Enter any Character\n")" (() "(" (string_literal) ""Enter any Character\n"" (") """ (string_content) "Enter any Character" (escape_sequence) "\n" (") """ ()) ")" (;) ";" (expression_statement) "ch=getchar();" (assignment_expression) "ch=getchar()" (identifier) "ch" (=) "=" (call_expression) "getchar()" (identifier) "getchar" (argument_list) "()" (() "(" ()) ")" (;) ";" (expression_statement) "printf("you entered ");" (call_expression) "printf("you entered ")" (identifier) "printf" (argument_list) "("you entered ")" (() "(" (string_literal) ""you entered "" (") """ (string_content) "you entered " (") """ ()) ")" (;) ";" (expression_statement) "putchar(ch);" (call_expression) "putchar(ch)" (identifier) "putchar" (argument_list) "(ch)" (() "(" (identifier) "ch" ()) ")" (;) ";" (}) "}" (comment) "//end main"
60
0
{"language": "c", "success": true, "metadata": {"lines": 11, "avg_line_length": 14.91, "nodes": 30, "errors": 0, "source_hash": "1ad6ed9d6951a921b10641c3890eb19c814489d89819dc280c050e987c986330", "categorized_nodes": 22}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#include <stdio.h>", "parent": null, "children": [1, 2], "start_point": {"row": 0, "column": 0}, "end_point": {"row": 0, "column": 18}}, {"id": 1, "type": "#include", "text": "#include", "parent": 0, "children": [], "start_point": {"row": 0, "column": 0}, "end_point": {"row": 0, "column": 8}}, {"id": 2, "type": "system_lib_string", "text": "<stdio.h>", "parent": 0, "children": [], "start_point": {"row": 0, "column": 9}, "end_point": {"row": 0, "column": 18}}, {"id": 3, "type": "function_definition", "text": "f\nmain()\n\n{\n char ch;\n printf(\"Enter any Character\\n\");\n \n\tch=getchar(); \n\tprintf(\"you entered \");\n\tputchar(ch);\n \n}", "parent": null, "children": [4, 5], "start_point": {"row": 0, "column": 18}, "end_point": {"row": 11, "column": 1}}, {"id": 4, "type": "type_identifier", "text": "f", "parent": 3, "children": [], "start_point": {"row": 0, "column": 18}, "end_point": {"row": 0, "column": 19}}, {"id": 5, "type": "function_declarator", "text": "main()", "parent": 3, "children": [6, 7], "start_point": {"row": 1, "column": 0}, "end_point": {"row": 1, "column": 6}}, {"id": 6, "type": "identifier", "text": "main", "parent": 5, "children": [], "start_point": {"row": 1, "column": 0}, "end_point": {"row": 1, "column": 4}}, {"id": 7, "type": "parameter_list", "text": "()", "parent": 5, "children": [], "start_point": {"row": 1, "column": 4}, "end_point": {"row": 1, "column": 6}}, {"id": 8, "type": "declaration", "text": "char ch;", "parent": 3, "children": [9, 10], "start_point": {"row": 4, "column": 4}, "end_point": {"row": 4, "column": 12}}, {"id": 9, "type": "primitive_type", "text": "char", "parent": 8, "children": [], "start_point": {"row": 4, "column": 4}, "end_point": {"row": 4, "column": 8}}, {"id": 10, "type": "identifier", "text": "ch", "parent": 8, "children": [], "start_point": {"row": 4, "column": 9}, "end_point": {"row": 4, "column": 11}}, {"id": 11, "type": "call_expression", "text": "printf(\"Enter any Character\\n\")", "parent": 3, "children": [12, 13], "start_point": {"row": 5, "column": 4}, "end_point": {"row": 5, "column": 35}}, {"id": 12, "type": "identifier", "text": "printf", "parent": 11, "children": [], "start_point": {"row": 5, "column": 4}, "end_point": {"row": 5, "column": 10}}, {"id": 13, "type": "argument_list", "text": "(\"Enter any Character\\n\")", "parent": 11, "children": [14], "start_point": {"row": 5, "column": 10}, "end_point": {"row": 5, "column": 35}}, {"id": 14, "type": "string_literal", "text": "\"Enter any Character\\n\"", "parent": 13, "children": [15], "start_point": {"row": 5, "column": 11}, "end_point": {"row": 5, "column": 34}}, {"id": 15, "type": "escape_sequence", "text": "\\n", "parent": 14, "children": [], "start_point": {"row": 5, "column": 31}, "end_point": {"row": 5, "column": 33}}, {"id": 16, "type": "assignment_expression", "text": "ch=getchar()", "parent": 3, "children": [17, 18, 19], "start_point": {"row": 7, "column": 1}, "end_point": {"row": 7, "column": 13}}, {"id": 17, "type": "identifier", "text": "ch", "parent": 16, "children": [], "start_point": {"row": 7, "column": 1}, "end_point": {"row": 7, "column": 3}}, {"id": 18, "type": "=", "text": "=", "parent": 16, "children": [], "start_point": {"row": 7, "column": 3}, "end_point": {"row": 7, "column": 4}}, {"id": 19, "type": "call_expression", "text": "getchar()", "parent": 16, "children": [20, 21], "start_point": {"row": 7, "column": 4}, "end_point": {"row": 7, "column": 13}}, {"id": 20, "type": "identifier", "text": "getchar", "parent": 19, "children": [], "start_point": {"row": 7, "column": 4}, "end_point": {"row": 7, "column": 11}}, {"id": 21, "type": "argument_list", "text": "()", "parent": 19, "children": [], "start_point": {"row": 7, "column": 11}, "end_point": {"row": 7, "column": 13}}, {"id": 22, "type": "call_expression", "text": "printf(\"you entered \")", "parent": 3, "children": [23, 24], "start_point": {"row": 8, "column": 1}, "end_point": {"row": 8, "column": 23}}, {"id": 23, "type": "identifier", "text": "printf", "parent": 22, "children": [], "start_point": {"row": 8, "column": 1}, "end_point": {"row": 8, "column": 7}}, {"id": 24, "type": "argument_list", "text": "(\"you entered \")", "parent": 22, "children": [25], "start_point": {"row": 8, "column": 7}, "end_point": {"row": 8, "column": 23}}, {"id": 25, "type": "string_literal", "text": "\"you entered \"", "parent": 24, "children": [], "start_point": {"row": 8, "column": 8}, "end_point": {"row": 8, "column": 22}}, {"id": 26, "type": "call_expression", "text": "putchar(ch)", "parent": 3, "children": [27, 28], "start_point": {"row": 9, "column": 1}, "end_point": {"row": 9, "column": 12}}, {"id": 27, "type": "identifier", "text": "putchar", "parent": 26, "children": [], "start_point": {"row": 9, "column": 1}, "end_point": {"row": 9, "column": 8}}, {"id": 28, "type": "argument_list", "text": "(ch)", "parent": 26, "children": [29], "start_point": {"row": 9, "column": 8}, "end_point": {"row": 9, "column": 12}}, {"id": 29, "type": "identifier", "text": "ch", "parent": 28, "children": [], "start_point": {"row": 9, "column": 9}, "end_point": {"row": 9, "column": 11}}]}, "node_categories": {"declarations": {"functions": [3, 5], "variables": [8], "classes": [], "imports": [0, 1], "modules": [], "enums": []}, "statements": {"expressions": [11, 19, 22, 26], "assignments": [16], "loops": [], "conditionals": [4, 6, 10, 12, 17, 20, 23, 27, 29], "returns": [], "exceptions": []}, "expressions": {"calls": [], "literals": [2, 14, 25], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [{"node_id": 3, "universal_type": "function", "name": "unknown", "text_snippet": "f\nmain()\n\n{\n char ch;\n printf(\"Enter any Character\\n\");\n \n\tch=getchar(); "}, {"node_id": 5, "universal_type": "function", "name": "unknown", "text_snippet": "main()"}], "class_declarations": [], "import_statements": [{"node_id": 0, "text": "#include <stdio.h>"}, {"node_id": 1, "text": "#include"}]}, "original_source_code": "#include <stdio.h>f\nmain()\n\n{\n char ch;\n printf(\"Enter any Character\\n\");\n \n\tch=getchar(); \n\tprintf(\"you entered \");\n\tputchar(ch);\n \n}//end main\n"}
80,016
c
#ifndef MAIN_H #define MAIN_H #include "ace/OS.h" class Splot_Main { public: Splot_Main (int = 0, ACE_TCHAR** = NULL); virtual ~Splot_Main (); virtual bool run () = 0; virtual bool checkErrors () = 0; virtual bool setVideoMode () = 0; virtual bool setFullScreen (bool) = 0; virtual void grabMouse (bool, bool = true) = 0; }; #endif // MAIN_H
22.19
16
(translation_unit) "#ifndef MAIN_H\n#define MAIN_H\n\n#include "ace/OS.h"\n\nclass Splot_Main\n{\n public:\n Splot_Main (int = 0,\n ACE_TCHAR** = NULL);\n virtual ~Splot_Main ();\n\n virtual bool run () = 0;\n virtual bool checkErrors () = 0;\n\n virtual bool setVideoMode () = 0;\n virtual bool setFullScreen (bool) = 0;\n\n virtual void grabMouse (bool, bool = true) = 0;\n};\n\n#endif // MAIN_H\n" (preproc_ifdef) "#ifndef MAIN_H\n#define MAIN_H\n\n#include "ace/OS.h"\n\nclass Splot_Main\n{\n public:\n Splot_Main (int = 0,\n ACE_TCHAR** = NULL);\n virtual ~Splot_Main ();\n\n virtual bool run () = 0;\n virtual bool checkErrors () = 0;\n\n virtual bool setVideoMode () = 0;\n virtual bool setFullScreen (bool) = 0;\n\n virtual void grabMouse (bool, bool = true) = 0;\n};\n\n#endif" (#ifndef) "#ifndef" (identifier) "MAIN_H" (preproc_def) "#define MAIN_H\n" (#define) "#define" (identifier) "MAIN_H" (preproc_include) "#include "ace/OS.h"\n" (#include) "#include" (string_literal) ""ace/OS.h"" (") """ (string_content) "ace/OS.h" (") """ (function_definition) "class Splot_Main\n{\n public:\n Splot_Main (int = 0,\n ACE_TCHAR** = NULL);\n virtual ~Splot_Main ();\n\n virtual bool run () = 0;\n virtual bool checkErrors () = 0;\n\n virtual bool setVideoMode () = 0;\n virtual bool setFullScreen (bool) = 0;\n\n virtual void grabMouse (bool, bool = true) = 0;\n}" (type_identifier) "class" (identifier) "Splot_Main" (compound_statement) "{\n public:\n Splot_Main (int = 0,\n ACE_TCHAR** = NULL);\n virtual ~Splot_Main ();\n\n virtual bool run () = 0;\n virtual bool checkErrors () = 0;\n\n virtual bool setVideoMode () = 0;\n virtual bool setFullScreen (bool) = 0;\n\n virtual void grabMouse (bool, bool = true) = 0;\n}" ({) "{" (labeled_statement) "public:\n Splot_Main (int = 0,\n ACE_TCHAR** = NULL);" (statement_identifier) "public" (:) ":" (expression_statement) "Splot_Main (int = 0,\n ACE_TCHAR** = NULL);" (call_expression) "Splot_Main (int = 0,\n ACE_TCHAR** = NULL)" (identifier) "Splot_Main" (argument_list) "(int = 0,\n ACE_TCHAR** = NULL)" (() "(" (assignment_expression) "int = 0" (identifier) "int" (=) "=" (number_literal) "0" (,) "," (binary_expression) "ACE_TCHAR** = NULL" (identifier) "ACE_TCHAR" (*) "*" (pointer_expression) "* = NULL" (*) "*" (ERROR) "=" (=) "=" (null) "NULL" (NULL) "NULL" ()) ")" (;) ";" (declaration) "virtual ~Splot_Main ();" (type_identifier) "virtual" (ERROR) "~" (~) "~" (function_declarator) "Splot_Main ()" (identifier) "Splot_Main" (parameter_list) "()" (() "(" ()) ")" (;) ";" (declaration) "virtual bool run () = 0;" (type_identifier) "virtual" (init_declarator) "bool run () = 0" (function_declarator) "bool run ()" (identifier) "bool" (ERROR) "run" (identifier) "run" (parameter_list) "()" (() "(" ()) ")" (=) "=" (number_literal) "0" (;) ";" (declaration) "virtual bool checkErrors () = 0;" (type_identifier) "virtual" (ERROR) "bool" (identifier) "bool" (init_declarator) "checkErrors () = 0" (function_declarator) "checkErrors ()" (identifier) "checkErrors" (parameter_list) "()" (() "(" ()) ")" (=) "=" (number_literal) "0" (;) ";" (declaration) "virtual bool setVideoMode () = 0;" (type_identifier) "virtual" (ERROR) "bool" (identifier) "bool" (init_declarator) "setVideoMode () = 0" (function_declarator) "setVideoMode ()" (identifier) "setVideoMode" (parameter_list) "()" (() "(" ()) ")" (=) "=" (number_literal) "0" (;) ";" (declaration) "virtual bool setFullScreen (bool) = 0;" (type_identifier) "virtual" (ERROR) "bool" (identifier) "bool" (init_declarator) "setFullScreen (bool) = 0" (function_declarator) "setFullScreen (bool)" (identifier) "setFullScreen" (parameter_list) "(bool)" (() "(" (parameter_declaration) "bool" (primitive_type) "bool" ()) ")" (=) "=" (number_literal) "0" (;) ";" (declaration) "virtual void" (type_identifier) "virtual" (identifier) "void" (;) "" (expression_statement) "grabMouse (bool, bool = true) = 0;" (assignment_expression) "grabMouse (bool, bool = true) = 0" (call_expression) "grabMouse (bool, bool = true)" (identifier) "grabMouse" (argument_list) "(bool, bool = true)" (() "(" (identifier) "bool" (,) "," (assignment_expression) "bool = true" (identifier) "bool" (=) "=" (true) "true" ()) ")" (=) "=" (number_literal) "0" (;) ";" (}) "}" (expression_statement) ";" (;) ";" (#endif) "#endif" (comment) "// MAIN_H"
131
6
{"language": "c", "success": true, "metadata": {"lines": 16, "avg_line_length": 22.19, "nodes": 92, "errors": 0, "source_hash": "b194c1693a9b40d38d7923ca639d3a02d319855cd6eb99f3699fc7c4fb06f1a6", "categorized_nodes": 57}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef MAIN_H\n#define MAIN_H\n\n#include \"ace/OS.h\"\n\nclass Splot_Main\n{\n public:\n Splot_Main (int = 0,\n ACE_TCHAR** = NULL);\n virtual ~Splot_Main ();\n\n virtual bool run () = 0;\n virtual bool checkErrors () = 0;\n\n virtual bool setVideoMode () = 0;\n virtual bool setFullScreen (bool) = 0;\n\n virtual void grabMouse (bool, bool = true) = 0;\n};\n\n#endif", "parent": null, "children": [1, 2, 3, 6, 9, 91], "start_point": {"row": 0, "column": 0}, "end_point": {"row": 21, "column": 6}}, {"id": 1, "type": "#ifndef", "text": "#ifndef", "parent": 0, "children": [], "start_point": {"row": 0, "column": 0}, "end_point": {"row": 0, "column": 7}}, {"id": 2, "type": "identifier", "text": "MAIN_H", "parent": 0, "children": [], "start_point": {"row": 0, "column": 8}, "end_point": {"row": 0, "column": 14}}, {"id": 3, "type": "preproc_def", "text": "#define MAIN_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": "MAIN_H", "parent": 3, "children": [], "start_point": {"row": 1, "column": 8}, "end_point": {"row": 1, "column": 14}}, {"id": 6, "type": "preproc_include", "text": "#include \"ace/OS.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": "\"ace/OS.h\"", "parent": 6, "children": [], "start_point": {"row": 3, "column": 9}, "end_point": {"row": 3, "column": 19}}, {"id": 9, "type": "function_definition", "text": "class Splot_Main\n{\n public:\n Splot_Main (int = 0,\n ACE_TCHAR** = NULL);\n virtual ~Splot_Main ();\n\n virtual bool run () = 0;\n virtual bool checkErrors () = 0;\n\n virtual bool setVideoMode () = 0;\n virtual bool setFullScreen (bool) = 0;\n\n virtual void grabMouse (bool, bool = true) = 0;\n}", "parent": 0, "children": [10], "start_point": {"row": 5, "column": 0}, "end_point": {"row": 19, "column": 1}}, {"id": 10, "type": "identifier", "text": "Splot_Main", "parent": 9, "children": [], "start_point": {"row": 5, "column": 6}, "end_point": {"row": 5, "column": 16}}, {"id": 11, "type": "labeled_statement", "text": "public:\n Splot_Main (int = 0,\n ACE_TCHAR** = NULL);", "parent": 9, "children": [], "start_point": {"row": 7, "column": 1}, "end_point": {"row": 9, "column": 34}}, {"id": 12, "type": "call_expression", "text": "Splot_Main (int = 0,\n ACE_TCHAR** = NULL)", "parent": 11, "children": [13, 14], "start_point": {"row": 8, "column": 2}, "end_point": {"row": 9, "column": 33}}, {"id": 13, "type": "identifier", "text": "Splot_Main", "parent": 12, "children": [], "start_point": {"row": 8, "column": 2}, "end_point": {"row": 8, "column": 12}}, {"id": 14, "type": "argument_list", "text": "(int = 0,\n ACE_TCHAR** = NULL)", "parent": 12, "children": [15, 19], "start_point": {"row": 8, "column": 13}, "end_point": {"row": 9, "column": 33}}, {"id": 15, "type": "assignment_expression", "text": "int = 0", "parent": 14, "children": [16, 17, 18], "start_point": {"row": 8, "column": 14}, "end_point": {"row": 8, "column": 21}}, {"id": 16, "type": "identifier", "text": "int", "parent": 15, "children": [], "start_point": {"row": 8, "column": 14}, "end_point": {"row": 8, "column": 17}}, {"id": 17, "type": "=", "text": "=", "parent": 15, "children": [], "start_point": {"row": 8, "column": 18}, "end_point": {"row": 8, "column": 19}}, {"id": 18, "type": "number_literal", "text": "0", "parent": 15, "children": [], "start_point": {"row": 8, "column": 20}, "end_point": {"row": 8, "column": 21}}, {"id": 19, "type": "binary_expression", "text": "ACE_TCHAR** = NULL", "parent": 14, "children": [20, 21, 22], "start_point": {"row": 9, "column": 14}, "end_point": {"row": 9, "column": 32}}, {"id": 20, "type": "identifier", "text": "ACE_TCHAR", "parent": 19, "children": [], "start_point": {"row": 9, "column": 14}, "end_point": {"row": 9, "column": 23}}, {"id": 21, "type": "*", "text": "*", "parent": 19, "children": [], "start_point": {"row": 9, "column": 23}, "end_point": {"row": 9, "column": 24}}, {"id": 22, "type": "pointer_expression", "text": "* = NULL", "parent": 19, "children": [23, 24, 26], "start_point": {"row": 9, "column": 24}, "end_point": {"row": 9, "column": 32}}, {"id": 23, "type": "*", "text": "*", "parent": 22, "children": [], "start_point": {"row": 9, "column": 24}, "end_point": {"row": 9, "column": 25}}, {"id": 24, "type": "ERROR", "text": "=", "parent": 22, "children": [25], "start_point": {"row": 9, "column": 26}, "end_point": {"row": 9, "column": 27}}, {"id": 25, "type": "=", "text": "=", "parent": 24, "children": [], "start_point": {"row": 9, "column": 26}, "end_point": {"row": 9, "column": 27}}, {"id": 26, "type": "null", "text": "NULL", "parent": 22, "children": [27], "start_point": {"row": 9, "column": 28}, "end_point": {"row": 9, "column": 32}}, {"id": 27, "type": "NULL", "text": "NULL", "parent": 26, "children": [], "start_point": {"row": 9, "column": 28}, "end_point": {"row": 9, "column": 32}}, {"id": 28, "type": "declaration", "text": "virtual ~Splot_Main ();", "parent": 9, "children": [29, 30, 32], "start_point": {"row": 10, "column": 2}, "end_point": {"row": 10, "column": 25}}, {"id": 29, "type": "type_identifier", "text": "virtual", "parent": 28, "children": [], "start_point": {"row": 10, "column": 2}, "end_point": {"row": 10, "column": 9}}, {"id": 30, "type": "ERROR", "text": "~", "parent": 28, "children": [31], "start_point": {"row": 10, "column": 10}, "end_point": {"row": 10, "column": 11}}, {"id": 31, "type": "~", "text": "~", "parent": 30, "children": [], "start_point": {"row": 10, "column": 10}, "end_point": {"row": 10, "column": 11}}, {"id": 32, "type": "function_declarator", "text": "Splot_Main ()", "parent": 28, "children": [33, 34], "start_point": {"row": 10, "column": 11}, "end_point": {"row": 10, "column": 24}}, {"id": 33, "type": "identifier", "text": "Splot_Main", "parent": 32, "children": [], "start_point": {"row": 10, "column": 11}, "end_point": {"row": 10, "column": 21}}, {"id": 34, "type": "parameter_list", "text": "()", "parent": 32, "children": [], "start_point": {"row": 10, "column": 22}, "end_point": {"row": 10, "column": 24}}, {"id": 35, "type": "declaration", "text": "virtual bool run () = 0;", "parent": 9, "children": [36, 37], "start_point": {"row": 12, "column": 2}, "end_point": {"row": 12, "column": 26}}, {"id": 36, "type": "type_identifier", "text": "virtual", "parent": 35, "children": [], "start_point": {"row": 12, "column": 2}, "end_point": {"row": 12, "column": 9}}, {"id": 37, "type": "init_declarator", "text": "bool run () = 0", "parent": 35, "children": [38, 43, 44], "start_point": {"row": 12, "column": 10}, "end_point": {"row": 12, "column": 25}}, {"id": 38, "type": "function_declarator", "text": "bool run ()", "parent": 37, "children": [39, 40, 42], "start_point": {"row": 12, "column": 10}, "end_point": {"row": 12, "column": 21}}, {"id": 39, "type": "identifier", "text": "bool", "parent": 38, "children": [], "start_point": {"row": 12, "column": 10}, "end_point": {"row": 12, "column": 14}}, {"id": 40, "type": "ERROR", "text": "run", "parent": 38, "children": [41], "start_point": {"row": 12, "column": 15}, "end_point": {"row": 12, "column": 18}}, {"id": 41, "type": "identifier", "text": "run", "parent": 40, "children": [], "start_point": {"row": 12, "column": 15}, "end_point": {"row": 12, "column": 18}}, {"id": 42, "type": "parameter_list", "text": "()", "parent": 38, "children": [], "start_point": {"row": 12, "column": 19}, "end_point": {"row": 12, "column": 21}}, {"id": 43, "type": "=", "text": "=", "parent": 37, "children": [], "start_point": {"row": 12, "column": 22}, "end_point": {"row": 12, "column": 23}}, {"id": 44, "type": "number_literal", "text": "0", "parent": 37, "children": [], "start_point": {"row": 12, "column": 24}, "end_point": {"row": 12, "column": 25}}, {"id": 45, "type": "declaration", "text": "virtual bool checkErrors () = 0;", "parent": 9, "children": [46, 47, 49], "start_point": {"row": 13, "column": 2}, "end_point": {"row": 13, "column": 34}}, {"id": 46, "type": "type_identifier", "text": "virtual", "parent": 45, "children": [], "start_point": {"row": 13, "column": 2}, "end_point": {"row": 13, "column": 9}}, {"id": 47, "type": "ERROR", "text": "bool", "parent": 45, "children": [48], "start_point": {"row": 13, "column": 10}, "end_point": {"row": 13, "column": 14}}, {"id": 48, "type": "identifier", "text": "bool", "parent": 47, "children": [], "start_point": {"row": 13, "column": 10}, "end_point": {"row": 13, "column": 14}}, {"id": 49, "type": "init_declarator", "text": "checkErrors () = 0", "parent": 45, "children": [50, 53, 54], "start_point": {"row": 13, "column": 15}, "end_point": {"row": 13, "column": 33}}, {"id": 50, "type": "function_declarator", "text": "checkErrors ()", "parent": 49, "children": [51, 52], "start_point": {"row": 13, "column": 15}, "end_point": {"row": 13, "column": 29}}, {"id": 51, "type": "identifier", "text": "checkErrors", "parent": 50, "children": [], "start_point": {"row": 13, "column": 15}, "end_point": {"row": 13, "column": 26}}, {"id": 52, "type": "parameter_list", "text": "()", "parent": 50, "children": [], "start_point": {"row": 13, "column": 27}, "end_point": {"row": 13, "column": 29}}, {"id": 53, "type": "=", "text": "=", "parent": 49, "children": [], "start_point": {"row": 13, "column": 30}, "end_point": {"row": 13, "column": 31}}, {"id": 54, "type": "number_literal", "text": "0", "parent": 49, "children": [], "start_point": {"row": 13, "column": 32}, "end_point": {"row": 13, "column": 33}}, {"id": 55, "type": "declaration", "text": "virtual bool setVideoMode () = 0;", "parent": 9, "children": [56, 57, 59], "start_point": {"row": 15, "column": 2}, "end_point": {"row": 15, "column": 35}}, {"id": 56, "type": "type_identifier", "text": "virtual", "parent": 55, "children": [], "start_point": {"row": 15, "column": 2}, "end_point": {"row": 15, "column": 9}}, {"id": 57, "type": "ERROR", "text": "bool", "parent": 55, "children": [58], "start_point": {"row": 15, "column": 10}, "end_point": {"row": 15, "column": 14}}, {"id": 58, "type": "identifier", "text": "bool", "parent": 57, "children": [], "start_point": {"row": 15, "column": 10}, "end_point": {"row": 15, "column": 14}}, {"id": 59, "type": "init_declarator", "text": "setVideoMode () = 0", "parent": 55, "children": [60, 63, 64], "start_point": {"row": 15, "column": 15}, "end_point": {"row": 15, "column": 34}}, {"id": 60, "type": "function_declarator", "text": "setVideoMode ()", "parent": 59, "children": [61, 62], "start_point": {"row": 15, "column": 15}, "end_point": {"row": 15, "column": 30}}, {"id": 61, "type": "identifier", "text": "setVideoMode", "parent": 60, "children": [], "start_point": {"row": 15, "column": 15}, "end_point": {"row": 15, "column": 27}}, {"id": 62, "type": "parameter_list", "text": "()", "parent": 60, "children": [], "start_point": {"row": 15, "column": 28}, "end_point": {"row": 15, "column": 30}}, {"id": 63, "type": "=", "text": "=", "parent": 59, "children": [], "start_point": {"row": 15, "column": 31}, "end_point": {"row": 15, "column": 32}}, {"id": 64, "type": "number_literal", "text": "0", "parent": 59, "children": [], "start_point": {"row": 15, "column": 33}, "end_point": {"row": 15, "column": 34}}, {"id": 65, "type": "declaration", "text": "virtual bool setFullScreen (bool) = 0;", "parent": 9, "children": [66, 67, 69], "start_point": {"row": 16, "column": 2}, "end_point": {"row": 16, "column": 40}}, {"id": 66, "type": "type_identifier", "text": "virtual", "parent": 65, "children": [], "start_point": {"row": 16, "column": 2}, "end_point": {"row": 16, "column": 9}}, {"id": 67, "type": "ERROR", "text": "bool", "parent": 65, "children": [68], "start_point": {"row": 16, "column": 10}, "end_point": {"row": 16, "column": 14}}, {"id": 68, "type": "identifier", "text": "bool", "parent": 67, "children": [], "start_point": {"row": 16, "column": 10}, "end_point": {"row": 16, "column": 14}}, {"id": 69, "type": "init_declarator", "text": "setFullScreen (bool) = 0", "parent": 65, "children": [70, 75, 76], "start_point": {"row": 16, "column": 15}, "end_point": {"row": 16, "column": 39}}, {"id": 70, "type": "function_declarator", "text": "setFullScreen (bool)", "parent": 69, "children": [71, 72], "start_point": {"row": 16, "column": 15}, "end_point": {"row": 16, "column": 35}}, {"id": 71, "type": "identifier", "text": "setFullScreen", "parent": 70, "children": [], "start_point": {"row": 16, "column": 15}, "end_point": {"row": 16, "column": 28}}, {"id": 72, "type": "parameter_list", "text": "(bool)", "parent": 70, "children": [73], "start_point": {"row": 16, "column": 29}, "end_point": {"row": 16, "column": 35}}, {"id": 73, "type": "parameter_declaration", "text": "bool", "parent": 72, "children": [74], "start_point": {"row": 16, "column": 30}, "end_point": {"row": 16, "column": 34}}, {"id": 74, "type": "primitive_type", "text": "bool", "parent": 73, "children": [], "start_point": {"row": 16, "column": 30}, "end_point": {"row": 16, "column": 34}}, {"id": 75, "type": "=", "text": "=", "parent": 69, "children": [], "start_point": {"row": 16, "column": 36}, "end_point": {"row": 16, "column": 37}}, {"id": 76, "type": "number_literal", "text": "0", "parent": 69, "children": [], "start_point": {"row": 16, "column": 38}, "end_point": {"row": 16, "column": 39}}, {"id": 77, "type": "declaration", "text": "virtual void", "parent": 9, "children": [78, 79], "start_point": {"row": 18, "column": 2}, "end_point": {"row": 18, "column": 14}}, {"id": 78, "type": "type_identifier", "text": "virtual", "parent": 77, "children": [], "start_point": {"row": 18, "column": 2}, "end_point": {"row": 18, "column": 9}}, {"id": 79, "type": "identifier", "text": "void", "parent": 77, "children": [], "start_point": {"row": 18, "column": 10}, "end_point": {"row": 18, "column": 14}}, {"id": 80, "type": "assignment_expression", "text": "grabMouse (bool, bool = true) = 0", "parent": 9, "children": [81, 89, 90], "start_point": {"row": 18, "column": 15}, "end_point": {"row": 18, "column": 48}}, {"id": 81, "type": "call_expression", "text": "grabMouse (bool, bool = true)", "parent": 80, "children": [82, 83], "start_point": {"row": 18, "column": 15}, "end_point": {"row": 18, "column": 44}}, {"id": 82, "type": "identifier", "text": "grabMouse", "parent": 81, "children": [], "start_point": {"row": 18, "column": 15}, "end_point": {"row": 18, "column": 24}}, {"id": 83, "type": "argument_list", "text": "(bool, bool = true)", "parent": 81, "children": [84, 85], "start_point": {"row": 18, "column": 25}, "end_point": {"row": 18, "column": 44}}, {"id": 84, "type": "identifier", "text": "bool", "parent": 83, "children": [], "start_point": {"row": 18, "column": 26}, "end_point": {"row": 18, "column": 30}}, {"id": 85, "type": "assignment_expression", "text": "bool = true", "parent": 83, "children": [86, 87, 88], "start_point": {"row": 18, "column": 32}, "end_point": {"row": 18, "column": 43}}, {"id": 86, "type": "identifier", "text": "bool", "parent": 85, "children": [], "start_point": {"row": 18, "column": 32}, "end_point": {"row": 18, "column": 36}}, {"id": 87, "type": "=", "text": "=", "parent": 85, "children": [], "start_point": {"row": 18, "column": 37}, "end_point": {"row": 18, "column": 38}}, {"id": 88, "type": "true", "text": "true", "parent": 85, "children": [], "start_point": {"row": 18, "column": 39}, "end_point": {"row": 18, "column": 43}}, {"id": 89, "type": "=", "text": "=", "parent": 80, "children": [], "start_point": {"row": 18, "column": 45}, "end_point": {"row": 18, "column": 46}}, {"id": 90, "type": "number_literal", "text": "0", "parent": 80, "children": [], "start_point": {"row": 18, "column": 47}, "end_point": {"row": 18, "column": 48}}, {"id": 91, "type": "#endif", "text": "#endif", "parent": 0, "children": [], "start_point": {"row": 21, "column": 0}, "end_point": {"row": 21, "column": 6}}]}, "node_categories": {"declarations": {"functions": [9, 32, 38, 50, 60, 70], "variables": [28, 35, 45, 55, 65, 73, 77], "classes": [], "imports": [6, 7], "modules": [], "enums": []}, "statements": {"expressions": [12, 19, 22, 81], "assignments": [15, 80, 85], "loops": [], "conditionals": [0, 1, 2, 5, 10, 13, 16, 20, 29, 33, 36, 39, 41, 46, 48, 51, 56, 58, 61, 66, 68, 71, 78, 79, 82, 84, 86, 91], "returns": [], "exceptions": []}, "expressions": {"calls": [], "literals": [8, 18, 44, 54, 64, 76, 90], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [{"node_id": 9, "universal_type": "function", "name": "Splot_Main", "text_snippet": "class Splot_Main\n{\n public:\n Splot_Main (int = 0,\n ACE_TCHAR** = NULL);\n virtual ~Spl"}, {"node_id": 32, "universal_type": "function", "name": "unknown", "text_snippet": "Splot_Main ()"}, {"node_id": 38, "universal_type": "function", "name": "run", "text_snippet": "bool run ()"}, {"node_id": 50, "universal_type": "function", "name": "unknown", "text_snippet": "checkErrors ()"}, {"node_id": 60, "universal_type": "function", "name": "unknown", "text_snippet": "setVideoMode ()"}, {"node_id": 70, "universal_type": "function", "name": "unknown", "text_snippet": "setFullScreen (bool)"}], "class_declarations": [], "import_statements": [{"node_id": 6, "text": "#include \"ace/OS.h\"\n"}, {"node_id": 7, "text": "#include"}]}, "original_source_code": "#ifndef MAIN_H\n#define MAIN_H\n\n#include \"ace/OS.h\"\n\nclass Splot_Main\n{\n public:\n Splot_Main (int = 0,\n ACE_TCHAR** = NULL);\n virtual ~Splot_Main ();\n\n virtual bool run () = 0;\n virtual bool checkErrors () = 0;\n\n virtual bool setVideoMode () = 0;\n virtual bool setFullScreen (bool) = 0;\n\n virtual void grabMouse (bool, bool = true) = 0;\n};\n\n#endif // MAIN_H\n"}
80,017
c
#ifndef LIBIMG_JPEG_H #define LIBIMG_JPEG_H #include "libimgJinclude.h" #include "jpeglib.h" #include "jerror.h" #include <setjmp.h> /* Stuff for overriden error handlers */ struct local_error_mgr { struct jpeg_error_mgr pub; jmp_buf setjmp_buffer; }; typedef struct local_error_mgr *local_error_ptr; void local_jpeg_error_exit( j_common_ptr cinfo ); void local_jpeg_emit_message( j_common_ptr cinfo, int msg_level ); // Prototypes for memory compress/decompression object */ void local_jpeg_mem_src(j_decompress_ptr cinfo, const JOCTET *inbuffer, int inbuffer_size ); void local_jpeg_mem_dest(j_compress_ptr cinfo, JOCTET *outbuffer, int *outbuffer_size ); #endif // LIBIMG_JPEG_H
35.32
19
(translation_unit) "#ifndef LIBIMG_JPEG_H\n#define LIBIMG_JPEG_H\n\n#include "libimgJinclude.h"\n#include "jpeglib.h"\n#include "jerror.h"\n\n#include <setjmp.h>\n\n/* Stuff for overriden error handlers */\nstruct local_error_mgr\n{\n struct jpeg_error_mgr pub;\n jmp_buf setjmp_buffer;\n};\n\ntypedef struct local_error_mgr *local_error_ptr;\n\nvoid local_jpeg_error_exit( j_common_ptr cinfo );\nvoid local_jpeg_emit_message( j_common_ptr cinfo, int msg_level );\n\n// Prototypes for memory compress/decompression object */\nvoid local_jpeg_mem_src(j_decompress_ptr cinfo, const JOCTET *inbuffer, int inbuffer_size );\nvoid local_jpeg_mem_dest(j_compress_ptr cinfo, JOCTET *outbuffer, int *outbuffer_size );\n\n#endif // LIBIMG_JPEG_H\n" (preproc_ifdef) "#ifndef LIBIMG_JPEG_H\n#define LIBIMG_JPEG_H\n\n#include "libimgJinclude.h"\n#include "jpeglib.h"\n#include "jerror.h"\n\n#include <setjmp.h>\n\n/* Stuff for overriden error handlers */\nstruct local_error_mgr\n{\n struct jpeg_error_mgr pub;\n jmp_buf setjmp_buffer;\n};\n\ntypedef struct local_error_mgr *local_error_ptr;\n\nvoid local_jpeg_error_exit( j_common_ptr cinfo );\nvoid local_jpeg_emit_message( j_common_ptr cinfo, int msg_level );\n\n// Prototypes for memory compress/decompression object */\nvoid local_jpeg_mem_src(j_decompress_ptr cinfo, const JOCTET *inbuffer, int inbuffer_size );\nvoid local_jpeg_mem_dest(j_compress_ptr cinfo, JOCTET *outbuffer, int *outbuffer_size );\n\n#endif" (#ifndef) "#ifndef" (identifier) "LIBIMG_JPEG_H" (preproc_def) "#define LIBIMG_JPEG_H\n" (#define) "#define" (identifier) "LIBIMG_JPEG_H" (preproc_include) "#include "libimgJinclude.h"\n" (#include) "#include" (string_literal) ""libimgJinclude.h"" (") """ (string_content) "libimgJinclude.h" (") """ (preproc_include) "#include "jpeglib.h"\n" (#include) "#include" (string_literal) ""jpeglib.h"" (") """ (string_content) "jpeglib.h" (") """ (preproc_include) "#include "jerror.h"\n" (#include) "#include" (string_literal) ""jerror.h"" (") """ (string_content) "jerror.h" (") """ (preproc_include) "#include <setjmp.h>\n" (#include) "#include" (system_lib_string) "<setjmp.h>" (comment) "/* Stuff for overriden error handlers */" (struct_specifier) "struct local_error_mgr\n{\n struct jpeg_error_mgr pub;\n jmp_buf setjmp_buffer;\n}" (struct) "struct" (type_identifier) "local_error_mgr" (field_declaration_list) "{\n struct jpeg_error_mgr pub;\n jmp_buf setjmp_buffer;\n}" ({) "{" (field_declaration) "struct jpeg_error_mgr pub;" (struct_specifier) "struct jpeg_error_mgr" (struct) "struct" (type_identifier) "jpeg_error_mgr" (field_identifier) "pub" (;) ";" (field_declaration) "jmp_buf setjmp_buffer;" (type_identifier) "jmp_buf" (field_identifier) "setjmp_buffer" (;) ";" (}) "}" (;) ";" (type_definition) "typedef struct local_error_mgr *local_error_ptr;" (typedef) "typedef" (struct_specifier) "struct local_error_mgr" (struct) "struct" (type_identifier) "local_error_mgr" (pointer_declarator) "*local_error_ptr" (*) "*" (type_identifier) "local_error_ptr" (;) ";" (declaration) "void local_jpeg_error_exit( j_common_ptr cinfo );" (primitive_type) "void" (function_declarator) "local_jpeg_error_exit( j_common_ptr cinfo )" (identifier) "local_jpeg_error_exit" (parameter_list) "( j_common_ptr cinfo )" (() "(" (parameter_declaration) "j_common_ptr cinfo" (type_identifier) "j_common_ptr" (identifier) "cinfo" ()) ")" (;) ";" (declaration) "void local_jpeg_emit_message( j_common_ptr cinfo, int msg_level );" (primitive_type) "void" (function_declarator) "local_jpeg_emit_message( j_common_ptr cinfo, int msg_level )" (identifier) "local_jpeg_emit_message" (parameter_list) "( j_common_ptr cinfo, int msg_level )" (() "(" (parameter_declaration) "j_common_ptr cinfo" (type_identifier) "j_common_ptr" (identifier) "cinfo" (,) "," (parameter_declaration) "int msg_level" (primitive_type) "int" (identifier) "msg_level" ()) ")" (;) ";" (comment) "// Prototypes for memory compress/decompression object */" (declaration) "void local_jpeg_mem_src(j_decompress_ptr cinfo, const JOCTET *inbuffer, int inbuffer_size );" (primitive_type) "void" (function_declarator) "local_jpeg_mem_src(j_decompress_ptr cinfo, const JOCTET *inbuffer, int inbuffer_size )" (identifier) "local_jpeg_mem_src" (parameter_list) "(j_decompress_ptr cinfo, const JOCTET *inbuffer, int inbuffer_size )" (() "(" (parameter_declaration) "j_decompress_ptr cinfo" (type_identifier) "j_decompress_ptr" (identifier) "cinfo" (,) "," (parameter_declaration) "const JOCTET *inbuffer" (type_qualifier) "const" (const) "const" (type_identifier) "JOCTET" (pointer_declarator) "*inbuffer" (*) "*" (identifier) "inbuffer" (,) "," (parameter_declaration) "int inbuffer_size" (primitive_type) "int" (identifier) "inbuffer_size" ()) ")" (;) ";" (declaration) "void local_jpeg_mem_dest(j_compress_ptr cinfo, JOCTET *outbuffer, int *outbuffer_size );" (primitive_type) "void" (function_declarator) "local_jpeg_mem_dest(j_compress_ptr cinfo, JOCTET *outbuffer, int *outbuffer_size )" (identifier) "local_jpeg_mem_dest" (parameter_list) "(j_compress_ptr cinfo, JOCTET *outbuffer, int *outbuffer_size )" (() "(" (parameter_declaration) "j_compress_ptr cinfo" (type_identifier) "j_compress_ptr" (identifier) "cinfo" (,) "," (parameter_declaration) "JOCTET *outbuffer" (type_identifier) "JOCTET" (pointer_declarator) "*outbuffer" (*) "*" (identifier) "outbuffer" (,) "," (parameter_declaration) "int *outbuffer_size" (primitive_type) "int" (pointer_declarator) "*outbuffer_size" (*) "*" (identifier) "outbuffer_size" ()) ")" (;) ";" (#endif) "#endif" (comment) "// LIBIMG_JPEG_H"
130
0
{"language": "c", "success": true, "metadata": {"lines": 19, "avg_line_length": 35.32, "nodes": 91, "errors": 0, "source_hash": "3a636316e94cedb6f9b3bef3f644e77a7142931d4c188c2a54b866819d7d861a", "categorized_nodes": 69}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef LIBIMG_JPEG_H\n#define LIBIMG_JPEG_H\n\n#include \"libimgJinclude.h\"\n#include \"jpeglib.h\"\n#include \"jerror.h\"\n\n#include <setjmp.h>\n\n/* Stuff for overriden error handlers */\nstruct local_error_mgr\n{\n struct jpeg_error_mgr pub;\n jmp_buf setjmp_buffer;\n};\n\ntypedef struct local_error_mgr *local_error_ptr;\n\nvoid local_jpeg_error_exit( j_common_ptr cinfo );\nvoid local_jpeg_emit_message( j_common_ptr cinfo, int msg_level );\n\n// Prototypes for memory compress/decompression object */\nvoid local_jpeg_mem_src(j_decompress_ptr cinfo, const JOCTET *inbuffer, int inbuffer_size );\nvoid local_jpeg_mem_dest(j_compress_ptr cinfo, JOCTET *outbuffer, int *outbuffer_size );\n\n#endif", "parent": null, "children": [1, 2, 3, 6, 9, 12, 15, 18, 29, 37, 45, 56, 72, 90], "start_point": {"row": 0, "column": 0}, "end_point": {"row": 25, "column": 6}}, {"id": 1, "type": "#ifndef", "text": "#ifndef", "parent": 0, "children": [], "start_point": {"row": 0, "column": 0}, "end_point": {"row": 0, "column": 7}}, {"id": 2, "type": "identifier", "text": "LIBIMG_JPEG_H", "parent": 0, "children": [], "start_point": {"row": 0, "column": 8}, "end_point": {"row": 0, "column": 21}}, {"id": 3, "type": "preproc_def", "text": "#define LIBIMG_JPEG_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": "LIBIMG_JPEG_H", "parent": 3, "children": [], "start_point": {"row": 1, "column": 8}, "end_point": {"row": 1, "column": 21}}, {"id": 6, "type": "preproc_include", "text": "#include \"libimgJinclude.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": "\"libimgJinclude.h\"", "parent": 6, "children": [], "start_point": {"row": 3, "column": 9}, "end_point": {"row": 3, "column": 27}}, {"id": 9, "type": "preproc_include", "text": "#include \"jpeglib.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": "\"jpeglib.h\"", "parent": 9, "children": [], "start_point": {"row": 4, "column": 9}, "end_point": {"row": 4, "column": 20}}, {"id": 12, "type": "preproc_include", "text": "#include \"jerror.h\"\n", "parent": 0, "children": [13, 14], "start_point": {"row": 5, "column": 0}, "end_point": {"row": 6, "column": 0}}, {"id": 13, "type": "#include", "text": "#include", "parent": 12, "children": [], "start_point": {"row": 5, "column": 0}, "end_point": {"row": 5, "column": 8}}, {"id": 14, "type": "string_literal", "text": "\"jerror.h\"", "parent": 12, "children": [], "start_point": {"row": 5, "column": 9}, "end_point": {"row": 5, "column": 19}}, {"id": 15, "type": "preproc_include", "text": "#include <setjmp.h>\n", "parent": 0, "children": [16, 17], "start_point": {"row": 7, "column": 0}, "end_point": {"row": 8, "column": 0}}, {"id": 16, "type": "#include", "text": "#include", "parent": 15, "children": [], "start_point": {"row": 7, "column": 0}, "end_point": {"row": 7, "column": 8}}, {"id": 17, "type": "system_lib_string", "text": "<setjmp.h>", "parent": 15, "children": [], "start_point": {"row": 7, "column": 9}, "end_point": {"row": 7, "column": 19}}, {"id": 18, "type": "struct_specifier", "text": "struct local_error_mgr\n{\n struct jpeg_error_mgr pub;\n jmp_buf setjmp_buffer;\n}", "parent": 0, "children": [19, 20], "start_point": {"row": 10, "column": 0}, "end_point": {"row": 14, "column": 1}}, {"id": 19, "type": "struct", "text": "struct", "parent": 18, "children": [], "start_point": {"row": 10, "column": 0}, "end_point": {"row": 10, "column": 6}}, {"id": 20, "type": "type_identifier", "text": "local_error_mgr", "parent": 18, "children": [], "start_point": {"row": 10, "column": 7}, "end_point": {"row": 10, "column": 22}}, {"id": 21, "type": "field_declaration", "text": "struct jpeg_error_mgr pub;", "parent": 18, "children": [22, 25], "start_point": {"row": 12, "column": 4}, "end_point": {"row": 12, "column": 30}}, {"id": 22, "type": "struct_specifier", "text": "struct jpeg_error_mgr", "parent": 21, "children": [23, 24], "start_point": {"row": 12, "column": 4}, "end_point": {"row": 12, "column": 25}}, {"id": 23, "type": "struct", "text": "struct", "parent": 22, "children": [], "start_point": {"row": 12, "column": 4}, "end_point": {"row": 12, "column": 10}}, {"id": 24, "type": "type_identifier", "text": "jpeg_error_mgr", "parent": 22, "children": [], "start_point": {"row": 12, "column": 11}, "end_point": {"row": 12, "column": 25}}, {"id": 25, "type": "field_identifier", "text": "pub", "parent": 21, "children": [], "start_point": {"row": 12, "column": 26}, "end_point": {"row": 12, "column": 29}}, {"id": 26, "type": "field_declaration", "text": "jmp_buf setjmp_buffer;", "parent": 18, "children": [27, 28], "start_point": {"row": 13, "column": 4}, "end_point": {"row": 13, "column": 26}}, {"id": 27, "type": "type_identifier", "text": "jmp_buf", "parent": 26, "children": [], "start_point": {"row": 13, "column": 4}, "end_point": {"row": 13, "column": 11}}, {"id": 28, "type": "field_identifier", "text": "setjmp_buffer", "parent": 26, "children": [], "start_point": {"row": 13, "column": 12}, "end_point": {"row": 13, "column": 25}}, {"id": 29, "type": "type_definition", "text": "typedef struct local_error_mgr *local_error_ptr;", "parent": 0, "children": [30, 31, 34], "start_point": {"row": 16, "column": 0}, "end_point": {"row": 16, "column": 48}}, {"id": 30, "type": "typedef", "text": "typedef", "parent": 29, "children": [], "start_point": {"row": 16, "column": 0}, "end_point": {"row": 16, "column": 7}}, {"id": 31, "type": "struct_specifier", "text": "struct local_error_mgr", "parent": 29, "children": [32, 33], "start_point": {"row": 16, "column": 8}, "end_point": {"row": 16, "column": 30}}, {"id": 32, "type": "struct", "text": "struct", "parent": 31, "children": [], "start_point": {"row": 16, "column": 8}, "end_point": {"row": 16, "column": 14}}, {"id": 33, "type": "type_identifier", "text": "local_error_mgr", "parent": 31, "children": [], "start_point": {"row": 16, "column": 15}, "end_point": {"row": 16, "column": 30}}, {"id": 34, "type": "pointer_declarator", "text": "*local_error_ptr", "parent": 29, "children": [35, 36], "start_point": {"row": 16, "column": 31}, "end_point": {"row": 16, "column": 47}}, {"id": 35, "type": "*", "text": "*", "parent": 34, "children": [], "start_point": {"row": 16, "column": 31}, "end_point": {"row": 16, "column": 32}}, {"id": 36, "type": "type_identifier", "text": "local_error_ptr", "parent": 34, "children": [], "start_point": {"row": 16, "column": 32}, "end_point": {"row": 16, "column": 47}}, {"id": 37, "type": "declaration", "text": "void local_jpeg_error_exit( j_common_ptr cinfo );", "parent": 0, "children": [38, 39], "start_point": {"row": 18, "column": 0}, "end_point": {"row": 18, "column": 49}}, {"id": 38, "type": "primitive_type", "text": "void", "parent": 37, "children": [], "start_point": {"row": 18, "column": 0}, "end_point": {"row": 18, "column": 4}}, {"id": 39, "type": "function_declarator", "text": "local_jpeg_error_exit( j_common_ptr cinfo )", "parent": 37, "children": [40, 41], "start_point": {"row": 18, "column": 5}, "end_point": {"row": 18, "column": 48}}, {"id": 40, "type": "identifier", "text": "local_jpeg_error_exit", "parent": 39, "children": [], "start_point": {"row": 18, "column": 5}, "end_point": {"row": 18, "column": 26}}, {"id": 41, "type": "parameter_list", "text": "( j_common_ptr cinfo )", "parent": 39, "children": [42], "start_point": {"row": 18, "column": 26}, "end_point": {"row": 18, "column": 48}}, {"id": 42, "type": "parameter_declaration", "text": "j_common_ptr cinfo", "parent": 41, "children": [43, 44], "start_point": {"row": 18, "column": 28}, "end_point": {"row": 18, "column": 46}}, {"id": 43, "type": "type_identifier", "text": "j_common_ptr", "parent": 42, "children": [], "start_point": {"row": 18, "column": 28}, "end_point": {"row": 18, "column": 40}}, {"id": 44, "type": "identifier", "text": "cinfo", "parent": 42, "children": [], "start_point": {"row": 18, "column": 41}, "end_point": {"row": 18, "column": 46}}, {"id": 45, "type": "declaration", "text": "void local_jpeg_emit_message( j_common_ptr cinfo, int msg_level );", "parent": 0, "children": [46, 47], "start_point": {"row": 19, "column": 0}, "end_point": {"row": 19, "column": 66}}, {"id": 46, "type": "primitive_type", "text": "void", "parent": 45, "children": [], "start_point": {"row": 19, "column": 0}, "end_point": {"row": 19, "column": 4}}, {"id": 47, "type": "function_declarator", "text": "local_jpeg_emit_message( j_common_ptr cinfo, int msg_level )", "parent": 45, "children": [48, 49], "start_point": {"row": 19, "column": 5}, "end_point": {"row": 19, "column": 65}}, {"id": 48, "type": "identifier", "text": "local_jpeg_emit_message", "parent": 47, "children": [], "start_point": {"row": 19, "column": 5}, "end_point": {"row": 19, "column": 28}}, {"id": 49, "type": "parameter_list", "text": "( j_common_ptr cinfo, int msg_level )", "parent": 47, "children": [50, 53], "start_point": {"row": 19, "column": 28}, "end_point": {"row": 19, "column": 65}}, {"id": 50, "type": "parameter_declaration", "text": "j_common_ptr cinfo", "parent": 49, "children": [51, 52], "start_point": {"row": 19, "column": 30}, "end_point": {"row": 19, "column": 48}}, {"id": 51, "type": "type_identifier", "text": "j_common_ptr", "parent": 50, "children": [], "start_point": {"row": 19, "column": 30}, "end_point": {"row": 19, "column": 42}}, {"id": 52, "type": "identifier", "text": "cinfo", "parent": 50, "children": [], "start_point": {"row": 19, "column": 43}, "end_point": {"row": 19, "column": 48}}, {"id": 53, "type": "parameter_declaration", "text": "int msg_level", "parent": 49, "children": [54, 55], "start_point": {"row": 19, "column": 50}, "end_point": {"row": 19, "column": 63}}, {"id": 54, "type": "primitive_type", "text": "int", "parent": 53, "children": [], "start_point": {"row": 19, "column": 50}, "end_point": {"row": 19, "column": 53}}, {"id": 55, "type": "identifier", "text": "msg_level", "parent": 53, "children": [], "start_point": {"row": 19, "column": 54}, "end_point": {"row": 19, "column": 63}}, {"id": 56, "type": "declaration", "text": "void local_jpeg_mem_src(j_decompress_ptr cinfo, const JOCTET *inbuffer, int inbuffer_size );", "parent": 0, "children": [57, 58], "start_point": {"row": 22, "column": 0}, "end_point": {"row": 22, "column": 92}}, {"id": 57, "type": "primitive_type", "text": "void", "parent": 56, "children": [], "start_point": {"row": 22, "column": 0}, "end_point": {"row": 22, "column": 4}}, {"id": 58, "type": "function_declarator", "text": "local_jpeg_mem_src(j_decompress_ptr cinfo, const JOCTET *inbuffer, int inbuffer_size )", "parent": 56, "children": [59, 60], "start_point": {"row": 22, "column": 5}, "end_point": {"row": 22, "column": 91}}, {"id": 59, "type": "identifier", "text": "local_jpeg_mem_src", "parent": 58, "children": [], "start_point": {"row": 22, "column": 5}, "end_point": {"row": 22, "column": 23}}, {"id": 60, "type": "parameter_list", "text": "(j_decompress_ptr cinfo, const JOCTET *inbuffer, int inbuffer_size )", "parent": 58, "children": [61, 64, 69], "start_point": {"row": 22, "column": 23}, "end_point": {"row": 22, "column": 91}}, {"id": 61, "type": "parameter_declaration", "text": "j_decompress_ptr cinfo", "parent": 60, "children": [62, 63], "start_point": {"row": 22, "column": 24}, "end_point": {"row": 22, "column": 46}}, {"id": 62, "type": "type_identifier", "text": "j_decompress_ptr", "parent": 61, "children": [], "start_point": {"row": 22, "column": 24}, "end_point": {"row": 22, "column": 40}}, {"id": 63, "type": "identifier", "text": "cinfo", "parent": 61, "children": [], "start_point": {"row": 22, "column": 41}, "end_point": {"row": 22, "column": 46}}, {"id": 64, "type": "parameter_declaration", "text": "const JOCTET *inbuffer", "parent": 60, "children": [65, 66], "start_point": {"row": 22, "column": 48}, "end_point": {"row": 22, "column": 70}}, {"id": 65, "type": "type_identifier", "text": "JOCTET", "parent": 64, "children": [], "start_point": {"row": 22, "column": 54}, "end_point": {"row": 22, "column": 60}}, {"id": 66, "type": "pointer_declarator", "text": "*inbuffer", "parent": 64, "children": [67, 68], "start_point": {"row": 22, "column": 61}, "end_point": {"row": 22, "column": 70}}, {"id": 67, "type": "*", "text": "*", "parent": 66, "children": [], "start_point": {"row": 22, "column": 61}, "end_point": {"row": 22, "column": 62}}, {"id": 68, "type": "identifier", "text": "inbuffer", "parent": 66, "children": [], "start_point": {"row": 22, "column": 62}, "end_point": {"row": 22, "column": 70}}, {"id": 69, "type": "parameter_declaration", "text": "int inbuffer_size", "parent": 60, "children": [70, 71], "start_point": {"row": 22, "column": 72}, "end_point": {"row": 22, "column": 89}}, {"id": 70, "type": "primitive_type", "text": "int", "parent": 69, "children": [], "start_point": {"row": 22, "column": 72}, "end_point": {"row": 22, "column": 75}}, {"id": 71, "type": "identifier", "text": "inbuffer_size", "parent": 69, "children": [], "start_point": {"row": 22, "column": 76}, "end_point": {"row": 22, "column": 89}}, {"id": 72, "type": "declaration", "text": "void local_jpeg_mem_dest(j_compress_ptr cinfo, JOCTET *outbuffer, int *outbuffer_size );", "parent": 0, "children": [73, 74], "start_point": {"row": 23, "column": 0}, "end_point": {"row": 23, "column": 88}}, {"id": 73, "type": "primitive_type", "text": "void", "parent": 72, "children": [], "start_point": {"row": 23, "column": 0}, "end_point": {"row": 23, "column": 4}}, {"id": 74, "type": "function_declarator", "text": "local_jpeg_mem_dest(j_compress_ptr cinfo, JOCTET *outbuffer, int *outbuffer_size )", "parent": 72, "children": [75, 76], "start_point": {"row": 23, "column": 5}, "end_point": {"row": 23, "column": 87}}, {"id": 75, "type": "identifier", "text": "local_jpeg_mem_dest", "parent": 74, "children": [], "start_point": {"row": 23, "column": 5}, "end_point": {"row": 23, "column": 24}}, {"id": 76, "type": "parameter_list", "text": "(j_compress_ptr cinfo, JOCTET *outbuffer, int *outbuffer_size )", "parent": 74, "children": [77, 80, 85], "start_point": {"row": 23, "column": 24}, "end_point": {"row": 23, "column": 87}}, {"id": 77, "type": "parameter_declaration", "text": "j_compress_ptr cinfo", "parent": 76, "children": [78, 79], "start_point": {"row": 23, "column": 25}, "end_point": {"row": 23, "column": 45}}, {"id": 78, "type": "type_identifier", "text": "j_compress_ptr", "parent": 77, "children": [], "start_point": {"row": 23, "column": 25}, "end_point": {"row": 23, "column": 39}}, {"id": 79, "type": "identifier", "text": "cinfo", "parent": 77, "children": [], "start_point": {"row": 23, "column": 40}, "end_point": {"row": 23, "column": 45}}, {"id": 80, "type": "parameter_declaration", "text": "JOCTET *outbuffer", "parent": 76, "children": [81, 82], "start_point": {"row": 23, "column": 47}, "end_point": {"row": 23, "column": 64}}, {"id": 81, "type": "type_identifier", "text": "JOCTET", "parent": 80, "children": [], "start_point": {"row": 23, "column": 47}, "end_point": {"row": 23, "column": 53}}, {"id": 82, "type": "pointer_declarator", "text": "*outbuffer", "parent": 80, "children": [83, 84], "start_point": {"row": 23, "column": 54}, "end_point": {"row": 23, "column": 64}}, {"id": 83, "type": "*", "text": "*", "parent": 82, "children": [], "start_point": {"row": 23, "column": 54}, "end_point": {"row": 23, "column": 55}}, {"id": 84, "type": "identifier", "text": "outbuffer", "parent": 82, "children": [], "start_point": {"row": 23, "column": 55}, "end_point": {"row": 23, "column": 64}}, {"id": 85, "type": "parameter_declaration", "text": "int *outbuffer_size", "parent": 76, "children": [86, 87], "start_point": {"row": 23, "column": 66}, "end_point": {"row": 23, "column": 85}}, {"id": 86, "type": "primitive_type", "text": "int", "parent": 85, "children": [], "start_point": {"row": 23, "column": 66}, "end_point": {"row": 23, "column": 69}}, {"id": 87, "type": "pointer_declarator", "text": "*outbuffer_size", "parent": 85, "children": [88, 89], "start_point": {"row": 23, "column": 70}, "end_point": {"row": 23, "column": 85}}, {"id": 88, "type": "*", "text": "*", "parent": 87, "children": [], "start_point": {"row": 23, "column": 70}, "end_point": {"row": 23, "column": 71}}, {"id": 89, "type": "identifier", "text": "outbuffer_size", "parent": 87, "children": [], "start_point": {"row": 23, "column": 71}, "end_point": {"row": 23, "column": 85}}, {"id": 90, "type": "#endif", "text": "#endif", "parent": 0, "children": [], "start_point": {"row": 25, "column": 0}, "end_point": {"row": 25, "column": 6}}]}, "node_categories": {"declarations": {"functions": [39, 47, 58, 74], "variables": [21, 26, 29, 37, 42, 45, 50, 53, 56, 61, 64, 69, 72, 77, 80, 85], "classes": [18, 19, 22, 23, 31, 32], "imports": [6, 7, 9, 10, 12, 13, 15, 16], "modules": [], "enums": []}, "statements": {"expressions": [], "assignments": [], "loops": [], "conditionals": [0, 1, 2, 5, 20, 24, 25, 27, 28, 33, 36, 40, 43, 44, 48, 51, 52, 55, 59, 62, 63, 65, 68, 71, 75, 78, 79, 81, 84, 89, 90], "returns": [], "exceptions": []}, "expressions": {"calls": [], "literals": [8, 11, 14, 17], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [{"node_id": 39, "universal_type": "function", "name": "unknown", "text_snippet": "local_jpeg_error_exit( j_common_ptr cinfo )"}, {"node_id": 47, "universal_type": "function", "name": "msg_level", "text_snippet": "local_jpeg_emit_message( j_common_ptr cinfo, int msg_level )"}, {"node_id": 58, "universal_type": "function", "name": "inbuffer_size", "text_snippet": "local_jpeg_mem_src(j_decompress_ptr cinfo, const JOCTET *inbuffer, int inbuffer_size )"}, {"node_id": 74, "universal_type": "function", "name": "*outbuffer_size", "text_snippet": "local_jpeg_mem_dest(j_compress_ptr cinfo, JOCTET *outbuffer, int *outbuffer_size )"}], "class_declarations": [{"node_id": 18, "universal_type": "class", "name": "local_error_mgr", "text_snippet": "struct local_error_mgr\n{\n struct jpeg_error_mgr pub;\n jmp_buf setjmp_buffer;\n}"}, {"node_id": 19, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 22, "universal_type": "class", "name": "jpeg_error_mgr", "text_snippet": "struct jpeg_error_mgr"}, {"node_id": 23, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 31, "universal_type": "class", "name": "local_error_mgr", "text_snippet": "struct local_error_mgr"}, {"node_id": 32, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}], "import_statements": [{"node_id": 6, "text": "#include \"libimgJinclude.h\"\n"}, {"node_id": 7, "text": "#include"}, {"node_id": 9, "text": "#include \"jpeglib.h\"\n"}, {"node_id": 10, "text": "#include"}, {"node_id": 12, "text": "#include \"jerror.h\"\n"}, {"node_id": 13, "text": "#include"}, {"node_id": 15, "text": "#include <setjmp.h>\n"}, {"node_id": 16, "text": "#include"}]}, "original_source_code": "#ifndef LIBIMG_JPEG_H\n#define LIBIMG_JPEG_H\n\n#include \"libimgJinclude.h\"\n#include \"jpeglib.h\"\n#include \"jerror.h\"\n\n#include <setjmp.h>\n\n/* Stuff for overriden error handlers */\nstruct local_error_mgr\n{\n struct jpeg_error_mgr pub;\n jmp_buf setjmp_buffer;\n};\n\ntypedef struct local_error_mgr *local_error_ptr;\n\nvoid local_jpeg_error_exit( j_common_ptr cinfo );\nvoid local_jpeg_emit_message( j_common_ptr cinfo, int msg_level );\n\n// Prototypes for memory compress/decompression object */\nvoid local_jpeg_mem_src(j_decompress_ptr cinfo, const JOCTET *inbuffer, int inbuffer_size );\nvoid local_jpeg_mem_dest(j_compress_ptr cinfo, JOCTET *outbuffer, int *outbuffer_size );\n\n#endif // LIBIMG_JPEG_H\n"}
80,018
c
#ifndef TC_CLASSIC_H #define TC_CLASSIC_H #ifdef __cplusplus extern "C" { #endif #include <check.h> Suite* tc_classic_suite(void); #ifdef __cplusplus } #endif #endif // TC_CLASSIC_H
15.55
11
(translation_unit) "#ifndef TC_CLASSIC_H\n#define TC_CLASSIC_H\n\n#ifdef __cplusplus\nextern "C" {\n#endif\n\n#include <check.h>\n\nSuite* tc_classic_suite(void);\n\n#ifdef __cplusplus\n}\n#endif\n\n#endif // TC_CLASSIC_H\n" (preproc_ifdef) "#ifndef TC_CLASSIC_H\n#define TC_CLASSIC_H\n\n#ifdef __cplusplus\nextern "C" {\n#endif\n\n#include <check.h>\n\nSuite* tc_classic_suite(void);\n\n#ifdef __cplusplus\n}\n#endif\n\n#endif" (#ifndef) "#ifndef" (identifier) "TC_CLASSIC_H" (preproc_def) "#define TC_CLASSIC_H\n" (#define) "#define" (identifier) "TC_CLASSIC_H" (preproc_ifdef) "#ifdef __cplusplus\nextern "C" {\n#endif\n\n#include <check.h>\n\nSuite* tc_classic_suite(void);\n\n#ifdef __cplusplus\n}\n#endif" (#ifdef) "#ifdef" (identifier) "__cplusplus" (linkage_specification) "extern "C" {\n#endif\n\n#include <check.h>\n\nSuite* tc_classic_suite(void);\n\n#ifdef __cplusplus\n}" (extern) "extern" (string_literal) ""C"" (") """ (string_content) "C" (") """ (declaration_list) "{\n#endif\n\n#include <check.h>\n\nSuite* tc_classic_suite(void);\n\n#ifdef __cplusplus\n}" ({) "{" (preproc_call) "#endif\n" (preproc_directive) "#endif" (preproc_include) "#include <check.h>\n" (#include) "#include" (system_lib_string) "<check.h>" (declaration) "Suite* tc_classic_suite(void);" (type_identifier) "Suite" (pointer_declarator) "* tc_classic_suite(void)" (*) "*" (function_declarator) "tc_classic_suite(void)" (identifier) "tc_classic_suite" (parameter_list) "(void)" (() "(" (parameter_declaration) "void" (primitive_type) "void" ()) ")" (;) ";" (preproc_ifdef) "#ifdef __cplusplus" (#ifdef) "#ifdef" (identifier) "__cplusplus" (#endif) "" (}) "}" (#endif) "#endif" (#endif) "#endif" (comment) "// TC_CLASSIC_H"
43
0
{"language": "c", "success": true, "metadata": {"lines": 11, "avg_line_length": 15.55, "nodes": 32, "errors": 0, "source_hash": "e9edb0308b6fa2768610ca31b72e55bfeeb7a8fd594172a0ac0618e07e897fa6", "categorized_nodes": 24}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef TC_CLASSIC_H\n#define TC_CLASSIC_H\n\n#ifdef __cplusplus\nextern \"C\" {\n#endif\n\n#include <check.h>\n\nSuite* tc_classic_suite(void);\n\n#ifdef __cplusplus\n}\n#endif\n\n#endif", "parent": null, "children": [1, 2, 3, 6, 31], "start_point": {"row": 0, "column": 0}, "end_point": {"row": 15, "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": "TC_CLASSIC_H", "parent": 0, "children": [], "start_point": {"row": 0, "column": 8}, "end_point": {"row": 0, "column": 20}}, {"id": 3, "type": "preproc_def", "text": "#define TC_CLASSIC_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": "TC_CLASSIC_H", "parent": 3, "children": [], "start_point": {"row": 1, "column": 8}, "end_point": {"row": 1, "column": 20}}, {"id": 6, "type": "preproc_ifdef", "text": "#ifdef __cplusplus\nextern \"C\" {\n#endif\n\n#include <check.h>\n\nSuite* tc_classic_suite(void);\n\n#ifdef __cplusplus\n}\n#endif", "parent": 0, "children": [7, 8, 9, 30], "start_point": {"row": 3, "column": 0}, "end_point": {"row": 13, "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#include <check.h>\n\nSuite* tc_classic_suite(void);\n\n#ifdef __cplusplus\n}", "parent": 6, "children": [10, 11], "start_point": {"row": 4, "column": 0}, "end_point": {"row": 12, "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_include", "text": "#include <check.h>\n", "parent": 9, "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": 8}}, {"id": 16, "type": "system_lib_string", "text": "<check.h>", "parent": 14, "children": [], "start_point": {"row": 7, "column": 9}, "end_point": {"row": 7, "column": 18}}, {"id": 17, "type": "declaration", "text": "Suite* tc_classic_suite(void);", "parent": 9, "children": [18, 19], "start_point": {"row": 9, "column": 0}, "end_point": {"row": 9, "column": 30}}, {"id": 18, "type": "type_identifier", "text": "Suite", "parent": 17, "children": [], "start_point": {"row": 9, "column": 0}, "end_point": {"row": 9, "column": 5}}, {"id": 19, "type": "pointer_declarator", "text": "* tc_classic_suite(void)", "parent": 17, "children": [20, 21], "start_point": {"row": 9, "column": 5}, "end_point": {"row": 9, "column": 29}}, {"id": 20, "type": "*", "text": "*", "parent": 19, "children": [], "start_point": {"row": 9, "column": 5}, "end_point": {"row": 9, "column": 6}}, {"id": 21, "type": "function_declarator", "text": "tc_classic_suite(void)", "parent": 19, "children": [22, 23], "start_point": {"row": 9, "column": 7}, "end_point": {"row": 9, "column": 29}}, {"id": 22, "type": "identifier", "text": "tc_classic_suite", "parent": 21, "children": [], "start_point": {"row": 9, "column": 7}, "end_point": {"row": 9, "column": 23}}, {"id": 23, "type": "parameter_list", "text": "(void)", "parent": 21, "children": [24], "start_point": {"row": 9, "column": 23}, "end_point": {"row": 9, "column": 29}}, {"id": 24, "type": "parameter_declaration", "text": "void", "parent": 23, "children": [25], "start_point": {"row": 9, "column": 24}, "end_point": {"row": 9, "column": 28}}, {"id": 25, "type": "primitive_type", "text": "void", "parent": 24, "children": [], "start_point": {"row": 9, "column": 24}, "end_point": {"row": 9, "column": 28}}, {"id": 26, "type": "preproc_ifdef", "text": "#ifdef __cplusplus", "parent": 9, "children": [27, 28, 29], "start_point": {"row": 11, "column": 0}, "end_point": {"row": 11, "column": 18}}, {"id": 27, "type": "#ifdef", "text": "#ifdef", "parent": 26, "children": [], "start_point": {"row": 11, "column": 0}, "end_point": {"row": 11, "column": 6}}, {"id": 28, "type": "identifier", "text": "__cplusplus", "parent": 26, "children": [], "start_point": {"row": 11, "column": 7}, "end_point": {"row": 11, "column": 18}}, {"id": 29, "type": "#endif", "text": "", "parent": 26, "children": [], "start_point": {"row": 11, "column": 18}, "end_point": {"row": 11, "column": 18}}, {"id": 30, "type": "#endif", "text": "#endif", "parent": 6, "children": [], "start_point": {"row": 13, "column": 0}, "end_point": {"row": 13, "column": 6}}, {"id": 31, "type": "#endif", "text": "#endif", "parent": 0, "children": [], "start_point": {"row": 15, "column": 0}, "end_point": {"row": 15, "column": 6}}]}, "node_categories": {"declarations": {"functions": [21], "variables": [17, 24], "classes": [], "imports": [14, 15], "modules": [], "enums": []}, "statements": {"expressions": [], "assignments": [], "loops": [], "conditionals": [0, 1, 2, 5, 6, 7, 8, 9, 18, 22, 26, 27, 28, 29, 30, 31], "returns": [], "exceptions": []}, "expressions": {"calls": [12], "literals": [11, 16], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [{"node_id": 21, "universal_type": "function", "name": "unknown", "text_snippet": "tc_classic_suite(void)"}], "class_declarations": [], "import_statements": [{"node_id": 14, "text": "#include <check.h>\n"}, {"node_id": 15, "text": "#include"}]}, "original_source_code": "#ifndef TC_CLASSIC_H\n#define TC_CLASSIC_H\n\n#ifdef __cplusplus\nextern \"C\" {\n#endif\n\n#include <check.h>\n\nSuite* tc_classic_suite(void);\n\n#ifdef __cplusplus\n}\n#endif\n\n#endif // TC_CLASSIC_H\n"}
80,019
c
#include <stdio.h> #include <conio.h> int main(){ int arr2D[3][3]; int i,j; for ( i = 0; i < 3; i++) { for ( j = 0; j < 3; j++) { printf("[%d] [%d] ::",i,j); scanf("%d",&arr2D[i][j]);} //&arr2D[i][j] is the memory addresss of the array } for (i = 0; i < 3; i++){ for ( j = 0; j < 3; j++) {printf("%d\t",arr2D[i][j]); /* 00 01 02 10 11 12 20 22 22 */ if (j==2) {printf("\n");}} } return 0; }
29.22
23
(translation_unit) "#include <stdio.h>\n#include <conio.h>\n\nint main(){\n\n int arr2D[3][3];\n\n int i,j;\n for ( i = 0; i < 3; i++)\n {\n for ( j = 0; j < 3; j++)\n { \n printf("[%d] [%d] ::",i,j);\n scanf("%d",&arr2D[i][j]);} //&arr2D[i][j] is the memory addresss of the array\n } \n \n for (i = 0; i < 3; i++){\n\n for ( j = 0; j < 3; j++)\n {printf("%d\t",arr2D[i][j]); /* 00 01 02\n 10 11 12\n 20 22 22 */\n\n if (j==2)\n {printf("\n");}}\n }\n\nreturn 0;\n}" (preproc_include) "#include <stdio.h>\n" (#include) "#include" (system_lib_string) "<stdio.h>" (preproc_include) "#include <conio.h>\n" (#include) "#include" (system_lib_string) "<conio.h>" (function_definition) "int main(){\n\n int arr2D[3][3];\n\n int i,j;\n for ( i = 0; i < 3; i++)\n {\n for ( j = 0; j < 3; j++)\n { \n printf("[%d] [%d] ::",i,j);\n scanf("%d",&arr2D[i][j]);} //&arr2D[i][j] is the memory addresss of the array\n } \n \n for (i = 0; i < 3; i++){\n\n for ( j = 0; j < 3; j++)\n {printf("%d\t",arr2D[i][j]); /* 00 01 02\n 10 11 12\n 20 22 22 */\n\n if (j==2)\n {printf("\n");}}\n }\n\nreturn 0;\n}" (primitive_type) "int" (function_declarator) "main()" (identifier) "main" (parameter_list) "()" (() "(" ()) ")" (compound_statement) "{\n\n int arr2D[3][3];\n\n int i,j;\n for ( i = 0; i < 3; i++)\n {\n for ( j = 0; j < 3; j++)\n { \n printf("[%d] [%d] ::",i,j);\n scanf("%d",&arr2D[i][j]);} //&arr2D[i][j] is the memory addresss of the array\n } \n \n for (i = 0; i < 3; i++){\n\n for ( j = 0; j < 3; j++)\n {printf("%d\t",arr2D[i][j]); /* 00 01 02\n 10 11 12\n 20 22 22 */\n\n if (j==2)\n {printf("\n");}}\n }\n\nreturn 0;\n}" ({) "{" (declaration) "int arr2D[3][3];" (primitive_type) "int" (array_declarator) "arr2D[3][3]" (array_declarator) "arr2D[3]" (identifier) "arr2D" ([) "[" (number_literal) "3" (]) "]" ([) "[" (number_literal) "3" (]) "]" (;) ";" (declaration) "int i,j;" (primitive_type) "int" (identifier) "i" (,) "," (identifier) "j" (;) ";" (for_statement) "for ( i = 0; i < 3; i++)\n {\n for ( j = 0; j < 3; j++)\n { \n printf("[%d] [%d] ::",i,j);\n scanf("%d",&arr2D[i][j]);} //&arr2D[i][j] is the memory addresss of the array\n }" (for) "for" (() "(" (assignment_expression) "i = 0" (identifier) "i" (=) "=" (number_literal) "0" (;) ";" (binary_expression) "i < 3" (identifier) "i" (<) "<" (number_literal) "3" (;) ";" (update_expression) "i++" (identifier) "i" (++) "++" ()) ")" (compound_statement) "{\n for ( j = 0; j < 3; j++)\n { \n printf("[%d] [%d] ::",i,j);\n scanf("%d",&arr2D[i][j]);} //&arr2D[i][j] is the memory addresss of the array\n }" ({) "{" (for_statement) "for ( j = 0; j < 3; j++)\n { \n printf("[%d] [%d] ::",i,j);\n scanf("%d",&arr2D[i][j]);}" (for) "for" (() "(" (assignment_expression) "j = 0" (identifier) "j" (=) "=" (number_literal) "0" (;) ";" (binary_expression) "j < 3" (identifier) "j" (<) "<" (number_literal) "3" (;) ";" (update_expression) "j++" (identifier) "j" (++) "++" ()) ")" (compound_statement) "{ \n printf("[%d] [%d] ::",i,j);\n scanf("%d",&arr2D[i][j]);}" ({) "{" (expression_statement) "printf("[%d] [%d] ::",i,j);" (call_expression) "printf("[%d] [%d] ::",i,j)" (identifier) "printf" (argument_list) "("[%d] [%d] ::",i,j)" (() "(" (string_literal) ""[%d] [%d] ::"" (") """ (string_content) "[%d] [%d] ::" (") """ (,) "," (identifier) "i" (,) "," (identifier) "j" ()) ")" (;) ";" (expression_statement) "scanf("%d",&arr2D[i][j]);" (call_expression) "scanf("%d",&arr2D[i][j])" (identifier) "scanf" (argument_list) "("%d",&arr2D[i][j])" (() "(" (string_literal) ""%d"" (") """ (string_content) "%d" (") """ (,) "," (pointer_expression) "&arr2D[i][j]" (&) "&" (subscript_expression) "arr2D[i][j]" (subscript_expression) "arr2D[i]" (identifier) "arr2D" ([) "[" (identifier) "i" (]) "]" ([) "[" (identifier) "j" (]) "]" ()) ")" (;) ";" (}) "}" (comment) "//&arr2D[i][j] is the memory addresss of the array" (}) "}" (for_statement) "for (i = 0; i < 3; i++){\n\n for ( j = 0; j < 3; j++)\n {printf("%d\t",arr2D[i][j]); /* 00 01 02\n 10 11 12\n 20 22 22 */\n\n if (j==2)\n {printf("\n");}}\n }" (for) "for" (() "(" (assignment_expression) "i = 0" (identifier) "i" (=) "=" (number_literal) "0" (;) ";" (binary_expression) "i < 3" (identifier) "i" (<) "<" (number_literal) "3" (;) ";" (update_expression) "i++" (identifier) "i" (++) "++" ()) ")" (compound_statement) "{\n\n for ( j = 0; j < 3; j++)\n {printf("%d\t",arr2D[i][j]); /* 00 01 02\n 10 11 12\n 20 22 22 */\n\n if (j==2)\n {printf("\n");}}\n }" ({) "{" (for_statement) "for ( j = 0; j < 3; j++)\n {printf("%d\t",arr2D[i][j]); /* 00 01 02\n 10 11 12\n 20 22 22 */\n\n if (j==2)\n {printf("\n");}}" (for) "for" (() "(" (assignment_expression) "j = 0" (identifier) "j" (=) "=" (number_literal) "0" (;) ";" (binary_expression) "j < 3" (identifier) "j" (<) "<" (number_literal) "3" (;) ";" (update_expression) "j++" (identifier) "j" (++) "++" ()) ")" (compound_statement) "{printf("%d\t",arr2D[i][j]); /* 00 01 02\n 10 11 12\n 20 22 22 */\n\n if (j==2)\n {printf("\n");}}" ({) "{" (expression_statement) "printf("%d\t",arr2D[i][j]);" (call_expression) "printf("%d\t",arr2D[i][j])" (identifier) "printf" (argument_list) "("%d\t",arr2D[i][j])" (() "(" (string_literal) ""%d\t"" (") """ (string_content) "%d" (escape_sequence) "\t" (") """ (,) "," (subscript_expression) "arr2D[i][j]" (subscript_expression) "arr2D[i]" (identifier) "arr2D" ([) "[" (identifier) "i" (]) "]" ([) "[" (identifier) "j" (]) "]" ()) ")" (;) ";" (comment) "/* 00 01 02\n 10 11 12\n 20 22 22 */" (if_statement) "if (j==2)\n {printf("\n");}" (if) "if" (parenthesized_expression) "(j==2)" (() "(" (binary_expression) "j==2" (identifier) "j" (==) "==" (number_literal) "2" ()) ")" (compound_statement) "{printf("\n");}" ({) "{" (expression_statement) "printf("\n");" (call_expression) "printf("\n")" (identifier) "printf" (argument_list) "("\n")" (() "(" (string_literal) ""\n"" (") """ (escape_sequence) "\n" (") """ ()) ")" (;) ";" (}) "}" (}) "}" (}) "}" (return_statement) "return 0;" (return) "return" (number_literal) "0" (;) ";" (}) "}"
204
0
{"language": "c", "success": true, "metadata": {"lines": 23, "avg_line_length": 29.22, "nodes": 109, "errors": 0, "source_hash": "2ed70217054da63148e23a06b8050b0f703b377dadc8a0481da00118d75a8bc0", "categorized_nodes": 84}, "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 <conio.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": "<conio.h>", "parent": 3, "children": [], "start_point": {"row": 1, "column": 9}, "end_point": {"row": 1, "column": 18}}, {"id": 6, "type": "function_definition", "text": "int main(){\n\n int arr2D[3][3];\n\n int i,j;\n for ( i = 0; i < 3; i++)\n {\n for ( j = 0; j < 3; j++)\n { \n printf(\"[%d] [%d] ::\",i,j);\n scanf(\"%d\",&arr2D[i][j]);} //&arr2D[i][j] is the memory addresss of the array\n } \n \n for (i = 0; i < 3; i++){\n\n for ( j = 0; j < 3; j++)\n {printf(\"%d\\t\",arr2D[i][j]); /* 00 01 02\n 10 11 12\n 20 22 22 */\n\n if (j==2)\n {printf(\"\\n\");}}\n }\n\nreturn 0;\n}", "parent": null, "children": [7, 8], "start_point": {"row": 3, "column": 0}, "end_point": {"row": 28, "column": 1}}, {"id": 7, "type": "primitive_type", "text": "int", "parent": 6, "children": [], "start_point": {"row": 3, "column": 0}, "end_point": {"row": 3, "column": 3}}, {"id": 8, "type": "function_declarator", "text": "main()", "parent": 6, "children": [9, 10], "start_point": {"row": 3, "column": 4}, "end_point": {"row": 3, "column": 10}}, {"id": 9, "type": "identifier", "text": "main", "parent": 8, "children": [], "start_point": {"row": 3, "column": 4}, "end_point": {"row": 3, "column": 8}}, {"id": 10, "type": "parameter_list", "text": "()", "parent": 8, "children": [], "start_point": {"row": 3, "column": 8}, "end_point": {"row": 3, "column": 10}}, {"id": 11, "type": "declaration", "text": "int arr2D[3][3];", "parent": 6, "children": [12, 13], "start_point": {"row": 5, "column": 4}, "end_point": {"row": 5, "column": 20}}, {"id": 12, "type": "primitive_type", "text": "int", "parent": 11, "children": [], "start_point": {"row": 5, "column": 4}, "end_point": {"row": 5, "column": 7}}, {"id": 13, "type": "array_declarator", "text": "arr2D[3][3]", "parent": 11, "children": [14, 17], "start_point": {"row": 5, "column": 8}, "end_point": {"row": 5, "column": 19}}, {"id": 14, "type": "array_declarator", "text": "arr2D[3]", "parent": 13, "children": [15, 16], "start_point": {"row": 5, "column": 8}, "end_point": {"row": 5, "column": 16}}, {"id": 15, "type": "identifier", "text": "arr2D", "parent": 14, "children": [], "start_point": {"row": 5, "column": 8}, "end_point": {"row": 5, "column": 13}}, {"id": 16, "type": "number_literal", "text": "3", "parent": 14, "children": [], "start_point": {"row": 5, "column": 14}, "end_point": {"row": 5, "column": 15}}, {"id": 17, "type": "number_literal", "text": "3", "parent": 13, "children": [], "start_point": {"row": 5, "column": 17}, "end_point": {"row": 5, "column": 18}}, {"id": 18, "type": "declaration", "text": "int i,j;", "parent": 6, "children": [19, 20, 21], "start_point": {"row": 7, "column": 8}, "end_point": {"row": 7, "column": 16}}, {"id": 19, "type": "primitive_type", "text": "int", "parent": 18, "children": [], "start_point": {"row": 7, "column": 8}, "end_point": {"row": 7, "column": 11}}, {"id": 20, "type": "identifier", "text": "i", "parent": 18, "children": [], "start_point": {"row": 7, "column": 12}, "end_point": {"row": 7, "column": 13}}, {"id": 21, "type": "identifier", "text": "j", "parent": 18, "children": [], "start_point": {"row": 7, "column": 14}, "end_point": {"row": 7, "column": 15}}, {"id": 22, "type": "for_statement", "text": "for ( i = 0; i < 3; i++)\n {\n for ( j = 0; j < 3; j++)\n { \n printf(\"[%d] [%d] ::\",i,j);\n scanf(\"%d\",&arr2D[i][j]);} //&arr2D[i][j] is the memory addresss of the array\n }", "parent": 6, "children": [23, 27, 31], "start_point": {"row": 8, "column": 8}, "end_point": {"row": 14, "column": 9}}, {"id": 23, "type": "assignment_expression", "text": "i = 0", "parent": 22, "children": [24, 25, 26], "start_point": {"row": 8, "column": 14}, "end_point": {"row": 8, "column": 19}}, {"id": 24, "type": "identifier", "text": "i", "parent": 23, "children": [], "start_point": {"row": 8, "column": 14}, "end_point": {"row": 8, "column": 15}}, {"id": 25, "type": "=", "text": "=", "parent": 23, "children": [], "start_point": {"row": 8, "column": 16}, "end_point": {"row": 8, "column": 17}}, {"id": 26, "type": "number_literal", "text": "0", "parent": 23, "children": [], "start_point": {"row": 8, "column": 18}, "end_point": {"row": 8, "column": 19}}, {"id": 27, "type": "binary_expression", "text": "i < 3", "parent": 22, "children": [28, 29, 30], "start_point": {"row": 8, "column": 21}, "end_point": {"row": 8, "column": 26}}, {"id": 28, "type": "identifier", "text": "i", "parent": 27, "children": [], "start_point": {"row": 8, "column": 21}, "end_point": {"row": 8, "column": 22}}, {"id": 29, "type": "<", "text": "<", "parent": 27, "children": [], "start_point": {"row": 8, "column": 23}, "end_point": {"row": 8, "column": 24}}, {"id": 30, "type": "number_literal", "text": "3", "parent": 27, "children": [], "start_point": {"row": 8, "column": 25}, "end_point": {"row": 8, "column": 26}}, {"id": 31, "type": "update_expression", "text": "i++", "parent": 22, "children": [32, 33], "start_point": {"row": 8, "column": 28}, "end_point": {"row": 8, "column": 31}}, {"id": 32, "type": "identifier", "text": "i", "parent": 31, "children": [], "start_point": {"row": 8, "column": 28}, "end_point": {"row": 8, "column": 29}}, {"id": 33, "type": "++", "text": "++", "parent": 31, "children": [], "start_point": {"row": 8, "column": 29}, "end_point": {"row": 8, "column": 31}}, {"id": 34, "type": "for_statement", "text": "for ( j = 0; j < 3; j++)\n { \n printf(\"[%d] [%d] ::\",i,j);\n scanf(\"%d\",&arr2D[i][j]);}", "parent": 22, "children": [35, 39, 43], "start_point": {"row": 10, "column": 12}, "end_point": {"row": 13, "column": 38}}, {"id": 35, "type": "assignment_expression", "text": "j = 0", "parent": 34, "children": [36, 37, 38], "start_point": {"row": 10, "column": 18}, "end_point": {"row": 10, "column": 23}}, {"id": 36, "type": "identifier", "text": "j", "parent": 35, "children": [], "start_point": {"row": 10, "column": 18}, "end_point": {"row": 10, "column": 19}}, {"id": 37, "type": "=", "text": "=", "parent": 35, "children": [], "start_point": {"row": 10, "column": 20}, "end_point": {"row": 10, "column": 21}}, {"id": 38, "type": "number_literal", "text": "0", "parent": 35, "children": [], "start_point": {"row": 10, "column": 22}, "end_point": {"row": 10, "column": 23}}, {"id": 39, "type": "binary_expression", "text": "j < 3", "parent": 34, "children": [40, 41, 42], "start_point": {"row": 10, "column": 25}, "end_point": {"row": 10, "column": 30}}, {"id": 40, "type": "identifier", "text": "j", "parent": 39, "children": [], "start_point": {"row": 10, "column": 25}, "end_point": {"row": 10, "column": 26}}, {"id": 41, "type": "<", "text": "<", "parent": 39, "children": [], "start_point": {"row": 10, "column": 27}, "end_point": {"row": 10, "column": 28}}, {"id": 42, "type": "number_literal", "text": "3", "parent": 39, "children": [], "start_point": {"row": 10, "column": 29}, "end_point": {"row": 10, "column": 30}}, {"id": 43, "type": "update_expression", "text": "j++", "parent": 34, "children": [44, 45], "start_point": {"row": 10, "column": 32}, "end_point": {"row": 10, "column": 35}}, {"id": 44, "type": "identifier", "text": "j", "parent": 43, "children": [], "start_point": {"row": 10, "column": 32}, "end_point": {"row": 10, "column": 33}}, {"id": 45, "type": "++", "text": "++", "parent": 43, "children": [], "start_point": {"row": 10, "column": 33}, "end_point": {"row": 10, "column": 35}}, {"id": 46, "type": "call_expression", "text": "printf(\"[%d] [%d] ::\",i,j)", "parent": 34, "children": [47, 48], "start_point": {"row": 12, "column": 12}, "end_point": {"row": 12, "column": 38}}, {"id": 47, "type": "identifier", "text": "printf", "parent": 46, "children": [], "start_point": {"row": 12, "column": 12}, "end_point": {"row": 12, "column": 18}}, {"id": 48, "type": "argument_list", "text": "(\"[%d] [%d] ::\",i,j)", "parent": 46, "children": [49, 50, 51], "start_point": {"row": 12, "column": 18}, "end_point": {"row": 12, "column": 38}}, {"id": 49, "type": "string_literal", "text": "\"[%d] [%d] ::\"", "parent": 48, "children": [], "start_point": {"row": 12, "column": 19}, "end_point": {"row": 12, "column": 33}}, {"id": 50, "type": "identifier", "text": "i", "parent": 48, "children": [], "start_point": {"row": 12, "column": 34}, "end_point": {"row": 12, "column": 35}}, {"id": 51, "type": "identifier", "text": "j", "parent": 48, "children": [], "start_point": {"row": 12, "column": 36}, "end_point": {"row": 12, "column": 37}}, {"id": 52, "type": "call_expression", "text": "scanf(\"%d\",&arr2D[i][j])", "parent": 34, "children": [53, 54], "start_point": {"row": 13, "column": 12}, "end_point": {"row": 13, "column": 36}}, {"id": 53, "type": "identifier", "text": "scanf", "parent": 52, "children": [], "start_point": {"row": 13, "column": 12}, "end_point": {"row": 13, "column": 17}}, {"id": 54, "type": "argument_list", "text": "(\"%d\",&arr2D[i][j])", "parent": 52, "children": [55, 56], "start_point": {"row": 13, "column": 17}, "end_point": {"row": 13, "column": 36}}, {"id": 55, "type": "string_literal", "text": "\"%d\"", "parent": 54, "children": [], "start_point": {"row": 13, "column": 18}, "end_point": {"row": 13, "column": 22}}, {"id": 56, "type": "pointer_expression", "text": "&arr2D[i][j]", "parent": 54, "children": [57], "start_point": {"row": 13, "column": 23}, "end_point": {"row": 13, "column": 35}}, {"id": 57, "type": "subscript_expression", "text": "arr2D[i][j]", "parent": 56, "children": [58, 61], "start_point": {"row": 13, "column": 24}, "end_point": {"row": 13, "column": 35}}, {"id": 58, "type": "subscript_expression", "text": "arr2D[i]", "parent": 57, "children": [59, 60], "start_point": {"row": 13, "column": 24}, "end_point": {"row": 13, "column": 32}}, {"id": 59, "type": "identifier", "text": "arr2D", "parent": 58, "children": [], "start_point": {"row": 13, "column": 24}, "end_point": {"row": 13, "column": 29}}, {"id": 60, "type": "identifier", "text": "i", "parent": 58, "children": [], "start_point": {"row": 13, "column": 30}, "end_point": {"row": 13, "column": 31}}, {"id": 61, "type": "identifier", "text": "j", "parent": 57, "children": [], "start_point": {"row": 13, "column": 33}, "end_point": {"row": 13, "column": 34}}, {"id": 62, "type": "for_statement", "text": "for (i = 0; i < 3; i++){\n\n for ( j = 0; j < 3; j++)\n {printf(\"%d\\t\",arr2D[i][j]); /* 00 01 02\n 10 11 12\n 20 22 22 */\n\n if (j==2)\n {printf(\"\\n\");}}\n }", "parent": 6, "children": [63, 67, 71], "start_point": {"row": 16, "column": 4}, "end_point": {"row": 25, "column": 5}}, {"id": 63, "type": "assignment_expression", "text": "i = 0", "parent": 62, "children": [64, 65, 66], "start_point": {"row": 16, "column": 9}, "end_point": {"row": 16, "column": 14}}, {"id": 64, "type": "identifier", "text": "i", "parent": 63, "children": [], "start_point": {"row": 16, "column": 9}, "end_point": {"row": 16, "column": 10}}, {"id": 65, "type": "=", "text": "=", "parent": 63, "children": [], "start_point": {"row": 16, "column": 11}, "end_point": {"row": 16, "column": 12}}, {"id": 66, "type": "number_literal", "text": "0", "parent": 63, "children": [], "start_point": {"row": 16, "column": 13}, "end_point": {"row": 16, "column": 14}}, {"id": 67, "type": "binary_expression", "text": "i < 3", "parent": 62, "children": [68, 69, 70], "start_point": {"row": 16, "column": 16}, "end_point": {"row": 16, "column": 21}}, {"id": 68, "type": "identifier", "text": "i", "parent": 67, "children": [], "start_point": {"row": 16, "column": 16}, "end_point": {"row": 16, "column": 17}}, {"id": 69, "type": "<", "text": "<", "parent": 67, "children": [], "start_point": {"row": 16, "column": 18}, "end_point": {"row": 16, "column": 19}}, {"id": 70, "type": "number_literal", "text": "3", "parent": 67, "children": [], "start_point": {"row": 16, "column": 20}, "end_point": {"row": 16, "column": 21}}, {"id": 71, "type": "update_expression", "text": "i++", "parent": 62, "children": [72, 73], "start_point": {"row": 16, "column": 23}, "end_point": {"row": 16, "column": 26}}, {"id": 72, "type": "identifier", "text": "i", "parent": 71, "children": [], "start_point": {"row": 16, "column": 23}, "end_point": {"row": 16, "column": 24}}, {"id": 73, "type": "++", "text": "++", "parent": 71, "children": [], "start_point": {"row": 16, "column": 24}, "end_point": {"row": 16, "column": 26}}, {"id": 74, "type": "for_statement", "text": "for ( j = 0; j < 3; j++)\n {printf(\"%d\\t\",arr2D[i][j]); /* 00 01 02\n 10 11 12\n 20 22 22 */\n\n if (j==2)\n {printf(\"\\n\");}}", "parent": 62, "children": [75, 79, 83], "start_point": {"row": 18, "column": 8}, "end_point": {"row": 24, "column": 28}}, {"id": 75, "type": "assignment_expression", "text": "j = 0", "parent": 74, "children": [76, 77, 78], "start_point": {"row": 18, "column": 14}, "end_point": {"row": 18, "column": 19}}, {"id": 76, "type": "identifier", "text": "j", "parent": 75, "children": [], "start_point": {"row": 18, "column": 14}, "end_point": {"row": 18, "column": 15}}, {"id": 77, "type": "=", "text": "=", "parent": 75, "children": [], "start_point": {"row": 18, "column": 16}, "end_point": {"row": 18, "column": 17}}, {"id": 78, "type": "number_literal", "text": "0", "parent": 75, "children": [], "start_point": {"row": 18, "column": 18}, "end_point": {"row": 18, "column": 19}}, {"id": 79, "type": "binary_expression", "text": "j < 3", "parent": 74, "children": [80, 81, 82], "start_point": {"row": 18, "column": 21}, "end_point": {"row": 18, "column": 26}}, {"id": 80, "type": "identifier", "text": "j", "parent": 79, "children": [], "start_point": {"row": 18, "column": 21}, "end_point": {"row": 18, "column": 22}}, {"id": 81, "type": "<", "text": "<", "parent": 79, "children": [], "start_point": {"row": 18, "column": 23}, "end_point": {"row": 18, "column": 24}}, {"id": 82, "type": "number_literal", "text": "3", "parent": 79, "children": [], "start_point": {"row": 18, "column": 25}, "end_point": {"row": 18, "column": 26}}, {"id": 83, "type": "update_expression", "text": "j++", "parent": 74, "children": [84, 85], "start_point": {"row": 18, "column": 28}, "end_point": {"row": 18, "column": 31}}, {"id": 84, "type": "identifier", "text": "j", "parent": 83, "children": [], "start_point": {"row": 18, "column": 28}, "end_point": {"row": 18, "column": 29}}, {"id": 85, "type": "++", "text": "++", "parent": 83, "children": [], "start_point": {"row": 18, "column": 29}, "end_point": {"row": 18, "column": 31}}, {"id": 86, "type": "call_expression", "text": "printf(\"%d\\t\",arr2D[i][j])", "parent": 74, "children": [87, 88], "start_point": {"row": 19, "column": 13}, "end_point": {"row": 19, "column": 39}}, {"id": 87, "type": "identifier", "text": "printf", "parent": 86, "children": [], "start_point": {"row": 19, "column": 13}, "end_point": {"row": 19, "column": 19}}, {"id": 88, "type": "argument_list", "text": "(\"%d\\t\",arr2D[i][j])", "parent": 86, "children": [89, 91], "start_point": {"row": 19, "column": 19}, "end_point": {"row": 19, "column": 39}}, {"id": 89, "type": "string_literal", "text": "\"%d\\t\"", "parent": 88, "children": [90], "start_point": {"row": 19, "column": 20}, "end_point": {"row": 19, "column": 26}}, {"id": 90, "type": "escape_sequence", "text": "\\t", "parent": 89, "children": [], "start_point": {"row": 19, "column": 23}, "end_point": {"row": 19, "column": 25}}, {"id": 91, "type": "subscript_expression", "text": "arr2D[i][j]", "parent": 88, "children": [92, 95], "start_point": {"row": 19, "column": 27}, "end_point": {"row": 19, "column": 38}}, {"id": 92, "type": "subscript_expression", "text": "arr2D[i]", "parent": 91, "children": [93, 94], "start_point": {"row": 19, "column": 27}, "end_point": {"row": 19, "column": 35}}, {"id": 93, "type": "identifier", "text": "arr2D", "parent": 92, "children": [], "start_point": {"row": 19, "column": 27}, "end_point": {"row": 19, "column": 32}}, {"id": 94, "type": "identifier", "text": "i", "parent": 92, "children": [], "start_point": {"row": 19, "column": 33}, "end_point": {"row": 19, "column": 34}}, {"id": 95, "type": "identifier", "text": "j", "parent": 91, "children": [], "start_point": {"row": 19, "column": 36}, "end_point": {"row": 19, "column": 37}}, {"id": 96, "type": "if_statement", "text": "if (j==2)\n {printf(\"\\n\");}", "parent": 74, "children": [97], "start_point": {"row": 23, "column": 8}, "end_point": {"row": 24, "column": 27}}, {"id": 97, "type": "parenthesized_expression", "text": "(j==2)", "parent": 96, "children": [98], "start_point": {"row": 23, "column": 11}, "end_point": {"row": 23, "column": 17}}, {"id": 98, "type": "binary_expression", "text": "j==2", "parent": 97, "children": [99, 100, 101], "start_point": {"row": 23, "column": 12}, "end_point": {"row": 23, "column": 16}}, {"id": 99, "type": "identifier", "text": "j", "parent": 98, "children": [], "start_point": {"row": 23, "column": 12}, "end_point": {"row": 23, "column": 13}}, {"id": 100, "type": "==", "text": "==", "parent": 98, "children": [], "start_point": {"row": 23, "column": 13}, "end_point": {"row": 23, "column": 15}}, {"id": 101, "type": "number_literal", "text": "2", "parent": 98, "children": [], "start_point": {"row": 23, "column": 15}, "end_point": {"row": 23, "column": 16}}, {"id": 102, "type": "call_expression", "text": "printf(\"\\n\")", "parent": 96, "children": [103, 104], "start_point": {"row": 24, "column": 13}, "end_point": {"row": 24, "column": 25}}, {"id": 103, "type": "identifier", "text": "printf", "parent": 102, "children": [], "start_point": {"row": 24, "column": 13}, "end_point": {"row": 24, "column": 19}}, {"id": 104, "type": "argument_list", "text": "(\"\\n\")", "parent": 102, "children": [105], "start_point": {"row": 24, "column": 19}, "end_point": {"row": 24, "column": 25}}, {"id": 105, "type": "string_literal", "text": "\"\\n\"", "parent": 104, "children": [106], "start_point": {"row": 24, "column": 20}, "end_point": {"row": 24, "column": 24}}, {"id": 106, "type": "escape_sequence", "text": "\\n", "parent": 105, "children": [], "start_point": {"row": 24, "column": 21}, "end_point": {"row": 24, "column": 23}}, {"id": 107, "type": "return_statement", "text": "return 0;", "parent": 6, "children": [108], "start_point": {"row": 27, "column": 0}, "end_point": {"row": 27, "column": 9}}, {"id": 108, "type": "number_literal", "text": "0", "parent": 107, "children": [], "start_point": {"row": 27, "column": 7}, "end_point": {"row": 27, "column": 8}}]}, "node_categories": {"declarations": {"functions": [6, 8], "variables": [11, 18], "classes": [], "imports": [0, 1, 3, 4], "modules": [], "enums": []}, "statements": {"expressions": [27, 31, 39, 43, 46, 52, 56, 57, 58, 67, 71, 79, 83, 86, 91, 92, 97, 98, 102], "assignments": [23, 35, 63, 75], "loops": [22, 34, 62, 74], "conditionals": [9, 15, 20, 21, 24, 28, 32, 36, 40, 44, 47, 50, 51, 53, 59, 60, 61, 64, 68, 72, 76, 80, 84, 87, 93, 94, 95, 96, 99, 103], "returns": [107], "exceptions": []}, "expressions": {"calls": [], "literals": [2, 5, 16, 17, 26, 30, 38, 42, 49, 55, 66, 70, 78, 82, 89, 101, 105, 108], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [{"node_id": 6, "universal_type": "function", "name": "main", "text_snippet": "int main(){\n\n int arr2D[3][3];\n\n int i,j;\n for ( i = 0; i < 3; i++)\n {\n "}, {"node_id": 8, "universal_type": "function", "name": "unknown", "text_snippet": "main()"}], "class_declarations": [], "import_statements": [{"node_id": 0, "text": "#include <stdio.h>\n"}, {"node_id": 1, "text": "#include"}, {"node_id": 3, "text": "#include <conio.h>\n"}, {"node_id": 4, "text": "#include"}]}, "original_source_code": "#include <stdio.h>\n#include <conio.h>\n\nint main(){\n\n int arr2D[3][3];\n\n int i,j;\n for ( i = 0; i < 3; i++)\n {\n for ( j = 0; j < 3; j++)\n { \n printf(\"[%d] [%d] ::\",i,j);\n scanf(\"%d\",&arr2D[i][j]);} //&arr2D[i][j] is the memory addresss of the array\n } \n \n for (i = 0; i < 3; i++){\n\n for ( j = 0; j < 3; j++)\n {printf(\"%d\\t\",arr2D[i][j]); /* 00 01 02\n 10 11 12\n 20 22 22 */\n\n if (j==2)\n {printf(\"\\n\");}}\n }\n\nreturn 0;\n}"}
80,020
c
#include "graphics/commandbuffer.h" #include "graphics/vulkan_members.h" #include "mempool.h" #include "magpie.h" #include "log.h" #include "handlepool.h" static VkCommandPool commandpools[RENDERER_MAX_THREADS] = {0}; typedef struct { // One command buffer for each frame VkCommandBuffer cmd; VkCommandBufferLevel level; // The fence that gets signaled when command buffer is complete VkFence fence; // Signifies which pool it was allocated from // Should not be changed uint8_t thread_idx; bool recording; struct { Framebuffer framebuffer; VkRenderPass renderPass; } info; // If in destroy queue Commandbuffer next; } Commandbuffer_raw; static handlepool_t handlepool = HANDLEPOOL_INIT(sizeof(Commandbuffer_raw), "Commandbuffer"); static int commandpool_create(uint8_t thread_idx) { QueueFamilies queueFamilyIndices = get_queue_families(physical_device); VkCommandPoolCreateInfo poolInfo = {0}; poolInfo.sType = VK_STRUCTURE_TYPE_COMMAND_POOL_CREATE_INFO; poolInfo.queueFamilyIndex = queueFamilyIndices.graphics; // Enables the renderer to individually reset command buffers poolInfo.flags = VK_COMMAND_POOL_CREATE_RESET_COMMAND_BUFFER_BIT; // Optional VkResult result = vkCreateCommandPool(device, &poolInfo, NULL, &commandpools[thread_idx]); if (result != VK_SUCCESS) { LOG_E("Failed to create command pool - code %d", result); return -1; } return 0; } Commandbuffer commandbuffer_create_secondary(uint8_t thread_idx, Commandbuffer primary, VkRenderPass renderPass, Framebuffer frameBuffer) { if (thread_idx >= RENDERER_MAX_THREADS) { LOG_E("Thread index of %d is greater than the maximum number of threads %d", thread_idx, RENDERER_MAX_THREADS); return INVALID(Commandbuffer); } // Create command pool if it doesn't exist if (commandpools[thread_idx] == NULL) { commandpool_create(thread_idx); } // Create command buffer // Allocate primary command buffer VkCommandBufferAllocateInfo allocInfo = {0}; allocInfo.sType = VK_STRUCTURE_TYPE_COMMAND_BUFFER_ALLOCATE_INFO; allocInfo.commandPool = commandpools[thread_idx]; allocInfo.level = VK_COMMAND_BUFFER_LEVEL_SECONDARY; allocInfo.commandBufferCount = 1; const struct handle_wrapper* wrapper = handlepool_alloc(&handlepool); Commandbuffer_raw* raw = (Commandbuffer_raw*)wrapper->data; Commandbuffer handle = wrapper->handle; raw->thread_idx = thread_idx; raw->recording = false; raw->level = VK_COMMAND_BUFFER_LEVEL_SECONDARY; raw->next = INVALID(Commandbuffer); // Fill in inheritance info struct commandbuffer_set_info(handle, primary, renderPass, frameBuffer); VkResult result = vkAllocateCommandBuffers(device, &allocInfo, &raw->cmd); if (result != VK_SUCCESS) { LOG_E("Failed to create command buffers - code %d", result); return INVALID(Commandbuffer); } return handle; } Commandbuffer commandbuffer_create_primary(uint8_t thread_idx) { if (thread_idx >= RENDERER_MAX_THREADS) { LOG_E("Thread index of %d is greater than the maximum number of threads %d", thread_idx, RENDERER_MAX_THREADS); return INVALID(Commandbuffer); } // Create command pool if it doesn't exist if (commandpools[thread_idx] == NULL) { commandpool_create(thread_idx); } // Create command buffer // Allocate primary command buffer VkCommandBufferAllocateInfo allocInfo = {0}; allocInfo.sType = VK_STRUCTURE_TYPE_COMMAND_BUFFER_ALLOCATE_INFO; allocInfo.commandPool = commandpools[thread_idx]; allocInfo.level = VK_COMMAND_BUFFER_LEVEL_PRIMARY; allocInfo.commandBufferCount = 1; const struct handle_wrapper* wrapper = handlepool_alloc(&handlepool); Commandbuffer_raw* raw = (Commandbuffer_raw*)wrapper->data; Commandbuffer handle = wrapper->handle; raw->thread_idx = thread_idx; raw->recording = false; raw->level = VK_COMMAND_BUFFER_LEVEL_PRIMARY; raw->info.framebuffer = INVALID(Framebuffer); raw->info.renderPass = VK_NULL_HANDLE; raw->next = INVALID(Commandbuffer); VkResult result = vkAllocateCommandBuffers(device, &allocInfo, &raw->cmd); if (result != VK_SUCCESS) { LOG_E("Failed to create command buffers - code %d", result); return INVALID(Commandbuffer); } // Create fence VkFenceCreateInfo fence_info = {0}; fence_info.sType = VK_STRUCTURE_TYPE_FENCE_CREATE_INFO; fence_info.flags = VK_FENCE_CREATE_SIGNALED_BIT; result = vkCreateFence(device, &fence_info, NULL, &raw->fence); if (result != VK_SUCCESS) { LOG_E("Failed to create command buffer fence - code %d", result); return INVALID(Commandbuffer); } return handle; } void commandbuffer_set_info(Commandbuffer commandbuffer, Commandbuffer primary, VkRenderPass renderPass, Framebuffer framebuffer) { Commandbuffer_raw* raw = handlepool_get_raw(&handlepool, commandbuffer); if (HANDLE_VALID(primary)) raw->fence = commandbuffer_fence(primary); else raw->fence = VK_NULL_HANDLE; raw->info.renderPass = renderPass; raw->info.framebuffer = framebuffer; } void commandbuffer_begin(Commandbuffer commandbuffer) { Commandbuffer_raw* raw = handlepool_get_raw(&handlepool, commandbuffer); vkResetCommandBuffer(raw->cmd, 0); VkCommandBufferBeginInfo begin_info = {0}; VkCommandBufferInheritanceInfo inheritanceInfo = (VkCommandBufferInheritanceInfo){0}; if (raw->level == VK_COMMAND_BUFFER_LEVEL_SECONDARY) { inheritanceInfo = (VkCommandBufferInheritanceInfo){ .sType = VK_STRUCTURE_TYPE_COMMAND_BUFFER_INHERITANCE_INFO, .pNext = NULL, .renderPass = raw->info.renderPass, .subpass = 0, .framebuffer = framebuffer_vk(raw->info.framebuffer), .queryFlags = 0, .pipelineStatistics = 0}; begin_info.sType = VK_STRUCTURE_TYPE_COMMAND_BUFFER_BEGIN_INFO; begin_info.flags = VK_COMMAND_BUFFER_USAGE_RENDER_PASS_CONTINUE_BIT; begin_info.pInheritanceInfo = &inheritanceInfo; // Start recording } else if (raw->level == VK_COMMAND_BUFFER_LEVEL_PRIMARY) { begin_info.sType = VK_STRUCTURE_TYPE_COMMAND_BUFFER_BEGIN_INFO; begin_info.flags = 0; begin_info.pInheritanceInfo = NULL; } VkResult result = vkBeginCommandBuffer(raw->cmd, &begin_info); if (result != VK_SUCCESS) { LOG_E("Failed to start recording of command buffer"); } raw->recording = true; } // This will end recording of a primary or secondary command buffer void commandbuffer_end(Commandbuffer commandbuffer) { Commandbuffer_raw* raw = handlepool_get_raw(&handlepool, commandbuffer); vkEndCommandBuffer(raw->cmd); raw->recording = false; } void commandbuffer_submit(Commandbuffer commandbuffer) { Commandbuffer_raw* raw = handlepool_get_raw(&handlepool, commandbuffer); VkSubmitInfo submitInfo = {0}; submitInfo.sType = VK_STRUCTURE_TYPE_SUBMIT_INFO; submitInfo.commandBufferCount = 1; submitInfo.pCommandBuffers = &raw->cmd; vkQueueSubmit(graphics_queue, 1, &submitInfo, VK_NULL_HANDLE); } VkCommandBuffer commandbuffer_vk(Commandbuffer commandbuffer) { Commandbuffer_raw* raw = handlepool_get_raw(&handlepool, commandbuffer); return raw->cmd; } VkFence commandbuffer_fence(Commandbuffer commandbuffer) { Commandbuffer_raw* raw = handlepool_get_raw(&handlepool, commandbuffer); return raw->fence; } static Commandbuffer destroy_queue = INVALID(Commandbuffer); void commandbuffer_destroy(Commandbuffer commandbuffer) { Commandbuffer_raw* raw = handlepool_get_raw(&handlepool, commandbuffer); // Command buffer is in use if (raw->fence && vkGetFenceStatus(device, raw->fence) != VK_SUCCESS) { // Queue for destruction LOG_S("Command buffer is still in use, queueing"); // Insert at head raw->next = destroy_queue; destroy_queue = commandbuffer; return; } // Not in use, destroy immediately if (raw->recording) vkEndCommandBuffer(raw->cmd); vkQueueWaitIdle(graphics_queue); vkFreeCommandBuffers(device, commandpools[raw->thread_idx], 1, &raw->cmd); if (raw->level == VK_COMMAND_BUFFER_LEVEL_PRIMARY) vkDestroyFence(device, raw->fence, NULL); handlepool_free(&handlepool, commandbuffer); } uint32_t commandbuffer_handle_destructions() { Commandbuffer item = destroy_queue; Commandbuffer prev = INVALID(Commandbuffer); Commandbuffer next = INVALID(Commandbuffer); uint32_t destroyed = 0; while (HANDLE_VALID(item)) { Commandbuffer_raw* raw = handlepool_get_raw(&handlepool, item); next = raw->next; if (vkGetFenceStatus(device, raw->fence) == VK_SUCCESS) { if (HANDLE_VALID(prev)) { ((Commandbuffer_raw*)handlepool_get_raw(&handlepool, prev))->next = next; } // At head else { destroy_queue = next; } commandbuffer_destroy(item); ++destroyed; } item = next; } return destroyed; } void commandbuffer_destroy_pools() { for (uint32_t i = 0; i < RENDERER_MAX_THREADS; i++) { if (commandpools[i]) { vkDestroyCommandPool(device, commandpools[i], NULL); commandpools[i] = NULL; } } }
32.84
257
(translation_unit) "#include "graphics/commandbuffer.h"\n#include "graphics/vulkan_members.h"\n#include "mempool.h"\n#include "magpie.h"\n#include "log.h"\n#include "handlepool.h"\n\nstatic VkCommandPool commandpools[RENDERER_MAX_THREADS] = {0};\n\ntypedef struct\n{\n // One command buffer for each frame\n VkCommandBuffer cmd;\n VkCommandBufferLevel level;\n\n // The fence that gets signaled when command buffer is complete\n VkFence fence;\n // Signifies which pool it was allocated from\n // Should not be changed\n uint8_t thread_idx;\n bool recording;\n struct\n {\n Framebuffer framebuffer;\n VkRenderPass renderPass;\n } info;\n // If in destroy queue\n Commandbuffer next;\n} Commandbuffer_raw;\n\nstatic handlepool_t handlepool = HANDLEPOOL_INIT(sizeof(Commandbuffer_raw), "Commandbuffer");\n\nstatic int commandpool_create(uint8_t thread_idx)\n{\n QueueFamilies queueFamilyIndices = get_queue_families(physical_device);\n\n VkCommandPoolCreateInfo poolInfo = {0};\n poolInfo.sType = VK_STRUCTURE_TYPE_COMMAND_POOL_CREATE_INFO;\n poolInfo.queueFamilyIndex = queueFamilyIndices.graphics;\n // Enables the renderer to individually reset command buffers\n poolInfo.flags = VK_COMMAND_POOL_CREATE_RESET_COMMAND_BUFFER_BIT; // Optional\n VkResult result = vkCreateCommandPool(device, &poolInfo, NULL, &commandpools[thread_idx]);\n if (result != VK_SUCCESS)\n {\n LOG_E("Failed to create command pool - code %d", result);\n return -1;\n }\n return 0;\n}\n\nCommandbuffer commandbuffer_create_secondary(uint8_t thread_idx, Commandbuffer primary, VkRenderPass renderPass, Framebuffer frameBuffer)\n{\n if (thread_idx >= RENDERER_MAX_THREADS)\n {\n LOG_E("Thread index of %d is greater than the maximum number of threads %d", thread_idx, RENDERER_MAX_THREADS);\n return INVALID(Commandbuffer);\n }\n\n // Create command pool if it doesn't exist\n if (commandpools[thread_idx] == NULL)\n {\n commandpool_create(thread_idx);\n }\n\n // Create command buffer\n\n // Allocate primary command buffer\n VkCommandBufferAllocateInfo allocInfo = {0};\n allocInfo.sType = VK_STRUCTURE_TYPE_COMMAND_BUFFER_ALLOCATE_INFO;\n allocInfo.commandPool = commandpools[thread_idx];\n allocInfo.level = VK_COMMAND_BUFFER_LEVEL_SECONDARY;\n allocInfo.commandBufferCount = 1;\n\n const struct handle_wrapper* wrapper = handlepool_alloc(&handlepool);\n Commandbuffer_raw* raw = (Commandbuffer_raw*)wrapper->data;\n Commandbuffer handle = wrapper->handle;\n\n raw->thread_idx = thread_idx;\n raw->recording = false;\n raw->level = VK_COMMAND_BUFFER_LEVEL_SECONDARY;\n raw->next = INVALID(Commandbuffer);\n\n // Fill in inheritance info struct\n commandbuffer_set_info(handle, primary, renderPass, frameBuffer);\n\n VkResult result = vkAllocateCommandBuffers(device, &allocInfo, &raw->cmd);\n if (result != VK_SUCCESS)\n {\n LOG_E("Failed to create command buffers - code %d", result);\n return INVALID(Commandbuffer);\n }\n\n return handle;\n}\n\nCommandbuffer commandbuffer_create_primary(uint8_t thread_idx)\n{\n if (thread_idx >= RENDERER_MAX_THREADS)\n {\n LOG_E("Thread index of %d is greater than the maximum number of threads %d", thread_idx, RENDERER_MAX_THREADS);\n return INVALID(Commandbuffer);\n }\n\n // Create command pool if it doesn't exist\n if (commandpools[thread_idx] == NULL)\n {\n commandpool_create(thread_idx);\n }\n\n // Create command buffer\n\n // Allocate primary command buffer\n VkCommandBufferAllocateInfo allocInfo = {0};\n allocInfo.sType = VK_STRUCTURE_TYPE_COMMAND_BUFFER_ALLOCATE_INFO;\n allocInfo.commandPool = commandpools[thread_idx];\n allocInfo.level = VK_COMMAND_BUFFER_LEVEL_PRIMARY;\n allocInfo.commandBufferCount = 1;\n\n const struct handle_wrapper* wrapper = handlepool_alloc(&handlepool);\n Commandbuffer_raw* raw = (Commandbuffer_raw*)wrapper->data;\n Commandbuffer handle = wrapper->handle;\n raw->thread_idx = thread_idx;\n raw->recording = false;\n raw->level = VK_COMMAND_BUFFER_LEVEL_PRIMARY;\n raw->info.framebuffer = INVALID(Framebuffer);\n raw->info.renderPass = VK_NULL_HANDLE;\n raw->next = INVALID(Commandbuffer);\n\n VkResult result = vkAllocateCommandBuffers(device, &allocInfo, &raw->cmd);\n\n if (result != VK_SUCCESS)\n {\n LOG_E("Failed to create command buffers - code %d", result);\n return INVALID(Commandbuffer);\n }\n\n // Create fence\n VkFenceCreateInfo fence_info = {0};\n fence_info.sType = VK_STRUCTURE_TYPE_FENCE_CREATE_INFO;\n fence_info.flags = VK_FENCE_CREATE_SIGNALED_BIT;\n\n result = vkCreateFence(device, &fence_info, NULL, &raw->fence);\n if (result != VK_SUCCESS)\n {\n LOG_E("Failed to create command buffer fence - code %d", result);\n return INVALID(Commandbuffer);\n }\n\n return handle;\n}\n\nvoid commandbuffer_set_info(Commandbuffer commandbuffer, Commandbuffer primary, VkRenderPass renderPass, Framebuffer framebuffer)\n{\n Commandbuffer_raw* raw = handlepool_get_raw(&handlepool, commandbuffer);\n if (HANDLE_VALID(primary))\n raw->fence = commandbuffer_fence(primary);\n else\n raw->fence = VK_NULL_HANDLE;\n\n raw->info.renderPass = renderPass;\n raw->info.framebuffer = framebuffer;\n}\n\nvoid commandbuffer_begin(Commandbuffer commandbuffer)\n{\n Commandbuffer_raw* raw = handlepool_get_raw(&handlepool, commandbuffer);\n\n vkResetCommandBuffer(raw->cmd, 0);\n VkCommandBufferBeginInfo begin_info = {0};\n VkCommandBufferInheritanceInfo inheritanceInfo = (VkCommandBufferInheritanceInfo){0};\n if (raw->level == VK_COMMAND_BUFFER_LEVEL_SECONDARY)\n {\n inheritanceInfo = (VkCommandBufferInheritanceInfo){\n .sType = VK_STRUCTURE_TYPE_COMMAND_BUFFER_INHERITANCE_INFO,\n .pNext = NULL,\n .renderPass = raw->info.renderPass,\n .subpass = 0,\n .framebuffer = framebuffer_vk(raw->info.framebuffer),\n .queryFlags = 0,\n .pipelineStatistics = 0};\n\n begin_info.sType = VK_STRUCTURE_TYPE_COMMAND_BUFFER_BEGIN_INFO;\n begin_info.flags = VK_COMMAND_BUFFER_USAGE_RENDER_PASS_CONTINUE_BIT;\n begin_info.pInheritanceInfo = &inheritanceInfo;\n\n // Start recording\n }\n else if (raw->level == VK_COMMAND_BUFFER_LEVEL_PRIMARY)\n {\n begin_info.sType = VK_STRUCTURE_TYPE_COMMAND_BUFFER_BEGIN_INFO;\n begin_info.flags = 0;\n begin_info.pInheritanceInfo = NULL;\n }\n\n VkResult result = vkBeginCommandBuffer(raw->cmd, &begin_info);\n if (result != VK_SUCCESS)\n {\n LOG_E("Failed to start recording of command buffer");\n }\n raw->recording = true;\n}\n// This will end recording of a primary or secondary command buffer\nvoid commandbuffer_end(Commandbuffer commandbuffer)\n{\n Commandbuffer_raw* raw = handlepool_get_raw(&handlepool, commandbuffer);\n\n vkEndCommandBuffer(raw->cmd);\n raw->recording = false;\n}\n\nvoid commandbuffer_submit(Commandbuffer commandbuffer)\n{\n Commandbuffer_raw* raw = handlepool_get_raw(&handlepool, commandbuffer);\n\n VkSubmitInfo submitInfo = {0};\n submitInfo.sType = VK_STRUCTURE_TYPE_SUBMIT_INFO;\n submitInfo.commandBufferCount = 1;\n submitInfo.pCommandBuffers = &raw->cmd;\n\n vkQueueSubmit(graphics_queue, 1, &submitInfo, VK_NULL_HANDLE);\n}\n\nVkCommandBuffer commandbuffer_vk(Commandbuffer commandbuffer)\n{\n Commandbuffer_raw* raw = handlepool_get_raw(&handlepool, commandbuffer);\n return raw->cmd;\n}\nVkFence commandbuffer_fence(Commandbuffer commandbuffer)\n{\n Commandbuffer_raw* raw = handlepool_get_raw(&handlepool, commandbuffer);\n return raw->fence;\n}\n\nstatic Commandbuffer destroy_queue = INVALID(Commandbuffer);\n\nvoid commandbuffer_destroy(Commandbuffer commandbuffer)\n{\n Commandbuffer_raw* raw = handlepool_get_raw(&handlepool, commandbuffer);\n\n // Command buffer is in use\n if (raw->fence && vkGetFenceStatus(device, raw->fence) != VK_SUCCESS)\n {\n // Queue for destruction\n LOG_S("Command buffer is still in use, queueing");\n // Insert at head\n raw->next = destroy_queue;\n destroy_queue = commandbuffer;\n return;\n }\n\n // Not in use, destroy immediately\n if (raw->recording)\n vkEndCommandBuffer(raw->cmd);\n\n vkQueueWaitIdle(graphics_queue);\n\n vkFreeCommandBuffers(device, commandpools[raw->thread_idx], 1, &raw->cmd);\n if (raw->level == VK_COMMAND_BUFFER_LEVEL_PRIMARY)\n vkDestroyFence(device, raw->fence, NULL);\n\n handlepool_free(&handlepool, commandbuffer);\n}\n\nuint32_t commandbuffer_handle_destructions()\n{\n Commandbuffer item = destroy_queue;\n Commandbuffer prev = INVALID(Commandbuffer);\n Commandbuffer next = INVALID(Commandbuffer);\n uint32_t destroyed = 0;\n while (HANDLE_VALID(item))\n {\n Commandbuffer_raw* raw = handlepool_get_raw(&handlepool, item);\n next = raw->next;\n if (vkGetFenceStatus(device, raw->fence) == VK_SUCCESS)\n {\n if (HANDLE_VALID(prev))\n {\n ((Commandbuffer_raw*)handlepool_get_raw(&handlepool, prev))->next = next;\n }\n // At head\n else\n {\n destroy_queue = next;\n }\n commandbuffer_destroy(item);\n ++destroyed;\n }\n item = next;\n }\n return destroyed;\n}\n\nvoid commandbuffer_destroy_pools()\n{\n for (uint32_t i = 0; i < RENDERER_MAX_THREADS; i++)\n {\n if (commandpools[i])\n {\n vkDestroyCommandPool(device, commandpools[i], NULL);\n commandpools[i] = NULL;\n }\n }\n}\n" (preproc_include) "#include "graphics/commandbuffer.h"\n" (#include) "#include" (string_literal) ""graphics/commandbuffer.h"" (") """ (string_content) "graphics/commandbuffer.h" (") """ (preproc_include) "#include "graphics/vulkan_members.h"\n" (#include) "#include" (string_literal) ""graphics/vulkan_members.h"" (") """ (string_content) "graphics/vulkan_members.h" (") """ (preproc_include) "#include "mempool.h"\n" (#include) "#include" (string_literal) ""mempool.h"" (") """ (string_content) "mempool.h" (") """ (preproc_include) "#include "magpie.h"\n" (#include) "#include" (string_literal) ""magpie.h"" (") """ (string_content) "magpie.h" (") """ (preproc_include) "#include "log.h"\n" (#include) "#include" (string_literal) ""log.h"" (") """ (string_content) "log.h" (") """ (preproc_include) "#include "handlepool.h"\n" (#include) "#include" (string_literal) ""handlepool.h"" (") """ (string_content) "handlepool.h" (") """ (declaration) "static VkCommandPool commandpools[RENDERER_MAX_THREADS] = {0};" (storage_class_specifier) "static" (static) "static" (type_identifier) "VkCommandPool" (init_declarator) "commandpools[RENDERER_MAX_THREADS] = {0}" (array_declarator) "commandpools[RENDERER_MAX_THREADS]" (identifier) "commandpools" ([) "[" (identifier) "RENDERER_MAX_THREADS" (]) "]" (=) "=" (initializer_list) "{0}" ({) "{" (number_literal) "0" (}) "}" (;) ";" (type_definition) "typedef struct\n{\n // One command buffer for each frame\n VkCommandBuffer cmd;\n VkCommandBufferLevel level;\n\n // The fence that gets signaled when command buffer is complete\n VkFence fence;\n // Signifies which pool it was allocated from\n // Should not be changed\n uint8_t thread_idx;\n bool recording;\n struct\n {\n Framebuffer framebuffer;\n VkRenderPass renderPass;\n } info;\n // If in destroy queue\n Commandbuffer next;\n} Commandbuffer_raw;" (typedef) "typedef" (struct_specifier) "struct\n{\n // One command buffer for each frame\n VkCommandBuffer cmd;\n VkCommandBufferLevel level;\n\n // The fence that gets signaled when command buffer is complete\n VkFence fence;\n // Signifies which pool it was allocated from\n // Should not be changed\n uint8_t thread_idx;\n bool recording;\n struct\n {\n Framebuffer framebuffer;\n VkRenderPass renderPass;\n } info;\n // If in destroy queue\n Commandbuffer next;\n}" (struct) "struct" (field_declaration_list) "{\n // One command buffer for each frame\n VkCommandBuffer cmd;\n VkCommandBufferLevel level;\n\n // The fence that gets signaled when command buffer is complete\n VkFence fence;\n // Signifies which pool it was allocated from\n // Should not be changed\n uint8_t thread_idx;\n bool recording;\n struct\n {\n Framebuffer framebuffer;\n VkRenderPass renderPass;\n } info;\n // If in destroy queue\n Commandbuffer next;\n}" ({) "{" (comment) "// One command buffer for each frame" (field_declaration) "VkCommandBuffer cmd;" (type_identifier) "VkCommandBuffer" (field_identifier) "cmd" (;) ";" (field_declaration) "VkCommandBufferLevel level;" (type_identifier) "VkCommandBufferLevel" (field_identifier) "level" (;) ";" (comment) "// The fence that gets signaled when command buffer is complete" (field_declaration) "VkFence fence;" (type_identifier) "VkFence" (field_identifier) "fence" (;) ";" (comment) "// Signifies which pool it was allocated from" (comment) "// Should not be changed" (field_declaration) "uint8_t thread_idx;" (primitive_type) "uint8_t" (field_identifier) "thread_idx" (;) ";" (field_declaration) "bool recording;" (primitive_type) "bool" (field_identifier) "recording" (;) ";" (field_declaration) "struct\n {\n Framebuffer framebuffer;\n VkRenderPass renderPass;\n } info;" (struct_specifier) "struct\n {\n Framebuffer framebuffer;\n VkRenderPass renderPass;\n }" (struct) "struct" (field_declaration_list) "{\n Framebuffer framebuffer;\n VkRenderPass renderPass;\n }" ({) "{" (field_declaration) "Framebuffer framebuffer;" (type_identifier) "Framebuffer" (field_identifier) "framebuffer" (;) ";" (field_declaration) "VkRenderPass renderPass;" (type_identifier) "VkRenderPass" (field_identifier) "renderPass" (;) ";" (}) "}" (field_identifier) "info" (;) ";" (comment) "// If in destroy queue" (field_declaration) "Commandbuffer next;" (type_identifier) "Commandbuffer" (field_identifier) "next" (;) ";" (}) "}" (type_identifier) "Commandbuffer_raw" (;) ";" (declaration) "static handlepool_t handlepool = HANDLEPOOL_INIT(sizeof(Commandbuffer_raw), "Commandbuffer");" (storage_class_specifier) "static" (static) "static" (type_identifier) "handlepool_t" (init_declarator) "handlepool = HANDLEPOOL_INIT(sizeof(Commandbuffer_raw), "Commandbuffer")" (identifier) "handlepool" (=) "=" (call_expression) "HANDLEPOOL_INIT(sizeof(Commandbuffer_raw), "Commandbuffer")" (identifier) "HANDLEPOOL_INIT" (argument_list) "(sizeof(Commandbuffer_raw), "Commandbuffer")" (() "(" (sizeof_expression) "sizeof(Commandbuffer_raw)" (sizeof) "sizeof" (parenthesized_expression) "(Commandbuffer_raw)" (() "(" (identifier) "Commandbuffer_raw" ()) ")" (,) "," (string_literal) ""Commandbuffer"" (") """ (string_content) "Commandbuffer" (") """ ()) ")" (;) ";" (function_definition) "static int commandpool_create(uint8_t thread_idx)\n{\n QueueFamilies queueFamilyIndices = get_queue_families(physical_device);\n\n VkCommandPoolCreateInfo poolInfo = {0};\n poolInfo.sType = VK_STRUCTURE_TYPE_COMMAND_POOL_CREATE_INFO;\n poolInfo.queueFamilyIndex = queueFamilyIndices.graphics;\n // Enables the renderer to individually reset command buffers\n poolInfo.flags = VK_COMMAND_POOL_CREATE_RESET_COMMAND_BUFFER_BIT; // Optional\n VkResult result = vkCreateCommandPool(device, &poolInfo, NULL, &commandpools[thread_idx]);\n if (result != VK_SUCCESS)\n {\n LOG_E("Failed to create command pool - code %d", result);\n return -1;\n }\n return 0;\n}" (storage_class_specifier) "static" (static) "static" (primitive_type) "int" (function_declarator) "commandpool_create(uint8_t thread_idx)" (identifier) "commandpool_create" (parameter_list) "(uint8_t thread_idx)" (() "(" (parameter_declaration) "uint8_t thread_idx" (primitive_type) "uint8_t" (identifier) "thread_idx" ()) ")" (compound_statement) "{\n QueueFamilies queueFamilyIndices = get_queue_families(physical_device);\n\n VkCommandPoolCreateInfo poolInfo = {0};\n poolInfo.sType = VK_STRUCTURE_TYPE_COMMAND_POOL_CREATE_INFO;\n poolInfo.queueFamilyIndex = queueFamilyIndices.graphics;\n // Enables the renderer to individually reset command buffers\n poolInfo.flags = VK_COMMAND_POOL_CREATE_RESET_COMMAND_BUFFER_BIT; // Optional\n VkResult result = vkCreateCommandPool(device, &poolInfo, NULL, &commandpools[thread_idx]);\n if (result != VK_SUCCESS)\n {\n LOG_E("Failed to create command pool - code %d", result);\n return -1;\n }\n return 0;\n}" ({) "{" (declaration) "QueueFamilies queueFamilyIndices = get_queue_families(physical_device);" (type_identifier) "QueueFamilies" (init_declarator) "queueFamilyIndices = get_queue_families(physical_device)" (identifier) "queueFamilyIndices" (=) "=" (call_expression) "get_queue_families(physical_device)" (identifier) "get_queue_families" (argument_list) "(physical_device)" (() "(" (identifier) "physical_device" ()) ")" (;) ";" (declaration) "VkCommandPoolCreateInfo poolInfo = {0};" (type_identifier) "VkCommandPoolCreateInfo" (init_declarator) "poolInfo = {0}" (identifier) "poolInfo" (=) "=" (initializer_list) "{0}" ({) "{" (number_literal) "0" (}) "}" (;) ";" (expression_statement) "poolInfo.sType = VK_STRUCTURE_TYPE_COMMAND_POOL_CREATE_INFO;" (assignment_expression) "poolInfo.sType = VK_STRUCTURE_TYPE_COMMAND_POOL_CREATE_INFO" (field_expression) "poolInfo.sType" (identifier) "poolInfo" (.) "." (field_identifier) "sType" (=) "=" (identifier) "VK_STRUCTURE_TYPE_COMMAND_POOL_CREATE_INFO" (;) ";" (expression_statement) "poolInfo.queueFamilyIndex = queueFamilyIndices.graphics;" (assignment_expression) "poolInfo.queueFamilyIndex = queueFamilyIndices.graphics" (field_expression) "poolInfo.queueFamilyIndex" (identifier) "poolInfo" (.) "." (field_identifier) "queueFamilyIndex" (=) "=" (field_expression) "queueFamilyIndices.graphics" (identifier) "queueFamilyIndices" (.) "." (field_identifier) "graphics" (;) ";" (comment) "// Enables the renderer to individually reset command buffers" (expression_statement) "poolInfo.flags = VK_COMMAND_POOL_CREATE_RESET_COMMAND_BUFFER_BIT;" (assignment_expression) "poolInfo.flags = VK_COMMAND_POOL_CREATE_RESET_COMMAND_BUFFER_BIT" (field_expression) "poolInfo.flags" (identifier) "poolInfo" (.) "." (field_identifier) "flags" (=) "=" (identifier) "VK_COMMAND_POOL_CREATE_RESET_COMMAND_BUFFER_BIT" (;) ";" (comment) "// Optional" (declaration) "VkResult result = vkCreateCommandPool(device, &poolInfo, NULL, &commandpools[thread_idx]);" (type_identifier) "VkResult" (init_declarator) "result = vkCreateCommandPool(device, &poolInfo, NULL, &commandpools[thread_idx])" (identifier) "result" (=) "=" (call_expression) "vkCreateCommandPool(device, &poolInfo, NULL, &commandpools[thread_idx])" (identifier) "vkCreateCommandPool" (argument_list) "(device, &poolInfo, NULL, &commandpools[thread_idx])" (() "(" (identifier) "device" (,) "," (pointer_expression) "&poolInfo" (&) "&" (identifier) "poolInfo" (,) "," (null) "NULL" (NULL) "NULL" (,) "," (pointer_expression) "&commandpools[thread_idx]" (&) "&" (subscript_expression) "commandpools[thread_idx]" (identifier) "commandpools" ([) "[" (identifier) "thread_idx" (]) "]" ()) ")" (;) ";" (if_statement) "if (result != VK_SUCCESS)\n {\n LOG_E("Failed to create command pool - code %d", result);\n return -1;\n }" (if) "if" (parenthesized_expression) "(result != VK_SUCCESS)" (() "(" (binary_expression) "result != VK_SUCCESS" (identifier) "result" (!=) "!=" (identifier) "VK_SUCCESS" ()) ")" (compound_statement) "{\n LOG_E("Failed to create command pool - code %d", result);\n return -1;\n }" ({) "{" (expression_statement) "LOG_E("Failed to create command pool - code %d", result);" (call_expression) "LOG_E("Failed to create command pool - code %d", result)" (identifier) "LOG_E" (argument_list) "("Failed to create command pool - code %d", result)" (() "(" (string_literal) ""Failed to create command pool - code %d"" (") """ (string_content) "Failed to create command pool - code %d" (") """ (,) "," (identifier) "result" ()) ")" (;) ";" (return_statement) "return -1;" (return) "return" (number_literal) "-1" (;) ";" (}) "}" (return_statement) "return 0;" (return) "return" (number_literal) "0" (;) ";" (}) "}" (function_definition) "Commandbuffer commandbuffer_create_secondary(uint8_t thread_idx, Commandbuffer primary, VkRenderPass renderPass, Framebuffer frameBuffer)\n{\n if (thread_idx >= RENDERER_MAX_THREADS)\n {\n LOG_E("Thread index of %d is greater than the maximum number of threads %d", thread_idx, RENDERER_MAX_THREADS);\n return INVALID(Commandbuffer);\n }\n\n // Create command pool if it doesn't exist\n if (commandpools[thread_idx] == NULL)\n {\n commandpool_create(thread_idx);\n }\n\n // Create command buffer\n\n // Allocate primary command buffer\n VkCommandBufferAllocateInfo allocInfo = {0};\n allocInfo.sType = VK_STRUCTURE_TYPE_COMMAND_BUFFER_ALLOCATE_INFO;\n allocInfo.commandPool = commandpools[thread_idx];\n allocInfo.level = VK_COMMAND_BUFFER_LEVEL_SECONDARY;\n allocInfo.commandBufferCount = 1;\n\n const struct handle_wrapper* wrapper = handlepool_alloc(&handlepool);\n Commandbuffer_raw* raw = (Commandbuffer_raw*)wrapper->data;\n Commandbuffer handle = wrapper->handle;\n\n raw->thread_idx = thread_idx;\n raw->recording = false;\n raw->level = VK_COMMAND_BUFFER_LEVEL_SECONDARY;\n raw->next = INVALID(Commandbuffer);\n\n // Fill in inheritance info struct\n commandbuffer_set_info(handle, primary, renderPass, frameBuffer);\n\n VkResult result = vkAllocateCommandBuffers(device, &allocInfo, &raw->cmd);\n if (result != VK_SUCCESS)\n {\n LOG_E("Failed to create command buffers - code %d", result);\n return INVALID(Commandbuffer);\n }\n\n return handle;\n}" (type_identifier) "Commandbuffer" (function_declarator) "commandbuffer_create_secondary(uint8_t thread_idx, Commandbuffer primary, VkRenderPass renderPass, Framebuffer frameBuffer)" (identifier) "commandbuffer_create_secondary" (parameter_list) "(uint8_t thread_idx, Commandbuffer primary, VkRenderPass renderPass, Framebuffer frameBuffer)" (() "(" (parameter_declaration) "uint8_t thread_idx" (primitive_type) "uint8_t" (identifier) "thread_idx" (,) "," (parameter_declaration) "Commandbuffer primary" (type_identifier) "Commandbuffer" (identifier) "primary" (,) "," (parameter_declaration) "VkRenderPass renderPass" (type_identifier) "VkRenderPass" (identifier) "renderPass" (,) "," (parameter_declaration) "Framebuffer frameBuffer" (type_identifier) "Framebuffer" (identifier) "frameBuffer" ()) ")" (compound_statement) "{\n if (thread_idx >= RENDERER_MAX_THREADS)\n {\n LOG_E("Thread index of %d is greater than the maximum number of threads %d", thread_idx, RENDERER_MAX_THREADS);\n return INVALID(Commandbuffer);\n }\n\n // Create command pool if it doesn't exist\n if (commandpools[thread_idx] == NULL)\n {\n commandpool_create(thread_idx);\n }\n\n // Create command buffer\n\n // Allocate primary command buffer\n VkCommandBufferAllocateInfo allocInfo = {0};\n allocInfo.sType = VK_STRUCTURE_TYPE_COMMAND_BUFFER_ALLOCATE_INFO;\n allocInfo.commandPool = commandpools[thread_idx];\n allocInfo.level = VK_COMMAND_BUFFER_LEVEL_SECONDARY;\n allocInfo.commandBufferCount = 1;\n\n const struct handle_wrapper* wrapper = handlepool_alloc(&handlepool);\n Commandbuffer_raw* raw = (Commandbuffer_raw*)wrapper->data;\n Commandbuffer handle = wrapper->handle;\n\n raw->thread_idx = thread_idx;\n raw->recording = false;\n raw->level = VK_COMMAND_BUFFER_LEVEL_SECONDARY;\n raw->next = INVALID(Commandbuffer);\n\n // Fill in inheritance info struct\n commandbuffer_set_info(handle, primary, renderPass, frameBuffer);\n\n VkResult result = vkAllocateCommandBuffers(device, &allocInfo, &raw->cmd);\n if (result != VK_SUCCESS)\n {\n LOG_E("Failed to create command buffers - code %d", result);\n return INVALID(Commandbuffer);\n }\n\n return handle;\n}" ({) "{" (if_statement) "if (thread_idx >= RENDERER_MAX_THREADS)\n {\n LOG_E("Thread index of %d is greater than the maximum number of threads %d", thread_idx, RENDERER_MAX_THREADS);\n return INVALID(Commandbuffer);\n }" (if) "if" (parenthesized_expression) "(thread_idx >= RENDERER_MAX_THREADS)" (() "(" (binary_expression) "thread_idx >= RENDERER_MAX_THREADS" (identifier) "thread_idx" (>=) ">=" (identifier) "RENDERER_MAX_THREADS" ()) ")" (compound_statement) "{\n LOG_E("Thread index of %d is greater than the maximum number of threads %d", thread_idx, RENDERER_MAX_THREADS);\n return INVALID(Commandbuffer);\n }" ({) "{" (expression_statement) "LOG_E("Thread index of %d is greater than the maximum number of threads %d", thread_idx, RENDERER_MAX_THREADS);" (call_expression) "LOG_E("Thread index of %d is greater than the maximum number of threads %d", thread_idx, RENDERER_MAX_THREADS)" (identifier) "LOG_E" (argument_list) "("Thread index of %d is greater than the maximum number of threads %d", thread_idx, RENDERER_MAX_THREADS)" (() "(" (string_literal) ""Thread index of %d is greater than the maximum number of threads %d"" (") """ (string_content) "Thread index of %d is greater than the maximum number of threads %d" (") """ (,) "," (identifier) "thread_idx" (,) "," (identifier) "RENDERER_MAX_THREADS" ()) ")" (;) ";" (return_statement) "return INVALID(Commandbuffer);" (return) "return" (call_expression) "INVALID(Commandbuffer)" (identifier) "INVALID" (argument_list) "(Commandbuffer)" (() "(" (identifier) "Commandbuffer" ()) ")" (;) ";" (}) "}" (comment) "// Create command pool if it doesn't exist" (if_statement) "if (commandpools[thread_idx] == NULL)\n {\n commandpool_create(thread_idx);\n }" (if) "if" (parenthesized_expression) "(commandpools[thread_idx] == NULL)" (() "(" (binary_expression) "commandpools[thread_idx] == NULL" (subscript_expression) "commandpools[thread_idx]" (identifier) "commandpools" ([) "[" (identifier) "thread_idx" (]) "]" (==) "==" (null) "NULL" (NULL) "NULL" ()) ")" (compound_statement) "{\n commandpool_create(thread_idx);\n }" ({) "{" (expression_statement) "commandpool_create(thread_idx);" (call_expression) "commandpool_create(thread_idx)" (identifier) "commandpool_create" (argument_list) "(thread_idx)" (() "(" (identifier) "thread_idx" ()) ")" (;) ";" (}) "}" (comment) "// Create command buffer" (comment) "// Allocate primary command buffer" (declaration) "VkCommandBufferAllocateInfo allocInfo = {0};" (type_identifier) "VkCommandBufferAllocateInfo" (init_declarator) "allocInfo = {0}" (identifier) "allocInfo" (=) "=" (initializer_list) "{0}" ({) "{" (number_literal) "0" (}) "}" (;) ";" (expression_statement) "allocInfo.sType = VK_STRUCTURE_TYPE_COMMAND_BUFFER_ALLOCATE_INFO;" (assignment_expression) "allocInfo.sType = VK_STRUCTURE_TYPE_COMMAND_BUFFER_ALLOCATE_INFO" (field_expression) "allocInfo.sType" (identifier) "allocInfo" (.) "." (field_identifier) "sType" (=) "=" (identifier) "VK_STRUCTURE_TYPE_COMMAND_BUFFER_ALLOCATE_INFO" (;) ";" (expression_statement) "allocInfo.commandPool = commandpools[thread_idx];" (assignment_expression) "allocInfo.commandPool = commandpools[thread_idx]" (field_expression) "allocInfo.commandPool" (identifier) "allocInfo" (.) "." (field_identifier) "commandPool" (=) "=" (subscript_expression) "commandpools[thread_idx]" (identifier) "commandpools" ([) "[" (identifier) "thread_idx" (]) "]" (;) ";" (expression_statement) "allocInfo.level = VK_COMMAND_BUFFER_LEVEL_SECONDARY;" (assignment_expression) "allocInfo.level = VK_COMMAND_BUFFER_LEVEL_SECONDARY" (field_expression) "allocInfo.level" (identifier) "allocInfo" (.) "." (field_identifier) "level" (=) "=" (identifier) "VK_COMMAND_BUFFER_LEVEL_SECONDARY" (;) ";" (expression_statement) "allocInfo.commandBufferCount = 1;" (assignment_expression) "allocInfo.commandBufferCount = 1" (field_expression) "allocInfo.commandBufferCount" (identifier) "allocInfo" (.) "." (field_identifier) "commandBufferCount" (=) "=" (number_literal) "1" (;) ";" (declaration) "const struct handle_wrapper* wrapper = handlepool_alloc(&handlepool);" (type_qualifier) "const" (const) "const" (struct_specifier) "struct handle_wrapper" (struct) "struct" (type_identifier) "handle_wrapper" (init_declarator) "* wrapper = handlepool_alloc(&handlepool)" (pointer_declarator) "* wrapper" (*) "*" (identifier) "wrapper" (=) "=" (call_expression) "handlepool_alloc(&handlepool)" (identifier) "handlepool_alloc" (argument_list) "(&handlepool)" (() "(" (pointer_expression) "&handlepool" (&) "&" (identifier) "handlepool" ()) ")" (;) ";" (declaration) "Commandbuffer_raw* raw = (Commandbuffer_raw*)wrapper->data;" (type_identifier) "Commandbuffer_raw" (init_declarator) "* raw = (Commandbuffer_raw*)wrapper->data" (pointer_declarator) "* raw" (*) "*" (identifier) "raw" (=) "=" (cast_expression) "(Commandbuffer_raw*)wrapper->data" (() "(" (type_descriptor) "Commandbuffer_raw*" (type_identifier) "Commandbuffer_raw" (abstract_pointer_declarator) "*" (*) "*" ()) ")" (field_expression) "wrapper->data" (identifier) "wrapper" (->) "->" (field_identifier) "data" (;) ";" (declaration) "Commandbuffer handle = wrapper->handle;" (type_identifier) "Commandbuffer" (init_declarator) "handle = wrapper->handle" (identifier) "handle" (=) "=" (field_expression) "wrapper->handle" (identifier) "wrapper" (->) "->" (field_identifier) "handle" (;) ";" (expression_statement) "raw->thread_idx = thread_idx;" (assignment_expression) "raw->thread_idx = thread_idx" (field_expression) "raw->thread_idx" (identifier) "raw" (->) "->" (field_identifier) "thread_idx" (=) "=" (identifier) "thread_idx" (;) ";" (expression_statement) "raw->recording = false;" (assignment_expression) "raw->recording = false" (field_expression) "raw->recording" (identifier) "raw" (->) "->" (field_identifier) "recording" (=) "=" (false) "false" (;) ";" (expression_statement) "raw->level = VK_COMMAND_BUFFER_LEVEL_SECONDARY;" (assignment_expression) "raw->level = VK_COMMAND_BUFFER_LEVEL_SECONDARY" (field_expression) "raw->level" (identifier) "raw" (->) "->" (field_identifier) "level" (=) "=" (identifier) "VK_COMMAND_BUFFER_LEVEL_SECONDARY" (;) ";" (expression_statement) "raw->next = INVALID(Commandbuffer);" (assignment_expression) "raw->next = INVALID(Commandbuffer)" (field_expression) "raw->next" (identifier) "raw" (->) "->" (field_identifier) "next" (=) "=" (call_expression) "INVALID(Commandbuffer)" (identifier) "INVALID" (argument_list) "(Commandbuffer)" (() "(" (identifier) "Commandbuffer" ()) ")" (;) ";" (comment) "// Fill in inheritance info struct" (expression_statement) "commandbuffer_set_info(handle, primary, renderPass, frameBuffer);" (call_expression) "commandbuffer_set_info(handle, primary, renderPass, frameBuffer)" (identifier) "commandbuffer_set_info" (argument_list) "(handle, primary, renderPass, frameBuffer)" (() "(" (identifier) "handle" (,) "," (identifier) "primary" (,) "," (identifier) "renderPass" (,) "," (identifier) "frameBuffer" ()) ")" (;) ";" (declaration) "VkResult result = vkAllocateCommandBuffers(device, &allocInfo, &raw->cmd);" (type_identifier) "VkResult" (init_declarator) "result = vkAllocateCommandBuffers(device, &allocInfo, &raw->cmd)" (identifier) "result" (=) "=" (call_expression) "vkAllocateCommandBuffers(device, &allocInfo, &raw->cmd)" (identifier) "vkAllocateCommandBuffers" (argument_list) "(device, &allocInfo, &raw->cmd)" (() "(" (identifier) "device" (,) "," (pointer_expression) "&allocInfo" (&) "&" (identifier) "allocInfo" (,) "," (pointer_expression) "&raw->cmd" (&) "&" (field_expression) "raw->cmd" (identifier) "raw" (->) "->" (field_identifier) "cmd" ()) ")" (;) ";" (if_statement) "if (result != VK_SUCCESS)\n {\n LOG_E("Failed to create command buffers - code %d", result);\n return INVALID(Commandbuffer);\n }" (if) "if" (parenthesized_expression) "(result != VK_SUCCESS)" (() "(" (binary_expression) "result != VK_SUCCESS" (identifier) "result" (!=) "!=" (identifier) "VK_SUCCESS" ()) ")" (compound_statement) "{\n LOG_E("Failed to create command buffers - code %d", result);\n return INVALID(Commandbuffer);\n }" ({) "{" (expression_statement) "LOG_E("Failed to create command buffers - code %d", result);" (call_expression) "LOG_E("Failed to create command buffers - code %d", result)" (identifier) "LOG_E" (argument_list) "("Failed to create command buffers - code %d", result)" (() "(" (string_literal) ""Failed to create command buffers - code %d"" (") """ (string_content) "Failed to create command buffers - code %d" (") """ (,) "," (identifier) "result" ()) ")" (;) ";" (return_statement) "return INVALID(Commandbuffer);" (return) "return" (call_expression) "INVALID(Commandbuffer)" (identifier) "INVALID" (argument_list) "(Commandbuffer)" (() "(" (identifier) "Commandbuffer" ()) ")" (;) ";" (}) "}" (return_statement) "return handle;" (return) "return" (identifier) "handle" (;) ";" (}) "}" (function_definition) "Commandbuffer commandbuffer_create_primary(uint8_t thread_idx)\n{\n if (thread_idx >= RENDERER_MAX_THREADS)\n {\n LOG_E("Thread index of %d is greater than the maximum number of threads %d", thread_idx, RENDERER_MAX_THREADS);\n return INVALID(Commandbuffer);\n }\n\n // Create command pool if it doesn't exist\n if (commandpools[thread_idx] == NULL)\n {\n commandpool_create(thread_idx);\n }\n\n // Create command buffer\n\n // Allocate primary command buffer\n VkCommandBufferAllocateInfo allocInfo = {0};\n allocInfo.sType = VK_STRUCTURE_TYPE_COMMAND_BUFFER_ALLOCATE_INFO;\n allocInfo.commandPool = commandpools[thread_idx];\n allocInfo.level = VK_COMMAND_BUFFER_LEVEL_PRIMARY;\n allocInfo.commandBufferCount = 1;\n\n const struct handle_wrapper* wrapper = handlepool_alloc(&handlepool);\n Commandbuffer_raw* raw = (Commandbuffer_raw*)wrapper->data;\n Commandbuffer handle = wrapper->handle;\n raw->thread_idx = thread_idx;\n raw->recording = false;\n raw->level = VK_COMMAND_BUFFER_LEVEL_PRIMARY;\n raw->info.framebuffer = INVALID(Framebuffer);\n raw->info.renderPass = VK_NULL_HANDLE;\n raw->next = INVALID(Commandbuffer);\n\n VkResult result = vkAllocateCommandBuffers(device, &allocInfo, &raw->cmd);\n\n if (result != VK_SUCCESS)\n {\n LOG_E("Failed to create command buffers - code %d", result);\n return INVALID(Commandbuffer);\n }\n\n // Create fence\n VkFenceCreateInfo fence_info = {0};\n fence_info.sType = VK_STRUCTURE_TYPE_FENCE_CREATE_INFO;\n fence_info.flags = VK_FENCE_CREATE_SIGNALED_BIT;\n\n result = vkCreateFence(device, &fence_info, NULL, &raw->fence);\n if (result != VK_SUCCESS)\n {\n LOG_E("Failed to create command buffer fence - code %d", result);\n return INVALID(Commandbuffer);\n }\n\n return handle;\n}" (type_identifier) "Commandbuffer" (function_declarator) "commandbuffer_create_primary(uint8_t thread_idx)" (identifier) "commandbuffer_create_primary" (parameter_list) "(uint8_t thread_idx)" (() "(" (parameter_declaration) "uint8_t thread_idx" (primitive_type) "uint8_t" (identifier) "thread_idx" ()) ")" (compound_statement) "{\n if (thread_idx >= RENDERER_MAX_THREADS)\n {\n LOG_E("Thread index of %d is greater than the maximum number of threads %d", thread_idx, RENDERER_MAX_THREADS);\n return INVALID(Commandbuffer);\n }\n\n // Create command pool if it doesn't exist\n if (commandpools[thread_idx] == NULL)\n {\n commandpool_create(thread_idx);\n }\n\n // Create command buffer\n\n // Allocate primary command buffer\n VkCommandBufferAllocateInfo allocInfo = {0};\n allocInfo.sType = VK_STRUCTURE_TYPE_COMMAND_BUFFER_ALLOCATE_INFO;\n allocInfo.commandPool = commandpools[thread_idx];\n allocInfo.level = VK_COMMAND_BUFFER_LEVEL_PRIMARY;\n allocInfo.commandBufferCount = 1;\n\n const struct handle_wrapper* wrapper = handlepool_alloc(&handlepool);\n Commandbuffer_raw* raw = (Commandbuffer_raw*)wrapper->data;\n Commandbuffer handle = wrapper->handle;\n raw->thread_idx = thread_idx;\n raw->recording = false;\n raw->level = VK_COMMAND_BUFFER_LEVEL_PRIMARY;\n raw->info.framebuffer = INVALID(Framebuffer);\n raw->info.renderPass = VK_NULL_HANDLE;\n raw->next = INVALID(Commandbuffer);\n\n VkResult result = vkAllocateCommandBuffers(device, &allocInfo, &raw->cmd);\n\n if (result != VK_SUCCESS)\n {\n LOG_E("Failed to create command buffers - code %d", result);\n return INVALID(Commandbuffer);\n }\n\n // Create fence\n VkFenceCreateInfo fence_info = {0};\n fence_info.sType = VK_STRUCTURE_TYPE_FENCE_CREATE_INFO;\n fence_info.flags = VK_FENCE_CREATE_SIGNALED_BIT;\n\n result = vkCreateFence(device, &fence_info, NULL, &raw->fence);\n if (result != VK_SUCCESS)\n {\n LOG_E("Failed to create command buffer fence - code %d", result);\n return INVALID(Commandbuffer);\n }\n\n return handle;\n}" ({) "{" (if_statement) "if (thread_idx >= RENDERER_MAX_THREADS)\n {\n LOG_E("Thread index of %d is greater than the maximum number of threads %d", thread_idx, RENDERER_MAX_THREADS);\n return INVALID(Commandbuffer);\n }" (if) "if" (parenthesized_expression) "(thread_idx >= RENDERER_MAX_THREADS)" (() "(" (binary_expression) "thread_idx >= RENDERER_MAX_THREADS" (identifier) "thread_idx" (>=) ">=" (identifier) "RENDERER_MAX_THREADS" ()) ")" (compound_statement) "{\n LOG_E("Thread index of %d is greater than the maximum number of threads %d", thread_idx, RENDERER_MAX_THREADS);\n return INVALID(Commandbuffer);\n }" ({) "{" (expression_statement) "LOG_E("Thread index of %d is greater than the maximum number of threads %d", thread_idx, RENDERER_MAX_THREADS);" (call_expression) "LOG_E("Thread index of %d is greater than the maximum number of threads %d", thread_idx, RENDERER_MAX_THREADS)" (identifier) "LOG_E" (argument_list) "("Thread index of %d is greater than the maximum number of threads %d", thread_idx, RENDERER_MAX_THREADS)" (() "(" (string_literal) ""Thread index of %d is greater than the maximum number of threads %d"" (") """ (string_content) "Thread index of %d is greater than the maximum number of threads %d" (") """ (,) "," (identifier) "thread_idx" (,) "," (identifier) "RENDERER_MAX_THREADS" ()) ")" (;) ";" (return_statement) "return INVALID(Commandbuffer);" (return) "return" (call_expression) "INVALID(Commandbuffer)" (identifier) "INVALID" (argument_list) "(Commandbuffer)" (() "(" (identifier) "Commandbuffer" ()) ")" (;) ";" (}) "}" (comment) "// Create command pool if it doesn't exist" (if_statement) "if (commandpools[thread_idx] == NULL)\n {\n commandpool_create(thread_idx);\n }" (if) "if" (parenthesized_expression) "(commandpools[thread_idx] == NULL)" (() "(" (binary_expression) "commandpools[thread_idx] == NULL" (subscript_expression) "commandpools[thread_idx]" (identifier) "commandpools" ([) "[" (identifier) "thread_idx" (]) "]" (==) "==" (null) "NULL" (NULL) "NULL" ()) ")" (compound_statement) "{\n commandpool_create(thread_idx);\n }" ({) "{" (expression_statement) "commandpool_create(thread_idx);" (call_expression) "commandpool_create(thread_idx)" (identifier) "commandpool_create" (argument_list) "(thread_idx)" (() "(" (identifier) "thread_idx" ()) ")" (;) ";" (}) "}" (comment) "// Create command buffer" (comment) "// Allocate primary command buffer" (declaration) "VkCommandBufferAllocateInfo allocInfo = {0};" (type_identifier) "VkCommandBufferAllocateInfo" (init_declarator) "allocInfo = {0}" (identifier) "allocInfo" (=) "=" (initializer_list) "{0}" ({) "{" (number_literal) "0" (}) "}" (;) ";" (expression_statement) "allocInfo.sType = VK_STRUCTURE_TYPE_COMMAND_BUFFER_ALLOCATE_INFO;" (assignment_expression) "allocInfo.sType = VK_STRUCTURE_TYPE_COMMAND_BUFFER_ALLOCATE_INFO" (field_expression) "allocInfo.sType" (identifier) "allocInfo" (.) "." (field_identifier) "sType" (=) "=" (identifier) "VK_STRUCTURE_TYPE_COMMAND_BUFFER_ALLOCATE_INFO" (;) ";" (expression_statement) "allocInfo.commandPool = commandpools[thread_idx];" (assignment_expression) "allocInfo.commandPool = commandpools[thread_idx]" (field_expression) "allocInfo.commandPool" (identifier) "allocInfo" (.) "." (field_identifier) "commandPool" (=) "=" (subscript_expression) "commandpools[thread_idx]" (identifier) "commandpools" ([) "[" (identifier) "thread_idx" (]) "]" (;) ";" (expression_statement) "allocInfo.level = VK_COMMAND_BUFFER_LEVEL_PRIMARY;" (assignment_expression) "allocInfo.level = VK_COMMAND_BUFFER_LEVEL_PRIMARY" (field_expression) "allocInfo.level" (identifier) "allocInfo" (.) "." (field_identifier) "level" (=) "=" (identifier) "VK_COMMAND_BUFFER_LEVEL_PRIMARY" (;) ";" (expression_statement) "allocInfo.commandBufferCount = 1;" (assignment_expression) "allocInfo.commandBufferCount = 1" (field_expression) "allocInfo.commandBufferCount" (identifier) "allocInfo" (.) "." (field_identifier) "commandBufferCount" (=) "=" (number_literal) "1" (;) ";" (declaration) "const struct handle_wrapper* wrapper = handlepool_alloc(&handlepool);" (type_qualifier) "const" (const) "const" (struct_specifier) "struct handle_wrapper" (struct) "struct" (type_identifier) "handle_wrapper" (init_declarator) "* wrapper = handlepool_alloc(&handlepool)" (pointer_declarator) "* wrapper" (*) "*" (identifier) "wrapper" (=) "=" (call_expression) "handlepool_alloc(&handlepool)" (identifier) "handlepool_alloc" (argument_list) "(&handlepool)" (() "(" (pointer_expression) "&handlepool" (&) "&" (identifier) "handlepool" ()) ")" (;) ";" (declaration) "Commandbuffer_raw* raw = (Commandbuffer_raw*)wrapper->data;" (type_identifier) "Commandbuffer_raw" (init_declarator) "* raw = (Commandbuffer_raw*)wrapper->data" (pointer_declarator) "* raw" (*) "*" (identifier) "raw" (=) "=" (cast_expression) "(Commandbuffer_raw*)wrapper->data" (() "(" (type_descriptor) "Commandbuffer_raw*" (type_identifier) "Commandbuffer_raw" (abstract_pointer_declarator) "*" (*) "*" ()) ")" (field_expression) "wrapper->data" (identifier) "wrapper" (->) "->" (field_identifier) "data" (;) ";" (declaration) "Commandbuffer handle = wrapper->handle;" (type_identifier) "Commandbuffer" (init_declarator) "handle = wrapper->handle" (identifier) "handle" (=) "=" (field_expression) "wrapper->handle" (identifier) "wrapper" (->) "->" (field_identifier) "handle" (;) ";" (expression_statement) "raw->thread_idx = thread_idx;" (assignment_expression) "raw->thread_idx = thread_idx" (field_expression) "raw->thread_idx" (identifier) "raw" (->) "->" (field_identifier) "thread_idx" (=) "=" (identifier) "thread_idx" (;) ";" (expression_statement) "raw->recording = false;" (assignment_expression) "raw->recording = false" (field_expression) "raw->recording" (identifier) "raw" (->) "->" (field_identifier) "recording" (=) "=" (false) "false" (;) ";" (expression_statement) "raw->level = VK_COMMAND_BUFFER_LEVEL_PRIMARY;" (assignment_expression) "raw->level = VK_COMMAND_BUFFER_LEVEL_PRIMARY" (field_expression) "raw->level" (identifier) "raw" (->) "->" (field_identifier) "level" (=) "=" (identifier) "VK_COMMAND_BUFFER_LEVEL_PRIMARY" (;) ";" (expression_statement) "raw->info.framebuffer = INVALID(Framebuffer);" (assignment_expression) "raw->info.framebuffer = INVALID(Framebuffer)" (field_expression) "raw->info.framebuffer" (field_expression) "raw->info" (identifier) "raw" (->) "->" (field_identifier) "info" (.) "." (field_identifier) "framebuffer" (=) "=" (call_expression) "INVALID(Framebuffer)" (identifier) "INVALID" (argument_list) "(Framebuffer)" (() "(" (identifier) "Framebuffer" ()) ")" (;) ";" (expression_statement) "raw->info.renderPass = VK_NULL_HANDLE;" (assignment_expression) "raw->info.renderPass = VK_NULL_HANDLE" (field_expression) "raw->info.renderPass" (field_expression) "raw->info" (identifier) "raw" (->) "->" (field_identifier) "info" (.) "." (field_identifier) "renderPass" (=) "=" (identifier) "VK_NULL_HANDLE" (;) ";" (expression_statement) "raw->next = INVALID(Commandbuffer);" (assignment_expression) "raw->next = INVALID(Commandbuffer)" (field_expression) "raw->next" (identifier) "raw" (->) "->" (field_identifier) "next" (=) "=" (call_expression) "INVALID(Commandbuffer)" (identifier) "INVALID" (argument_list) "(Commandbuffer)" (() "(" (identifier) "Commandbuffer" ()) ")" (;) ";" (declaration) "VkResult result = vkAllocateCommandBuffers(device, &allocInfo, &raw->cmd);" (type_identifier) "VkResult" (init_declarator) "result = vkAllocateCommandBuffers(device, &allocInfo, &raw->cmd)" (identifier) "result" (=) "=" (call_expression) "vkAllocateCommandBuffers(device, &allocInfo, &raw->cmd)" (identifier) "vkAllocateCommandBuffers" (argument_list) "(device, &allocInfo, &raw->cmd)" (() "(" (identifier) "device" (,) "," (pointer_expression) "&allocInfo" (&) "&" (identifier) "allocInfo" (,) "," (pointer_expression) "&raw->cmd" (&) "&" (field_expression) "raw->cmd" (identifier) "raw" (->) "->" (field_identifier) "cmd" ()) ")" (;) ";" (if_statement) "if (result != VK_SUCCESS)\n {\n LOG_E("Failed to create command buffers - code %d", result);\n return INVALID(Commandbuffer);\n }" (if) "if" (parenthesized_expression) "(result != VK_SUCCESS)" (() "(" (binary_expression) "result != VK_SUCCESS" (identifier) "result" (!=) "!=" (identifier) "VK_SUCCESS" ()) ")" (compound_statement) "{\n LOG_E("Failed to create command buffers - code %d", result);\n return INVALID(Commandbuffer);\n }" ({) "{" (expression_statement) "LOG_E("Failed to create command buffers - code %d", result);" (call_expression) "LOG_E("Failed to create command buffers - code %d", result)" (identifier) "LOG_E" (argument_list) "("Failed to create command buffers - code %d", result)" (() "(" (string_literal) ""Failed to create command buffers - code %d"" (") """ (string_content) "Failed to create command buffers - code %d" (") """ (,) "," (identifier) "result" ()) ")" (;) ";" (return_statement) "return INVALID(Commandbuffer);" (return) "return" (call_expression) "INVALID(Commandbuffer)" (identifier) "INVALID" (argument_list) "(Commandbuffer)" (() "(" (identifier) "Commandbuffer" ()) ")" (;) ";" (}) "}" (comment) "// Create fence" (declaration) "VkFenceCreateInfo fence_info = {0};" (type_identifier) "VkFenceCreateInfo" (init_declarator) "fence_info = {0}" (identifier) "fence_info" (=) "=" (initializer_list) "{0}" ({) "{" (number_literal) "0" (}) "}" (;) ";" (expression_statement) "fence_info.sType = VK_STRUCTURE_TYPE_FENCE_CREATE_INFO;" (assignment_expression) "fence_info.sType = VK_STRUCTURE_TYPE_FENCE_CREATE_INFO" (field_expression) "fence_info.sType" (identifier) "fence_info" (.) "." (field_identifier) "sType" (=) "=" (identifier) "VK_STRUCTURE_TYPE_FENCE_CREATE_INFO" (;) ";" (expression_statement) "fence_info.flags = VK_FENCE_CREATE_SIGNALED_BIT;" (assignment_expression) "fence_info.flags = VK_FENCE_CREATE_SIGNALED_BIT" (field_expression) "fence_info.flags" (identifier) "fence_info" (.) "." (field_identifier) "flags" (=) "=" (identifier) "VK_FENCE_CREATE_SIGNALED_BIT" (;) ";" (expression_statement) "result = vkCreateFence(device, &fence_info, NULL, &raw->fence);" (assignment_expression) "result = vkCreateFence(device, &fence_info, NULL, &raw->fence)" (identifier) "result" (=) "=" (call_expression) "vkCreateFence(device, &fence_info, NULL, &raw->fence)" (identifier) "vkCreateFence" (argument_list) "(device, &fence_info, NULL, &raw->fence)" (() "(" (identifier) "device" (,) "," (pointer_expression) "&fence_info" (&) "&" (identifier) "fence_info" (,) "," (null) "NULL" (NULL) "NULL" (,) "," (pointer_expression) "&raw->fence" (&) "&" (field_expression) "raw->fence" (identifier) "raw" (->) "->" (field_identifier) "fence" ()) ")" (;) ";" (if_statement) "if (result != VK_SUCCESS)\n {\n LOG_E("Failed to create command buffer fence - code %d", result);\n return INVALID(Commandbuffer);\n }" (if) "if" (parenthesized_expression) "(result != VK_SUCCESS)" (() "(" (binary_expression) "result != VK_SUCCESS" (identifier) "result" (!=) "!=" (identifier) "VK_SUCCESS" ()) ")" (compound_statement) "{\n LOG_E("Failed to create command buffer fence - code %d", result);\n return INVALID(Commandbuffer);\n }" ({) "{" (expression_statement) "LOG_E("Failed to create command buffer fence - code %d", result);" (call_expression) "LOG_E("Failed to create command buffer fence - code %d", result)" (identifier) "LOG_E" (argument_list) "("Failed to create command buffer fence - code %d", result)" (() "(" (string_literal) ""Failed to create command buffer fence - code %d"" (") """ (string_content) "Failed to create command buffer fence - code %d" (") """ (,) "," (identifier) "result" ()) ")" (;) ";" (return_statement) "return INVALID(Commandbuffer);" (return) "return" (call_expression) "INVALID(Commandbuffer)" (identifier) "INVALID" (argument_list) "(Commandbuffer)" (() "(" (identifier) "Commandbuffer" ()) ")" (;) ";" (}) "}" (return_statement) "return handle;" (return) "return" (identifier) "handle" (;) ";" (}) "}" (function_definition) "void commandbuffer_set_info(Commandbuffer commandbuffer, Commandbuffer primary, VkRenderPass renderPass, Framebuffer framebuffer)\n{\n Commandbuffer_raw* raw = handlepool_get_raw(&handlepool, commandbuffer);\n if (HANDLE_VALID(primary))\n raw->fence = commandbuffer_fence(primary);\n else\n raw->fence = VK_NULL_HANDLE;\n\n raw->info.renderPass = renderPass;\n raw->info.framebuffer = framebuffer;\n}" (primitive_type) "void" (function_declarator) "commandbuffer_set_info(Commandbuffer commandbuffer, Commandbuffer primary, VkRenderPass renderPass, Framebuffer framebuffer)" (identifier) "commandbuffer_set_info" (parameter_list) "(Commandbuffer commandbuffer, Commandbuffer primary, VkRenderPass renderPass, Framebuffer framebuffer)" (() "(" (parameter_declaration) "Commandbuffer commandbuffer" (type_identifier) "Commandbuffer" (identifier) "commandbuffer" (,) "," (parameter_declaration) "Commandbuffer primary" (type_identifier) "Commandbuffer" (identifier) "primary" (,) "," (parameter_declaration) "VkRenderPass renderPass" (type_identifier) "VkRenderPass" (identifier) "renderPass" (,) "," (parameter_declaration) "Framebuffer framebuffer" (type_identifier) "Framebuffer" (identifier) "framebuffer" ()) ")" (compound_statement) "{\n Commandbuffer_raw* raw = handlepool_get_raw(&handlepool, commandbuffer);\n if (HANDLE_VALID(primary))\n raw->fence = commandbuffer_fence(primary);\n else\n raw->fence = VK_NULL_HANDLE;\n\n raw->info.renderPass = renderPass;\n raw->info.framebuffer = framebuffer;\n}" ({) "{" (declaration) "Commandbuffer_raw* raw = handlepool_get_raw(&handlepool, commandbuffer);" (type_identifier) "Commandbuffer_raw" (init_declarator) "* raw = handlepool_get_raw(&handlepool, commandbuffer)" (pointer_declarator) "* raw" (*) "*" (identifier) "raw" (=) "=" (call_expression) "handlepool_get_raw(&handlepool, commandbuffer)" (identifier) "handlepool_get_raw" (argument_list) "(&handlepool, commandbuffer)" (() "(" (pointer_expression) "&handlepool" (&) "&" (identifier) "handlepool" (,) "," (identifier) "commandbuffer" ()) ")" (;) ";" (if_statement) "if (HANDLE_VALID(primary))\n raw->fence = commandbuffer_fence(primary);\n else\n raw->fence = VK_NULL_HANDLE;" (if) "if" (parenthesized_expression) "(HANDLE_VALID(primary))" (() "(" (call_expression) "HANDLE_VALID(primary)" (identifier) "HANDLE_VALID" (argument_list) "(primary)" (() "(" (identifier) "primary" ()) ")" ()) ")" (expression_statement) "raw->fence = commandbuffer_fence(primary);" (assignment_expression) "raw->fence = commandbuffer_fence(primary)" (field_expression) "raw->fence" (identifier) "raw" (->) "->" (field_identifier) "fence" (=) "=" (call_expression) "commandbuffer_fence(primary)" (identifier) "commandbuffer_fence" (argument_list) "(primary)" (() "(" (identifier) "primary" ()) ")" (;) ";" (else_clause) "else\n raw->fence = VK_NULL_HANDLE;" (else) "else" (expression_statement) "raw->fence = VK_NULL_HANDLE;" (assignment_expression) "raw->fence = VK_NULL_HANDLE" (field_expression) "raw->fence" (identifier) "raw" (->) "->" (field_identifier) "fence" (=) "=" (identifier) "VK_NULL_HANDLE" (;) ";" (expression_statement) "raw->info.renderPass = renderPass;" (assignment_expression) "raw->info.renderPass = renderPass" (field_expression) "raw->info.renderPass" (field_expression) "raw->info" (identifier) "raw" (->) "->" (field_identifier) "info" (.) "." (field_identifier) "renderPass" (=) "=" (identifier) "renderPass" (;) ";" (expression_statement) "raw->info.framebuffer = framebuffer;" (assignment_expression) "raw->info.framebuffer = framebuffer" (field_expression) "raw->info.framebuffer" (field_expression) "raw->info" (identifier) "raw" (->) "->" (field_identifier) "info" (.) "." (field_identifier) "framebuffer" (=) "=" (identifier) "framebuffer" (;) ";" (}) "}" (function_definition) "void commandbuffer_begin(Commandbuffer commandbuffer)\n{\n Commandbuffer_raw* raw = handlepool_get_raw(&handlepool, commandbuffer);\n\n vkResetCommandBuffer(raw->cmd, 0);\n VkCommandBufferBeginInfo begin_info = {0};\n VkCommandBufferInheritanceInfo inheritanceInfo = (VkCommandBufferInheritanceInfo){0};\n if (raw->level == VK_COMMAND_BUFFER_LEVEL_SECONDARY)\n {\n inheritanceInfo = (VkCommandBufferInheritanceInfo){\n .sType = VK_STRUCTURE_TYPE_COMMAND_BUFFER_INHERITANCE_INFO,\n .pNext = NULL,\n .renderPass = raw->info.renderPass,\n .subpass = 0,\n .framebuffer = framebuffer_vk(raw->info.framebuffer),\n .queryFlags = 0,\n .pipelineStatistics = 0};\n\n begin_info.sType = VK_STRUCTURE_TYPE_COMMAND_BUFFER_BEGIN_INFO;\n begin_info.flags = VK_COMMAND_BUFFER_USAGE_RENDER_PASS_CONTINUE_BIT;\n begin_info.pInheritanceInfo = &inheritanceInfo;\n\n // Start recording\n }\n else if (raw->level == VK_COMMAND_BUFFER_LEVEL_PRIMARY)\n {\n begin_info.sType = VK_STRUCTURE_TYPE_COMMAND_BUFFER_BEGIN_INFO;\n begin_info.flags = 0;\n begin_info.pInheritanceInfo = NULL;\n }\n\n VkResult result = vkBeginCommandBuffer(raw->cmd, &begin_info);\n if (result != VK_SUCCESS)\n {\n LOG_E("Failed to start recording of command buffer");\n }\n raw->recording = true;\n}" (primitive_type) "void" (function_declarator) "commandbuffer_begin(Commandbuffer commandbuffer)" (identifier) "commandbuffer_begin" (parameter_list) "(Commandbuffer commandbuffer)" (() "(" (parameter_declaration) "Commandbuffer commandbuffer" (type_identifier) "Commandbuffer" (identifier) "commandbuffer" ()) ")" (compound_statement) "{\n Commandbuffer_raw* raw = handlepool_get_raw(&handlepool, commandbuffer);\n\n vkResetCommandBuffer(raw->cmd, 0);\n VkCommandBufferBeginInfo begin_info = {0};\n VkCommandBufferInheritanceInfo inheritanceInfo = (VkCommandBufferInheritanceInfo){0};\n if (raw->level == VK_COMMAND_BUFFER_LEVEL_SECONDARY)\n {\n inheritanceInfo = (VkCommandBufferInheritanceInfo){\n .sType = VK_STRUCTURE_TYPE_COMMAND_BUFFER_INHERITANCE_INFO,\n .pNext = NULL,\n .renderPass = raw->info.renderPass,\n .subpass = 0,\n .framebuffer = framebuffer_vk(raw->info.framebuffer),\n .queryFlags = 0,\n .pipelineStatistics = 0};\n\n begin_info.sType = VK_STRUCTURE_TYPE_COMMAND_BUFFER_BEGIN_INFO;\n begin_info.flags = VK_COMMAND_BUFFER_USAGE_RENDER_PASS_CONTINUE_BIT;\n begin_info.pInheritanceInfo = &inheritanceInfo;\n\n // Start recording\n }\n else if (raw->level == VK_COMMAND_BUFFER_LEVEL_PRIMARY)\n {\n begin_info.sType = VK_STRUCTURE_TYPE_COMMAND_BUFFER_BEGIN_INFO;\n begin_info.flags = 0;\n begin_info.pInheritanceInfo = NULL;\n }\n\n VkResult result = vkBeginCommandBuffer(raw->cmd, &begin_info);\n if (result != VK_SUCCESS)\n {\n LOG_E("Failed to start recording of command buffer");\n }\n raw->recording = true;\n}" ({) "{" (declaration) "Commandbuffer_raw* raw = handlepool_get_raw(&handlepool, commandbuffer);" (type_identifier) "Commandbuffer_raw" (init_declarator) "* raw = handlepool_get_raw(&handlepool, commandbuffer)" (pointer_declarator) "* raw" (*) "*" (identifier) "raw" (=) "=" (call_expression) "handlepool_get_raw(&handlepool, commandbuffer)" (identifier) "handlepool_get_raw" (argument_list) "(&handlepool, commandbuffer)" (() "(" (pointer_expression) "&handlepool" (&) "&" (identifier) "handlepool" (,) "," (identifier) "commandbuffer" ()) ")" (;) ";" (expression_statement) "vkResetCommandBuffer(raw->cmd, 0);" (call_expression) "vkResetCommandBuffer(raw->cmd, 0)" (identifier) "vkResetCommandBuffer" (argument_list) "(raw->cmd, 0)" (() "(" (field_expression) "raw->cmd" (identifier) "raw" (->) "->" (field_identifier) "cmd" (,) "," (number_literal) "0" ()) ")" (;) ";" (declaration) "VkCommandBufferBeginInfo begin_info = {0};" (type_identifier) "VkCommandBufferBeginInfo" (init_declarator) "begin_info = {0}" (identifier) "begin_info" (=) "=" (initializer_list) "{0}" ({) "{" (number_literal) "0" (}) "}" (;) ";" (declaration) "VkCommandBufferInheritanceInfo inheritanceInfo = (VkCommandBufferInheritanceInfo){0};" (type_identifier) "VkCommandBufferInheritanceInfo" (init_declarator) "inheritanceInfo = (VkCommandBufferInheritanceInfo){0}" (identifier) "inheritanceInfo" (=) "=" (compound_literal_expression) "(VkCommandBufferInheritanceInfo){0}" (() "(" (type_descriptor) "VkCommandBufferInheritanceInfo" (type_identifier) "VkCommandBufferInheritanceInfo" ()) ")" (initializer_list) "{0}" ({) "{" (number_literal) "0" (}) "}" (;) ";" (if_statement) "if (raw->level == VK_COMMAND_BUFFER_LEVEL_SECONDARY)\n {\n inheritanceInfo = (VkCommandBufferInheritanceInfo){\n .sType = VK_STRUCTURE_TYPE_COMMAND_BUFFER_INHERITANCE_INFO,\n .pNext = NULL,\n .renderPass = raw->info.renderPass,\n .subpass = 0,\n .framebuffer = framebuffer_vk(raw->info.framebuffer),\n .queryFlags = 0,\n .pipelineStatistics = 0};\n\n begin_info.sType = VK_STRUCTURE_TYPE_COMMAND_BUFFER_BEGIN_INFO;\n begin_info.flags = VK_COMMAND_BUFFER_USAGE_RENDER_PASS_CONTINUE_BIT;\n begin_info.pInheritanceInfo = &inheritanceInfo;\n\n // Start recording\n }\n else if (raw->level == VK_COMMAND_BUFFER_LEVEL_PRIMARY)\n {\n begin_info.sType = VK_STRUCTURE_TYPE_COMMAND_BUFFER_BEGIN_INFO;\n begin_info.flags = 0;\n begin_info.pInheritanceInfo = NULL;\n }" (if) "if" (parenthesized_expression) "(raw->level == VK_COMMAND_BUFFER_LEVEL_SECONDARY)" (() "(" (binary_expression) "raw->level == VK_COMMAND_BUFFER_LEVEL_SECONDARY" (field_expression) "raw->level" (identifier) "raw" (->) "->" (field_identifier) "level" (==) "==" (identifier) "VK_COMMAND_BUFFER_LEVEL_SECONDARY" ()) ")" (compound_statement) "{\n inheritanceInfo = (VkCommandBufferInheritanceInfo){\n .sType = VK_STRUCTURE_TYPE_COMMAND_BUFFER_INHERITANCE_INFO,\n .pNext = NULL,\n .renderPass = raw->info.renderPass,\n .subpass = 0,\n .framebuffer = framebuffer_vk(raw->info.framebuffer),\n .queryFlags = 0,\n .pipelineStatistics = 0};\n\n begin_info.sType = VK_STRUCTURE_TYPE_COMMAND_BUFFER_BEGIN_INFO;\n begin_info.flags = VK_COMMAND_BUFFER_USAGE_RENDER_PASS_CONTINUE_BIT;\n begin_info.pInheritanceInfo = &inheritanceInfo;\n\n // Start recording\n }" ({) "{" (expression_statement) "inheritanceInfo = (VkCommandBufferInheritanceInfo){\n .sType = VK_STRUCTURE_TYPE_COMMAND_BUFFER_INHERITANCE_INFO,\n .pNext = NULL,\n .renderPass = raw->info.renderPass,\n .subpass = 0,\n .framebuffer = framebuffer_vk(raw->info.framebuffer),\n .queryFlags = 0,\n .pipelineStatistics = 0};" (assignment_expression) "inheritanceInfo = (VkCommandBufferInheritanceInfo){\n .sType = VK_STRUCTURE_TYPE_COMMAND_BUFFER_INHERITANCE_INFO,\n .pNext = NULL,\n .renderPass = raw->info.renderPass,\n .subpass = 0,\n .framebuffer = framebuffer_vk(raw->info.framebuffer),\n .queryFlags = 0,\n .pipelineStatistics = 0}" (identifier) "inheritanceInfo" (=) "=" (compound_literal_expression) "(VkCommandBufferInheritanceInfo){\n .sType = VK_STRUCTURE_TYPE_COMMAND_BUFFER_INHERITANCE_INFO,\n .pNext = NULL,\n .renderPass = raw->info.renderPass,\n .subpass = 0,\n .framebuffer = framebuffer_vk(raw->info.framebuffer),\n .queryFlags = 0,\n .pipelineStatistics = 0}" (() "(" (type_descriptor) "VkCommandBufferInheritanceInfo" (type_identifier) "VkCommandBufferInheritanceInfo" ()) ")" (initializer_list) "{\n .sType = VK_STRUCTURE_TYPE_COMMAND_BUFFER_INHERITANCE_INFO,\n .pNext = NULL,\n .renderPass = raw->info.renderPass,\n .subpass = 0,\n .framebuffer = framebuffer_vk(raw->info.framebuffer),\n .queryFlags = 0,\n .pipelineStatistics = 0}" ({) "{" (initializer_pair) ".sType = VK_STRUCTURE_TYPE_COMMAND_BUFFER_INHERITANCE_INFO" (field_designator) ".sType" (.) "." (field_identifier) "sType" (=) "=" (identifier) "VK_STRUCTURE_TYPE_COMMAND_BUFFER_INHERITANCE_INFO" (,) "," (initializer_pair) ".pNext = NULL" (field_designator) ".pNext" (.) "." (field_identifier) "pNext" (=) "=" (null) "NULL" (NULL) "NULL" (,) "," (initializer_pair) ".renderPass = raw->info.renderPass" (field_designator) ".renderPass" (.) "." (field_identifier) "renderPass" (=) "=" (field_expression) "raw->info.renderPass" (field_expression) "raw->info" (identifier) "raw" (->) "->" (field_identifier) "info" (.) "." (field_identifier) "renderPass" (,) "," (initializer_pair) ".subpass = 0" (field_designator) ".subpass" (.) "." (field_identifier) "subpass" (=) "=" (number_literal) "0" (,) "," (initializer_pair) ".framebuffer = framebuffer_vk(raw->info.framebuffer)" (field_designator) ".framebuffer" (.) "." (field_identifier) "framebuffer" (=) "=" (call_expression) "framebuffer_vk(raw->info.framebuffer)" (identifier) "framebuffer_vk" (argument_list) "(raw->info.framebuffer)" (() "(" (field_expression) "raw->info.framebuffer" (field_expression) "raw->info" (identifier) "raw" (->) "->" (field_identifier) "info" (.) "." (field_identifier) "framebuffer" ()) ")" (,) "," (initializer_pair) ".queryFlags = 0" (field_designator) ".queryFlags" (.) "." (field_identifier) "queryFlags" (=) "=" (number_literal) "0" (,) "," (initializer_pair) ".pipelineStatistics = 0" (field_designator) ".pipelineStatistics" (.) "." (field_identifier) "pipelineStatistics" (=) "=" (number_literal) "0" (}) "}" (;) ";" (expression_statement) "begin_info.sType = VK_STRUCTURE_TYPE_COMMAND_BUFFER_BEGIN_INFO;" (assignment_expression) "begin_info.sType = VK_STRUCTURE_TYPE_COMMAND_BUFFER_BEGIN_INFO" (field_expression) "begin_info.sType" (identifier) "begin_info" (.) "." (field_identifier) "sType" (=) "=" (identifier) "VK_STRUCTURE_TYPE_COMMAND_BUFFER_BEGIN_INFO" (;) ";" (expression_statement) "begin_info.flags = VK_COMMAND_BUFFER_USAGE_RENDER_PASS_CONTINUE_BIT;" (assignment_expression) "begin_info.flags = VK_COMMAND_BUFFER_USAGE_RENDER_PASS_CONTINUE_BIT" (field_expression) "begin_info.flags" (identifier) "begin_info" (.) "." (field_identifier) "flags" (=) "=" (identifier) "VK_COMMAND_BUFFER_USAGE_RENDER_PASS_CONTINUE_BIT" (;) ";" (expression_statement) "begin_info.pInheritanceInfo = &inheritanceInfo;" (assignment_expression) "begin_info.pInheritanceInfo = &inheritanceInfo" (field_expression) "begin_info.pInheritanceInfo" (identifier) "begin_info" (.) "." (field_identifier) "pInheritanceInfo" (=) "=" (pointer_expression) "&inheritanceInfo" (&) "&" (identifier) "inheritanceInfo" (;) ";" (comment) "// Start recording" (}) "}" (else_clause) "else if (raw->level == VK_COMMAND_BUFFER_LEVEL_PRIMARY)\n {\n begin_info.sType = VK_STRUCTURE_TYPE_COMMAND_BUFFER_BEGIN_INFO;\n begin_info.flags = 0;\n begin_info.pInheritanceInfo = NULL;\n }" (else) "else" (if_statement) "if (raw->level == VK_COMMAND_BUFFER_LEVEL_PRIMARY)\n {\n begin_info.sType = VK_STRUCTURE_TYPE_COMMAND_BUFFER_BEGIN_INFO;\n begin_info.flags = 0;\n begin_info.pInheritanceInfo = NULL;\n }" (if) "if" (parenthesized_expression) "(raw->level == VK_COMMAND_BUFFER_LEVEL_PRIMARY)" (() "(" (binary_expression) "raw->level == VK_COMMAND_BUFFER_LEVEL_PRIMARY" (field_expression) "raw->level" (identifier) "raw" (->) "->" (field_identifier) "level" (==) "==" (identifier) "VK_COMMAND_BUFFER_LEVEL_PRIMARY" ()) ")" (compound_statement) "{\n begin_info.sType = VK_STRUCTURE_TYPE_COMMAND_BUFFER_BEGIN_INFO;\n begin_info.flags = 0;\n begin_info.pInheritanceInfo = NULL;\n }" ({) "{" (expression_statement) "begin_info.sType = VK_STRUCTURE_TYPE_COMMAND_BUFFER_BEGIN_INFO;" (assignment_expression) "begin_info.sType = VK_STRUCTURE_TYPE_COMMAND_BUFFER_BEGIN_INFO" (field_expression) "begin_info.sType" (identifier) "begin_info" (.) "." (field_identifier) "sType" (=) "=" (identifier) "VK_STRUCTURE_TYPE_COMMAND_BUFFER_BEGIN_INFO" (;) ";" (expression_statement) "begin_info.flags = 0;" (assignment_expression) "begin_info.flags = 0" (field_expression) "begin_info.flags" (identifier) "begin_info" (.) "." (field_identifier) "flags" (=) "=" (number_literal) "0" (;) ";" (expression_statement) "begin_info.pInheritanceInfo = NULL;" (assignment_expression) "begin_info.pInheritanceInfo = NULL" (field_expression) "begin_info.pInheritanceInfo" (identifier) "begin_info" (.) "." (field_identifier) "pInheritanceInfo" (=) "=" (null) "NULL" (NULL) "NULL" (;) ";" (}) "}" (declaration) "VkResult result = vkBeginCommandBuffer(raw->cmd, &begin_info);" (type_identifier) "VkResult" (init_declarator) "result = vkBeginCommandBuffer(raw->cmd, &begin_info)" (identifier) "result" (=) "=" (call_expression) "vkBeginCommandBuffer(raw->cmd, &begin_info)" (identifier) "vkBeginCommandBuffer" (argument_list) "(raw->cmd, &begin_info)" (() "(" (field_expression) "raw->cmd" (identifier) "raw" (->) "->" (field_identifier) "cmd" (,) "," (pointer_expression) "&begin_info" (&) "&" (identifier) "begin_info" ()) ")" (;) ";" (if_statement) "if (result != VK_SUCCESS)\n {\n LOG_E("Failed to start recording of command buffer");\n }" (if) "if" (parenthesized_expression) "(result != VK_SUCCESS)" (() "(" (binary_expression) "result != VK_SUCCESS" (identifier) "result" (!=) "!=" (identifier) "VK_SUCCESS" ()) ")" (compound_statement) "{\n LOG_E("Failed to start recording of command buffer");\n }" ({) "{" (expression_statement) "LOG_E("Failed to start recording of command buffer");" (call_expression) "LOG_E("Failed to start recording of command buffer")" (identifier) "LOG_E" (argument_list) "("Failed to start recording of command buffer")" (() "(" (string_literal) ""Failed to start recording of command buffer"" (") """ (string_content) "Failed to start recording of command buffer" (") """ ()) ")" (;) ";" (}) "}" (expression_statement) "raw->recording = true;" (assignment_expression) "raw->recording = true" (field_expression) "raw->recording" (identifier) "raw" (->) "->" (field_identifier) "recording" (=) "=" (true) "true" (;) ";" (}) "}" (comment) "// This will end recording of a primary or secondary command buffer" (function_definition) "void commandbuffer_end(Commandbuffer commandbuffer)\n{\n Commandbuffer_raw* raw = handlepool_get_raw(&handlepool, commandbuffer);\n\n vkEndCommandBuffer(raw->cmd);\n raw->recording = false;\n}" (primitive_type) "void" (function_declarator) "commandbuffer_end(Commandbuffer commandbuffer)" (identifier) "commandbuffer_end" (parameter_list) "(Commandbuffer commandbuffer)" (() "(" (parameter_declaration) "Commandbuffer commandbuffer" (type_identifier) "Commandbuffer" (identifier) "commandbuffer" ()) ")" (compound_statement) "{\n Commandbuffer_raw* raw = handlepool_get_raw(&handlepool, commandbuffer);\n\n vkEndCommandBuffer(raw->cmd);\n raw->recording = false;\n}" ({) "{" (declaration) "Commandbuffer_raw* raw = handlepool_get_raw(&handlepool, commandbuffer);" (type_identifier) "Commandbuffer_raw" (init_declarator) "* raw = handlepool_get_raw(&handlepool, commandbuffer)" (pointer_declarator) "* raw" (*) "*" (identifier) "raw" (=) "=" (call_expression) "handlepool_get_raw(&handlepool, commandbuffer)" (identifier) "handlepool_get_raw" (argument_list) "(&handlepool, commandbuffer)" (() "(" (pointer_expression) "&handlepool" (&) "&" (identifier) "handlepool" (,) "," (identifier) "commandbuffer" ()) ")" (;) ";" (expression_statement) "vkEndCommandBuffer(raw->cmd);" (call_expression) "vkEndCommandBuffer(raw->cmd)" (identifier) "vkEndCommandBuffer" (argument_list) "(raw->cmd)" (() "(" (field_expression) "raw->cmd" (identifier) "raw" (->) "->" (field_identifier) "cmd" ()) ")" (;) ";" (expression_statement) "raw->recording = false;" (assignment_expression) "raw->recording = false" (field_expression) "raw->recording" (identifier) "raw" (->) "->" (field_identifier) "recording" (=) "=" (false) "false" (;) ";" (}) "}" (function_definition) "void commandbuffer_submit(Commandbuffer commandbuffer)\n{\n Commandbuffer_raw* raw = handlepool_get_raw(&handlepool, commandbuffer);\n\n VkSubmitInfo submitInfo = {0};\n submitInfo.sType = VK_STRUCTURE_TYPE_SUBMIT_INFO;\n submitInfo.commandBufferCount = 1;\n submitInfo.pCommandBuffers = &raw->cmd;\n\n vkQueueSubmit(graphics_queue, 1, &submitInfo, VK_NULL_HANDLE);\n}" (primitive_type) "void" (function_declarator) "commandbuffer_submit(Commandbuffer commandbuffer)" (identifier) "commandbuffer_submit" (parameter_list) "(Commandbuffer commandbuffer)" (() "(" (parameter_declaration) "Commandbuffer commandbuffer" (type_identifier) "Commandbuffer" (identifier) "commandbuffer" ()) ")" (compound_statement) "{\n Commandbuffer_raw* raw = handlepool_get_raw(&handlepool, commandbuffer);\n\n VkSubmitInfo submitInfo = {0};\n submitInfo.sType = VK_STRUCTURE_TYPE_SUBMIT_INFO;\n submitInfo.commandBufferCount = 1;\n submitInfo.pCommandBuffers = &raw->cmd;\n\n vkQueueSubmit(graphics_queue, 1, &submitInfo, VK_NULL_HANDLE);\n}" ({) "{" (declaration) "Commandbuffer_raw* raw = handlepool_get_raw(&handlepool, commandbuffer);" (type_identifier) "Commandbuffer_raw" (init_declarator) "* raw = handlepool_get_raw(&handlepool, commandbuffer)" (pointer_declarator) "* raw" (*) "*" (identifier) "raw" (=) "=" (call_expression) "handlepool_get_raw(&handlepool, commandbuffer)" (identifier) "handlepool_get_raw" (argument_list) "(&handlepool, commandbuffer)" (() "(" (pointer_expression) "&handlepool" (&) "&" (identifier) "handlepool" (,) "," (identifier) "commandbuffer" ()) ")" (;) ";" (declaration) "VkSubmitInfo submitInfo = {0};" (type_identifier) "VkSubmitInfo" (init_declarator) "submitInfo = {0}" (identifier) "submitInfo" (=) "=" (initializer_list) "{0}" ({) "{" (number_literal) "0" (}) "}" (;) ";" (expression_statement) "submitInfo.sType = VK_STRUCTURE_TYPE_SUBMIT_INFO;" (assignment_expression) "submitInfo.sType = VK_STRUCTURE_TYPE_SUBMIT_INFO" (field_expression) "submitInfo.sType" (identifier) "submitInfo" (.) "." (field_identifier) "sType" (=) "=" (identifier) "VK_STRUCTURE_TYPE_SUBMIT_INFO" (;) ";" (expression_statement) "submitInfo.commandBufferCount = 1;" (assignment_expression) "submitInfo.commandBufferCount = 1" (field_expression) "submitInfo.commandBufferCount" (identifier) "submitInfo" (.) "." (field_identifier) "commandBufferCount" (=) "=" (number_literal) "1" (;) ";" (expression_statement) "submitInfo.pCommandBuffers = &raw->cmd;" (assignment_expression) "submitInfo.pCommandBuffers = &raw->cmd" (field_expression) "submitInfo.pCommandBuffers" (identifier) "submitInfo" (.) "." (field_identifier) "pCommandBuffers" (=) "=" (pointer_expression) "&raw->cmd" (&) "&" (field_expression) "raw->cmd" (identifier) "raw" (->) "->" (field_identifier) "cmd" (;) ";" (expression_statement) "vkQueueSubmit(graphics_queue, 1, &submitInfo, VK_NULL_HANDLE);" (call_expression) "vkQueueSubmit(graphics_queue, 1, &submitInfo, VK_NULL_HANDLE)" (identifier) "vkQueueSubmit" (argument_list) "(graphics_queue, 1, &submitInfo, VK_NULL_HANDLE)" (() "(" (identifier) "graphics_queue" (,) "," (number_literal) "1" (,) "," (pointer_expression) "&submitInfo" (&) "&" (identifier) "submitInfo" (,) "," (identifier) "VK_NULL_HANDLE" ()) ")" (;) ";" (}) "}" (function_definition) "VkCommandBuffer commandbuffer_vk(Commandbuffer commandbuffer)\n{\n Commandbuffer_raw* raw = handlepool_get_raw(&handlepool, commandbuffer);\n return raw->cmd;\n}" (type_identifier) "VkCommandBuffer" (function_declarator) "commandbuffer_vk(Commandbuffer commandbuffer)" (identifier) "commandbuffer_vk" (parameter_list) "(Commandbuffer commandbuffer)" (() "(" (parameter_declaration) "Commandbuffer commandbuffer" (type_identifier) "Commandbuffer" (identifier) "commandbuffer" ()) ")" (compound_statement) "{\n Commandbuffer_raw* raw = handlepool_get_raw(&handlepool, commandbuffer);\n return raw->cmd;\n}" ({) "{" (declaration) "Commandbuffer_raw* raw = handlepool_get_raw(&handlepool, commandbuffer);" (type_identifier) "Commandbuffer_raw" (init_declarator) "* raw = handlepool_get_raw(&handlepool, commandbuffer)" (pointer_declarator) "* raw" (*) "*" (identifier) "raw" (=) "=" (call_expression) "handlepool_get_raw(&handlepool, commandbuffer)" (identifier) "handlepool_get_raw" (argument_list) "(&handlepool, commandbuffer)" (() "(" (pointer_expression) "&handlepool" (&) "&" (identifier) "handlepool" (,) "," (identifier) "commandbuffer" ()) ")" (;) ";" (return_statement) "return raw->cmd;" (return) "return" (field_expression) "raw->cmd" (identifier) "raw" (->) "->" (field_identifier) "cmd" (;) ";" (}) "}" (function_definition) "VkFence commandbuffer_fence(Commandbuffer commandbuffer)\n{\n Commandbuffer_raw* raw = handlepool_get_raw(&handlepool, commandbuffer);\n return raw->fence;\n}" (type_identifier) "VkFence" (function_declarator) "commandbuffer_fence(Commandbuffer commandbuffer)" (identifier) "commandbuffer_fence" (parameter_list) "(Commandbuffer commandbuffer)" (() "(" (parameter_declaration) "Commandbuffer commandbuffer" (type_identifier) "Commandbuffer" (identifier) "commandbuffer" ()) ")" (compound_statement) "{\n Commandbuffer_raw* raw = handlepool_get_raw(&handlepool, commandbuffer);\n return raw->fence;\n}" ({) "{" (declaration) "Commandbuffer_raw* raw = handlepool_get_raw(&handlepool, commandbuffer);" (type_identifier) "Commandbuffer_raw" (init_declarator) "* raw = handlepool_get_raw(&handlepool, commandbuffer)" (pointer_declarator) "* raw" (*) "*" (identifier) "raw" (=) "=" (call_expression) "handlepool_get_raw(&handlepool, commandbuffer)" (identifier) "handlepool_get_raw" (argument_list) "(&handlepool, commandbuffer)" (() "(" (pointer_expression) "&handlepool" (&) "&" (identifier) "handlepool" (,) "," (identifier) "commandbuffer" ()) ")" (;) ";" (return_statement) "return raw->fence;" (return) "return" (field_expression) "raw->fence" (identifier) "raw" (->) "->" (field_identifier) "fence" (;) ";" (}) "}" (declaration) "static Commandbuffer destroy_queue = INVALID(Commandbuffer);" (storage_class_specifier) "static" (static) "static" (type_identifier) "Commandbuffer" (init_declarator) "destroy_queue = INVALID(Commandbuffer)" (identifier) "destroy_queue" (=) "=" (call_expression) "INVALID(Commandbuffer)" (identifier) "INVALID" (argument_list) "(Commandbuffer)" (() "(" (identifier) "Commandbuffer" ()) ")" (;) ";" (function_definition) "void commandbuffer_destroy(Commandbuffer commandbuffer)\n{\n Commandbuffer_raw* raw = handlepool_get_raw(&handlepool, commandbuffer);\n\n // Command buffer is in use\n if (raw->fence && vkGetFenceStatus(device, raw->fence) != VK_SUCCESS)\n {\n // Queue for destruction\n LOG_S("Command buffer is still in use, queueing");\n // Insert at head\n raw->next = destroy_queue;\n destroy_queue = commandbuffer;\n return;\n }\n\n // Not in use, destroy immediately\n if (raw->recording)\n vkEndCommandBuffer(raw->cmd);\n\n vkQueueWaitIdle(graphics_queue);\n\n vkFreeCommandBuffers(device, commandpools[raw->thread_idx], 1, &raw->cmd);\n if (raw->level == VK_COMMAND_BUFFER_LEVEL_PRIMARY)\n vkDestroyFence(device, raw->fence, NULL);\n\n handlepool_free(&handlepool, commandbuffer);\n}" (primitive_type) "void" (function_declarator) "commandbuffer_destroy(Commandbuffer commandbuffer)" (identifier) "commandbuffer_destroy" (parameter_list) "(Commandbuffer commandbuffer)" (() "(" (parameter_declaration) "Commandbuffer commandbuffer" (type_identifier) "Commandbuffer" (identifier) "commandbuffer" ()) ")" (compound_statement) "{\n Commandbuffer_raw* raw = handlepool_get_raw(&handlepool, commandbuffer);\n\n // Command buffer is in use\n if (raw->fence && vkGetFenceStatus(device, raw->fence) != VK_SUCCESS)\n {\n // Queue for destruction\n LOG_S("Command buffer is still in use, queueing");\n // Insert at head\n raw->next = destroy_queue;\n destroy_queue = commandbuffer;\n return;\n }\n\n // Not in use, destroy immediately\n if (raw->recording)\n vkEndCommandBuffer(raw->cmd);\n\n vkQueueWaitIdle(graphics_queue);\n\n vkFreeCommandBuffers(device, commandpools[raw->thread_idx], 1, &raw->cmd);\n if (raw->level == VK_COMMAND_BUFFER_LEVEL_PRIMARY)\n vkDestroyFence(device, raw->fence, NULL);\n\n handlepool_free(&handlepool, commandbuffer);\n}" ({) "{" (declaration) "Commandbuffer_raw* raw = handlepool_get_raw(&handlepool, commandbuffer);" (type_identifier) "Commandbuffer_raw" (init_declarator) "* raw = handlepool_get_raw(&handlepool, commandbuffer)" (pointer_declarator) "* raw" (*) "*" (identifier) "raw" (=) "=" (call_expression) "handlepool_get_raw(&handlepool, commandbuffer)" (identifier) "handlepool_get_raw" (argument_list) "(&handlepool, commandbuffer)" (() "(" (pointer_expression) "&handlepool" (&) "&" (identifier) "handlepool" (,) "," (identifier) "commandbuffer" ()) ")" (;) ";" (comment) "// Command buffer is in use" (if_statement) "if (raw->fence && vkGetFenceStatus(device, raw->fence) != VK_SUCCESS)\n {\n // Queue for destruction\n LOG_S("Command buffer is still in use, queueing");\n // Insert at head\n raw->next = destroy_queue;\n destroy_queue = commandbuffer;\n return;\n }" (if) "if" (parenthesized_expression) "(raw->fence && vkGetFenceStatus(device, raw->fence) != VK_SUCCESS)" (() "(" (binary_expression) "raw->fence && vkGetFenceStatus(device, raw->fence) != VK_SUCCESS" (field_expression) "raw->fence" (identifier) "raw" (->) "->" (field_identifier) "fence" (&&) "&&" (binary_expression) "vkGetFenceStatus(device, raw->fence) != VK_SUCCESS" (call_expression) "vkGetFenceStatus(device, raw->fence)" (identifier) "vkGetFenceStatus" (argument_list) "(device, raw->fence)" (() "(" (identifier) "device" (,) "," (field_expression) "raw->fence" (identifier) "raw" (->) "->" (field_identifier) "fence" ()) ")" (!=) "!=" (identifier) "VK_SUCCESS" ()) ")" (compound_statement) "{\n // Queue for destruction\n LOG_S("Command buffer is still in use, queueing");\n // Insert at head\n raw->next = destroy_queue;\n destroy_queue = commandbuffer;\n return;\n }" ({) "{" (comment) "// Queue for destruction" (expression_statement) "LOG_S("Command buffer is still in use, queueing");" (call_expression) "LOG_S("Command buffer is still in use, queueing")" (identifier) "LOG_S" (argument_list) "("Command buffer is still in use, queueing")" (() "(" (string_literal) ""Command buffer is still in use, queueing"" (") """ (string_content) "Command buffer is still in use, queueing" (") """ ()) ")" (;) ";" (comment) "// Insert at head" (expression_statement) "raw->next = destroy_queue;" (assignment_expression) "raw->next = destroy_queue" (field_expression) "raw->next" (identifier) "raw" (->) "->" (field_identifier) "next" (=) "=" (identifier) "destroy_queue" (;) ";" (expression_statement) "destroy_queue = commandbuffer;" (assignment_expression) "destroy_queue = commandbuffer" (identifier) "destroy_queue" (=) "=" (identifier) "commandbuffer" (;) ";" (return_statement) "return;" (return) "return" (;) ";" (}) "}" (comment) "// Not in use, destroy immediately" (if_statement) "if (raw->recording)\n vkEndCommandBuffer(raw->cmd);" (if) "if" (parenthesized_expression) "(raw->recording)" (() "(" (field_expression) "raw->recording" (identifier) "raw" (->) "->" (field_identifier) "recording" ()) ")" (expression_statement) "vkEndCommandBuffer(raw->cmd);" (call_expression) "vkEndCommandBuffer(raw->cmd)" (identifier) "vkEndCommandBuffer" (argument_list) "(raw->cmd)" (() "(" (field_expression) "raw->cmd" (identifier) "raw" (->) "->" (field_identifier) "cmd" ()) ")" (;) ";" (expression_statement) "vkQueueWaitIdle(graphics_queue);" (call_expression) "vkQueueWaitIdle(graphics_queue)" (identifier) "vkQueueWaitIdle" (argument_list) "(graphics_queue)" (() "(" (identifier) "graphics_queue" ()) ")" (;) ";" (expression_statement) "vkFreeCommandBuffers(device, commandpools[raw->thread_idx], 1, &raw->cmd);" (call_expression) "vkFreeCommandBuffers(device, commandpools[raw->thread_idx], 1, &raw->cmd)" (identifier) "vkFreeCommandBuffers" (argument_list) "(device, commandpools[raw->thread_idx], 1, &raw->cmd)" (() "(" (identifier) "device" (,) "," (subscript_expression) "commandpools[raw->thread_idx]" (identifier) "commandpools" ([) "[" (field_expression) "raw->thread_idx" (identifier) "raw" (->) "->" (field_identifier) "thread_idx" (]) "]" (,) "," (number_literal) "1" (,) "," (pointer_expression) "&raw->cmd" (&) "&" (field_expression) "raw->cmd" (identifier) "raw" (->) "->" (field_identifier) "cmd" ()) ")" (;) ";" (if_statement) "if (raw->level == VK_COMMAND_BUFFER_LEVEL_PRIMARY)\n vkDestroyFence(device, raw->fence, NULL);" (if) "if" (parenthesized_expression) "(raw->level == VK_COMMAND_BUFFER_LEVEL_PRIMARY)" (() "(" (binary_expression) "raw->level == VK_COMMAND_BUFFER_LEVEL_PRIMARY" (field_expression) "raw->level" (identifier) "raw" (->) "->" (field_identifier) "level" (==) "==" (identifier) "VK_COMMAND_BUFFER_LEVEL_PRIMARY" ()) ")" (expression_statement) "vkDestroyFence(device, raw->fence, NULL);" (call_expression) "vkDestroyFence(device, raw->fence, NULL)" (identifier) "vkDestroyFence" (argument_list) "(device, raw->fence, NULL)" (() "(" (identifier) "device" (,) "," (field_expression) "raw->fence" (identifier) "raw" (->) "->" (field_identifier) "fence" (,) "," (null) "NULL" (NULL) "NULL" ()) ")" (;) ";" (expression_statement) "handlepool_free(&handlepool, commandbuffer);" (call_expression) "handlepool_free(&handlepool, commandbuffer)" (identifier) "handlepool_free" (argument_list) "(&handlepool, commandbuffer)" (() "(" (pointer_expression) "&handlepool" (&) "&" (identifier) "handlepool" (,) "," (identifier) "commandbuffer" ()) ")" (;) ";" (}) "}" (function_definition) "uint32_t commandbuffer_handle_destructions()\n{\n Commandbuffer item = destroy_queue;\n Commandbuffer prev = INVALID(Commandbuffer);\n Commandbuffer next = INVALID(Commandbuffer);\n uint32_t destroyed = 0;\n while (HANDLE_VALID(item))\n {\n Commandbuffer_raw* raw = handlepool_get_raw(&handlepool, item);\n next = raw->next;\n if (vkGetFenceStatus(device, raw->fence) == VK_SUCCESS)\n {\n if (HANDLE_VALID(prev))\n {\n ((Commandbuffer_raw*)handlepool_get_raw(&handlepool, prev))->next = next;\n }\n // At head\n else\n {\n destroy_queue = next;\n }\n commandbuffer_destroy(item);\n ++destroyed;\n }\n item = next;\n }\n return destroyed;\n}" (primitive_type) "uint32_t" (function_declarator) "commandbuffer_handle_destructions()" (identifier) "commandbuffer_handle_destructions" (parameter_list) "()" (() "(" ()) ")" (compound_statement) "{\n Commandbuffer item = destroy_queue;\n Commandbuffer prev = INVALID(Commandbuffer);\n Commandbuffer next = INVALID(Commandbuffer);\n uint32_t destroyed = 0;\n while (HANDLE_VALID(item))\n {\n Commandbuffer_raw* raw = handlepool_get_raw(&handlepool, item);\n next = raw->next;\n if (vkGetFenceStatus(device, raw->fence) == VK_SUCCESS)\n {\n if (HANDLE_VALID(prev))\n {\n ((Commandbuffer_raw*)handlepool_get_raw(&handlepool, prev))->next = next;\n }\n // At head\n else\n {\n destroy_queue = next;\n }\n commandbuffer_destroy(item);\n ++destroyed;\n }\n item = next;\n }\n return destroyed;\n}" ({) "{" (declaration) "Commandbuffer item = destroy_queue;" (type_identifier) "Commandbuffer" (init_declarator) "item = destroy_queue" (identifier) "item" (=) "=" (identifier) "destroy_queue" (;) ";" (declaration) "Commandbuffer prev = INVALID(Commandbuffer);" (type_identifier) "Commandbuffer" (init_declarator) "prev = INVALID(Commandbuffer)" (identifier) "prev" (=) "=" (call_expression) "INVALID(Commandbuffer)" (identifier) "INVALID" (argument_list) "(Commandbuffer)" (() "(" (identifier) "Commandbuffer" ()) ")" (;) ";" (declaration) "Commandbuffer next = INVALID(Commandbuffer);" (type_identifier) "Commandbuffer" (init_declarator) "next = INVALID(Commandbuffer)" (identifier) "next" (=) "=" (call_expression) "INVALID(Commandbuffer)" (identifier) "INVALID" (argument_list) "(Commandbuffer)" (() "(" (identifier) "Commandbuffer" ()) ")" (;) ";" (declaration) "uint32_t destroyed = 0;" (primitive_type) "uint32_t" (init_declarator) "destroyed = 0" (identifier) "destroyed" (=) "=" (number_literal) "0" (;) ";" (while_statement) "while (HANDLE_VALID(item))\n {\n Commandbuffer_raw* raw = handlepool_get_raw(&handlepool, item);\n next = raw->next;\n if (vkGetFenceStatus(device, raw->fence) == VK_SUCCESS)\n {\n if (HANDLE_VALID(prev))\n {\n ((Commandbuffer_raw*)handlepool_get_raw(&handlepool, prev))->next = next;\n }\n // At head\n else\n {\n destroy_queue = next;\n }\n commandbuffer_destroy(item);\n ++destroyed;\n }\n item = next;\n }" (while) "while" (parenthesized_expression) "(HANDLE_VALID(item))" (() "(" (call_expression) "HANDLE_VALID(item)" (identifier) "HANDLE_VALID" (argument_list) "(item)" (() "(" (identifier) "item" ()) ")" ()) ")" (compound_statement) "{\n Commandbuffer_raw* raw = handlepool_get_raw(&handlepool, item);\n next = raw->next;\n if (vkGetFenceStatus(device, raw->fence) == VK_SUCCESS)\n {\n if (HANDLE_VALID(prev))\n {\n ((Commandbuffer_raw*)handlepool_get_raw(&handlepool, prev))->next = next;\n }\n // At head\n else\n {\n destroy_queue = next;\n }\n commandbuffer_destroy(item);\n ++destroyed;\n }\n item = next;\n }" ({) "{" (declaration) "Commandbuffer_raw* raw = handlepool_get_raw(&handlepool, item);" (type_identifier) "Commandbuffer_raw" (init_declarator) "* raw = handlepool_get_raw(&handlepool, item)" (pointer_declarator) "* raw" (*) "*" (identifier) "raw" (=) "=" (call_expression) "handlepool_get_raw(&handlepool, item)" (identifier) "handlepool_get_raw" (argument_list) "(&handlepool, item)" (() "(" (pointer_expression) "&handlepool" (&) "&" (identifier) "handlepool" (,) "," (identifier) "item" ()) ")" (;) ";" (expression_statement) "next = raw->next;" (assignment_expression) "next = raw->next" (identifier) "next" (=) "=" (field_expression) "raw->next" (identifier) "raw" (->) "->" (field_identifier) "next" (;) ";" (if_statement) "if (vkGetFenceStatus(device, raw->fence) == VK_SUCCESS)\n {\n if (HANDLE_VALID(prev))\n {\n ((Commandbuffer_raw*)handlepool_get_raw(&handlepool, prev))->next = next;\n }\n // At head\n else\n {\n destroy_queue = next;\n }\n commandbuffer_destroy(item);\n ++destroyed;\n }" (if) "if" (parenthesized_expression) "(vkGetFenceStatus(device, raw->fence) == VK_SUCCESS)" (() "(" (binary_expression) "vkGetFenceStatus(device, raw->fence) == VK_SUCCESS" (call_expression) "vkGetFenceStatus(device, raw->fence)" (identifier) "vkGetFenceStatus" (argument_list) "(device, raw->fence)" (() "(" (identifier) "device" (,) "," (field_expression) "raw->fence" (identifier) "raw" (->) "->" (field_identifier) "fence" ()) ")" (==) "==" (identifier) "VK_SUCCESS" ()) ")" (compound_statement) "{\n if (HANDLE_VALID(prev))\n {\n ((Commandbuffer_raw*)handlepool_get_raw(&handlepool, prev))->next = next;\n }\n // At head\n else\n {\n destroy_queue = next;\n }\n commandbuffer_destroy(item);\n ++destroyed;\n }" ({) "{" (if_statement) "if (HANDLE_VALID(prev))\n {\n ((Commandbuffer_raw*)handlepool_get_raw(&handlepool, prev))->next = next;\n }\n // At head\n else\n {\n destroy_queue = next;\n }" (if) "if" (parenthesized_expression) "(HANDLE_VALID(prev))" (() "(" (call_expression) "HANDLE_VALID(prev)" (identifier) "HANDLE_VALID" (argument_list) "(prev)" (() "(" (identifier) "prev" ()) ")" ()) ")" (compound_statement) "{\n ((Commandbuffer_raw*)handlepool_get_raw(&handlepool, prev))->next = next;\n }" ({) "{" (expression_statement) "((Commandbuffer_raw*)handlepool_get_raw(&handlepool, prev))->next = next;" (assignment_expression) "((Commandbuffer_raw*)handlepool_get_raw(&handlepool, prev))->next = next" (field_expression) "((Commandbuffer_raw*)handlepool_get_raw(&handlepool, prev))->next" (parenthesized_expression) "((Commandbuffer_raw*)handlepool_get_raw(&handlepool, prev))" (() "(" (cast_expression) "(Commandbuffer_raw*)handlepool_get_raw(&handlepool, prev)" (() "(" (type_descriptor) "Commandbuffer_raw*" (type_identifier) "Commandbuffer_raw" (abstract_pointer_declarator) "*" (*) "*" ()) ")" (call_expression) "handlepool_get_raw(&handlepool, prev)" (identifier) "handlepool_get_raw" (argument_list) "(&handlepool, prev)" (() "(" (pointer_expression) "&handlepool" (&) "&" (identifier) "handlepool" (,) "," (identifier) "prev" ()) ")" ()) ")" (->) "->" (field_identifier) "next" (=) "=" (identifier) "next" (;) ";" (}) "}" (comment) "// At head" (else_clause) "else\n {\n destroy_queue = next;\n }" (else) "else" (compound_statement) "{\n destroy_queue = next;\n }" ({) "{" (expression_statement) "destroy_queue = next;" (assignment_expression) "destroy_queue = next" (identifier) "destroy_queue" (=) "=" (identifier) "next" (;) ";" (}) "}" (expression_statement) "commandbuffer_destroy(item);" (call_expression) "commandbuffer_destroy(item)" (identifier) "commandbuffer_destroy" (argument_list) "(item)" (() "(" (identifier) "item" ()) ")" (;) ";" (expression_statement) "++destroyed;" (update_expression) "++destroyed" (++) "++" (identifier) "destroyed" (;) ";" (}) "}" (expression_statement) "item = next;" (assignment_expression) "item = next" (identifier) "item" (=) "=" (identifier) "next" (;) ";" (}) "}" (return_statement) "return destroyed;" (return) "return" (identifier) "destroyed" (;) ";" (}) "}" (function_definition) "void commandbuffer_destroy_pools()\n{\n for (uint32_t i = 0; i < RENDERER_MAX_THREADS; i++)\n {\n if (commandpools[i])\n {\n vkDestroyCommandPool(device, commandpools[i], NULL);\n commandpools[i] = NULL;\n }\n }\n}" (primitive_type) "void" (function_declarator) "commandbuffer_destroy_pools()" (identifier) "commandbuffer_destroy_pools" (parameter_list) "()" (() "(" ()) ")" (compound_statement) "{\n for (uint32_t i = 0; i < RENDERER_MAX_THREADS; i++)\n {\n if (commandpools[i])\n {\n vkDestroyCommandPool(device, commandpools[i], NULL);\n commandpools[i] = NULL;\n }\n }\n}" ({) "{" (for_statement) "for (uint32_t i = 0; i < RENDERER_MAX_THREADS; i++)\n {\n if (commandpools[i])\n {\n vkDestroyCommandPool(device, commandpools[i], NULL);\n commandpools[i] = NULL;\n }\n }" (for) "for" (() "(" (declaration) "uint32_t i = 0;" (primitive_type) "uint32_t" (init_declarator) "i = 0" (identifier) "i" (=) "=" (number_literal) "0" (;) ";" (binary_expression) "i < RENDERER_MAX_THREADS" (identifier) "i" (<) "<" (identifier) "RENDERER_MAX_THREADS" (;) ";" (update_expression) "i++" (identifier) "i" (++) "++" ()) ")" (compound_statement) "{\n if (commandpools[i])\n {\n vkDestroyCommandPool(device, commandpools[i], NULL);\n commandpools[i] = NULL;\n }\n }" ({) "{" (if_statement) "if (commandpools[i])\n {\n vkDestroyCommandPool(device, commandpools[i], NULL);\n commandpools[i] = NULL;\n }" (if) "if" (parenthesized_expression) "(commandpools[i])" (() "(" (subscript_expression) "commandpools[i]" (identifier) "commandpools" ([) "[" (identifier) "i" (]) "]" ()) ")" (compound_statement) "{\n vkDestroyCommandPool(device, commandpools[i], NULL);\n commandpools[i] = NULL;\n }" ({) "{" (expression_statement) "vkDestroyCommandPool(device, commandpools[i], NULL);" (call_expression) "vkDestroyCommandPool(device, commandpools[i], NULL)" (identifier) "vkDestroyCommandPool" (argument_list) "(device, commandpools[i], NULL)" (() "(" (identifier) "device" (,) "," (subscript_expression) "commandpools[i]" (identifier) "commandpools" ([) "[" (identifier) "i" (]) "]" (,) "," (null) "NULL" (NULL) "NULL" ()) ")" (;) ";" (expression_statement) "commandpools[i] = NULL;" (assignment_expression) "commandpools[i] = NULL" (subscript_expression) "commandpools[i]" (identifier) "commandpools" ([) "[" (identifier) "i" (]) "]" (=) "=" (null) "NULL" (NULL) "NULL" (;) ";" (}) "}" (}) "}" (}) "}"
2,030
0
{"language": "c", "success": true, "metadata": {"lines": 257, "avg_line_length": 32.84, "nodes": 1227, "errors": 0, "source_hash": "8884beb8289b79d7855270ae1adb67fa5def159cb8a82caee5223fc0589216a8", "categorized_nodes": 925}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#include \"graphics/commandbuffer.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": "\"graphics/commandbuffer.h\"", "parent": 0, "children": [], "start_point": {"row": 0, "column": 9}, "end_point": {"row": 0, "column": 35}}, {"id": 3, "type": "preproc_include", "text": "#include \"graphics/vulkan_members.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": "\"graphics/vulkan_members.h\"", "parent": 3, "children": [], "start_point": {"row": 1, "column": 9}, "end_point": {"row": 1, "column": 36}}, {"id": 6, "type": "preproc_include", "text": "#include \"mempool.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": "\"mempool.h\"", "parent": 6, "children": [], "start_point": {"row": 2, "column": 9}, "end_point": {"row": 2, "column": 20}}, {"id": 9, "type": "preproc_include", "text": "#include \"magpie.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": "\"magpie.h\"", "parent": 9, "children": [], "start_point": {"row": 3, "column": 9}, "end_point": {"row": 3, "column": 19}}, {"id": 12, "type": "preproc_include", "text": "#include \"log.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": "\"log.h\"", "parent": 12, "children": [], "start_point": {"row": 4, "column": 9}, "end_point": {"row": 4, "column": 16}}, {"id": 15, "type": "preproc_include", "text": "#include \"handlepool.h\"\n", "parent": null, "children": [16, 17], "start_point": {"row": 5, "column": 0}, "end_point": {"row": 6, "column": 0}}, {"id": 16, "type": "#include", "text": "#include", "parent": 15, "children": [], "start_point": {"row": 5, "column": 0}, "end_point": {"row": 5, "column": 8}}, {"id": 17, "type": "string_literal", "text": "\"handlepool.h\"", "parent": 15, "children": [], "start_point": {"row": 5, "column": 9}, "end_point": {"row": 5, "column": 23}}, {"id": 18, "type": "declaration", "text": "static VkCommandPool commandpools[RENDERER_MAX_THREADS] = {0};", "parent": null, "children": [19, 20], "start_point": {"row": 7, "column": 0}, "end_point": {"row": 7, "column": 62}}, {"id": 19, "type": "type_identifier", "text": "VkCommandPool", "parent": 18, "children": [], "start_point": {"row": 7, "column": 7}, "end_point": {"row": 7, "column": 20}}, {"id": 20, "type": "init_declarator", "text": "commandpools[RENDERER_MAX_THREADS] = {0}", "parent": 18, "children": [21, 24, 25], "start_point": {"row": 7, "column": 21}, "end_point": {"row": 7, "column": 61}}, {"id": 21, "type": "array_declarator", "text": "commandpools[RENDERER_MAX_THREADS]", "parent": 20, "children": [22, 23], "start_point": {"row": 7, "column": 21}, "end_point": {"row": 7, "column": 55}}, {"id": 22, "type": "identifier", "text": "commandpools", "parent": 21, "children": [], "start_point": {"row": 7, "column": 21}, "end_point": {"row": 7, "column": 33}}, {"id": 23, "type": "identifier", "text": "RENDERER_MAX_THREADS", "parent": 21, "children": [], "start_point": {"row": 7, "column": 34}, "end_point": {"row": 7, "column": 54}}, {"id": 24, "type": "=", "text": "=", "parent": 20, "children": [], "start_point": {"row": 7, "column": 56}, "end_point": {"row": 7, "column": 57}}, {"id": 25, "type": "initializer_list", "text": "{0}", "parent": 20, "children": [26], "start_point": {"row": 7, "column": 58}, "end_point": {"row": 7, "column": 61}}, {"id": 26, "type": "number_literal", "text": "0", "parent": 25, "children": [], "start_point": {"row": 7, "column": 59}, "end_point": {"row": 7, "column": 60}}, {"id": 27, "type": "type_definition", "text": "typedef struct\n{\n\t// One command buffer for each frame\n\tVkCommandBuffer cmd;\n\tVkCommandBufferLevel level;\n\n\t// The fence that gets signaled when command buffer is complete\n\tVkFence fence;\n\t// Signifies which pool it was allocated from\n\t// Should not be changed\n\tuint8_t thread_idx;\n\tbool recording;\n\tstruct\n\t{\n\t\tFramebuffer framebuffer;\n\t\tVkRenderPass renderPass;\n\t} info;\n\t// If in destroy queue\n\tCommandbuffer next;\n} Commandbuffer_raw;", "parent": null, "children": [28, 29, 59], "start_point": {"row": 9, "column": 0}, "end_point": {"row": 28, "column": 20}}, {"id": 28, "type": "typedef", "text": "typedef", "parent": 27, "children": [], "start_point": {"row": 9, "column": 0}, "end_point": {"row": 9, "column": 7}}, {"id": 29, "type": "struct_specifier", "text": "struct\n{\n\t// One command buffer for each frame\n\tVkCommandBuffer cmd;\n\tVkCommandBufferLevel level;\n\n\t// The fence that gets signaled when command buffer is complete\n\tVkFence fence;\n\t// Signifies which pool it was allocated from\n\t// Should not be changed\n\tuint8_t thread_idx;\n\tbool recording;\n\tstruct\n\t{\n\t\tFramebuffer framebuffer;\n\t\tVkRenderPass renderPass;\n\t} info;\n\t// If in destroy queue\n\tCommandbuffer next;\n}", "parent": 27, "children": [30], "start_point": {"row": 9, "column": 8}, "end_point": {"row": 28, "column": 1}}, {"id": 30, "type": "struct", "text": "struct", "parent": 29, "children": [], "start_point": {"row": 9, "column": 8}, "end_point": {"row": 9, "column": 14}}, {"id": 31, "type": "field_declaration", "text": "VkCommandBuffer cmd;", "parent": 29, "children": [32, 33], "start_point": {"row": 12, "column": 1}, "end_point": {"row": 12, "column": 21}}, {"id": 32, "type": "type_identifier", "text": "VkCommandBuffer", "parent": 31, "children": [], "start_point": {"row": 12, "column": 1}, "end_point": {"row": 12, "column": 16}}, {"id": 33, "type": "field_identifier", "text": "cmd", "parent": 31, "children": [], "start_point": {"row": 12, "column": 17}, "end_point": {"row": 12, "column": 20}}, {"id": 34, "type": "field_declaration", "text": "VkCommandBufferLevel level;", "parent": 29, "children": [35, 36], "start_point": {"row": 13, "column": 1}, "end_point": {"row": 13, "column": 28}}, {"id": 35, "type": "type_identifier", "text": "VkCommandBufferLevel", "parent": 34, "children": [], "start_point": {"row": 13, "column": 1}, "end_point": {"row": 13, "column": 21}}, {"id": 36, "type": "field_identifier", "text": "level", "parent": 34, "children": [], "start_point": {"row": 13, "column": 22}, "end_point": {"row": 13, "column": 27}}, {"id": 37, "type": "field_declaration", "text": "VkFence fence;", "parent": 29, "children": [38, 39], "start_point": {"row": 16, "column": 1}, "end_point": {"row": 16, "column": 15}}, {"id": 38, "type": "type_identifier", "text": "VkFence", "parent": 37, "children": [], "start_point": {"row": 16, "column": 1}, "end_point": {"row": 16, "column": 8}}, {"id": 39, "type": "field_identifier", "text": "fence", "parent": 37, "children": [], "start_point": {"row": 16, "column": 9}, "end_point": {"row": 16, "column": 14}}, {"id": 40, "type": "field_declaration", "text": "uint8_t thread_idx;", "parent": 29, "children": [41, 42], "start_point": {"row": 19, "column": 1}, "end_point": {"row": 19, "column": 20}}, {"id": 41, "type": "primitive_type", "text": "uint8_t", "parent": 40, "children": [], "start_point": {"row": 19, "column": 1}, "end_point": {"row": 19, "column": 8}}, {"id": 42, "type": "field_identifier", "text": "thread_idx", "parent": 40, "children": [], "start_point": {"row": 19, "column": 9}, "end_point": {"row": 19, "column": 19}}, {"id": 43, "type": "field_declaration", "text": "bool recording;", "parent": 29, "children": [44, 45], "start_point": {"row": 20, "column": 1}, "end_point": {"row": 20, "column": 16}}, {"id": 44, "type": "primitive_type", "text": "bool", "parent": 43, "children": [], "start_point": {"row": 20, "column": 1}, "end_point": {"row": 20, "column": 5}}, {"id": 45, "type": "field_identifier", "text": "recording", "parent": 43, "children": [], "start_point": {"row": 20, "column": 6}, "end_point": {"row": 20, "column": 15}}, {"id": 46, "type": "field_declaration", "text": "struct\n\t{\n\t\tFramebuffer framebuffer;\n\t\tVkRenderPass renderPass;\n\t} info;", "parent": 29, "children": [47, 55], "start_point": {"row": 21, "column": 1}, "end_point": {"row": 25, "column": 8}}, {"id": 47, "type": "struct_specifier", "text": "struct\n\t{\n\t\tFramebuffer framebuffer;\n\t\tVkRenderPass renderPass;\n\t}", "parent": 46, "children": [48], "start_point": {"row": 21, "column": 1}, "end_point": {"row": 25, "column": 2}}, {"id": 48, "type": "struct", "text": "struct", "parent": 47, "children": [], "start_point": {"row": 21, "column": 1}, "end_point": {"row": 21, "column": 7}}, {"id": 49, "type": "field_declaration", "text": "Framebuffer framebuffer;", "parent": 47, "children": [50, 51], "start_point": {"row": 23, "column": 2}, "end_point": {"row": 23, "column": 26}}, {"id": 50, "type": "type_identifier", "text": "Framebuffer", "parent": 49, "children": [], "start_point": {"row": 23, "column": 2}, "end_point": {"row": 23, "column": 13}}, {"id": 51, "type": "field_identifier", "text": "framebuffer", "parent": 49, "children": [], "start_point": {"row": 23, "column": 14}, "end_point": {"row": 23, "column": 25}}, {"id": 52, "type": "field_declaration", "text": "VkRenderPass renderPass;", "parent": 47, "children": [53, 54], "start_point": {"row": 24, "column": 2}, "end_point": {"row": 24, "column": 26}}, {"id": 53, "type": "type_identifier", "text": "VkRenderPass", "parent": 52, "children": [], "start_point": {"row": 24, "column": 2}, "end_point": {"row": 24, "column": 14}}, {"id": 54, "type": "field_identifier", "text": "renderPass", "parent": 52, "children": [], "start_point": {"row": 24, "column": 15}, "end_point": {"row": 24, "column": 25}}, {"id": 55, "type": "field_identifier", "text": "info", "parent": 46, "children": [], "start_point": {"row": 25, "column": 3}, "end_point": {"row": 25, "column": 7}}, {"id": 56, "type": "field_declaration", "text": "Commandbuffer next;", "parent": 29, "children": [57, 58], "start_point": {"row": 27, "column": 1}, "end_point": {"row": 27, "column": 20}}, {"id": 57, "type": "type_identifier", "text": "Commandbuffer", "parent": 56, "children": [], "start_point": {"row": 27, "column": 1}, "end_point": {"row": 27, "column": 14}}, {"id": 58, "type": "field_identifier", "text": "next", "parent": 56, "children": [], "start_point": {"row": 27, "column": 15}, "end_point": {"row": 27, "column": 19}}, {"id": 59, "type": "type_identifier", "text": "Commandbuffer_raw", "parent": 27, "children": [], "start_point": {"row": 28, "column": 2}, "end_point": {"row": 28, "column": 19}}, {"id": 60, "type": "declaration", "text": "static handlepool_t handlepool = HANDLEPOOL_INIT(sizeof(Commandbuffer_raw), \"Commandbuffer\");", "parent": null, "children": [61, 62], "start_point": {"row": 30, "column": 0}, "end_point": {"row": 30, "column": 93}}, {"id": 61, "type": "type_identifier", "text": "handlepool_t", "parent": 60, "children": [], "start_point": {"row": 30, "column": 7}, "end_point": {"row": 30, "column": 19}}, {"id": 62, "type": "init_declarator", "text": "handlepool = HANDLEPOOL_INIT(sizeof(Commandbuffer_raw), \"Commandbuffer\")", "parent": 60, "children": [63, 64, 65], "start_point": {"row": 30, "column": 20}, "end_point": {"row": 30, "column": 92}}, {"id": 63, "type": "identifier", "text": "handlepool", "parent": 62, "children": [], "start_point": {"row": 30, "column": 20}, "end_point": {"row": 30, "column": 30}}, {"id": 64, "type": "=", "text": "=", "parent": 62, "children": [], "start_point": {"row": 30, "column": 31}, "end_point": {"row": 30, "column": 32}}, {"id": 65, "type": "call_expression", "text": "HANDLEPOOL_INIT(sizeof(Commandbuffer_raw), \"Commandbuffer\")", "parent": 62, "children": [66, 67], "start_point": {"row": 30, "column": 33}, "end_point": {"row": 30, "column": 92}}, {"id": 66, "type": "identifier", "text": "HANDLEPOOL_INIT", "parent": 65, "children": [], "start_point": {"row": 30, "column": 33}, "end_point": {"row": 30, "column": 48}}, {"id": 67, "type": "argument_list", "text": "(sizeof(Commandbuffer_raw), \"Commandbuffer\")", "parent": 65, "children": [68, 71], "start_point": {"row": 30, "column": 48}, "end_point": {"row": 30, "column": 92}}, {"id": 68, "type": "sizeof_expression", "text": "sizeof(Commandbuffer_raw)", "parent": 67, "children": [69], "start_point": {"row": 30, "column": 49}, "end_point": {"row": 30, "column": 74}}, {"id": 69, "type": "parenthesized_expression", "text": "(Commandbuffer_raw)", "parent": 68, "children": [70], "start_point": {"row": 30, "column": 55}, "end_point": {"row": 30, "column": 74}}, {"id": 70, "type": "identifier", "text": "Commandbuffer_raw", "parent": 69, "children": [], "start_point": {"row": 30, "column": 56}, "end_point": {"row": 30, "column": 73}}, {"id": 71, "type": "string_literal", "text": "\"Commandbuffer\"", "parent": 67, "children": [], "start_point": {"row": 30, "column": 76}, "end_point": {"row": 30, "column": 91}}, {"id": 72, "type": "function_definition", "text": "static int commandpool_create(uint8_t thread_idx)\n{\n\tQueueFamilies queueFamilyIndices = get_queue_families(physical_device);\n\n\tVkCommandPoolCreateInfo poolInfo = {0};\n\tpoolInfo.sType = VK_STRUCTURE_TYPE_COMMAND_POOL_CREATE_INFO;\n\tpoolInfo.queueFamilyIndex = queueFamilyIndices.graphics;\n\t// Enables the renderer to individually reset command buffers\n\tpoolInfo.flags = VK_COMMAND_POOL_CREATE_RESET_COMMAND_BUFFER_BIT; // Optional\n\tVkResult result = vkCreateCommandPool(device, &poolInfo, NULL, &commandpools[thread_idx]);\n\tif (result != VK_SUCCESS)\n\t{\n\t\tLOG_E(\"Failed to create command pool - code %d\", result);\n\t\treturn -1;\n\t}\n\treturn 0;\n}", "parent": null, "children": [73, 74], "start_point": {"row": 32, "column": 0}, "end_point": {"row": 48, "column": 1}}, {"id": 73, "type": "primitive_type", "text": "int", "parent": 72, "children": [], "start_point": {"row": 32, "column": 7}, "end_point": {"row": 32, "column": 10}}, {"id": 74, "type": "function_declarator", "text": "commandpool_create(uint8_t thread_idx)", "parent": 72, "children": [75, 76], "start_point": {"row": 32, "column": 11}, "end_point": {"row": 32, "column": 49}}, {"id": 75, "type": "identifier", "text": "commandpool_create", "parent": 74, "children": [], "start_point": {"row": 32, "column": 11}, "end_point": {"row": 32, "column": 29}}, {"id": 76, "type": "parameter_list", "text": "(uint8_t thread_idx)", "parent": 74, "children": [77], "start_point": {"row": 32, "column": 29}, "end_point": {"row": 32, "column": 49}}, {"id": 77, "type": "parameter_declaration", "text": "uint8_t thread_idx", "parent": 76, "children": [78, 79], "start_point": {"row": 32, "column": 30}, "end_point": {"row": 32, "column": 48}}, {"id": 78, "type": "primitive_type", "text": "uint8_t", "parent": 77, "children": [], "start_point": {"row": 32, "column": 30}, "end_point": {"row": 32, "column": 37}}, {"id": 79, "type": "identifier", "text": "thread_idx", "parent": 77, "children": [], "start_point": {"row": 32, "column": 38}, "end_point": {"row": 32, "column": 48}}, {"id": 80, "type": "declaration", "text": "QueueFamilies queueFamilyIndices = get_queue_families(physical_device);", "parent": 72, "children": [81, 82], "start_point": {"row": 34, "column": 1}, "end_point": {"row": 34, "column": 72}}, {"id": 81, "type": "type_identifier", "text": "QueueFamilies", "parent": 80, "children": [], "start_point": {"row": 34, "column": 1}, "end_point": {"row": 34, "column": 14}}, {"id": 82, "type": "init_declarator", "text": "queueFamilyIndices = get_queue_families(physical_device)", "parent": 80, "children": [83, 84, 85], "start_point": {"row": 34, "column": 15}, "end_point": {"row": 34, "column": 71}}, {"id": 83, "type": "identifier", "text": "queueFamilyIndices", "parent": 82, "children": [], "start_point": {"row": 34, "column": 15}, "end_point": {"row": 34, "column": 33}}, {"id": 84, "type": "=", "text": "=", "parent": 82, "children": [], "start_point": {"row": 34, "column": 34}, "end_point": {"row": 34, "column": 35}}, {"id": 85, "type": "call_expression", "text": "get_queue_families(physical_device)", "parent": 82, "children": [86, 87], "start_point": {"row": 34, "column": 36}, "end_point": {"row": 34, "column": 71}}, {"id": 86, "type": "identifier", "text": "get_queue_families", "parent": 85, "children": [], "start_point": {"row": 34, "column": 36}, "end_point": {"row": 34, "column": 54}}, {"id": 87, "type": "argument_list", "text": "(physical_device)", "parent": 85, "children": [88], "start_point": {"row": 34, "column": 54}, "end_point": {"row": 34, "column": 71}}, {"id": 88, "type": "identifier", "text": "physical_device", "parent": 87, "children": [], "start_point": {"row": 34, "column": 55}, "end_point": {"row": 34, "column": 70}}, {"id": 89, "type": "declaration", "text": "VkCommandPoolCreateInfo poolInfo = {0};", "parent": 72, "children": [90, 91], "start_point": {"row": 36, "column": 1}, "end_point": {"row": 36, "column": 40}}, {"id": 90, "type": "type_identifier", "text": "VkCommandPoolCreateInfo", "parent": 89, "children": [], "start_point": {"row": 36, "column": 1}, "end_point": {"row": 36, "column": 24}}, {"id": 91, "type": "init_declarator", "text": "poolInfo = {0}", "parent": 89, "children": [92, 93, 94], "start_point": {"row": 36, "column": 25}, "end_point": {"row": 36, "column": 39}}, {"id": 92, "type": "identifier", "text": "poolInfo", "parent": 91, "children": [], "start_point": {"row": 36, "column": 25}, "end_point": {"row": 36, "column": 33}}, {"id": 93, "type": "=", "text": "=", "parent": 91, "children": [], "start_point": {"row": 36, "column": 34}, "end_point": {"row": 36, "column": 35}}, {"id": 94, "type": "initializer_list", "text": "{0}", "parent": 91, "children": [95], "start_point": {"row": 36, "column": 36}, "end_point": {"row": 36, "column": 39}}, {"id": 95, "type": "number_literal", "text": "0", "parent": 94, "children": [], "start_point": {"row": 36, "column": 37}, "end_point": {"row": 36, "column": 38}}, {"id": 96, "type": "assignment_expression", "text": "poolInfo.sType = VK_STRUCTURE_TYPE_COMMAND_POOL_CREATE_INFO", "parent": 72, "children": [97, 100, 101], "start_point": {"row": 37, "column": 1}, "end_point": {"row": 37, "column": 60}}, {"id": 97, "type": "field_expression", "text": "poolInfo.sType", "parent": 96, "children": [98, 99], "start_point": {"row": 37, "column": 1}, "end_point": {"row": 37, "column": 15}}, {"id": 98, "type": "identifier", "text": "poolInfo", "parent": 97, "children": [], "start_point": {"row": 37, "column": 1}, "end_point": {"row": 37, "column": 9}}, {"id": 99, "type": "field_identifier", "text": "sType", "parent": 97, "children": [], "start_point": {"row": 37, "column": 10}, "end_point": {"row": 37, "column": 15}}, {"id": 100, "type": "=", "text": "=", "parent": 96, "children": [], "start_point": {"row": 37, "column": 16}, "end_point": {"row": 37, "column": 17}}, {"id": 101, "type": "identifier", "text": "VK_STRUCTURE_TYPE_COMMAND_POOL_CREATE_INFO", "parent": 96, "children": [], "start_point": {"row": 37, "column": 18}, "end_point": {"row": 37, "column": 60}}, {"id": 102, "type": "assignment_expression", "text": "poolInfo.queueFamilyIndex = queueFamilyIndices.graphics", "parent": 72, "children": [103, 106, 107], "start_point": {"row": 38, "column": 1}, "end_point": {"row": 38, "column": 56}}, {"id": 103, "type": "field_expression", "text": "poolInfo.queueFamilyIndex", "parent": 102, "children": [104, 105], "start_point": {"row": 38, "column": 1}, "end_point": {"row": 38, "column": 26}}, {"id": 104, "type": "identifier", "text": "poolInfo", "parent": 103, "children": [], "start_point": {"row": 38, "column": 1}, "end_point": {"row": 38, "column": 9}}, {"id": 105, "type": "field_identifier", "text": "queueFamilyIndex", "parent": 103, "children": [], "start_point": {"row": 38, "column": 10}, "end_point": {"row": 38, "column": 26}}, {"id": 106, "type": "=", "text": "=", "parent": 102, "children": [], "start_point": {"row": 38, "column": 27}, "end_point": {"row": 38, "column": 28}}, {"id": 107, "type": "field_expression", "text": "queueFamilyIndices.graphics", "parent": 102, "children": [108, 109], "start_point": {"row": 38, "column": 29}, "end_point": {"row": 38, "column": 56}}, {"id": 108, "type": "identifier", "text": "queueFamilyIndices", "parent": 107, "children": [], "start_point": {"row": 38, "column": 29}, "end_point": {"row": 38, "column": 47}}, {"id": 109, "type": "field_identifier", "text": "graphics", "parent": 107, "children": [], "start_point": {"row": 38, "column": 48}, "end_point": {"row": 38, "column": 56}}, {"id": 110, "type": "assignment_expression", "text": "poolInfo.flags = VK_COMMAND_POOL_CREATE_RESET_COMMAND_BUFFER_BIT", "parent": 72, "children": [111, 114, 115], "start_point": {"row": 40, "column": 1}, "end_point": {"row": 40, "column": 65}}, {"id": 111, "type": "field_expression", "text": "poolInfo.flags", "parent": 110, "children": [112, 113], "start_point": {"row": 40, "column": 1}, "end_point": {"row": 40, "column": 15}}, {"id": 112, "type": "identifier", "text": "poolInfo", "parent": 111, "children": [], "start_point": {"row": 40, "column": 1}, "end_point": {"row": 40, "column": 9}}, {"id": 113, "type": "field_identifier", "text": "flags", "parent": 111, "children": [], "start_point": {"row": 40, "column": 10}, "end_point": {"row": 40, "column": 15}}, {"id": 114, "type": "=", "text": "=", "parent": 110, "children": [], "start_point": {"row": 40, "column": 16}, "end_point": {"row": 40, "column": 17}}, {"id": 115, "type": "identifier", "text": "VK_COMMAND_POOL_CREATE_RESET_COMMAND_BUFFER_BIT", "parent": 110, "children": [], "start_point": {"row": 40, "column": 18}, "end_point": {"row": 40, "column": 65}}, {"id": 116, "type": "declaration", "text": "VkResult result = vkCreateCommandPool(device, &poolInfo, NULL, &commandpools[thread_idx]);", "parent": 72, "children": [117, 118], "start_point": {"row": 41, "column": 1}, "end_point": {"row": 41, "column": 91}}, {"id": 117, "type": "type_identifier", "text": "VkResult", "parent": 116, "children": [], "start_point": {"row": 41, "column": 1}, "end_point": {"row": 41, "column": 9}}, {"id": 118, "type": "init_declarator", "text": "result = vkCreateCommandPool(device, &poolInfo, NULL, &commandpools[thread_idx])", "parent": 116, "children": [119, 120, 121], "start_point": {"row": 41, "column": 10}, "end_point": {"row": 41, "column": 90}}, {"id": 119, "type": "identifier", "text": "result", "parent": 118, "children": [], "start_point": {"row": 41, "column": 10}, "end_point": {"row": 41, "column": 16}}, {"id": 120, "type": "=", "text": "=", "parent": 118, "children": [], "start_point": {"row": 41, "column": 17}, "end_point": {"row": 41, "column": 18}}, {"id": 121, "type": "call_expression", "text": "vkCreateCommandPool(device, &poolInfo, NULL, &commandpools[thread_idx])", "parent": 118, "children": [122, 123], "start_point": {"row": 41, "column": 19}, "end_point": {"row": 41, "column": 90}}, {"id": 122, "type": "identifier", "text": "vkCreateCommandPool", "parent": 121, "children": [], "start_point": {"row": 41, "column": 19}, "end_point": {"row": 41, "column": 38}}, {"id": 123, "type": "argument_list", "text": "(device, &poolInfo, NULL, &commandpools[thread_idx])", "parent": 121, "children": [124, 125, 127, 129], "start_point": {"row": 41, "column": 38}, "end_point": {"row": 41, "column": 90}}, {"id": 124, "type": "identifier", "text": "device", "parent": 123, "children": [], "start_point": {"row": 41, "column": 39}, "end_point": {"row": 41, "column": 45}}, {"id": 125, "type": "pointer_expression", "text": "&poolInfo", "parent": 123, "children": [126], "start_point": {"row": 41, "column": 47}, "end_point": {"row": 41, "column": 56}}, {"id": 126, "type": "identifier", "text": "poolInfo", "parent": 125, "children": [], "start_point": {"row": 41, "column": 48}, "end_point": {"row": 41, "column": 56}}, {"id": 127, "type": "null", "text": "NULL", "parent": 123, "children": [128], "start_point": {"row": 41, "column": 58}, "end_point": {"row": 41, "column": 62}}, {"id": 128, "type": "NULL", "text": "NULL", "parent": 127, "children": [], "start_point": {"row": 41, "column": 58}, "end_point": {"row": 41, "column": 62}}, {"id": 129, "type": "pointer_expression", "text": "&commandpools[thread_idx]", "parent": 123, "children": [130], "start_point": {"row": 41, "column": 64}, "end_point": {"row": 41, "column": 89}}, {"id": 130, "type": "subscript_expression", "text": "commandpools[thread_idx]", "parent": 129, "children": [131, 132], "start_point": {"row": 41, "column": 65}, "end_point": {"row": 41, "column": 89}}, {"id": 131, "type": "identifier", "text": "commandpools", "parent": 130, "children": [], "start_point": {"row": 41, "column": 65}, "end_point": {"row": 41, "column": 77}}, {"id": 132, "type": "identifier", "text": "thread_idx", "parent": 130, "children": [], "start_point": {"row": 41, "column": 78}, "end_point": {"row": 41, "column": 88}}, {"id": 133, "type": "if_statement", "text": "if (result != VK_SUCCESS)\n\t{\n\t\tLOG_E(\"Failed to create command pool - code %d\", result);\n\t\treturn -1;\n\t}", "parent": 72, "children": [134], "start_point": {"row": 42, "column": 1}, "end_point": {"row": 46, "column": 2}}, {"id": 134, "type": "parenthesized_expression", "text": "(result != VK_SUCCESS)", "parent": 133, "children": [135], "start_point": {"row": 42, "column": 4}, "end_point": {"row": 42, "column": 26}}, {"id": 135, "type": "binary_expression", "text": "result != VK_SUCCESS", "parent": 134, "children": [136, 137, 138], "start_point": {"row": 42, "column": 5}, "end_point": {"row": 42, "column": 25}}, {"id": 136, "type": "identifier", "text": "result", "parent": 135, "children": [], "start_point": {"row": 42, "column": 5}, "end_point": {"row": 42, "column": 11}}, {"id": 137, "type": "!=", "text": "!=", "parent": 135, "children": [], "start_point": {"row": 42, "column": 12}, "end_point": {"row": 42, "column": 14}}, {"id": 138, "type": "identifier", "text": "VK_SUCCESS", "parent": 135, "children": [], "start_point": {"row": 42, "column": 15}, "end_point": {"row": 42, "column": 25}}, {"id": 139, "type": "call_expression", "text": "LOG_E(\"Failed to create command pool - code %d\", result)", "parent": 133, "children": [140, 141], "start_point": {"row": 44, "column": 2}, "end_point": {"row": 44, "column": 58}}, {"id": 140, "type": "identifier", "text": "LOG_E", "parent": 139, "children": [], "start_point": {"row": 44, "column": 2}, "end_point": {"row": 44, "column": 7}}, {"id": 141, "type": "argument_list", "text": "(\"Failed to create command pool - code %d\", result)", "parent": 139, "children": [142, 143], "start_point": {"row": 44, "column": 7}, "end_point": {"row": 44, "column": 58}}, {"id": 142, "type": "string_literal", "text": "\"Failed to create command pool - code %d\"", "parent": 141, "children": [], "start_point": {"row": 44, "column": 8}, "end_point": {"row": 44, "column": 49}}, {"id": 143, "type": "identifier", "text": "result", "parent": 141, "children": [], "start_point": {"row": 44, "column": 51}, "end_point": {"row": 44, "column": 57}}, {"id": 144, "type": "return_statement", "text": "return -1;", "parent": 133, "children": [145], "start_point": {"row": 45, "column": 2}, "end_point": {"row": 45, "column": 12}}, {"id": 145, "type": "number_literal", "text": "-1", "parent": 144, "children": [], "start_point": {"row": 45, "column": 9}, "end_point": {"row": 45, "column": 11}}, {"id": 146, "type": "return_statement", "text": "return 0;", "parent": 72, "children": [147], "start_point": {"row": 47, "column": 1}, "end_point": {"row": 47, "column": 10}}, {"id": 147, "type": "number_literal", "text": "0", "parent": 146, "children": [], "start_point": {"row": 47, "column": 8}, "end_point": {"row": 47, "column": 9}}, {"id": 148, "type": "function_definition", "text": "Commandbuffer commandbuffer_create_secondary(uint8_t thread_idx, Commandbuffer primary, VkRenderPass renderPass, Framebuffer frameBuffer)\n{\n\tif (thread_idx >= RENDERER_MAX_THREADS)\n\t{\n\t\tLOG_E(\"Thread index of %d is greater than the maximum number of threads %d\", thread_idx, RENDERER_MAX_THREADS);\n\t\treturn INVALID(Commandbuffer);\n\t}\n\n\t// Create command pool if it doesn't exist\n\tif (commandpools[thread_idx] == NULL)\n\t{\n\t\tcommandpool_create(thread_idx);\n\t}\n\n\t// Create command buffer\n\n\t// Allocate primary command buffer\n\tVkCommandBufferAllocateInfo allocInfo = {0};\n\tallocInfo.sType = VK_STRUCTURE_TYPE_COMMAND_BUFFER_ALLOCATE_INFO;\n\tallocInfo.commandPool = commandpools[thread_idx];\n\tallocInfo.level = VK_COMMAND_BUFFER_LEVEL_SECONDARY;\n\tallocInfo.commandBufferCount = 1;\n\n\tconst struct handle_wrapper* wrapper = handlepool_alloc(&handlepool);\n\tCommandbuffer_raw* raw = (Commandbuffer_raw*)wrapper->data;\n\tCommandbuffer handle = wrapper->handle;\n\n\traw->thread_idx = thread_idx;\n\traw->recording = false;\n\traw->level = VK_COMMAND_BUFFER_LEVEL_SECONDARY;\n\traw->next = INVALID(Commandbuffer);\n\n\t// Fill in inheritance info struct\n\tcommandbuffer_set_info(handle, primary, renderPass, frameBuffer);\n\n\tVkResult result = vkAllocateCommandBuffers(device, &allocInfo, &raw->cmd);\n\tif (result != VK_SUCCESS)\n\t{\n\t\tLOG_E(\"Failed to create command buffers - code %d\", result);\n\t\treturn INVALID(Commandbuffer);\n\t}\n\n\treturn handle;\n}", "parent": null, "children": [149, 150], "start_point": {"row": 50, "column": 0}, "end_point": {"row": 93, "column": 1}}, {"id": 149, "type": "type_identifier", "text": "Commandbuffer", "parent": 148, "children": [], "start_point": {"row": 50, "column": 0}, "end_point": {"row": 50, "column": 13}}, {"id": 150, "type": "function_declarator", "text": "commandbuffer_create_secondary(uint8_t thread_idx, Commandbuffer primary, VkRenderPass renderPass, Framebuffer frameBuffer)", "parent": 148, "children": [151, 152], "start_point": {"row": 50, "column": 14}, "end_point": {"row": 50, "column": 137}}, {"id": 151, "type": "identifier", "text": "commandbuffer_create_secondary", "parent": 150, "children": [], "start_point": {"row": 50, "column": 14}, "end_point": {"row": 50, "column": 44}}, {"id": 152, "type": "parameter_list", "text": "(uint8_t thread_idx, Commandbuffer primary, VkRenderPass renderPass, Framebuffer frameBuffer)", "parent": 150, "children": [153, 156, 159, 162], "start_point": {"row": 50, "column": 44}, "end_point": {"row": 50, "column": 137}}, {"id": 153, "type": "parameter_declaration", "text": "uint8_t thread_idx", "parent": 152, "children": [154, 155], "start_point": {"row": 50, "column": 45}, "end_point": {"row": 50, "column": 63}}, {"id": 154, "type": "primitive_type", "text": "uint8_t", "parent": 153, "children": [], "start_point": {"row": 50, "column": 45}, "end_point": {"row": 50, "column": 52}}, {"id": 155, "type": "identifier", "text": "thread_idx", "parent": 153, "children": [], "start_point": {"row": 50, "column": 53}, "end_point": {"row": 50, "column": 63}}, {"id": 156, "type": "parameter_declaration", "text": "Commandbuffer primary", "parent": 152, "children": [157, 158], "start_point": {"row": 50, "column": 65}, "end_point": {"row": 50, "column": 86}}, {"id": 157, "type": "type_identifier", "text": "Commandbuffer", "parent": 156, "children": [], "start_point": {"row": 50, "column": 65}, "end_point": {"row": 50, "column": 78}}, {"id": 158, "type": "identifier", "text": "primary", "parent": 156, "children": [], "start_point": {"row": 50, "column": 79}, "end_point": {"row": 50, "column": 86}}, {"id": 159, "type": "parameter_declaration", "text": "VkRenderPass renderPass", "parent": 152, "children": [160, 161], "start_point": {"row": 50, "column": 88}, "end_point": {"row": 50, "column": 111}}, {"id": 160, "type": "type_identifier", "text": "VkRenderPass", "parent": 159, "children": [], "start_point": {"row": 50, "column": 88}, "end_point": {"row": 50, "column": 100}}, {"id": 161, "type": "identifier", "text": "renderPass", "parent": 159, "children": [], "start_point": {"row": 50, "column": 101}, "end_point": {"row": 50, "column": 111}}, {"id": 162, "type": "parameter_declaration", "text": "Framebuffer frameBuffer", "parent": 152, "children": [163, 164], "start_point": {"row": 50, "column": 113}, "end_point": {"row": 50, "column": 136}}, {"id": 163, "type": "type_identifier", "text": "Framebuffer", "parent": 162, "children": [], "start_point": {"row": 50, "column": 113}, "end_point": {"row": 50, "column": 124}}, {"id": 164, "type": "identifier", "text": "frameBuffer", "parent": 162, "children": [], "start_point": {"row": 50, "column": 125}, "end_point": {"row": 50, "column": 136}}, {"id": 165, "type": "if_statement", "text": "if (thread_idx >= RENDERER_MAX_THREADS)\n\t{\n\t\tLOG_E(\"Thread index of %d is greater than the maximum number of threads %d\", thread_idx, RENDERER_MAX_THREADS);\n\t\treturn INVALID(Commandbuffer);\n\t}", "parent": 148, "children": [166], "start_point": {"row": 52, "column": 1}, "end_point": {"row": 56, "column": 2}}, {"id": 166, "type": "parenthesized_expression", "text": "(thread_idx >= RENDERER_MAX_THREADS)", "parent": 165, "children": [167], "start_point": {"row": 52, "column": 4}, "end_point": {"row": 52, "column": 40}}, {"id": 167, "type": "binary_expression", "text": "thread_idx >= RENDERER_MAX_THREADS", "parent": 166, "children": [168, 169, 170], "start_point": {"row": 52, "column": 5}, "end_point": {"row": 52, "column": 39}}, {"id": 168, "type": "identifier", "text": "thread_idx", "parent": 167, "children": [], "start_point": {"row": 52, "column": 5}, "end_point": {"row": 52, "column": 15}}, {"id": 169, "type": ">=", "text": ">=", "parent": 167, "children": [], "start_point": {"row": 52, "column": 16}, "end_point": {"row": 52, "column": 18}}, {"id": 170, "type": "identifier", "text": "RENDERER_MAX_THREADS", "parent": 167, "children": [], "start_point": {"row": 52, "column": 19}, "end_point": {"row": 52, "column": 39}}, {"id": 171, "type": "call_expression", "text": "LOG_E(\"Thread index of %d is greater than the maximum number of threads %d\", thread_idx, RENDERER_MAX_THREADS)", "parent": 165, "children": [172, 173], "start_point": {"row": 54, "column": 2}, "end_point": {"row": 54, "column": 112}}, {"id": 172, "type": "identifier", "text": "LOG_E", "parent": 171, "children": [], "start_point": {"row": 54, "column": 2}, "end_point": {"row": 54, "column": 7}}, {"id": 173, "type": "argument_list", "text": "(\"Thread index of %d is greater than the maximum number of threads %d\", thread_idx, RENDERER_MAX_THREADS)", "parent": 171, "children": [174, 175, 176], "start_point": {"row": 54, "column": 7}, "end_point": {"row": 54, "column": 112}}, {"id": 174, "type": "string_literal", "text": "\"Thread index of %d is greater than the maximum number of threads %d\"", "parent": 173, "children": [], "start_point": {"row": 54, "column": 8}, "end_point": {"row": 54, "column": 77}}, {"id": 175, "type": "identifier", "text": "thread_idx", "parent": 173, "children": [], "start_point": {"row": 54, "column": 79}, "end_point": {"row": 54, "column": 89}}, {"id": 176, "type": "identifier", "text": "RENDERER_MAX_THREADS", "parent": 173, "children": [], "start_point": {"row": 54, "column": 91}, "end_point": {"row": 54, "column": 111}}, {"id": 177, "type": "return_statement", "text": "return INVALID(Commandbuffer);", "parent": 165, "children": [178], "start_point": {"row": 55, "column": 2}, "end_point": {"row": 55, "column": 32}}, {"id": 178, "type": "call_expression", "text": "INVALID(Commandbuffer)", "parent": 177, "children": [179, 180], "start_point": {"row": 55, "column": 9}, "end_point": {"row": 55, "column": 31}}, {"id": 179, "type": "identifier", "text": "INVALID", "parent": 178, "children": [], "start_point": {"row": 55, "column": 9}, "end_point": {"row": 55, "column": 16}}, {"id": 180, "type": "argument_list", "text": "(Commandbuffer)", "parent": 178, "children": [181], "start_point": {"row": 55, "column": 16}, "end_point": {"row": 55, "column": 31}}, {"id": 181, "type": "identifier", "text": "Commandbuffer", "parent": 180, "children": [], "start_point": {"row": 55, "column": 17}, "end_point": {"row": 55, "column": 30}}, {"id": 182, "type": "if_statement", "text": "if (commandpools[thread_idx] == NULL)\n\t{\n\t\tcommandpool_create(thread_idx);\n\t}", "parent": 148, "children": [183], "start_point": {"row": 59, "column": 1}, "end_point": {"row": 62, "column": 2}}, {"id": 183, "type": "parenthesized_expression", "text": "(commandpools[thread_idx] == NULL)", "parent": 182, "children": [184], "start_point": {"row": 59, "column": 4}, "end_point": {"row": 59, "column": 38}}, {"id": 184, "type": "binary_expression", "text": "commandpools[thread_idx] == NULL", "parent": 183, "children": [185, 188, 189], "start_point": {"row": 59, "column": 5}, "end_point": {"row": 59, "column": 37}}, {"id": 185, "type": "subscript_expression", "text": "commandpools[thread_idx]", "parent": 184, "children": [186, 187], "start_point": {"row": 59, "column": 5}, "end_point": {"row": 59, "column": 29}}, {"id": 186, "type": "identifier", "text": "commandpools", "parent": 185, "children": [], "start_point": {"row": 59, "column": 5}, "end_point": {"row": 59, "column": 17}}, {"id": 187, "type": "identifier", "text": "thread_idx", "parent": 185, "children": [], "start_point": {"row": 59, "column": 18}, "end_point": {"row": 59, "column": 28}}, {"id": 188, "type": "==", "text": "==", "parent": 184, "children": [], "start_point": {"row": 59, "column": 30}, "end_point": {"row": 59, "column": 32}}, {"id": 189, "type": "null", "text": "NULL", "parent": 184, "children": [190], "start_point": {"row": 59, "column": 33}, "end_point": {"row": 59, "column": 37}}, {"id": 190, "type": "NULL", "text": "NULL", "parent": 189, "children": [], "start_point": {"row": 59, "column": 33}, "end_point": {"row": 59, "column": 37}}, {"id": 191, "type": "call_expression", "text": "commandpool_create(thread_idx)", "parent": 182, "children": [192, 193], "start_point": {"row": 61, "column": 2}, "end_point": {"row": 61, "column": 32}}, {"id": 192, "type": "identifier", "text": "commandpool_create", "parent": 191, "children": [], "start_point": {"row": 61, "column": 2}, "end_point": {"row": 61, "column": 20}}, {"id": 193, "type": "argument_list", "text": "(thread_idx)", "parent": 191, "children": [194], "start_point": {"row": 61, "column": 20}, "end_point": {"row": 61, "column": 32}}, {"id": 194, "type": "identifier", "text": "thread_idx", "parent": 193, "children": [], "start_point": {"row": 61, "column": 21}, "end_point": {"row": 61, "column": 31}}, {"id": 195, "type": "declaration", "text": "VkCommandBufferAllocateInfo allocInfo = {0};", "parent": 148, "children": [196, 197], "start_point": {"row": 67, "column": 1}, "end_point": {"row": 67, "column": 45}}, {"id": 196, "type": "type_identifier", "text": "VkCommandBufferAllocateInfo", "parent": 195, "children": [], "start_point": {"row": 67, "column": 1}, "end_point": {"row": 67, "column": 28}}, {"id": 197, "type": "init_declarator", "text": "allocInfo = {0}", "parent": 195, "children": [198, 199, 200], "start_point": {"row": 67, "column": 29}, "end_point": {"row": 67, "column": 44}}, {"id": 198, "type": "identifier", "text": "allocInfo", "parent": 197, "children": [], "start_point": {"row": 67, "column": 29}, "end_point": {"row": 67, "column": 38}}, {"id": 199, "type": "=", "text": "=", "parent": 197, "children": [], "start_point": {"row": 67, "column": 39}, "end_point": {"row": 67, "column": 40}}, {"id": 200, "type": "initializer_list", "text": "{0}", "parent": 197, "children": [201], "start_point": {"row": 67, "column": 41}, "end_point": {"row": 67, "column": 44}}, {"id": 201, "type": "number_literal", "text": "0", "parent": 200, "children": [], "start_point": {"row": 67, "column": 42}, "end_point": {"row": 67, "column": 43}}, {"id": 202, "type": "assignment_expression", "text": "allocInfo.sType = VK_STRUCTURE_TYPE_COMMAND_BUFFER_ALLOCATE_INFO", "parent": 148, "children": [203, 206, 207], "start_point": {"row": 68, "column": 1}, "end_point": {"row": 68, "column": 65}}, {"id": 203, "type": "field_expression", "text": "allocInfo.sType", "parent": 202, "children": [204, 205], "start_point": {"row": 68, "column": 1}, "end_point": {"row": 68, "column": 16}}, {"id": 204, "type": "identifier", "text": "allocInfo", "parent": 203, "children": [], "start_point": {"row": 68, "column": 1}, "end_point": {"row": 68, "column": 10}}, {"id": 205, "type": "field_identifier", "text": "sType", "parent": 203, "children": [], "start_point": {"row": 68, "column": 11}, "end_point": {"row": 68, "column": 16}}, {"id": 206, "type": "=", "text": "=", "parent": 202, "children": [], "start_point": {"row": 68, "column": 17}, "end_point": {"row": 68, "column": 18}}, {"id": 207, "type": "identifier", "text": "VK_STRUCTURE_TYPE_COMMAND_BUFFER_ALLOCATE_INFO", "parent": 202, "children": [], "start_point": {"row": 68, "column": 19}, "end_point": {"row": 68, "column": 65}}, {"id": 208, "type": "assignment_expression", "text": "allocInfo.commandPool = commandpools[thread_idx]", "parent": 148, "children": [209, 212, 213], "start_point": {"row": 69, "column": 1}, "end_point": {"row": 69, "column": 49}}, {"id": 209, "type": "field_expression", "text": "allocInfo.commandPool", "parent": 208, "children": [210, 211], "start_point": {"row": 69, "column": 1}, "end_point": {"row": 69, "column": 22}}, {"id": 210, "type": "identifier", "text": "allocInfo", "parent": 209, "children": [], "start_point": {"row": 69, "column": 1}, "end_point": {"row": 69, "column": 10}}, {"id": 211, "type": "field_identifier", "text": "commandPool", "parent": 209, "children": [], "start_point": {"row": 69, "column": 11}, "end_point": {"row": 69, "column": 22}}, {"id": 212, "type": "=", "text": "=", "parent": 208, "children": [], "start_point": {"row": 69, "column": 23}, "end_point": {"row": 69, "column": 24}}, {"id": 213, "type": "subscript_expression", "text": "commandpools[thread_idx]", "parent": 208, "children": [214, 215], "start_point": {"row": 69, "column": 25}, "end_point": {"row": 69, "column": 49}}, {"id": 214, "type": "identifier", "text": "commandpools", "parent": 213, "children": [], "start_point": {"row": 69, "column": 25}, "end_point": {"row": 69, "column": 37}}, {"id": 215, "type": "identifier", "text": "thread_idx", "parent": 213, "children": [], "start_point": {"row": 69, "column": 38}, "end_point": {"row": 69, "column": 48}}, {"id": 216, "type": "assignment_expression", "text": "allocInfo.level = VK_COMMAND_BUFFER_LEVEL_SECONDARY", "parent": 148, "children": [217, 220, 221], "start_point": {"row": 70, "column": 1}, "end_point": {"row": 70, "column": 52}}, {"id": 217, "type": "field_expression", "text": "allocInfo.level", "parent": 216, "children": [218, 219], "start_point": {"row": 70, "column": 1}, "end_point": {"row": 70, "column": 16}}, {"id": 218, "type": "identifier", "text": "allocInfo", "parent": 217, "children": [], "start_point": {"row": 70, "column": 1}, "end_point": {"row": 70, "column": 10}}, {"id": 219, "type": "field_identifier", "text": "level", "parent": 217, "children": [], "start_point": {"row": 70, "column": 11}, "end_point": {"row": 70, "column": 16}}, {"id": 220, "type": "=", "text": "=", "parent": 216, "children": [], "start_point": {"row": 70, "column": 17}, "end_point": {"row": 70, "column": 18}}, {"id": 221, "type": "identifier", "text": "VK_COMMAND_BUFFER_LEVEL_SECONDARY", "parent": 216, "children": [], "start_point": {"row": 70, "column": 19}, "end_point": {"row": 70, "column": 52}}, {"id": 222, "type": "assignment_expression", "text": "allocInfo.commandBufferCount = 1", "parent": 148, "children": [223, 226, 227], "start_point": {"row": 71, "column": 1}, "end_point": {"row": 71, "column": 33}}, {"id": 223, "type": "field_expression", "text": "allocInfo.commandBufferCount", "parent": 222, "children": [224, 225], "start_point": {"row": 71, "column": 1}, "end_point": {"row": 71, "column": 29}}, {"id": 224, "type": "identifier", "text": "allocInfo", "parent": 223, "children": [], "start_point": {"row": 71, "column": 1}, "end_point": {"row": 71, "column": 10}}, {"id": 225, "type": "field_identifier", "text": "commandBufferCount", "parent": 223, "children": [], "start_point": {"row": 71, "column": 11}, "end_point": {"row": 71, "column": 29}}, {"id": 226, "type": "=", "text": "=", "parent": 222, "children": [], "start_point": {"row": 71, "column": 30}, "end_point": {"row": 71, "column": 31}}, {"id": 227, "type": "number_literal", "text": "1", "parent": 222, "children": [], "start_point": {"row": 71, "column": 32}, "end_point": {"row": 71, "column": 33}}, {"id": 228, "type": "declaration", "text": "const struct handle_wrapper* wrapper = handlepool_alloc(&handlepool);", "parent": 148, "children": [229, 232], "start_point": {"row": 73, "column": 1}, "end_point": {"row": 73, "column": 70}}, {"id": 229, "type": "struct_specifier", "text": "struct handle_wrapper", "parent": 228, "children": [230, 231], "start_point": {"row": 73, "column": 7}, "end_point": {"row": 73, "column": 28}}, {"id": 230, "type": "struct", "text": "struct", "parent": 229, "children": [], "start_point": {"row": 73, "column": 7}, "end_point": {"row": 73, "column": 13}}, {"id": 231, "type": "type_identifier", "text": "handle_wrapper", "parent": 229, "children": [], "start_point": {"row": 73, "column": 14}, "end_point": {"row": 73, "column": 28}}, {"id": 232, "type": "init_declarator", "text": "* wrapper = handlepool_alloc(&handlepool)", "parent": 228, "children": [233, 236, 237], "start_point": {"row": 73, "column": 28}, "end_point": {"row": 73, "column": 69}}, {"id": 233, "type": "pointer_declarator", "text": "* wrapper", "parent": 232, "children": [234, 235], "start_point": {"row": 73, "column": 28}, "end_point": {"row": 73, "column": 37}}, {"id": 234, "type": "*", "text": "*", "parent": 233, "children": [], "start_point": {"row": 73, "column": 28}, "end_point": {"row": 73, "column": 29}}, {"id": 235, "type": "identifier", "text": "wrapper", "parent": 233, "children": [], "start_point": {"row": 73, "column": 30}, "end_point": {"row": 73, "column": 37}}, {"id": 236, "type": "=", "text": "=", "parent": 232, "children": [], "start_point": {"row": 73, "column": 38}, "end_point": {"row": 73, "column": 39}}, {"id": 237, "type": "call_expression", "text": "handlepool_alloc(&handlepool)", "parent": 232, "children": [238, 239], "start_point": {"row": 73, "column": 40}, "end_point": {"row": 73, "column": 69}}, {"id": 238, "type": "identifier", "text": "handlepool_alloc", "parent": 237, "children": [], "start_point": {"row": 73, "column": 40}, "end_point": {"row": 73, "column": 56}}, {"id": 239, "type": "argument_list", "text": "(&handlepool)", "parent": 237, "children": [240], "start_point": {"row": 73, "column": 56}, "end_point": {"row": 73, "column": 69}}, {"id": 240, "type": "pointer_expression", "text": "&handlepool", "parent": 239, "children": [241], "start_point": {"row": 73, "column": 57}, "end_point": {"row": 73, "column": 68}}, {"id": 241, "type": "identifier", "text": "handlepool", "parent": 240, "children": [], "start_point": {"row": 73, "column": 58}, "end_point": {"row": 73, "column": 68}}, {"id": 242, "type": "declaration", "text": "Commandbuffer_raw* raw = (Commandbuffer_raw*)wrapper->data;", "parent": 148, "children": [243, 244], "start_point": {"row": 74, "column": 1}, "end_point": {"row": 74, "column": 60}}, {"id": 243, "type": "type_identifier", "text": "Commandbuffer_raw", "parent": 242, "children": [], "start_point": {"row": 74, "column": 1}, "end_point": {"row": 74, "column": 18}}, {"id": 244, "type": "init_declarator", "text": "* raw = (Commandbuffer_raw*)wrapper->data", "parent": 242, "children": [245, 248, 249], "start_point": {"row": 74, "column": 18}, "end_point": {"row": 74, "column": 59}}, {"id": 245, "type": "pointer_declarator", "text": "* raw", "parent": 244, "children": [246, 247], "start_point": {"row": 74, "column": 18}, "end_point": {"row": 74, "column": 23}}, {"id": 246, "type": "*", "text": "*", "parent": 245, "children": [], "start_point": {"row": 74, "column": 18}, "end_point": {"row": 74, "column": 19}}, {"id": 247, "type": "identifier", "text": "raw", "parent": 245, "children": [], "start_point": {"row": 74, "column": 20}, "end_point": {"row": 74, "column": 23}}, {"id": 248, "type": "=", "text": "=", "parent": 244, "children": [], "start_point": {"row": 74, "column": 24}, "end_point": {"row": 74, "column": 25}}, {"id": 249, "type": "cast_expression", "text": "(Commandbuffer_raw*)wrapper->data", "parent": 244, "children": [250, 254], "start_point": {"row": 74, "column": 26}, "end_point": {"row": 74, "column": 59}}, {"id": 250, "type": "type_descriptor", "text": "Commandbuffer_raw*", "parent": 249, "children": [251, 252], "start_point": {"row": 74, "column": 27}, "end_point": {"row": 74, "column": 45}}, {"id": 251, "type": "type_identifier", "text": "Commandbuffer_raw", "parent": 250, "children": [], "start_point": {"row": 74, "column": 27}, "end_point": {"row": 74, "column": 44}}, {"id": 252, "type": "abstract_pointer_declarator", "text": "*", "parent": 250, "children": [253], "start_point": {"row": 74, "column": 44}, "end_point": {"row": 74, "column": 45}}, {"id": 253, "type": "*", "text": "*", "parent": 252, "children": [], "start_point": {"row": 74, "column": 44}, "end_point": {"row": 74, "column": 45}}, {"id": 254, "type": "field_expression", "text": "wrapper->data", "parent": 249, "children": [255, 256], "start_point": {"row": 74, "column": 46}, "end_point": {"row": 74, "column": 59}}, {"id": 255, "type": "identifier", "text": "wrapper", "parent": 254, "children": [], "start_point": {"row": 74, "column": 46}, "end_point": {"row": 74, "column": 53}}, {"id": 256, "type": "field_identifier", "text": "data", "parent": 254, "children": [], "start_point": {"row": 74, "column": 55}, "end_point": {"row": 74, "column": 59}}, {"id": 257, "type": "declaration", "text": "Commandbuffer handle = wrapper->handle;", "parent": 148, "children": [258, 259], "start_point": {"row": 75, "column": 1}, "end_point": {"row": 75, "column": 40}}, {"id": 258, "type": "type_identifier", "text": "Commandbuffer", "parent": 257, "children": [], "start_point": {"row": 75, "column": 1}, "end_point": {"row": 75, "column": 14}}, {"id": 259, "type": "init_declarator", "text": "handle = wrapper->handle", "parent": 257, "children": [260, 261, 262], "start_point": {"row": 75, "column": 15}, "end_point": {"row": 75, "column": 39}}, {"id": 260, "type": "identifier", "text": "handle", "parent": 259, "children": [], "start_point": {"row": 75, "column": 15}, "end_point": {"row": 75, "column": 21}}, {"id": 261, "type": "=", "text": "=", "parent": 259, "children": [], "start_point": {"row": 75, "column": 22}, "end_point": {"row": 75, "column": 23}}, {"id": 262, "type": "field_expression", "text": "wrapper->handle", "parent": 259, "children": [263, 264], "start_point": {"row": 75, "column": 24}, "end_point": {"row": 75, "column": 39}}, {"id": 263, "type": "identifier", "text": "wrapper", "parent": 262, "children": [], "start_point": {"row": 75, "column": 24}, "end_point": {"row": 75, "column": 31}}, {"id": 264, "type": "field_identifier", "text": "handle", "parent": 262, "children": [], "start_point": {"row": 75, "column": 33}, "end_point": {"row": 75, "column": 39}}, {"id": 265, "type": "assignment_expression", "text": "raw->thread_idx = thread_idx", "parent": 148, "children": [266, 269, 270], "start_point": {"row": 77, "column": 1}, "end_point": {"row": 77, "column": 29}}, {"id": 266, "type": "field_expression", "text": "raw->thread_idx", "parent": 265, "children": [267, 268], "start_point": {"row": 77, "column": 1}, "end_point": {"row": 77, "column": 16}}, {"id": 267, "type": "identifier", "text": "raw", "parent": 266, "children": [], "start_point": {"row": 77, "column": 1}, "end_point": {"row": 77, "column": 4}}, {"id": 268, "type": "field_identifier", "text": "thread_idx", "parent": 266, "children": [], "start_point": {"row": 77, "column": 6}, "end_point": {"row": 77, "column": 16}}, {"id": 269, "type": "=", "text": "=", "parent": 265, "children": [], "start_point": {"row": 77, "column": 17}, "end_point": {"row": 77, "column": 18}}, {"id": 270, "type": "identifier", "text": "thread_idx", "parent": 265, "children": [], "start_point": {"row": 77, "column": 19}, "end_point": {"row": 77, "column": 29}}, {"id": 271, "type": "assignment_expression", "text": "raw->recording = false", "parent": 148, "children": [272, 275, 276], "start_point": {"row": 78, "column": 1}, "end_point": {"row": 78, "column": 23}}, {"id": 272, "type": "field_expression", "text": "raw->recording", "parent": 271, "children": [273, 274], "start_point": {"row": 78, "column": 1}, "end_point": {"row": 78, "column": 15}}, {"id": 273, "type": "identifier", "text": "raw", "parent": 272, "children": [], "start_point": {"row": 78, "column": 1}, "end_point": {"row": 78, "column": 4}}, {"id": 274, "type": "field_identifier", "text": "recording", "parent": 272, "children": [], "start_point": {"row": 78, "column": 6}, "end_point": {"row": 78, "column": 15}}, {"id": 275, "type": "=", "text": "=", "parent": 271, "children": [], "start_point": {"row": 78, "column": 16}, "end_point": {"row": 78, "column": 17}}, {"id": 276, "type": "false", "text": "false", "parent": 271, "children": [], "start_point": {"row": 78, "column": 18}, "end_point": {"row": 78, "column": 23}}, {"id": 277, "type": "assignment_expression", "text": "raw->level = VK_COMMAND_BUFFER_LEVEL_SECONDARY", "parent": 148, "children": [278, 281, 282], "start_point": {"row": 79, "column": 1}, "end_point": {"row": 79, "column": 47}}, {"id": 278, "type": "field_expression", "text": "raw->level", "parent": 277, "children": [279, 280], "start_point": {"row": 79, "column": 1}, "end_point": {"row": 79, "column": 11}}, {"id": 279, "type": "identifier", "text": "raw", "parent": 278, "children": [], "start_point": {"row": 79, "column": 1}, "end_point": {"row": 79, "column": 4}}, {"id": 280, "type": "field_identifier", "text": "level", "parent": 278, "children": [], "start_point": {"row": 79, "column": 6}, "end_point": {"row": 79, "column": 11}}, {"id": 281, "type": "=", "text": "=", "parent": 277, "children": [], "start_point": {"row": 79, "column": 12}, "end_point": {"row": 79, "column": 13}}, {"id": 282, "type": "identifier", "text": "VK_COMMAND_BUFFER_LEVEL_SECONDARY", "parent": 277, "children": [], "start_point": {"row": 79, "column": 14}, "end_point": {"row": 79, "column": 47}}, {"id": 283, "type": "assignment_expression", "text": "raw->next = INVALID(Commandbuffer)", "parent": 148, "children": [284, 287, 288], "start_point": {"row": 80, "column": 1}, "end_point": {"row": 80, "column": 35}}, {"id": 284, "type": "field_expression", "text": "raw->next", "parent": 283, "children": [285, 286], "start_point": {"row": 80, "column": 1}, "end_point": {"row": 80, "column": 10}}, {"id": 285, "type": "identifier", "text": "raw", "parent": 284, "children": [], "start_point": {"row": 80, "column": 1}, "end_point": {"row": 80, "column": 4}}, {"id": 286, "type": "field_identifier", "text": "next", "parent": 284, "children": [], "start_point": {"row": 80, "column": 6}, "end_point": {"row": 80, "column": 10}}, {"id": 287, "type": "=", "text": "=", "parent": 283, "children": [], "start_point": {"row": 80, "column": 11}, "end_point": {"row": 80, "column": 12}}, {"id": 288, "type": "call_expression", "text": "INVALID(Commandbuffer)", "parent": 283, "children": [289, 290], "start_point": {"row": 80, "column": 13}, "end_point": {"row": 80, "column": 35}}, {"id": 289, "type": "identifier", "text": "INVALID", "parent": 288, "children": [], "start_point": {"row": 80, "column": 13}, "end_point": {"row": 80, "column": 20}}, {"id": 290, "type": "argument_list", "text": "(Commandbuffer)", "parent": 288, "children": [291], "start_point": {"row": 80, "column": 20}, "end_point": {"row": 80, "column": 35}}, {"id": 291, "type": "identifier", "text": "Commandbuffer", "parent": 290, "children": [], "start_point": {"row": 80, "column": 21}, "end_point": {"row": 80, "column": 34}}, {"id": 292, "type": "call_expression", "text": "commandbuffer_set_info(handle, primary, renderPass, frameBuffer)", "parent": 148, "children": [293, 294], "start_point": {"row": 83, "column": 1}, "end_point": {"row": 83, "column": 65}}, {"id": 293, "type": "identifier", "text": "commandbuffer_set_info", "parent": 292, "children": [], "start_point": {"row": 83, "column": 1}, "end_point": {"row": 83, "column": 23}}, {"id": 294, "type": "argument_list", "text": "(handle, primary, renderPass, frameBuffer)", "parent": 292, "children": [295, 296, 297, 298], "start_point": {"row": 83, "column": 23}, "end_point": {"row": 83, "column": 65}}, {"id": 295, "type": "identifier", "text": "handle", "parent": 294, "children": [], "start_point": {"row": 83, "column": 24}, "end_point": {"row": 83, "column": 30}}, {"id": 296, "type": "identifier", "text": "primary", "parent": 294, "children": [], "start_point": {"row": 83, "column": 32}, "end_point": {"row": 83, "column": 39}}, {"id": 297, "type": "identifier", "text": "renderPass", "parent": 294, "children": [], "start_point": {"row": 83, "column": 41}, "end_point": {"row": 83, "column": 51}}, {"id": 298, "type": "identifier", "text": "frameBuffer", "parent": 294, "children": [], "start_point": {"row": 83, "column": 53}, "end_point": {"row": 83, "column": 64}}, {"id": 299, "type": "declaration", "text": "VkResult result = vkAllocateCommandBuffers(device, &allocInfo, &raw->cmd);", "parent": 148, "children": [300, 301], "start_point": {"row": 85, "column": 1}, "end_point": {"row": 85, "column": 75}}, {"id": 300, "type": "type_identifier", "text": "VkResult", "parent": 299, "children": [], "start_point": {"row": 85, "column": 1}, "end_point": {"row": 85, "column": 9}}, {"id": 301, "type": "init_declarator", "text": "result = vkAllocateCommandBuffers(device, &allocInfo, &raw->cmd)", "parent": 299, "children": [302, 303, 304], "start_point": {"row": 85, "column": 10}, "end_point": {"row": 85, "column": 74}}, {"id": 302, "type": "identifier", "text": "result", "parent": 301, "children": [], "start_point": {"row": 85, "column": 10}, "end_point": {"row": 85, "column": 16}}, {"id": 303, "type": "=", "text": "=", "parent": 301, "children": [], "start_point": {"row": 85, "column": 17}, "end_point": {"row": 85, "column": 18}}, {"id": 304, "type": "call_expression", "text": "vkAllocateCommandBuffers(device, &allocInfo, &raw->cmd)", "parent": 301, "children": [305, 306], "start_point": {"row": 85, "column": 19}, "end_point": {"row": 85, "column": 74}}, {"id": 305, "type": "identifier", "text": "vkAllocateCommandBuffers", "parent": 304, "children": [], "start_point": {"row": 85, "column": 19}, "end_point": {"row": 85, "column": 43}}, {"id": 306, "type": "argument_list", "text": "(device, &allocInfo, &raw->cmd)", "parent": 304, "children": [307, 308, 310], "start_point": {"row": 85, "column": 43}, "end_point": {"row": 85, "column": 74}}, {"id": 307, "type": "identifier", "text": "device", "parent": 306, "children": [], "start_point": {"row": 85, "column": 44}, "end_point": {"row": 85, "column": 50}}, {"id": 308, "type": "pointer_expression", "text": "&allocInfo", "parent": 306, "children": [309], "start_point": {"row": 85, "column": 52}, "end_point": {"row": 85, "column": 62}}, {"id": 309, "type": "identifier", "text": "allocInfo", "parent": 308, "children": [], "start_point": {"row": 85, "column": 53}, "end_point": {"row": 85, "column": 62}}, {"id": 310, "type": "pointer_expression", "text": "&raw->cmd", "parent": 306, "children": [311], "start_point": {"row": 85, "column": 64}, "end_point": {"row": 85, "column": 73}}, {"id": 311, "type": "field_expression", "text": "raw->cmd", "parent": 310, "children": [312, 313], "start_point": {"row": 85, "column": 65}, "end_point": {"row": 85, "column": 73}}, {"id": 312, "type": "identifier", "text": "raw", "parent": 311, "children": [], "start_point": {"row": 85, "column": 65}, "end_point": {"row": 85, "column": 68}}, {"id": 313, "type": "field_identifier", "text": "cmd", "parent": 311, "children": [], "start_point": {"row": 85, "column": 70}, "end_point": {"row": 85, "column": 73}}, {"id": 314, "type": "if_statement", "text": "if (result != VK_SUCCESS)\n\t{\n\t\tLOG_E(\"Failed to create command buffers - code %d\", result);\n\t\treturn INVALID(Commandbuffer);\n\t}", "parent": 148, "children": [315], "start_point": {"row": 86, "column": 1}, "end_point": {"row": 90, "column": 2}}, {"id": 315, "type": "parenthesized_expression", "text": "(result != VK_SUCCESS)", "parent": 314, "children": [316], "start_point": {"row": 86, "column": 4}, "end_point": {"row": 86, "column": 26}}, {"id": 316, "type": "binary_expression", "text": "result != VK_SUCCESS", "parent": 315, "children": [317, 318, 319], "start_point": {"row": 86, "column": 5}, "end_point": {"row": 86, "column": 25}}, {"id": 317, "type": "identifier", "text": "result", "parent": 316, "children": [], "start_point": {"row": 86, "column": 5}, "end_point": {"row": 86, "column": 11}}, {"id": 318, "type": "!=", "text": "!=", "parent": 316, "children": [], "start_point": {"row": 86, "column": 12}, "end_point": {"row": 86, "column": 14}}, {"id": 319, "type": "identifier", "text": "VK_SUCCESS", "parent": 316, "children": [], "start_point": {"row": 86, "column": 15}, "end_point": {"row": 86, "column": 25}}, {"id": 320, "type": "call_expression", "text": "LOG_E(\"Failed to create command buffers - code %d\", result)", "parent": 314, "children": [321, 322], "start_point": {"row": 88, "column": 2}, "end_point": {"row": 88, "column": 61}}, {"id": 321, "type": "identifier", "text": "LOG_E", "parent": 320, "children": [], "start_point": {"row": 88, "column": 2}, "end_point": {"row": 88, "column": 7}}, {"id": 322, "type": "argument_list", "text": "(\"Failed to create command buffers - code %d\", result)", "parent": 320, "children": [323, 324], "start_point": {"row": 88, "column": 7}, "end_point": {"row": 88, "column": 61}}, {"id": 323, "type": "string_literal", "text": "\"Failed to create command buffers - code %d\"", "parent": 322, "children": [], "start_point": {"row": 88, "column": 8}, "end_point": {"row": 88, "column": 52}}, {"id": 324, "type": "identifier", "text": "result", "parent": 322, "children": [], "start_point": {"row": 88, "column": 54}, "end_point": {"row": 88, "column": 60}}, {"id": 325, "type": "return_statement", "text": "return INVALID(Commandbuffer);", "parent": 314, "children": [326], "start_point": {"row": 89, "column": 2}, "end_point": {"row": 89, "column": 32}}, {"id": 326, "type": "call_expression", "text": "INVALID(Commandbuffer)", "parent": 325, "children": [327, 328], "start_point": {"row": 89, "column": 9}, "end_point": {"row": 89, "column": 31}}, {"id": 327, "type": "identifier", "text": "INVALID", "parent": 326, "children": [], "start_point": {"row": 89, "column": 9}, "end_point": {"row": 89, "column": 16}}, {"id": 328, "type": "argument_list", "text": "(Commandbuffer)", "parent": 326, "children": [329], "start_point": {"row": 89, "column": 16}, "end_point": {"row": 89, "column": 31}}, {"id": 329, "type": "identifier", "text": "Commandbuffer", "parent": 328, "children": [], "start_point": {"row": 89, "column": 17}, "end_point": {"row": 89, "column": 30}}, {"id": 330, "type": "return_statement", "text": "return handle;", "parent": 148, "children": [331], "start_point": {"row": 92, "column": 1}, "end_point": {"row": 92, "column": 15}}, {"id": 331, "type": "identifier", "text": "handle", "parent": 330, "children": [], "start_point": {"row": 92, "column": 8}, "end_point": {"row": 92, "column": 14}}, {"id": 332, "type": "function_definition", "text": "Commandbuffer commandbuffer_create_primary(uint8_t thread_idx)\n{\n\tif (thread_idx >= RENDERER_MAX_THREADS)\n\t{\n\t\tLOG_E(\"Thread index of %d is greater than the maximum number of threads %d\", thread_idx, RENDERER_MAX_THREADS);\n\t\treturn INVALID(Commandbuffer);\n\t}\n\n\t// Create command pool if it doesn't exist\n\tif (commandpools[thread_idx] == NULL)\n\t{\n\t\tcommandpool_create(thread_idx);\n\t}\n\n\t// Create command buffer\n\n\t// Allocate primary command buffer\n\tVkCommandBufferAllocateInfo allocInfo = {0};\n\tallocInfo.sType = VK_STRUCTURE_TYPE_COMMAND_BUFFER_ALLOCATE_INFO;\n\tallocInfo.commandPool = commandpools[thread_idx];\n\tallocInfo.level = VK_COMMAND_BUFFER_LEVEL_PRIMARY;\n\tallocInfo.commandBufferCount = 1;\n\n\tconst struct handle_wrapper* wrapper = handlepool_alloc(&handlepool);\n\tCommandbuffer_raw* raw = (Commandbuffer_raw*)wrapper->data;\n\tCommandbuffer handle = wrapper->handle;\n\traw->thread_idx = thread_idx;\n\traw->recording = false;\n\traw->level = VK_COMMAND_BUFFER_LEVEL_PRIMARY;\n\traw->info.framebuffer = INVALID(Framebuffer);\n\traw->info.renderPass = VK_NULL_HANDLE;\n\traw->next = INVALID(Commandbuffer);\n\n\tVkResult result = vkAllocateCommandBuffers(device, &allocInfo, &raw->cmd);\n\n\tif (result != VK_SUCCESS)\n\t{\n\t\tLOG_E(\"Failed to create command buffers - code %d\", result);\n\t\treturn INVALID(Commandbuffer);\n\t}\n\n\t// Create fence\n\tVkFenceCreateInfo fence_info = {0};\n\tfence_info.sType = VK_STRUCTURE_TYPE_FENCE_CREATE_INFO;\n\tfence_info.flags = VK_FENCE_CREATE_SIGNALED_BIT;\n\n\tresult = vkCreateFence(device, &fence_info, NULL, &raw->fence);\n\tif (result != VK_SUCCESS)\n\t{\n\t\tLOG_E(\"Failed to create command buffer fence - code %d\", result);\n\t\treturn INVALID(Commandbuffer);\n\t}\n\n\treturn handle;\n}", "parent": null, "children": [333, 334], "start_point": {"row": 95, "column": 0}, "end_point": {"row": 149, "column": 1}}, {"id": 333, "type": "type_identifier", "text": "Commandbuffer", "parent": 332, "children": [], "start_point": {"row": 95, "column": 0}, "end_point": {"row": 95, "column": 13}}, {"id": 334, "type": "function_declarator", "text": "commandbuffer_create_primary(uint8_t thread_idx)", "parent": 332, "children": [335, 336], "start_point": {"row": 95, "column": 14}, "end_point": {"row": 95, "column": 62}}, {"id": 335, "type": "identifier", "text": "commandbuffer_create_primary", "parent": 334, "children": [], "start_point": {"row": 95, "column": 14}, "end_point": {"row": 95, "column": 42}}, {"id": 336, "type": "parameter_list", "text": "(uint8_t thread_idx)", "parent": 334, "children": [337], "start_point": {"row": 95, "column": 42}, "end_point": {"row": 95, "column": 62}}, {"id": 337, "type": "parameter_declaration", "text": "uint8_t thread_idx", "parent": 336, "children": [338, 339], "start_point": {"row": 95, "column": 43}, "end_point": {"row": 95, "column": 61}}, {"id": 338, "type": "primitive_type", "text": "uint8_t", "parent": 337, "children": [], "start_point": {"row": 95, "column": 43}, "end_point": {"row": 95, "column": 50}}, {"id": 339, "type": "identifier", "text": "thread_idx", "parent": 337, "children": [], "start_point": {"row": 95, "column": 51}, "end_point": {"row": 95, "column": 61}}, {"id": 340, "type": "if_statement", "text": "if (thread_idx >= RENDERER_MAX_THREADS)\n\t{\n\t\tLOG_E(\"Thread index of %d is greater than the maximum number of threads %d\", thread_idx, RENDERER_MAX_THREADS);\n\t\treturn INVALID(Commandbuffer);\n\t}", "parent": 332, "children": [341], "start_point": {"row": 97, "column": 1}, "end_point": {"row": 101, "column": 2}}, {"id": 341, "type": "parenthesized_expression", "text": "(thread_idx >= RENDERER_MAX_THREADS)", "parent": 340, "children": [342], "start_point": {"row": 97, "column": 4}, "end_point": {"row": 97, "column": 40}}, {"id": 342, "type": "binary_expression", "text": "thread_idx >= RENDERER_MAX_THREADS", "parent": 341, "children": [343, 344, 345], "start_point": {"row": 97, "column": 5}, "end_point": {"row": 97, "column": 39}}, {"id": 343, "type": "identifier", "text": "thread_idx", "parent": 342, "children": [], "start_point": {"row": 97, "column": 5}, "end_point": {"row": 97, "column": 15}}, {"id": 344, "type": ">=", "text": ">=", "parent": 342, "children": [], "start_point": {"row": 97, "column": 16}, "end_point": {"row": 97, "column": 18}}, {"id": 345, "type": "identifier", "text": "RENDERER_MAX_THREADS", "parent": 342, "children": [], "start_point": {"row": 97, "column": 19}, "end_point": {"row": 97, "column": 39}}, {"id": 346, "type": "call_expression", "text": "LOG_E(\"Thread index of %d is greater than the maximum number of threads %d\", thread_idx, RENDERER_MAX_THREADS)", "parent": 340, "children": [347, 348], "start_point": {"row": 99, "column": 2}, "end_point": {"row": 99, "column": 112}}, {"id": 347, "type": "identifier", "text": "LOG_E", "parent": 346, "children": [], "start_point": {"row": 99, "column": 2}, "end_point": {"row": 99, "column": 7}}, {"id": 348, "type": "argument_list", "text": "(\"Thread index of %d is greater than the maximum number of threads %d\", thread_idx, RENDERER_MAX_THREADS)", "parent": 346, "children": [349, 350, 351], "start_point": {"row": 99, "column": 7}, "end_point": {"row": 99, "column": 112}}, {"id": 349, "type": "string_literal", "text": "\"Thread index of %d is greater than the maximum number of threads %d\"", "parent": 348, "children": [], "start_point": {"row": 99, "column": 8}, "end_point": {"row": 99, "column": 77}}, {"id": 350, "type": "identifier", "text": "thread_idx", "parent": 348, "children": [], "start_point": {"row": 99, "column": 79}, "end_point": {"row": 99, "column": 89}}, {"id": 351, "type": "identifier", "text": "RENDERER_MAX_THREADS", "parent": 348, "children": [], "start_point": {"row": 99, "column": 91}, "end_point": {"row": 99, "column": 111}}, {"id": 352, "type": "return_statement", "text": "return INVALID(Commandbuffer);", "parent": 340, "children": [353], "start_point": {"row": 100, "column": 2}, "end_point": {"row": 100, "column": 32}}, {"id": 353, "type": "call_expression", "text": "INVALID(Commandbuffer)", "parent": 352, "children": [354, 355], "start_point": {"row": 100, "column": 9}, "end_point": {"row": 100, "column": 31}}, {"id": 354, "type": "identifier", "text": "INVALID", "parent": 353, "children": [], "start_point": {"row": 100, "column": 9}, "end_point": {"row": 100, "column": 16}}, {"id": 355, "type": "argument_list", "text": "(Commandbuffer)", "parent": 353, "children": [356], "start_point": {"row": 100, "column": 16}, "end_point": {"row": 100, "column": 31}}, {"id": 356, "type": "identifier", "text": "Commandbuffer", "parent": 355, "children": [], "start_point": {"row": 100, "column": 17}, "end_point": {"row": 100, "column": 30}}, {"id": 357, "type": "if_statement", "text": "if (commandpools[thread_idx] == NULL)\n\t{\n\t\tcommandpool_create(thread_idx);\n\t}", "parent": 332, "children": [358], "start_point": {"row": 104, "column": 1}, "end_point": {"row": 107, "column": 2}}, {"id": 358, "type": "parenthesized_expression", "text": "(commandpools[thread_idx] == NULL)", "parent": 357, "children": [359], "start_point": {"row": 104, "column": 4}, "end_point": {"row": 104, "column": 38}}, {"id": 359, "type": "binary_expression", "text": "commandpools[thread_idx] == NULL", "parent": 358, "children": [360, 363, 364], "start_point": {"row": 104, "column": 5}, "end_point": {"row": 104, "column": 37}}, {"id": 360, "type": "subscript_expression", "text": "commandpools[thread_idx]", "parent": 359, "children": [361, 362], "start_point": {"row": 104, "column": 5}, "end_point": {"row": 104, "column": 29}}, {"id": 361, "type": "identifier", "text": "commandpools", "parent": 360, "children": [], "start_point": {"row": 104, "column": 5}, "end_point": {"row": 104, "column": 17}}, {"id": 362, "type": "identifier", "text": "thread_idx", "parent": 360, "children": [], "start_point": {"row": 104, "column": 18}, "end_point": {"row": 104, "column": 28}}, {"id": 363, "type": "==", "text": "==", "parent": 359, "children": [], "start_point": {"row": 104, "column": 30}, "end_point": {"row": 104, "column": 32}}, {"id": 364, "type": "null", "text": "NULL", "parent": 359, "children": [365], "start_point": {"row": 104, "column": 33}, "end_point": {"row": 104, "column": 37}}, {"id": 365, "type": "NULL", "text": "NULL", "parent": 364, "children": [], "start_point": {"row": 104, "column": 33}, "end_point": {"row": 104, "column": 37}}, {"id": 366, "type": "call_expression", "text": "commandpool_create(thread_idx)", "parent": 357, "children": [367, 368], "start_point": {"row": 106, "column": 2}, "end_point": {"row": 106, "column": 32}}, {"id": 367, "type": "identifier", "text": "commandpool_create", "parent": 366, "children": [], "start_point": {"row": 106, "column": 2}, "end_point": {"row": 106, "column": 20}}, {"id": 368, "type": "argument_list", "text": "(thread_idx)", "parent": 366, "children": [369], "start_point": {"row": 106, "column": 20}, "end_point": {"row": 106, "column": 32}}, {"id": 369, "type": "identifier", "text": "thread_idx", "parent": 368, "children": [], "start_point": {"row": 106, "column": 21}, "end_point": {"row": 106, "column": 31}}, {"id": 370, "type": "declaration", "text": "VkCommandBufferAllocateInfo allocInfo = {0};", "parent": 332, "children": [371, 372], "start_point": {"row": 112, "column": 1}, "end_point": {"row": 112, "column": 45}}, {"id": 371, "type": "type_identifier", "text": "VkCommandBufferAllocateInfo", "parent": 370, "children": [], "start_point": {"row": 112, "column": 1}, "end_point": {"row": 112, "column": 28}}, {"id": 372, "type": "init_declarator", "text": "allocInfo = {0}", "parent": 370, "children": [373, 374, 375], "start_point": {"row": 112, "column": 29}, "end_point": {"row": 112, "column": 44}}, {"id": 373, "type": "identifier", "text": "allocInfo", "parent": 372, "children": [], "start_point": {"row": 112, "column": 29}, "end_point": {"row": 112, "column": 38}}, {"id": 374, "type": "=", "text": "=", "parent": 372, "children": [], "start_point": {"row": 112, "column": 39}, "end_point": {"row": 112, "column": 40}}, {"id": 375, "type": "initializer_list", "text": "{0}", "parent": 372, "children": [376], "start_point": {"row": 112, "column": 41}, "end_point": {"row": 112, "column": 44}}, {"id": 376, "type": "number_literal", "text": "0", "parent": 375, "children": [], "start_point": {"row": 112, "column": 42}, "end_point": {"row": 112, "column": 43}}, {"id": 377, "type": "assignment_expression", "text": "allocInfo.sType = VK_STRUCTURE_TYPE_COMMAND_BUFFER_ALLOCATE_INFO", "parent": 332, "children": [378, 381, 382], "start_point": {"row": 113, "column": 1}, "end_point": {"row": 113, "column": 65}}, {"id": 378, "type": "field_expression", "text": "allocInfo.sType", "parent": 377, "children": [379, 380], "start_point": {"row": 113, "column": 1}, "end_point": {"row": 113, "column": 16}}, {"id": 379, "type": "identifier", "text": "allocInfo", "parent": 378, "children": [], "start_point": {"row": 113, "column": 1}, "end_point": {"row": 113, "column": 10}}, {"id": 380, "type": "field_identifier", "text": "sType", "parent": 378, "children": [], "start_point": {"row": 113, "column": 11}, "end_point": {"row": 113, "column": 16}}, {"id": 381, "type": "=", "text": "=", "parent": 377, "children": [], "start_point": {"row": 113, "column": 17}, "end_point": {"row": 113, "column": 18}}, {"id": 382, "type": "identifier", "text": "VK_STRUCTURE_TYPE_COMMAND_BUFFER_ALLOCATE_INFO", "parent": 377, "children": [], "start_point": {"row": 113, "column": 19}, "end_point": {"row": 113, "column": 65}}, {"id": 383, "type": "assignment_expression", "text": "allocInfo.commandPool = commandpools[thread_idx]", "parent": 332, "children": [384, 387, 388], "start_point": {"row": 114, "column": 1}, "end_point": {"row": 114, "column": 49}}, {"id": 384, "type": "field_expression", "text": "allocInfo.commandPool", "parent": 383, "children": [385, 386], "start_point": {"row": 114, "column": 1}, "end_point": {"row": 114, "column": 22}}, {"id": 385, "type": "identifier", "text": "allocInfo", "parent": 384, "children": [], "start_point": {"row": 114, "column": 1}, "end_point": {"row": 114, "column": 10}}, {"id": 386, "type": "field_identifier", "text": "commandPool", "parent": 384, "children": [], "start_point": {"row": 114, "column": 11}, "end_point": {"row": 114, "column": 22}}, {"id": 387, "type": "=", "text": "=", "parent": 383, "children": [], "start_point": {"row": 114, "column": 23}, "end_point": {"row": 114, "column": 24}}, {"id": 388, "type": "subscript_expression", "text": "commandpools[thread_idx]", "parent": 383, "children": [389, 390], "start_point": {"row": 114, "column": 25}, "end_point": {"row": 114, "column": 49}}, {"id": 389, "type": "identifier", "text": "commandpools", "parent": 388, "children": [], "start_point": {"row": 114, "column": 25}, "end_point": {"row": 114, "column": 37}}, {"id": 390, "type": "identifier", "text": "thread_idx", "parent": 388, "children": [], "start_point": {"row": 114, "column": 38}, "end_point": {"row": 114, "column": 48}}, {"id": 391, "type": "assignment_expression", "text": "allocInfo.level = VK_COMMAND_BUFFER_LEVEL_PRIMARY", "parent": 332, "children": [392, 395, 396], "start_point": {"row": 115, "column": 1}, "end_point": {"row": 115, "column": 50}}, {"id": 392, "type": "field_expression", "text": "allocInfo.level", "parent": 391, "children": [393, 394], "start_point": {"row": 115, "column": 1}, "end_point": {"row": 115, "column": 16}}, {"id": 393, "type": "identifier", "text": "allocInfo", "parent": 392, "children": [], "start_point": {"row": 115, "column": 1}, "end_point": {"row": 115, "column": 10}}, {"id": 394, "type": "field_identifier", "text": "level", "parent": 392, "children": [], "start_point": {"row": 115, "column": 11}, "end_point": {"row": 115, "column": 16}}, {"id": 395, "type": "=", "text": "=", "parent": 391, "children": [], "start_point": {"row": 115, "column": 17}, "end_point": {"row": 115, "column": 18}}, {"id": 396, "type": "identifier", "text": "VK_COMMAND_BUFFER_LEVEL_PRIMARY", "parent": 391, "children": [], "start_point": {"row": 115, "column": 19}, "end_point": {"row": 115, "column": 50}}, {"id": 397, "type": "assignment_expression", "text": "allocInfo.commandBufferCount = 1", "parent": 332, "children": [398, 401, 402], "start_point": {"row": 116, "column": 1}, "end_point": {"row": 116, "column": 33}}, {"id": 398, "type": "field_expression", "text": "allocInfo.commandBufferCount", "parent": 397, "children": [399, 400], "start_point": {"row": 116, "column": 1}, "end_point": {"row": 116, "column": 29}}, {"id": 399, "type": "identifier", "text": "allocInfo", "parent": 398, "children": [], "start_point": {"row": 116, "column": 1}, "end_point": {"row": 116, "column": 10}}, {"id": 400, "type": "field_identifier", "text": "commandBufferCount", "parent": 398, "children": [], "start_point": {"row": 116, "column": 11}, "end_point": {"row": 116, "column": 29}}, {"id": 401, "type": "=", "text": "=", "parent": 397, "children": [], "start_point": {"row": 116, "column": 30}, "end_point": {"row": 116, "column": 31}}, {"id": 402, "type": "number_literal", "text": "1", "parent": 397, "children": [], "start_point": {"row": 116, "column": 32}, "end_point": {"row": 116, "column": 33}}, {"id": 403, "type": "declaration", "text": "const struct handle_wrapper* wrapper = handlepool_alloc(&handlepool);", "parent": 332, "children": [404, 407], "start_point": {"row": 118, "column": 1}, "end_point": {"row": 118, "column": 70}}, {"id": 404, "type": "struct_specifier", "text": "struct handle_wrapper", "parent": 403, "children": [405, 406], "start_point": {"row": 118, "column": 7}, "end_point": {"row": 118, "column": 28}}, {"id": 405, "type": "struct", "text": "struct", "parent": 404, "children": [], "start_point": {"row": 118, "column": 7}, "end_point": {"row": 118, "column": 13}}, {"id": 406, "type": "type_identifier", "text": "handle_wrapper", "parent": 404, "children": [], "start_point": {"row": 118, "column": 14}, "end_point": {"row": 118, "column": 28}}, {"id": 407, "type": "init_declarator", "text": "* wrapper = handlepool_alloc(&handlepool)", "parent": 403, "children": [408, 411, 412], "start_point": {"row": 118, "column": 28}, "end_point": {"row": 118, "column": 69}}, {"id": 408, "type": "pointer_declarator", "text": "* wrapper", "parent": 407, "children": [409, 410], "start_point": {"row": 118, "column": 28}, "end_point": {"row": 118, "column": 37}}, {"id": 409, "type": "*", "text": "*", "parent": 408, "children": [], "start_point": {"row": 118, "column": 28}, "end_point": {"row": 118, "column": 29}}, {"id": 410, "type": "identifier", "text": "wrapper", "parent": 408, "children": [], "start_point": {"row": 118, "column": 30}, "end_point": {"row": 118, "column": 37}}, {"id": 411, "type": "=", "text": "=", "parent": 407, "children": [], "start_point": {"row": 118, "column": 38}, "end_point": {"row": 118, "column": 39}}, {"id": 412, "type": "call_expression", "text": "handlepool_alloc(&handlepool)", "parent": 407, "children": [413, 414], "start_point": {"row": 118, "column": 40}, "end_point": {"row": 118, "column": 69}}, {"id": 413, "type": "identifier", "text": "handlepool_alloc", "parent": 412, "children": [], "start_point": {"row": 118, "column": 40}, "end_point": {"row": 118, "column": 56}}, {"id": 414, "type": "argument_list", "text": "(&handlepool)", "parent": 412, "children": [415], "start_point": {"row": 118, "column": 56}, "end_point": {"row": 118, "column": 69}}, {"id": 415, "type": "pointer_expression", "text": "&handlepool", "parent": 414, "children": [416], "start_point": {"row": 118, "column": 57}, "end_point": {"row": 118, "column": 68}}, {"id": 416, "type": "identifier", "text": "handlepool", "parent": 415, "children": [], "start_point": {"row": 118, "column": 58}, "end_point": {"row": 118, "column": 68}}, {"id": 417, "type": "declaration", "text": "Commandbuffer_raw* raw = (Commandbuffer_raw*)wrapper->data;", "parent": 332, "children": [418, 419], "start_point": {"row": 119, "column": 1}, "end_point": {"row": 119, "column": 60}}, {"id": 418, "type": "type_identifier", "text": "Commandbuffer_raw", "parent": 417, "children": [], "start_point": {"row": 119, "column": 1}, "end_point": {"row": 119, "column": 18}}, {"id": 419, "type": "init_declarator", "text": "* raw = (Commandbuffer_raw*)wrapper->data", "parent": 417, "children": [420, 423, 424], "start_point": {"row": 119, "column": 18}, "end_point": {"row": 119, "column": 59}}, {"id": 420, "type": "pointer_declarator", "text": "* raw", "parent": 419, "children": [421, 422], "start_point": {"row": 119, "column": 18}, "end_point": {"row": 119, "column": 23}}, {"id": 421, "type": "*", "text": "*", "parent": 420, "children": [], "start_point": {"row": 119, "column": 18}, "end_point": {"row": 119, "column": 19}}, {"id": 422, "type": "identifier", "text": "raw", "parent": 420, "children": [], "start_point": {"row": 119, "column": 20}, "end_point": {"row": 119, "column": 23}}, {"id": 423, "type": "=", "text": "=", "parent": 419, "children": [], "start_point": {"row": 119, "column": 24}, "end_point": {"row": 119, "column": 25}}, {"id": 424, "type": "cast_expression", "text": "(Commandbuffer_raw*)wrapper->data", "parent": 419, "children": [425, 429], "start_point": {"row": 119, "column": 26}, "end_point": {"row": 119, "column": 59}}, {"id": 425, "type": "type_descriptor", "text": "Commandbuffer_raw*", "parent": 424, "children": [426, 427], "start_point": {"row": 119, "column": 27}, "end_point": {"row": 119, "column": 45}}, {"id": 426, "type": "type_identifier", "text": "Commandbuffer_raw", "parent": 425, "children": [], "start_point": {"row": 119, "column": 27}, "end_point": {"row": 119, "column": 44}}, {"id": 427, "type": "abstract_pointer_declarator", "text": "*", "parent": 425, "children": [428], "start_point": {"row": 119, "column": 44}, "end_point": {"row": 119, "column": 45}}, {"id": 428, "type": "*", "text": "*", "parent": 427, "children": [], "start_point": {"row": 119, "column": 44}, "end_point": {"row": 119, "column": 45}}, {"id": 429, "type": "field_expression", "text": "wrapper->data", "parent": 424, "children": [430, 431], "start_point": {"row": 119, "column": 46}, "end_point": {"row": 119, "column": 59}}, {"id": 430, "type": "identifier", "text": "wrapper", "parent": 429, "children": [], "start_point": {"row": 119, "column": 46}, "end_point": {"row": 119, "column": 53}}, {"id": 431, "type": "field_identifier", "text": "data", "parent": 429, "children": [], "start_point": {"row": 119, "column": 55}, "end_point": {"row": 119, "column": 59}}, {"id": 432, "type": "declaration", "text": "Commandbuffer handle = wrapper->handle;", "parent": 332, "children": [433, 434], "start_point": {"row": 120, "column": 1}, "end_point": {"row": 120, "column": 40}}, {"id": 433, "type": "type_identifier", "text": "Commandbuffer", "parent": 432, "children": [], "start_point": {"row": 120, "column": 1}, "end_point": {"row": 120, "column": 14}}, {"id": 434, "type": "init_declarator", "text": "handle = wrapper->handle", "parent": 432, "children": [435, 436, 437], "start_point": {"row": 120, "column": 15}, "end_point": {"row": 120, "column": 39}}, {"id": 435, "type": "identifier", "text": "handle", "parent": 434, "children": [], "start_point": {"row": 120, "column": 15}, "end_point": {"row": 120, "column": 21}}, {"id": 436, "type": "=", "text": "=", "parent": 434, "children": [], "start_point": {"row": 120, "column": 22}, "end_point": {"row": 120, "column": 23}}, {"id": 437, "type": "field_expression", "text": "wrapper->handle", "parent": 434, "children": [438, 439], "start_point": {"row": 120, "column": 24}, "end_point": {"row": 120, "column": 39}}, {"id": 438, "type": "identifier", "text": "wrapper", "parent": 437, "children": [], "start_point": {"row": 120, "column": 24}, "end_point": {"row": 120, "column": 31}}, {"id": 439, "type": "field_identifier", "text": "handle", "parent": 437, "children": [], "start_point": {"row": 120, "column": 33}, "end_point": {"row": 120, "column": 39}}, {"id": 440, "type": "assignment_expression", "text": "raw->thread_idx = thread_idx", "parent": 332, "children": [441, 444, 445], "start_point": {"row": 121, "column": 1}, "end_point": {"row": 121, "column": 29}}, {"id": 441, "type": "field_expression", "text": "raw->thread_idx", "parent": 440, "children": [442, 443], "start_point": {"row": 121, "column": 1}, "end_point": {"row": 121, "column": 16}}, {"id": 442, "type": "identifier", "text": "raw", "parent": 441, "children": [], "start_point": {"row": 121, "column": 1}, "end_point": {"row": 121, "column": 4}}, {"id": 443, "type": "field_identifier", "text": "thread_idx", "parent": 441, "children": [], "start_point": {"row": 121, "column": 6}, "end_point": {"row": 121, "column": 16}}, {"id": 444, "type": "=", "text": "=", "parent": 440, "children": [], "start_point": {"row": 121, "column": 17}, "end_point": {"row": 121, "column": 18}}, {"id": 445, "type": "identifier", "text": "thread_idx", "parent": 440, "children": [], "start_point": {"row": 121, "column": 19}, "end_point": {"row": 121, "column": 29}}, {"id": 446, "type": "assignment_expression", "text": "raw->recording = false", "parent": 332, "children": [447, 450, 451], "start_point": {"row": 122, "column": 1}, "end_point": {"row": 122, "column": 23}}, {"id": 447, "type": "field_expression", "text": "raw->recording", "parent": 446, "children": [448, 449], "start_point": {"row": 122, "column": 1}, "end_point": {"row": 122, "column": 15}}, {"id": 448, "type": "identifier", "text": "raw", "parent": 447, "children": [], "start_point": {"row": 122, "column": 1}, "end_point": {"row": 122, "column": 4}}, {"id": 449, "type": "field_identifier", "text": "recording", "parent": 447, "children": [], "start_point": {"row": 122, "column": 6}, "end_point": {"row": 122, "column": 15}}, {"id": 450, "type": "=", "text": "=", "parent": 446, "children": [], "start_point": {"row": 122, "column": 16}, "end_point": {"row": 122, "column": 17}}, {"id": 451, "type": "false", "text": "false", "parent": 446, "children": [], "start_point": {"row": 122, "column": 18}, "end_point": {"row": 122, "column": 23}}, {"id": 452, "type": "assignment_expression", "text": "raw->level = VK_COMMAND_BUFFER_LEVEL_PRIMARY", "parent": 332, "children": [453, 456, 457], "start_point": {"row": 123, "column": 1}, "end_point": {"row": 123, "column": 45}}, {"id": 453, "type": "field_expression", "text": "raw->level", "parent": 452, "children": [454, 455], "start_point": {"row": 123, "column": 1}, "end_point": {"row": 123, "column": 11}}, {"id": 454, "type": "identifier", "text": "raw", "parent": 453, "children": [], "start_point": {"row": 123, "column": 1}, "end_point": {"row": 123, "column": 4}}, {"id": 455, "type": "field_identifier", "text": "level", "parent": 453, "children": [], "start_point": {"row": 123, "column": 6}, "end_point": {"row": 123, "column": 11}}, {"id": 456, "type": "=", "text": "=", "parent": 452, "children": [], "start_point": {"row": 123, "column": 12}, "end_point": {"row": 123, "column": 13}}, {"id": 457, "type": "identifier", "text": "VK_COMMAND_BUFFER_LEVEL_PRIMARY", "parent": 452, "children": [], "start_point": {"row": 123, "column": 14}, "end_point": {"row": 123, "column": 45}}, {"id": 458, "type": "assignment_expression", "text": "raw->info.framebuffer = INVALID(Framebuffer)", "parent": 332, "children": [459, 464, 465], "start_point": {"row": 124, "column": 1}, "end_point": {"row": 124, "column": 45}}, {"id": 459, "type": "field_expression", "text": "raw->info.framebuffer", "parent": 458, "children": [460, 463], "start_point": {"row": 124, "column": 1}, "end_point": {"row": 124, "column": 22}}, {"id": 460, "type": "field_expression", "text": "raw->info", "parent": 459, "children": [461, 462], "start_point": {"row": 124, "column": 1}, "end_point": {"row": 124, "column": 10}}, {"id": 461, "type": "identifier", "text": "raw", "parent": 460, "children": [], "start_point": {"row": 124, "column": 1}, "end_point": {"row": 124, "column": 4}}, {"id": 462, "type": "field_identifier", "text": "info", "parent": 460, "children": [], "start_point": {"row": 124, "column": 6}, "end_point": {"row": 124, "column": 10}}, {"id": 463, "type": "field_identifier", "text": "framebuffer", "parent": 459, "children": [], "start_point": {"row": 124, "column": 11}, "end_point": {"row": 124, "column": 22}}, {"id": 464, "type": "=", "text": "=", "parent": 458, "children": [], "start_point": {"row": 124, "column": 23}, "end_point": {"row": 124, "column": 24}}, {"id": 465, "type": "call_expression", "text": "INVALID(Framebuffer)", "parent": 458, "children": [466, 467], "start_point": {"row": 124, "column": 25}, "end_point": {"row": 124, "column": 45}}, {"id": 466, "type": "identifier", "text": "INVALID", "parent": 465, "children": [], "start_point": {"row": 124, "column": 25}, "end_point": {"row": 124, "column": 32}}, {"id": 467, "type": "argument_list", "text": "(Framebuffer)", "parent": 465, "children": [468], "start_point": {"row": 124, "column": 32}, "end_point": {"row": 124, "column": 45}}, {"id": 468, "type": "identifier", "text": "Framebuffer", "parent": 467, "children": [], "start_point": {"row": 124, "column": 33}, "end_point": {"row": 124, "column": 44}}, {"id": 469, "type": "assignment_expression", "text": "raw->info.renderPass = VK_NULL_HANDLE", "parent": 332, "children": [470, 475, 476], "start_point": {"row": 125, "column": 1}, "end_point": {"row": 125, "column": 38}}, {"id": 470, "type": "field_expression", "text": "raw->info.renderPass", "parent": 469, "children": [471, 474], "start_point": {"row": 125, "column": 1}, "end_point": {"row": 125, "column": 21}}, {"id": 471, "type": "field_expression", "text": "raw->info", "parent": 470, "children": [472, 473], "start_point": {"row": 125, "column": 1}, "end_point": {"row": 125, "column": 10}}, {"id": 472, "type": "identifier", "text": "raw", "parent": 471, "children": [], "start_point": {"row": 125, "column": 1}, "end_point": {"row": 125, "column": 4}}, {"id": 473, "type": "field_identifier", "text": "info", "parent": 471, "children": [], "start_point": {"row": 125, "column": 6}, "end_point": {"row": 125, "column": 10}}, {"id": 474, "type": "field_identifier", "text": "renderPass", "parent": 470, "children": [], "start_point": {"row": 125, "column": 11}, "end_point": {"row": 125, "column": 21}}, {"id": 475, "type": "=", "text": "=", "parent": 469, "children": [], "start_point": {"row": 125, "column": 22}, "end_point": {"row": 125, "column": 23}}, {"id": 476, "type": "identifier", "text": "VK_NULL_HANDLE", "parent": 469, "children": [], "start_point": {"row": 125, "column": 24}, "end_point": {"row": 125, "column": 38}}, {"id": 477, "type": "assignment_expression", "text": "raw->next = INVALID(Commandbuffer)", "parent": 332, "children": [478, 481, 482], "start_point": {"row": 126, "column": 1}, "end_point": {"row": 126, "column": 35}}, {"id": 478, "type": "field_expression", "text": "raw->next", "parent": 477, "children": [479, 480], "start_point": {"row": 126, "column": 1}, "end_point": {"row": 126, "column": 10}}, {"id": 479, "type": "identifier", "text": "raw", "parent": 478, "children": [], "start_point": {"row": 126, "column": 1}, "end_point": {"row": 126, "column": 4}}, {"id": 480, "type": "field_identifier", "text": "next", "parent": 478, "children": [], "start_point": {"row": 126, "column": 6}, "end_point": {"row": 126, "column": 10}}, {"id": 481, "type": "=", "text": "=", "parent": 477, "children": [], "start_point": {"row": 126, "column": 11}, "end_point": {"row": 126, "column": 12}}, {"id": 482, "type": "call_expression", "text": "INVALID(Commandbuffer)", "parent": 477, "children": [483, 484], "start_point": {"row": 126, "column": 13}, "end_point": {"row": 126, "column": 35}}, {"id": 483, "type": "identifier", "text": "INVALID", "parent": 482, "children": [], "start_point": {"row": 126, "column": 13}, "end_point": {"row": 126, "column": 20}}, {"id": 484, "type": "argument_list", "text": "(Commandbuffer)", "parent": 482, "children": [485], "start_point": {"row": 126, "column": 20}, "end_point": {"row": 126, "column": 35}}, {"id": 485, "type": "identifier", "text": "Commandbuffer", "parent": 484, "children": [], "start_point": {"row": 126, "column": 21}, "end_point": {"row": 126, "column": 34}}, {"id": 486, "type": "declaration", "text": "VkResult result = vkAllocateCommandBuffers(device, &allocInfo, &raw->cmd);", "parent": 332, "children": [487, 488], "start_point": {"row": 128, "column": 1}, "end_point": {"row": 128, "column": 75}}, {"id": 487, "type": "type_identifier", "text": "VkResult", "parent": 486, "children": [], "start_point": {"row": 128, "column": 1}, "end_point": {"row": 128, "column": 9}}, {"id": 488, "type": "init_declarator", "text": "result = vkAllocateCommandBuffers(device, &allocInfo, &raw->cmd)", "parent": 486, "children": [489, 490, 491], "start_point": {"row": 128, "column": 10}, "end_point": {"row": 128, "column": 74}}, {"id": 489, "type": "identifier", "text": "result", "parent": 488, "children": [], "start_point": {"row": 128, "column": 10}, "end_point": {"row": 128, "column": 16}}, {"id": 490, "type": "=", "text": "=", "parent": 488, "children": [], "start_point": {"row": 128, "column": 17}, "end_point": {"row": 128, "column": 18}}, {"id": 491, "type": "call_expression", "text": "vkAllocateCommandBuffers(device, &allocInfo, &raw->cmd)", "parent": 488, "children": [492, 493], "start_point": {"row": 128, "column": 19}, "end_point": {"row": 128, "column": 74}}, {"id": 492, "type": "identifier", "text": "vkAllocateCommandBuffers", "parent": 491, "children": [], "start_point": {"row": 128, "column": 19}, "end_point": {"row": 128, "column": 43}}, {"id": 493, "type": "argument_list", "text": "(device, &allocInfo, &raw->cmd)", "parent": 491, "children": [494, 495, 497], "start_point": {"row": 128, "column": 43}, "end_point": {"row": 128, "column": 74}}, {"id": 494, "type": "identifier", "text": "device", "parent": 493, "children": [], "start_point": {"row": 128, "column": 44}, "end_point": {"row": 128, "column": 50}}, {"id": 495, "type": "pointer_expression", "text": "&allocInfo", "parent": 493, "children": [496], "start_point": {"row": 128, "column": 52}, "end_point": {"row": 128, "column": 62}}, {"id": 496, "type": "identifier", "text": "allocInfo", "parent": 495, "children": [], "start_point": {"row": 128, "column": 53}, "end_point": {"row": 128, "column": 62}}, {"id": 497, "type": "pointer_expression", "text": "&raw->cmd", "parent": 493, "children": [498], "start_point": {"row": 128, "column": 64}, "end_point": {"row": 128, "column": 73}}, {"id": 498, "type": "field_expression", "text": "raw->cmd", "parent": 497, "children": [499, 500], "start_point": {"row": 128, "column": 65}, "end_point": {"row": 128, "column": 73}}, {"id": 499, "type": "identifier", "text": "raw", "parent": 498, "children": [], "start_point": {"row": 128, "column": 65}, "end_point": {"row": 128, "column": 68}}, {"id": 500, "type": "field_identifier", "text": "cmd", "parent": 498, "children": [], "start_point": {"row": 128, "column": 70}, "end_point": {"row": 128, "column": 73}}, {"id": 501, "type": "if_statement", "text": "if (result != VK_SUCCESS)\n\t{\n\t\tLOG_E(\"Failed to create command buffers - code %d\", result);\n\t\treturn INVALID(Commandbuffer);\n\t}", "parent": 332, "children": [502], "start_point": {"row": 130, "column": 1}, "end_point": {"row": 134, "column": 2}}, {"id": 502, "type": "parenthesized_expression", "text": "(result != VK_SUCCESS)", "parent": 501, "children": [503], "start_point": {"row": 130, "column": 4}, "end_point": {"row": 130, "column": 26}}, {"id": 503, "type": "binary_expression", "text": "result != VK_SUCCESS", "parent": 502, "children": [504, 505, 506], "start_point": {"row": 130, "column": 5}, "end_point": {"row": 130, "column": 25}}, {"id": 504, "type": "identifier", "text": "result", "parent": 503, "children": [], "start_point": {"row": 130, "column": 5}, "end_point": {"row": 130, "column": 11}}, {"id": 505, "type": "!=", "text": "!=", "parent": 503, "children": [], "start_point": {"row": 130, "column": 12}, "end_point": {"row": 130, "column": 14}}, {"id": 506, "type": "identifier", "text": "VK_SUCCESS", "parent": 503, "children": [], "start_point": {"row": 130, "column": 15}, "end_point": {"row": 130, "column": 25}}, {"id": 507, "type": "call_expression", "text": "LOG_E(\"Failed to create command buffers - code %d\", result)", "parent": 501, "children": [508, 509], "start_point": {"row": 132, "column": 2}, "end_point": {"row": 132, "column": 61}}, {"id": 508, "type": "identifier", "text": "LOG_E", "parent": 507, "children": [], "start_point": {"row": 132, "column": 2}, "end_point": {"row": 132, "column": 7}}, {"id": 509, "type": "argument_list", "text": "(\"Failed to create command buffers - code %d\", result)", "parent": 507, "children": [510, 511], "start_point": {"row": 132, "column": 7}, "end_point": {"row": 132, "column": 61}}, {"id": 510, "type": "string_literal", "text": "\"Failed to create command buffers - code %d\"", "parent": 509, "children": [], "start_point": {"row": 132, "column": 8}, "end_point": {"row": 132, "column": 52}}, {"id": 511, "type": "identifier", "text": "result", "parent": 509, "children": [], "start_point": {"row": 132, "column": 54}, "end_point": {"row": 132, "column": 60}}, {"id": 512, "type": "return_statement", "text": "return INVALID(Commandbuffer);", "parent": 501, "children": [513], "start_point": {"row": 133, "column": 2}, "end_point": {"row": 133, "column": 32}}, {"id": 513, "type": "call_expression", "text": "INVALID(Commandbuffer)", "parent": 512, "children": [514, 515], "start_point": {"row": 133, "column": 9}, "end_point": {"row": 133, "column": 31}}, {"id": 514, "type": "identifier", "text": "INVALID", "parent": 513, "children": [], "start_point": {"row": 133, "column": 9}, "end_point": {"row": 133, "column": 16}}, {"id": 515, "type": "argument_list", "text": "(Commandbuffer)", "parent": 513, "children": [516], "start_point": {"row": 133, "column": 16}, "end_point": {"row": 133, "column": 31}}, {"id": 516, "type": "identifier", "text": "Commandbuffer", "parent": 515, "children": [], "start_point": {"row": 133, "column": 17}, "end_point": {"row": 133, "column": 30}}, {"id": 517, "type": "declaration", "text": "VkFenceCreateInfo fence_info = {0};", "parent": 332, "children": [518, 519], "start_point": {"row": 137, "column": 1}, "end_point": {"row": 137, "column": 36}}, {"id": 518, "type": "type_identifier", "text": "VkFenceCreateInfo", "parent": 517, "children": [], "start_point": {"row": 137, "column": 1}, "end_point": {"row": 137, "column": 18}}, {"id": 519, "type": "init_declarator", "text": "fence_info = {0}", "parent": 517, "children": [520, 521, 522], "start_point": {"row": 137, "column": 19}, "end_point": {"row": 137, "column": 35}}, {"id": 520, "type": "identifier", "text": "fence_info", "parent": 519, "children": [], "start_point": {"row": 137, "column": 19}, "end_point": {"row": 137, "column": 29}}, {"id": 521, "type": "=", "text": "=", "parent": 519, "children": [], "start_point": {"row": 137, "column": 30}, "end_point": {"row": 137, "column": 31}}, {"id": 522, "type": "initializer_list", "text": "{0}", "parent": 519, "children": [523], "start_point": {"row": 137, "column": 32}, "end_point": {"row": 137, "column": 35}}, {"id": 523, "type": "number_literal", "text": "0", "parent": 522, "children": [], "start_point": {"row": 137, "column": 33}, "end_point": {"row": 137, "column": 34}}, {"id": 524, "type": "assignment_expression", "text": "fence_info.sType = VK_STRUCTURE_TYPE_FENCE_CREATE_INFO", "parent": 332, "children": [525, 528, 529], "start_point": {"row": 138, "column": 1}, "end_point": {"row": 138, "column": 55}}, {"id": 525, "type": "field_expression", "text": "fence_info.sType", "parent": 524, "children": [526, 527], "start_point": {"row": 138, "column": 1}, "end_point": {"row": 138, "column": 17}}, {"id": 526, "type": "identifier", "text": "fence_info", "parent": 525, "children": [], "start_point": {"row": 138, "column": 1}, "end_point": {"row": 138, "column": 11}}, {"id": 527, "type": "field_identifier", "text": "sType", "parent": 525, "children": [], "start_point": {"row": 138, "column": 12}, "end_point": {"row": 138, "column": 17}}, {"id": 528, "type": "=", "text": "=", "parent": 524, "children": [], "start_point": {"row": 138, "column": 18}, "end_point": {"row": 138, "column": 19}}, {"id": 529, "type": "identifier", "text": "VK_STRUCTURE_TYPE_FENCE_CREATE_INFO", "parent": 524, "children": [], "start_point": {"row": 138, "column": 20}, "end_point": {"row": 138, "column": 55}}, {"id": 530, "type": "assignment_expression", "text": "fence_info.flags = VK_FENCE_CREATE_SIGNALED_BIT", "parent": 332, "children": [531, 534, 535], "start_point": {"row": 139, "column": 1}, "end_point": {"row": 139, "column": 48}}, {"id": 531, "type": "field_expression", "text": "fence_info.flags", "parent": 530, "children": [532, 533], "start_point": {"row": 139, "column": 1}, "end_point": {"row": 139, "column": 17}}, {"id": 532, "type": "identifier", "text": "fence_info", "parent": 531, "children": [], "start_point": {"row": 139, "column": 1}, "end_point": {"row": 139, "column": 11}}, {"id": 533, "type": "field_identifier", "text": "flags", "parent": 531, "children": [], "start_point": {"row": 139, "column": 12}, "end_point": {"row": 139, "column": 17}}, {"id": 534, "type": "=", "text": "=", "parent": 530, "children": [], "start_point": {"row": 139, "column": 18}, "end_point": {"row": 139, "column": 19}}, {"id": 535, "type": "identifier", "text": "VK_FENCE_CREATE_SIGNALED_BIT", "parent": 530, "children": [], "start_point": {"row": 139, "column": 20}, "end_point": {"row": 139, "column": 48}}, {"id": 536, "type": "assignment_expression", "text": "result = vkCreateFence(device, &fence_info, NULL, &raw->fence)", "parent": 332, "children": [537, 538, 539], "start_point": {"row": 141, "column": 1}, "end_point": {"row": 141, "column": 63}}, {"id": 537, "type": "identifier", "text": "result", "parent": 536, "children": [], "start_point": {"row": 141, "column": 1}, "end_point": {"row": 141, "column": 7}}, {"id": 538, "type": "=", "text": "=", "parent": 536, "children": [], "start_point": {"row": 141, "column": 8}, "end_point": {"row": 141, "column": 9}}, {"id": 539, "type": "call_expression", "text": "vkCreateFence(device, &fence_info, NULL, &raw->fence)", "parent": 536, "children": [540, 541], "start_point": {"row": 141, "column": 10}, "end_point": {"row": 141, "column": 63}}, {"id": 540, "type": "identifier", "text": "vkCreateFence", "parent": 539, "children": [], "start_point": {"row": 141, "column": 10}, "end_point": {"row": 141, "column": 23}}, {"id": 541, "type": "argument_list", "text": "(device, &fence_info, NULL, &raw->fence)", "parent": 539, "children": [542, 543, 545, 547], "start_point": {"row": 141, "column": 23}, "end_point": {"row": 141, "column": 63}}, {"id": 542, "type": "identifier", "text": "device", "parent": 541, "children": [], "start_point": {"row": 141, "column": 24}, "end_point": {"row": 141, "column": 30}}, {"id": 543, "type": "pointer_expression", "text": "&fence_info", "parent": 541, "children": [544], "start_point": {"row": 141, "column": 32}, "end_point": {"row": 141, "column": 43}}, {"id": 544, "type": "identifier", "text": "fence_info", "parent": 543, "children": [], "start_point": {"row": 141, "column": 33}, "end_point": {"row": 141, "column": 43}}, {"id": 545, "type": "null", "text": "NULL", "parent": 541, "children": [546], "start_point": {"row": 141, "column": 45}, "end_point": {"row": 141, "column": 49}}, {"id": 546, "type": "NULL", "text": "NULL", "parent": 545, "children": [], "start_point": {"row": 141, "column": 45}, "end_point": {"row": 141, "column": 49}}, {"id": 547, "type": "pointer_expression", "text": "&raw->fence", "parent": 541, "children": [548], "start_point": {"row": 141, "column": 51}, "end_point": {"row": 141, "column": 62}}, {"id": 548, "type": "field_expression", "text": "raw->fence", "parent": 547, "children": [549, 550], "start_point": {"row": 141, "column": 52}, "end_point": {"row": 141, "column": 62}}, {"id": 549, "type": "identifier", "text": "raw", "parent": 548, "children": [], "start_point": {"row": 141, "column": 52}, "end_point": {"row": 141, "column": 55}}, {"id": 550, "type": "field_identifier", "text": "fence", "parent": 548, "children": [], "start_point": {"row": 141, "column": 57}, "end_point": {"row": 141, "column": 62}}, {"id": 551, "type": "if_statement", "text": "if (result != VK_SUCCESS)\n\t{\n\t\tLOG_E(\"Failed to create command buffer fence - code %d\", result);\n\t\treturn INVALID(Commandbuffer);\n\t}", "parent": 332, "children": [552], "start_point": {"row": 142, "column": 1}, "end_point": {"row": 146, "column": 2}}, {"id": 552, "type": "parenthesized_expression", "text": "(result != VK_SUCCESS)", "parent": 551, "children": [553], "start_point": {"row": 142, "column": 4}, "end_point": {"row": 142, "column": 26}}, {"id": 553, "type": "binary_expression", "text": "result != VK_SUCCESS", "parent": 552, "children": [554, 555, 556], "start_point": {"row": 142, "column": 5}, "end_point": {"row": 142, "column": 25}}, {"id": 554, "type": "identifier", "text": "result", "parent": 553, "children": [], "start_point": {"row": 142, "column": 5}, "end_point": {"row": 142, "column": 11}}, {"id": 555, "type": "!=", "text": "!=", "parent": 553, "children": [], "start_point": {"row": 142, "column": 12}, "end_point": {"row": 142, "column": 14}}, {"id": 556, "type": "identifier", "text": "VK_SUCCESS", "parent": 553, "children": [], "start_point": {"row": 142, "column": 15}, "end_point": {"row": 142, "column": 25}}, {"id": 557, "type": "call_expression", "text": "LOG_E(\"Failed to create command buffer fence - code %d\", result)", "parent": 551, "children": [558, 559], "start_point": {"row": 144, "column": 2}, "end_point": {"row": 144, "column": 66}}, {"id": 558, "type": "identifier", "text": "LOG_E", "parent": 557, "children": [], "start_point": {"row": 144, "column": 2}, "end_point": {"row": 144, "column": 7}}, {"id": 559, "type": "argument_list", "text": "(\"Failed to create command buffer fence - code %d\", result)", "parent": 557, "children": [560, 561], "start_point": {"row": 144, "column": 7}, "end_point": {"row": 144, "column": 66}}, {"id": 560, "type": "string_literal", "text": "\"Failed to create command buffer fence - code %d\"", "parent": 559, "children": [], "start_point": {"row": 144, "column": 8}, "end_point": {"row": 144, "column": 57}}, {"id": 561, "type": "identifier", "text": "result", "parent": 559, "children": [], "start_point": {"row": 144, "column": 59}, "end_point": {"row": 144, "column": 65}}, {"id": 562, "type": "return_statement", "text": "return INVALID(Commandbuffer);", "parent": 551, "children": [563], "start_point": {"row": 145, "column": 2}, "end_point": {"row": 145, "column": 32}}, {"id": 563, "type": "call_expression", "text": "INVALID(Commandbuffer)", "parent": 562, "children": [564, 565], "start_point": {"row": 145, "column": 9}, "end_point": {"row": 145, "column": 31}}, {"id": 564, "type": "identifier", "text": "INVALID", "parent": 563, "children": [], "start_point": {"row": 145, "column": 9}, "end_point": {"row": 145, "column": 16}}, {"id": 565, "type": "argument_list", "text": "(Commandbuffer)", "parent": 563, "children": [566], "start_point": {"row": 145, "column": 16}, "end_point": {"row": 145, "column": 31}}, {"id": 566, "type": "identifier", "text": "Commandbuffer", "parent": 565, "children": [], "start_point": {"row": 145, "column": 17}, "end_point": {"row": 145, "column": 30}}, {"id": 567, "type": "return_statement", "text": "return handle;", "parent": 332, "children": [568], "start_point": {"row": 148, "column": 1}, "end_point": {"row": 148, "column": 15}}, {"id": 568, "type": "identifier", "text": "handle", "parent": 567, "children": [], "start_point": {"row": 148, "column": 8}, "end_point": {"row": 148, "column": 14}}, {"id": 569, "type": "function_definition", "text": "void commandbuffer_set_info(Commandbuffer commandbuffer, Commandbuffer primary, VkRenderPass renderPass, Framebuffer framebuffer)\n{\n\tCommandbuffer_raw* raw = handlepool_get_raw(&handlepool, commandbuffer);\n\tif (HANDLE_VALID(primary))\n\t\traw->fence = commandbuffer_fence(primary);\n\telse\n\t\traw->fence = VK_NULL_HANDLE;\n\n\traw->info.renderPass = renderPass;\n\traw->info.framebuffer = framebuffer;\n}", "parent": null, "children": [570, 571], "start_point": {"row": 151, "column": 0}, "end_point": {"row": 161, "column": 1}}, {"id": 570, "type": "primitive_type", "text": "void", "parent": 569, "children": [], "start_point": {"row": 151, "column": 0}, "end_point": {"row": 151, "column": 4}}, {"id": 571, "type": "function_declarator", "text": "commandbuffer_set_info(Commandbuffer commandbuffer, Commandbuffer primary, VkRenderPass renderPass, Framebuffer framebuffer)", "parent": 569, "children": [572, 573], "start_point": {"row": 151, "column": 5}, "end_point": {"row": 151, "column": 129}}, {"id": 572, "type": "identifier", "text": "commandbuffer_set_info", "parent": 571, "children": [], "start_point": {"row": 151, "column": 5}, "end_point": {"row": 151, "column": 27}}, {"id": 573, "type": "parameter_list", "text": "(Commandbuffer commandbuffer, Commandbuffer primary, VkRenderPass renderPass, Framebuffer framebuffer)", "parent": 571, "children": [574, 577, 580, 583], "start_point": {"row": 151, "column": 27}, "end_point": {"row": 151, "column": 129}}, {"id": 574, "type": "parameter_declaration", "text": "Commandbuffer commandbuffer", "parent": 573, "children": [575, 576], "start_point": {"row": 151, "column": 28}, "end_point": {"row": 151, "column": 55}}, {"id": 575, "type": "type_identifier", "text": "Commandbuffer", "parent": 574, "children": [], "start_point": {"row": 151, "column": 28}, "end_point": {"row": 151, "column": 41}}, {"id": 576, "type": "identifier", "text": "commandbuffer", "parent": 574, "children": [], "start_point": {"row": 151, "column": 42}, "end_point": {"row": 151, "column": 55}}, {"id": 577, "type": "parameter_declaration", "text": "Commandbuffer primary", "parent": 573, "children": [578, 579], "start_point": {"row": 151, "column": 57}, "end_point": {"row": 151, "column": 78}}, {"id": 578, "type": "type_identifier", "text": "Commandbuffer", "parent": 577, "children": [], "start_point": {"row": 151, "column": 57}, "end_point": {"row": 151, "column": 70}}, {"id": 579, "type": "identifier", "text": "primary", "parent": 577, "children": [], "start_point": {"row": 151, "column": 71}, "end_point": {"row": 151, "column": 78}}, {"id": 580, "type": "parameter_declaration", "text": "VkRenderPass renderPass", "parent": 573, "children": [581, 582], "start_point": {"row": 151, "column": 80}, "end_point": {"row": 151, "column": 103}}, {"id": 581, "type": "type_identifier", "text": "VkRenderPass", "parent": 580, "children": [], "start_point": {"row": 151, "column": 80}, "end_point": {"row": 151, "column": 92}}, {"id": 582, "type": "identifier", "text": "renderPass", "parent": 580, "children": [], "start_point": {"row": 151, "column": 93}, "end_point": {"row": 151, "column": 103}}, {"id": 583, "type": "parameter_declaration", "text": "Framebuffer framebuffer", "parent": 573, "children": [584, 585], "start_point": {"row": 151, "column": 105}, "end_point": {"row": 151, "column": 128}}, {"id": 584, "type": "type_identifier", "text": "Framebuffer", "parent": 583, "children": [], "start_point": {"row": 151, "column": 105}, "end_point": {"row": 151, "column": 116}}, {"id": 585, "type": "identifier", "text": "framebuffer", "parent": 583, "children": [], "start_point": {"row": 151, "column": 117}, "end_point": {"row": 151, "column": 128}}, {"id": 586, "type": "declaration", "text": "Commandbuffer_raw* raw = handlepool_get_raw(&handlepool, commandbuffer);", "parent": 569, "children": [587, 588], "start_point": {"row": 153, "column": 1}, "end_point": {"row": 153, "column": 73}}, {"id": 587, "type": "type_identifier", "text": "Commandbuffer_raw", "parent": 586, "children": [], "start_point": {"row": 153, "column": 1}, "end_point": {"row": 153, "column": 18}}, {"id": 588, "type": "init_declarator", "text": "* raw = handlepool_get_raw(&handlepool, commandbuffer)", "parent": 586, "children": [589, 592, 593], "start_point": {"row": 153, "column": 18}, "end_point": {"row": 153, "column": 72}}, {"id": 589, "type": "pointer_declarator", "text": "* raw", "parent": 588, "children": [590, 591], "start_point": {"row": 153, "column": 18}, "end_point": {"row": 153, "column": 23}}, {"id": 590, "type": "*", "text": "*", "parent": 589, "children": [], "start_point": {"row": 153, "column": 18}, "end_point": {"row": 153, "column": 19}}, {"id": 591, "type": "identifier", "text": "raw", "parent": 589, "children": [], "start_point": {"row": 153, "column": 20}, "end_point": {"row": 153, "column": 23}}, {"id": 592, "type": "=", "text": "=", "parent": 588, "children": [], "start_point": {"row": 153, "column": 24}, "end_point": {"row": 153, "column": 25}}, {"id": 593, "type": "call_expression", "text": "handlepool_get_raw(&handlepool, commandbuffer)", "parent": 588, "children": [594, 595], "start_point": {"row": 153, "column": 26}, "end_point": {"row": 153, "column": 72}}, {"id": 594, "type": "identifier", "text": "handlepool_get_raw", "parent": 593, "children": [], "start_point": {"row": 153, "column": 26}, "end_point": {"row": 153, "column": 44}}, {"id": 595, "type": "argument_list", "text": "(&handlepool, commandbuffer)", "parent": 593, "children": [596, 598], "start_point": {"row": 153, "column": 44}, "end_point": {"row": 153, "column": 72}}, {"id": 596, "type": "pointer_expression", "text": "&handlepool", "parent": 595, "children": [597], "start_point": {"row": 153, "column": 45}, "end_point": {"row": 153, "column": 56}}, {"id": 597, "type": "identifier", "text": "handlepool", "parent": 596, "children": [], "start_point": {"row": 153, "column": 46}, "end_point": {"row": 153, "column": 56}}, {"id": 598, "type": "identifier", "text": "commandbuffer", "parent": 595, "children": [], "start_point": {"row": 153, "column": 58}, "end_point": {"row": 153, "column": 71}}, {"id": 599, "type": "if_statement", "text": "if (HANDLE_VALID(primary))\n\t\traw->fence = commandbuffer_fence(primary);\n\telse\n\t\traw->fence = VK_NULL_HANDLE;", "parent": 569, "children": [600, 614], "start_point": {"row": 154, "column": 1}, "end_point": {"row": 157, "column": 30}}, {"id": 600, "type": "parenthesized_expression", "text": "(HANDLE_VALID(primary))", "parent": 599, "children": [601], "start_point": {"row": 154, "column": 4}, "end_point": {"row": 154, "column": 27}}, {"id": 601, "type": "call_expression", "text": "HANDLE_VALID(primary)", "parent": 600, "children": [602, 603], "start_point": {"row": 154, "column": 5}, "end_point": {"row": 154, "column": 26}}, {"id": 602, "type": "identifier", "text": "HANDLE_VALID", "parent": 601, "children": [], "start_point": {"row": 154, "column": 5}, "end_point": {"row": 154, "column": 17}}, {"id": 603, "type": "argument_list", "text": "(primary)", "parent": 601, "children": [604], "start_point": {"row": 154, "column": 17}, "end_point": {"row": 154, "column": 26}}, {"id": 604, "type": "identifier", "text": "primary", "parent": 603, "children": [], "start_point": {"row": 154, "column": 18}, "end_point": {"row": 154, "column": 25}}, {"id": 605, "type": "assignment_expression", "text": "raw->fence = commandbuffer_fence(primary)", "parent": 599, "children": [606, 609, 610], "start_point": {"row": 155, "column": 2}, "end_point": {"row": 155, "column": 43}}, {"id": 606, "type": "field_expression", "text": "raw->fence", "parent": 605, "children": [607, 608], "start_point": {"row": 155, "column": 2}, "end_point": {"row": 155, "column": 12}}, {"id": 607, "type": "identifier", "text": "raw", "parent": 606, "children": [], "start_point": {"row": 155, "column": 2}, "end_point": {"row": 155, "column": 5}}, {"id": 608, "type": "field_identifier", "text": "fence", "parent": 606, "children": [], "start_point": {"row": 155, "column": 7}, "end_point": {"row": 155, "column": 12}}, {"id": 609, "type": "=", "text": "=", "parent": 605, "children": [], "start_point": {"row": 155, "column": 13}, "end_point": {"row": 155, "column": 14}}, {"id": 610, "type": "call_expression", "text": "commandbuffer_fence(primary)", "parent": 605, "children": [611, 612], "start_point": {"row": 155, "column": 15}, "end_point": {"row": 155, "column": 43}}, {"id": 611, "type": "identifier", "text": "commandbuffer_fence", "parent": 610, "children": [], "start_point": {"row": 155, "column": 15}, "end_point": {"row": 155, "column": 34}}, {"id": 612, "type": "argument_list", "text": "(primary)", "parent": 610, "children": [613], "start_point": {"row": 155, "column": 34}, "end_point": {"row": 155, "column": 43}}, {"id": 613, "type": "identifier", "text": "primary", "parent": 612, "children": [], "start_point": {"row": 155, "column": 35}, "end_point": {"row": 155, "column": 42}}, {"id": 614, "type": "else_clause", "text": "else\n\t\traw->fence = VK_NULL_HANDLE;", "parent": 599, "children": [], "start_point": {"row": 156, "column": 1}, "end_point": {"row": 157, "column": 30}}, {"id": 615, "type": "assignment_expression", "text": "raw->fence = VK_NULL_HANDLE", "parent": 614, "children": [616, 619, 620], "start_point": {"row": 157, "column": 2}, "end_point": {"row": 157, "column": 29}}, {"id": 616, "type": "field_expression", "text": "raw->fence", "parent": 615, "children": [617, 618], "start_point": {"row": 157, "column": 2}, "end_point": {"row": 157, "column": 12}}, {"id": 617, "type": "identifier", "text": "raw", "parent": 616, "children": [], "start_point": {"row": 157, "column": 2}, "end_point": {"row": 157, "column": 5}}, {"id": 618, "type": "field_identifier", "text": "fence", "parent": 616, "children": [], "start_point": {"row": 157, "column": 7}, "end_point": {"row": 157, "column": 12}}, {"id": 619, "type": "=", "text": "=", "parent": 615, "children": [], "start_point": {"row": 157, "column": 13}, "end_point": {"row": 157, "column": 14}}, {"id": 620, "type": "identifier", "text": "VK_NULL_HANDLE", "parent": 615, "children": [], "start_point": {"row": 157, "column": 15}, "end_point": {"row": 157, "column": 29}}, {"id": 621, "type": "assignment_expression", "text": "raw->info.renderPass = renderPass", "parent": 569, "children": [622, 627, 628], "start_point": {"row": 159, "column": 1}, "end_point": {"row": 159, "column": 34}}, {"id": 622, "type": "field_expression", "text": "raw->info.renderPass", "parent": 621, "children": [623, 626], "start_point": {"row": 159, "column": 1}, "end_point": {"row": 159, "column": 21}}, {"id": 623, "type": "field_expression", "text": "raw->info", "parent": 622, "children": [624, 625], "start_point": {"row": 159, "column": 1}, "end_point": {"row": 159, "column": 10}}, {"id": 624, "type": "identifier", "text": "raw", "parent": 623, "children": [], "start_point": {"row": 159, "column": 1}, "end_point": {"row": 159, "column": 4}}, {"id": 625, "type": "field_identifier", "text": "info", "parent": 623, "children": [], "start_point": {"row": 159, "column": 6}, "end_point": {"row": 159, "column": 10}}, {"id": 626, "type": "field_identifier", "text": "renderPass", "parent": 622, "children": [], "start_point": {"row": 159, "column": 11}, "end_point": {"row": 159, "column": 21}}, {"id": 627, "type": "=", "text": "=", "parent": 621, "children": [], "start_point": {"row": 159, "column": 22}, "end_point": {"row": 159, "column": 23}}, {"id": 628, "type": "identifier", "text": "renderPass", "parent": 621, "children": [], "start_point": {"row": 159, "column": 24}, "end_point": {"row": 159, "column": 34}}, {"id": 629, "type": "assignment_expression", "text": "raw->info.framebuffer = framebuffer", "parent": 569, "children": [630, 635, 636], "start_point": {"row": 160, "column": 1}, "end_point": {"row": 160, "column": 36}}, {"id": 630, "type": "field_expression", "text": "raw->info.framebuffer", "parent": 629, "children": [631, 634], "start_point": {"row": 160, "column": 1}, "end_point": {"row": 160, "column": 22}}, {"id": 631, "type": "field_expression", "text": "raw->info", "parent": 630, "children": [632, 633], "start_point": {"row": 160, "column": 1}, "end_point": {"row": 160, "column": 10}}, {"id": 632, "type": "identifier", "text": "raw", "parent": 631, "children": [], "start_point": {"row": 160, "column": 1}, "end_point": {"row": 160, "column": 4}}, {"id": 633, "type": "field_identifier", "text": "info", "parent": 631, "children": [], "start_point": {"row": 160, "column": 6}, "end_point": {"row": 160, "column": 10}}, {"id": 634, "type": "field_identifier", "text": "framebuffer", "parent": 630, "children": [], "start_point": {"row": 160, "column": 11}, "end_point": {"row": 160, "column": 22}}, {"id": 635, "type": "=", "text": "=", "parent": 629, "children": [], "start_point": {"row": 160, "column": 23}, "end_point": {"row": 160, "column": 24}}, {"id": 636, "type": "identifier", "text": "framebuffer", "parent": 629, "children": [], "start_point": {"row": 160, "column": 25}, "end_point": {"row": 160, "column": 36}}, {"id": 637, "type": "function_definition", "text": "void commandbuffer_begin(Commandbuffer commandbuffer)\n{\n\tCommandbuffer_raw* raw = handlepool_get_raw(&handlepool, commandbuffer);\n\n\tvkResetCommandBuffer(raw->cmd, 0);\n\tVkCommandBufferBeginInfo begin_info = {0};\n\tVkCommandBufferInheritanceInfo inheritanceInfo = (VkCommandBufferInheritanceInfo){0};\n\tif (raw->level == VK_COMMAND_BUFFER_LEVEL_SECONDARY)\n\t{\n\t\tinheritanceInfo = (VkCommandBufferInheritanceInfo){\n\t\t\t.sType = VK_STRUCTURE_TYPE_COMMAND_BUFFER_INHERITANCE_INFO,\n\t\t\t.pNext = NULL,\n\t\t\t.renderPass = raw->info.renderPass,\n\t\t\t.subpass = 0,\n\t\t\t.framebuffer = framebuffer_vk(raw->info.framebuffer),\n\t\t\t.queryFlags = 0,\n\t\t\t.pipelineStatistics = 0};\n\n\t\tbegin_info.sType = VK_STRUCTURE_TYPE_COMMAND_BUFFER_BEGIN_INFO;\n\t\tbegin_info.flags = VK_COMMAND_BUFFER_USAGE_RENDER_PASS_CONTINUE_BIT;\n\t\tbegin_info.pInheritanceInfo = &inheritanceInfo;\n\n\t\t// Start recording\n\t}\n\telse if (raw->level == VK_COMMAND_BUFFER_LEVEL_PRIMARY)\n\t{\n\t\tbegin_info.sType = VK_STRUCTURE_TYPE_COMMAND_BUFFER_BEGIN_INFO;\n\t\tbegin_info.flags = 0;\n\t\tbegin_info.pInheritanceInfo = NULL;\n\t}\n\n\tVkResult result = vkBeginCommandBuffer(raw->cmd, &begin_info);\n\tif (result != VK_SUCCESS)\n\t{\n\t\tLOG_E(\"Failed to start recording of command buffer\");\n\t}\n\traw->recording = true;\n}", "parent": null, "children": [638, 639], "start_point": {"row": 163, "column": 0}, "end_point": {"row": 200, "column": 1}}, {"id": 638, "type": "primitive_type", "text": "void", "parent": 637, "children": [], "start_point": {"row": 163, "column": 0}, "end_point": {"row": 163, "column": 4}}, {"id": 639, "type": "function_declarator", "text": "commandbuffer_begin(Commandbuffer commandbuffer)", "parent": 637, "children": [640, 641], "start_point": {"row": 163, "column": 5}, "end_point": {"row": 163, "column": 53}}, {"id": 640, "type": "identifier", "text": "commandbuffer_begin", "parent": 639, "children": [], "start_point": {"row": 163, "column": 5}, "end_point": {"row": 163, "column": 24}}, {"id": 641, "type": "parameter_list", "text": "(Commandbuffer commandbuffer)", "parent": 639, "children": [642], "start_point": {"row": 163, "column": 24}, "end_point": {"row": 163, "column": 53}}, {"id": 642, "type": "parameter_declaration", "text": "Commandbuffer commandbuffer", "parent": 641, "children": [643, 644], "start_point": {"row": 163, "column": 25}, "end_point": {"row": 163, "column": 52}}, {"id": 643, "type": "type_identifier", "text": "Commandbuffer", "parent": 642, "children": [], "start_point": {"row": 163, "column": 25}, "end_point": {"row": 163, "column": 38}}, {"id": 644, "type": "identifier", "text": "commandbuffer", "parent": 642, "children": [], "start_point": {"row": 163, "column": 39}, "end_point": {"row": 163, "column": 52}}, {"id": 645, "type": "declaration", "text": "Commandbuffer_raw* raw = handlepool_get_raw(&handlepool, commandbuffer);", "parent": 637, "children": [646, 647], "start_point": {"row": 165, "column": 1}, "end_point": {"row": 165, "column": 73}}, {"id": 646, "type": "type_identifier", "text": "Commandbuffer_raw", "parent": 645, "children": [], "start_point": {"row": 165, "column": 1}, "end_point": {"row": 165, "column": 18}}, {"id": 647, "type": "init_declarator", "text": "* raw = handlepool_get_raw(&handlepool, commandbuffer)", "parent": 645, "children": [648, 651, 652], "start_point": {"row": 165, "column": 18}, "end_point": {"row": 165, "column": 72}}, {"id": 648, "type": "pointer_declarator", "text": "* raw", "parent": 647, "children": [649, 650], "start_point": {"row": 165, "column": 18}, "end_point": {"row": 165, "column": 23}}, {"id": 649, "type": "*", "text": "*", "parent": 648, "children": [], "start_point": {"row": 165, "column": 18}, "end_point": {"row": 165, "column": 19}}, {"id": 650, "type": "identifier", "text": "raw", "parent": 648, "children": [], "start_point": {"row": 165, "column": 20}, "end_point": {"row": 165, "column": 23}}, {"id": 651, "type": "=", "text": "=", "parent": 647, "children": [], "start_point": {"row": 165, "column": 24}, "end_point": {"row": 165, "column": 25}}, {"id": 652, "type": "call_expression", "text": "handlepool_get_raw(&handlepool, commandbuffer)", "parent": 647, "children": [653, 654], "start_point": {"row": 165, "column": 26}, "end_point": {"row": 165, "column": 72}}, {"id": 653, "type": "identifier", "text": "handlepool_get_raw", "parent": 652, "children": [], "start_point": {"row": 165, "column": 26}, "end_point": {"row": 165, "column": 44}}, {"id": 654, "type": "argument_list", "text": "(&handlepool, commandbuffer)", "parent": 652, "children": [655, 657], "start_point": {"row": 165, "column": 44}, "end_point": {"row": 165, "column": 72}}, {"id": 655, "type": "pointer_expression", "text": "&handlepool", "parent": 654, "children": [656], "start_point": {"row": 165, "column": 45}, "end_point": {"row": 165, "column": 56}}, {"id": 656, "type": "identifier", "text": "handlepool", "parent": 655, "children": [], "start_point": {"row": 165, "column": 46}, "end_point": {"row": 165, "column": 56}}, {"id": 657, "type": "identifier", "text": "commandbuffer", "parent": 654, "children": [], "start_point": {"row": 165, "column": 58}, "end_point": {"row": 165, "column": 71}}, {"id": 658, "type": "call_expression", "text": "vkResetCommandBuffer(raw->cmd, 0)", "parent": 637, "children": [659, 660], "start_point": {"row": 167, "column": 1}, "end_point": {"row": 167, "column": 34}}, {"id": 659, "type": "identifier", "text": "vkResetCommandBuffer", "parent": 658, "children": [], "start_point": {"row": 167, "column": 1}, "end_point": {"row": 167, "column": 21}}, {"id": 660, "type": "argument_list", "text": "(raw->cmd, 0)", "parent": 658, "children": [661, 664], "start_point": {"row": 167, "column": 21}, "end_point": {"row": 167, "column": 34}}, {"id": 661, "type": "field_expression", "text": "raw->cmd", "parent": 660, "children": [662, 663], "start_point": {"row": 167, "column": 22}, "end_point": {"row": 167, "column": 30}}, {"id": 662, "type": "identifier", "text": "raw", "parent": 661, "children": [], "start_point": {"row": 167, "column": 22}, "end_point": {"row": 167, "column": 25}}, {"id": 663, "type": "field_identifier", "text": "cmd", "parent": 661, "children": [], "start_point": {"row": 167, "column": 27}, "end_point": {"row": 167, "column": 30}}, {"id": 664, "type": "number_literal", "text": "0", "parent": 660, "children": [], "start_point": {"row": 167, "column": 32}, "end_point": {"row": 167, "column": 33}}, {"id": 665, "type": "declaration", "text": "VkCommandBufferBeginInfo begin_info = {0};", "parent": 637, "children": [666, 667], "start_point": {"row": 168, "column": 1}, "end_point": {"row": 168, "column": 43}}, {"id": 666, "type": "type_identifier", "text": "VkCommandBufferBeginInfo", "parent": 665, "children": [], "start_point": {"row": 168, "column": 1}, "end_point": {"row": 168, "column": 25}}, {"id": 667, "type": "init_declarator", "text": "begin_info = {0}", "parent": 665, "children": [668, 669, 670], "start_point": {"row": 168, "column": 26}, "end_point": {"row": 168, "column": 42}}, {"id": 668, "type": "identifier", "text": "begin_info", "parent": 667, "children": [], "start_point": {"row": 168, "column": 26}, "end_point": {"row": 168, "column": 36}}, {"id": 669, "type": "=", "text": "=", "parent": 667, "children": [], "start_point": {"row": 168, "column": 37}, "end_point": {"row": 168, "column": 38}}, {"id": 670, "type": "initializer_list", "text": "{0}", "parent": 667, "children": [671], "start_point": {"row": 168, "column": 39}, "end_point": {"row": 168, "column": 42}}, {"id": 671, "type": "number_literal", "text": "0", "parent": 670, "children": [], "start_point": {"row": 168, "column": 40}, "end_point": {"row": 168, "column": 41}}, {"id": 672, "type": "declaration", "text": "VkCommandBufferInheritanceInfo inheritanceInfo = (VkCommandBufferInheritanceInfo){0};", "parent": 637, "children": [673, 674], "start_point": {"row": 169, "column": 1}, "end_point": {"row": 169, "column": 86}}, {"id": 673, "type": "type_identifier", "text": "VkCommandBufferInheritanceInfo", "parent": 672, "children": [], "start_point": {"row": 169, "column": 1}, "end_point": {"row": 169, "column": 31}}, {"id": 674, "type": "init_declarator", "text": "inheritanceInfo = (VkCommandBufferInheritanceInfo){0}", "parent": 672, "children": [675, 676, 677], "start_point": {"row": 169, "column": 32}, "end_point": {"row": 169, "column": 85}}, {"id": 675, "type": "identifier", "text": "inheritanceInfo", "parent": 674, "children": [], "start_point": {"row": 169, "column": 32}, "end_point": {"row": 169, "column": 47}}, {"id": 676, "type": "=", "text": "=", "parent": 674, "children": [], "start_point": {"row": 169, "column": 48}, "end_point": {"row": 169, "column": 49}}, {"id": 677, "type": "compound_literal_expression", "text": "(VkCommandBufferInheritanceInfo){0}", "parent": 674, "children": [678, 680], "start_point": {"row": 169, "column": 50}, "end_point": {"row": 169, "column": 85}}, {"id": 678, "type": "type_descriptor", "text": "VkCommandBufferInheritanceInfo", "parent": 677, "children": [679], "start_point": {"row": 169, "column": 51}, "end_point": {"row": 169, "column": 81}}, {"id": 679, "type": "type_identifier", "text": "VkCommandBufferInheritanceInfo", "parent": 678, "children": [], "start_point": {"row": 169, "column": 51}, "end_point": {"row": 169, "column": 81}}, {"id": 680, "type": "initializer_list", "text": "{0}", "parent": 677, "children": [681], "start_point": {"row": 169, "column": 82}, "end_point": {"row": 169, "column": 85}}, {"id": 681, "type": "number_literal", "text": "0", "parent": 680, "children": [], "start_point": {"row": 169, "column": 83}, "end_point": {"row": 169, "column": 84}}, {"id": 682, "type": "if_statement", "text": "if (raw->level == VK_COMMAND_BUFFER_LEVEL_SECONDARY)\n\t{\n\t\tinheritanceInfo = (VkCommandBufferInheritanceInfo){\n\t\t\t.sType = VK_STRUCTURE_TYPE_COMMAND_BUFFER_INHERITANCE_INFO,\n\t\t\t.pNext = NULL,\n\t\t\t.renderPass = raw->info.renderPass,\n\t\t\t.subpass = 0,\n\t\t\t.framebuffer = framebuffer_vk(raw->info.framebuffer),\n\t\t\t.queryFlags = 0,\n\t\t\t.pipelineStatistics = 0};\n\n\t\tbegin_info.sType = VK_STRUCTURE_TYPE_COMMAND_BUFFER_BEGIN_INFO;\n\t\tbegin_info.flags = VK_COMMAND_BUFFER_USAGE_RENDER_PASS_CONTINUE_BIT;\n\t\tbegin_info.pInheritanceInfo = &inheritanceInfo;\n\n\t\t// Start recording\n\t}\n\telse if (raw->level == VK_COMMAND_BUFFER_LEVEL_PRIMARY)\n\t{\n\t\tbegin_info.sType = VK_STRUCTURE_TYPE_COMMAND_BUFFER_BEGIN_INFO;\n\t\tbegin_info.flags = 0;\n\t\tbegin_info.pInheritanceInfo = NULL;\n\t}", "parent": 637, "children": [683, 763], "start_point": {"row": 170, "column": 1}, "end_point": {"row": 192, "column": 2}}, {"id": 683, "type": "parenthesized_expression", "text": "(raw->level == VK_COMMAND_BUFFER_LEVEL_SECONDARY)", "parent": 682, "children": [684], "start_point": {"row": 170, "column": 4}, "end_point": {"row": 170, "column": 53}}, {"id": 684, "type": "binary_expression", "text": "raw->level == VK_COMMAND_BUFFER_LEVEL_SECONDARY", "parent": 683, "children": [685, 688, 689], "start_point": {"row": 170, "column": 5}, "end_point": {"row": 170, "column": 52}}, {"id": 685, "type": "field_expression", "text": "raw->level", "parent": 684, "children": [686, 687], "start_point": {"row": 170, "column": 5}, "end_point": {"row": 170, "column": 15}}, {"id": 686, "type": "identifier", "text": "raw", "parent": 685, "children": [], "start_point": {"row": 170, "column": 5}, "end_point": {"row": 170, "column": 8}}, {"id": 687, "type": "field_identifier", "text": "level", "parent": 685, "children": [], "start_point": {"row": 170, "column": 10}, "end_point": {"row": 170, "column": 15}}, {"id": 688, "type": "==", "text": "==", "parent": 684, "children": [], "start_point": {"row": 170, "column": 16}, "end_point": {"row": 170, "column": 18}}, {"id": 689, "type": "identifier", "text": "VK_COMMAND_BUFFER_LEVEL_SECONDARY", "parent": 684, "children": [], "start_point": {"row": 170, "column": 19}, "end_point": {"row": 170, "column": 52}}, {"id": 690, "type": "assignment_expression", "text": "inheritanceInfo = (VkCommandBufferInheritanceInfo){\n\t\t\t.sType = VK_STRUCTURE_TYPE_COMMAND_BUFFER_INHERITANCE_INFO,\n\t\t\t.pNext = NULL,\n\t\t\t.renderPass = raw->info.renderPass,\n\t\t\t.subpass = 0,\n\t\t\t.framebuffer = framebuffer_vk(raw->info.framebuffer),\n\t\t\t.queryFlags = 0,\n\t\t\t.pipelineStatistics = 0}", "parent": 682, "children": [691, 692, 693], "start_point": {"row": 172, "column": 2}, "end_point": {"row": 179, "column": 27}}, {"id": 691, "type": "identifier", "text": "inheritanceInfo", "parent": 690, "children": [], "start_point": {"row": 172, "column": 2}, "end_point": {"row": 172, "column": 17}}, {"id": 692, "type": "=", "text": "=", "parent": 690, "children": [], "start_point": {"row": 172, "column": 18}, "end_point": {"row": 172, "column": 19}}, {"id": 693, "type": "compound_literal_expression", "text": "(VkCommandBufferInheritanceInfo){\n\t\t\t.sType = VK_STRUCTURE_TYPE_COMMAND_BUFFER_INHERITANCE_INFO,\n\t\t\t.pNext = NULL,\n\t\t\t.renderPass = raw->info.renderPass,\n\t\t\t.subpass = 0,\n\t\t\t.framebuffer = framebuffer_vk(raw->info.framebuffer),\n\t\t\t.queryFlags = 0,\n\t\t\t.pipelineStatistics = 0}", "parent": 690, "children": [694, 696], "start_point": {"row": 172, "column": 20}, "end_point": {"row": 179, "column": 27}}, {"id": 694, "type": "type_descriptor", "text": "VkCommandBufferInheritanceInfo", "parent": 693, "children": [695], "start_point": {"row": 172, "column": 21}, "end_point": {"row": 172, "column": 51}}, {"id": 695, "type": "type_identifier", "text": "VkCommandBufferInheritanceInfo", "parent": 694, "children": [], "start_point": {"row": 172, "column": 21}, "end_point": {"row": 172, "column": 51}}, {"id": 696, "type": "initializer_list", "text": "{\n\t\t\t.sType = VK_STRUCTURE_TYPE_COMMAND_BUFFER_INHERITANCE_INFO,\n\t\t\t.pNext = NULL,\n\t\t\t.renderPass = raw->info.renderPass,\n\t\t\t.subpass = 0,\n\t\t\t.framebuffer = framebuffer_vk(raw->info.framebuffer),\n\t\t\t.queryFlags = 0,\n\t\t\t.pipelineStatistics = 0}", "parent": 693, "children": [697, 702, 708, 717, 722, 734, 739], "start_point": {"row": 172, "column": 52}, "end_point": {"row": 179, "column": 27}}, {"id": 697, "type": "initializer_pair", "text": ".sType = VK_STRUCTURE_TYPE_COMMAND_BUFFER_INHERITANCE_INFO", "parent": 696, "children": [698, 700, 701], "start_point": {"row": 173, "column": 3}, "end_point": {"row": 173, "column": 61}}, {"id": 698, "type": "field_designator", "text": ".sType", "parent": 697, "children": [699], "start_point": {"row": 173, "column": 3}, "end_point": {"row": 173, "column": 9}}, {"id": 699, "type": "field_identifier", "text": "sType", "parent": 698, "children": [], "start_point": {"row": 173, "column": 4}, "end_point": {"row": 173, "column": 9}}, {"id": 700, "type": "=", "text": "=", "parent": 697, "children": [], "start_point": {"row": 173, "column": 10}, "end_point": {"row": 173, "column": 11}}, {"id": 701, "type": "identifier", "text": "VK_STRUCTURE_TYPE_COMMAND_BUFFER_INHERITANCE_INFO", "parent": 697, "children": [], "start_point": {"row": 173, "column": 12}, "end_point": {"row": 173, "column": 61}}, {"id": 702, "type": "initializer_pair", "text": ".pNext = NULL", "parent": 696, "children": [703, 705, 706], "start_point": {"row": 174, "column": 3}, "end_point": {"row": 174, "column": 16}}, {"id": 703, "type": "field_designator", "text": ".pNext", "parent": 702, "children": [704], "start_point": {"row": 174, "column": 3}, "end_point": {"row": 174, "column": 9}}, {"id": 704, "type": "field_identifier", "text": "pNext", "parent": 703, "children": [], "start_point": {"row": 174, "column": 4}, "end_point": {"row": 174, "column": 9}}, {"id": 705, "type": "=", "text": "=", "parent": 702, "children": [], "start_point": {"row": 174, "column": 10}, "end_point": {"row": 174, "column": 11}}, {"id": 706, "type": "null", "text": "NULL", "parent": 702, "children": [707], "start_point": {"row": 174, "column": 12}, "end_point": {"row": 174, "column": 16}}, {"id": 707, "type": "NULL", "text": "NULL", "parent": 706, "children": [], "start_point": {"row": 174, "column": 12}, "end_point": {"row": 174, "column": 16}}, {"id": 708, "type": "initializer_pair", "text": ".renderPass = raw->info.renderPass", "parent": 696, "children": [709, 711, 712], "start_point": {"row": 175, "column": 3}, "end_point": {"row": 175, "column": 37}}, {"id": 709, "type": "field_designator", "text": ".renderPass", "parent": 708, "children": [710], "start_point": {"row": 175, "column": 3}, "end_point": {"row": 175, "column": 14}}, {"id": 710, "type": "field_identifier", "text": "renderPass", "parent": 709, "children": [], "start_point": {"row": 175, "column": 4}, "end_point": {"row": 175, "column": 14}}, {"id": 711, "type": "=", "text": "=", "parent": 708, "children": [], "start_point": {"row": 175, "column": 15}, "end_point": {"row": 175, "column": 16}}, {"id": 712, "type": "field_expression", "text": "raw->info.renderPass", "parent": 708, "children": [713, 716], "start_point": {"row": 175, "column": 17}, "end_point": {"row": 175, "column": 37}}, {"id": 713, "type": "field_expression", "text": "raw->info", "parent": 712, "children": [714, 715], "start_point": {"row": 175, "column": 17}, "end_point": {"row": 175, "column": 26}}, {"id": 714, "type": "identifier", "text": "raw", "parent": 713, "children": [], "start_point": {"row": 175, "column": 17}, "end_point": {"row": 175, "column": 20}}, {"id": 715, "type": "field_identifier", "text": "info", "parent": 713, "children": [], "start_point": {"row": 175, "column": 22}, "end_point": {"row": 175, "column": 26}}, {"id": 716, "type": "field_identifier", "text": "renderPass", "parent": 712, "children": [], "start_point": {"row": 175, "column": 27}, "end_point": {"row": 175, "column": 37}}, {"id": 717, "type": "initializer_pair", "text": ".subpass = 0", "parent": 696, "children": [718, 720, 721], "start_point": {"row": 176, "column": 3}, "end_point": {"row": 176, "column": 15}}, {"id": 718, "type": "field_designator", "text": ".subpass", "parent": 717, "children": [719], "start_point": {"row": 176, "column": 3}, "end_point": {"row": 176, "column": 11}}, {"id": 719, "type": "field_identifier", "text": "subpass", "parent": 718, "children": [], "start_point": {"row": 176, "column": 4}, "end_point": {"row": 176, "column": 11}}, {"id": 720, "type": "=", "text": "=", "parent": 717, "children": [], "start_point": {"row": 176, "column": 12}, "end_point": {"row": 176, "column": 13}}, {"id": 721, "type": "number_literal", "text": "0", "parent": 717, "children": [], "start_point": {"row": 176, "column": 14}, "end_point": {"row": 176, "column": 15}}, {"id": 722, "type": "initializer_pair", "text": ".framebuffer = framebuffer_vk(raw->info.framebuffer)", "parent": 696, "children": [723, 725, 726], "start_point": {"row": 177, "column": 3}, "end_point": {"row": 177, "column": 55}}, {"id": 723, "type": "field_designator", "text": ".framebuffer", "parent": 722, "children": [724], "start_point": {"row": 177, "column": 3}, "end_point": {"row": 177, "column": 15}}, {"id": 724, "type": "field_identifier", "text": "framebuffer", "parent": 723, "children": [], "start_point": {"row": 177, "column": 4}, "end_point": {"row": 177, "column": 15}}, {"id": 725, "type": "=", "text": "=", "parent": 722, "children": [], "start_point": {"row": 177, "column": 16}, "end_point": {"row": 177, "column": 17}}, {"id": 726, "type": "call_expression", "text": "framebuffer_vk(raw->info.framebuffer)", "parent": 722, "children": [727, 728], "start_point": {"row": 177, "column": 18}, "end_point": {"row": 177, "column": 55}}, {"id": 727, "type": "identifier", "text": "framebuffer_vk", "parent": 726, "children": [], "start_point": {"row": 177, "column": 18}, "end_point": {"row": 177, "column": 32}}, {"id": 728, "type": "argument_list", "text": "(raw->info.framebuffer)", "parent": 726, "children": [729], "start_point": {"row": 177, "column": 32}, "end_point": {"row": 177, "column": 55}}, {"id": 729, "type": "field_expression", "text": "raw->info.framebuffer", "parent": 728, "children": [730, 733], "start_point": {"row": 177, "column": 33}, "end_point": {"row": 177, "column": 54}}, {"id": 730, "type": "field_expression", "text": "raw->info", "parent": 729, "children": [731, 732], "start_point": {"row": 177, "column": 33}, "end_point": {"row": 177, "column": 42}}, {"id": 731, "type": "identifier", "text": "raw", "parent": 730, "children": [], "start_point": {"row": 177, "column": 33}, "end_point": {"row": 177, "column": 36}}, {"id": 732, "type": "field_identifier", "text": "info", "parent": 730, "children": [], "start_point": {"row": 177, "column": 38}, "end_point": {"row": 177, "column": 42}}, {"id": 733, "type": "field_identifier", "text": "framebuffer", "parent": 729, "children": [], "start_point": {"row": 177, "column": 43}, "end_point": {"row": 177, "column": 54}}, {"id": 734, "type": "initializer_pair", "text": ".queryFlags = 0", "parent": 696, "children": [735, 737, 738], "start_point": {"row": 178, "column": 3}, "end_point": {"row": 178, "column": 18}}, {"id": 735, "type": "field_designator", "text": ".queryFlags", "parent": 734, "children": [736], "start_point": {"row": 178, "column": 3}, "end_point": {"row": 178, "column": 14}}, {"id": 736, "type": "field_identifier", "text": "queryFlags", "parent": 735, "children": [], "start_point": {"row": 178, "column": 4}, "end_point": {"row": 178, "column": 14}}, {"id": 737, "type": "=", "text": "=", "parent": 734, "children": [], "start_point": {"row": 178, "column": 15}, "end_point": {"row": 178, "column": 16}}, {"id": 738, "type": "number_literal", "text": "0", "parent": 734, "children": [], "start_point": {"row": 178, "column": 17}, "end_point": {"row": 178, "column": 18}}, {"id": 739, "type": "initializer_pair", "text": ".pipelineStatistics = 0", "parent": 696, "children": [740, 742, 743], "start_point": {"row": 179, "column": 3}, "end_point": {"row": 179, "column": 26}}, {"id": 740, "type": "field_designator", "text": ".pipelineStatistics", "parent": 739, "children": [741], "start_point": {"row": 179, "column": 3}, "end_point": {"row": 179, "column": 22}}, {"id": 741, "type": "field_identifier", "text": "pipelineStatistics", "parent": 740, "children": [], "start_point": {"row": 179, "column": 4}, "end_point": {"row": 179, "column": 22}}, {"id": 742, "type": "=", "text": "=", "parent": 739, "children": [], "start_point": {"row": 179, "column": 23}, "end_point": {"row": 179, "column": 24}}, {"id": 743, "type": "number_literal", "text": "0", "parent": 739, "children": [], "start_point": {"row": 179, "column": 25}, "end_point": {"row": 179, "column": 26}}, {"id": 744, "type": "assignment_expression", "text": "begin_info.sType = VK_STRUCTURE_TYPE_COMMAND_BUFFER_BEGIN_INFO", "parent": 682, "children": [745, 748, 749], "start_point": {"row": 181, "column": 2}, "end_point": {"row": 181, "column": 64}}, {"id": 745, "type": "field_expression", "text": "begin_info.sType", "parent": 744, "children": [746, 747], "start_point": {"row": 181, "column": 2}, "end_point": {"row": 181, "column": 18}}, {"id": 746, "type": "identifier", "text": "begin_info", "parent": 745, "children": [], "start_point": {"row": 181, "column": 2}, "end_point": {"row": 181, "column": 12}}, {"id": 747, "type": "field_identifier", "text": "sType", "parent": 745, "children": [], "start_point": {"row": 181, "column": 13}, "end_point": {"row": 181, "column": 18}}, {"id": 748, "type": "=", "text": "=", "parent": 744, "children": [], "start_point": {"row": 181, "column": 19}, "end_point": {"row": 181, "column": 20}}, {"id": 749, "type": "identifier", "text": "VK_STRUCTURE_TYPE_COMMAND_BUFFER_BEGIN_INFO", "parent": 744, "children": [], "start_point": {"row": 181, "column": 21}, "end_point": {"row": 181, "column": 64}}, {"id": 750, "type": "assignment_expression", "text": "begin_info.flags = VK_COMMAND_BUFFER_USAGE_RENDER_PASS_CONTINUE_BIT", "parent": 682, "children": [751, 754, 755], "start_point": {"row": 182, "column": 2}, "end_point": {"row": 182, "column": 69}}, {"id": 751, "type": "field_expression", "text": "begin_info.flags", "parent": 750, "children": [752, 753], "start_point": {"row": 182, "column": 2}, "end_point": {"row": 182, "column": 18}}, {"id": 752, "type": "identifier", "text": "begin_info", "parent": 751, "children": [], "start_point": {"row": 182, "column": 2}, "end_point": {"row": 182, "column": 12}}, {"id": 753, "type": "field_identifier", "text": "flags", "parent": 751, "children": [], "start_point": {"row": 182, "column": 13}, "end_point": {"row": 182, "column": 18}}, {"id": 754, "type": "=", "text": "=", "parent": 750, "children": [], "start_point": {"row": 182, "column": 19}, "end_point": {"row": 182, "column": 20}}, {"id": 755, "type": "identifier", "text": "VK_COMMAND_BUFFER_USAGE_RENDER_PASS_CONTINUE_BIT", "parent": 750, "children": [], "start_point": {"row": 182, "column": 21}, "end_point": {"row": 182, "column": 69}}, {"id": 756, "type": "assignment_expression", "text": "begin_info.pInheritanceInfo = &inheritanceInfo", "parent": 682, "children": [757, 760, 761], "start_point": {"row": 183, "column": 2}, "end_point": {"row": 183, "column": 48}}, {"id": 757, "type": "field_expression", "text": "begin_info.pInheritanceInfo", "parent": 756, "children": [758, 759], "start_point": {"row": 183, "column": 2}, "end_point": {"row": 183, "column": 29}}, {"id": 758, "type": "identifier", "text": "begin_info", "parent": 757, "children": [], "start_point": {"row": 183, "column": 2}, "end_point": {"row": 183, "column": 12}}, {"id": 759, "type": "field_identifier", "text": "pInheritanceInfo", "parent": 757, "children": [], "start_point": {"row": 183, "column": 13}, "end_point": {"row": 183, "column": 29}}, {"id": 760, "type": "=", "text": "=", "parent": 756, "children": [], "start_point": {"row": 183, "column": 30}, "end_point": {"row": 183, "column": 31}}, {"id": 761, "type": "pointer_expression", "text": "&inheritanceInfo", "parent": 756, "children": [762], "start_point": {"row": 183, "column": 32}, "end_point": {"row": 183, "column": 48}}, {"id": 762, "type": "identifier", "text": "inheritanceInfo", "parent": 761, "children": [], "start_point": {"row": 183, "column": 33}, "end_point": {"row": 183, "column": 48}}, {"id": 763, "type": "else_clause", "text": "else if (raw->level == VK_COMMAND_BUFFER_LEVEL_PRIMARY)\n\t{\n\t\tbegin_info.sType = VK_STRUCTURE_TYPE_COMMAND_BUFFER_BEGIN_INFO;\n\t\tbegin_info.flags = 0;\n\t\tbegin_info.pInheritanceInfo = NULL;\n\t}", "parent": 682, "children": [764], "start_point": {"row": 187, "column": 1}, "end_point": {"row": 192, "column": 2}}, {"id": 764, "type": "if_statement", "text": "if (raw->level == VK_COMMAND_BUFFER_LEVEL_PRIMARY)\n\t{\n\t\tbegin_info.sType = VK_STRUCTURE_TYPE_COMMAND_BUFFER_BEGIN_INFO;\n\t\tbegin_info.flags = 0;\n\t\tbegin_info.pInheritanceInfo = NULL;\n\t}", "parent": 763, "children": [765], "start_point": {"row": 187, "column": 6}, "end_point": {"row": 192, "column": 2}}, {"id": 765, "type": "parenthesized_expression", "text": "(raw->level == VK_COMMAND_BUFFER_LEVEL_PRIMARY)", "parent": 764, "children": [766], "start_point": {"row": 187, "column": 9}, "end_point": {"row": 187, "column": 56}}, {"id": 766, "type": "binary_expression", "text": "raw->level == VK_COMMAND_BUFFER_LEVEL_PRIMARY", "parent": 765, "children": [767, 770, 771], "start_point": {"row": 187, "column": 10}, "end_point": {"row": 187, "column": 55}}, {"id": 767, "type": "field_expression", "text": "raw->level", "parent": 766, "children": [768, 769], "start_point": {"row": 187, "column": 10}, "end_point": {"row": 187, "column": 20}}, {"id": 768, "type": "identifier", "text": "raw", "parent": 767, "children": [], "start_point": {"row": 187, "column": 10}, "end_point": {"row": 187, "column": 13}}, {"id": 769, "type": "field_identifier", "text": "level", "parent": 767, "children": [], "start_point": {"row": 187, "column": 15}, "end_point": {"row": 187, "column": 20}}, {"id": 770, "type": "==", "text": "==", "parent": 766, "children": [], "start_point": {"row": 187, "column": 21}, "end_point": {"row": 187, "column": 23}}, {"id": 771, "type": "identifier", "text": "VK_COMMAND_BUFFER_LEVEL_PRIMARY", "parent": 766, "children": [], "start_point": {"row": 187, "column": 24}, "end_point": {"row": 187, "column": 55}}, {"id": 772, "type": "assignment_expression", "text": "begin_info.sType = VK_STRUCTURE_TYPE_COMMAND_BUFFER_BEGIN_INFO", "parent": 764, "children": [773, 776, 777], "start_point": {"row": 189, "column": 2}, "end_point": {"row": 189, "column": 64}}, {"id": 773, "type": "field_expression", "text": "begin_info.sType", "parent": 772, "children": [774, 775], "start_point": {"row": 189, "column": 2}, "end_point": {"row": 189, "column": 18}}, {"id": 774, "type": "identifier", "text": "begin_info", "parent": 773, "children": [], "start_point": {"row": 189, "column": 2}, "end_point": {"row": 189, "column": 12}}, {"id": 775, "type": "field_identifier", "text": "sType", "parent": 773, "children": [], "start_point": {"row": 189, "column": 13}, "end_point": {"row": 189, "column": 18}}, {"id": 776, "type": "=", "text": "=", "parent": 772, "children": [], "start_point": {"row": 189, "column": 19}, "end_point": {"row": 189, "column": 20}}, {"id": 777, "type": "identifier", "text": "VK_STRUCTURE_TYPE_COMMAND_BUFFER_BEGIN_INFO", "parent": 772, "children": [], "start_point": {"row": 189, "column": 21}, "end_point": {"row": 189, "column": 64}}, {"id": 778, "type": "assignment_expression", "text": "begin_info.flags = 0", "parent": 764, "children": [779, 782, 783], "start_point": {"row": 190, "column": 2}, "end_point": {"row": 190, "column": 22}}, {"id": 779, "type": "field_expression", "text": "begin_info.flags", "parent": 778, "children": [780, 781], "start_point": {"row": 190, "column": 2}, "end_point": {"row": 190, "column": 18}}, {"id": 780, "type": "identifier", "text": "begin_info", "parent": 779, "children": [], "start_point": {"row": 190, "column": 2}, "end_point": {"row": 190, "column": 12}}, {"id": 781, "type": "field_identifier", "text": "flags", "parent": 779, "children": [], "start_point": {"row": 190, "column": 13}, "end_point": {"row": 190, "column": 18}}, {"id": 782, "type": "=", "text": "=", "parent": 778, "children": [], "start_point": {"row": 190, "column": 19}, "end_point": {"row": 190, "column": 20}}, {"id": 783, "type": "number_literal", "text": "0", "parent": 778, "children": [], "start_point": {"row": 190, "column": 21}, "end_point": {"row": 190, "column": 22}}, {"id": 784, "type": "assignment_expression", "text": "begin_info.pInheritanceInfo = NULL", "parent": 764, "children": [785, 788, 789], "start_point": {"row": 191, "column": 2}, "end_point": {"row": 191, "column": 36}}, {"id": 785, "type": "field_expression", "text": "begin_info.pInheritanceInfo", "parent": 784, "children": [786, 787], "start_point": {"row": 191, "column": 2}, "end_point": {"row": 191, "column": 29}}, {"id": 786, "type": "identifier", "text": "begin_info", "parent": 785, "children": [], "start_point": {"row": 191, "column": 2}, "end_point": {"row": 191, "column": 12}}, {"id": 787, "type": "field_identifier", "text": "pInheritanceInfo", "parent": 785, "children": [], "start_point": {"row": 191, "column": 13}, "end_point": {"row": 191, "column": 29}}, {"id": 788, "type": "=", "text": "=", "parent": 784, "children": [], "start_point": {"row": 191, "column": 30}, "end_point": {"row": 191, "column": 31}}, {"id": 789, "type": "null", "text": "NULL", "parent": 784, "children": [790], "start_point": {"row": 191, "column": 32}, "end_point": {"row": 191, "column": 36}}, {"id": 790, "type": "NULL", "text": "NULL", "parent": 789, "children": [], "start_point": {"row": 191, "column": 32}, "end_point": {"row": 191, "column": 36}}, {"id": 791, "type": "declaration", "text": "VkResult result = vkBeginCommandBuffer(raw->cmd, &begin_info);", "parent": 637, "children": [792, 793], "start_point": {"row": 194, "column": 1}, "end_point": {"row": 194, "column": 63}}, {"id": 792, "type": "type_identifier", "text": "VkResult", "parent": 791, "children": [], "start_point": {"row": 194, "column": 1}, "end_point": {"row": 194, "column": 9}}, {"id": 793, "type": "init_declarator", "text": "result = vkBeginCommandBuffer(raw->cmd, &begin_info)", "parent": 791, "children": [794, 795, 796], "start_point": {"row": 194, "column": 10}, "end_point": {"row": 194, "column": 62}}, {"id": 794, "type": "identifier", "text": "result", "parent": 793, "children": [], "start_point": {"row": 194, "column": 10}, "end_point": {"row": 194, "column": 16}}, {"id": 795, "type": "=", "text": "=", "parent": 793, "children": [], "start_point": {"row": 194, "column": 17}, "end_point": {"row": 194, "column": 18}}, {"id": 796, "type": "call_expression", "text": "vkBeginCommandBuffer(raw->cmd, &begin_info)", "parent": 793, "children": [797, 798], "start_point": {"row": 194, "column": 19}, "end_point": {"row": 194, "column": 62}}, {"id": 797, "type": "identifier", "text": "vkBeginCommandBuffer", "parent": 796, "children": [], "start_point": {"row": 194, "column": 19}, "end_point": {"row": 194, "column": 39}}, {"id": 798, "type": "argument_list", "text": "(raw->cmd, &begin_info)", "parent": 796, "children": [799, 802], "start_point": {"row": 194, "column": 39}, "end_point": {"row": 194, "column": 62}}, {"id": 799, "type": "field_expression", "text": "raw->cmd", "parent": 798, "children": [800, 801], "start_point": {"row": 194, "column": 40}, "end_point": {"row": 194, "column": 48}}, {"id": 800, "type": "identifier", "text": "raw", "parent": 799, "children": [], "start_point": {"row": 194, "column": 40}, "end_point": {"row": 194, "column": 43}}, {"id": 801, "type": "field_identifier", "text": "cmd", "parent": 799, "children": [], "start_point": {"row": 194, "column": 45}, "end_point": {"row": 194, "column": 48}}, {"id": 802, "type": "pointer_expression", "text": "&begin_info", "parent": 798, "children": [803], "start_point": {"row": 194, "column": 50}, "end_point": {"row": 194, "column": 61}}, {"id": 803, "type": "identifier", "text": "begin_info", "parent": 802, "children": [], "start_point": {"row": 194, "column": 51}, "end_point": {"row": 194, "column": 61}}, {"id": 804, "type": "if_statement", "text": "if (result != VK_SUCCESS)\n\t{\n\t\tLOG_E(\"Failed to start recording of command buffer\");\n\t}", "parent": 637, "children": [805], "start_point": {"row": 195, "column": 1}, "end_point": {"row": 198, "column": 2}}, {"id": 805, "type": "parenthesized_expression", "text": "(result != VK_SUCCESS)", "parent": 804, "children": [806], "start_point": {"row": 195, "column": 4}, "end_point": {"row": 195, "column": 26}}, {"id": 806, "type": "binary_expression", "text": "result != VK_SUCCESS", "parent": 805, "children": [807, 808, 809], "start_point": {"row": 195, "column": 5}, "end_point": {"row": 195, "column": 25}}, {"id": 807, "type": "identifier", "text": "result", "parent": 806, "children": [], "start_point": {"row": 195, "column": 5}, "end_point": {"row": 195, "column": 11}}, {"id": 808, "type": "!=", "text": "!=", "parent": 806, "children": [], "start_point": {"row": 195, "column": 12}, "end_point": {"row": 195, "column": 14}}, {"id": 809, "type": "identifier", "text": "VK_SUCCESS", "parent": 806, "children": [], "start_point": {"row": 195, "column": 15}, "end_point": {"row": 195, "column": 25}}, {"id": 810, "type": "call_expression", "text": "LOG_E(\"Failed to start recording of command buffer\")", "parent": 804, "children": [811, 812], "start_point": {"row": 197, "column": 2}, "end_point": {"row": 197, "column": 54}}, {"id": 811, "type": "identifier", "text": "LOG_E", "parent": 810, "children": [], "start_point": {"row": 197, "column": 2}, "end_point": {"row": 197, "column": 7}}, {"id": 812, "type": "argument_list", "text": "(\"Failed to start recording of command buffer\")", "parent": 810, "children": [813], "start_point": {"row": 197, "column": 7}, "end_point": {"row": 197, "column": 54}}, {"id": 813, "type": "string_literal", "text": "\"Failed to start recording of command buffer\"", "parent": 812, "children": [], "start_point": {"row": 197, "column": 8}, "end_point": {"row": 197, "column": 53}}, {"id": 814, "type": "assignment_expression", "text": "raw->recording = true", "parent": 637, "children": [815, 818, 819], "start_point": {"row": 199, "column": 1}, "end_point": {"row": 199, "column": 22}}, {"id": 815, "type": "field_expression", "text": "raw->recording", "parent": 814, "children": [816, 817], "start_point": {"row": 199, "column": 1}, "end_point": {"row": 199, "column": 15}}, {"id": 816, "type": "identifier", "text": "raw", "parent": 815, "children": [], "start_point": {"row": 199, "column": 1}, "end_point": {"row": 199, "column": 4}}, {"id": 817, "type": "field_identifier", "text": "recording", "parent": 815, "children": [], "start_point": {"row": 199, "column": 6}, "end_point": {"row": 199, "column": 15}}, {"id": 818, "type": "=", "text": "=", "parent": 814, "children": [], "start_point": {"row": 199, "column": 16}, "end_point": {"row": 199, "column": 17}}, {"id": 819, "type": "true", "text": "true", "parent": 814, "children": [], "start_point": {"row": 199, "column": 18}, "end_point": {"row": 199, "column": 22}}, {"id": 820, "type": "function_definition", "text": "void commandbuffer_end(Commandbuffer commandbuffer)\n{\n\tCommandbuffer_raw* raw = handlepool_get_raw(&handlepool, commandbuffer);\n\n\tvkEndCommandBuffer(raw->cmd);\n\traw->recording = false;\n}", "parent": null, "children": [821, 822], "start_point": {"row": 202, "column": 0}, "end_point": {"row": 208, "column": 1}}, {"id": 821, "type": "primitive_type", "text": "void", "parent": 820, "children": [], "start_point": {"row": 202, "column": 0}, "end_point": {"row": 202, "column": 4}}, {"id": 822, "type": "function_declarator", "text": "commandbuffer_end(Commandbuffer commandbuffer)", "parent": 820, "children": [823, 824], "start_point": {"row": 202, "column": 5}, "end_point": {"row": 202, "column": 51}}, {"id": 823, "type": "identifier", "text": "commandbuffer_end", "parent": 822, "children": [], "start_point": {"row": 202, "column": 5}, "end_point": {"row": 202, "column": 22}}, {"id": 824, "type": "parameter_list", "text": "(Commandbuffer commandbuffer)", "parent": 822, "children": [825], "start_point": {"row": 202, "column": 22}, "end_point": {"row": 202, "column": 51}}, {"id": 825, "type": "parameter_declaration", "text": "Commandbuffer commandbuffer", "parent": 824, "children": [826, 827], "start_point": {"row": 202, "column": 23}, "end_point": {"row": 202, "column": 50}}, {"id": 826, "type": "type_identifier", "text": "Commandbuffer", "parent": 825, "children": [], "start_point": {"row": 202, "column": 23}, "end_point": {"row": 202, "column": 36}}, {"id": 827, "type": "identifier", "text": "commandbuffer", "parent": 825, "children": [], "start_point": {"row": 202, "column": 37}, "end_point": {"row": 202, "column": 50}}, {"id": 828, "type": "declaration", "text": "Commandbuffer_raw* raw = handlepool_get_raw(&handlepool, commandbuffer);", "parent": 820, "children": [829, 830], "start_point": {"row": 204, "column": 1}, "end_point": {"row": 204, "column": 73}}, {"id": 829, "type": "type_identifier", "text": "Commandbuffer_raw", "parent": 828, "children": [], "start_point": {"row": 204, "column": 1}, "end_point": {"row": 204, "column": 18}}, {"id": 830, "type": "init_declarator", "text": "* raw = handlepool_get_raw(&handlepool, commandbuffer)", "parent": 828, "children": [831, 834, 835], "start_point": {"row": 204, "column": 18}, "end_point": {"row": 204, "column": 72}}, {"id": 831, "type": "pointer_declarator", "text": "* raw", "parent": 830, "children": [832, 833], "start_point": {"row": 204, "column": 18}, "end_point": {"row": 204, "column": 23}}, {"id": 832, "type": "*", "text": "*", "parent": 831, "children": [], "start_point": {"row": 204, "column": 18}, "end_point": {"row": 204, "column": 19}}, {"id": 833, "type": "identifier", "text": "raw", "parent": 831, "children": [], "start_point": {"row": 204, "column": 20}, "end_point": {"row": 204, "column": 23}}, {"id": 834, "type": "=", "text": "=", "parent": 830, "children": [], "start_point": {"row": 204, "column": 24}, "end_point": {"row": 204, "column": 25}}, {"id": 835, "type": "call_expression", "text": "handlepool_get_raw(&handlepool, commandbuffer)", "parent": 830, "children": [836, 837], "start_point": {"row": 204, "column": 26}, "end_point": {"row": 204, "column": 72}}, {"id": 836, "type": "identifier", "text": "handlepool_get_raw", "parent": 835, "children": [], "start_point": {"row": 204, "column": 26}, "end_point": {"row": 204, "column": 44}}, {"id": 837, "type": "argument_list", "text": "(&handlepool, commandbuffer)", "parent": 835, "children": [838, 840], "start_point": {"row": 204, "column": 44}, "end_point": {"row": 204, "column": 72}}, {"id": 838, "type": "pointer_expression", "text": "&handlepool", "parent": 837, "children": [839], "start_point": {"row": 204, "column": 45}, "end_point": {"row": 204, "column": 56}}, {"id": 839, "type": "identifier", "text": "handlepool", "parent": 838, "children": [], "start_point": {"row": 204, "column": 46}, "end_point": {"row": 204, "column": 56}}, {"id": 840, "type": "identifier", "text": "commandbuffer", "parent": 837, "children": [], "start_point": {"row": 204, "column": 58}, "end_point": {"row": 204, "column": 71}}, {"id": 841, "type": "call_expression", "text": "vkEndCommandBuffer(raw->cmd)", "parent": 820, "children": [842, 843], "start_point": {"row": 206, "column": 1}, "end_point": {"row": 206, "column": 29}}, {"id": 842, "type": "identifier", "text": "vkEndCommandBuffer", "parent": 841, "children": [], "start_point": {"row": 206, "column": 1}, "end_point": {"row": 206, "column": 19}}, {"id": 843, "type": "argument_list", "text": "(raw->cmd)", "parent": 841, "children": [844], "start_point": {"row": 206, "column": 19}, "end_point": {"row": 206, "column": 29}}, {"id": 844, "type": "field_expression", "text": "raw->cmd", "parent": 843, "children": [845, 846], "start_point": {"row": 206, "column": 20}, "end_point": {"row": 206, "column": 28}}, {"id": 845, "type": "identifier", "text": "raw", "parent": 844, "children": [], "start_point": {"row": 206, "column": 20}, "end_point": {"row": 206, "column": 23}}, {"id": 846, "type": "field_identifier", "text": "cmd", "parent": 844, "children": [], "start_point": {"row": 206, "column": 25}, "end_point": {"row": 206, "column": 28}}, {"id": 847, "type": "assignment_expression", "text": "raw->recording = false", "parent": 820, "children": [848, 851, 852], "start_point": {"row": 207, "column": 1}, "end_point": {"row": 207, "column": 23}}, {"id": 848, "type": "field_expression", "text": "raw->recording", "parent": 847, "children": [849, 850], "start_point": {"row": 207, "column": 1}, "end_point": {"row": 207, "column": 15}}, {"id": 849, "type": "identifier", "text": "raw", "parent": 848, "children": [], "start_point": {"row": 207, "column": 1}, "end_point": {"row": 207, "column": 4}}, {"id": 850, "type": "field_identifier", "text": "recording", "parent": 848, "children": [], "start_point": {"row": 207, "column": 6}, "end_point": {"row": 207, "column": 15}}, {"id": 851, "type": "=", "text": "=", "parent": 847, "children": [], "start_point": {"row": 207, "column": 16}, "end_point": {"row": 207, "column": 17}}, {"id": 852, "type": "false", "text": "false", "parent": 847, "children": [], "start_point": {"row": 207, "column": 18}, "end_point": {"row": 207, "column": 23}}, {"id": 853, "type": "function_definition", "text": "void commandbuffer_submit(Commandbuffer commandbuffer)\n{\n\tCommandbuffer_raw* raw = handlepool_get_raw(&handlepool, commandbuffer);\n\n\tVkSubmitInfo submitInfo = {0};\n\tsubmitInfo.sType = VK_STRUCTURE_TYPE_SUBMIT_INFO;\n\tsubmitInfo.commandBufferCount = 1;\n\tsubmitInfo.pCommandBuffers = &raw->cmd;\n\n\tvkQueueSubmit(graphics_queue, 1, &submitInfo, VK_NULL_HANDLE);\n}", "parent": null, "children": [854, 855], "start_point": {"row": 210, "column": 0}, "end_point": {"row": 220, "column": 1}}, {"id": 854, "type": "primitive_type", "text": "void", "parent": 853, "children": [], "start_point": {"row": 210, "column": 0}, "end_point": {"row": 210, "column": 4}}, {"id": 855, "type": "function_declarator", "text": "commandbuffer_submit(Commandbuffer commandbuffer)", "parent": 853, "children": [856, 857], "start_point": {"row": 210, "column": 5}, "end_point": {"row": 210, "column": 54}}, {"id": 856, "type": "identifier", "text": "commandbuffer_submit", "parent": 855, "children": [], "start_point": {"row": 210, "column": 5}, "end_point": {"row": 210, "column": 25}}, {"id": 857, "type": "parameter_list", "text": "(Commandbuffer commandbuffer)", "parent": 855, "children": [858], "start_point": {"row": 210, "column": 25}, "end_point": {"row": 210, "column": 54}}, {"id": 858, "type": "parameter_declaration", "text": "Commandbuffer commandbuffer", "parent": 857, "children": [859, 860], "start_point": {"row": 210, "column": 26}, "end_point": {"row": 210, "column": 53}}, {"id": 859, "type": "type_identifier", "text": "Commandbuffer", "parent": 858, "children": [], "start_point": {"row": 210, "column": 26}, "end_point": {"row": 210, "column": 39}}, {"id": 860, "type": "identifier", "text": "commandbuffer", "parent": 858, "children": [], "start_point": {"row": 210, "column": 40}, "end_point": {"row": 210, "column": 53}}, {"id": 861, "type": "declaration", "text": "Commandbuffer_raw* raw = handlepool_get_raw(&handlepool, commandbuffer);", "parent": 853, "children": [862, 863], "start_point": {"row": 212, "column": 1}, "end_point": {"row": 212, "column": 73}}, {"id": 862, "type": "type_identifier", "text": "Commandbuffer_raw", "parent": 861, "children": [], "start_point": {"row": 212, "column": 1}, "end_point": {"row": 212, "column": 18}}, {"id": 863, "type": "init_declarator", "text": "* raw = handlepool_get_raw(&handlepool, commandbuffer)", "parent": 861, "children": [864, 867, 868], "start_point": {"row": 212, "column": 18}, "end_point": {"row": 212, "column": 72}}, {"id": 864, "type": "pointer_declarator", "text": "* raw", "parent": 863, "children": [865, 866], "start_point": {"row": 212, "column": 18}, "end_point": {"row": 212, "column": 23}}, {"id": 865, "type": "*", "text": "*", "parent": 864, "children": [], "start_point": {"row": 212, "column": 18}, "end_point": {"row": 212, "column": 19}}, {"id": 866, "type": "identifier", "text": "raw", "parent": 864, "children": [], "start_point": {"row": 212, "column": 20}, "end_point": {"row": 212, "column": 23}}, {"id": 867, "type": "=", "text": "=", "parent": 863, "children": [], "start_point": {"row": 212, "column": 24}, "end_point": {"row": 212, "column": 25}}, {"id": 868, "type": "call_expression", "text": "handlepool_get_raw(&handlepool, commandbuffer)", "parent": 863, "children": [869, 870], "start_point": {"row": 212, "column": 26}, "end_point": {"row": 212, "column": 72}}, {"id": 869, "type": "identifier", "text": "handlepool_get_raw", "parent": 868, "children": [], "start_point": {"row": 212, "column": 26}, "end_point": {"row": 212, "column": 44}}, {"id": 870, "type": "argument_list", "text": "(&handlepool, commandbuffer)", "parent": 868, "children": [871, 873], "start_point": {"row": 212, "column": 44}, "end_point": {"row": 212, "column": 72}}, {"id": 871, "type": "pointer_expression", "text": "&handlepool", "parent": 870, "children": [872], "start_point": {"row": 212, "column": 45}, "end_point": {"row": 212, "column": 56}}, {"id": 872, "type": "identifier", "text": "handlepool", "parent": 871, "children": [], "start_point": {"row": 212, "column": 46}, "end_point": {"row": 212, "column": 56}}, {"id": 873, "type": "identifier", "text": "commandbuffer", "parent": 870, "children": [], "start_point": {"row": 212, "column": 58}, "end_point": {"row": 212, "column": 71}}, {"id": 874, "type": "declaration", "text": "VkSubmitInfo submitInfo = {0};", "parent": 853, "children": [875, 876], "start_point": {"row": 214, "column": 1}, "end_point": {"row": 214, "column": 31}}, {"id": 875, "type": "type_identifier", "text": "VkSubmitInfo", "parent": 874, "children": [], "start_point": {"row": 214, "column": 1}, "end_point": {"row": 214, "column": 13}}, {"id": 876, "type": "init_declarator", "text": "submitInfo = {0}", "parent": 874, "children": [877, 878, 879], "start_point": {"row": 214, "column": 14}, "end_point": {"row": 214, "column": 30}}, {"id": 877, "type": "identifier", "text": "submitInfo", "parent": 876, "children": [], "start_point": {"row": 214, "column": 14}, "end_point": {"row": 214, "column": 24}}, {"id": 878, "type": "=", "text": "=", "parent": 876, "children": [], "start_point": {"row": 214, "column": 25}, "end_point": {"row": 214, "column": 26}}, {"id": 879, "type": "initializer_list", "text": "{0}", "parent": 876, "children": [880], "start_point": {"row": 214, "column": 27}, "end_point": {"row": 214, "column": 30}}, {"id": 880, "type": "number_literal", "text": "0", "parent": 879, "children": [], "start_point": {"row": 214, "column": 28}, "end_point": {"row": 214, "column": 29}}, {"id": 881, "type": "assignment_expression", "text": "submitInfo.sType = VK_STRUCTURE_TYPE_SUBMIT_INFO", "parent": 853, "children": [882, 885, 886], "start_point": {"row": 215, "column": 1}, "end_point": {"row": 215, "column": 49}}, {"id": 882, "type": "field_expression", "text": "submitInfo.sType", "parent": 881, "children": [883, 884], "start_point": {"row": 215, "column": 1}, "end_point": {"row": 215, "column": 17}}, {"id": 883, "type": "identifier", "text": "submitInfo", "parent": 882, "children": [], "start_point": {"row": 215, "column": 1}, "end_point": {"row": 215, "column": 11}}, {"id": 884, "type": "field_identifier", "text": "sType", "parent": 882, "children": [], "start_point": {"row": 215, "column": 12}, "end_point": {"row": 215, "column": 17}}, {"id": 885, "type": "=", "text": "=", "parent": 881, "children": [], "start_point": {"row": 215, "column": 18}, "end_point": {"row": 215, "column": 19}}, {"id": 886, "type": "identifier", "text": "VK_STRUCTURE_TYPE_SUBMIT_INFO", "parent": 881, "children": [], "start_point": {"row": 215, "column": 20}, "end_point": {"row": 215, "column": 49}}, {"id": 887, "type": "assignment_expression", "text": "submitInfo.commandBufferCount = 1", "parent": 853, "children": [888, 891, 892], "start_point": {"row": 216, "column": 1}, "end_point": {"row": 216, "column": 34}}, {"id": 888, "type": "field_expression", "text": "submitInfo.commandBufferCount", "parent": 887, "children": [889, 890], "start_point": {"row": 216, "column": 1}, "end_point": {"row": 216, "column": 30}}, {"id": 889, "type": "identifier", "text": "submitInfo", "parent": 888, "children": [], "start_point": {"row": 216, "column": 1}, "end_point": {"row": 216, "column": 11}}, {"id": 890, "type": "field_identifier", "text": "commandBufferCount", "parent": 888, "children": [], "start_point": {"row": 216, "column": 12}, "end_point": {"row": 216, "column": 30}}, {"id": 891, "type": "=", "text": "=", "parent": 887, "children": [], "start_point": {"row": 216, "column": 31}, "end_point": {"row": 216, "column": 32}}, {"id": 892, "type": "number_literal", "text": "1", "parent": 887, "children": [], "start_point": {"row": 216, "column": 33}, "end_point": {"row": 216, "column": 34}}, {"id": 893, "type": "assignment_expression", "text": "submitInfo.pCommandBuffers = &raw->cmd", "parent": 853, "children": [894, 897, 898], "start_point": {"row": 217, "column": 1}, "end_point": {"row": 217, "column": 39}}, {"id": 894, "type": "field_expression", "text": "submitInfo.pCommandBuffers", "parent": 893, "children": [895, 896], "start_point": {"row": 217, "column": 1}, "end_point": {"row": 217, "column": 27}}, {"id": 895, "type": "identifier", "text": "submitInfo", "parent": 894, "children": [], "start_point": {"row": 217, "column": 1}, "end_point": {"row": 217, "column": 11}}, {"id": 896, "type": "field_identifier", "text": "pCommandBuffers", "parent": 894, "children": [], "start_point": {"row": 217, "column": 12}, "end_point": {"row": 217, "column": 27}}, {"id": 897, "type": "=", "text": "=", "parent": 893, "children": [], "start_point": {"row": 217, "column": 28}, "end_point": {"row": 217, "column": 29}}, {"id": 898, "type": "pointer_expression", "text": "&raw->cmd", "parent": 893, "children": [899], "start_point": {"row": 217, "column": 30}, "end_point": {"row": 217, "column": 39}}, {"id": 899, "type": "field_expression", "text": "raw->cmd", "parent": 898, "children": [900, 901], "start_point": {"row": 217, "column": 31}, "end_point": {"row": 217, "column": 39}}, {"id": 900, "type": "identifier", "text": "raw", "parent": 899, "children": [], "start_point": {"row": 217, "column": 31}, "end_point": {"row": 217, "column": 34}}, {"id": 901, "type": "field_identifier", "text": "cmd", "parent": 899, "children": [], "start_point": {"row": 217, "column": 36}, "end_point": {"row": 217, "column": 39}}, {"id": 902, "type": "call_expression", "text": "vkQueueSubmit(graphics_queue, 1, &submitInfo, VK_NULL_HANDLE)", "parent": 853, "children": [903, 904], "start_point": {"row": 219, "column": 1}, "end_point": {"row": 219, "column": 62}}, {"id": 903, "type": "identifier", "text": "vkQueueSubmit", "parent": 902, "children": [], "start_point": {"row": 219, "column": 1}, "end_point": {"row": 219, "column": 14}}, {"id": 904, "type": "argument_list", "text": "(graphics_queue, 1, &submitInfo, VK_NULL_HANDLE)", "parent": 902, "children": [905, 906, 907, 909], "start_point": {"row": 219, "column": 14}, "end_point": {"row": 219, "column": 62}}, {"id": 905, "type": "identifier", "text": "graphics_queue", "parent": 904, "children": [], "start_point": {"row": 219, "column": 15}, "end_point": {"row": 219, "column": 29}}, {"id": 906, "type": "number_literal", "text": "1", "parent": 904, "children": [], "start_point": {"row": 219, "column": 31}, "end_point": {"row": 219, "column": 32}}, {"id": 907, "type": "pointer_expression", "text": "&submitInfo", "parent": 904, "children": [908], "start_point": {"row": 219, "column": 34}, "end_point": {"row": 219, "column": 45}}, {"id": 908, "type": "identifier", "text": "submitInfo", "parent": 907, "children": [], "start_point": {"row": 219, "column": 35}, "end_point": {"row": 219, "column": 45}}, {"id": 909, "type": "identifier", "text": "VK_NULL_HANDLE", "parent": 904, "children": [], "start_point": {"row": 219, "column": 47}, "end_point": {"row": 219, "column": 61}}, {"id": 910, "type": "function_definition", "text": "VkCommandBuffer commandbuffer_vk(Commandbuffer commandbuffer)\n{\n\tCommandbuffer_raw* raw = handlepool_get_raw(&handlepool, commandbuffer);\n\treturn raw->cmd;\n}", "parent": null, "children": [911, 912], "start_point": {"row": 222, "column": 0}, "end_point": {"row": 226, "column": 1}}, {"id": 911, "type": "type_identifier", "text": "VkCommandBuffer", "parent": 910, "children": [], "start_point": {"row": 222, "column": 0}, "end_point": {"row": 222, "column": 15}}, {"id": 912, "type": "function_declarator", "text": "commandbuffer_vk(Commandbuffer commandbuffer)", "parent": 910, "children": [913, 914], "start_point": {"row": 222, "column": 16}, "end_point": {"row": 222, "column": 61}}, {"id": 913, "type": "identifier", "text": "commandbuffer_vk", "parent": 912, "children": [], "start_point": {"row": 222, "column": 16}, "end_point": {"row": 222, "column": 32}}, {"id": 914, "type": "parameter_list", "text": "(Commandbuffer commandbuffer)", "parent": 912, "children": [915], "start_point": {"row": 222, "column": 32}, "end_point": {"row": 222, "column": 61}}, {"id": 915, "type": "parameter_declaration", "text": "Commandbuffer commandbuffer", "parent": 914, "children": [916, 917], "start_point": {"row": 222, "column": 33}, "end_point": {"row": 222, "column": 60}}, {"id": 916, "type": "type_identifier", "text": "Commandbuffer", "parent": 915, "children": [], "start_point": {"row": 222, "column": 33}, "end_point": {"row": 222, "column": 46}}, {"id": 917, "type": "identifier", "text": "commandbuffer", "parent": 915, "children": [], "start_point": {"row": 222, "column": 47}, "end_point": {"row": 222, "column": 60}}, {"id": 918, "type": "declaration", "text": "Commandbuffer_raw* raw = handlepool_get_raw(&handlepool, commandbuffer);", "parent": 910, "children": [919, 920], "start_point": {"row": 224, "column": 1}, "end_point": {"row": 224, "column": 73}}, {"id": 919, "type": "type_identifier", "text": "Commandbuffer_raw", "parent": 918, "children": [], "start_point": {"row": 224, "column": 1}, "end_point": {"row": 224, "column": 18}}, {"id": 920, "type": "init_declarator", "text": "* raw = handlepool_get_raw(&handlepool, commandbuffer)", "parent": 918, "children": [921, 924, 925], "start_point": {"row": 224, "column": 18}, "end_point": {"row": 224, "column": 72}}, {"id": 921, "type": "pointer_declarator", "text": "* raw", "parent": 920, "children": [922, 923], "start_point": {"row": 224, "column": 18}, "end_point": {"row": 224, "column": 23}}, {"id": 922, "type": "*", "text": "*", "parent": 921, "children": [], "start_point": {"row": 224, "column": 18}, "end_point": {"row": 224, "column": 19}}, {"id": 923, "type": "identifier", "text": "raw", "parent": 921, "children": [], "start_point": {"row": 224, "column": 20}, "end_point": {"row": 224, "column": 23}}, {"id": 924, "type": "=", "text": "=", "parent": 920, "children": [], "start_point": {"row": 224, "column": 24}, "end_point": {"row": 224, "column": 25}}, {"id": 925, "type": "call_expression", "text": "handlepool_get_raw(&handlepool, commandbuffer)", "parent": 920, "children": [926, 927], "start_point": {"row": 224, "column": 26}, "end_point": {"row": 224, "column": 72}}, {"id": 926, "type": "identifier", "text": "handlepool_get_raw", "parent": 925, "children": [], "start_point": {"row": 224, "column": 26}, "end_point": {"row": 224, "column": 44}}, {"id": 927, "type": "argument_list", "text": "(&handlepool, commandbuffer)", "parent": 925, "children": [928, 930], "start_point": {"row": 224, "column": 44}, "end_point": {"row": 224, "column": 72}}, {"id": 928, "type": "pointer_expression", "text": "&handlepool", "parent": 927, "children": [929], "start_point": {"row": 224, "column": 45}, "end_point": {"row": 224, "column": 56}}, {"id": 929, "type": "identifier", "text": "handlepool", "parent": 928, "children": [], "start_point": {"row": 224, "column": 46}, "end_point": {"row": 224, "column": 56}}, {"id": 930, "type": "identifier", "text": "commandbuffer", "parent": 927, "children": [], "start_point": {"row": 224, "column": 58}, "end_point": {"row": 224, "column": 71}}, {"id": 931, "type": "return_statement", "text": "return raw->cmd;", "parent": 910, "children": [932], "start_point": {"row": 225, "column": 1}, "end_point": {"row": 225, "column": 17}}, {"id": 932, "type": "field_expression", "text": "raw->cmd", "parent": 931, "children": [933, 934], "start_point": {"row": 225, "column": 8}, "end_point": {"row": 225, "column": 16}}, {"id": 933, "type": "identifier", "text": "raw", "parent": 932, "children": [], "start_point": {"row": 225, "column": 8}, "end_point": {"row": 225, "column": 11}}, {"id": 934, "type": "field_identifier", "text": "cmd", "parent": 932, "children": [], "start_point": {"row": 225, "column": 13}, "end_point": {"row": 225, "column": 16}}, {"id": 935, "type": "function_definition", "text": "VkFence commandbuffer_fence(Commandbuffer commandbuffer)\n{\n\tCommandbuffer_raw* raw = handlepool_get_raw(&handlepool, commandbuffer);\n\treturn raw->fence;\n}", "parent": null, "children": [936, 937], "start_point": {"row": 227, "column": 0}, "end_point": {"row": 231, "column": 1}}, {"id": 936, "type": "type_identifier", "text": "VkFence", "parent": 935, "children": [], "start_point": {"row": 227, "column": 0}, "end_point": {"row": 227, "column": 7}}, {"id": 937, "type": "function_declarator", "text": "commandbuffer_fence(Commandbuffer commandbuffer)", "parent": 935, "children": [938, 939], "start_point": {"row": 227, "column": 8}, "end_point": {"row": 227, "column": 56}}, {"id": 938, "type": "identifier", "text": "commandbuffer_fence", "parent": 937, "children": [], "start_point": {"row": 227, "column": 8}, "end_point": {"row": 227, "column": 27}}, {"id": 939, "type": "parameter_list", "text": "(Commandbuffer commandbuffer)", "parent": 937, "children": [940], "start_point": {"row": 227, "column": 27}, "end_point": {"row": 227, "column": 56}}, {"id": 940, "type": "parameter_declaration", "text": "Commandbuffer commandbuffer", "parent": 939, "children": [941, 942], "start_point": {"row": 227, "column": 28}, "end_point": {"row": 227, "column": 55}}, {"id": 941, "type": "type_identifier", "text": "Commandbuffer", "parent": 940, "children": [], "start_point": {"row": 227, "column": 28}, "end_point": {"row": 227, "column": 41}}, {"id": 942, "type": "identifier", "text": "commandbuffer", "parent": 940, "children": [], "start_point": {"row": 227, "column": 42}, "end_point": {"row": 227, "column": 55}}, {"id": 943, "type": "declaration", "text": "Commandbuffer_raw* raw = handlepool_get_raw(&handlepool, commandbuffer);", "parent": 935, "children": [944, 945], "start_point": {"row": 229, "column": 1}, "end_point": {"row": 229, "column": 73}}, {"id": 944, "type": "type_identifier", "text": "Commandbuffer_raw", "parent": 943, "children": [], "start_point": {"row": 229, "column": 1}, "end_point": {"row": 229, "column": 18}}, {"id": 945, "type": "init_declarator", "text": "* raw = handlepool_get_raw(&handlepool, commandbuffer)", "parent": 943, "children": [946, 949, 950], "start_point": {"row": 229, "column": 18}, "end_point": {"row": 229, "column": 72}}, {"id": 946, "type": "pointer_declarator", "text": "* raw", "parent": 945, "children": [947, 948], "start_point": {"row": 229, "column": 18}, "end_point": {"row": 229, "column": 23}}, {"id": 947, "type": "*", "text": "*", "parent": 946, "children": [], "start_point": {"row": 229, "column": 18}, "end_point": {"row": 229, "column": 19}}, {"id": 948, "type": "identifier", "text": "raw", "parent": 946, "children": [], "start_point": {"row": 229, "column": 20}, "end_point": {"row": 229, "column": 23}}, {"id": 949, "type": "=", "text": "=", "parent": 945, "children": [], "start_point": {"row": 229, "column": 24}, "end_point": {"row": 229, "column": 25}}, {"id": 950, "type": "call_expression", "text": "handlepool_get_raw(&handlepool, commandbuffer)", "parent": 945, "children": [951, 952], "start_point": {"row": 229, "column": 26}, "end_point": {"row": 229, "column": 72}}, {"id": 951, "type": "identifier", "text": "handlepool_get_raw", "parent": 950, "children": [], "start_point": {"row": 229, "column": 26}, "end_point": {"row": 229, "column": 44}}, {"id": 952, "type": "argument_list", "text": "(&handlepool, commandbuffer)", "parent": 950, "children": [953, 955], "start_point": {"row": 229, "column": 44}, "end_point": {"row": 229, "column": 72}}, {"id": 953, "type": "pointer_expression", "text": "&handlepool", "parent": 952, "children": [954], "start_point": {"row": 229, "column": 45}, "end_point": {"row": 229, "column": 56}}, {"id": 954, "type": "identifier", "text": "handlepool", "parent": 953, "children": [], "start_point": {"row": 229, "column": 46}, "end_point": {"row": 229, "column": 56}}, {"id": 955, "type": "identifier", "text": "commandbuffer", "parent": 952, "children": [], "start_point": {"row": 229, "column": 58}, "end_point": {"row": 229, "column": 71}}, {"id": 956, "type": "return_statement", "text": "return raw->fence;", "parent": 935, "children": [957], "start_point": {"row": 230, "column": 1}, "end_point": {"row": 230, "column": 19}}, {"id": 957, "type": "field_expression", "text": "raw->fence", "parent": 956, "children": [958, 959], "start_point": {"row": 230, "column": 8}, "end_point": {"row": 230, "column": 18}}, {"id": 958, "type": "identifier", "text": "raw", "parent": 957, "children": [], "start_point": {"row": 230, "column": 8}, "end_point": {"row": 230, "column": 11}}, {"id": 959, "type": "field_identifier", "text": "fence", "parent": 957, "children": [], "start_point": {"row": 230, "column": 13}, "end_point": {"row": 230, "column": 18}}, {"id": 960, "type": "declaration", "text": "static Commandbuffer destroy_queue = INVALID(Commandbuffer);", "parent": null, "children": [961, 962], "start_point": {"row": 233, "column": 0}, "end_point": {"row": 233, "column": 60}}, {"id": 961, "type": "type_identifier", "text": "Commandbuffer", "parent": 960, "children": [], "start_point": {"row": 233, "column": 7}, "end_point": {"row": 233, "column": 20}}, {"id": 962, "type": "init_declarator", "text": "destroy_queue = INVALID(Commandbuffer)", "parent": 960, "children": [963, 964, 965], "start_point": {"row": 233, "column": 21}, "end_point": {"row": 233, "column": 59}}, {"id": 963, "type": "identifier", "text": "destroy_queue", "parent": 962, "children": [], "start_point": {"row": 233, "column": 21}, "end_point": {"row": 233, "column": 34}}, {"id": 964, "type": "=", "text": "=", "parent": 962, "children": [], "start_point": {"row": 233, "column": 35}, "end_point": {"row": 233, "column": 36}}, {"id": 965, "type": "call_expression", "text": "INVALID(Commandbuffer)", "parent": 962, "children": [966, 967], "start_point": {"row": 233, "column": 37}, "end_point": {"row": 233, "column": 59}}, {"id": 966, "type": "identifier", "text": "INVALID", "parent": 965, "children": [], "start_point": {"row": 233, "column": 37}, "end_point": {"row": 233, "column": 44}}, {"id": 967, "type": "argument_list", "text": "(Commandbuffer)", "parent": 965, "children": [968], "start_point": {"row": 233, "column": 44}, "end_point": {"row": 233, "column": 59}}, {"id": 968, "type": "identifier", "text": "Commandbuffer", "parent": 967, "children": [], "start_point": {"row": 233, "column": 45}, "end_point": {"row": 233, "column": 58}}, {"id": 969, "type": "function_definition", "text": "void commandbuffer_destroy(Commandbuffer commandbuffer)\n{\n\tCommandbuffer_raw* raw = handlepool_get_raw(&handlepool, commandbuffer);\n\n\t// Command buffer is in use\n\tif (raw->fence && vkGetFenceStatus(device, raw->fence) != VK_SUCCESS)\n\t{\n\t\t// Queue for destruction\n\t\tLOG_S(\"Command buffer is still in use, queueing\");\n\t\t// Insert at head\n\t\traw->next = destroy_queue;\n\t\tdestroy_queue = commandbuffer;\n\t\treturn;\n\t}\n\n\t// Not in use, destroy immediately\n\tif (raw->recording)\n\t\tvkEndCommandBuffer(raw->cmd);\n\n\tvkQueueWaitIdle(graphics_queue);\n\n\tvkFreeCommandBuffers(device, commandpools[raw->thread_idx], 1, &raw->cmd);\n\tif (raw->level == VK_COMMAND_BUFFER_LEVEL_PRIMARY)\n\t\tvkDestroyFence(device, raw->fence, NULL);\n\n\thandlepool_free(&handlepool, commandbuffer);\n}", "parent": null, "children": [970, 971], "start_point": {"row": 235, "column": 0}, "end_point": {"row": 261, "column": 1}}, {"id": 970, "type": "primitive_type", "text": "void", "parent": 969, "children": [], "start_point": {"row": 235, "column": 0}, "end_point": {"row": 235, "column": 4}}, {"id": 971, "type": "function_declarator", "text": "commandbuffer_destroy(Commandbuffer commandbuffer)", "parent": 969, "children": [972, 973], "start_point": {"row": 235, "column": 5}, "end_point": {"row": 235, "column": 55}}, {"id": 972, "type": "identifier", "text": "commandbuffer_destroy", "parent": 971, "children": [], "start_point": {"row": 235, "column": 5}, "end_point": {"row": 235, "column": 26}}, {"id": 973, "type": "parameter_list", "text": "(Commandbuffer commandbuffer)", "parent": 971, "children": [974], "start_point": {"row": 235, "column": 26}, "end_point": {"row": 235, "column": 55}}, {"id": 974, "type": "parameter_declaration", "text": "Commandbuffer commandbuffer", "parent": 973, "children": [975, 976], "start_point": {"row": 235, "column": 27}, "end_point": {"row": 235, "column": 54}}, {"id": 975, "type": "type_identifier", "text": "Commandbuffer", "parent": 974, "children": [], "start_point": {"row": 235, "column": 27}, "end_point": {"row": 235, "column": 40}}, {"id": 976, "type": "identifier", "text": "commandbuffer", "parent": 974, "children": [], "start_point": {"row": 235, "column": 41}, "end_point": {"row": 235, "column": 54}}, {"id": 977, "type": "declaration", "text": "Commandbuffer_raw* raw = handlepool_get_raw(&handlepool, commandbuffer);", "parent": 969, "children": [978, 979], "start_point": {"row": 237, "column": 1}, "end_point": {"row": 237, "column": 73}}, {"id": 978, "type": "type_identifier", "text": "Commandbuffer_raw", "parent": 977, "children": [], "start_point": {"row": 237, "column": 1}, "end_point": {"row": 237, "column": 18}}, {"id": 979, "type": "init_declarator", "text": "* raw = handlepool_get_raw(&handlepool, commandbuffer)", "parent": 977, "children": [980, 983, 984], "start_point": {"row": 237, "column": 18}, "end_point": {"row": 237, "column": 72}}, {"id": 980, "type": "pointer_declarator", "text": "* raw", "parent": 979, "children": [981, 982], "start_point": {"row": 237, "column": 18}, "end_point": {"row": 237, "column": 23}}, {"id": 981, "type": "*", "text": "*", "parent": 980, "children": [], "start_point": {"row": 237, "column": 18}, "end_point": {"row": 237, "column": 19}}, {"id": 982, "type": "identifier", "text": "raw", "parent": 980, "children": [], "start_point": {"row": 237, "column": 20}, "end_point": {"row": 237, "column": 23}}, {"id": 983, "type": "=", "text": "=", "parent": 979, "children": [], "start_point": {"row": 237, "column": 24}, "end_point": {"row": 237, "column": 25}}, {"id": 984, "type": "call_expression", "text": "handlepool_get_raw(&handlepool, commandbuffer)", "parent": 979, "children": [985, 986], "start_point": {"row": 237, "column": 26}, "end_point": {"row": 237, "column": 72}}, {"id": 985, "type": "identifier", "text": "handlepool_get_raw", "parent": 984, "children": [], "start_point": {"row": 237, "column": 26}, "end_point": {"row": 237, "column": 44}}, {"id": 986, "type": "argument_list", "text": "(&handlepool, commandbuffer)", "parent": 984, "children": [987, 989], "start_point": {"row": 237, "column": 44}, "end_point": {"row": 237, "column": 72}}, {"id": 987, "type": "pointer_expression", "text": "&handlepool", "parent": 986, "children": [988], "start_point": {"row": 237, "column": 45}, "end_point": {"row": 237, "column": 56}}, {"id": 988, "type": "identifier", "text": "handlepool", "parent": 987, "children": [], "start_point": {"row": 237, "column": 46}, "end_point": {"row": 237, "column": 56}}, {"id": 989, "type": "identifier", "text": "commandbuffer", "parent": 986, "children": [], "start_point": {"row": 237, "column": 58}, "end_point": {"row": 237, "column": 71}}, {"id": 990, "type": "if_statement", "text": "if (raw->fence && vkGetFenceStatus(device, raw->fence) != VK_SUCCESS)\n\t{\n\t\t// Queue for destruction\n\t\tLOG_S(\"Command buffer is still in use, queueing\");\n\t\t// Insert at head\n\t\traw->next = destroy_queue;\n\t\tdestroy_queue = commandbuffer;\n\t\treturn;\n\t}", "parent": 969, "children": [991], "start_point": {"row": 240, "column": 1}, "end_point": {"row": 248, "column": 2}}, {"id": 991, "type": "parenthesized_expression", "text": "(raw->fence && vkGetFenceStatus(device, raw->fence) != VK_SUCCESS)", "parent": 990, "children": [992], "start_point": {"row": 240, "column": 4}, "end_point": {"row": 240, "column": 70}}, {"id": 992, "type": "binary_expression", "text": "raw->fence && vkGetFenceStatus(device, raw->fence) != VK_SUCCESS", "parent": 991, "children": [993, 996, 997], "start_point": {"row": 240, "column": 5}, "end_point": {"row": 240, "column": 69}}, {"id": 993, "type": "field_expression", "text": "raw->fence", "parent": 992, "children": [994, 995], "start_point": {"row": 240, "column": 5}, "end_point": {"row": 240, "column": 15}}, {"id": 994, "type": "identifier", "text": "raw", "parent": 993, "children": [], "start_point": {"row": 240, "column": 5}, "end_point": {"row": 240, "column": 8}}, {"id": 995, "type": "field_identifier", "text": "fence", "parent": 993, "children": [], "start_point": {"row": 240, "column": 10}, "end_point": {"row": 240, "column": 15}}, {"id": 996, "type": "&&", "text": "&&", "parent": 992, "children": [], "start_point": {"row": 240, "column": 16}, "end_point": {"row": 240, "column": 18}}, {"id": 997, "type": "binary_expression", "text": "vkGetFenceStatus(device, raw->fence) != VK_SUCCESS", "parent": 992, "children": [998, 1005, 1006], "start_point": {"row": 240, "column": 19}, "end_point": {"row": 240, "column": 69}}, {"id": 998, "type": "call_expression", "text": "vkGetFenceStatus(device, raw->fence)", "parent": 997, "children": [999, 1000], "start_point": {"row": 240, "column": 19}, "end_point": {"row": 240, "column": 55}}, {"id": 999, "type": "identifier", "text": "vkGetFenceStatus", "parent": 998, "children": [], "start_point": {"row": 240, "column": 19}, "end_point": {"row": 240, "column": 35}}, {"id": 1000, "type": "argument_list", "text": "(device, raw->fence)", "parent": 998, "children": [1001, 1002], "start_point": {"row": 240, "column": 35}, "end_point": {"row": 240, "column": 55}}, {"id": 1001, "type": "identifier", "text": "device", "parent": 1000, "children": [], "start_point": {"row": 240, "column": 36}, "end_point": {"row": 240, "column": 42}}, {"id": 1002, "type": "field_expression", "text": "raw->fence", "parent": 1000, "children": [1003, 1004], "start_point": {"row": 240, "column": 44}, "end_point": {"row": 240, "column": 54}}, {"id": 1003, "type": "identifier", "text": "raw", "parent": 1002, "children": [], "start_point": {"row": 240, "column": 44}, "end_point": {"row": 240, "column": 47}}, {"id": 1004, "type": "field_identifier", "text": "fence", "parent": 1002, "children": [], "start_point": {"row": 240, "column": 49}, "end_point": {"row": 240, "column": 54}}, {"id": 1005, "type": "!=", "text": "!=", "parent": 997, "children": [], "start_point": {"row": 240, "column": 56}, "end_point": {"row": 240, "column": 58}}, {"id": 1006, "type": "identifier", "text": "VK_SUCCESS", "parent": 997, "children": [], "start_point": {"row": 240, "column": 59}, "end_point": {"row": 240, "column": 69}}, {"id": 1007, "type": "call_expression", "text": "LOG_S(\"Command buffer is still in use, queueing\")", "parent": 990, "children": [1008, 1009], "start_point": {"row": 243, "column": 2}, "end_point": {"row": 243, "column": 51}}, {"id": 1008, "type": "identifier", "text": "LOG_S", "parent": 1007, "children": [], "start_point": {"row": 243, "column": 2}, "end_point": {"row": 243, "column": 7}}, {"id": 1009, "type": "argument_list", "text": "(\"Command buffer is still in use, queueing\")", "parent": 1007, "children": [1010], "start_point": {"row": 243, "column": 7}, "end_point": {"row": 243, "column": 51}}, {"id": 1010, "type": "string_literal", "text": "\"Command buffer is still in use, queueing\"", "parent": 1009, "children": [], "start_point": {"row": 243, "column": 8}, "end_point": {"row": 243, "column": 50}}, {"id": 1011, "type": "assignment_expression", "text": "raw->next = destroy_queue", "parent": 990, "children": [1012, 1015, 1016], "start_point": {"row": 245, "column": 2}, "end_point": {"row": 245, "column": 27}}, {"id": 1012, "type": "field_expression", "text": "raw->next", "parent": 1011, "children": [1013, 1014], "start_point": {"row": 245, "column": 2}, "end_point": {"row": 245, "column": 11}}, {"id": 1013, "type": "identifier", "text": "raw", "parent": 1012, "children": [], "start_point": {"row": 245, "column": 2}, "end_point": {"row": 245, "column": 5}}, {"id": 1014, "type": "field_identifier", "text": "next", "parent": 1012, "children": [], "start_point": {"row": 245, "column": 7}, "end_point": {"row": 245, "column": 11}}, {"id": 1015, "type": "=", "text": "=", "parent": 1011, "children": [], "start_point": {"row": 245, "column": 12}, "end_point": {"row": 245, "column": 13}}, {"id": 1016, "type": "identifier", "text": "destroy_queue", "parent": 1011, "children": [], "start_point": {"row": 245, "column": 14}, "end_point": {"row": 245, "column": 27}}, {"id": 1017, "type": "assignment_expression", "text": "destroy_queue = commandbuffer", "parent": 990, "children": [1018, 1019, 1020], "start_point": {"row": 246, "column": 2}, "end_point": {"row": 246, "column": 31}}, {"id": 1018, "type": "identifier", "text": "destroy_queue", "parent": 1017, "children": [], "start_point": {"row": 246, "column": 2}, "end_point": {"row": 246, "column": 15}}, {"id": 1019, "type": "=", "text": "=", "parent": 1017, "children": [], "start_point": {"row": 246, "column": 16}, "end_point": {"row": 246, "column": 17}}, {"id": 1020, "type": "identifier", "text": "commandbuffer", "parent": 1017, "children": [], "start_point": {"row": 246, "column": 18}, "end_point": {"row": 246, "column": 31}}, {"id": 1021, "type": "return_statement", "text": "return;", "parent": 990, "children": [], "start_point": {"row": 247, "column": 2}, "end_point": {"row": 247, "column": 9}}, {"id": 1022, "type": "if_statement", "text": "if (raw->recording)\n\t\tvkEndCommandBuffer(raw->cmd);", "parent": 969, "children": [1023], "start_point": {"row": 251, "column": 1}, "end_point": {"row": 252, "column": 31}}, {"id": 1023, "type": "parenthesized_expression", "text": "(raw->recording)", "parent": 1022, "children": [1024], "start_point": {"row": 251, "column": 4}, "end_point": {"row": 251, "column": 20}}, {"id": 1024, "type": "field_expression", "text": "raw->recording", "parent": 1023, "children": [1025, 1026], "start_point": {"row": 251, "column": 5}, "end_point": {"row": 251, "column": 19}}, {"id": 1025, "type": "identifier", "text": "raw", "parent": 1024, "children": [], "start_point": {"row": 251, "column": 5}, "end_point": {"row": 251, "column": 8}}, {"id": 1026, "type": "field_identifier", "text": "recording", "parent": 1024, "children": [], "start_point": {"row": 251, "column": 10}, "end_point": {"row": 251, "column": 19}}, {"id": 1027, "type": "call_expression", "text": "vkEndCommandBuffer(raw->cmd)", "parent": 1022, "children": [1028, 1029], "start_point": {"row": 252, "column": 2}, "end_point": {"row": 252, "column": 30}}, {"id": 1028, "type": "identifier", "text": "vkEndCommandBuffer", "parent": 1027, "children": [], "start_point": {"row": 252, "column": 2}, "end_point": {"row": 252, "column": 20}}, {"id": 1029, "type": "argument_list", "text": "(raw->cmd)", "parent": 1027, "children": [1030], "start_point": {"row": 252, "column": 20}, "end_point": {"row": 252, "column": 30}}, {"id": 1030, "type": "field_expression", "text": "raw->cmd", "parent": 1029, "children": [1031, 1032], "start_point": {"row": 252, "column": 21}, "end_point": {"row": 252, "column": 29}}, {"id": 1031, "type": "identifier", "text": "raw", "parent": 1030, "children": [], "start_point": {"row": 252, "column": 21}, "end_point": {"row": 252, "column": 24}}, {"id": 1032, "type": "field_identifier", "text": "cmd", "parent": 1030, "children": [], "start_point": {"row": 252, "column": 26}, "end_point": {"row": 252, "column": 29}}, {"id": 1033, "type": "call_expression", "text": "vkQueueWaitIdle(graphics_queue)", "parent": 969, "children": [1034, 1035], "start_point": {"row": 254, "column": 1}, "end_point": {"row": 254, "column": 32}}, {"id": 1034, "type": "identifier", "text": "vkQueueWaitIdle", "parent": 1033, "children": [], "start_point": {"row": 254, "column": 1}, "end_point": {"row": 254, "column": 16}}, {"id": 1035, "type": "argument_list", "text": "(graphics_queue)", "parent": 1033, "children": [1036], "start_point": {"row": 254, "column": 16}, "end_point": {"row": 254, "column": 32}}, {"id": 1036, "type": "identifier", "text": "graphics_queue", "parent": 1035, "children": [], "start_point": {"row": 254, "column": 17}, "end_point": {"row": 254, "column": 31}}, {"id": 1037, "type": "call_expression", "text": "vkFreeCommandBuffers(device, commandpools[raw->thread_idx], 1, &raw->cmd)", "parent": 969, "children": [1038, 1039], "start_point": {"row": 256, "column": 1}, "end_point": {"row": 256, "column": 74}}, {"id": 1038, "type": "identifier", "text": "vkFreeCommandBuffers", "parent": 1037, "children": [], "start_point": {"row": 256, "column": 1}, "end_point": {"row": 256, "column": 21}}, {"id": 1039, "type": "argument_list", "text": "(device, commandpools[raw->thread_idx], 1, &raw->cmd)", "parent": 1037, "children": [1040, 1041, 1046, 1047], "start_point": {"row": 256, "column": 21}, "end_point": {"row": 256, "column": 74}}, {"id": 1040, "type": "identifier", "text": "device", "parent": 1039, "children": [], "start_point": {"row": 256, "column": 22}, "end_point": {"row": 256, "column": 28}}, {"id": 1041, "type": "subscript_expression", "text": "commandpools[raw->thread_idx]", "parent": 1039, "children": [1042, 1043], "start_point": {"row": 256, "column": 30}, "end_point": {"row": 256, "column": 59}}, {"id": 1042, "type": "identifier", "text": "commandpools", "parent": 1041, "children": [], "start_point": {"row": 256, "column": 30}, "end_point": {"row": 256, "column": 42}}, {"id": 1043, "type": "field_expression", "text": "raw->thread_idx", "parent": 1041, "children": [1044, 1045], "start_point": {"row": 256, "column": 43}, "end_point": {"row": 256, "column": 58}}, {"id": 1044, "type": "identifier", "text": "raw", "parent": 1043, "children": [], "start_point": {"row": 256, "column": 43}, "end_point": {"row": 256, "column": 46}}, {"id": 1045, "type": "field_identifier", "text": "thread_idx", "parent": 1043, "children": [], "start_point": {"row": 256, "column": 48}, "end_point": {"row": 256, "column": 58}}, {"id": 1046, "type": "number_literal", "text": "1", "parent": 1039, "children": [], "start_point": {"row": 256, "column": 61}, "end_point": {"row": 256, "column": 62}}, {"id": 1047, "type": "pointer_expression", "text": "&raw->cmd", "parent": 1039, "children": [1048], "start_point": {"row": 256, "column": 64}, "end_point": {"row": 256, "column": 73}}, {"id": 1048, "type": "field_expression", "text": "raw->cmd", "parent": 1047, "children": [1049, 1050], "start_point": {"row": 256, "column": 65}, "end_point": {"row": 256, "column": 73}}, {"id": 1049, "type": "identifier", "text": "raw", "parent": 1048, "children": [], "start_point": {"row": 256, "column": 65}, "end_point": {"row": 256, "column": 68}}, {"id": 1050, "type": "field_identifier", "text": "cmd", "parent": 1048, "children": [], "start_point": {"row": 256, "column": 70}, "end_point": {"row": 256, "column": 73}}, {"id": 1051, "type": "if_statement", "text": "if (raw->level == VK_COMMAND_BUFFER_LEVEL_PRIMARY)\n\t\tvkDestroyFence(device, raw->fence, NULL);", "parent": 969, "children": [1052], "start_point": {"row": 257, "column": 1}, "end_point": {"row": 258, "column": 43}}, {"id": 1052, "type": "parenthesized_expression", "text": "(raw->level == VK_COMMAND_BUFFER_LEVEL_PRIMARY)", "parent": 1051, "children": [1053], "start_point": {"row": 257, "column": 4}, "end_point": {"row": 257, "column": 51}}, {"id": 1053, "type": "binary_expression", "text": "raw->level == VK_COMMAND_BUFFER_LEVEL_PRIMARY", "parent": 1052, "children": [1054, 1057, 1058], "start_point": {"row": 257, "column": 5}, "end_point": {"row": 257, "column": 50}}, {"id": 1054, "type": "field_expression", "text": "raw->level", "parent": 1053, "children": [1055, 1056], "start_point": {"row": 257, "column": 5}, "end_point": {"row": 257, "column": 15}}, {"id": 1055, "type": "identifier", "text": "raw", "parent": 1054, "children": [], "start_point": {"row": 257, "column": 5}, "end_point": {"row": 257, "column": 8}}, {"id": 1056, "type": "field_identifier", "text": "level", "parent": 1054, "children": [], "start_point": {"row": 257, "column": 10}, "end_point": {"row": 257, "column": 15}}, {"id": 1057, "type": "==", "text": "==", "parent": 1053, "children": [], "start_point": {"row": 257, "column": 16}, "end_point": {"row": 257, "column": 18}}, {"id": 1058, "type": "identifier", "text": "VK_COMMAND_BUFFER_LEVEL_PRIMARY", "parent": 1053, "children": [], "start_point": {"row": 257, "column": 19}, "end_point": {"row": 257, "column": 50}}, {"id": 1059, "type": "call_expression", "text": "vkDestroyFence(device, raw->fence, NULL)", "parent": 1051, "children": [1060, 1061], "start_point": {"row": 258, "column": 2}, "end_point": {"row": 258, "column": 42}}, {"id": 1060, "type": "identifier", "text": "vkDestroyFence", "parent": 1059, "children": [], "start_point": {"row": 258, "column": 2}, "end_point": {"row": 258, "column": 16}}, {"id": 1061, "type": "argument_list", "text": "(device, raw->fence, NULL)", "parent": 1059, "children": [1062, 1063, 1066], "start_point": {"row": 258, "column": 16}, "end_point": {"row": 258, "column": 42}}, {"id": 1062, "type": "identifier", "text": "device", "parent": 1061, "children": [], "start_point": {"row": 258, "column": 17}, "end_point": {"row": 258, "column": 23}}, {"id": 1063, "type": "field_expression", "text": "raw->fence", "parent": 1061, "children": [1064, 1065], "start_point": {"row": 258, "column": 25}, "end_point": {"row": 258, "column": 35}}, {"id": 1064, "type": "identifier", "text": "raw", "parent": 1063, "children": [], "start_point": {"row": 258, "column": 25}, "end_point": {"row": 258, "column": 28}}, {"id": 1065, "type": "field_identifier", "text": "fence", "parent": 1063, "children": [], "start_point": {"row": 258, "column": 30}, "end_point": {"row": 258, "column": 35}}, {"id": 1066, "type": "null", "text": "NULL", "parent": 1061, "children": [1067], "start_point": {"row": 258, "column": 37}, "end_point": {"row": 258, "column": 41}}, {"id": 1067, "type": "NULL", "text": "NULL", "parent": 1066, "children": [], "start_point": {"row": 258, "column": 37}, "end_point": {"row": 258, "column": 41}}, {"id": 1068, "type": "call_expression", "text": "handlepool_free(&handlepool, commandbuffer)", "parent": 969, "children": [1069, 1070], "start_point": {"row": 260, "column": 1}, "end_point": {"row": 260, "column": 44}}, {"id": 1069, "type": "identifier", "text": "handlepool_free", "parent": 1068, "children": [], "start_point": {"row": 260, "column": 1}, "end_point": {"row": 260, "column": 16}}, {"id": 1070, "type": "argument_list", "text": "(&handlepool, commandbuffer)", "parent": 1068, "children": [1071, 1073], "start_point": {"row": 260, "column": 16}, "end_point": {"row": 260, "column": 44}}, {"id": 1071, "type": "pointer_expression", "text": "&handlepool", "parent": 1070, "children": [1072], "start_point": {"row": 260, "column": 17}, "end_point": {"row": 260, "column": 28}}, {"id": 1072, "type": "identifier", "text": "handlepool", "parent": 1071, "children": [], "start_point": {"row": 260, "column": 18}, "end_point": {"row": 260, "column": 28}}, {"id": 1073, "type": "identifier", "text": "commandbuffer", "parent": 1070, "children": [], "start_point": {"row": 260, "column": 30}, "end_point": {"row": 260, "column": 43}}, {"id": 1074, "type": "function_definition", "text": "uint32_t commandbuffer_handle_destructions()\n{\n\tCommandbuffer item = destroy_queue;\n\tCommandbuffer prev = INVALID(Commandbuffer);\n\tCommandbuffer next = INVALID(Commandbuffer);\n\tuint32_t destroyed = 0;\n\twhile (HANDLE_VALID(item))\n\t{\n\t\tCommandbuffer_raw* raw = handlepool_get_raw(&handlepool, item);\n\t\tnext = raw->next;\n\t\tif (vkGetFenceStatus(device, raw->fence) == VK_SUCCESS)\n\t\t{\n\t\t\tif (HANDLE_VALID(prev))\n\t\t\t{\n\t\t\t\t((Commandbuffer_raw*)handlepool_get_raw(&handlepool, prev))->next = next;\n\t\t\t}\n\t\t\t// At head\n\t\t\telse\n\t\t\t{\n\t\t\t\tdestroy_queue = next;\n\t\t\t}\n\t\t\tcommandbuffer_destroy(item);\n\t\t\t++destroyed;\n\t\t}\n\t\titem = next;\n\t}\n\treturn destroyed;\n}", "parent": null, "children": [1075, 1076], "start_point": {"row": 263, "column": 0}, "end_point": {"row": 290, "column": 1}}, {"id": 1075, "type": "primitive_type", "text": "uint32_t", "parent": 1074, "children": [], "start_point": {"row": 263, "column": 0}, "end_point": {"row": 263, "column": 8}}, {"id": 1076, "type": "function_declarator", "text": "commandbuffer_handle_destructions()", "parent": 1074, "children": [1077, 1078], "start_point": {"row": 263, "column": 9}, "end_point": {"row": 263, "column": 44}}, {"id": 1077, "type": "identifier", "text": "commandbuffer_handle_destructions", "parent": 1076, "children": [], "start_point": {"row": 263, "column": 9}, "end_point": {"row": 263, "column": 42}}, {"id": 1078, "type": "parameter_list", "text": "()", "parent": 1076, "children": [], "start_point": {"row": 263, "column": 42}, "end_point": {"row": 263, "column": 44}}, {"id": 1079, "type": "declaration", "text": "Commandbuffer item = destroy_queue;", "parent": 1074, "children": [1080, 1081], "start_point": {"row": 265, "column": 1}, "end_point": {"row": 265, "column": 36}}, {"id": 1080, "type": "type_identifier", "text": "Commandbuffer", "parent": 1079, "children": [], "start_point": {"row": 265, "column": 1}, "end_point": {"row": 265, "column": 14}}, {"id": 1081, "type": "init_declarator", "text": "item = destroy_queue", "parent": 1079, "children": [1082, 1083, 1084], "start_point": {"row": 265, "column": 15}, "end_point": {"row": 265, "column": 35}}, {"id": 1082, "type": "identifier", "text": "item", "parent": 1081, "children": [], "start_point": {"row": 265, "column": 15}, "end_point": {"row": 265, "column": 19}}, {"id": 1083, "type": "=", "text": "=", "parent": 1081, "children": [], "start_point": {"row": 265, "column": 20}, "end_point": {"row": 265, "column": 21}}, {"id": 1084, "type": "identifier", "text": "destroy_queue", "parent": 1081, "children": [], "start_point": {"row": 265, "column": 22}, "end_point": {"row": 265, "column": 35}}, {"id": 1085, "type": "declaration", "text": "Commandbuffer prev = INVALID(Commandbuffer);", "parent": 1074, "children": [1086, 1087], "start_point": {"row": 266, "column": 1}, "end_point": {"row": 266, "column": 45}}, {"id": 1086, "type": "type_identifier", "text": "Commandbuffer", "parent": 1085, "children": [], "start_point": {"row": 266, "column": 1}, "end_point": {"row": 266, "column": 14}}, {"id": 1087, "type": "init_declarator", "text": "prev = INVALID(Commandbuffer)", "parent": 1085, "children": [1088, 1089, 1090], "start_point": {"row": 266, "column": 15}, "end_point": {"row": 266, "column": 44}}, {"id": 1088, "type": "identifier", "text": "prev", "parent": 1087, "children": [], "start_point": {"row": 266, "column": 15}, "end_point": {"row": 266, "column": 19}}, {"id": 1089, "type": "=", "text": "=", "parent": 1087, "children": [], "start_point": {"row": 266, "column": 20}, "end_point": {"row": 266, "column": 21}}, {"id": 1090, "type": "call_expression", "text": "INVALID(Commandbuffer)", "parent": 1087, "children": [1091, 1092], "start_point": {"row": 266, "column": 22}, "end_point": {"row": 266, "column": 44}}, {"id": 1091, "type": "identifier", "text": "INVALID", "parent": 1090, "children": [], "start_point": {"row": 266, "column": 22}, "end_point": {"row": 266, "column": 29}}, {"id": 1092, "type": "argument_list", "text": "(Commandbuffer)", "parent": 1090, "children": [1093], "start_point": {"row": 266, "column": 29}, "end_point": {"row": 266, "column": 44}}, {"id": 1093, "type": "identifier", "text": "Commandbuffer", "parent": 1092, "children": [], "start_point": {"row": 266, "column": 30}, "end_point": {"row": 266, "column": 43}}, {"id": 1094, "type": "declaration", "text": "Commandbuffer next = INVALID(Commandbuffer);", "parent": 1074, "children": [1095, 1096], "start_point": {"row": 267, "column": 1}, "end_point": {"row": 267, "column": 45}}, {"id": 1095, "type": "type_identifier", "text": "Commandbuffer", "parent": 1094, "children": [], "start_point": {"row": 267, "column": 1}, "end_point": {"row": 267, "column": 14}}, {"id": 1096, "type": "init_declarator", "text": "next = INVALID(Commandbuffer)", "parent": 1094, "children": [1097, 1098, 1099], "start_point": {"row": 267, "column": 15}, "end_point": {"row": 267, "column": 44}}, {"id": 1097, "type": "identifier", "text": "next", "parent": 1096, "children": [], "start_point": {"row": 267, "column": 15}, "end_point": {"row": 267, "column": 19}}, {"id": 1098, "type": "=", "text": "=", "parent": 1096, "children": [], "start_point": {"row": 267, "column": 20}, "end_point": {"row": 267, "column": 21}}, {"id": 1099, "type": "call_expression", "text": "INVALID(Commandbuffer)", "parent": 1096, "children": [1100, 1101], "start_point": {"row": 267, "column": 22}, "end_point": {"row": 267, "column": 44}}, {"id": 1100, "type": "identifier", "text": "INVALID", "parent": 1099, "children": [], "start_point": {"row": 267, "column": 22}, "end_point": {"row": 267, "column": 29}}, {"id": 1101, "type": "argument_list", "text": "(Commandbuffer)", "parent": 1099, "children": [1102], "start_point": {"row": 267, "column": 29}, "end_point": {"row": 267, "column": 44}}, {"id": 1102, "type": "identifier", "text": "Commandbuffer", "parent": 1101, "children": [], "start_point": {"row": 267, "column": 30}, "end_point": {"row": 267, "column": 43}}, {"id": 1103, "type": "declaration", "text": "uint32_t destroyed = 0;", "parent": 1074, "children": [1104, 1105], "start_point": {"row": 268, "column": 1}, "end_point": {"row": 268, "column": 24}}, {"id": 1104, "type": "primitive_type", "text": "uint32_t", "parent": 1103, "children": [], "start_point": {"row": 268, "column": 1}, "end_point": {"row": 268, "column": 9}}, {"id": 1105, "type": "init_declarator", "text": "destroyed = 0", "parent": 1103, "children": [1106, 1107, 1108], "start_point": {"row": 268, "column": 10}, "end_point": {"row": 268, "column": 23}}, {"id": 1106, "type": "identifier", "text": "destroyed", "parent": 1105, "children": [], "start_point": {"row": 268, "column": 10}, "end_point": {"row": 268, "column": 19}}, {"id": 1107, "type": "=", "text": "=", "parent": 1105, "children": [], "start_point": {"row": 268, "column": 20}, "end_point": {"row": 268, "column": 21}}, {"id": 1108, "type": "number_literal", "text": "0", "parent": 1105, "children": [], "start_point": {"row": 268, "column": 22}, "end_point": {"row": 268, "column": 23}}, {"id": 1109, "type": "while_statement", "text": "while (HANDLE_VALID(item))\n\t{\n\t\tCommandbuffer_raw* raw = handlepool_get_raw(&handlepool, item);\n\t\tnext = raw->next;\n\t\tif (vkGetFenceStatus(device, raw->fence) == VK_SUCCESS)\n\t\t{\n\t\t\tif (HANDLE_VALID(prev))\n\t\t\t{\n\t\t\t\t((Commandbuffer_raw*)handlepool_get_raw(&handlepool, prev))->next = next;\n\t\t\t}\n\t\t\t// At head\n\t\t\telse\n\t\t\t{\n\t\t\t\tdestroy_queue = next;\n\t\t\t}\n\t\t\tcommandbuffer_destroy(item);\n\t\t\t++destroyed;\n\t\t}\n\t\titem = next;\n\t}", "parent": 1074, "children": [1110], "start_point": {"row": 269, "column": 1}, "end_point": {"row": 288, "column": 2}}, {"id": 1110, "type": "parenthesized_expression", "text": "(HANDLE_VALID(item))", "parent": 1109, "children": [1111], "start_point": {"row": 269, "column": 7}, "end_point": {"row": 269, "column": 27}}, {"id": 1111, "type": "call_expression", "text": "HANDLE_VALID(item)", "parent": 1110, "children": [1112, 1113], "start_point": {"row": 269, "column": 8}, "end_point": {"row": 269, "column": 26}}, {"id": 1112, "type": "identifier", "text": "HANDLE_VALID", "parent": 1111, "children": [], "start_point": {"row": 269, "column": 8}, "end_point": {"row": 269, "column": 20}}, {"id": 1113, "type": "argument_list", "text": "(item)", "parent": 1111, "children": [1114], "start_point": {"row": 269, "column": 20}, "end_point": {"row": 269, "column": 26}}, {"id": 1114, "type": "identifier", "text": "item", "parent": 1113, "children": [], "start_point": {"row": 269, "column": 21}, "end_point": {"row": 269, "column": 25}}, {"id": 1115, "type": "declaration", "text": "Commandbuffer_raw* raw = handlepool_get_raw(&handlepool, item);", "parent": 1109, "children": [1116, 1117], "start_point": {"row": 271, "column": 2}, "end_point": {"row": 271, "column": 65}}, {"id": 1116, "type": "type_identifier", "text": "Commandbuffer_raw", "parent": 1115, "children": [], "start_point": {"row": 271, "column": 2}, "end_point": {"row": 271, "column": 19}}, {"id": 1117, "type": "init_declarator", "text": "* raw = handlepool_get_raw(&handlepool, item)", "parent": 1115, "children": [1118, 1121, 1122], "start_point": {"row": 271, "column": 19}, "end_point": {"row": 271, "column": 64}}, {"id": 1118, "type": "pointer_declarator", "text": "* raw", "parent": 1117, "children": [1119, 1120], "start_point": {"row": 271, "column": 19}, "end_point": {"row": 271, "column": 24}}, {"id": 1119, "type": "*", "text": "*", "parent": 1118, "children": [], "start_point": {"row": 271, "column": 19}, "end_point": {"row": 271, "column": 20}}, {"id": 1120, "type": "identifier", "text": "raw", "parent": 1118, "children": [], "start_point": {"row": 271, "column": 21}, "end_point": {"row": 271, "column": 24}}, {"id": 1121, "type": "=", "text": "=", "parent": 1117, "children": [], "start_point": {"row": 271, "column": 25}, "end_point": {"row": 271, "column": 26}}, {"id": 1122, "type": "call_expression", "text": "handlepool_get_raw(&handlepool, item)", "parent": 1117, "children": [1123, 1124], "start_point": {"row": 271, "column": 27}, "end_point": {"row": 271, "column": 64}}, {"id": 1123, "type": "identifier", "text": "handlepool_get_raw", "parent": 1122, "children": [], "start_point": {"row": 271, "column": 27}, "end_point": {"row": 271, "column": 45}}, {"id": 1124, "type": "argument_list", "text": "(&handlepool, item)", "parent": 1122, "children": [1125, 1127], "start_point": {"row": 271, "column": 45}, "end_point": {"row": 271, "column": 64}}, {"id": 1125, "type": "pointer_expression", "text": "&handlepool", "parent": 1124, "children": [1126], "start_point": {"row": 271, "column": 46}, "end_point": {"row": 271, "column": 57}}, {"id": 1126, "type": "identifier", "text": "handlepool", "parent": 1125, "children": [], "start_point": {"row": 271, "column": 47}, "end_point": {"row": 271, "column": 57}}, {"id": 1127, "type": "identifier", "text": "item", "parent": 1124, "children": [], "start_point": {"row": 271, "column": 59}, "end_point": {"row": 271, "column": 63}}, {"id": 1128, "type": "assignment_expression", "text": "next = raw->next", "parent": 1109, "children": [1129, 1130, 1131], "start_point": {"row": 272, "column": 2}, "end_point": {"row": 272, "column": 18}}, {"id": 1129, "type": "identifier", "text": "next", "parent": 1128, "children": [], "start_point": {"row": 272, "column": 2}, "end_point": {"row": 272, "column": 6}}, {"id": 1130, "type": "=", "text": "=", "parent": 1128, "children": [], "start_point": {"row": 272, "column": 7}, "end_point": {"row": 272, "column": 8}}, {"id": 1131, "type": "field_expression", "text": "raw->next", "parent": 1128, "children": [1132, 1133], "start_point": {"row": 272, "column": 9}, "end_point": {"row": 272, "column": 18}}, {"id": 1132, "type": "identifier", "text": "raw", "parent": 1131, "children": [], "start_point": {"row": 272, "column": 9}, "end_point": {"row": 272, "column": 12}}, {"id": 1133, "type": "field_identifier", "text": "next", "parent": 1131, "children": [], "start_point": {"row": 272, "column": 14}, "end_point": {"row": 272, "column": 18}}, {"id": 1134, "type": "if_statement", "text": "if (vkGetFenceStatus(device, raw->fence) == VK_SUCCESS)\n\t\t{\n\t\t\tif (HANDLE_VALID(prev))\n\t\t\t{\n\t\t\t\t((Commandbuffer_raw*)handlepool_get_raw(&handlepool, prev))->next = next;\n\t\t\t}\n\t\t\t// At head\n\t\t\telse\n\t\t\t{\n\t\t\t\tdestroy_queue = next;\n\t\t\t}\n\t\t\tcommandbuffer_destroy(item);\n\t\t\t++destroyed;\n\t\t}", "parent": 1109, "children": [1135], "start_point": {"row": 273, "column": 2}, "end_point": {"row": 286, "column": 3}}, {"id": 1135, "type": "parenthesized_expression", "text": "(vkGetFenceStatus(device, raw->fence) == VK_SUCCESS)", "parent": 1134, "children": [1136], "start_point": {"row": 273, "column": 5}, "end_point": {"row": 273, "column": 57}}, {"id": 1136, "type": "binary_expression", "text": "vkGetFenceStatus(device, raw->fence) == VK_SUCCESS", "parent": 1135, "children": [1137, 1144, 1145], "start_point": {"row": 273, "column": 6}, "end_point": {"row": 273, "column": 56}}, {"id": 1137, "type": "call_expression", "text": "vkGetFenceStatus(device, raw->fence)", "parent": 1136, "children": [1138, 1139], "start_point": {"row": 273, "column": 6}, "end_point": {"row": 273, "column": 42}}, {"id": 1138, "type": "identifier", "text": "vkGetFenceStatus", "parent": 1137, "children": [], "start_point": {"row": 273, "column": 6}, "end_point": {"row": 273, "column": 22}}, {"id": 1139, "type": "argument_list", "text": "(device, raw->fence)", "parent": 1137, "children": [1140, 1141], "start_point": {"row": 273, "column": 22}, "end_point": {"row": 273, "column": 42}}, {"id": 1140, "type": "identifier", "text": "device", "parent": 1139, "children": [], "start_point": {"row": 273, "column": 23}, "end_point": {"row": 273, "column": 29}}, {"id": 1141, "type": "field_expression", "text": "raw->fence", "parent": 1139, "children": [1142, 1143], "start_point": {"row": 273, "column": 31}, "end_point": {"row": 273, "column": 41}}, {"id": 1142, "type": "identifier", "text": "raw", "parent": 1141, "children": [], "start_point": {"row": 273, "column": 31}, "end_point": {"row": 273, "column": 34}}, {"id": 1143, "type": "field_identifier", "text": "fence", "parent": 1141, "children": [], "start_point": {"row": 273, "column": 36}, "end_point": {"row": 273, "column": 41}}, {"id": 1144, "type": "==", "text": "==", "parent": 1136, "children": [], "start_point": {"row": 273, "column": 43}, "end_point": {"row": 273, "column": 45}}, {"id": 1145, "type": "identifier", "text": "VK_SUCCESS", "parent": 1136, "children": [], "start_point": {"row": 273, "column": 46}, "end_point": {"row": 273, "column": 56}}, {"id": 1146, "type": "if_statement", "text": "if (HANDLE_VALID(prev))\n\t\t\t{\n\t\t\t\t((Commandbuffer_raw*)handlepool_get_raw(&handlepool, prev))->next = next;\n\t\t\t}\n\t\t\t// At head\n\t\t\telse\n\t\t\t{\n\t\t\t\tdestroy_queue = next;\n\t\t\t}", "parent": 1134, "children": [1147, 1169], "start_point": {"row": 275, "column": 3}, "end_point": {"row": 283, "column": 4}}, {"id": 1147, "type": "parenthesized_expression", "text": "(HANDLE_VALID(prev))", "parent": 1146, "children": [1148], "start_point": {"row": 275, "column": 6}, "end_point": {"row": 275, "column": 26}}, {"id": 1148, "type": "call_expression", "text": "HANDLE_VALID(prev)", "parent": 1147, "children": [1149, 1150], "start_point": {"row": 275, "column": 7}, "end_point": {"row": 275, "column": 25}}, {"id": 1149, "type": "identifier", "text": "HANDLE_VALID", "parent": 1148, "children": [], "start_point": {"row": 275, "column": 7}, "end_point": {"row": 275, "column": 19}}, {"id": 1150, "type": "argument_list", "text": "(prev)", "parent": 1148, "children": [1151], "start_point": {"row": 275, "column": 19}, "end_point": {"row": 275, "column": 25}}, {"id": 1151, "type": "identifier", "text": "prev", "parent": 1150, "children": [], "start_point": {"row": 275, "column": 20}, "end_point": {"row": 275, "column": 24}}, {"id": 1152, "type": "assignment_expression", "text": "((Commandbuffer_raw*)handlepool_get_raw(&handlepool, prev))->next = next", "parent": 1146, "children": [1153, 1167, 1168], "start_point": {"row": 277, "column": 4}, "end_point": {"row": 277, "column": 76}}, {"id": 1153, "type": "field_expression", "text": "((Commandbuffer_raw*)handlepool_get_raw(&handlepool, prev))->next", "parent": 1152, "children": [1154, 1166], "start_point": {"row": 277, "column": 4}, "end_point": {"row": 277, "column": 69}}, {"id": 1154, "type": "parenthesized_expression", "text": "((Commandbuffer_raw*)handlepool_get_raw(&handlepool, prev))", "parent": 1153, "children": [1155], "start_point": {"row": 277, "column": 4}, "end_point": {"row": 277, "column": 63}}, {"id": 1155, "type": "cast_expression", "text": "(Commandbuffer_raw*)handlepool_get_raw(&handlepool, prev)", "parent": 1154, "children": [1156, 1160], "start_point": {"row": 277, "column": 5}, "end_point": {"row": 277, "column": 62}}, {"id": 1156, "type": "type_descriptor", "text": "Commandbuffer_raw*", "parent": 1155, "children": [1157, 1158], "start_point": {"row": 277, "column": 6}, "end_point": {"row": 277, "column": 24}}, {"id": 1157, "type": "type_identifier", "text": "Commandbuffer_raw", "parent": 1156, "children": [], "start_point": {"row": 277, "column": 6}, "end_point": {"row": 277, "column": 23}}, {"id": 1158, "type": "abstract_pointer_declarator", "text": "*", "parent": 1156, "children": [1159], "start_point": {"row": 277, "column": 23}, "end_point": {"row": 277, "column": 24}}, {"id": 1159, "type": "*", "text": "*", "parent": 1158, "children": [], "start_point": {"row": 277, "column": 23}, "end_point": {"row": 277, "column": 24}}, {"id": 1160, "type": "call_expression", "text": "handlepool_get_raw(&handlepool, prev)", "parent": 1155, "children": [1161, 1162], "start_point": {"row": 277, "column": 25}, "end_point": {"row": 277, "column": 62}}, {"id": 1161, "type": "identifier", "text": "handlepool_get_raw", "parent": 1160, "children": [], "start_point": {"row": 277, "column": 25}, "end_point": {"row": 277, "column": 43}}, {"id": 1162, "type": "argument_list", "text": "(&handlepool, prev)", "parent": 1160, "children": [1163, 1165], "start_point": {"row": 277, "column": 43}, "end_point": {"row": 277, "column": 62}}, {"id": 1163, "type": "pointer_expression", "text": "&handlepool", "parent": 1162, "children": [1164], "start_point": {"row": 277, "column": 44}, "end_point": {"row": 277, "column": 55}}, {"id": 1164, "type": "identifier", "text": "handlepool", "parent": 1163, "children": [], "start_point": {"row": 277, "column": 45}, "end_point": {"row": 277, "column": 55}}, {"id": 1165, "type": "identifier", "text": "prev", "parent": 1162, "children": [], "start_point": {"row": 277, "column": 57}, "end_point": {"row": 277, "column": 61}}, {"id": 1166, "type": "field_identifier", "text": "next", "parent": 1153, "children": [], "start_point": {"row": 277, "column": 65}, "end_point": {"row": 277, "column": 69}}, {"id": 1167, "type": "=", "text": "=", "parent": 1152, "children": [], "start_point": {"row": 277, "column": 70}, "end_point": {"row": 277, "column": 71}}, {"id": 1168, "type": "identifier", "text": "next", "parent": 1152, "children": [], "start_point": {"row": 277, "column": 72}, "end_point": {"row": 277, "column": 76}}, {"id": 1169, "type": "else_clause", "text": "else\n\t\t\t{\n\t\t\t\tdestroy_queue = next;\n\t\t\t}", "parent": 1146, "children": [], "start_point": {"row": 280, "column": 3}, "end_point": {"row": 283, "column": 4}}, {"id": 1170, "type": "assignment_expression", "text": "destroy_queue = next", "parent": 1169, "children": [1171, 1172, 1173], "start_point": {"row": 282, "column": 4}, "end_point": {"row": 282, "column": 24}}, {"id": 1171, "type": "identifier", "text": "destroy_queue", "parent": 1170, "children": [], "start_point": {"row": 282, "column": 4}, "end_point": {"row": 282, "column": 17}}, {"id": 1172, "type": "=", "text": "=", "parent": 1170, "children": [], "start_point": {"row": 282, "column": 18}, "end_point": {"row": 282, "column": 19}}, {"id": 1173, "type": "identifier", "text": "next", "parent": 1170, "children": [], "start_point": {"row": 282, "column": 20}, "end_point": {"row": 282, "column": 24}}, {"id": 1174, "type": "call_expression", "text": "commandbuffer_destroy(item)", "parent": 1134, "children": [1175, 1176], "start_point": {"row": 284, "column": 3}, "end_point": {"row": 284, "column": 30}}, {"id": 1175, "type": "identifier", "text": "commandbuffer_destroy", "parent": 1174, "children": [], "start_point": {"row": 284, "column": 3}, "end_point": {"row": 284, "column": 24}}, {"id": 1176, "type": "argument_list", "text": "(item)", "parent": 1174, "children": [1177], "start_point": {"row": 284, "column": 24}, "end_point": {"row": 284, "column": 30}}, {"id": 1177, "type": "identifier", "text": "item", "parent": 1176, "children": [], "start_point": {"row": 284, "column": 25}, "end_point": {"row": 284, "column": 29}}, {"id": 1178, "type": "update_expression", "text": "++destroyed", "parent": 1134, "children": [1179, 1180], "start_point": {"row": 285, "column": 3}, "end_point": {"row": 285, "column": 14}}, {"id": 1179, "type": "++", "text": "++", "parent": 1178, "children": [], "start_point": {"row": 285, "column": 3}, "end_point": {"row": 285, "column": 5}}, {"id": 1180, "type": "identifier", "text": "destroyed", "parent": 1178, "children": [], "start_point": {"row": 285, "column": 5}, "end_point": {"row": 285, "column": 14}}, {"id": 1181, "type": "assignment_expression", "text": "item = next", "parent": 1109, "children": [1182, 1183, 1184], "start_point": {"row": 287, "column": 2}, "end_point": {"row": 287, "column": 13}}, {"id": 1182, "type": "identifier", "text": "item", "parent": 1181, "children": [], "start_point": {"row": 287, "column": 2}, "end_point": {"row": 287, "column": 6}}, {"id": 1183, "type": "=", "text": "=", "parent": 1181, "children": [], "start_point": {"row": 287, "column": 7}, "end_point": {"row": 287, "column": 8}}, {"id": 1184, "type": "identifier", "text": "next", "parent": 1181, "children": [], "start_point": {"row": 287, "column": 9}, "end_point": {"row": 287, "column": 13}}, {"id": 1185, "type": "return_statement", "text": "return destroyed;", "parent": 1074, "children": [1186], "start_point": {"row": 289, "column": 1}, "end_point": {"row": 289, "column": 18}}, {"id": 1186, "type": "identifier", "text": "destroyed", "parent": 1185, "children": [], "start_point": {"row": 289, "column": 8}, "end_point": {"row": 289, "column": 17}}, {"id": 1187, "type": "function_definition", "text": "void commandbuffer_destroy_pools()\n{\n\tfor (uint32_t i = 0; i < RENDERER_MAX_THREADS; i++)\n\t{\n\t\tif (commandpools[i])\n\t\t{\n\t\t\tvkDestroyCommandPool(device, commandpools[i], NULL);\n\t\t\tcommandpools[i] = NULL;\n\t\t}\n\t}\n}", "parent": null, "children": [1188, 1189], "start_point": {"row": 292, "column": 0}, "end_point": {"row": 302, "column": 1}}, {"id": 1188, "type": "primitive_type", "text": "void", "parent": 1187, "children": [], "start_point": {"row": 292, "column": 0}, "end_point": {"row": 292, "column": 4}}, {"id": 1189, "type": "function_declarator", "text": "commandbuffer_destroy_pools()", "parent": 1187, "children": [1190, 1191], "start_point": {"row": 292, "column": 5}, "end_point": {"row": 292, "column": 34}}, {"id": 1190, "type": "identifier", "text": "commandbuffer_destroy_pools", "parent": 1189, "children": [], "start_point": {"row": 292, "column": 5}, "end_point": {"row": 292, "column": 32}}, {"id": 1191, "type": "parameter_list", "text": "()", "parent": 1189, "children": [], "start_point": {"row": 292, "column": 32}, "end_point": {"row": 292, "column": 34}}, {"id": 1192, "type": "for_statement", "text": "for (uint32_t i = 0; i < RENDERER_MAX_THREADS; i++)\n\t{\n\t\tif (commandpools[i])\n\t\t{\n\t\t\tvkDestroyCommandPool(device, commandpools[i], NULL);\n\t\t\tcommandpools[i] = NULL;\n\t\t}\n\t}", "parent": 1187, "children": [1193, 1199, 1203], "start_point": {"row": 294, "column": 1}, "end_point": {"row": 301, "column": 2}}, {"id": 1193, "type": "declaration", "text": "uint32_t i = 0;", "parent": 1192, "children": [1194, 1195], "start_point": {"row": 294, "column": 6}, "end_point": {"row": 294, "column": 21}}, {"id": 1194, "type": "primitive_type", "text": "uint32_t", "parent": 1193, "children": [], "start_point": {"row": 294, "column": 6}, "end_point": {"row": 294, "column": 14}}, {"id": 1195, "type": "init_declarator", "text": "i = 0", "parent": 1193, "children": [1196, 1197, 1198], "start_point": {"row": 294, "column": 15}, "end_point": {"row": 294, "column": 20}}, {"id": 1196, "type": "identifier", "text": "i", "parent": 1195, "children": [], "start_point": {"row": 294, "column": 15}, "end_point": {"row": 294, "column": 16}}, {"id": 1197, "type": "=", "text": "=", "parent": 1195, "children": [], "start_point": {"row": 294, "column": 17}, "end_point": {"row": 294, "column": 18}}, {"id": 1198, "type": "number_literal", "text": "0", "parent": 1195, "children": [], "start_point": {"row": 294, "column": 19}, "end_point": {"row": 294, "column": 20}}, {"id": 1199, "type": "binary_expression", "text": "i < RENDERER_MAX_THREADS", "parent": 1192, "children": [1200, 1201, 1202], "start_point": {"row": 294, "column": 22}, "end_point": {"row": 294, "column": 46}}, {"id": 1200, "type": "identifier", "text": "i", "parent": 1199, "children": [], "start_point": {"row": 294, "column": 22}, "end_point": {"row": 294, "column": 23}}, {"id": 1201, "type": "<", "text": "<", "parent": 1199, "children": [], "start_point": {"row": 294, "column": 24}, "end_point": {"row": 294, "column": 25}}, {"id": 1202, "type": "identifier", "text": "RENDERER_MAX_THREADS", "parent": 1199, "children": [], "start_point": {"row": 294, "column": 26}, "end_point": {"row": 294, "column": 46}}, {"id": 1203, "type": "update_expression", "text": "i++", "parent": 1192, "children": [1204, 1205], "start_point": {"row": 294, "column": 48}, "end_point": {"row": 294, "column": 51}}, {"id": 1204, "type": "identifier", "text": "i", "parent": 1203, "children": [], "start_point": {"row": 294, "column": 48}, "end_point": {"row": 294, "column": 49}}, {"id": 1205, "type": "++", "text": "++", "parent": 1203, "children": [], "start_point": {"row": 294, "column": 49}, "end_point": {"row": 294, "column": 51}}, {"id": 1206, "type": "if_statement", "text": "if (commandpools[i])\n\t\t{\n\t\t\tvkDestroyCommandPool(device, commandpools[i], NULL);\n\t\t\tcommandpools[i] = NULL;\n\t\t}", "parent": 1192, "children": [1207], "start_point": {"row": 296, "column": 2}, "end_point": {"row": 300, "column": 3}}, {"id": 1207, "type": "parenthesized_expression", "text": "(commandpools[i])", "parent": 1206, "children": [1208], "start_point": {"row": 296, "column": 5}, "end_point": {"row": 296, "column": 22}}, {"id": 1208, "type": "subscript_expression", "text": "commandpools[i]", "parent": 1207, "children": [1209, 1210], "start_point": {"row": 296, "column": 6}, "end_point": {"row": 296, "column": 21}}, {"id": 1209, "type": "identifier", "text": "commandpools", "parent": 1208, "children": [], "start_point": {"row": 296, "column": 6}, "end_point": {"row": 296, "column": 18}}, {"id": 1210, "type": "identifier", "text": "i", "parent": 1208, "children": [], "start_point": {"row": 296, "column": 19}, "end_point": {"row": 296, "column": 20}}, {"id": 1211, "type": "call_expression", "text": "vkDestroyCommandPool(device, commandpools[i], NULL)", "parent": 1206, "children": [1212, 1213], "start_point": {"row": 298, "column": 3}, "end_point": {"row": 298, "column": 54}}, {"id": 1212, "type": "identifier", "text": "vkDestroyCommandPool", "parent": 1211, "children": [], "start_point": {"row": 298, "column": 3}, "end_point": {"row": 298, "column": 23}}, {"id": 1213, "type": "argument_list", "text": "(device, commandpools[i], NULL)", "parent": 1211, "children": [1214, 1215, 1218], "start_point": {"row": 298, "column": 23}, "end_point": {"row": 298, "column": 54}}, {"id": 1214, "type": "identifier", "text": "device", "parent": 1213, "children": [], "start_point": {"row": 298, "column": 24}, "end_point": {"row": 298, "column": 30}}, {"id": 1215, "type": "subscript_expression", "text": "commandpools[i]", "parent": 1213, "children": [1216, 1217], "start_point": {"row": 298, "column": 32}, "end_point": {"row": 298, "column": 47}}, {"id": 1216, "type": "identifier", "text": "commandpools", "parent": 1215, "children": [], "start_point": {"row": 298, "column": 32}, "end_point": {"row": 298, "column": 44}}, {"id": 1217, "type": "identifier", "text": "i", "parent": 1215, "children": [], "start_point": {"row": 298, "column": 45}, "end_point": {"row": 298, "column": 46}}, {"id": 1218, "type": "null", "text": "NULL", "parent": 1213, "children": [1219], "start_point": {"row": 298, "column": 49}, "end_point": {"row": 298, "column": 53}}, {"id": 1219, "type": "NULL", "text": "NULL", "parent": 1218, "children": [], "start_point": {"row": 298, "column": 49}, "end_point": {"row": 298, "column": 53}}, {"id": 1220, "type": "assignment_expression", "text": "commandpools[i] = NULL", "parent": 1206, "children": [1221, 1224, 1225], "start_point": {"row": 299, "column": 3}, "end_point": {"row": 299, "column": 25}}, {"id": 1221, "type": "subscript_expression", "text": "commandpools[i]", "parent": 1220, "children": [1222, 1223], "start_point": {"row": 299, "column": 3}, "end_point": {"row": 299, "column": 18}}, {"id": 1222, "type": "identifier", "text": "commandpools", "parent": 1221, "children": [], "start_point": {"row": 299, "column": 3}, "end_point": {"row": 299, "column": 15}}, {"id": 1223, "type": "identifier", "text": "i", "parent": 1221, "children": [], "start_point": {"row": 299, "column": 16}, "end_point": {"row": 299, "column": 17}}, {"id": 1224, "type": "=", "text": "=", "parent": 1220, "children": [], "start_point": {"row": 299, "column": 19}, "end_point": {"row": 299, "column": 20}}, {"id": 1225, "type": "null", "text": "NULL", "parent": 1220, "children": [1226], "start_point": {"row": 299, "column": 21}, "end_point": {"row": 299, "column": 25}}, {"id": 1226, "type": "NULL", "text": "NULL", "parent": 1225, "children": [], "start_point": {"row": 299, "column": 21}, "end_point": {"row": 299, "column": 25}}]}, "node_categories": {"declarations": {"functions": [72, 74, 148, 150, 332, 334, 569, 571, 637, 639, 820, 822, 853, 855, 910, 912, 935, 937, 969, 971, 1074, 1076, 1187, 1189], "variables": [18, 27, 31, 34, 37, 40, 43, 46, 49, 52, 56, 60, 77, 80, 89, 116, 153, 156, 159, 162, 195, 228, 242, 257, 299, 337, 370, 403, 417, 432, 486, 517, 574, 577, 580, 583, 586, 642, 645, 665, 672, 791, 825, 828, 858, 861, 874, 915, 918, 940, 943, 960, 974, 977, 1079, 1085, 1094, 1103, 1115, 1193], "classes": [29, 30, 47, 48, 229, 230, 404, 405], "imports": [0, 1, 3, 4, 6, 7, 9, 10, 12, 13, 15, 16], "modules": [], "enums": []}, "statements": {"expressions": [65, 68, 69, 85, 97, 103, 107, 111, 121, 125, 129, 130, 134, 135, 139, 166, 167, 171, 178, 183, 184, 185, 191, 203, 209, 213, 217, 223, 237, 240, 249, 254, 262, 266, 272, 278, 284, 288, 292, 304, 308, 310, 311, 315, 316, 320, 326, 341, 342, 346, 353, 358, 359, 360, 366, 378, 384, 388, 392, 398, 412, 415, 424, 429, 437, 441, 447, 453, 459, 460, 465, 470, 471, 478, 482, 491, 495, 497, 498, 502, 503, 507, 513, 525, 531, 539, 543, 547, 548, 552, 553, 557, 563, 593, 596, 600, 601, 606, 610, 616, 622, 623, 630, 631, 652, 655, 658, 661, 677, 683, 684, 685, 693, 712, 713, 726, 729, 730, 745, 751, 757, 761, 765, 766, 767, 773, 779, 785, 796, 799, 802, 805, 806, 810, 815, 835, 838, 841, 844, 848, 868, 871, 882, 888, 894, 898, 899, 902, 907, 925, 928, 932, 950, 953, 957, 965, 984, 987, 991, 992, 993, 997, 998, 1002, 1007, 1012, 1023, 1024, 1027, 1030, 1033, 1037, 1041, 1043, 1047, 1048, 1052, 1053, 1054, 1059, 1063, 1068, 1071, 1090, 1099, 1110, 1111, 1122, 1125, 1131, 1135, 1136, 1137, 1141, 1147, 1148, 1153, 1154, 1155, 1160, 1163, 1174, 1178, 1199, 1203, 1207, 1208, 1211, 1215, 1221], "assignments": [96, 102, 110, 202, 208, 216, 222, 265, 271, 277, 283, 377, 383, 391, 397, 440, 446, 452, 458, 469, 477, 524, 530, 536, 605, 615, 621, 629, 690, 744, 750, 756, 772, 778, 784, 814, 847, 881, 887, 893, 1011, 1017, 1128, 1152, 1170, 1181, 1220], "loops": [1109, 1192], "conditionals": [19, 22, 23, 32, 33, 35, 36, 38, 39, 42, 45, 50, 51, 53, 54, 55, 57, 58, 59, 61, 63, 66, 70, 75, 79, 81, 83, 86, 88, 90, 92, 98, 99, 101, 104, 105, 108, 109, 112, 113, 115, 117, 119, 122, 124, 126, 131, 132, 133, 136, 138, 140, 143, 149, 151, 155, 157, 158, 160, 161, 163, 164, 165, 168, 170, 172, 175, 176, 179, 181, 182, 186, 187, 192, 194, 196, 198, 204, 205, 207, 210, 211, 214, 215, 218, 219, 221, 224, 225, 231, 235, 238, 241, 243, 247, 251, 255, 256, 258, 260, 263, 264, 267, 268, 270, 273, 274, 279, 280, 282, 285, 286, 289, 291, 293, 295, 296, 297, 298, 300, 302, 305, 307, 309, 312, 313, 314, 317, 319, 321, 324, 327, 329, 331, 333, 335, 339, 340, 343, 345, 347, 350, 351, 354, 356, 357, 361, 362, 367, 369, 371, 373, 379, 380, 382, 385, 386, 389, 390, 393, 394, 396, 399, 400, 406, 410, 413, 416, 418, 422, 426, 430, 431, 433, 435, 438, 439, 442, 443, 445, 448, 449, 454, 455, 457, 461, 462, 463, 466, 468, 472, 473, 474, 476, 479, 480, 483, 485, 487, 489, 492, 494, 496, 499, 500, 501, 504, 506, 508, 511, 514, 516, 518, 520, 526, 527, 529, 532, 533, 535, 537, 540, 542, 544, 549, 550, 551, 554, 556, 558, 561, 564, 566, 568, 572, 575, 576, 578, 579, 581, 582, 584, 585, 587, 591, 594, 597, 598, 599, 602, 604, 607, 608, 611, 613, 617, 618, 620, 624, 625, 626, 628, 632, 633, 634, 636, 640, 643, 644, 646, 650, 653, 656, 657, 659, 662, 663, 666, 668, 673, 675, 679, 682, 686, 687, 689, 691, 695, 699, 701, 704, 710, 714, 715, 716, 719, 724, 727, 731, 732, 733, 736, 741, 746, 747, 749, 752, 753, 755, 758, 759, 762, 764, 768, 769, 771, 774, 775, 777, 780, 781, 786, 787, 792, 794, 797, 800, 801, 803, 804, 807, 809, 811, 816, 817, 823, 826, 827, 829, 833, 836, 839, 840, 842, 845, 846, 849, 850, 856, 859, 860, 862, 866, 869, 872, 873, 875, 877, 883, 884, 886, 889, 890, 895, 896, 900, 901, 903, 905, 908, 909, 911, 913, 916, 917, 919, 923, 926, 929, 930, 933, 934, 936, 938, 941, 942, 944, 948, 951, 954, 955, 958, 959, 961, 963, 966, 968, 972, 975, 976, 978, 982, 985, 988, 989, 990, 994, 995, 999, 1001, 1003, 1004, 1006, 1008, 1013, 1014, 1016, 1018, 1020, 1022, 1025, 1026, 1028, 1031, 1032, 1034, 1036, 1038, 1040, 1042, 1044, 1045, 1049, 1050, 1051, 1055, 1056, 1058, 1060, 1062, 1064, 1065, 1069, 1072, 1073, 1077, 1080, 1082, 1084, 1086, 1088, 1091, 1093, 1095, 1097, 1100, 1102, 1106, 1112, 1114, 1116, 1120, 1123, 1126, 1127, 1129, 1132, 1133, 1134, 1138, 1140, 1142, 1143, 1145, 1146, 1149, 1151, 1157, 1161, 1164, 1165, 1166, 1168, 1171, 1173, 1175, 1177, 1180, 1182, 1184, 1186, 1190, 1196, 1200, 1202, 1204, 1206, 1209, 1210, 1212, 1214, 1216, 1217, 1222, 1223], "returns": [144, 146, 177, 325, 330, 352, 512, 562, 567, 931, 956, 1021, 1185], "exceptions": []}, "expressions": {"calls": [], "literals": [2, 5, 8, 11, 14, 17, 26, 71, 95, 142, 145, 147, 174, 201, 227, 323, 349, 376, 402, 510, 523, 560, 664, 671, 681, 721, 738, 743, 783, 813, 880, 892, 906, 1010, 1046, 1108, 1198], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": [698, 703, 709, 718, 723, 735, 740]}}, "cross_language_map": {"function_declarations": [{"node_id": 72, "universal_type": "function", "name": "commandpool_create", "text_snippet": "static int commandpool_create(uint8_t thread_idx)\n{\n\tQueueFamilies queueFamilyIndices = get_queue_fa"}, {"node_id": 74, "universal_type": "function", "name": "unknown", "text_snippet": "commandpool_create(uint8_t thread_idx)"}, {"node_id": 148, "universal_type": "function", "name": "handle_wrapper*", "text_snippet": "Commandbuffer commandbuffer_create_secondary(uint8_t thread_idx, Commandbuffer primary, VkRenderPass"}, {"node_id": 150, "universal_type": "function", "name": "unknown", "text_snippet": "commandbuffer_create_secondary(uint8_t thread_idx, Commandbuffer primary, VkRenderPass renderPass, F"}, {"node_id": 332, "universal_type": "function", "name": "handle_wrapper*", "text_snippet": "Commandbuffer commandbuffer_create_primary(uint8_t thread_idx)\n{\n\tif (thread_idx >= RENDERER_MAX_THR"}, {"node_id": 334, "universal_type": "function", "name": "unknown", "text_snippet": "commandbuffer_create_primary(uint8_t thread_idx)"}, {"node_id": 569, "universal_type": "function", "name": "commandbuffer_set_info", "text_snippet": "void commandbuffer_set_info(Commandbuffer commandbuffer, Commandbuffer primary, VkRenderPass renderP"}, {"node_id": 571, "universal_type": "function", "name": "unknown", "text_snippet": "commandbuffer_set_info(Commandbuffer commandbuffer, Commandbuffer primary, VkRenderPass renderPass, "}, {"node_id": 637, "universal_type": "function", "name": "commandbuffer_begin", "text_snippet": "void commandbuffer_begin(Commandbuffer commandbuffer)\n{\n\tCommandbuffer_raw* raw = handlepool_get_raw"}, {"node_id": 639, "universal_type": "function", "name": "unknown", "text_snippet": "commandbuffer_begin(Commandbuffer commandbuffer)"}, {"node_id": 820, "universal_type": "function", "name": "commandbuffer_end", "text_snippet": "void commandbuffer_end(Commandbuffer commandbuffer)\n{\n\tCommandbuffer_raw* raw = handlepool_get_raw(&"}, {"node_id": 822, "universal_type": "function", "name": "unknown", "text_snippet": "commandbuffer_end(Commandbuffer commandbuffer)"}, {"node_id": 853, "universal_type": "function", "name": "commandbuffer_submit", "text_snippet": "void commandbuffer_submit(Commandbuffer commandbuffer)\n{\n\tCommandbuffer_raw* raw = handlepool_get_ra"}, {"node_id": 855, "universal_type": "function", "name": "unknown", "text_snippet": "commandbuffer_submit(Commandbuffer commandbuffer)"}, {"node_id": 910, "universal_type": "function", "name": "unknown", "text_snippet": "VkCommandBuffer commandbuffer_vk(Commandbuffer commandbuffer)\n{\n\tCommandbuffer_raw* raw = handlepool"}, {"node_id": 912, "universal_type": "function", "name": "unknown", "text_snippet": "commandbuffer_vk(Commandbuffer commandbuffer)"}, {"node_id": 935, "universal_type": "function", "name": "unknown", "text_snippet": "VkFence commandbuffer_fence(Commandbuffer commandbuffer)\n{\n\tCommandbuffer_raw* raw = handlepool_get_"}, {"node_id": 937, "universal_type": "function", "name": "unknown", "text_snippet": "commandbuffer_fence(Commandbuffer commandbuffer)"}, {"node_id": 969, "universal_type": "function", "name": "commandbuffer_destroy", "text_snippet": "void commandbuffer_destroy(Commandbuffer commandbuffer)\n{\n\tCommandbuffer_raw* raw = handlepool_get_r"}, {"node_id": 971, "universal_type": "function", "name": "unknown", "text_snippet": "commandbuffer_destroy(Commandbuffer commandbuffer)"}, {"node_id": 1074, "universal_type": "function", "name": "unknown", "text_snippet": "uint32_t commandbuffer_handle_destructions()\n{\n\tCommandbuffer item = destroy_queue;\n\tCommandbuffer p"}, {"node_id": 1076, "universal_type": "function", "name": "unknown", "text_snippet": "commandbuffer_handle_destructions()"}, {"node_id": 1187, "universal_type": "function", "name": "commandbuffer_destroy_pools", "text_snippet": "void commandbuffer_destroy_pools()\n{\n\tfor (uint32_t i = 0; i < RENDERER_MAX_THREADS; i++)\n\t{\n\t\tif (c"}, {"node_id": 1189, "universal_type": "function", "name": "unknown", "text_snippet": "commandbuffer_destroy_pools()"}], "class_declarations": [{"node_id": 29, "universal_type": "class", "name": "{", "text_snippet": "struct\n{\n\t// One command buffer for each frame\n\tVkCommandBuffer cmd;\n\tVkCommandBufferLevel level;\n\n\t"}, {"node_id": 30, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 47, "universal_type": "class", "name": "{", "text_snippet": "struct\n\t{\n\t\tFramebuffer framebuffer;\n\t\tVkRenderPass renderPass;\n\t}"}, {"node_id": 48, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 229, "universal_type": "class", "name": "handle_wrapper", "text_snippet": "struct handle_wrapper"}, {"node_id": 230, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 404, "universal_type": "class", "name": "handle_wrapper", "text_snippet": "struct handle_wrapper"}, {"node_id": 405, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}], "import_statements": [{"node_id": 0, "text": "#include \"graphics/commandbuffer.h\"\n"}, {"node_id": 1, "text": "#include"}, {"node_id": 3, "text": "#include \"graphics/vulkan_members.h\"\n"}, {"node_id": 4, "text": "#include"}, {"node_id": 6, "text": "#include \"mempool.h\"\n"}, {"node_id": 7, "text": "#include"}, {"node_id": 9, "text": "#include \"magpie.h\"\n"}, {"node_id": 10, "text": "#include"}, {"node_id": 12, "text": "#include \"log.h\"\n"}, {"node_id": 13, "text": "#include"}, {"node_id": 15, "text": "#include \"handlepool.h\"\n"}, {"node_id": 16, "text": "#include"}]}, "original_source_code": "#include \"graphics/commandbuffer.h\"\n#include \"graphics/vulkan_members.h\"\n#include \"mempool.h\"\n#include \"magpie.h\"\n#include \"log.h\"\n#include \"handlepool.h\"\n\nstatic VkCommandPool commandpools[RENDERER_MAX_THREADS] = {0};\n\ntypedef struct\n{\n\t// One command buffer for each frame\n\tVkCommandBuffer cmd;\n\tVkCommandBufferLevel level;\n\n\t// The fence that gets signaled when command buffer is complete\n\tVkFence fence;\n\t// Signifies which pool it was allocated from\n\t// Should not be changed\n\tuint8_t thread_idx;\n\tbool recording;\n\tstruct\n\t{\n\t\tFramebuffer framebuffer;\n\t\tVkRenderPass renderPass;\n\t} info;\n\t// If in destroy queue\n\tCommandbuffer next;\n} Commandbuffer_raw;\n\nstatic handlepool_t handlepool = HANDLEPOOL_INIT(sizeof(Commandbuffer_raw), \"Commandbuffer\");\n\nstatic int commandpool_create(uint8_t thread_idx)\n{\n\tQueueFamilies queueFamilyIndices = get_queue_families(physical_device);\n\n\tVkCommandPoolCreateInfo poolInfo = {0};\n\tpoolInfo.sType = VK_STRUCTURE_TYPE_COMMAND_POOL_CREATE_INFO;\n\tpoolInfo.queueFamilyIndex = queueFamilyIndices.graphics;\n\t// Enables the renderer to individually reset command buffers\n\tpoolInfo.flags = VK_COMMAND_POOL_CREATE_RESET_COMMAND_BUFFER_BIT; // Optional\n\tVkResult result = vkCreateCommandPool(device, &poolInfo, NULL, &commandpools[thread_idx]);\n\tif (result != VK_SUCCESS)\n\t{\n\t\tLOG_E(\"Failed to create command pool - code %d\", result);\n\t\treturn -1;\n\t}\n\treturn 0;\n}\n\nCommandbuffer commandbuffer_create_secondary(uint8_t thread_idx, Commandbuffer primary, VkRenderPass renderPass, Framebuffer frameBuffer)\n{\n\tif (thread_idx >= RENDERER_MAX_THREADS)\n\t{\n\t\tLOG_E(\"Thread index of %d is greater than the maximum number of threads %d\", thread_idx, RENDERER_MAX_THREADS);\n\t\treturn INVALID(Commandbuffer);\n\t}\n\n\t// Create command pool if it doesn't exist\n\tif (commandpools[thread_idx] == NULL)\n\t{\n\t\tcommandpool_create(thread_idx);\n\t}\n\n\t// Create command buffer\n\n\t// Allocate primary command buffer\n\tVkCommandBufferAllocateInfo allocInfo = {0};\n\tallocInfo.sType = VK_STRUCTURE_TYPE_COMMAND_BUFFER_ALLOCATE_INFO;\n\tallocInfo.commandPool = commandpools[thread_idx];\n\tallocInfo.level = VK_COMMAND_BUFFER_LEVEL_SECONDARY;\n\tallocInfo.commandBufferCount = 1;\n\n\tconst struct handle_wrapper* wrapper = handlepool_alloc(&handlepool);\n\tCommandbuffer_raw* raw = (Commandbuffer_raw*)wrapper->data;\n\tCommandbuffer handle = wrapper->handle;\n\n\traw->thread_idx = thread_idx;\n\traw->recording = false;\n\traw->level = VK_COMMAND_BUFFER_LEVEL_SECONDARY;\n\traw->next = INVALID(Commandbuffer);\n\n\t// Fill in inheritance info struct\n\tcommandbuffer_set_info(handle, primary, renderPass, frameBuffer);\n\n\tVkResult result = vkAllocateCommandBuffers(device, &allocInfo, &raw->cmd);\n\tif (result != VK_SUCCESS)\n\t{\n\t\tLOG_E(\"Failed to create command buffers - code %d\", result);\n\t\treturn INVALID(Commandbuffer);\n\t}\n\n\treturn handle;\n}\n\nCommandbuffer commandbuffer_create_primary(uint8_t thread_idx)\n{\n\tif (thread_idx >= RENDERER_MAX_THREADS)\n\t{\n\t\tLOG_E(\"Thread index of %d is greater than the maximum number of threads %d\", thread_idx, RENDERER_MAX_THREADS);\n\t\treturn INVALID(Commandbuffer);\n\t}\n\n\t// Create command pool if it doesn't exist\n\tif (commandpools[thread_idx] == NULL)\n\t{\n\t\tcommandpool_create(thread_idx);\n\t}\n\n\t// Create command buffer\n\n\t// Allocate primary command buffer\n\tVkCommandBufferAllocateInfo allocInfo = {0};\n\tallocInfo.sType = VK_STRUCTURE_TYPE_COMMAND_BUFFER_ALLOCATE_INFO;\n\tallocInfo.commandPool = commandpools[thread_idx];\n\tallocInfo.level = VK_COMMAND_BUFFER_LEVEL_PRIMARY;\n\tallocInfo.commandBufferCount = 1;\n\n\tconst struct handle_wrapper* wrapper = handlepool_alloc(&handlepool);\n\tCommandbuffer_raw* raw = (Commandbuffer_raw*)wrapper->data;\n\tCommandbuffer handle = wrapper->handle;\n\traw->thread_idx = thread_idx;\n\traw->recording = false;\n\traw->level = VK_COMMAND_BUFFER_LEVEL_PRIMARY;\n\traw->info.framebuffer = INVALID(Framebuffer);\n\traw->info.renderPass = VK_NULL_HANDLE;\n\traw->next = INVALID(Commandbuffer);\n\n\tVkResult result = vkAllocateCommandBuffers(device, &allocInfo, &raw->cmd);\n\n\tif (result != VK_SUCCESS)\n\t{\n\t\tLOG_E(\"Failed to create command buffers - code %d\", result);\n\t\treturn INVALID(Commandbuffer);\n\t}\n\n\t// Create fence\n\tVkFenceCreateInfo fence_info = {0};\n\tfence_info.sType = VK_STRUCTURE_TYPE_FENCE_CREATE_INFO;\n\tfence_info.flags = VK_FENCE_CREATE_SIGNALED_BIT;\n\n\tresult = vkCreateFence(device, &fence_info, NULL, &raw->fence);\n\tif (result != VK_SUCCESS)\n\t{\n\t\tLOG_E(\"Failed to create command buffer fence - code %d\", result);\n\t\treturn INVALID(Commandbuffer);\n\t}\n\n\treturn handle;\n}\n\nvoid commandbuffer_set_info(Commandbuffer commandbuffer, Commandbuffer primary, VkRenderPass renderPass, Framebuffer framebuffer)\n{\n\tCommandbuffer_raw* raw = handlepool_get_raw(&handlepool, commandbuffer);\n\tif (HANDLE_VALID(primary))\n\t\traw->fence = commandbuffer_fence(primary);\n\telse\n\t\traw->fence = VK_NULL_HANDLE;\n\n\traw->info.renderPass = renderPass;\n\traw->info.framebuffer = framebuffer;\n}\n\nvoid commandbuffer_begin(Commandbuffer commandbuffer)\n{\n\tCommandbuffer_raw* raw = handlepool_get_raw(&handlepool, commandbuffer);\n\n\tvkResetCommandBuffer(raw->cmd, 0);\n\tVkCommandBufferBeginInfo begin_info = {0};\n\tVkCommandBufferInheritanceInfo inheritanceInfo = (VkCommandBufferInheritanceInfo){0};\n\tif (raw->level == VK_COMMAND_BUFFER_LEVEL_SECONDARY)\n\t{\n\t\tinheritanceInfo = (VkCommandBufferInheritanceInfo){\n\t\t\t.sType = VK_STRUCTURE_TYPE_COMMAND_BUFFER_INHERITANCE_INFO,\n\t\t\t.pNext = NULL,\n\t\t\t.renderPass = raw->info.renderPass,\n\t\t\t.subpass = 0,\n\t\t\t.framebuffer = framebuffer_vk(raw->info.framebuffer),\n\t\t\t.queryFlags = 0,\n\t\t\t.pipelineStatistics = 0};\n\n\t\tbegin_info.sType = VK_STRUCTURE_TYPE_COMMAND_BUFFER_BEGIN_INFO;\n\t\tbegin_info.flags = VK_COMMAND_BUFFER_USAGE_RENDER_PASS_CONTINUE_BIT;\n\t\tbegin_info.pInheritanceInfo = &inheritanceInfo;\n\n\t\t// Start recording\n\t}\n\telse if (raw->level == VK_COMMAND_BUFFER_LEVEL_PRIMARY)\n\t{\n\t\tbegin_info.sType = VK_STRUCTURE_TYPE_COMMAND_BUFFER_BEGIN_INFO;\n\t\tbegin_info.flags = 0;\n\t\tbegin_info.pInheritanceInfo = NULL;\n\t}\n\n\tVkResult result = vkBeginCommandBuffer(raw->cmd, &begin_info);\n\tif (result != VK_SUCCESS)\n\t{\n\t\tLOG_E(\"Failed to start recording of command buffer\");\n\t}\n\traw->recording = true;\n}\n// This will end recording of a primary or secondary command buffer\nvoid commandbuffer_end(Commandbuffer commandbuffer)\n{\n\tCommandbuffer_raw* raw = handlepool_get_raw(&handlepool, commandbuffer);\n\n\tvkEndCommandBuffer(raw->cmd);\n\traw->recording = false;\n}\n\nvoid commandbuffer_submit(Commandbuffer commandbuffer)\n{\n\tCommandbuffer_raw* raw = handlepool_get_raw(&handlepool, commandbuffer);\n\n\tVkSubmitInfo submitInfo = {0};\n\tsubmitInfo.sType = VK_STRUCTURE_TYPE_SUBMIT_INFO;\n\tsubmitInfo.commandBufferCount = 1;\n\tsubmitInfo.pCommandBuffers = &raw->cmd;\n\n\tvkQueueSubmit(graphics_queue, 1, &submitInfo, VK_NULL_HANDLE);\n}\n\nVkCommandBuffer commandbuffer_vk(Commandbuffer commandbuffer)\n{\n\tCommandbuffer_raw* raw = handlepool_get_raw(&handlepool, commandbuffer);\n\treturn raw->cmd;\n}\nVkFence commandbuffer_fence(Commandbuffer commandbuffer)\n{\n\tCommandbuffer_raw* raw = handlepool_get_raw(&handlepool, commandbuffer);\n\treturn raw->fence;\n}\n\nstatic Commandbuffer destroy_queue = INVALID(Commandbuffer);\n\nvoid commandbuffer_destroy(Commandbuffer commandbuffer)\n{\n\tCommandbuffer_raw* raw = handlepool_get_raw(&handlepool, commandbuffer);\n\n\t// Command buffer is in use\n\tif (raw->fence && vkGetFenceStatus(device, raw->fence) != VK_SUCCESS)\n\t{\n\t\t// Queue for destruction\n\t\tLOG_S(\"Command buffer is still in use, queueing\");\n\t\t// Insert at head\n\t\traw->next = destroy_queue;\n\t\tdestroy_queue = commandbuffer;\n\t\treturn;\n\t}\n\n\t// Not in use, destroy immediately\n\tif (raw->recording)\n\t\tvkEndCommandBuffer(raw->cmd);\n\n\tvkQueueWaitIdle(graphics_queue);\n\n\tvkFreeCommandBuffers(device, commandpools[raw->thread_idx], 1, &raw->cmd);\n\tif (raw->level == VK_COMMAND_BUFFER_LEVEL_PRIMARY)\n\t\tvkDestroyFence(device, raw->fence, NULL);\n\n\thandlepool_free(&handlepool, commandbuffer);\n}\n\nuint32_t commandbuffer_handle_destructions()\n{\n\tCommandbuffer item = destroy_queue;\n\tCommandbuffer prev = INVALID(Commandbuffer);\n\tCommandbuffer next = INVALID(Commandbuffer);\n\tuint32_t destroyed = 0;\n\twhile (HANDLE_VALID(item))\n\t{\n\t\tCommandbuffer_raw* raw = handlepool_get_raw(&handlepool, item);\n\t\tnext = raw->next;\n\t\tif (vkGetFenceStatus(device, raw->fence) == VK_SUCCESS)\n\t\t{\n\t\t\tif (HANDLE_VALID(prev))\n\t\t\t{\n\t\t\t\t((Commandbuffer_raw*)handlepool_get_raw(&handlepool, prev))->next = next;\n\t\t\t}\n\t\t\t// At head\n\t\t\telse\n\t\t\t{\n\t\t\t\tdestroy_queue = next;\n\t\t\t}\n\t\t\tcommandbuffer_destroy(item);\n\t\t\t++destroyed;\n\t\t}\n\t\titem = next;\n\t}\n\treturn destroyed;\n}\n\nvoid commandbuffer_destroy_pools()\n{\n\tfor (uint32_t i = 0; i < RENDERER_MAX_THREADS; i++)\n\t{\n\t\tif (commandpools[i])\n\t\t{\n\t\t\tvkDestroyCommandPool(device, commandpools[i], NULL);\n\t\t\tcommandpools[i] = NULL;\n\t\t}\n\t}\n}\n"}
80,021
c
/* utbi_futougou_ui.c * Copyright (C) 2008 梅どぶろく umedoblock */ #include "utbi_sanjutsu.h" int utbi_futougou_ui(unt *iroha_futougou, unt nihohe_futougou) { extern int yousosuu; #ifdef ___ASSEMBLE_WIN32___ _asm{ mov edx, dword ptr [iroha_futougou] mov ecx, [yousosuu] shl ecx, 2 add edx, ecx shr ecx, 2 lea edx, [edx - 4] dec ecx loop0: cmp dword ptr [edx], 0 jne loop_cmp lea edx, [edx - 4] loop short loop0 mov eax, dword ptr [edx] cmp eax, [nihohe_futougou] loop_cmp: jb loop_mi jz loop_equal mov eax, 1 jmp loop0000 loop_equal: xor eax, eax jmp loop0000 loop_mi: or eax, 0ffffffffh loop0000: } #else int i; for(i=yousosuu-1; *(iroha_futougou+i)==0 && i>0;i--){ } if(i != 0){ return 1; }else{ if(*iroha_futougou > nihohe_futougou){ return 1; }else if(*iroha_futougou < nihohe_futougou){ return -1; }else{ return 0; } } #endif }
16.77
53
(translation_unit) "/* utbi_futougou_ui.c\n * Copyright (C) 2008 梅どぶろく umedoblock\n */\n\n#include "utbi_sanjutsu.h"\n\nint utbi_futougou_ui(unt *iroha_futougou, unt nihohe_futougou)\n{\n extern int yousosuu;\n#ifdef ___ASSEMBLE_WIN32___\n _asm{\n mov edx, dword ptr [iroha_futougou]\n\n mov ecx, [yousosuu]\n shl ecx, 2\n add edx, ecx\n shr ecx, 2\n\n lea edx, [edx - 4]\n dec ecx\n\n loop0:\n cmp dword ptr [edx], 0\n jne loop_cmp\n lea edx, [edx - 4]\n loop short loop0\n\n mov eax, dword ptr [edx]\n cmp eax, [nihohe_futougou]\n loop_cmp:\n jb loop_mi\n jz loop_equal\n mov eax, 1\n jmp loop0000\n loop_equal:\n xor eax, eax\n jmp loop0000\n loop_mi:\n or eax, 0ffffffffh\n\n loop0000:\n }\n#else\n \n int i;\n\n for(i=yousosuu-1; *(iroha_futougou+i)==0 && i>0;i--){\n }\n\n if(i != 0){\n return 1;\n }else{\n if(*iroha_futougou > nihohe_futougou){\n return 1;\n }else if(*iroha_futougou < nihohe_futougou){\n return -1;\n }else{\n return 0;\n }\n }\n#endif\n}\n" (comment) "/* utbi_futougou_ui.c\n * Copyright (C) 2008 梅どぶろく umedoblock\n */\n\n#include" (preproc_include) "utbi_sanjutsu.h"\n\nint utbi_" (#include) "utbi_san" (string_literal) "utsu.h"\n\nint utbi" (") "u" (string_content) "tsu.h"\n\nint utb" (") "i" (ERROR) "utougou_ui(unt *iroha_futougou, unt nihohe_futougou)\n{\n extern int yousosuu;\n#ifdef ___ASSEMBLE_WIN32___\n _asm{\n mov edx, dword ptr [iroha_futougou]\n\n mov ecx, [yousosuu]\n shl ecx, 2\n add edx, ecx\n shr ecx, 2\n\n lea edx, [edx - 4]\n dec ecx\n\n loop0:\n cmp dword ptr [edx], 0\n jne loop_cmp\n lea edx, [edx - 4]\n loop short loop0\n\n mov eax, dword ptr [edx]\n cmp eax, [nihohe_futougou]\n loop_cmp:\n jb loop_mi\n jz loop_equal\n mov eax, 1\n jmp loop0000\n loop_equal:\n xor eax, eax\n jmp loop0000\n loop_mi:\n or eax, 0ffffffffh\n\n loop0000:\n }\n#else\n \n int i;\n\n for(i=yousosuu-1; *(iroha_futougou+i)==0 && i>0;i--){\n }\n\n if(i != 0){\n return 1;\n }else{\n if(*iroha_futougou > nihohe_futougou){\n return 1;\n }else if(*iroha_futougou < nihohe_futougou){\n return -1;\n }else{\n return 0;\n }\n }\n#endif\n}\n" (primitive_type) "uto" (function_declarator) "gou_ui(unt *iroha_futougou, unt nihohe_futougou)\n{\n extern" (identifier) "gou_ui(unt *iroh" (parameter_list) "a_futougou, unt nihohe_futougou)\n{\n extern" (() "a" (parameter_declaration) "_futougou, unt niho" (type_identifier) "_fu" (pointer_declarator) "ougou, unt niho" (*) "o" (identifier) "ugou, unt niho" (,) "h" (parameter_declaration) "_futougou)\n{\n exter" (type_identifier) "_fu" (identifier) "ougou)\n{\n exter" ()) "n" ({) "i" (declaration) " yousosuu;\n#ifdef __" (storage_class_specifier) " youso" (extern) " youso" (primitive_type) "uu;" (identifier) "#ifdef _" (;) "_" (#ifdef) "ASSEMB" (identifier) "E_WIN32___\n _asm{\n " (ERROR) "ov e" (identifier) "ov e" (compound_statement) "dx, dword ptr [iroha_futougou]\n\n mov ecx, [yousosuu]\n shl ecx, 2\n add edx, ecx\n shr ecx, 2\n\n lea edx, [edx - 4]\n dec ecx\n\n loop0:\n cmp dword ptr [edx], 0\n jne loop_cmp\n lea edx, [edx - 4]\n loop short loop0\n\n mov eax, dword ptr [edx]\n cmp eax, [nihohe_futougou]\n loop_cmp:\n jb loop_mi\n jz loop_equal\n mov eax, 1\n jmp loop0000\n loop_equal:\n xor eax, eax\n jmp loop0000\n loop_mi:\n or eax, 0ffffffffh\n\n loop0000:\n }\n#else\n \n int i;\n\n for(i=yousosuu-1; *(iroha_futougou+i)==0 && i>0;i--){\n }\n\n if(i != 0){\n return 1;\n }else{\n if(*iroha_futougou > nihohe_futougou){\n return 1;\n }else if(*iroha_futougou < nihohe_futougou){\n return -1;\n }else{\n return 0;\n }\n }\n#endif\n}\n" ({) "d" (declaration) "word ptr [iroha_futougou]\n\n mov ecx, [yousosuu]\n shl ecx, 2\n add edx, ecx\n shr ecx, 2\n\n lea edx, [edx - 4]\n dec ecx\n\n loop0:\n cmp dword ptr [edx], 0\n jne loop_cmp\n lea edx, [edx - 4]\n loop short loop0\n\n mov eax, dword ptr [edx]\n cmp eax, [nihohe_futougou]\n loop_cmp:\n jb loop_mi\n jz loop_equal\n mov eax, 1\n jmp loop0000\n loop_equal:\n xor eax, eax\n jmp loop0000\n loop_mi:\n or eax, 0ffffffffh\n\n loop0000:\n }\n#else\n \n int i;\n\n for(i=y" (type_identifier) "wor" (identifier) " pt" (,) "r" (array_declarator) "[iroha_futougou]\n\n mov e" (identifier) "[iroh" (ERROR) "_fu" (identifier) "_fu" ([) "o" (identifier) "ugou]\n\n mov " (]) "e" (ERROR) "yousosu" (identifier) "you" (identifier) "osu" (,) "u" (array_declarator) "]\n shl ec" (identifier) "" ([) "\n" (identifier) " shl e" (]) "c" (ERROR) "\n add" (identifier) "\n " (identifier) "add" (,) " " (ERROR) "dx, ecx\n" (number_literal) "d" (identifier) "cx\n" (identifier) " s" (,) "h" (identifier) " ec" (ERROR) "\n\n le" (identifier) "\n\n " (identifier) " le" (,) "a" (ERROR) "edx, [edx" (number_literal) "e" (identifier) "edx" (identifier) "- 4" (,) "]" (ERROR) "\n dec ecx\n\n loop0:\n cmp dword ptr [edx]" (array_declarator) "\n dec ec" (identifier) "" ([) " " (binary_expression) " dec e" (identifier) " d" (-) "c" (number_literal) "e" (]) "c" (identifier) " lo" (identifier) "p0:" (identifier) "cmp d" (:) "w" (identifier) "ptr" (identifier) "[edx]" (array_declarator) " 0\n jne" (identifier) " 0\n" ([) " " (identifier) " jn" (]) "e" (,) " " (ERROR) "oop_cmp\n lea edx, [edx" (number_literal) "o" (identifier) "mp\n" (identifier) " lea ed" (identifier) "edx" (identifier) "- 4" (,) "]" (ERROR) "\n loop short loop0\n\n mov eax, dwor" (array_declarator) "\n loop s" (identifier) "" ([) " " (binary_expression) " loop " (identifier) " l" (-) "o" (number_literal) " " (]) "s" (identifier) " loo" (short) "0\n\n " (identifier) "mov e" (identifier) "wor" (identifier) " pt" (,) "r" (array_declarator) "[edx]\n " (identifier) "[edx]" (ERROR) " " (identifier) " " ([) " " (identifier) " " (]) " " (ERROR) "nihohe_" (identifier) "nih" (identifier) "he_" (,) "f" (ERROR) "utougou]\n loop_cmp:\n jb loop_mi\n jz loop_equal\n mov eax, 1\n " (array_declarator) "utougou]\n loop_cm" (identifier) "" ([) "t" (identifier) "ougou]\n loop_c" (]) "m" (identifier) " jb lo" (:) "o" (identifier) "\n " (identifier) " jz loo" (identifier) "ua" (identifier) "\n mov ea" (identifier) "\n " (identifier) "jmp" (,) " " (ERROR) "oop0000\n loop_equal:\n xor eax, eax\n" (number_literal) "o" (identifier) "00\n" (identifier) " loop_eq" (identifier) ":\n xor e" (:) "a" (identifier) "ax\n" (identifier) " j" (,) "m" (ERROR) " loop0000\n loop_mi:\n or eax, 0fff" (identifier) " lo" (identifier) "00\n" (identifier) " loop_mi" (identifier) " or ea" (:) "x" (identifier) "ff" (identifier) "fff" (,) "f" (ERROR) "\n\n loop0000:\n }\n#else\n \n int i;\n\n for(" (number_literal) "\n\n loop0" (identifier) "0" (identifier) " }\n#else" (:) "\n" (}) " " (#else) " int " (primitive_type) "or(" (identifier) "=" (;) "y" (for_statement) "osuu-1; *(iroha_futougou+i)==0 && i>0;i--){\n }\n\n if(i !=" (for) "osu" (() "u" (assignment_expression) "-1; *(iroha_" (identifier) "-" (=) "1" (binary_expression) "; *(iroha_" (identifier) "; *(iroh" (-) "a" (number_literal) "_" (;) "f" (binary_expression) "tougou+i)==0 && i>0;i--){\n }\n" (binary_expression) "tougou+i)==0 && i>0;i-" (pointer_expression) "tougou+i)==0 && i>0" (*) "t" (parenthesized_expression) "ougou+i)==0 && i>0" (() "o" (binary_expression) "ugou+i)==0 && i>" (identifier) "ugou+i)==0 && " (+) "i" (identifier) ">" ()) "0" (==) ";i" (number_literal) "-" (&&) "){" (binary_expression) " }\n" (identifier) " " (>) "}" (number_literal) "\n" (;) "\n" (update_expression) " if" (identifier) " " (--) "if" ()) "(" (compound_statement) "i !=" ({) "i" (}) "=" (if_statement) "{\n return 1;\n }else{\n if(*iroha_futougou > nihohe_futougou){\n return 1;\n }else if(*iroha_futougou < nihohe_futougou){\n return -1;\n }else{\n return 0;\n }\n }\n#endif\n}\n" (if) "{\n" (parenthesized_expression) " return" (() " " (binary_expression) " retur" (identifier) " " (!=) "et" (number_literal) "r" ()) "n" (compound_statement) " 1;\n }else{\n if" ({) " " (return_statement) " }else{\n " (return) " }else" (number_literal) "\n" (;) " " (}) "f" (else_clause) "(*iroha_futougou > nihohe_futougou){\n return 1;\n }else if(*iroha_futougou < nihohe_futougou){\n return -1;\n }else{\n return 0;\n }\n }\n#endif\n}\n" (else) "(*ir" (compound_statement) "oha_futougou > nihohe_futougou){\n return 1;\n }else if(*iroha_futougou < nihohe_futougou){\n return -1;\n }else{\n return 0;\n }\n }\n#endif\n}\n" ({) "o" (if_statement) "futougou > nihohe_futougou){\n return 1;\n }else if(*iroha_futougou < nihohe_futougou){\n return -1;\n }else{\n return 0;\n }\n }\n#endif" (if) "fu" (parenthesized_expression) "tougou > nihohe_futougou){\n retur" (() "t" (binary_expression) "ougou > nihohe_futougou){\n retu" (pointer_expression) "ougou > nihohe_" (*) "o" (identifier) "ugou > nihohe_" (>) "u" (identifier) "ougou){\n retu" ()) "r" (compound_statement) "n 1;\n }else if(*i" ({) "n" (return_statement) " }else i" (return) " }els" (number_literal) " " (;) "i" (}) "i" (else_clause) "roha_futougou < nihohe_futougou){\n return -1;\n }else{\n return 0;\n }\n }\n#endif" (else) "roha" (if_statement) "futougou < nihohe_futougou){\n return -1;\n }else{\n return 0;\n }\n }\n#endif" (if) "fu" (parenthesized_expression) "tougou < nihohe_futougou){\n retur" (() "t" (binary_expression) "ougou < nihohe_futougou){\n retu" (pointer_expression) "ougou < nihohe_" (*) "o" (identifier) "ugou < nihohe_" (<) "u" (identifier) "ougou){\n retu" ()) "r" (compound_statement) "n -1;\n }else{\n r" ({) "n" (return_statement) "\n }else{\n" (return) "\n }el" (number_literal) "e{" (;) "\n" (}) "r" (else_clause) "eturn 0;\n }\n }\n#endif" (else) "etur" (compound_statement) "n 0;\n }\n }\n#endif" ({) "n" (return_statement) " }\n }\n#e" (return) " }\n }" (number_literal) "#" (;) "e" (}) "f" (}) "\n" (preproc_call) "" (preproc_directive) "" (}) ""
281
17
{"language": "c", "success": true, "metadata": {"lines": 53, "avg_line_length": 16.77, "nodes": 184, "errors": 0, "source_hash": "36fca49210d312eab42bde9c720b3f68f80cfda1f6f06d6e09a96f3499fe2418", "categorized_nodes": 134}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "utbi_sanjutsu.h\"\n\nint utbi_", "parent": null, "children": [1, 2], "start_point": {"row": 4, "column": 0}, "end_point": {"row": 5, "column": 0}}, {"id": 1, "type": "#include", "text": "utbi_san", "parent": 0, "children": [], "start_point": {"row": 4, "column": 0}, "end_point": {"row": 4, "column": 8}}, {"id": 2, "type": "string_literal", "text": "utsu.h\"\n\nint utbi", "parent": 0, "children": [], "start_point": {"row": 4, "column": 9}, "end_point": {"row": 4, "column": 26}}, {"id": 3, "type": "ERROR", "text": "utougou_ui(unt *iroha_futougou, unt nihohe_futougou)\n{\n\textern int yousosuu;\n#ifdef ___ASSEMBLE_WIN32___\n\t_asm{\n\t\t\tmov edx, dword ptr [iroha_futougou]\n\n\t\t\tmov ecx, [yousosuu]\n\t\t\tshl ecx, 2\n\t\t\tadd edx, ecx\n\t\t\tshr ecx, 2\n\n\t\t\tlea edx, [edx - 4]\n\t\t\tdec ecx\n\n\t\tloop0:\n\t\t\tcmp dword ptr [edx], 0\n\t\t\tjne loop_cmp\n\t\t\tlea edx, [edx - 4]\n\t\t\tloop short loop0\n\n\t\t\tmov eax, dword ptr [edx]\n cmp eax, [nihohe_futougou]\n\t\tloop_cmp:\n\t\t\tjb loop_mi\n\t\t\tjz loop_equal\n\t\t\tmov eax, 1\n\t\t\tjmp loop0000\n\t\tloop_equal:\n\t\t\txor eax, eax\n\t\t\tjmp loop0000\n\t\tloop_mi:\n\t\t\tor eax, 0ffffffffh\n\n\t\tloop0000:\n\t}\n#else\n\t\t\t\n\tint i;\n\n\tfor(i=yousosuu-1; *(iroha_futougou+i)==0 && i>0;i--){\n\t}\n\n\tif(i != 0){\n\t\treturn 1;\n\t}else{\n\t\tif(*iroha_futougou > nihohe_futougou){\n\t\t\treturn 1;\n\t\t}else if(*iroha_futougou < nihohe_futougou){\n\t\t\treturn -1;\n\t\t}else{\n\t\t\treturn 0;\n\t\t}\n\t}\n#endif\n}\n", "parent": null, "children": [4, 5, 16, 21, 22, 23], "start_point": {"row": 6, "column": 0}, "end_point": {"row": 61, "column": 1}}, {"id": 4, "type": "primitive_type", "text": "uto", "parent": 3, "children": [], "start_point": {"row": 6, "column": 0}, "end_point": {"row": 6, "column": 3}}, {"id": 5, "type": "function_declarator", "text": "gou_ui(unt *iroha_futougou, unt nihohe_futougou)\n{\n\textern", "parent": 3, "children": [6, 7], "start_point": {"row": 6, "column": 4}, "end_point": {"row": 6, "column": 62}}, {"id": 6, "type": "identifier", "text": "gou_ui(unt *iroh", "parent": 5, "children": [], "start_point": {"row": 6, "column": 4}, "end_point": {"row": 6, "column": 20}}, {"id": 7, "type": "parameter_list", "text": "a_futougou, unt nihohe_futougou)\n{\n\textern", "parent": 5, "children": [8, 13], "start_point": {"row": 6, "column": 20}, "end_point": {"row": 6, "column": 62}}, {"id": 8, "type": "parameter_declaration", "text": "_futougou, unt niho", "parent": 7, "children": [9, 10], "start_point": {"row": 6, "column": 21}, "end_point": {"row": 6, "column": 40}}, {"id": 9, "type": "type_identifier", "text": "_fu", "parent": 8, "children": [], "start_point": {"row": 6, "column": 21}, "end_point": {"row": 6, "column": 24}}, {"id": 10, "type": "pointer_declarator", "text": "ougou, unt niho", "parent": 8, "children": [11, 12], "start_point": {"row": 6, "column": 25}, "end_point": {"row": 6, "column": 40}}, {"id": 11, "type": "*", "text": "o", "parent": 10, "children": [], "start_point": {"row": 6, "column": 25}, "end_point": {"row": 6, "column": 26}}, {"id": 12, "type": "identifier", "text": "ugou, unt niho", "parent": 10, "children": [], "start_point": {"row": 6, "column": 26}, "end_point": {"row": 6, "column": 40}}, {"id": 13, "type": "parameter_declaration", "text": "_futougou)\n{\n\texter", "parent": 7, "children": [14, 15], "start_point": {"row": 6, "column": 42}, "end_point": {"row": 6, "column": 61}}, {"id": 14, "type": "type_identifier", "text": "_fu", "parent": 13, "children": [], "start_point": {"row": 6, "column": 42}, "end_point": {"row": 6, "column": 45}}, {"id": 15, "type": "identifier", "text": "ougou)\n{\n\texter", "parent": 13, "children": [], "start_point": {"row": 6, "column": 46}, "end_point": {"row": 6, "column": 61}}, {"id": 16, "type": "declaration", "text": " yousosuu;\n#ifdef __", "parent": 3, "children": [17, 19, 20], "start_point": {"row": 8, "column": 1}, "end_point": {"row": 8, "column": 21}}, {"id": 17, "type": "storage_class_specifier", "text": " youso", "parent": 16, "children": [18], "start_point": {"row": 8, "column": 1}, "end_point": {"row": 8, "column": 7}}, {"id": 18, "type": "extern", "text": " youso", "parent": 17, "children": [], "start_point": {"row": 8, "column": 1}, "end_point": {"row": 8, "column": 7}}, {"id": 19, "type": "primitive_type", "text": "uu;", "parent": 16, "children": [], "start_point": {"row": 8, "column": 8}, "end_point": {"row": 8, "column": 11}}, {"id": 20, "type": "identifier", "text": "#ifdef _", "parent": 16, "children": [], "start_point": {"row": 8, "column": 12}, "end_point": {"row": 8, "column": 20}}, {"id": 21, "type": "#ifdef", "text": "ASSEMB", "parent": 3, "children": [], "start_point": {"row": 9, "column": 0}, "end_point": {"row": 9, "column": 6}}, {"id": 22, "type": "identifier", "text": "E_WIN32___\n\t_asm{\n\t\t", "parent": 3, "children": [], "start_point": {"row": 9, "column": 7}, "end_point": {"row": 9, "column": 27}}, {"id": 23, "type": "ERROR", "text": "ov e", "parent": 3, "children": [24], "start_point": {"row": 10, "column": 1}, "end_point": {"row": 10, "column": 5}}, {"id": 24, "type": "identifier", "text": "ov e", "parent": 23, "children": [], "start_point": {"row": 10, "column": 1}, "end_point": {"row": 10, "column": 5}}, {"id": 25, "type": "declaration", "text": "word ptr [iroha_futougou]\n\n\t\t\tmov ecx, [yousosuu]\n\t\t\tshl ecx, 2\n\t\t\tadd edx, ecx\n\t\t\tshr ecx, 2\n\n\t\t\tlea edx, [edx - 4]\n\t\t\tdec ecx\n\n\t\tloop0:\n\t\t\tcmp dword ptr [edx], 0\n\t\t\tjne loop_cmp\n\t\t\tlea edx, [edx - 4]\n\t\t\tloop short loop0\n\n\t\t\tmov eax, dword ptr [edx]\n cmp eax, [nihohe_futougou]\n\t\tloop_cmp:\n\t\t\tjb loop_mi\n\t\t\tjz loop_equal\n\t\t\tmov eax, 1\n\t\t\tjmp loop0000\n\t\tloop_equal:\n\t\t\txor eax, eax\n\t\t\tjmp loop0000\n\t\tloop_mi:\n\t\t\tor eax, 0ffffffffh\n\n\t\tloop0000:\n\t}\n#else\n\t\t\t\n\tint i;\n\n\tfor(i=y", "parent": 3, "children": [26, 27, 28, 33, 36, 39, 42, 45, 46, 47, 50, 53, 54, 66, 69, 74, 75, 86, 87, 92, 95, 105, 106, 112, 113, 119, 120, 126], "start_point": {"row": 11, "column": 3}, "end_point": {"row": 44, "column": 7}}, {"id": 26, "type": "type_identifier", "text": "wor", "parent": 25, "children": [], "start_point": {"row": 11, "column": 3}, "end_point": {"row": 11, "column": 6}}, {"id": 27, "type": "identifier", "text": " pt", "parent": 25, "children": [], "start_point": {"row": 11, "column": 7}, "end_point": {"row": 11, "column": 10}}, {"id": 28, "type": "array_declarator", "text": "[iroha_futougou]\n\n\t\t\tmov e", "parent": 25, "children": [29, 30, 32], "start_point": {"row": 11, "column": 12}, "end_point": {"row": 11, "column": 38}}, {"id": 29, "type": "identifier", "text": "[iroh", "parent": 28, "children": [], "start_point": {"row": 11, "column": 12}, "end_point": {"row": 11, "column": 17}}, {"id": 30, "type": "ERROR", "text": "_fu", "parent": 28, "children": [31], "start_point": {"row": 11, "column": 18}, "end_point": {"row": 11, "column": 21}}, {"id": 31, "type": "identifier", "text": "_fu", "parent": 30, "children": [], "start_point": {"row": 11, "column": 18}, "end_point": {"row": 11, "column": 21}}, {"id": 32, "type": "identifier", "text": "ugou]\n\n\t\t\tmov ", "parent": 28, "children": [], "start_point": {"row": 11, "column": 23}, "end_point": {"row": 11, "column": 37}}, {"id": 33, "type": "ERROR", "text": "yousosu", "parent": 25, "children": [34, 35], "start_point": {"row": 13, "column": 3}, "end_point": {"row": 13, "column": 10}}, {"id": 34, "type": "identifier", "text": "you", "parent": 33, "children": [], "start_point": {"row": 13, "column": 3}, "end_point": {"row": 13, "column": 6}}, {"id": 35, "type": "identifier", "text": "osu", "parent": 33, "children": [], "start_point": {"row": 13, "column": 7}, "end_point": {"row": 13, "column": 10}}, {"id": 36, "type": "array_declarator", "text": "]\n\t\t\tshl ec", "parent": 25, "children": [37, 38], "start_point": {"row": 13, "column": 11}, "end_point": {"row": 13, "column": 22}}, {"id": 37, "type": "identifier", "text": "", "parent": 36, "children": [], "start_point": {"row": 13, "column": 11}, "end_point": {"row": 13, "column": 11}}, {"id": 38, "type": "identifier", "text": "\t\t\tshl e", "parent": 36, "children": [], "start_point": {"row": 13, "column": 13}, "end_point": {"row": 13, "column": 21}}, {"id": 39, "type": "ERROR", "text": "\n\t\t\tadd", "parent": 25, "children": [40, 41], "start_point": {"row": 14, "column": 3}, "end_point": {"row": 14, "column": 10}}, {"id": 40, "type": "identifier", "text": "\n\t\t", "parent": 39, "children": [], "start_point": {"row": 14, "column": 3}, "end_point": {"row": 14, "column": 6}}, {"id": 41, "type": "identifier", "text": "add", "parent": 39, "children": [], "start_point": {"row": 14, "column": 7}, "end_point": {"row": 14, "column": 10}}, {"id": 42, "type": "ERROR", "text": "dx, ecx\n", "parent": 25, "children": [43, 44], "start_point": {"row": 14, "column": 12}, "end_point": {"row": 15, "column": 6}}, {"id": 43, "type": "number_literal", "text": "d", "parent": 42, "children": [], "start_point": {"row": 14, "column": 12}, "end_point": {"row": 14, "column": 13}}, {"id": 44, "type": "identifier", "text": "cx\n", "parent": 42, "children": [], "start_point": {"row": 15, "column": 3}, "end_point": {"row": 15, "column": 6}}, {"id": 45, "type": "identifier", "text": "\t\ts", "parent": 25, "children": [], "start_point": {"row": 15, "column": 7}, "end_point": {"row": 15, "column": 10}}, {"id": 46, "type": "identifier", "text": " ec", "parent": 25, "children": [], "start_point": {"row": 15, "column": 12}, "end_point": {"row": 15, "column": 15}}, {"id": 47, "type": "ERROR", "text": "\n\n\t\t\tle", "parent": 25, "children": [48, 49], "start_point": {"row": 16, "column": 3}, "end_point": {"row": 16, "column": 10}}, {"id": 48, "type": "identifier", "text": "\n\n\t", "parent": 47, "children": [], "start_point": {"row": 16, "column": 3}, "end_point": {"row": 16, "column": 6}}, {"id": 49, "type": "identifier", "text": "\tle", "parent": 47, "children": [], "start_point": {"row": 16, "column": 7}, "end_point": {"row": 16, "column": 10}}, {"id": 50, "type": "ERROR", "text": "edx, [edx", "parent": 25, "children": [51, 52], "start_point": {"row": 16, "column": 12}, "end_point": {"row": 18, "column": 6}}, {"id": 51, "type": "number_literal", "text": "e", "parent": 50, "children": [], "start_point": {"row": 16, "column": 12}, "end_point": {"row": 16, "column": 13}}, {"id": 52, "type": "identifier", "text": "edx", "parent": 50, "children": [], "start_point": {"row": 18, "column": 3}, "end_point": {"row": 18, "column": 6}}, {"id": 53, "type": "identifier", "text": "- 4", "parent": 25, "children": [], "start_point": {"row": 18, "column": 7}, "end_point": {"row": 18, "column": 10}}, {"id": 54, "type": "ERROR", "text": "\n\t\t\tdec ecx\n\n\t\tloop0:\n\t\t\tcmp dword ptr [edx]", "parent": 25, "children": [55, 61, 62, 63, 64, 65], "start_point": {"row": 18, "column": 11}, "end_point": {"row": 22, "column": 12}}, {"id": 55, "type": "array_declarator", "text": "\n\t\t\tdec ec", "parent": 54, "children": [56, 57], "start_point": {"row": 18, "column": 11}, "end_point": {"row": 18, "column": 21}}, {"id": 56, "type": "identifier", "text": "", "parent": 55, "children": [], "start_point": {"row": 18, "column": 11}, "end_point": {"row": 18, "column": 11}}, {"id": 57, "type": "binary_expression", "text": "\t\tdec e", "parent": 55, "children": [58, 59, 60], "start_point": {"row": 18, "column": 13}, "end_point": {"row": 18, "column": 20}}, {"id": 58, "type": "identifier", "text": "\t\td", "parent": 57, "children": [], "start_point": {"row": 18, "column": 13}, "end_point": {"row": 18, "column": 16}}, {"id": 59, "type": "-", "text": "c", "parent": 57, "children": [], "start_point": {"row": 18, "column": 17}, "end_point": {"row": 18, "column": 18}}, {"id": 60, "type": "number_literal", "text": "e", "parent": 57, "children": [], "start_point": {"row": 18, "column": 19}, "end_point": {"row": 18, "column": 20}}, {"id": 61, "type": "identifier", "text": "\tlo", "parent": 54, "children": [], "start_point": {"row": 19, "column": 3}, "end_point": {"row": 19, "column": 6}}, {"id": 62, "type": "identifier", "text": "p0:", "parent": 54, "children": [], "start_point": {"row": 19, "column": 7}, "end_point": {"row": 19, "column": 10}}, {"id": 63, "type": "identifier", "text": "cmp d", "parent": 54, "children": [], "start_point": {"row": 21, "column": 2}, "end_point": {"row": 21, "column": 7}}, {"id": 64, "type": "identifier", "text": "ptr", "parent": 54, "children": [], "start_point": {"row": 22, "column": 3}, "end_point": {"row": 22, "column": 6}}, {"id": 65, "type": "identifier", "text": "[edx]", "parent": 54, "children": [], "start_point": {"row": 22, "column": 7}, "end_point": {"row": 22, "column": 12}}, {"id": 66, "type": "array_declarator", "text": " 0\n\t\t\tjne", "parent": 25, "children": [67, 68], "start_point": {"row": 22, "column": 13}, "end_point": {"row": 22, "column": 22}}, {"id": 67, "type": "identifier", "text": " 0\n", "parent": 66, "children": [], "start_point": {"row": 22, "column": 13}, "end_point": {"row": 22, "column": 16}}, {"id": 68, "type": "identifier", "text": "\tjn", "parent": 66, "children": [], "start_point": {"row": 22, "column": 18}, "end_point": {"row": 22, "column": 21}}, {"id": 69, "type": "ERROR", "text": "oop_cmp\n\t\t\tlea edx, [edx", "parent": 25, "children": [70, 71, 72, 73], "start_point": {"row": 22, "column": 24}, "end_point": {"row": 24, "column": 6}}, {"id": 70, "type": "number_literal", "text": "o", "parent": 69, "children": [], "start_point": {"row": 22, "column": 24}, "end_point": {"row": 22, "column": 25}}, {"id": 71, "type": "identifier", "text": "mp\n", "parent": 69, "children": [], "start_point": {"row": 23, "column": 3}, "end_point": {"row": 23, "column": 6}}, {"id": 72, "type": "identifier", "text": "\t\tlea ed", "parent": 69, "children": [], "start_point": {"row": 23, "column": 7}, "end_point": {"row": 23, "column": 15}}, {"id": 73, "type": "identifier", "text": "edx", "parent": 69, "children": [], "start_point": {"row": 24, "column": 3}, "end_point": {"row": 24, "column": 6}}, {"id": 74, "type": "identifier", "text": "- 4", "parent": 25, "children": [], "start_point": {"row": 24, "column": 7}, "end_point": {"row": 24, "column": 10}}, {"id": 75, "type": "ERROR", "text": "\n\t\t\tloop short loop0\n\n\t\t\tmov eax, dwor", "parent": 25, "children": [76, 82, 83, 84, 85], "start_point": {"row": 24, "column": 11}, "end_point": {"row": 27, "column": 6}}, {"id": 76, "type": "array_declarator", "text": "\n\t\t\tloop s", "parent": 75, "children": [77, 78], "start_point": {"row": 24, "column": 11}, "end_point": {"row": 24, "column": 21}}, {"id": 77, "type": "identifier", "text": "", "parent": 76, "children": [], "start_point": {"row": 24, "column": 11}, "end_point": {"row": 24, "column": 11}}, {"id": 78, "type": "binary_expression", "text": "\t\tloop ", "parent": 76, "children": [79, 80, 81], "start_point": {"row": 24, "column": 13}, "end_point": {"row": 24, "column": 20}}, {"id": 79, "type": "identifier", "text": "\t\tl", "parent": 78, "children": [], "start_point": {"row": 24, "column": 13}, "end_point": {"row": 24, "column": 16}}, {"id": 80, "type": "-", "text": "o", "parent": 78, "children": [], "start_point": {"row": 24, "column": 17}, "end_point": {"row": 24, "column": 18}}, {"id": 81, "type": "number_literal", "text": " ", "parent": 78, "children": [], "start_point": {"row": 24, "column": 19}, "end_point": {"row": 24, "column": 20}}, {"id": 82, "type": "identifier", "text": " loo", "parent": 75, "children": [], "start_point": {"row": 25, "column": 3}, "end_point": {"row": 25, "column": 7}}, {"id": 83, "type": "short", "text": "0\n\n\t\t", "parent": 75, "children": [], "start_point": {"row": 25, "column": 8}, "end_point": {"row": 25, "column": 13}}, {"id": 84, "type": "identifier", "text": "mov e", "parent": 75, "children": [], "start_point": {"row": 25, "column": 14}, "end_point": {"row": 25, "column": 19}}, {"id": 85, "type": "identifier", "text": "wor", "parent": 75, "children": [], "start_point": {"row": 27, "column": 3}, "end_point": {"row": 27, "column": 6}}, {"id": 86, "type": "identifier", "text": " pt", "parent": 25, "children": [], "start_point": {"row": 27, "column": 7}, "end_point": {"row": 27, "column": 10}}, {"id": 87, "type": "array_declarator", "text": "[edx]\n ", "parent": 25, "children": [88, 89, 91], "start_point": {"row": 27, "column": 12}, "end_point": {"row": 27, "column": 27}}, {"id": 88, "type": "identifier", "text": "[edx]", "parent": 87, "children": [], "start_point": {"row": 27, "column": 12}, "end_point": {"row": 27, "column": 17}}, {"id": 89, "type": "ERROR", "text": " ", "parent": 87, "children": [90], "start_point": {"row": 27, "column": 18}, "end_point": {"row": 27, "column": 21}}, {"id": 90, "type": "identifier", "text": " ", "parent": 89, "children": [], "start_point": {"row": 27, "column": 18}, "end_point": {"row": 27, "column": 21}}, {"id": 91, "type": "identifier", "text": " ", "parent": 87, "children": [], "start_point": {"row": 27, "column": 23}, "end_point": {"row": 27, "column": 26}}, {"id": 92, "type": "ERROR", "text": "nihohe_", "parent": 25, "children": [93, 94], "start_point": {"row": 28, "column": 12}, "end_point": {"row": 28, "column": 19}}, {"id": 93, "type": "identifier", "text": "nih", "parent": 92, "children": [], "start_point": {"row": 28, "column": 12}, "end_point": {"row": 28, "column": 15}}, {"id": 94, "type": "identifier", "text": "he_", "parent": 92, "children": [], "start_point": {"row": 28, "column": 16}, "end_point": {"row": 28, "column": 19}}, {"id": 95, "type": "ERROR", "text": "utougou]\n\t\tloop_cmp:\n\t\t\tjb loop_mi\n\t\t\tjz loop_equal\n\t\t\tmov eax, 1\n\t\t", "parent": 25, "children": [96, 99, 100, 101, 102, 103, 104], "start_point": {"row": 28, "column": 20}, "end_point": {"row": 32, "column": 6}}, {"id": 96, "type": "array_declarator", "text": "utougou]\n\t\tloop_cm", "parent": 95, "children": [97, 98], "start_point": {"row": 28, "column": 20}, "end_point": {"row": 28, "column": 38}}, {"id": 97, "type": "identifier", "text": "", "parent": 96, "children": [], "start_point": {"row": 28, "column": 20}, "end_point": {"row": 28, "column": 20}}, {"id": 98, "type": "identifier", "text": "ougou]\n\t\tloop_c", "parent": 96, "children": [], "start_point": {"row": 28, "column": 22}, "end_point": {"row": 28, "column": 37}}, {"id": 99, "type": "identifier", "text": "\t\t\tjb lo", "parent": 95, "children": [], "start_point": {"row": 29, "column": 2}, "end_point": {"row": 29, "column": 10}}, {"id": 100, "type": "identifier", "text": "\n\t", "parent": 95, "children": [], "start_point": {"row": 30, "column": 3}, "end_point": {"row": 30, "column": 5}}, {"id": 101, "type": "identifier", "text": "\tjz loo", "parent": 95, "children": [], "start_point": {"row": 30, "column": 6}, "end_point": {"row": 30, "column": 13}}, {"id": 102, "type": "identifier", "text": "ua", "parent": 95, "children": [], "start_point": {"row": 31, "column": 3}, "end_point": {"row": 31, "column": 5}}, {"id": 103, "type": "identifier", "text": "\n\t\t\tmov ea", "parent": 95, "children": [], "start_point": {"row": 31, "column": 6}, "end_point": {"row": 31, "column": 16}}, {"id": 104, "type": "identifier", "text": "\n\t\t", "parent": 95, "children": [], "start_point": {"row": 32, "column": 3}, "end_point": {"row": 32, "column": 6}}, {"id": 105, "type": "identifier", "text": "jmp", "parent": 25, "children": [], "start_point": {"row": 32, "column": 7}, "end_point": {"row": 32, "column": 10}}, {"id": 106, "type": "ERROR", "text": "oop0000\n\t\tloop_equal:\n\t\t\txor eax, eax\n", "parent": 25, "children": [107, 108, 109, 110, 111], "start_point": {"row": 32, "column": 12}, "end_point": {"row": 35, "column": 6}}, {"id": 107, "type": "number_literal", "text": "o", "parent": 106, "children": [], "start_point": {"row": 32, "column": 12}, "end_point": {"row": 32, "column": 13}}, {"id": 108, "type": "identifier", "text": "00\n", "parent": 106, "children": [], "start_point": {"row": 33, "column": 3}, "end_point": {"row": 33, "column": 6}}, {"id": 109, "type": "identifier", "text": "\tloop_eq", "parent": 106, "children": [], "start_point": {"row": 33, "column": 7}, "end_point": {"row": 33, "column": 15}}, {"id": 110, "type": "identifier", "text": ":\n\t\t\txor e", "parent": 106, "children": [], "start_point": {"row": 34, "column": 2}, "end_point": {"row": 34, "column": 12}}, {"id": 111, "type": "identifier", "text": "ax\n", "parent": 106, "children": [], "start_point": {"row": 35, "column": 3}, "end_point": {"row": 35, "column": 6}}, {"id": 112, "type": "identifier", "text": "\t\tj", "parent": 25, "children": [], "start_point": {"row": 35, "column": 7}, "end_point": {"row": 35, "column": 10}}, {"id": 113, "type": "ERROR", "text": " loop0000\n\t\tloop_mi:\n\t\t\tor eax, 0fff", "parent": 25, "children": [114, 115, 116, 117, 118], "start_point": {"row": 35, "column": 12}, "end_point": {"row": 38, "column": 5}}, {"id": 114, "type": "identifier", "text": " lo", "parent": 113, "children": [], "start_point": {"row": 35, "column": 12}, "end_point": {"row": 35, "column": 15}}, {"id": 115, "type": "identifier", "text": "00\n", "parent": 113, "children": [], "start_point": {"row": 36, "column": 3}, "end_point": {"row": 36, "column": 6}}, {"id": 116, "type": "identifier", "text": "\tloop_mi", "parent": 113, "children": [], "start_point": {"row": 36, "column": 7}, "end_point": {"row": 36, "column": 15}}, {"id": 117, "type": "identifier", "text": "\t\tor ea", "parent": 113, "children": [], "start_point": {"row": 37, "column": 2}, "end_point": {"row": 37, "column": 9}}, {"id": 118, "type": "identifier", "text": "ff", "parent": 113, "children": [], "start_point": {"row": 38, "column": 3}, "end_point": {"row": 38, "column": 5}}, {"id": 119, "type": "identifier", "text": "fff", "parent": 25, "children": [], "start_point": {"row": 38, "column": 6}, "end_point": {"row": 38, "column": 9}}, {"id": 120, "type": "ERROR", "text": "\n\n\t\tloop0000:\n\t}\n#else\n\t\t\t\n\tint i;\n\n\tfor(", "parent": 25, "children": [121, 122, 123, 124, 125], "start_point": {"row": 38, "column": 11}, "end_point": {"row": 44, "column": 4}}, {"id": 121, "type": "number_literal", "text": "\n\n\t\tloop0", "parent": 120, "children": [], "start_point": {"row": 38, "column": 11}, "end_point": {"row": 38, "column": 20}}, {"id": 122, "type": "identifier", "text": "0", "parent": 120, "children": [], "start_point": {"row": 38, "column": 20}, "end_point": {"row": 38, "column": 21}}, {"id": 123, "type": "identifier", "text": "\t}\n#else", "parent": 120, "children": [], "start_point": {"row": 40, "column": 2}, "end_point": {"row": 40, "column": 10}}, {"id": 124, "type": "#else", "text": "\tint ", "parent": 120, "children": [], "start_point": {"row": 42, "column": 0}, "end_point": {"row": 42, "column": 5}}, {"id": 125, "type": "primitive_type", "text": "or(", "parent": 120, "children": [], "start_point": {"row": 44, "column": 1}, "end_point": {"row": 44, "column": 4}}, {"id": 126, "type": "identifier", "text": "=", "parent": 25, "children": [], "start_point": {"row": 44, "column": 5}, "end_point": {"row": 44, "column": 6}}, {"id": 127, "type": "for_statement", "text": "osuu-1; *(iroha_futougou+i)==0 && i>0;i--){\n\t}\n\n\tif(i !=", "parent": 3, "children": [128, 135], "start_point": {"row": 46, "column": 1}, "end_point": {"row": 47, "column": 2}}, {"id": 128, "type": "assignment_expression", "text": "-1; *(iroha_", "parent": 127, "children": [129, 130, 131], "start_point": {"row": 46, "column": 5}, "end_point": {"row": 46, "column": 17}}, {"id": 129, "type": "identifier", "text": "-", "parent": 128, "children": [], "start_point": {"row": 46, "column": 5}, "end_point": {"row": 46, "column": 6}}, {"id": 130, "type": "=", "text": "1", "parent": 128, "children": [], "start_point": {"row": 46, "column": 6}, "end_point": {"row": 46, "column": 7}}, {"id": 131, "type": "binary_expression", "text": "; *(iroha_", "parent": 128, "children": [132, 133, 134], "start_point": {"row": 46, "column": 7}, "end_point": {"row": 46, "column": 17}}, {"id": 132, "type": "identifier", "text": "; *(iroh", "parent": 131, "children": [], "start_point": {"row": 46, "column": 7}, "end_point": {"row": 46, "column": 15}}, {"id": 133, "type": "-", "text": "a", "parent": 131, "children": [], "start_point": {"row": 46, "column": 15}, "end_point": {"row": 46, "column": 16}}, {"id": 134, "type": "number_literal", "text": "_", "parent": 131, "children": [], "start_point": {"row": 46, "column": 16}, "end_point": {"row": 46, "column": 17}}, {"id": 135, "type": "binary_expression", "text": "tougou+i)==0 && i>0;i--){\n\t}\n", "parent": 127, "children": [136, 146], "start_point": {"row": 46, "column": 19}, "end_point": {"row": 46, "column": 48}}, {"id": 136, "type": "binary_expression", "text": "tougou+i)==0 && i>0;i-", "parent": 135, "children": [137, 144, 145], "start_point": {"row": 46, "column": 19}, "end_point": {"row": 46, "column": 41}}, {"id": 137, "type": "pointer_expression", "text": "tougou+i)==0 && i>0", "parent": 136, "children": [138, 139], "start_point": {"row": 46, "column": 19}, "end_point": {"row": 46, "column": 38}}, {"id": 138, "type": "*", "text": "t", "parent": 137, "children": [], "start_point": {"row": 46, "column": 19}, "end_point": {"row": 46, "column": 20}}, {"id": 139, "type": "parenthesized_expression", "text": "ougou+i)==0 && i>0", "parent": 137, "children": [140], "start_point": {"row": 46, "column": 20}, "end_point": {"row": 46, "column": 38}}, {"id": 140, "type": "binary_expression", "text": "ugou+i)==0 && i>", "parent": 139, "children": [141, 142, 143], "start_point": {"row": 46, "column": 21}, "end_point": {"row": 46, "column": 37}}, {"id": 141, "type": "identifier", "text": "ugou+i)==0 && ", "parent": 140, "children": [], "start_point": {"row": 46, "column": 21}, "end_point": {"row": 46, "column": 35}}, {"id": 142, "type": "+", "text": "i", "parent": 140, "children": [], "start_point": {"row": 46, "column": 35}, "end_point": {"row": 46, "column": 36}}, {"id": 143, "type": "identifier", "text": ">", "parent": 140, "children": [], "start_point": {"row": 46, "column": 36}, "end_point": {"row": 46, "column": 37}}, {"id": 144, "type": "==", "text": ";i", "parent": 136, "children": [], "start_point": {"row": 46, "column": 38}, "end_point": {"row": 46, "column": 40}}, {"id": 145, "type": "number_literal", "text": "-", "parent": 136, "children": [], "start_point": {"row": 46, "column": 40}, "end_point": {"row": 46, "column": 41}}, {"id": 146, "type": "&&", "text": "){", "parent": 135, "children": [], "start_point": {"row": 46, "column": 42}, "end_point": {"row": 46, "column": 44}}, {"id": 147, "type": "identifier", "text": "\t", "parent": 135, "children": [], "start_point": {"row": 46, "column": 45}, "end_point": {"row": 46, "column": 46}}, {"id": 148, "type": "number_literal", "text": "\n", "parent": 135, "children": [], "start_point": {"row": 46, "column": 47}, "end_point": {"row": 46, "column": 48}}, {"id": 149, "type": "identifier", "text": "\t", "parent": 127, "children": [], "start_point": {"row": 46, "column": 49}, "end_point": {"row": 46, "column": 50}}, {"id": 150, "type": "if_statement", "text": "{\n\t\treturn 1;\n\t}else{\n\t\tif(*iroha_futougou > nihohe_futougou){\n\t\t\treturn 1;\n\t\t}else if(*iroha_futougou < nihohe_futougou){\n\t\t\treturn -1;\n\t\t}else{\n\t\t\treturn 0;\n\t\t}\n\t}\n#endif\n}\n", "parent": 3, "children": [157], "start_point": {"row": 49, "column": 1}, "end_point": {"row": 59, "column": 2}}, {"id": 151, "type": "binary_expression", "text": "\tretur", "parent": 150, "children": [152, 153, 154], "start_point": {"row": 49, "column": 4}, "end_point": {"row": 49, "column": 10}}, {"id": 152, "type": "identifier", "text": "\t", "parent": 151, "children": [], "start_point": {"row": 49, "column": 4}, "end_point": {"row": 49, "column": 5}}, {"id": 153, "type": "!=", "text": "et", "parent": 151, "children": [], "start_point": {"row": 49, "column": 6}, "end_point": {"row": 49, "column": 8}}, {"id": 154, "type": "number_literal", "text": "r", "parent": 151, "children": [], "start_point": {"row": 49, "column": 9}, "end_point": {"row": 49, "column": 10}}, {"id": 155, "type": "return_statement", "text": "\t}else{\n\t", "parent": 150, "children": [156], "start_point": {"row": 50, "column": 2}, "end_point": {"row": 50, "column": 11}}, {"id": 156, "type": "number_literal", "text": "\n", "parent": 155, "children": [], "start_point": {"row": 50, "column": 9}, "end_point": {"row": 50, "column": 10}}, {"id": 157, "type": "else_clause", "text": "(*iroha_futougou > nihohe_futougou){\n\t\t\treturn 1;\n\t\t}else if(*iroha_futougou < nihohe_futougou){\n\t\t\treturn -1;\n\t\t}else{\n\t\t\treturn 0;\n\t\t}\n\t}\n#endif\n}\n", "parent": 150, "children": [], "start_point": {"row": 51, "column": 2}, "end_point": {"row": 59, "column": 2}}, {"id": 158, "type": "if_statement", "text": "futougou > nihohe_futougou){\n\t\t\treturn 1;\n\t\t}else if(*iroha_futougou < nihohe_futougou){\n\t\t\treturn -1;\n\t\t}else{\n\t\t\treturn 0;\n\t\t}\n\t}\n#endif", "parent": 157, "children": [159, 168], "start_point": {"row": 52, "column": 2}, "end_point": {"row": 58, "column": 3}}, {"id": 159, "type": "parenthesized_expression", "text": "tougou > nihohe_futougou){\n\t\t\tretur", "parent": 158, "children": [160], "start_point": {"row": 52, "column": 4}, "end_point": {"row": 52, "column": 39}}, {"id": 160, "type": "binary_expression", "text": "ougou > nihohe_futougou){\n\t\t\tretu", "parent": 159, "children": [161, 164, 165], "start_point": {"row": 52, "column": 5}, "end_point": {"row": 52, "column": 38}}, {"id": 161, "type": "pointer_expression", "text": "ougou > nihohe_", "parent": 160, "children": [162, 163], "start_point": {"row": 52, "column": 5}, "end_point": {"row": 52, "column": 20}}, {"id": 162, "type": "*", "text": "o", "parent": 161, "children": [], "start_point": {"row": 52, "column": 5}, "end_point": {"row": 52, "column": 6}}, {"id": 163, "type": "identifier", "text": "ugou > nihohe_", "parent": 161, "children": [], "start_point": {"row": 52, "column": 6}, "end_point": {"row": 52, "column": 20}}, {"id": 164, "type": ">", "text": "u", "parent": 160, "children": [], "start_point": {"row": 52, "column": 21}, "end_point": {"row": 52, "column": 22}}, {"id": 165, "type": "identifier", "text": "ougou){\n\t\t\tretu", "parent": 160, "children": [], "start_point": {"row": 52, "column": 23}, "end_point": {"row": 52, "column": 38}}, {"id": 166, "type": "return_statement", "text": "\t\t}else i", "parent": 158, "children": [167], "start_point": {"row": 53, "column": 3}, "end_point": {"row": 53, "column": 12}}, {"id": 167, "type": "number_literal", "text": " ", "parent": 166, "children": [], "start_point": {"row": 53, "column": 10}, "end_point": {"row": 53, "column": 11}}, {"id": 168, "type": "else_clause", "text": "roha_futougou < nihohe_futougou){\n\t\t\treturn -1;\n\t\t}else{\n\t\t\treturn 0;\n\t\t}\n\t}\n#endif", "parent": 158, "children": [169], "start_point": {"row": 54, "column": 3}, "end_point": {"row": 58, "column": 3}}, {"id": 169, "type": "if_statement", "text": "futougou < nihohe_futougou){\n\t\t\treturn -1;\n\t\t}else{\n\t\t\treturn 0;\n\t\t}\n\t}\n#endif", "parent": 168, "children": [170, 179], "start_point": {"row": 54, "column": 8}, "end_point": {"row": 58, "column": 3}}, {"id": 170, "type": "parenthesized_expression", "text": "tougou < nihohe_futougou){\n\t\t\tretur", "parent": 169, "children": [171], "start_point": {"row": 54, "column": 10}, "end_point": {"row": 54, "column": 45}}, {"id": 171, "type": "binary_expression", "text": "ougou < nihohe_futougou){\n\t\t\tretu", "parent": 170, "children": [172, 175, 176], "start_point": {"row": 54, "column": 11}, "end_point": {"row": 54, "column": 44}}, {"id": 172, "type": "pointer_expression", "text": "ougou < nihohe_", "parent": 171, "children": [173, 174], "start_point": {"row": 54, "column": 11}, "end_point": {"row": 54, "column": 26}}, {"id": 173, "type": "*", "text": "o", "parent": 172, "children": [], "start_point": {"row": 54, "column": 11}, "end_point": {"row": 54, "column": 12}}, {"id": 174, "type": "identifier", "text": "ugou < nihohe_", "parent": 172, "children": [], "start_point": {"row": 54, "column": 12}, "end_point": {"row": 54, "column": 26}}, {"id": 175, "type": "<", "text": "u", "parent": 171, "children": [], "start_point": {"row": 54, "column": 27}, "end_point": {"row": 54, "column": 28}}, {"id": 176, "type": "identifier", "text": "ougou){\n\t\t\tretu", "parent": 171, "children": [], "start_point": {"row": 54, "column": 29}, "end_point": {"row": 54, "column": 44}}, {"id": 177, "type": "return_statement", "text": "\n\t\t}else{\n", "parent": 169, "children": [178], "start_point": {"row": 55, "column": 3}, "end_point": {"row": 55, "column": 13}}, {"id": 178, "type": "number_literal", "text": "e{", "parent": 177, "children": [], "start_point": {"row": 55, "column": 10}, "end_point": {"row": 55, "column": 12}}, {"id": 179, "type": "else_clause", "text": "eturn 0;\n\t\t}\n\t}\n#endif", "parent": 169, "children": [], "start_point": {"row": 56, "column": 3}, "end_point": {"row": 58, "column": 3}}, {"id": 180, "type": "return_statement", "text": "\t\t}\n\t}\n#e", "parent": 179, "children": [181], "start_point": {"row": 57, "column": 3}, "end_point": {"row": 57, "column": 12}}, {"id": 181, "type": "number_literal", "text": "#", "parent": 180, "children": [], "start_point": {"row": 57, "column": 10}, "end_point": {"row": 57, "column": 11}}, {"id": 182, "type": "preproc_call", "text": "", "parent": 3, "children": [183], "start_point": {"row": 60, "column": 0}, "end_point": {"row": 61, "column": 0}}, {"id": 183, "type": "preproc_directive", "text": "", "parent": 182, "children": [], "start_point": {"row": 60, "column": 0}, "end_point": {"row": 60, "column": 6}}]}, "node_categories": {"declarations": {"functions": [5], "variables": [8, 13, 16, 25], "classes": [17], "imports": [0, 1], "modules": [], "enums": []}, "statements": {"expressions": [57, 78, 131, 135, 136, 137, 139, 140, 151, 159, 160, 161, 170, 171, 172], "assignments": [128], "loops": [127], "conditionals": [6, 9, 12, 14, 15, 20, 21, 22, 24, 26, 27, 29, 31, 32, 34, 35, 37, 38, 40, 41, 44, 45, 46, 48, 49, 52, 53, 56, 58, 61, 62, 63, 64, 65, 67, 68, 71, 72, 73, 74, 77, 79, 82, 84, 85, 86, 88, 90, 91, 93, 94, 97, 98, 99, 100, 101, 102, 103, 104, 105, 108, 109, 110, 111, 112, 114, 115, 116, 117, 118, 119, 122, 123, 126, 129, 132, 141, 143, 147, 149, 150, 152, 158, 163, 165, 169, 174, 176], "returns": [155, 166, 177, 180], "exceptions": []}, "expressions": {"calls": [182], "literals": [2, 43, 51, 60, 70, 81, 107, 121, 134, 145, 148, 154, 156, 167, 178, 181], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [{"node_id": 5, "universal_type": "function", "name": "unknown", "text_snippet": "gou_ui(unt *iroha_futougou, unt nihohe_futougou)\n{\n\textern"}], "class_declarations": [{"node_id": 17, "universal_type": "class", "name": "unknown", "text_snippet": " youso"}], "import_statements": [{"node_id": 0, "text": "utbi_sanjutsu.h\"\n\nint utbi_"}, {"node_id": 1, "text": "utbi_san"}]}, "original_source_code": "/* utbi_futougou_ui.c\n * Copyright (C) 2008 \u6885\u3069\u3076\u308d\u304f umedoblock\n */\n\n#include \"utbi_sanjutsu.h\"\n\nint utbi_futougou_ui(unt *iroha_futougou, unt nihohe_futougou)\n{\n\textern int yousosuu;\n#ifdef ___ASSEMBLE_WIN32___\n\t_asm{\n\t\t\tmov edx, dword ptr [iroha_futougou]\n\n\t\t\tmov ecx, [yousosuu]\n\t\t\tshl ecx, 2\n\t\t\tadd edx, ecx\n\t\t\tshr ecx, 2\n\n\t\t\tlea edx, [edx - 4]\n\t\t\tdec ecx\n\n\t\tloop0:\n\t\t\tcmp dword ptr [edx], 0\n\t\t\tjne loop_cmp\n\t\t\tlea edx, [edx - 4]\n\t\t\tloop short loop0\n\n\t\t\tmov eax, dword ptr [edx]\n cmp eax, [nihohe_futougou]\n\t\tloop_cmp:\n\t\t\tjb loop_mi\n\t\t\tjz loop_equal\n\t\t\tmov eax, 1\n\t\t\tjmp loop0000\n\t\tloop_equal:\n\t\t\txor eax, eax\n\t\t\tjmp loop0000\n\t\tloop_mi:\n\t\t\tor eax, 0ffffffffh\n\n\t\tloop0000:\n\t}\n#else\n\t\t\t\n\tint i;\n\n\tfor(i=yousosuu-1; *(iroha_futougou+i)==0 && i>0;i--){\n\t}\n\n\tif(i != 0){\n\t\treturn 1;\n\t}else{\n\t\tif(*iroha_futougou > nihohe_futougou){\n\t\t\treturn 1;\n\t\t}else if(*iroha_futougou < nihohe_futougou){\n\t\t\treturn -1;\n\t\t}else{\n\t\t\treturn 0;\n\t\t}\n\t}\n#endif\n}\n"}
80,022
c
/* $OpenBSD: math.h,v 1.1 2004/02/01 05:12:54 drahn Exp $ */ /* $NetBSD: math.h,v 1.3 2001/11/25 15:55:57 thorpej Exp $ */ #include <arm/math.h>
47.33
3
(translation_unit) "/* $OpenBSD: math.h,v 1.1 2004/02/01 05:12:54 drahn Exp $ */\n/* $NetBSD: math.h,v 1.3 2001/11/25 15:55:57 thorpej Exp $ */\n\n#include <arm/math.h>\n" (comment) "/* $OpenBSD: math.h,v 1.1 2004/02/01 05:12:54 drahn Exp $ */" (comment) "/* $NetBSD: math.h,v 1.3 2001/11/25 15:55:57 thorpej Exp $ */" (preproc_include) "#include <arm/math.h>\n" (#include) "#include" (system_lib_string) "<arm/math.h>"
6
0
{"language": "c", "success": true, "metadata": {"lines": 3, "avg_line_length": 47.33, "nodes": 3, "errors": 0, "source_hash": "e28d96d4bc72bd58d51a6880940ad6643b81627c0945b02aaaaa5f09d56b8158", "categorized_nodes": 3}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#include <arm/math.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": "<arm/math.h>", "parent": 0, "children": [], "start_point": {"row": 3, "column": 9}, "end_point": {"row": 3, "column": 21}}]}, "node_categories": {"declarations": {"functions": [], "variables": [], "classes": [], "imports": [0, 1], "modules": [], "enums": []}, "statements": {"expressions": [], "assignments": [], "loops": [], "conditionals": [], "returns": [], "exceptions": []}, "expressions": {"calls": [], "literals": [2], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [], "class_declarations": [], "import_statements": [{"node_id": 0, "text": "#include <arm/math.h>\n"}, {"node_id": 1, "text": "#include"}]}, "original_source_code": "/*\t$OpenBSD: math.h,v 1.1 2004/02/01 05:12:54 drahn Exp $\t*/\n/*\t$NetBSD: math.h,v 1.3 2001/11/25 15:55:57 thorpej Exp $\t*/\n\n#include <arm/math.h>\n"}
80,023
c
/* ---------------------------------------------------------- % (C)1994,1995 Institute for New Generation Computer Technology % (Read COPYRIGHT for detailed information.) % (C)1996, 1997, 1998, 1999 Japan Information Processing Development Center % (Read COPYRIGHT-JIPDEC for detailed information.) ----------------------------------------------------------- */ /* Tracer Status Information */ struct trace_info_rec { FILE *in; FILE *out; q original_arg; int enabled, leashed, leaping, spying; int verbose; unsigned long print_depth, print_length; }; #define Leaping(info) ((info)->leaping) #define Spying(info) ((info)->spying) #define EnabledPorts(info) ((info)->enabled) #define LeashedPorts(info) ((info)->leashed) #define Enabled(info,port) ((EnabledPorts(info) >> (int)(port)) & 1) #define Leashed(info,port) ((LeashedPorts(info) >> (int)(port)) & 1) #define Verbose(info) ((info)->verbose) #define Depth(info) ((info)->print_depth) #define Length(info) ((info)->print_length) #define InStream(info) ((info)->in) #define OutStream(info) ((info)->out) /* Info on Enqueued Goals */ struct enqueue_trace_rec { struct enqueue_trace_rec *next; struct goalrec *g; long prio; }; /* Name Tables */ struct mod_table_entry { module (*func)(); Const unsigned char *name; }; struct pred_table_entry { Const struct predicate *pred; Const struct mod_table_entry *mte; Const unsigned char *name; char spied; char default_trace; }; /* Trace Control */ enum trace_port { Call, Susp, Reduce, Fail, AllPorts, NoMorePort, UnknownPort };
27.93
55
(translation_unit) "/* ---------------------------------------------------------- \n% (C)1994,1995 Institute for New Generation Computer Technology \n% (Read COPYRIGHT for detailed information.) \n% (C)1996, 1997, 1998, 1999 Japan Information Processing Development Center\n% (Read COPYRIGHT-JIPDEC for detailed information.)\n----------------------------------------------------------- */\n\n/*\n Tracer Status Information\n*/\n\nstruct trace_info_rec {\n FILE *in;\n FILE *out;\n q original_arg;\n int enabled, leashed, leaping, spying;\n int verbose;\n unsigned long print_depth, print_length;\n};\n\n#define Leaping(info) ((info)->leaping)\n#define Spying(info) ((info)->spying)\n#define EnabledPorts(info) ((info)->enabled)\n#define LeashedPorts(info) ((info)->leashed)\n#define Enabled(info,port) ((EnabledPorts(info) >> (int)(port)) & 1)\n#define Leashed(info,port) ((LeashedPorts(info) >> (int)(port)) & 1)\n#define Verbose(info) ((info)->verbose)\n#define Depth(info) ((info)->print_depth)\n#define Length(info) ((info)->print_length)\n\n#define InStream(info) ((info)->in)\n#define OutStream(info) ((info)->out)\n\n/*\n Info on Enqueued Goals\n*/\n\nstruct enqueue_trace_rec {\n struct enqueue_trace_rec *next;\n struct goalrec *g;\n long prio;\n};\n\n/*\n Name Tables\n*/\n\nstruct mod_table_entry {\n module (*func)();\n Const unsigned char *name;\n};\n\nstruct pred_table_entry {\n Const struct predicate *pred;\n Const struct mod_table_entry *mte;\n Const unsigned char *name;\n char spied;\n char default_trace;\n};\n\n/*\n Trace Control\n*/\n\nenum trace_port {\n Call, Susp, Reduce, Fail, AllPorts, NoMorePort, UnknownPort };\n" (comment) "/* ---------------------------------------------------------- \n% (C)1994,1995 Institute for New Generation Computer Technology \n% (Read COPYRIGHT for detailed information.) \n% (C)1996, 1997, 1998, 1999 Japan Information Processing Development Center\n% (Read COPYRIGHT-JIPDEC for detailed information.)\n----------------------------------------------------------- */" (comment) "/*\n Tracer Status Information\n*/" (struct_specifier) "struct trace_info_rec {\n FILE *in;\n FILE *out;\n q original_arg;\n int enabled, leashed, leaping, spying;\n int verbose;\n unsigned long print_depth, print_length;\n}" (struct) "struct" (type_identifier) "trace_info_rec" (field_declaration_list) "{\n FILE *in;\n FILE *out;\n q original_arg;\n int enabled, leashed, leaping, spying;\n int verbose;\n unsigned long print_depth, print_length;\n}" ({) "{" (field_declaration) "FILE *in;" (type_identifier) "FILE" (pointer_declarator) "*in" (*) "*" (field_identifier) "in" (;) ";" (field_declaration) "FILE *out;" (type_identifier) "FILE" (pointer_declarator) "*out" (*) "*" (field_identifier) "out" (;) ";" (field_declaration) "q original_arg;" (type_identifier) "q" (field_identifier) "original_arg" (;) ";" (field_declaration) "int enabled, leashed, leaping, spying;" (primitive_type) "int" (field_identifier) "enabled" (,) "," (field_identifier) "leashed" (,) "," (field_identifier) "leaping" (,) "," (field_identifier) "spying" (;) ";" (field_declaration) "int verbose;" (primitive_type) "int" (field_identifier) "verbose" (;) ";" (field_declaration) "unsigned long print_depth, print_length;" (sized_type_specifier) "unsigned long" (unsigned) "unsigned" (long) "long" (field_identifier) "print_depth" (,) "," (field_identifier) "print_length" (;) ";" (}) "}" (;) ";" (preproc_function_def) "#define Leaping(info) ((info)->leaping)\n" (#define) "#define" (identifier) "Leaping" (preproc_params) "(info)" (() "(" (identifier) "info" ()) ")" (preproc_arg) "((info)->leaping)" (preproc_function_def) "#define Spying(info) ((info)->spying)\n" (#define) "#define" (identifier) "Spying" (preproc_params) "(info)" (() "(" (identifier) "info" ()) ")" (preproc_arg) "((info)->spying)" (preproc_function_def) "#define EnabledPorts(info) ((info)->enabled)\n" (#define) "#define" (identifier) "EnabledPorts" (preproc_params) "(info)" (() "(" (identifier) "info" ()) ")" (preproc_arg) "((info)->enabled)" (preproc_function_def) "#define LeashedPorts(info) ((info)->leashed)\n" (#define) "#define" (identifier) "LeashedPorts" (preproc_params) "(info)" (() "(" (identifier) "info" ()) ")" (preproc_arg) "((info)->leashed)" (preproc_function_def) "#define Enabled(info,port) ((EnabledPorts(info) >> (int)(port)) & 1)\n" (#define) "#define" (identifier) "Enabled" (preproc_params) "(info,port)" (() "(" (identifier) "info" (,) "," (identifier) "port" ()) ")" (preproc_arg) "((EnabledPorts(info) >> (int)(port)) & 1)" (preproc_function_def) "#define Leashed(info,port) ((LeashedPorts(info) >> (int)(port)) & 1)\n" (#define) "#define" (identifier) "Leashed" (preproc_params) "(info,port)" (() "(" (identifier) "info" (,) "," (identifier) "port" ()) ")" (preproc_arg) "((LeashedPorts(info) >> (int)(port)) & 1)" (preproc_function_def) "#define Verbose(info) ((info)->verbose)\n" (#define) "#define" (identifier) "Verbose" (preproc_params) "(info)" (() "(" (identifier) "info" ()) ")" (preproc_arg) "((info)->verbose)" (preproc_function_def) "#define Depth(info) ((info)->print_depth)\n" (#define) "#define" (identifier) "Depth" (preproc_params) "(info)" (() "(" (identifier) "info" ()) ")" (preproc_arg) "((info)->print_depth)" (preproc_function_def) "#define Length(info) ((info)->print_length)\n" (#define) "#define" (identifier) "Length" (preproc_params) "(info)" (() "(" (identifier) "info" ()) ")" (preproc_arg) "((info)->print_length)" (preproc_function_def) "#define InStream(info) ((info)->in)\n" (#define) "#define" (identifier) "InStream" (preproc_params) "(info)" (() "(" (identifier) "info" ()) ")" (preproc_arg) "((info)->in)" (preproc_function_def) "#define OutStream(info) ((info)->out)\n" (#define) "#define" (identifier) "OutStream" (preproc_params) "(info)" (() "(" (identifier) "info" ()) ")" (preproc_arg) "((info)->out)" (comment) "/*\n Info on Enqueued Goals\n*/" (struct_specifier) "struct enqueue_trace_rec {\n struct enqueue_trace_rec *next;\n struct goalrec *g;\n long prio;\n}" (struct) "struct" (type_identifier) "enqueue_trace_rec" (field_declaration_list) "{\n struct enqueue_trace_rec *next;\n struct goalrec *g;\n long prio;\n}" ({) "{" (field_declaration) "struct enqueue_trace_rec *next;" (struct_specifier) "struct enqueue_trace_rec" (struct) "struct" (type_identifier) "enqueue_trace_rec" (pointer_declarator) "*next" (*) "*" (field_identifier) "next" (;) ";" (field_declaration) "struct goalrec *g;" (struct_specifier) "struct goalrec" (struct) "struct" (type_identifier) "goalrec" (pointer_declarator) "*g" (*) "*" (field_identifier) "g" (;) ";" (field_declaration) "long prio;" (sized_type_specifier) "long" (long) "long" (field_identifier) "prio" (;) ";" (}) "}" (;) ";" (comment) "/*\n Name Tables\n*/" (struct_specifier) "struct mod_table_entry {\n module (*func)();\n Const unsigned char *name;\n}" (struct) "struct" (type_identifier) "mod_table_entry" (field_declaration_list) "{\n module (*func)();\n Const unsigned char *name;\n}" ({) "{" (field_declaration) "module (*func)();" (type_identifier) "module" (function_declarator) "(*func)()" (parenthesized_declarator) "(*func)" (() "(" (pointer_declarator) "*func" (*) "*" (field_identifier) "func" ()) ")" (parameter_list) "()" (() "(" ()) ")" (;) ";" (field_declaration) "Const unsigned char *name;" (sized_type_specifier) "Const unsigned" (type_identifier) "Const" (unsigned) "unsigned" (ERROR) "char" (field_identifier) "char" (pointer_declarator) "*name" (*) "*" (field_identifier) "name" (;) ";" (}) "}" (;) ";" (struct_specifier) "struct pred_table_entry {\n Const struct predicate *pred;\n Const struct mod_table_entry *mte;\n Const unsigned char *name;\n char spied;\n char default_trace;\n}" (struct) "struct" (type_identifier) "pred_table_entry" (field_declaration_list) "{\n Const struct predicate *pred;\n Const struct mod_table_entry *mte;\n Const unsigned char *name;\n char spied;\n char default_trace;\n}" ({) "{" (field_declaration) "Const struct" (type_identifier) "Const" (field_identifier) "struct" (;) "" (field_declaration) "predicate *pred;" (type_identifier) "predicate" (pointer_declarator) "*pred" (*) "*" (field_identifier) "pred" (;) ";" (field_declaration) "Const struct" (type_identifier) "Const" (field_identifier) "struct" (;) "" (field_declaration) "mod_table_entry *mte;" (type_identifier) "mod_table_entry" (pointer_declarator) "*mte" (*) "*" (field_identifier) "mte" (;) ";" (field_declaration) "Const unsigned char *name;" (sized_type_specifier) "Const unsigned" (type_identifier) "Const" (unsigned) "unsigned" (ERROR) "char" (field_identifier) "char" (pointer_declarator) "*name" (*) "*" (field_identifier) "name" (;) ";" (field_declaration) "char spied;" (primitive_type) "char" (field_identifier) "spied" (;) ";" (field_declaration) "char default_trace;" (primitive_type) "char" (field_identifier) "default_trace" (;) ";" (}) "}" (;) ";" (comment) "/*\n Trace Control\n*/" (enum_specifier) "enum trace_port {\n Call, Susp, Reduce, Fail, AllPorts, NoMorePort, UnknownPort }" (enum) "enum" (type_identifier) "trace_port" (enumerator_list) "{\n Call, Susp, Reduce, Fail, AllPorts, NoMorePort, UnknownPort }" ({) "{" (enumerator) "Call" (identifier) "Call" (,) "," (enumerator) "Susp" (identifier) "Susp" (,) "," (enumerator) "Reduce" (identifier) "Reduce" (,) "," (enumerator) "Fail" (identifier) "Fail" (,) "," (enumerator) "AllPorts" (identifier) "AllPorts" (,) "," (enumerator) "NoMorePort" (identifier) "NoMorePort" (,) "," (enumerator) "UnknownPort" (identifier) "UnknownPort" (}) "}" (;) ";"
273
2
{"language": "c", "success": true, "metadata": {"lines": 55, "avg_line_length": 27.93, "nodes": 192, "errors": 0, "source_hash": "06693788a54c6b15f025ee59785f15e555268d7a6a0a93dc70eb64c33ceda423", "categorized_nodes": 128}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "struct_specifier", "text": "struct trace_info_rec {\n FILE *in;\n FILE *out;\n q original_arg;\n int enabled, leashed, leaping, spying;\n int verbose;\n unsigned long print_depth, print_length;\n}", "parent": null, "children": [1, 2], "start_point": {"row": 11, "column": 0}, "end_point": {"row": 18, "column": 1}}, {"id": 1, "type": "struct", "text": "struct", "parent": 0, "children": [], "start_point": {"row": 11, "column": 0}, "end_point": {"row": 11, "column": 6}}, {"id": 2, "type": "type_identifier", "text": "trace_info_rec", "parent": 0, "children": [], "start_point": {"row": 11, "column": 7}, "end_point": {"row": 11, "column": 21}}, {"id": 3, "type": "field_declaration", "text": "FILE *in;", "parent": 0, "children": [4, 5], "start_point": {"row": 12, "column": 2}, "end_point": {"row": 12, "column": 11}}, {"id": 4, "type": "type_identifier", "text": "FILE", "parent": 3, "children": [], "start_point": {"row": 12, "column": 2}, "end_point": {"row": 12, "column": 6}}, {"id": 5, "type": "pointer_declarator", "text": "*in", "parent": 3, "children": [6, 7], "start_point": {"row": 12, "column": 7}, "end_point": {"row": 12, "column": 10}}, {"id": 6, "type": "*", "text": "*", "parent": 5, "children": [], "start_point": {"row": 12, "column": 7}, "end_point": {"row": 12, "column": 8}}, {"id": 7, "type": "field_identifier", "text": "in", "parent": 5, "children": [], "start_point": {"row": 12, "column": 8}, "end_point": {"row": 12, "column": 10}}, {"id": 8, "type": "field_declaration", "text": "FILE *out;", "parent": 0, "children": [9, 10], "start_point": {"row": 13, "column": 2}, "end_point": {"row": 13, "column": 12}}, {"id": 9, "type": "type_identifier", "text": "FILE", "parent": 8, "children": [], "start_point": {"row": 13, "column": 2}, "end_point": {"row": 13, "column": 6}}, {"id": 10, "type": "pointer_declarator", "text": "*out", "parent": 8, "children": [11, 12], "start_point": {"row": 13, "column": 7}, "end_point": {"row": 13, "column": 11}}, {"id": 11, "type": "*", "text": "*", "parent": 10, "children": [], "start_point": {"row": 13, "column": 7}, "end_point": {"row": 13, "column": 8}}, {"id": 12, "type": "field_identifier", "text": "out", "parent": 10, "children": [], "start_point": {"row": 13, "column": 8}, "end_point": {"row": 13, "column": 11}}, {"id": 13, "type": "field_declaration", "text": "q original_arg;", "parent": 0, "children": [14, 15], "start_point": {"row": 14, "column": 2}, "end_point": {"row": 14, "column": 17}}, {"id": 14, "type": "type_identifier", "text": "q", "parent": 13, "children": [], "start_point": {"row": 14, "column": 2}, "end_point": {"row": 14, "column": 3}}, {"id": 15, "type": "field_identifier", "text": "original_arg", "parent": 13, "children": [], "start_point": {"row": 14, "column": 4}, "end_point": {"row": 14, "column": 16}}, {"id": 16, "type": "field_declaration", "text": "int enabled, leashed, leaping, spying;", "parent": 0, "children": [17, 18, 19, 20, 21], "start_point": {"row": 15, "column": 2}, "end_point": {"row": 15, "column": 40}}, {"id": 17, "type": "primitive_type", "text": "int", "parent": 16, "children": [], "start_point": {"row": 15, "column": 2}, "end_point": {"row": 15, "column": 5}}, {"id": 18, "type": "field_identifier", "text": "enabled", "parent": 16, "children": [], "start_point": {"row": 15, "column": 6}, "end_point": {"row": 15, "column": 13}}, {"id": 19, "type": "field_identifier", "text": "leashed", "parent": 16, "children": [], "start_point": {"row": 15, "column": 15}, "end_point": {"row": 15, "column": 22}}, {"id": 20, "type": "field_identifier", "text": "leaping", "parent": 16, "children": [], "start_point": {"row": 15, "column": 24}, "end_point": {"row": 15, "column": 31}}, {"id": 21, "type": "field_identifier", "text": "spying", "parent": 16, "children": [], "start_point": {"row": 15, "column": 33}, "end_point": {"row": 15, "column": 39}}, {"id": 22, "type": "field_declaration", "text": "int verbose;", "parent": 0, "children": [23, 24], "start_point": {"row": 16, "column": 2}, "end_point": {"row": 16, "column": 14}}, {"id": 23, "type": "primitive_type", "text": "int", "parent": 22, "children": [], "start_point": {"row": 16, "column": 2}, "end_point": {"row": 16, "column": 5}}, {"id": 24, "type": "field_identifier", "text": "verbose", "parent": 22, "children": [], "start_point": {"row": 16, "column": 6}, "end_point": {"row": 16, "column": 13}}, {"id": 25, "type": "field_declaration", "text": "unsigned long print_depth, print_length;", "parent": 0, "children": [26, 29, 30], "start_point": {"row": 17, "column": 2}, "end_point": {"row": 17, "column": 42}}, {"id": 26, "type": "sized_type_specifier", "text": "unsigned long", "parent": 25, "children": [27, 28], "start_point": {"row": 17, "column": 2}, "end_point": {"row": 17, "column": 15}}, {"id": 27, "type": "unsigned", "text": "unsigned", "parent": 26, "children": [], "start_point": {"row": 17, "column": 2}, "end_point": {"row": 17, "column": 10}}, {"id": 28, "type": "long", "text": "long", "parent": 26, "children": [], "start_point": {"row": 17, "column": 11}, "end_point": {"row": 17, "column": 15}}, {"id": 29, "type": "field_identifier", "text": "print_depth", "parent": 25, "children": [], "start_point": {"row": 17, "column": 16}, "end_point": {"row": 17, "column": 27}}, {"id": 30, "type": "field_identifier", "text": "print_length", "parent": 25, "children": [], "start_point": {"row": 17, "column": 29}, "end_point": {"row": 17, "column": 41}}, {"id": 31, "type": "preproc_function_def", "text": "#define Leaping(info)\t\t((info)->leaping)\n", "parent": null, "children": [32, 33, 34, 36], "start_point": {"row": 20, "column": 0}, "end_point": {"row": 21, "column": 0}}, {"id": 32, "type": "#define", "text": "#define", "parent": 31, "children": [], "start_point": {"row": 20, "column": 0}, "end_point": {"row": 20, "column": 7}}, {"id": 33, "type": "identifier", "text": "Leaping", "parent": 31, "children": [], "start_point": {"row": 20, "column": 8}, "end_point": {"row": 20, "column": 15}}, {"id": 34, "type": "preproc_params", "text": "(info)", "parent": 31, "children": [35], "start_point": {"row": 20, "column": 15}, "end_point": {"row": 20, "column": 21}}, {"id": 35, "type": "identifier", "text": "info", "parent": 34, "children": [], "start_point": {"row": 20, "column": 16}, "end_point": {"row": 20, "column": 20}}, {"id": 36, "type": "preproc_arg", "text": "((info)->leaping)", "parent": 31, "children": [], "start_point": {"row": 20, "column": 23}, "end_point": {"row": 20, "column": 40}}, {"id": 37, "type": "preproc_function_def", "text": "#define Spying(info)\t\t((info)->spying)\n", "parent": null, "children": [38, 39, 40, 42], "start_point": {"row": 21, "column": 0}, "end_point": {"row": 22, "column": 0}}, {"id": 38, "type": "#define", "text": "#define", "parent": 37, "children": [], "start_point": {"row": 21, "column": 0}, "end_point": {"row": 21, "column": 7}}, {"id": 39, "type": "identifier", "text": "Spying", "parent": 37, "children": [], "start_point": {"row": 21, "column": 8}, "end_point": {"row": 21, "column": 14}}, {"id": 40, "type": "preproc_params", "text": "(info)", "parent": 37, "children": [41], "start_point": {"row": 21, "column": 14}, "end_point": {"row": 21, "column": 20}}, {"id": 41, "type": "identifier", "text": "info", "parent": 40, "children": [], "start_point": {"row": 21, "column": 15}, "end_point": {"row": 21, "column": 19}}, {"id": 42, "type": "preproc_arg", "text": "((info)->spying)", "parent": 37, "children": [], "start_point": {"row": 21, "column": 22}, "end_point": {"row": 21, "column": 38}}, {"id": 43, "type": "preproc_function_def", "text": "#define EnabledPorts(info)\t((info)->enabled)\n", "parent": null, "children": [44, 45, 46, 48], "start_point": {"row": 22, "column": 0}, "end_point": {"row": 23, "column": 0}}, {"id": 44, "type": "#define", "text": "#define", "parent": 43, "children": [], "start_point": {"row": 22, "column": 0}, "end_point": {"row": 22, "column": 7}}, {"id": 45, "type": "identifier", "text": "EnabledPorts", "parent": 43, "children": [], "start_point": {"row": 22, "column": 8}, "end_point": {"row": 22, "column": 20}}, {"id": 46, "type": "preproc_params", "text": "(info)", "parent": 43, "children": [47], "start_point": {"row": 22, "column": 20}, "end_point": {"row": 22, "column": 26}}, {"id": 47, "type": "identifier", "text": "info", "parent": 46, "children": [], "start_point": {"row": 22, "column": 21}, "end_point": {"row": 22, "column": 25}}, {"id": 48, "type": "preproc_arg", "text": "((info)->enabled)", "parent": 43, "children": [], "start_point": {"row": 22, "column": 27}, "end_point": {"row": 22, "column": 44}}, {"id": 49, "type": "preproc_function_def", "text": "#define LeashedPorts(info)\t((info)->leashed)\n", "parent": null, "children": [50, 51, 52, 54], "start_point": {"row": 23, "column": 0}, "end_point": {"row": 24, "column": 0}}, {"id": 50, "type": "#define", "text": "#define", "parent": 49, "children": [], "start_point": {"row": 23, "column": 0}, "end_point": {"row": 23, "column": 7}}, {"id": 51, "type": "identifier", "text": "LeashedPorts", "parent": 49, "children": [], "start_point": {"row": 23, "column": 8}, "end_point": {"row": 23, "column": 20}}, {"id": 52, "type": "preproc_params", "text": "(info)", "parent": 49, "children": [53], "start_point": {"row": 23, "column": 20}, "end_point": {"row": 23, "column": 26}}, {"id": 53, "type": "identifier", "text": "info", "parent": 52, "children": [], "start_point": {"row": 23, "column": 21}, "end_point": {"row": 23, "column": 25}}, {"id": 54, "type": "preproc_arg", "text": "((info)->leashed)", "parent": 49, "children": [], "start_point": {"row": 23, "column": 27}, "end_point": {"row": 23, "column": 44}}, {"id": 55, "type": "preproc_function_def", "text": "#define Enabled(info,port)\t((EnabledPorts(info) >> (int)(port)) & 1)\n", "parent": null, "children": [56, 57, 58, 61], "start_point": {"row": 24, "column": 0}, "end_point": {"row": 25, "column": 0}}, {"id": 56, "type": "#define", "text": "#define", "parent": 55, "children": [], "start_point": {"row": 24, "column": 0}, "end_point": {"row": 24, "column": 7}}, {"id": 57, "type": "identifier", "text": "Enabled", "parent": 55, "children": [], "start_point": {"row": 24, "column": 8}, "end_point": {"row": 24, "column": 15}}, {"id": 58, "type": "preproc_params", "text": "(info,port)", "parent": 55, "children": [59, 60], "start_point": {"row": 24, "column": 15}, "end_point": {"row": 24, "column": 26}}, {"id": 59, "type": "identifier", "text": "info", "parent": 58, "children": [], "start_point": {"row": 24, "column": 16}, "end_point": {"row": 24, "column": 20}}, {"id": 60, "type": "identifier", "text": "port", "parent": 58, "children": [], "start_point": {"row": 24, "column": 21}, "end_point": {"row": 24, "column": 25}}, {"id": 61, "type": "preproc_arg", "text": "((EnabledPorts(info) >> (int)(port)) & 1)", "parent": 55, "children": [], "start_point": {"row": 24, "column": 27}, "end_point": {"row": 24, "column": 68}}, {"id": 62, "type": "preproc_function_def", "text": "#define Leashed(info,port)\t((LeashedPorts(info) >> (int)(port)) & 1)\n", "parent": null, "children": [63, 64, 65, 68], "start_point": {"row": 25, "column": 0}, "end_point": {"row": 26, "column": 0}}, {"id": 63, "type": "#define", "text": "#define", "parent": 62, "children": [], "start_point": {"row": 25, "column": 0}, "end_point": {"row": 25, "column": 7}}, {"id": 64, "type": "identifier", "text": "Leashed", "parent": 62, "children": [], "start_point": {"row": 25, "column": 8}, "end_point": {"row": 25, "column": 15}}, {"id": 65, "type": "preproc_params", "text": "(info,port)", "parent": 62, "children": [66, 67], "start_point": {"row": 25, "column": 15}, "end_point": {"row": 25, "column": 26}}, {"id": 66, "type": "identifier", "text": "info", "parent": 65, "children": [], "start_point": {"row": 25, "column": 16}, "end_point": {"row": 25, "column": 20}}, {"id": 67, "type": "identifier", "text": "port", "parent": 65, "children": [], "start_point": {"row": 25, "column": 21}, "end_point": {"row": 25, "column": 25}}, {"id": 68, "type": "preproc_arg", "text": "((LeashedPorts(info) >> (int)(port)) & 1)", "parent": 62, "children": [], "start_point": {"row": 25, "column": 27}, "end_point": {"row": 25, "column": 68}}, {"id": 69, "type": "preproc_function_def", "text": "#define Verbose(info)\t\t((info)->verbose)\n", "parent": null, "children": [70, 71, 72, 74], "start_point": {"row": 26, "column": 0}, "end_point": {"row": 27, "column": 0}}, {"id": 70, "type": "#define", "text": "#define", "parent": 69, "children": [], "start_point": {"row": 26, "column": 0}, "end_point": {"row": 26, "column": 7}}, {"id": 71, "type": "identifier", "text": "Verbose", "parent": 69, "children": [], "start_point": {"row": 26, "column": 8}, "end_point": {"row": 26, "column": 15}}, {"id": 72, "type": "preproc_params", "text": "(info)", "parent": 69, "children": [73], "start_point": {"row": 26, "column": 15}, "end_point": {"row": 26, "column": 21}}, {"id": 73, "type": "identifier", "text": "info", "parent": 72, "children": [], "start_point": {"row": 26, "column": 16}, "end_point": {"row": 26, "column": 20}}, {"id": 74, "type": "preproc_arg", "text": "((info)->verbose)", "parent": 69, "children": [], "start_point": {"row": 26, "column": 23}, "end_point": {"row": 26, "column": 40}}, {"id": 75, "type": "preproc_function_def", "text": "#define Depth(info)\t\t((info)->print_depth)\n", "parent": null, "children": [76, 77, 78, 80], "start_point": {"row": 27, "column": 0}, "end_point": {"row": 28, "column": 0}}, {"id": 76, "type": "#define", "text": "#define", "parent": 75, "children": [], "start_point": {"row": 27, "column": 0}, "end_point": {"row": 27, "column": 7}}, {"id": 77, "type": "identifier", "text": "Depth", "parent": 75, "children": [], "start_point": {"row": 27, "column": 8}, "end_point": {"row": 27, "column": 13}}, {"id": 78, "type": "preproc_params", "text": "(info)", "parent": 75, "children": [79], "start_point": {"row": 27, "column": 13}, "end_point": {"row": 27, "column": 19}}, {"id": 79, "type": "identifier", "text": "info", "parent": 78, "children": [], "start_point": {"row": 27, "column": 14}, "end_point": {"row": 27, "column": 18}}, {"id": 80, "type": "preproc_arg", "text": "((info)->print_depth)", "parent": 75, "children": [], "start_point": {"row": 27, "column": 21}, "end_point": {"row": 27, "column": 42}}, {"id": 81, "type": "preproc_function_def", "text": "#define Length(info)\t\t((info)->print_length)\n", "parent": null, "children": [82, 83, 84, 86], "start_point": {"row": 28, "column": 0}, "end_point": {"row": 29, "column": 0}}, {"id": 82, "type": "#define", "text": "#define", "parent": 81, "children": [], "start_point": {"row": 28, "column": 0}, "end_point": {"row": 28, "column": 7}}, {"id": 83, "type": "identifier", "text": "Length", "parent": 81, "children": [], "start_point": {"row": 28, "column": 8}, "end_point": {"row": 28, "column": 14}}, {"id": 84, "type": "preproc_params", "text": "(info)", "parent": 81, "children": [85], "start_point": {"row": 28, "column": 14}, "end_point": {"row": 28, "column": 20}}, {"id": 85, "type": "identifier", "text": "info", "parent": 84, "children": [], "start_point": {"row": 28, "column": 15}, "end_point": {"row": 28, "column": 19}}, {"id": 86, "type": "preproc_arg", "text": "((info)->print_length)", "parent": 81, "children": [], "start_point": {"row": 28, "column": 22}, "end_point": {"row": 28, "column": 44}}, {"id": 87, "type": "preproc_function_def", "text": "#define InStream(info)\t\t((info)->in)\n", "parent": null, "children": [88, 89, 90, 92], "start_point": {"row": 30, "column": 0}, "end_point": {"row": 31, "column": 0}}, {"id": 88, "type": "#define", "text": "#define", "parent": 87, "children": [], "start_point": {"row": 30, "column": 0}, "end_point": {"row": 30, "column": 7}}, {"id": 89, "type": "identifier", "text": "InStream", "parent": 87, "children": [], "start_point": {"row": 30, "column": 8}, "end_point": {"row": 30, "column": 16}}, {"id": 90, "type": "preproc_params", "text": "(info)", "parent": 87, "children": [91], "start_point": {"row": 30, "column": 16}, "end_point": {"row": 30, "column": 22}}, {"id": 91, "type": "identifier", "text": "info", "parent": 90, "children": [], "start_point": {"row": 30, "column": 17}, "end_point": {"row": 30, "column": 21}}, {"id": 92, "type": "preproc_arg", "text": "((info)->in)", "parent": 87, "children": [], "start_point": {"row": 30, "column": 24}, "end_point": {"row": 30, "column": 36}}, {"id": 93, "type": "preproc_function_def", "text": "#define OutStream(info)\t\t((info)->out)\n", "parent": null, "children": [94, 95, 96, 98], "start_point": {"row": 31, "column": 0}, "end_point": {"row": 32, "column": 0}}, {"id": 94, "type": "#define", "text": "#define", "parent": 93, "children": [], "start_point": {"row": 31, "column": 0}, "end_point": {"row": 31, "column": 7}}, {"id": 95, "type": "identifier", "text": "OutStream", "parent": 93, "children": [], "start_point": {"row": 31, "column": 8}, "end_point": {"row": 31, "column": 17}}, {"id": 96, "type": "preproc_params", "text": "(info)", "parent": 93, "children": [97], "start_point": {"row": 31, "column": 17}, "end_point": {"row": 31, "column": 23}}, {"id": 97, "type": "identifier", "text": "info", "parent": 96, "children": [], "start_point": {"row": 31, "column": 18}, "end_point": {"row": 31, "column": 22}}, {"id": 98, "type": "preproc_arg", "text": "((info)->out)", "parent": 93, "children": [], "start_point": {"row": 31, "column": 25}, "end_point": {"row": 31, "column": 38}}, {"id": 99, "type": "struct_specifier", "text": "struct enqueue_trace_rec {\n struct enqueue_trace_rec *next;\n struct goalrec *g;\n long prio;\n}", "parent": null, "children": [100, 101], "start_point": {"row": 37, "column": 0}, "end_point": {"row": 41, "column": 1}}, {"id": 100, "type": "struct", "text": "struct", "parent": 99, "children": [], "start_point": {"row": 37, "column": 0}, "end_point": {"row": 37, "column": 6}}, {"id": 101, "type": "type_identifier", "text": "enqueue_trace_rec", "parent": 99, "children": [], "start_point": {"row": 37, "column": 7}, "end_point": {"row": 37, "column": 24}}, {"id": 102, "type": "field_declaration", "text": "struct enqueue_trace_rec *next;", "parent": 99, "children": [103, 106], "start_point": {"row": 38, "column": 2}, "end_point": {"row": 38, "column": 33}}, {"id": 103, "type": "struct_specifier", "text": "struct enqueue_trace_rec", "parent": 102, "children": [104, 105], "start_point": {"row": 38, "column": 2}, "end_point": {"row": 38, "column": 26}}, {"id": 104, "type": "struct", "text": "struct", "parent": 103, "children": [], "start_point": {"row": 38, "column": 2}, "end_point": {"row": 38, "column": 8}}, {"id": 105, "type": "type_identifier", "text": "enqueue_trace_rec", "parent": 103, "children": [], "start_point": {"row": 38, "column": 9}, "end_point": {"row": 38, "column": 26}}, {"id": 106, "type": "pointer_declarator", "text": "*next", "parent": 102, "children": [107, 108], "start_point": {"row": 38, "column": 27}, "end_point": {"row": 38, "column": 32}}, {"id": 107, "type": "*", "text": "*", "parent": 106, "children": [], "start_point": {"row": 38, "column": 27}, "end_point": {"row": 38, "column": 28}}, {"id": 108, "type": "field_identifier", "text": "next", "parent": 106, "children": [], "start_point": {"row": 38, "column": 28}, "end_point": {"row": 38, "column": 32}}, {"id": 109, "type": "field_declaration", "text": "struct goalrec *g;", "parent": 99, "children": [110, 113], "start_point": {"row": 39, "column": 2}, "end_point": {"row": 39, "column": 20}}, {"id": 110, "type": "struct_specifier", "text": "struct goalrec", "parent": 109, "children": [111, 112], "start_point": {"row": 39, "column": 2}, "end_point": {"row": 39, "column": 16}}, {"id": 111, "type": "struct", "text": "struct", "parent": 110, "children": [], "start_point": {"row": 39, "column": 2}, "end_point": {"row": 39, "column": 8}}, {"id": 112, "type": "type_identifier", "text": "goalrec", "parent": 110, "children": [], "start_point": {"row": 39, "column": 9}, "end_point": {"row": 39, "column": 16}}, {"id": 113, "type": "pointer_declarator", "text": "*g", "parent": 109, "children": [114, 115], "start_point": {"row": 39, "column": 17}, "end_point": {"row": 39, "column": 19}}, {"id": 114, "type": "*", "text": "*", "parent": 113, "children": [], "start_point": {"row": 39, "column": 17}, "end_point": {"row": 39, "column": 18}}, {"id": 115, "type": "field_identifier", "text": "g", "parent": 113, "children": [], "start_point": {"row": 39, "column": 18}, "end_point": {"row": 39, "column": 19}}, {"id": 116, "type": "field_declaration", "text": "long prio;", "parent": 99, "children": [117, 119], "start_point": {"row": 40, "column": 2}, "end_point": {"row": 40, "column": 12}}, {"id": 117, "type": "sized_type_specifier", "text": "long", "parent": 116, "children": [118], "start_point": {"row": 40, "column": 2}, "end_point": {"row": 40, "column": 6}}, {"id": 118, "type": "long", "text": "long", "parent": 117, "children": [], "start_point": {"row": 40, "column": 2}, "end_point": {"row": 40, "column": 6}}, {"id": 119, "type": "field_identifier", "text": "prio", "parent": 116, "children": [], "start_point": {"row": 40, "column": 7}, "end_point": {"row": 40, "column": 11}}, {"id": 120, "type": "struct_specifier", "text": "struct mod_table_entry {\n module (*func)();\n Const unsigned char *name;\n}", "parent": null, "children": [121, 122], "start_point": {"row": 47, "column": 0}, "end_point": {"row": 50, "column": 1}}, {"id": 121, "type": "struct", "text": "struct", "parent": 120, "children": [], "start_point": {"row": 47, "column": 0}, "end_point": {"row": 47, "column": 6}}, {"id": 122, "type": "type_identifier", "text": "mod_table_entry", "parent": 120, "children": [], "start_point": {"row": 47, "column": 7}, "end_point": {"row": 47, "column": 22}}, {"id": 123, "type": "field_declaration", "text": "module (*func)();", "parent": 120, "children": [124, 125], "start_point": {"row": 48, "column": 2}, "end_point": {"row": 48, "column": 19}}, {"id": 124, "type": "type_identifier", "text": "module", "parent": 123, "children": [], "start_point": {"row": 48, "column": 2}, "end_point": {"row": 48, "column": 8}}, {"id": 125, "type": "function_declarator", "text": "(*func)()", "parent": 123, "children": [126, 130], "start_point": {"row": 48, "column": 9}, "end_point": {"row": 48, "column": 18}}, {"id": 126, "type": "parenthesized_declarator", "text": "(*func)", "parent": 125, "children": [127], "start_point": {"row": 48, "column": 9}, "end_point": {"row": 48, "column": 16}}, {"id": 127, "type": "pointer_declarator", "text": "*func", "parent": 126, "children": [128, 129], "start_point": {"row": 48, "column": 10}, "end_point": {"row": 48, "column": 15}}, {"id": 128, "type": "*", "text": "*", "parent": 127, "children": [], "start_point": {"row": 48, "column": 10}, "end_point": {"row": 48, "column": 11}}, {"id": 129, "type": "field_identifier", "text": "func", "parent": 127, "children": [], "start_point": {"row": 48, "column": 11}, "end_point": {"row": 48, "column": 15}}, {"id": 130, "type": "parameter_list", "text": "()", "parent": 125, "children": [], "start_point": {"row": 48, "column": 16}, "end_point": {"row": 48, "column": 18}}, {"id": 131, "type": "field_declaration", "text": "Const unsigned char *name;", "parent": 120, "children": [132, 135, 137], "start_point": {"row": 49, "column": 2}, "end_point": {"row": 49, "column": 28}}, {"id": 132, "type": "sized_type_specifier", "text": "Const unsigned", "parent": 131, "children": [133, 134], "start_point": {"row": 49, "column": 2}, "end_point": {"row": 49, "column": 16}}, {"id": 133, "type": "type_identifier", "text": "Const", "parent": 132, "children": [], "start_point": {"row": 49, "column": 2}, "end_point": {"row": 49, "column": 7}}, {"id": 134, "type": "unsigned", "text": "unsigned", "parent": 132, "children": [], "start_point": {"row": 49, "column": 8}, "end_point": {"row": 49, "column": 16}}, {"id": 135, "type": "ERROR", "text": "char", "parent": 131, "children": [136], "start_point": {"row": 49, "column": 17}, "end_point": {"row": 49, "column": 21}}, {"id": 136, "type": "field_identifier", "text": "char", "parent": 135, "children": [], "start_point": {"row": 49, "column": 17}, "end_point": {"row": 49, "column": 21}}, {"id": 137, "type": "pointer_declarator", "text": "*name", "parent": 131, "children": [138, 139], "start_point": {"row": 49, "column": 22}, "end_point": {"row": 49, "column": 27}}, {"id": 138, "type": "*", "text": "*", "parent": 137, "children": [], "start_point": {"row": 49, "column": 22}, "end_point": {"row": 49, "column": 23}}, {"id": 139, "type": "field_identifier", "text": "name", "parent": 137, "children": [], "start_point": {"row": 49, "column": 23}, "end_point": {"row": 49, "column": 27}}, {"id": 140, "type": "struct_specifier", "text": "struct pred_table_entry {\n Const struct predicate *pred;\n Const struct mod_table_entry *mte;\n Const unsigned char *name;\n char spied;\n char default_trace;\n}", "parent": null, "children": [141, 142], "start_point": {"row": 52, "column": 0}, "end_point": {"row": 58, "column": 1}}, {"id": 141, "type": "struct", "text": "struct", "parent": 140, "children": [], "start_point": {"row": 52, "column": 0}, "end_point": {"row": 52, "column": 6}}, {"id": 142, "type": "type_identifier", "text": "pred_table_entry", "parent": 140, "children": [], "start_point": {"row": 52, "column": 7}, "end_point": {"row": 52, "column": 23}}, {"id": 143, "type": "field_declaration", "text": "Const struct", "parent": 140, "children": [144, 145], "start_point": {"row": 53, "column": 2}, "end_point": {"row": 53, "column": 14}}, {"id": 144, "type": "type_identifier", "text": "Const", "parent": 143, "children": [], "start_point": {"row": 53, "column": 2}, "end_point": {"row": 53, "column": 7}}, {"id": 145, "type": "field_identifier", "text": "struct", "parent": 143, "children": [], "start_point": {"row": 53, "column": 8}, "end_point": {"row": 53, "column": 14}}, {"id": 146, "type": "field_declaration", "text": "predicate *pred;", "parent": 140, "children": [147, 148], "start_point": {"row": 53, "column": 15}, "end_point": {"row": 53, "column": 31}}, {"id": 147, "type": "type_identifier", "text": "predicate", "parent": 146, "children": [], "start_point": {"row": 53, "column": 15}, "end_point": {"row": 53, "column": 24}}, {"id": 148, "type": "pointer_declarator", "text": "*pred", "parent": 146, "children": [149, 150], "start_point": {"row": 53, "column": 25}, "end_point": {"row": 53, "column": 30}}, {"id": 149, "type": "*", "text": "*", "parent": 148, "children": [], "start_point": {"row": 53, "column": 25}, "end_point": {"row": 53, "column": 26}}, {"id": 150, "type": "field_identifier", "text": "pred", "parent": 148, "children": [], "start_point": {"row": 53, "column": 26}, "end_point": {"row": 53, "column": 30}}, {"id": 151, "type": "field_declaration", "text": "Const struct", "parent": 140, "children": [152, 153], "start_point": {"row": 54, "column": 2}, "end_point": {"row": 54, "column": 14}}, {"id": 152, "type": "type_identifier", "text": "Const", "parent": 151, "children": [], "start_point": {"row": 54, "column": 2}, "end_point": {"row": 54, "column": 7}}, {"id": 153, "type": "field_identifier", "text": "struct", "parent": 151, "children": [], "start_point": {"row": 54, "column": 8}, "end_point": {"row": 54, "column": 14}}, {"id": 154, "type": "field_declaration", "text": "mod_table_entry *mte;", "parent": 140, "children": [155, 156], "start_point": {"row": 54, "column": 15}, "end_point": {"row": 54, "column": 36}}, {"id": 155, "type": "type_identifier", "text": "mod_table_entry", "parent": 154, "children": [], "start_point": {"row": 54, "column": 15}, "end_point": {"row": 54, "column": 30}}, {"id": 156, "type": "pointer_declarator", "text": "*mte", "parent": 154, "children": [157, 158], "start_point": {"row": 54, "column": 31}, "end_point": {"row": 54, "column": 35}}, {"id": 157, "type": "*", "text": "*", "parent": 156, "children": [], "start_point": {"row": 54, "column": 31}, "end_point": {"row": 54, "column": 32}}, {"id": 158, "type": "field_identifier", "text": "mte", "parent": 156, "children": [], "start_point": {"row": 54, "column": 32}, "end_point": {"row": 54, "column": 35}}, {"id": 159, "type": "field_declaration", "text": "Const unsigned char *name;", "parent": 140, "children": [160, 163, 165], "start_point": {"row": 55, "column": 2}, "end_point": {"row": 55, "column": 28}}, {"id": 160, "type": "sized_type_specifier", "text": "Const unsigned", "parent": 159, "children": [161, 162], "start_point": {"row": 55, "column": 2}, "end_point": {"row": 55, "column": 16}}, {"id": 161, "type": "type_identifier", "text": "Const", "parent": 160, "children": [], "start_point": {"row": 55, "column": 2}, "end_point": {"row": 55, "column": 7}}, {"id": 162, "type": "unsigned", "text": "unsigned", "parent": 160, "children": [], "start_point": {"row": 55, "column": 8}, "end_point": {"row": 55, "column": 16}}, {"id": 163, "type": "ERROR", "text": "char", "parent": 159, "children": [164], "start_point": {"row": 55, "column": 17}, "end_point": {"row": 55, "column": 21}}, {"id": 164, "type": "field_identifier", "text": "char", "parent": 163, "children": [], "start_point": {"row": 55, "column": 17}, "end_point": {"row": 55, "column": 21}}, {"id": 165, "type": "pointer_declarator", "text": "*name", "parent": 159, "children": [166, 167], "start_point": {"row": 55, "column": 22}, "end_point": {"row": 55, "column": 27}}, {"id": 166, "type": "*", "text": "*", "parent": 165, "children": [], "start_point": {"row": 55, "column": 22}, "end_point": {"row": 55, "column": 23}}, {"id": 167, "type": "field_identifier", "text": "name", "parent": 165, "children": [], "start_point": {"row": 55, "column": 23}, "end_point": {"row": 55, "column": 27}}, {"id": 168, "type": "field_declaration", "text": "char spied;", "parent": 140, "children": [169, 170], "start_point": {"row": 56, "column": 2}, "end_point": {"row": 56, "column": 13}}, {"id": 169, "type": "primitive_type", "text": "char", "parent": 168, "children": [], "start_point": {"row": 56, "column": 2}, "end_point": {"row": 56, "column": 6}}, {"id": 170, "type": "field_identifier", "text": "spied", "parent": 168, "children": [], "start_point": {"row": 56, "column": 7}, "end_point": {"row": 56, "column": 12}}, {"id": 171, "type": "field_declaration", "text": "char default_trace;", "parent": 140, "children": [172, 173], "start_point": {"row": 57, "column": 2}, "end_point": {"row": 57, "column": 21}}, {"id": 172, "type": "primitive_type", "text": "char", "parent": 171, "children": [], "start_point": {"row": 57, "column": 2}, "end_point": {"row": 57, "column": 6}}, {"id": 173, "type": "field_identifier", "text": "default_trace", "parent": 171, "children": [], "start_point": {"row": 57, "column": 7}, "end_point": {"row": 57, "column": 20}}, {"id": 174, "type": "enum_specifier", "text": "enum trace_port {\n Call, Susp, Reduce, Fail, AllPorts, NoMorePort, UnknownPort }", "parent": null, "children": [175, 176, 177], "start_point": {"row": 64, "column": 0}, "end_point": {"row": 65, "column": 63}}, {"id": 175, "type": "enum", "text": "enum", "parent": 174, "children": [], "start_point": {"row": 64, "column": 0}, "end_point": {"row": 64, "column": 4}}, {"id": 176, "type": "type_identifier", "text": "trace_port", "parent": 174, "children": [], "start_point": {"row": 64, "column": 5}, "end_point": {"row": 64, "column": 15}}, {"id": 177, "type": "enumerator_list", "text": "{\n Call, Susp, Reduce, Fail, AllPorts, NoMorePort, UnknownPort }", "parent": 174, "children": [178, 180, 182, 184, 186, 188, 190], "start_point": {"row": 64, "column": 16}, "end_point": {"row": 65, "column": 63}}, {"id": 178, "type": "enumerator", "text": "Call", "parent": 177, "children": [179], "start_point": {"row": 65, "column": 2}, "end_point": {"row": 65, "column": 6}}, {"id": 179, "type": "identifier", "text": "Call", "parent": 178, "children": [], "start_point": {"row": 65, "column": 2}, "end_point": {"row": 65, "column": 6}}, {"id": 180, "type": "enumerator", "text": "Susp", "parent": 177, "children": [181], "start_point": {"row": 65, "column": 8}, "end_point": {"row": 65, "column": 12}}, {"id": 181, "type": "identifier", "text": "Susp", "parent": 180, "children": [], "start_point": {"row": 65, "column": 8}, "end_point": {"row": 65, "column": 12}}, {"id": 182, "type": "enumerator", "text": "Reduce", "parent": 177, "children": [183], "start_point": {"row": 65, "column": 14}, "end_point": {"row": 65, "column": 20}}, {"id": 183, "type": "identifier", "text": "Reduce", "parent": 182, "children": [], "start_point": {"row": 65, "column": 14}, "end_point": {"row": 65, "column": 20}}, {"id": 184, "type": "enumerator", "text": "Fail", "parent": 177, "children": [185], "start_point": {"row": 65, "column": 22}, "end_point": {"row": 65, "column": 26}}, {"id": 185, "type": "identifier", "text": "Fail", "parent": 184, "children": [], "start_point": {"row": 65, "column": 22}, "end_point": {"row": 65, "column": 26}}, {"id": 186, "type": "enumerator", "text": "AllPorts", "parent": 177, "children": [187], "start_point": {"row": 65, "column": 28}, "end_point": {"row": 65, "column": 36}}, {"id": 187, "type": "identifier", "text": "AllPorts", "parent": 186, "children": [], "start_point": {"row": 65, "column": 28}, "end_point": {"row": 65, "column": 36}}, {"id": 188, "type": "enumerator", "text": "NoMorePort", "parent": 177, "children": [189], "start_point": {"row": 65, "column": 38}, "end_point": {"row": 65, "column": 48}}, {"id": 189, "type": "identifier", "text": "NoMorePort", "parent": 188, "children": [], "start_point": {"row": 65, "column": 38}, "end_point": {"row": 65, "column": 48}}, {"id": 190, "type": "enumerator", "text": "UnknownPort", "parent": 177, "children": [191], "start_point": {"row": 65, "column": 50}, "end_point": {"row": 65, "column": 61}}, {"id": 191, "type": "identifier", "text": "UnknownPort", "parent": 190, "children": [], "start_point": {"row": 65, "column": 50}, "end_point": {"row": 65, "column": 61}}]}, "node_categories": {"declarations": {"functions": [31, 37, 43, 49, 55, 62, 69, 75, 81, 87, 93, 125], "variables": [3, 8, 13, 16, 22, 25, 102, 109, 116, 123, 131, 143, 146, 151, 154, 159, 168, 171], "classes": [0, 1, 99, 100, 103, 104, 110, 111, 120, 121, 140, 141], "imports": [], "modules": [], "enums": [174, 175, 177, 178, 180, 182, 184, 186, 188, 190]}, "statements": {"expressions": [], "assignments": [], "loops": [], "conditionals": [2, 4, 7, 9, 12, 14, 15, 18, 19, 20, 21, 24, 26, 29, 30, 33, 35, 39, 41, 45, 47, 51, 53, 57, 59, 60, 64, 66, 67, 71, 73, 77, 79, 83, 85, 89, 91, 95, 97, 101, 105, 108, 112, 115, 117, 119, 122, 124, 129, 132, 133, 136, 139, 142, 144, 145, 147, 150, 152, 153, 155, 158, 160, 161, 164, 167, 170, 173, 176, 179, 181, 183, 185, 187, 189, 191], "returns": [], "exceptions": []}, "expressions": {"calls": [], "literals": [], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [{"node_id": 31, "universal_type": "function", "name": "unknown", "text_snippet": "#define Leaping(info)\t\t((info)->leaping)\n"}, {"node_id": 37, "universal_type": "function", "name": "unknown", "text_snippet": "#define Spying(info)\t\t((info)->spying)\n"}, {"node_id": 43, "universal_type": "function", "name": "unknown", "text_snippet": "#define EnabledPorts(info)\t((info)->enabled)\n"}, {"node_id": 49, "universal_type": "function", "name": "unknown", "text_snippet": "#define LeashedPorts(info)\t((info)->leashed)\n"}, {"node_id": 55, "universal_type": "function", "name": "unknown", "text_snippet": "#define Enabled(info,port)\t((EnabledPorts(info) >> (int)(port)) & 1)\n"}, {"node_id": 62, "universal_type": "function", "name": "unknown", "text_snippet": "#define Leashed(info,port)\t((LeashedPorts(info) >> (int)(port)) & 1)\n"}, {"node_id": 69, "universal_type": "function", "name": "unknown", "text_snippet": "#define Verbose(info)\t\t((info)->verbose)\n"}, {"node_id": 75, "universal_type": "function", "name": "unknown", "text_snippet": "#define Depth(info)\t\t((info)->print_depth)\n"}, {"node_id": 81, "universal_type": "function", "name": "unknown", "text_snippet": "#define Length(info)\t\t((info)->print_length)\n"}, {"node_id": 87, "universal_type": "function", "name": "unknown", "text_snippet": "#define InStream(info)\t\t((info)->in)\n"}, {"node_id": 93, "universal_type": "function", "name": "unknown", "text_snippet": "#define OutStream(info)\t\t((info)->out)\n"}, {"node_id": 125, "universal_type": "function", "name": "unknown", "text_snippet": "(*func)()"}], "class_declarations": [{"node_id": 0, "universal_type": "class", "name": "trace_info_rec", "text_snippet": "struct trace_info_rec {\n FILE *in;\n FILE *out;\n q original_arg;\n int enabled, leashed, leaping, "}, {"node_id": 1, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 99, "universal_type": "class", "name": "enqueue_trace_rec", "text_snippet": "struct enqueue_trace_rec {\n struct enqueue_trace_rec *next;\n struct goalrec *g;\n long prio;\n}"}, {"node_id": 100, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 103, "universal_type": "class", "name": "enqueue_trace_rec", "text_snippet": "struct enqueue_trace_rec"}, {"node_id": 104, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 110, "universal_type": "class", "name": "goalrec", "text_snippet": "struct goalrec"}, {"node_id": 111, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 120, "universal_type": "class", "name": "mod_table_entry", "text_snippet": "struct mod_table_entry {\n module (*func)();\n Const unsigned char *name;\n}"}, {"node_id": 121, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 140, "universal_type": "class", "name": "pred_table_entry", "text_snippet": "struct pred_table_entry {\n Const struct predicate *pred;\n Const struct mod_table_entry *mte;\n Con"}, {"node_id": 141, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}], "import_statements": []}, "original_source_code": "/* ---------------------------------------------------------- \n% (C)1994,1995 Institute for New Generation Computer Technology \n% (Read COPYRIGHT for detailed information.) \n% (C)1996, 1997, 1998, 1999 Japan Information Processing Development Center\n% (Read COPYRIGHT-JIPDEC for detailed information.)\n----------------------------------------------------------- */\n\n/*\n Tracer Status Information\n*/\n\nstruct trace_info_rec {\n FILE *in;\n FILE *out;\n q original_arg;\n int enabled, leashed, leaping, spying;\n int verbose;\n unsigned long print_depth, print_length;\n};\n\n#define Leaping(info)\t\t((info)->leaping)\n#define Spying(info)\t\t((info)->spying)\n#define EnabledPorts(info)\t((info)->enabled)\n#define LeashedPorts(info)\t((info)->leashed)\n#define Enabled(info,port)\t((EnabledPorts(info) >> (int)(port)) & 1)\n#define Leashed(info,port)\t((LeashedPorts(info) >> (int)(port)) & 1)\n#define Verbose(info)\t\t((info)->verbose)\n#define Depth(info)\t\t((info)->print_depth)\n#define Length(info)\t\t((info)->print_length)\n\n#define InStream(info)\t\t((info)->in)\n#define OutStream(info)\t\t((info)->out)\n\n/*\n Info on Enqueued Goals\n*/\n\nstruct enqueue_trace_rec {\n struct enqueue_trace_rec *next;\n struct goalrec *g;\n long prio;\n};\n\n/*\n Name Tables\n*/\n\nstruct mod_table_entry {\n module (*func)();\n Const unsigned char *name;\n};\n\nstruct pred_table_entry {\n Const struct predicate *pred;\n Const struct mod_table_entry *mte;\n Const unsigned char *name;\n char spied;\n char default_trace;\n};\n\n/*\n Trace Control\n*/\n\nenum trace_port {\n Call, Susp, Reduce, Fail, AllPorts, NoMorePort, UnknownPort };\n"}
80,024
c
/** * @file Servant_var.h * * $Id: Servant_var.h 77276 2007-02-21 08:26:36Z johnnyw $ * * @author <NAME> <<EMAIL>> * @author <NAME> <<EMAIL>> */ #ifndef TAO_PERF_RTEC_SERVANT_VAR_H #define TAO_PERF_RTEC_SERVANT_VAR_H #include "tao/corba.h" /** * @class Servant_var * * @brief Implement a smart pointer class for Servants * * All servants, are reference counted objects. * Unfortunately the specification lacks such an useful smart pointer * class to manage their life-cycle. */ template<class SERVANT> class Servant_var { public: /// Constructor /** * @param s The contained servant. The constructor assumes * ownership. */ explicit Servant_var (SERVANT *s = 0); /// Copy constructor Servant_var (const Servant_var<SERVANT> &rhs); /// Assignment Servant_var<SERVANT>& operator= (const Servant_var<SERVANT> &rhs); /// Assignment Servant_var<SERVANT>& operator= (SERVANT *s); /// Destructor ~Servant_var (); /// Helper method to increase the reference count on a servant. static SERVANT *duplicate (SERVANT *servart); //@{ /** @name Smart pointer operations */ const SERVANT * operator->() const; SERVANT * operator->(); operator SERVANT *(); operator const SERVANT * () const; //@} //@{ /** @name Canonical CORBA T_var methods */ SERVANT *in () const; SERVANT *&out (); SERVANT *&inout (); //@} private: /// The owned object SERVANT *ptr_; }; #if defined(__ACE_INLINE__) #include "Servant_var.inl" #endif /* __ACE_INLINE__ */ #if defined (ACE_TEMPLATES_REQUIRE_SOURCE) #include "Servant_var.cpp" #endif /* ACE_TEMPLATES_REQUIRE_SOURCE */ #endif /* TAO_PERF_RTEC_SERVANT_VAR_H */
24.23
66
(translation_unit) "/**\n * @file Servant_var.h\n *\n * $Id: Servant_var.h 77276 2007-02-21 08:26:36Z johnnyw $\n *\n * @author <NAME> <<EMAIL>>\n * @author <NAME> <<EMAIL>>\n */\n#ifndef TAO_PERF_RTEC_SERVANT_VAR_H\n#define TAO_PERF_RTEC_SERVANT_VAR_H\n\n#include "tao/corba.h"\n\n/**\n * @class Servant_var\n *\n * @brief Implement a smart pointer class for Servants\n *\n * All servants, are reference counted objects.\n * Unfortunately the specification lacks such an useful smart pointer\n * class to manage their life-cycle.\n */\ntemplate<class SERVANT>\nclass Servant_var\n{\npublic:\n /// Constructor\n /**\n * @param s The contained servant. The constructor assumes\n * ownership.\n */\n explicit Servant_var (SERVANT *s = 0);\n\n /// Copy constructor\n Servant_var (const Servant_var<SERVANT> &rhs);\n\n /// Assignment\n Servant_var<SERVANT>& operator= (const Servant_var<SERVANT> &rhs);\n\n /// Assignment\n Servant_var<SERVANT>& operator= (SERVANT *s);\n\n /// Destructor\n ~Servant_var ();\n\n /// Helper method to increase the reference count on a servant.\n static SERVANT *duplicate (SERVANT *servart);\n\n //@{\n /** @name Smart pointer operations\n */\n const SERVANT * operator->() const;\n SERVANT * operator->();\n\n operator SERVANT *();\n operator const SERVANT * () const;\n //@}\n\n //@{\n /** @name Canonical CORBA T_var methods\n */\n SERVANT *in () const;\n SERVANT *&out ();\n SERVANT *&inout ();\n //@}\n\nprivate:\n /// The owned object\n SERVANT *ptr_;\n};\n\n#if defined(__ACE_INLINE__)\n#include "Servant_var.inl"\n#endif /* __ACE_INLINE__ */\n\n#if defined (ACE_TEMPLATES_REQUIRE_SOURCE)\n#include "Servant_var.cpp"\n#endif /* ACE_TEMPLATES_REQUIRE_SOURCE */\n\n#endif /* TAO_PERF_RTEC_SERVANT_VAR_H */\n" (comment) "/**\n * @file Servant_var.h\n *\n * $Id: Servant_var.h 77276 2007-02-21 08:26:36Z johnnyw $\n *\n * @author <NAME> <<EMAIL>>\n * @author <NAME> <<EMAIL>>\n */" (preproc_ifdef) "#ifndef TAO_PERF_RTEC_SERVANT_VAR_H\n#define TAO_PERF_RTEC_SERVANT_VAR_H\n\n#include "tao/corba.h"\n\n/**\n * @class Servant_var\n *\n * @brief Implement a smart pointer class for Servants\n *\n * All servants, are reference counted objects.\n * Unfortunately the specification lacks such an useful smart pointer\n * class to manage their life-cycle.\n */\ntemplate<class SERVANT>\nclass Servant_var\n{\npublic:\n /// Constructor\n /**\n * @param s The contained servant. The constructor assumes\n * ownership.\n */\n explicit Servant_var (SERVANT *s = 0);\n\n /// Copy constructor\n Servant_var (const Servant_var<SERVANT> &rhs);\n\n /// Assignment\n Servant_var<SERVANT>& operator= (const Servant_var<SERVANT> &rhs);\n\n /// Assignment\n Servant_var<SERVANT>& operator= (SERVANT *s);\n\n /// Destructor\n ~Servant_var ();\n\n /// Helper method to increase the reference count on a servant.\n static SERVANT *duplicate (SERVANT *servart);\n\n //@{\n /** @name Smart pointer operations\n */\n const SERVANT * operator->() const;\n SERVANT * operator->();\n\n operator SERVANT *();\n operator const SERVANT * () const;\n //@}\n\n //@{\n /** @name Canonical CORBA T_var methods\n */\n SERVANT *in () const;\n SERVANT *&out ();\n SERVANT *&inout ();\n //@}\n\nprivate:\n /// The owned object\n SERVANT *ptr_;\n};\n\n#if defined(__ACE_INLINE__)\n#include "Servant_var.inl"\n#endif /* __ACE_INLINE__ */\n\n#if defined (ACE_TEMPLATES_REQUIRE_SOURCE)\n#include "Servant_var.cpp"\n#endif" (#ifndef) "#ifndef" (identifier) "TAO_PERF_RTEC_SERVANT_VAR_H" (preproc_def) "#define TAO_PERF_RTEC_SERVANT_VAR_H\n" (#define) "#define" (identifier) "TAO_PERF_RTEC_SERVANT_VAR_H" (preproc_include) "#include "tao/corba.h"\n" (#include) "#include" (string_literal) ""tao/corba.h"" (") """ (string_content) "tao/corba.h" (") """ (comment) "/**\n * @class Servant_var\n *\n * @brief Implement a smart pointer class for Servants\n *\n * All servants, are reference counted objects.\n * Unfortunately the specification lacks such an useful smart pointer\n * class to manage their life-cycle.\n */" (ERROR) "template<class SERVANT>\nclass Servant_var\n{\npublic:\n /// Constructor\n /**\n * @param s The contained servant. The constructor assumes\n * ownership.\n */\n explicit Servant_var (SERVANT *s = 0);\n\n /// Copy constructor\n Servant_var (const Servant_var<SERVANT> &rhs);\n\n /// Assignment\n Servant_var<SERVANT>& operator= (const Servant_var<SERVANT> &rhs);\n\n /// Assignment\n Servant_var<SERVANT>& operator= (SERVANT *s);\n\n /// Destructor\n ~Servant_var ();\n\n /// Helper method to increase the reference count on a servant.\n static SERVANT *duplicate (SERVANT *servart);\n\n //@{\n /** @name Smart pointer operations\n */\n const SERVANT * operator->() const;\n SERVANT * operator->();\n\n operator SERVANT *();\n operator const SERVANT * () const;\n //@}\n\n //@{\n /** @name Canonical CORBA T_var methods\n */\n SERVANT *in () const;\n SERVANT *&out ();\n SERVANT *&inout ();\n //@}\n\nprivate:\n /// The owned object\n SERVANT *ptr_;\n};\n\n#if defined(__ACE_INLINE__)\n#include "Servant_var.inl"\n#endif /* __ACE_INLINE__ */\n\n#if defined (ACE_TEMPLATES_REQUIRE_SOURCE)\n#include "Servant_var.cpp"" (binary_expression) "template<class SERVANT>\nclass" (binary_expression) "template<class SERVANT" (identifier) "template" (<) "<" (ERROR) "class" (identifier) "class" (identifier) "SERVANT" (>) ">" (identifier) "class" (identifier) "Servant_var" ({) "{" (labeled_statement) "public:\n /// Constructor\n /**\n * @param s The contained servant. The constructor assumes\n * ownership.\n */\n explicit Servant_var (SERVANT *s = 0);" (statement_identifier) "public" (:) ":" (comment) "/// Constructor" (comment) "/**\n * @param s The contained servant. The constructor assumes\n * ownership.\n */" (declaration) "explicit Servant_var (SERVANT *s = 0);" (type_identifier) "explicit" (init_declarator) "Servant_var (SERVANT *s = 0" (function_declarator) "Servant_var (SERVANT *s" (identifier) "Servant_var" (parameter_list) "(SERVANT *s" (() "(" (parameter_declaration) "SERVANT *s" (type_identifier) "SERVANT" (pointer_declarator) "*s" (*) "*" (identifier) "s" ()) "" (=) "=" (number_literal) "0" (ERROR) ")" ()) ")" (;) ";" (comment) "/// Copy constructor" (expression_statement) "Servant_var (const Servant_var<SERVANT> &rhs);" (binary_expression) "Servant_var (const Servant_var<SERVANT> &rhs" (binary_expression) "Servant_var (const Servant_var<SERVANT" (identifier) "Servant_var" (ERROR) "(const Servant_var" (() "(" (type_descriptor) "const Servant_var" (type_qualifier) "const" (const) "const" (type_identifier) "Servant_var" (<) "<" (identifier) "SERVANT" (>) ">" (pointer_expression) "&rhs" (&) "&" (identifier) "rhs" (ERROR) ")" ()) ")" (;) ";" (comment) "/// Assignment" (expression_statement) "Servant_var<SERVANT>& operator= (const Servant_var<SERVANT> &rhs);" (binary_expression) "Servant_var<SERVANT>& operator= (const Servant_var<SERVANT> &rhs" (binary_expression) "Servant_var<SERVANT>& operator= (const Servant_var<SERVANT" (binary_expression) "Servant_var<SERVANT>& operator" (binary_expression) "Servant_var<SERVANT" (identifier) "Servant_var" (<) "<" (identifier) "SERVANT" (>) ">" (pointer_expression) "& operator" (&) "&" (identifier) "operator" (ERROR) "= (const Servant_var" (=) "=" (() "(" (type_descriptor) "const Servant_var" (type_qualifier) "const" (const) "const" (type_identifier) "Servant_var" (<) "<" (identifier) "SERVANT" (>) ">" (pointer_expression) "&rhs" (&) "&" (identifier) "rhs" (ERROR) ")" ()) ")" (;) ";" (comment) "/// Assignment" (expression_statement) "Servant_var<SERVANT>& operator= (SERVANT *s);" (binary_expression) "Servant_var<SERVANT>& operator= (SERVANT *s)" (binary_expression) "Servant_var<SERVANT" (identifier) "Servant_var" (<) "<" (identifier) "SERVANT" (>) ">" (assignment_expression) "& operator= (SERVANT *s)" (pointer_expression) "& operator" (&) "&" (identifier) "operator" (=) "=" (parenthesized_expression) "(SERVANT *s)" (() "(" (binary_expression) "SERVANT *s" (identifier) "SERVANT" (*) "*" (identifier) "s" ()) ")" (;) ";" (comment) "/// Destructor" (expression_statement) "~Servant_var ();" (unary_expression) "~Servant_var ()" (~) "~" (call_expression) "Servant_var ()" (identifier) "Servant_var" (argument_list) "()" (() "(" ()) ")" (;) ";" (comment) "/// Helper method to increase the reference count on a servant." (declaration) "static SERVANT *duplicate (SERVANT *servart);" (storage_class_specifier) "static" (static) "static" (type_identifier) "SERVANT" (pointer_declarator) "*duplicate (SERVANT *servart)" (*) "*" (function_declarator) "duplicate (SERVANT *servart)" (identifier) "duplicate" (parameter_list) "(SERVANT *servart)" (() "(" (parameter_declaration) "SERVANT *servart" (type_identifier) "SERVANT" (pointer_declarator) "*servart" (*) "*" (identifier) "servart" ()) ")" (;) ";" (comment) "//@{" (comment) "/** @name Smart pointer operations\n */" (declaration) "const SERVANT * operator->() const;" (type_qualifier) "const" (const) "const" (type_identifier) "SERVANT" (pointer_declarator) "* operator" (*) "*" (identifier) "operator" (ERROR) "->() const" (->) "->" (() "(" ()) ")" (const) "const" (;) ";" (expression_statement) "SERVANT * operator->();" (binary_expression) "SERVANT * operator->()" (identifier) "SERVANT" (*) "*" (call_expression) "operator->()" (field_expression) "operator->" (identifier) "operator" (->) "->" (field_identifier) "" (argument_list) "()" (() "(" ()) ")" (;) ";" (declaration) "operator SERVANT *();" (type_identifier) "operator" (ERROR) "SERVANT" (identifier) "SERVANT" (pointer_declarator) "*()" (*) "*" (parenthesized_declarator) "()" (() "(" (identifier) "" ()) ")" (;) ";" (type_identifier) "operator" (type_qualifier) "const" (const) "const" (function_declarator) "SERVANT * ()" (identifier) "SERVANT" (ERROR) "*" (*) "*" (parameter_list) "()" (() "(" ()) ")" (declaration) "const;\n //@}\n\n //@{\n /** @name Canonical CORBA T_var methods\n */\n SERVANT *in () const;" (type_qualifier) "const" (const) "const" (ERROR) ";" (;) ";" (comment) "//@}" (comment) "//@{" (comment) "/** @name Canonical CORBA T_var methods\n */" (type_identifier) "SERVANT" (pointer_declarator) "*in () const" (*) "*" (function_declarator) "in () const" (identifier) "in" (parameter_list) "()" (() "(" ()) ")" (identifier) "const" (;) ";" (declaration) "SERVANT *&out ();" (type_identifier) "SERVANT" (pointer_declarator) "*&out ()" (*) "*" (ERROR) "&" (&) "&" (function_declarator) "out ()" (identifier) "out" (parameter_list) "()" (() "(" ()) ")" (;) ";" (declaration) "SERVANT *&inout ();" (type_identifier) "SERVANT" (pointer_declarator) "*&inout ()" (*) "*" (ERROR) "&" (&) "&" (function_declarator) "inout ()" (identifier) "inout" (parameter_list) "()" (() "(" ()) ")" (;) ";" (comment) "//@}" (declaration) "private:\n /// The owned object\n SERVANT *ptr_;" (type_identifier) "private" (ERROR) ":" (:) ":" (comment) "/// The owned object" (ERROR) "SERVANT" (identifier) "SERVANT" (pointer_declarator) "*ptr_" (*) "*" (identifier) "ptr_" (;) ";" (ERROR) "};\n\n#if defined(" (}) "}" (;) ";" (#if) "#if" (defined) "defined" (() "(" (type_identifier) "__ACE_INLINE__" (ERROR) ")\n#include "Servant_var." ()) ")" (#include) "#include" (") """ (identifier) "Servant_var" (.) "." (function_declarator) "inl"\n#endif /* __ACE_INLINE__ */\n\n#if defined (ACE_TEMPLATES_REQUIRE_SOURCE)\n#include "Servant_var.cpp" (identifier) "inl" (ERROR) ""\n#endif /* __ACE_INLINE__ */\n\n#if defined" (") """ (#endif) "#endif" (comment) "/* __ACE_INLINE__ */" (#if) "#if" (defined) "defined" (parameter_list) "(ACE_TEMPLATES_REQUIRE_SOURCE)" (() "(" (parameter_declaration) "ACE_TEMPLATES_REQUIRE_SOURCE" (type_identifier) "ACE_TEMPLATES_REQUIRE_SOURCE" ()) ")" (ERROR) "#include "Servant_var." (preproc_directive) "#include" (") """ (identifier) "Servant_var" (.) "." (identifier) "cpp" (") """ (#endif) "#endif" (comment) "/* ACE_TEMPLATES_REQUIRE_SOURCE */" (preproc_call) "#endif /* TAO_PERF_RTEC_SERVANT_VAR_H */\n" (preproc_directive) "#endif" (comment) "/* TAO_PERF_RTEC_SERVANT_VAR_H */"
289
19
{"language": "c", "success": true, "metadata": {"lines": 66, "avg_line_length": 24.23, "nodes": 171, "errors": 0, "source_hash": "c718ea8915b9432892c5b7db84682153ffc0e54e23183b8359d4411c1b0ca4ea", "categorized_nodes": 105}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef TAO_PERF_RTEC_SERVANT_VAR_H\n#define TAO_PERF_RTEC_SERVANT_VAR_H\n\n#include \"tao/corba.h\"\n\n/**\n * @class Servant_var\n *\n * @brief Implement a smart pointer class for Servants\n *\n * All servants, are reference counted objects.\n * Unfortunately the specification lacks such an useful smart pointer\n * class to manage their life-cycle.\n */\ntemplate<class SERVANT>\nclass Servant_var\n{\npublic:\n /// Constructor\n /**\n * @param s The contained servant. The constructor assumes\n * ownership.\n */\n explicit Servant_var (SERVANT *s = 0);\n\n /// Copy constructor\n Servant_var (const Servant_var<SERVANT> &rhs);\n\n /// Assignment\n Servant_var<SERVANT>& operator= (const Servant_var<SERVANT> &rhs);\n\n /// Assignment\n Servant_var<SERVANT>& operator= (SERVANT *s);\n\n /// Destructor\n ~Servant_var ();\n\n /// Helper method to increase the reference count on a servant.\n static SERVANT *duplicate (SERVANT *servart);\n\n //@{\n /** @name Smart pointer operations\n */\n const SERVANT * operator->() const;\n SERVANT * operator->();\n\n operator SERVANT *();\n operator const SERVANT * () const;\n //@}\n\n //@{\n /** @name Canonical CORBA T_var methods\n */\n SERVANT *in () const;\n SERVANT *&out ();\n SERVANT *&inout ();\n //@}\n\nprivate:\n /// The owned object\n SERVANT *ptr_;\n};\n\n#if defined(__ACE_INLINE__)\n#include \"Servant_var.inl\"\n#endif /* __ACE_INLINE__ */\n\n#if defined (ACE_TEMPLATES_REQUIRE_SOURCE)\n#include \"Servant_var.cpp\"\n#endif", "parent": null, "children": [1, 2, 3, 6, 9, 168], "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": "TAO_PERF_RTEC_SERVANT_VAR_H", "parent": 0, "children": [], "start_point": {"row": 8, "column": 8}, "end_point": {"row": 8, "column": 35}}, {"id": 3, "type": "preproc_def", "text": "#define TAO_PERF_RTEC_SERVANT_VAR_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": "TAO_PERF_RTEC_SERVANT_VAR_H", "parent": 3, "children": [], "start_point": {"row": 9, "column": 8}, "end_point": {"row": 9, "column": 35}}, {"id": 6, "type": "preproc_include", "text": "#include \"tao/corba.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": "string_literal", "text": "\"tao/corba.h\"", "parent": 6, "children": [], "start_point": {"row": 11, "column": 9}, "end_point": {"row": 11, "column": 22}}, {"id": 9, "type": "ERROR", "text": "template<class SERVANT>\nclass Servant_var\n{\npublic:\n /// Constructor\n /**\n * @param s The contained servant. The constructor assumes\n * ownership.\n */\n explicit Servant_var (SERVANT *s = 0);\n\n /// Copy constructor\n Servant_var (const Servant_var<SERVANT> &rhs);\n\n /// Assignment\n Servant_var<SERVANT>& operator= (const Servant_var<SERVANT> &rhs);\n\n /// Assignment\n Servant_var<SERVANT>& operator= (SERVANT *s);\n\n /// Destructor\n ~Servant_var ();\n\n /// Helper method to increase the reference count on a servant.\n static SERVANT *duplicate (SERVANT *servart);\n\n //@{\n /** @name Smart pointer operations\n */\n const SERVANT * operator->() const;\n SERVANT * operator->();\n\n operator SERVANT *();\n operator const SERVANT * () const;\n //@}\n\n //@{\n /** @name Canonical CORBA T_var methods\n */\n SERVANT *in () const;\n SERVANT *&out ();\n SERVANT *&inout ();\n //@}\n\nprivate:\n /// The owned object\n SERVANT *ptr_;\n};\n\n#if defined(__ACE_INLINE__)\n#include \"Servant_var.inl\"\n#endif /* __ACE_INLINE__ */\n\n#if defined (ACE_TEMPLATES_REQUIRE_SOURCE)\n#include \"Servant_var.cpp\"", "parent": 0, "children": [10, 16, 17, 81, 93, 107, 115, 116, 121, 128, 135, 142, 148, 151, 152, 155], "start_point": {"row": 22, "column": 0}, "end_point": {"row": 76, "column": 26}}, {"id": 10, "type": "binary_expression", "text": "template<class SERVANT>\nclass", "parent": 9, "children": [11, 15], "start_point": {"row": 22, "column": 0}, "end_point": {"row": 23, "column": 5}}, {"id": 11, "type": "binary_expression", "text": "template<class SERVANT", "parent": 10, "children": [12, 13, 14], "start_point": {"row": 22, "column": 0}, "end_point": {"row": 22, "column": 22}}, {"id": 12, "type": "identifier", "text": "template", "parent": 11, "children": [], "start_point": {"row": 22, "column": 0}, "end_point": {"row": 22, "column": 8}}, {"id": 13, "type": "<", "text": "<", "parent": 11, "children": [], "start_point": {"row": 22, "column": 8}, "end_point": {"row": 22, "column": 9}}, {"id": 14, "type": "identifier", "text": "SERVANT", "parent": 11, "children": [], "start_point": {"row": 22, "column": 15}, "end_point": {"row": 22, "column": 22}}, {"id": 15, "type": ">", "text": ">", "parent": 10, "children": [], "start_point": {"row": 22, "column": 22}, "end_point": {"row": 22, "column": 23}}, {"id": 16, "type": "identifier", "text": "Servant_var", "parent": 9, "children": [], "start_point": {"row": 23, "column": 6}, "end_point": {"row": 23, "column": 17}}, {"id": 17, "type": "labeled_statement", "text": "public:\n /// Constructor\n /**\n * @param s The contained servant. The constructor assumes\n * ownership.\n */\n explicit Servant_var (SERVANT *s = 0);", "parent": 9, "children": [18], "start_point": {"row": 25, "column": 0}, "end_point": {"row": 31, "column": 40}}, {"id": 18, "type": "declaration", "text": "explicit Servant_var (SERVANT *s = 0);", "parent": 17, "children": [19, 20], "start_point": {"row": 31, "column": 2}, "end_point": {"row": 31, "column": 40}}, {"id": 19, "type": "type_identifier", "text": "explicit", "parent": 18, "children": [], "start_point": {"row": 31, "column": 2}, "end_point": {"row": 31, "column": 10}}, {"id": 20, "type": "init_declarator", "text": "Servant_var (SERVANT *s = 0", "parent": 18, "children": [21, 29, 30], "start_point": {"row": 31, "column": 11}, "end_point": {"row": 31, "column": 38}}, {"id": 21, "type": "function_declarator", "text": "Servant_var (SERVANT *s", "parent": 20, "children": [22, 23], "start_point": {"row": 31, "column": 11}, "end_point": {"row": 31, "column": 34}}, {"id": 22, "type": "identifier", "text": "Servant_var", "parent": 21, "children": [], "start_point": {"row": 31, "column": 11}, "end_point": {"row": 31, "column": 22}}, {"id": 23, "type": "parameter_list", "text": "(SERVANT *s", "parent": 21, "children": [24], "start_point": {"row": 31, "column": 23}, "end_point": {"row": 31, "column": 34}}, {"id": 24, "type": "parameter_declaration", "text": "SERVANT *s", "parent": 23, "children": [25, 26], "start_point": {"row": 31, "column": 24}, "end_point": {"row": 31, "column": 34}}, {"id": 25, "type": "type_identifier", "text": "SERVANT", "parent": 24, "children": [], "start_point": {"row": 31, "column": 24}, "end_point": {"row": 31, "column": 31}}, {"id": 26, "type": "pointer_declarator", "text": "*s", "parent": 24, "children": [27, 28], "start_point": {"row": 31, "column": 32}, "end_point": {"row": 31, "column": 34}}, {"id": 27, "type": "*", "text": "*", "parent": 26, "children": [], "start_point": {"row": 31, "column": 32}, "end_point": {"row": 31, "column": 33}}, {"id": 28, "type": "identifier", "text": "s", "parent": 26, "children": [], "start_point": {"row": 31, "column": 33}, "end_point": {"row": 31, "column": 34}}, {"id": 29, "type": "=", "text": "=", "parent": 20, "children": [], "start_point": {"row": 31, "column": 35}, "end_point": {"row": 31, "column": 36}}, {"id": 30, "type": "number_literal", "text": "0", "parent": 20, "children": [], "start_point": {"row": 31, "column": 37}, "end_point": {"row": 31, "column": 38}}, {"id": 31, "type": "binary_expression", "text": "Servant_var (const Servant_var<SERVANT> &rhs", "parent": 9, "children": [32, 39, 40], "start_point": {"row": 34, "column": 2}, "end_point": {"row": 34, "column": 46}}, {"id": 32, "type": "binary_expression", "text": "Servant_var (const Servant_var<SERVANT", "parent": 31, "children": [33, 34, 37, 38], "start_point": {"row": 34, "column": 2}, "end_point": {"row": 34, "column": 40}}, {"id": 33, "type": "identifier", "text": "Servant_var", "parent": 32, "children": [], "start_point": {"row": 34, "column": 2}, "end_point": {"row": 34, "column": 13}}, {"id": 34, "type": "ERROR", "text": "(const Servant_var", "parent": 32, "children": [35], "start_point": {"row": 34, "column": 14}, "end_point": {"row": 34, "column": 32}}, {"id": 35, "type": "type_descriptor", "text": "const Servant_var", "parent": 34, "children": [36], "start_point": {"row": 34, "column": 15}, "end_point": {"row": 34, "column": 32}}, {"id": 36, "type": "type_identifier", "text": "Servant_var", "parent": 35, "children": [], "start_point": {"row": 34, "column": 21}, "end_point": {"row": 34, "column": 32}}, {"id": 37, "type": "<", "text": "<", "parent": 32, "children": [], "start_point": {"row": 34, "column": 32}, "end_point": {"row": 34, "column": 33}}, {"id": 38, "type": "identifier", "text": "SERVANT", "parent": 32, "children": [], "start_point": {"row": 34, "column": 33}, "end_point": {"row": 34, "column": 40}}, {"id": 39, "type": ">", "text": ">", "parent": 31, "children": [], "start_point": {"row": 34, "column": 40}, "end_point": {"row": 34, "column": 41}}, {"id": 40, "type": "pointer_expression", "text": "&rhs", "parent": 31, "children": [41], "start_point": {"row": 34, "column": 42}, "end_point": {"row": 34, "column": 46}}, {"id": 41, "type": "identifier", "text": "rhs", "parent": 40, "children": [], "start_point": {"row": 34, "column": 43}, "end_point": {"row": 34, "column": 46}}, {"id": 42, "type": "binary_expression", "text": "Servant_var<SERVANT>& operator= (const Servant_var<SERVANT> &rhs", "parent": 9, "children": [43, 58, 59], "start_point": {"row": 37, "column": 2}, "end_point": {"row": 37, "column": 66}}, {"id": 43, "type": "binary_expression", "text": "Servant_var<SERVANT>& operator= (const Servant_var<SERVANT", "parent": 42, "children": [44, 52, 56, 57], "start_point": {"row": 37, "column": 2}, "end_point": {"row": 37, "column": 60}}, {"id": 44, "type": "binary_expression", "text": "Servant_var<SERVANT>& operator", "parent": 43, "children": [45, 49, 50], "start_point": {"row": 37, "column": 2}, "end_point": {"row": 37, "column": 32}}, {"id": 45, "type": "binary_expression", "text": "Servant_var<SERVANT", "parent": 44, "children": [46, 47, 48], "start_point": {"row": 37, "column": 2}, "end_point": {"row": 37, "column": 21}}, {"id": 46, "type": "identifier", "text": "Servant_var", "parent": 45, "children": [], "start_point": {"row": 37, "column": 2}, "end_point": {"row": 37, "column": 13}}, {"id": 47, "type": "<", "text": "<", "parent": 45, "children": [], "start_point": {"row": 37, "column": 13}, "end_point": {"row": 37, "column": 14}}, {"id": 48, "type": "identifier", "text": "SERVANT", "parent": 45, "children": [], "start_point": {"row": 37, "column": 14}, "end_point": {"row": 37, "column": 21}}, {"id": 49, "type": ">", "text": ">", "parent": 44, "children": [], "start_point": {"row": 37, "column": 21}, "end_point": {"row": 37, "column": 22}}, {"id": 50, "type": "pointer_expression", "text": "& operator", "parent": 44, "children": [51], "start_point": {"row": 37, "column": 22}, "end_point": {"row": 37, "column": 32}}, {"id": 51, "type": "identifier", "text": "operator", "parent": 50, "children": [], "start_point": {"row": 37, "column": 24}, "end_point": {"row": 37, "column": 32}}, {"id": 52, "type": "ERROR", "text": "= (const Servant_var", "parent": 43, "children": [53, 54], "start_point": {"row": 37, "column": 32}, "end_point": {"row": 37, "column": 52}}, {"id": 53, "type": "=", "text": "=", "parent": 52, "children": [], "start_point": {"row": 37, "column": 32}, "end_point": {"row": 37, "column": 33}}, {"id": 54, "type": "type_descriptor", "text": "const Servant_var", "parent": 52, "children": [55], "start_point": {"row": 37, "column": 35}, "end_point": {"row": 37, "column": 52}}, {"id": 55, "type": "type_identifier", "text": "Servant_var", "parent": 54, "children": [], "start_point": {"row": 37, "column": 41}, "end_point": {"row": 37, "column": 52}}, {"id": 56, "type": "<", "text": "<", "parent": 43, "children": [], "start_point": {"row": 37, "column": 52}, "end_point": {"row": 37, "column": 53}}, {"id": 57, "type": "identifier", "text": "SERVANT", "parent": 43, "children": [], "start_point": {"row": 37, "column": 53}, "end_point": {"row": 37, "column": 60}}, {"id": 58, "type": ">", "text": ">", "parent": 42, "children": [], "start_point": {"row": 37, "column": 60}, "end_point": {"row": 37, "column": 61}}, {"id": 59, "type": "pointer_expression", "text": "&rhs", "parent": 42, "children": [60], "start_point": {"row": 37, "column": 62}, "end_point": {"row": 37, "column": 66}}, {"id": 60, "type": "identifier", "text": "rhs", "parent": 59, "children": [], "start_point": {"row": 37, "column": 63}, "end_point": {"row": 37, "column": 66}}, {"id": 61, "type": "binary_expression", "text": "Servant_var<SERVANT>& operator= (SERVANT *s)", "parent": 9, "children": [62, 66, 67], "start_point": {"row": 40, "column": 2}, "end_point": {"row": 40, "column": 46}}, {"id": 62, "type": "binary_expression", "text": "Servant_var<SERVANT", "parent": 61, "children": [63, 64, 65], "start_point": {"row": 40, "column": 2}, "end_point": {"row": 40, "column": 21}}, {"id": 63, "type": "identifier", "text": "Servant_var", "parent": 62, "children": [], "start_point": {"row": 40, "column": 2}, "end_point": {"row": 40, "column": 13}}, {"id": 64, "type": "<", "text": "<", "parent": 62, "children": [], "start_point": {"row": 40, "column": 13}, "end_point": {"row": 40, "column": 14}}, {"id": 65, "type": "identifier", "text": "SERVANT", "parent": 62, "children": [], "start_point": {"row": 40, "column": 14}, "end_point": {"row": 40, "column": 21}}, {"id": 66, "type": ">", "text": ">", "parent": 61, "children": [], "start_point": {"row": 40, "column": 21}, "end_point": {"row": 40, "column": 22}}, {"id": 67, "type": "assignment_expression", "text": "& operator= (SERVANT *s)", "parent": 61, "children": [68, 70, 71], "start_point": {"row": 40, "column": 22}, "end_point": {"row": 40, "column": 46}}, {"id": 68, "type": "pointer_expression", "text": "& operator", "parent": 67, "children": [69], "start_point": {"row": 40, "column": 22}, "end_point": {"row": 40, "column": 32}}, {"id": 69, "type": "identifier", "text": "operator", "parent": 68, "children": [], "start_point": {"row": 40, "column": 24}, "end_point": {"row": 40, "column": 32}}, {"id": 70, "type": "=", "text": "=", "parent": 67, "children": [], "start_point": {"row": 40, "column": 32}, "end_point": {"row": 40, "column": 33}}, {"id": 71, "type": "parenthesized_expression", "text": "(SERVANT *s)", "parent": 67, "children": [72], "start_point": {"row": 40, "column": 34}, "end_point": {"row": 40, "column": 46}}, {"id": 72, "type": "binary_expression", "text": "SERVANT *s", "parent": 71, "children": [73, 74, 75], "start_point": {"row": 40, "column": 35}, "end_point": {"row": 40, "column": 45}}, {"id": 73, "type": "identifier", "text": "SERVANT", "parent": 72, "children": [], "start_point": {"row": 40, "column": 35}, "end_point": {"row": 40, "column": 42}}, {"id": 74, "type": "*", "text": "*", "parent": 72, "children": [], "start_point": {"row": 40, "column": 43}, "end_point": {"row": 40, "column": 44}}, {"id": 75, "type": "identifier", "text": "s", "parent": 72, "children": [], "start_point": {"row": 40, "column": 44}, "end_point": {"row": 40, "column": 45}}, {"id": 76, "type": "unary_expression", "text": "~Servant_var ()", "parent": 9, "children": [77, 78], "start_point": {"row": 43, "column": 2}, "end_point": {"row": 43, "column": 17}}, {"id": 77, "type": "~", "text": "~", "parent": 76, "children": [], "start_point": {"row": 43, "column": 2}, "end_point": {"row": 43, "column": 3}}, {"id": 78, "type": "call_expression", "text": "Servant_var ()", "parent": 76, "children": [79, 80], "start_point": {"row": 43, "column": 3}, "end_point": {"row": 43, "column": 17}}, {"id": 79, "type": "identifier", "text": "Servant_var", "parent": 78, "children": [], "start_point": {"row": 43, "column": 3}, "end_point": {"row": 43, "column": 14}}, {"id": 80, "type": "argument_list", "text": "()", "parent": 78, "children": [], "start_point": {"row": 43, "column": 15}, "end_point": {"row": 43, "column": 17}}, {"id": 81, "type": "declaration", "text": "static SERVANT *duplicate (SERVANT *servart);", "parent": 9, "children": [82, 83], "start_point": {"row": 46, "column": 2}, "end_point": {"row": 46, "column": 47}}, {"id": 82, "type": "type_identifier", "text": "SERVANT", "parent": 81, "children": [], "start_point": {"row": 46, "column": 9}, "end_point": {"row": 46, "column": 16}}, {"id": 83, "type": "pointer_declarator", "text": "*duplicate (SERVANT *servart)", "parent": 81, "children": [84, 85], "start_point": {"row": 46, "column": 17}, "end_point": {"row": 46, "column": 46}}, {"id": 84, "type": "*", "text": "*", "parent": 83, "children": [], "start_point": {"row": 46, "column": 17}, "end_point": {"row": 46, "column": 18}}, {"id": 85, "type": "function_declarator", "text": "duplicate (SERVANT *servart)", "parent": 83, "children": [86, 87], "start_point": {"row": 46, "column": 18}, "end_point": {"row": 46, "column": 46}}, {"id": 86, "type": "identifier", "text": "duplicate", "parent": 85, "children": [], "start_point": {"row": 46, "column": 18}, "end_point": {"row": 46, "column": 27}}, {"id": 87, "type": "parameter_list", "text": "(SERVANT *servart)", "parent": 85, "children": [88], "start_point": {"row": 46, "column": 28}, "end_point": {"row": 46, "column": 46}}, {"id": 88, "type": "parameter_declaration", "text": "SERVANT *servart", "parent": 87, "children": [89, 90], "start_point": {"row": 46, "column": 29}, "end_point": {"row": 46, "column": 45}}, {"id": 89, "type": "type_identifier", "text": "SERVANT", "parent": 88, "children": [], "start_point": {"row": 46, "column": 29}, "end_point": {"row": 46, "column": 36}}, {"id": 90, "type": "pointer_declarator", "text": "*servart", "parent": 88, "children": [91, 92], "start_point": {"row": 46, "column": 37}, "end_point": {"row": 46, "column": 45}}, {"id": 91, "type": "*", "text": "*", "parent": 90, "children": [], "start_point": {"row": 46, "column": 37}, "end_point": {"row": 46, "column": 38}}, {"id": 92, "type": "identifier", "text": "servart", "parent": 90, "children": [], "start_point": {"row": 46, "column": 38}, "end_point": {"row": 46, "column": 45}}, {"id": 93, "type": "declaration", "text": "const SERVANT * operator->() const;", "parent": 9, "children": [94, 95, 98], "start_point": {"row": 51, "column": 2}, "end_point": {"row": 51, "column": 37}}, {"id": 94, "type": "type_identifier", "text": "SERVANT", "parent": 93, "children": [], "start_point": {"row": 51, "column": 8}, "end_point": {"row": 51, "column": 15}}, {"id": 95, "type": "pointer_declarator", "text": "* operator", "parent": 93, "children": [96, 97], "start_point": {"row": 51, "column": 16}, "end_point": {"row": 51, "column": 26}}, {"id": 96, "type": "*", "text": "*", "parent": 95, "children": [], "start_point": {"row": 51, "column": 16}, "end_point": {"row": 51, "column": 17}}, {"id": 97, "type": "identifier", "text": "operator", "parent": 95, "children": [], "start_point": {"row": 51, "column": 18}, "end_point": {"row": 51, "column": 26}}, {"id": 98, "type": "ERROR", "text": "->() const", "parent": 93, "children": [], "start_point": {"row": 51, "column": 26}, "end_point": {"row": 51, "column": 36}}, {"id": 99, "type": "binary_expression", "text": "SERVANT * operator->()", "parent": 9, "children": [100, 101, 102], "start_point": {"row": 52, "column": 2}, "end_point": {"row": 52, "column": 24}}, {"id": 100, "type": "identifier", "text": "SERVANT", "parent": 99, "children": [], "start_point": {"row": 52, "column": 2}, "end_point": {"row": 52, "column": 9}}, {"id": 101, "type": "*", "text": "*", "parent": 99, "children": [], "start_point": {"row": 52, "column": 10}, "end_point": {"row": 52, "column": 11}}, {"id": 102, "type": "call_expression", "text": "operator->()", "parent": 99, "children": [103, 106], "start_point": {"row": 52, "column": 12}, "end_point": {"row": 52, "column": 24}}, {"id": 103, "type": "field_expression", "text": "operator->", "parent": 102, "children": [104, 105], "start_point": {"row": 52, "column": 12}, "end_point": {"row": 52, "column": 22}}, {"id": 104, "type": "identifier", "text": "operator", "parent": 103, "children": [], "start_point": {"row": 52, "column": 12}, "end_point": {"row": 52, "column": 20}}, {"id": 105, "type": "field_identifier", "text": "", "parent": 103, "children": [], "start_point": {"row": 52, "column": 22}, "end_point": {"row": 52, "column": 22}}, {"id": 106, "type": "argument_list", "text": "()", "parent": 102, "children": [], "start_point": {"row": 52, "column": 22}, "end_point": {"row": 52, "column": 24}}, {"id": 107, "type": "declaration", "text": "operator SERVANT *();", "parent": 9, "children": [108, 109, 111], "start_point": {"row": 54, "column": 2}, "end_point": {"row": 54, "column": 23}}, {"id": 108, "type": "type_identifier", "text": "operator", "parent": 107, "children": [], "start_point": {"row": 54, "column": 2}, "end_point": {"row": 54, "column": 10}}, {"id": 109, "type": "ERROR", "text": "SERVANT", "parent": 107, "children": [110], "start_point": {"row": 54, "column": 11}, "end_point": {"row": 54, "column": 18}}, {"id": 110, "type": "identifier", "text": "SERVANT", "parent": 109, "children": [], "start_point": {"row": 54, "column": 11}, "end_point": {"row": 54, "column": 18}}, {"id": 111, "type": "pointer_declarator", "text": "*()", "parent": 107, "children": [112, 113], "start_point": {"row": 54, "column": 19}, "end_point": {"row": 54, "column": 22}}, {"id": 112, "type": "*", "text": "*", "parent": 111, "children": [], "start_point": {"row": 54, "column": 19}, "end_point": {"row": 54, "column": 20}}, {"id": 113, "type": "parenthesized_declarator", "text": "()", "parent": 111, "children": [114], "start_point": {"row": 54, "column": 20}, "end_point": {"row": 54, "column": 22}}, {"id": 114, "type": "identifier", "text": "", "parent": 113, "children": [], "start_point": {"row": 54, "column": 21}, "end_point": {"row": 54, "column": 21}}, {"id": 115, "type": "type_identifier", "text": "operator", "parent": 9, "children": [], "start_point": {"row": 55, "column": 2}, "end_point": {"row": 55, "column": 10}}, {"id": 116, "type": "function_declarator", "text": "SERVANT * ()", "parent": 9, "children": [117, 118, 120], "start_point": {"row": 55, "column": 17}, "end_point": {"row": 55, "column": 29}}, {"id": 117, "type": "identifier", "text": "SERVANT", "parent": 116, "children": [], "start_point": {"row": 55, "column": 17}, "end_point": {"row": 55, "column": 24}}, {"id": 118, "type": "ERROR", "text": "*", "parent": 116, "children": [119], "start_point": {"row": 55, "column": 25}, "end_point": {"row": 55, "column": 26}}, {"id": 119, "type": "*", "text": "*", "parent": 118, "children": [], "start_point": {"row": 55, "column": 25}, "end_point": {"row": 55, "column": 26}}, {"id": 120, "type": "parameter_list", "text": "()", "parent": 116, "children": [], "start_point": {"row": 55, "column": 27}, "end_point": {"row": 55, "column": 29}}, {"id": 121, "type": "declaration", "text": "const;\n //@}\n\n //@{\n /** @name Canonical CORBA T_var methods\n */\n SERVANT *in () const;", "parent": 9, "children": [122, 123], "start_point": {"row": 55, "column": 30}, "end_point": {"row": 61, "column": 23}}, {"id": 122, "type": "type_identifier", "text": "SERVANT", "parent": 121, "children": [], "start_point": {"row": 61, "column": 2}, "end_point": {"row": 61, "column": 9}}, {"id": 123, "type": "pointer_declarator", "text": "*in () const", "parent": 121, "children": [124, 125], "start_point": {"row": 61, "column": 10}, "end_point": {"row": 61, "column": 22}}, {"id": 124, "type": "*", "text": "*", "parent": 123, "children": [], "start_point": {"row": 61, "column": 10}, "end_point": {"row": 61, "column": 11}}, {"id": 125, "type": "function_declarator", "text": "in () const", "parent": 123, "children": [126, 127], "start_point": {"row": 61, "column": 11}, "end_point": {"row": 61, "column": 22}}, {"id": 126, "type": "identifier", "text": "in", "parent": 125, "children": [], "start_point": {"row": 61, "column": 11}, "end_point": {"row": 61, "column": 13}}, {"id": 127, "type": "parameter_list", "text": "()", "parent": 125, "children": [], "start_point": {"row": 61, "column": 14}, "end_point": {"row": 61, "column": 16}}, {"id": 128, "type": "declaration", "text": "SERVANT *&out ();", "parent": 9, "children": [129, 130], "start_point": {"row": 62, "column": 2}, "end_point": {"row": 62, "column": 19}}, {"id": 129, "type": "type_identifier", "text": "SERVANT", "parent": 128, "children": [], "start_point": {"row": 62, "column": 2}, "end_point": {"row": 62, "column": 9}}, {"id": 130, "type": "pointer_declarator", "text": "*&out ()", "parent": 128, "children": [131, 132], "start_point": {"row": 62, "column": 10}, "end_point": {"row": 62, "column": 18}}, {"id": 131, "type": "*", "text": "*", "parent": 130, "children": [], "start_point": {"row": 62, "column": 10}, "end_point": {"row": 62, "column": 11}}, {"id": 132, "type": "function_declarator", "text": "out ()", "parent": 130, "children": [133, 134], "start_point": {"row": 62, "column": 12}, "end_point": {"row": 62, "column": 18}}, {"id": 133, "type": "identifier", "text": "out", "parent": 132, "children": [], "start_point": {"row": 62, "column": 12}, "end_point": {"row": 62, "column": 15}}, {"id": 134, "type": "parameter_list", "text": "()", "parent": 132, "children": [], "start_point": {"row": 62, "column": 16}, "end_point": {"row": 62, "column": 18}}, {"id": 135, "type": "declaration", "text": "SERVANT *&inout ();", "parent": 9, "children": [136, 137], "start_point": {"row": 63, "column": 2}, "end_point": {"row": 63, "column": 21}}, {"id": 136, "type": "type_identifier", "text": "SERVANT", "parent": 135, "children": [], "start_point": {"row": 63, "column": 2}, "end_point": {"row": 63, "column": 9}}, {"id": 137, "type": "pointer_declarator", "text": "*&inout ()", "parent": 135, "children": [138, 139], "start_point": {"row": 63, "column": 10}, "end_point": {"row": 63, "column": 20}}, {"id": 138, "type": "*", "text": "*", "parent": 137, "children": [], "start_point": {"row": 63, "column": 10}, "end_point": {"row": 63, "column": 11}}, {"id": 139, "type": "function_declarator", "text": "inout ()", "parent": 137, "children": [140, 141], "start_point": {"row": 63, "column": 12}, "end_point": {"row": 63, "column": 20}}, {"id": 140, "type": "identifier", "text": "inout", "parent": 139, "children": [], "start_point": {"row": 63, "column": 12}, "end_point": {"row": 63, "column": 17}}, {"id": 141, "type": "parameter_list", "text": "()", "parent": 139, "children": [], "start_point": {"row": 63, "column": 18}, "end_point": {"row": 63, "column": 20}}, {"id": 142, "type": "declaration", "text": "private:\n /// The owned object\n SERVANT *ptr_;", "parent": 9, "children": [143, 145], "start_point": {"row": 66, "column": 0}, "end_point": {"row": 68, "column": 16}}, {"id": 143, "type": "ERROR", "text": "SERVANT", "parent": 142, "children": [144], "start_point": {"row": 68, "column": 2}, "end_point": {"row": 68, "column": 9}}, {"id": 144, "type": "identifier", "text": "SERVANT", "parent": 143, "children": [], "start_point": {"row": 68, "column": 2}, "end_point": {"row": 68, "column": 9}}, {"id": 145, "type": "pointer_declarator", "text": "*ptr_", "parent": 142, "children": [146, 147], "start_point": {"row": 68, "column": 10}, "end_point": {"row": 68, "column": 15}}, {"id": 146, "type": "*", "text": "*", "parent": 145, "children": [], "start_point": {"row": 68, "column": 10}, "end_point": {"row": 68, "column": 11}}, {"id": 147, "type": "identifier", "text": "ptr_", "parent": 145, "children": [], "start_point": {"row": 68, "column": 11}, "end_point": {"row": 68, "column": 15}}, {"id": 148, "type": "ERROR", "text": "};\n\n#if defined(", "parent": 9, "children": [149, 150], "start_point": {"row": 69, "column": 0}, "end_point": {"row": 71, "column": 12}}, {"id": 149, "type": "#if", "text": "#if", "parent": 148, "children": [], "start_point": {"row": 71, "column": 0}, "end_point": {"row": 71, "column": 3}}, {"id": 150, "type": "defined", "text": "defined", "parent": 148, "children": [], "start_point": {"row": 71, "column": 4}, "end_point": {"row": 71, "column": 11}}, {"id": 151, "type": "type_identifier", "text": "__ACE_INLINE__", "parent": 9, "children": [], "start_point": {"row": 71, "column": 12}, "end_point": {"row": 71, "column": 26}}, {"id": 152, "type": "ERROR", "text": ")\n#include \"Servant_var.", "parent": 9, "children": [153, 154], "start_point": {"row": 71, "column": 26}, "end_point": {"row": 72, "column": 22}}, {"id": 153, "type": "#include", "text": "#include", "parent": 152, "children": [], "start_point": {"row": 72, "column": 0}, "end_point": {"row": 72, "column": 8}}, {"id": 154, "type": "identifier", "text": "Servant_var", "parent": 152, "children": [], "start_point": {"row": 72, "column": 10}, "end_point": {"row": 72, "column": 21}}, {"id": 155, "type": "function_declarator", "text": "inl\"\n#endif /* __ACE_INLINE__ */\n\n#if defined (ACE_TEMPLATES_REQUIRE_SOURCE)\n#include \"Servant_var.cpp", "parent": 9, "children": [156, 157, 161, 164, 167], "start_point": {"row": 72, "column": 22}, "end_point": {"row": 76, "column": 25}}, {"id": 156, "type": "identifier", "text": "inl", "parent": 155, "children": [], "start_point": {"row": 72, "column": 22}, "end_point": {"row": 72, "column": 25}}, {"id": 157, "type": "ERROR", "text": "\"\n#endif /* __ACE_INLINE__ */\n\n#if defined", "parent": 155, "children": [158, 159, 160], "start_point": {"row": 72, "column": 25}, "end_point": {"row": 75, "column": 11}}, {"id": 158, "type": "#endif", "text": "#endif", "parent": 157, "children": [], "start_point": {"row": 73, "column": 0}, "end_point": {"row": 73, "column": 6}}, {"id": 159, "type": "#if", "text": "#if", "parent": 157, "children": [], "start_point": {"row": 75, "column": 0}, "end_point": {"row": 75, "column": 3}}, {"id": 160, "type": "defined", "text": "defined", "parent": 157, "children": [], "start_point": {"row": 75, "column": 4}, "end_point": {"row": 75, "column": 11}}, {"id": 161, "type": "parameter_list", "text": "(ACE_TEMPLATES_REQUIRE_SOURCE)", "parent": 155, "children": [162], "start_point": {"row": 75, "column": 12}, "end_point": {"row": 75, "column": 42}}, {"id": 162, "type": "parameter_declaration", "text": "ACE_TEMPLATES_REQUIRE_SOURCE", "parent": 161, "children": [163], "start_point": {"row": 75, "column": 13}, "end_point": {"row": 75, "column": 41}}, {"id": 163, "type": "type_identifier", "text": "ACE_TEMPLATES_REQUIRE_SOURCE", "parent": 162, "children": [], "start_point": {"row": 75, "column": 13}, "end_point": {"row": 75, "column": 41}}, {"id": 164, "type": "ERROR", "text": "#include \"Servant_var.", "parent": 155, "children": [165, 166], "start_point": {"row": 76, "column": 0}, "end_point": {"row": 76, "column": 22}}, {"id": 165, "type": "preproc_directive", "text": "#include", "parent": 164, "children": [], "start_point": {"row": 76, "column": 0}, "end_point": {"row": 76, "column": 8}}, {"id": 166, "type": "identifier", "text": "Servant_var", "parent": 164, "children": [], "start_point": {"row": 76, "column": 10}, "end_point": {"row": 76, "column": 21}}, {"id": 167, "type": "identifier", "text": "cpp", "parent": 155, "children": [], "start_point": {"row": 76, "column": 22}, "end_point": {"row": 76, "column": 25}}, {"id": 168, "type": "#endif", "text": "#endif", "parent": 0, "children": [], "start_point": {"row": 77, "column": 0}, "end_point": {"row": 77, "column": 6}}, {"id": 169, "type": "preproc_call", "text": "#endif /* TAO_PERF_RTEC_SERVANT_VAR_H */\n", "parent": null, "children": [170], "start_point": {"row": 79, "column": 0}, "end_point": {"row": 80, "column": 0}}, {"id": 170, "type": "preproc_directive", "text": "#endif", "parent": 169, "children": [], "start_point": {"row": 79, "column": 0}, "end_point": {"row": 79, "column": 6}}]}, "node_categories": {"declarations": {"functions": [21, 85, 116, 125, 132, 139, 155], "variables": [18, 24, 81, 88, 93, 107, 121, 128, 135, 142, 162], "classes": [], "imports": [6, 7, 153], "modules": [], "enums": []}, "statements": {"expressions": [10, 11, 31, 32, 40, 42, 43, 44, 45, 50, 59, 61, 62, 68, 71, 72, 76, 78, 99, 102, 103], "assignments": [67], "loops": [], "conditionals": [0, 1, 2, 5, 12, 14, 16, 19, 22, 25, 28, 33, 36, 38, 41, 46, 48, 51, 55, 57, 60, 63, 65, 69, 73, 75, 79, 82, 86, 89, 92, 94, 97, 100, 104, 105, 108, 110, 114, 115, 117, 122, 126, 129, 133, 136, 140, 144, 147, 149, 151, 154, 156, 158, 159, 163, 166, 167, 168], "returns": [], "exceptions": []}, "expressions": {"calls": [169], "literals": [8, 30], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [{"node_id": 21, "universal_type": "function", "name": "unknown", "text_snippet": "Servant_var (SERVANT *s"}, {"node_id": 85, "universal_type": "function", "name": "unknown", "text_snippet": "duplicate (SERVANT *servart)"}, {"node_id": 116, "universal_type": "function", "name": "unknown", "text_snippet": "SERVANT * ()"}, {"node_id": 125, "universal_type": "function", "name": "unknown", "text_snippet": "in () const"}, {"node_id": 132, "universal_type": "function", "name": "unknown", "text_snippet": "out ()"}, {"node_id": 139, "universal_type": "function", "name": "unknown", "text_snippet": "inout ()"}, {"node_id": 155, "universal_type": "function", "name": "unknown", "text_snippet": "inl\"\n#endif /* __ACE_INLINE__ */\n\n#if defined (ACE_TEMPLATES_REQUIRE_SOURCE)\n#include \"Servant_var.c"}], "class_declarations": [], "import_statements": [{"node_id": 6, "text": "#include \"tao/corba.h\"\n"}, {"node_id": 7, "text": "#include"}, {"node_id": 153, "text": "#include"}]}, "original_source_code": "/**\n * @file Servant_var.h\n *\n * $Id: Servant_var.h 77276 2007-02-21 08:26:36Z johnnyw $\n *\n * @author <NAME> <<EMAIL>>\n * @author <NAME> <<EMAIL>>\n */\n#ifndef TAO_PERF_RTEC_SERVANT_VAR_H\n#define TAO_PERF_RTEC_SERVANT_VAR_H\n\n#include \"tao/corba.h\"\n\n/**\n * @class Servant_var\n *\n * @brief Implement a smart pointer class for Servants\n *\n * All servants, are reference counted objects.\n * Unfortunately the specification lacks such an useful smart pointer\n * class to manage their life-cycle.\n */\ntemplate<class SERVANT>\nclass Servant_var\n{\npublic:\n /// Constructor\n /**\n * @param s The contained servant. The constructor assumes\n * ownership.\n */\n explicit Servant_var (SERVANT *s = 0);\n\n /// Copy constructor\n Servant_var (const Servant_var<SERVANT> &rhs);\n\n /// Assignment\n Servant_var<SERVANT>& operator= (const Servant_var<SERVANT> &rhs);\n\n /// Assignment\n Servant_var<SERVANT>& operator= (SERVANT *s);\n\n /// Destructor\n ~Servant_var ();\n\n /// Helper method to increase the reference count on a servant.\n static SERVANT *duplicate (SERVANT *servart);\n\n //@{\n /** @name Smart pointer operations\n */\n const SERVANT * operator->() const;\n SERVANT * operator->();\n\n operator SERVANT *();\n operator const SERVANT * () const;\n //@}\n\n //@{\n /** @name Canonical CORBA T_var methods\n */\n SERVANT *in () const;\n SERVANT *&out ();\n SERVANT *&inout ();\n //@}\n\nprivate:\n /// The owned object\n SERVANT *ptr_;\n};\n\n#if defined(__ACE_INLINE__)\n#include \"Servant_var.inl\"\n#endif /* __ACE_INLINE__ */\n\n#if defined (ACE_TEMPLATES_REQUIRE_SOURCE)\n#include \"Servant_var.cpp\"\n#endif /* ACE_TEMPLATES_REQUIRE_SOURCE */\n\n#endif /* TAO_PERF_RTEC_SERVANT_VAR_H */\n"}
80,025
c
/* * Copyright 2007 Baylor University * * 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 _PROPHET_STATS_H_ #define _PROPHET_STATS_H_ #include <map> #include "Bundle.h" namespace prophet { /** * Statistics to gather per Bundle as described in * section 3.7 regarding Queuing Policies */ struct StatsEntry { StatsEntry() : p_max_(0.0), mopr_(0.0), lmopr_(0.0) {} double p_max_; double mopr_; double lmopr_; }; // StatsEntry /** * Container for Bundle statistics, indexed by Bundle identifier. * Not thread-safe, requires external locking mechanism. */ class Stats { public: /** * Default constructor */ Stats() : dropped_(0) {} /** * Destructor */ ~Stats(); /** * Given a Bundle and a predictability value, update * the stats kept for that Bundle */ void update_stats(const Bundle* b, double p); /** * Given a Bundle, return the max predictability for * any route over which this Bundle has been forwarded */ double get_p_max(const Bundle* b) const; /** * Given a Bundle, return the predictability favor for * the routes over which this Bundle has been forwarded, * according to Eq. 7, Section 3.7 */ double get_mopr(const Bundle* b) const; /** * Given a Bundle, return the linear predictability favor * for the routes over which this Bundle has been forwarded, * according to Eq. 8, Section 3.7 */ double get_lmopr(const Bundle* b) const; /** * Bundle is no longer with us, so get rid of its stats */ void drop_bundle(const Bundle* b); /** * Return count of how many Bundle stats have been dropped * so far */ u_int dropped() const { return dropped_; } /** * Return count of Bundles currently rep'd in Stats */ size_t size() const { return pstats_.size(); } protected: typedef std::map<u_int32_t,StatsEntry*> pstats; typedef std::map<u_int32_t,StatsEntry*>::iterator iterator; typedef std::map<u_int32_t,StatsEntry*>::const_iterator const_iterator; /** * Convenience function for finding the StatEntry per bundle id */ StatsEntry* find(const Bundle* b); u_int dropped_; mutable pstats pstats_; }; // Stats }; // namespace prophet #endif // _PROPHET_STATS_H_
28.5
98
(translation_unit) "/*\n * Copyright 2007 Baylor University\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 _PROPHET_STATS_H_\n#define _PROPHET_STATS_H_\n\n#include <map>\n#include "Bundle.h"\n\nnamespace prophet\n{\n\n/**\n * Statistics to gather per Bundle as described in \n * section 3.7 regarding Queuing Policies\n */\nstruct StatsEntry\n{\n StatsEntry()\n : p_max_(0.0), mopr_(0.0), lmopr_(0.0) {}\n\n double p_max_;\n double mopr_;\n double lmopr_;\n}; // StatsEntry\n\n/**\n * Container for Bundle statistics, indexed by Bundle identifier.\n * Not thread-safe, requires external locking mechanism.\n */\nclass Stats\n{\npublic:\n /**\n * Default constructor\n */\n Stats()\n : dropped_(0) {}\n\n /**\n * Destructor\n */\n ~Stats();\n\n /**\n * Given a Bundle and a predictability value, update\n * the stats kept for that Bundle\n */\n void update_stats(const Bundle* b, double p);\n\n /**\n * Given a Bundle, return the max predictability for\n * any route over which this Bundle has been forwarded\n */\n double get_p_max(const Bundle* b) const;\n\n /**\n * Given a Bundle, return the predictability favor for\n * the routes over which this Bundle has been forwarded,\n * according to Eq. 7, Section 3.7\n */\n double get_mopr(const Bundle* b) const;\n\n /**\n * Given a Bundle, return the linear predictability favor\n * for the routes over which this Bundle has been forwarded,\n * according to Eq. 8, Section 3.7\n */ \n double get_lmopr(const Bundle* b) const;\n\n /**\n * Bundle is no longer with us, so get rid of its stats\n */\n void drop_bundle(const Bundle* b);\n\n /**\n * Return count of how many Bundle stats have been dropped\n * so far\n */\n u_int dropped() const { return dropped_; }\n\n /**\n * Return count of Bundles currently rep'd in Stats\n */\n size_t size() const { return pstats_.size(); }\n\nprotected:\n typedef std::map<u_int32_t,StatsEntry*> pstats;\n typedef std::map<u_int32_t,StatsEntry*>::iterator iterator;\n typedef std::map<u_int32_t,StatsEntry*>::const_iterator\n const_iterator;\n\n /**\n * Convenience function for finding the StatEntry per bundle id\n */\n StatsEntry* find(const Bundle* b);\n\n u_int dropped_;\n mutable pstats pstats_;\n}; // Stats\n\n}; // namespace prophet\n\n#endif // _PROPHET_STATS_H_\n" (comment) "/*\n * Copyright 2007 Baylor University\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 _PROPHET_STATS_H_\n#define _PROPHET_STATS_H_\n\n#include <map>\n#include "Bundle.h"\n\nnamespace prophet\n{\n\n/**\n * Statistics to gather per Bundle as described in \n * section 3.7 regarding Queuing Policies\n */\nstruct StatsEntry\n{\n StatsEntry()\n : p_max_(0.0), mopr_(0.0), lmopr_(0.0) {}\n\n double p_max_;\n double mopr_;\n double lmopr_;\n}; // StatsEntry\n\n/**\n * Container for Bundle statistics, indexed by Bundle identifier.\n * Not thread-safe, requires external locking mechanism.\n */\nclass Stats\n{\npublic:\n /**\n * Default constructor\n */\n Stats()\n : dropped_(0) {}\n\n /**\n * Destructor\n */\n ~Stats();\n\n /**\n * Given a Bundle and a predictability value, update\n * the stats kept for that Bundle\n */\n void update_stats(const Bundle* b, double p);\n\n /**\n * Given a Bundle, return the max predictability for\n * any route over which this Bundle has been forwarded\n */\n double get_p_max(const Bundle* b) const;\n\n /**\n * Given a Bundle, return the predictability favor for\n * the routes over which this Bundle has been forwarded,\n * according to Eq. 7, Section 3.7\n */\n double get_mopr(const Bundle* b) const;\n\n /**\n * Given a Bundle, return the linear predictability favor\n * for the routes over which this Bundle has been forwarded,\n * according to Eq. 8, Section 3.7\n */ \n double get_lmopr(const Bundle* b) const;\n\n /**\n * Bundle is no longer with us, so get rid of its stats\n */\n void drop_bundle(const Bundle* b);\n\n /**\n * Return count of how many Bundle stats have been dropped\n * so far\n */\n u_int dropped() const { return dropped_; }\n\n /**\n * Return count of Bundles currently rep'd in Stats\n */\n size_t size() const { return pstats_.size(); }\n\nprotected:\n typedef std::map<u_int32_t,StatsEntry*> pstats;\n typedef std::map<u_int32_t,StatsEntry*>::iterator iterator;\n typedef std::map<u_int32_t,StatsEntry*>::const_iterator\n const_iterator;\n\n /**\n * Convenience function for finding the StatEntry per bundle id\n */\n StatsEntry* find(const Bundle* b);\n\n u_int dropped_;\n mutable pstats pstats_;\n}; // Stats\n\n}; // namespace prophet\n\n#endif" (#ifndef) "#ifndef" (identifier) "_PROPHET_STATS_H_" (preproc_def) "#define _PROPHET_STATS_H_\n" (#define) "#define" (identifier) "_PROPHET_STATS_H_" (preproc_include) "#include <map>\n" (#include) "#include" (system_lib_string) "<map>" (preproc_include) "#include "Bundle.h"\n" (#include) "#include" (string_literal) ""Bundle.h"" (") """ (string_content) "Bundle.h" (") """ (function_definition) "namespace prophet\n{\n\n/**\n * Statistics to gather per Bundle as described in \n * section 3.7 regarding Queuing Policies\n */\nstruct StatsEntry\n{\n StatsEntry()\n : p_max_(0.0), mopr_(0.0), lmopr_(0.0) {}\n\n double p_max_;\n double mopr_;\n double lmopr_;\n}; // StatsEntry\n\n/**\n * Container for Bundle statistics, indexed by Bundle identifier.\n * Not thread-safe, requires external locking mechanism.\n */\nclass Stats\n{\npublic:\n /**\n * Default constructor\n */\n Stats()\n : dropped_(0) {}\n\n /**\n * Destructor\n */\n ~Stats();\n\n /**\n * Given a Bundle and a predictability value, update\n * the stats kept for that Bundle\n */\n void update_stats(const Bundle* b, double p);\n\n /**\n * Given a Bundle, return the max predictability for\n * any route over which this Bundle has been forwarded\n */\n double get_p_max(const Bundle* b) const;\n\n /**\n * Given a Bundle, return the predictability favor for\n * the routes over which this Bundle has been forwarded,\n * according to Eq. 7, Section 3.7\n */\n double get_mopr(const Bundle* b) const;\n\n /**\n * Given a Bundle, return the linear predictability favor\n * for the routes over which this Bundle has been forwarded,\n * according to Eq. 8, Section 3.7\n */ \n double get_lmopr(const Bundle* b) const;\n\n /**\n * Bundle is no longer with us, so get rid of its stats\n */\n void drop_bundle(const Bundle* b);\n\n /**\n * Return count of how many Bundle stats have been dropped\n * so far\n */\n u_int dropped() const { return dropped_; }\n\n /**\n * Return count of Bundles currently rep'd in Stats\n */\n size_t size() const { return pstats_.size(); }\n\nprotected:\n typedef std::map<u_int32_t,StatsEntry*> pstats;\n typedef std::map<u_int32_t,StatsEntry*>::iterator iterator;\n typedef std::map<u_int32_t,StatsEntry*>::const_iterator\n const_iterator;\n\n /**\n * Convenience function for finding the StatEntry per bundle id\n */\n StatsEntry* find(const Bundle* b);\n\n u_int dropped_;\n mutable pstats pstats_;\n}; // Stats\n\n}" (type_identifier) "namespace" (identifier) "prophet" (compound_statement) "{\n\n/**\n * Statistics to gather per Bundle as described in \n * section 3.7 regarding Queuing Policies\n */\nstruct StatsEntry\n{\n StatsEntry()\n : p_max_(0.0), mopr_(0.0), lmopr_(0.0) {}\n\n double p_max_;\n double mopr_;\n double lmopr_;\n}; // StatsEntry\n\n/**\n * Container for Bundle statistics, indexed by Bundle identifier.\n * Not thread-safe, requires external locking mechanism.\n */\nclass Stats\n{\npublic:\n /**\n * Default constructor\n */\n Stats()\n : dropped_(0) {}\n\n /**\n * Destructor\n */\n ~Stats();\n\n /**\n * Given a Bundle and a predictability value, update\n * the stats kept for that Bundle\n */\n void update_stats(const Bundle* b, double p);\n\n /**\n * Given a Bundle, return the max predictability for\n * any route over which this Bundle has been forwarded\n */\n double get_p_max(const Bundle* b) const;\n\n /**\n * Given a Bundle, return the predictability favor for\n * the routes over which this Bundle has been forwarded,\n * according to Eq. 7, Section 3.7\n */\n double get_mopr(const Bundle* b) const;\n\n /**\n * Given a Bundle, return the linear predictability favor\n * for the routes over which this Bundle has been forwarded,\n * according to Eq. 8, Section 3.7\n */ \n double get_lmopr(const Bundle* b) const;\n\n /**\n * Bundle is no longer with us, so get rid of its stats\n */\n void drop_bundle(const Bundle* b);\n\n /**\n * Return count of how many Bundle stats have been dropped\n * so far\n */\n u_int dropped() const { return dropped_; }\n\n /**\n * Return count of Bundles currently rep'd in Stats\n */\n size_t size() const { return pstats_.size(); }\n\nprotected:\n typedef std::map<u_int32_t,StatsEntry*> pstats;\n typedef std::map<u_int32_t,StatsEntry*>::iterator iterator;\n typedef std::map<u_int32_t,StatsEntry*>::const_iterator\n const_iterator;\n\n /**\n * Convenience function for finding the StatEntry per bundle id\n */\n StatsEntry* find(const Bundle* b);\n\n u_int dropped_;\n mutable pstats pstats_;\n}; // Stats\n\n}" ({) "{" (comment) "/**\n * Statistics to gather per Bundle as described in \n * section 3.7 regarding Queuing Policies\n */" (struct_specifier) "struct StatsEntry\n{\n StatsEntry()\n : p_max_(0.0), mopr_(0.0), lmopr_(0.0) {}\n\n double p_max_;\n double mopr_;\n double lmopr_;\n}; // StatsEntry\n\n/**\n * Container for Bundle statistics, indexed by Bundle identifier.\n * Not thread-safe, requires external locking mechanism.\n */\nclass Stats\n{\npublic:\n /**\n * Default constructor\n */\n Stats()\n : dropped_(0) {}\n\n /**\n * Destructor\n */\n ~Stats();\n\n /**\n * Given a Bundle and a predictability value, update\n * the stats kept for that Bundle\n */\n void update_stats(const Bundle* b, double p);\n\n /**\n * Given a Bundle, return the max predictability for\n * any route over which this Bundle has been forwarded\n */\n double get_p_max(const Bundle* b) const;\n\n /**\n * Given a Bundle, return the predictability favor for\n * the routes over which this Bundle has been forwarded,\n * according to Eq. 7, Section 3.7\n */\n double get_mopr(const Bundle* b) const;\n\n /**\n * Given a Bundle, return the linear predictability favor\n * for the routes over which this Bundle has been forwarded,\n * according to Eq. 8, Section 3.7\n */ \n double get_lmopr(const Bundle* b) const;\n\n /**\n * Bundle is no longer with us, so get rid of its stats\n */\n void drop_bundle(const Bundle* b);\n\n /**\n * Return count of how many Bundle stats have been dropped\n * so far\n */\n u_int dropped() const { return dropped_; }\n\n /**\n * Return count of Bundles currently rep'd in Stats\n */\n size_t size() const { return pstats_.size(); }\n\nprotected:\n typedef std::map<u_int32_t,StatsEntry*> pstats;\n typedef std::map<u_int32_t,StatsEntry*>::iterator iterator;\n typedef std::map<u_int32_t,StatsEntry*>::const_iterator\n const_iterator;\n\n /**\n * Convenience function for finding the StatEntry per bundle id\n */\n StatsEntry* find(const Bundle* b);\n\n u_int dropped_;\n mutable pstats pstats_;\n}" (struct) "struct" (type_identifier) "StatsEntry" (field_declaration_list) "{\n StatsEntry()\n : p_max_(0.0), mopr_(0.0), lmopr_(0.0) {}\n\n double p_max_;\n double mopr_;\n double lmopr_;\n}; // StatsEntry\n\n/**\n * Container for Bundle statistics, indexed by Bundle identifier.\n * Not thread-safe, requires external locking mechanism.\n */\nclass Stats\n{\npublic:\n /**\n * Default constructor\n */\n Stats()\n : dropped_(0) {}\n\n /**\n * Destructor\n */\n ~Stats();\n\n /**\n * Given a Bundle and a predictability value, update\n * the stats kept for that Bundle\n */\n void update_stats(const Bundle* b, double p);\n\n /**\n * Given a Bundle, return the max predictability for\n * any route over which this Bundle has been forwarded\n */\n double get_p_max(const Bundle* b) const;\n\n /**\n * Given a Bundle, return the predictability favor for\n * the routes over which this Bundle has been forwarded,\n * according to Eq. 7, Section 3.7\n */\n double get_mopr(const Bundle* b) const;\n\n /**\n * Given a Bundle, return the linear predictability favor\n * for the routes over which this Bundle has been forwarded,\n * according to Eq. 8, Section 3.7\n */ \n double get_lmopr(const Bundle* b) const;\n\n /**\n * Bundle is no longer with us, so get rid of its stats\n */\n void drop_bundle(const Bundle* b);\n\n /**\n * Return count of how many Bundle stats have been dropped\n * so far\n */\n u_int dropped() const { return dropped_; }\n\n /**\n * Return count of Bundles currently rep'd in Stats\n */\n size_t size() const { return pstats_.size(); }\n\nprotected:\n typedef std::map<u_int32_t,StatsEntry*> pstats;\n typedef std::map<u_int32_t,StatsEntry*>::iterator iterator;\n typedef std::map<u_int32_t,StatsEntry*>::const_iterator\n const_iterator;\n\n /**\n * Convenience function for finding the StatEntry per bundle id\n */\n StatsEntry* find(const Bundle* b);\n\n u_int dropped_;\n mutable pstats pstats_;\n}" ({) "{" (ERROR) "StatsEntry()\n : p_max_(0.0), mopr_(0.0), lmopr_(0.0) {}\n\n double p_max_;\n double mopr_;\n double lmopr_;\n}; // StatsEntry\n\n/**\n * Container for Bundle statistics, indexed by Bundle identifier.\n * Not thread-safe, requires external locking mechanism.\n */\nclass Stats\n{\npublic:\n /**\n * Default constructor\n */\n Stats()\n : dropped_(0) {}\n\n /**\n * Destructor\n */\n ~Stats();\n\n /**\n * Given a Bundle and a predictability value, update\n * the stats kept for that Bundle\n */\n void update_stats(const Bundle* b, double p);\n\n /**\n * Given a Bundle, return the max predictability for\n * any route over which this Bundle has been forwarded\n */\n double get_p_max(const Bundle* b) const;\n\n /**\n * Given a Bundle, return the predictability favor for\n * the routes over which this Bundle has been forwarded,\n * according to Eq. 7, Section 3.7\n */\n double get_mopr(const Bundle* b) const;\n\n /**\n * Given a Bundle, return the linear predictability favor\n * for the routes over which this Bundle has been forwarded,\n * according to Eq. 8, Section 3.7\n */ \n double get_lmopr(const Bundle* b) const;\n\n /**\n * Bundle is no longer with us, so get rid of its stats\n */\n void drop_bundle(const Bundle* b);\n\n /**\n * Return count of how many Bundle stats have been dropped\n * so far\n */\n u_int dropped() const { return dropped_; }\n\n /**\n * Return count of Bundles currently rep'd in Stats\n */\n size_t size() const { return pstats_.size(); }\n\nprotected:\n typedef std::map<u_int32_t,StatsEntry*> pstats;\n typedef std::map<u_int32_t,StatsEntry*>::iterator iterator;\n typedef std::map<u_int32_t,StatsEntry*>::const_iterator\n const_iterator;\n\n /**\n * Convenience function for finding the StatEntry per bundle id\n */\n StatsEntry* find(const Bundle* b);\n\n u_int dropped_;\n mutable pstats pstats_;" (identifier) "StatsEntry" (() "(" (ERROR) ")\n :" ()) ")" (:) ":" (identifier) "p_max_" (() "(" (ERROR) "0.0)," (number_literal) "0.0" ()) ")" (,) "," (identifier) "mopr_" (() "(" (ERROR) "0.0)," (number_literal) "0.0" ()) ")" (,) "," (macro_type_specifier) "lmopr_(0.0) {}\n\n double p_max_;\n double mopr_;\n double lmopr_;\n}; // StatsEntry\n\n/**\n * Container for Bundle statistics, indexed by Bundle identifier.\n * Not thread-safe, requires external locking mechanism.\n */\nclass Stats\n{\npublic:\n /**\n * Default constructor\n */\n Stats()\n : dropped_(0) {}\n\n /**\n * Destructor\n */\n ~Stats();\n\n /**\n * Given a Bundle and a predictability value, update\n * the stats kept for that Bundle\n */\n void update_stats(const Bundle* b, double p);\n\n /**\n * Given a Bundle, return the max predictability for\n * any route over which this Bundle has been forwarded\n */\n double get_p_max(const Bundle* b) const;\n\n /**\n * Given a Bundle, return the predictability favor for\n * the routes over which this Bundle has been forwarded,\n * according to Eq. 7, Section 3.7\n */\n double get_mopr(const Bundle* b) const;\n\n /**\n * Given a Bundle, return the linear predictability favor\n * for the routes over which this Bundle has been forwarded,\n * according to Eq. 8, Section 3.7\n */ \n double get_lmopr(const Bundle* b) const;\n\n /**\n * Bundle is no longer with us, so get rid of its stats\n */\n void drop_bundle(const Bundle* b);\n\n /**\n * Return count of how many Bundle stats have been dropped\n * so far\n */\n u_int dropped() const { return dropped_; }\n\n /**\n * Return count of Bundles currently rep'd in Stats\n */\n size_t size() const { return pstats_.size(); }\n\nprotected:\n typedef std::map<u_int32_t,StatsEntry*> pstats;\n typedef std::map<u_int32_t,StatsEntry*>::iterator iterator;\n typedef std::map<u_int32_t,StatsEntry*>::const_iterator\n const_iterator;\n\n /**\n * Convenience function for finding the StatEntry per bundle id\n */\n StatsEntry* find(const Bundle* b)" (identifier) "lmopr_" (() "(" (ERROR) "0.0) {}\n\n double p_max_;\n double mopr_;\n double lmopr_;\n};" (number_literal) "0.0" ()) ")" ({) "{" (}) "}" (primitive_type) "double" (identifier) "p_max_" (;) ";" (primitive_type) "double" (identifier) "mopr_" (;) ";" (primitive_type) "double" (identifier) "lmopr_" (;) ";" (}) "}" (;) ";" (comment) "// StatsEntry" (comment) "/**\n * Container for Bundle statistics, indexed by Bundle identifier.\n * Not thread-safe, requires external locking mechanism.\n */" (ERROR) "class Stats\n{\npublic:" (type_identifier) "class" (identifier) "Stats" ({) "{" (type_descriptor) "public" (type_identifier) "public" (:) ":" (comment) "/**\n * Default constructor\n */" (ERROR) "Stats()\n :" (type_descriptor) "Stats()" (type_identifier) "Stats" (abstract_function_declarator) "()" (parameter_list) "()" (() "(" ()) ")" (:) ":" (type_descriptor) "dropped_(0) {}\n\n /**\n * Destructor\n */\n ~Stats();\n\n /**\n * Given a Bundle and a predictability value, update\n * the stats kept for that Bundle\n */\n void update_stats(const Bundle* b, double p);\n\n /**\n * Given a Bundle, return the max predictability for\n * any route over which this Bundle has been forwarded\n */\n double get_p_max(const Bundle* b) const;\n\n /**\n * Given a Bundle, return the predictability favor for\n * the routes over which this Bundle has been forwarded,\n * according to Eq. 7, Section 3.7\n */\n double get_mopr(const Bundle* b) const;\n\n /**\n * Given a Bundle, return the linear predictability favor\n * for the routes over which this Bundle has been forwarded,\n * according to Eq. 8, Section 3.7\n */ \n double get_lmopr(const Bundle* b) const;\n\n /**\n * Bundle is no longer with us, so get rid of its stats\n */\n void drop_bundle(const Bundle* b);\n\n /**\n * Return count of how many Bundle stats have been dropped\n * so far\n */\n u_int dropped() const { return dropped_; }\n\n /**\n * Return count of Bundles currently rep'd in Stats\n */\n size_t size() const { return pstats_.size(); }\n\nprotected:\n typedef std::map<u_int32_t,StatsEntry*> pstats;\n typedef std::map<u_int32_t,StatsEntry*>::iterator iterator;\n typedef std::map<u_int32_t,StatsEntry*>::const_iterator\n const_iterator;\n\n /**\n * Convenience function for finding the StatEntry per bundle id\n */\n StatsEntry* find(const Bundle*" (macro_type_specifier) "dropped_(0) {}\n\n /**\n * Destructor\n */\n ~Stats();\n\n /**\n * Given a Bundle and a predictability value, update\n * the stats kept for that Bundle\n */\n void update_stats(const Bundle* b, double p);\n\n /**\n * Given a Bundle, return the max predictability for\n * any route over which this Bundle has been forwarded\n */\n double get_p_max(const Bundle* b) const;\n\n /**\n * Given a Bundle, return the predictability favor for\n * the routes over which this Bundle has been forwarded,\n * according to Eq. 7, Section 3.7\n */\n double get_mopr(const Bundle* b) const;\n\n /**\n * Given a Bundle, return the linear predictability favor\n * for the routes over which this Bundle has been forwarded,\n * according to Eq. 8, Section 3.7\n */ \n double get_lmopr(const Bundle* b) const;\n\n /**\n * Bundle is no longer with us, so get rid of its stats\n */\n void drop_bundle(const Bundle* b);\n\n /**\n * Return count of how many Bundle stats have been dropped\n * so far\n */\n u_int dropped() const { return dropped_; }\n\n /**\n * Return count of Bundles currently rep'd in Stats\n */\n size_t size() const { return pstats_.size()" (identifier) "dropped_" (() "(" (ERROR) "0) {}\n\n /**\n * Destructor\n */\n ~Stats();" (number_literal) "0" ()) ")" ({) "{" (}) "}" (comment) "/**\n * Destructor\n */" (~) "~" (type_descriptor) "Stats()" (type_identifier) "Stats" (abstract_function_declarator) "()" (parameter_list) "()" (() "(" ()) ")" (;) ";" (comment) "/**\n * Given a Bundle and a predictability value, update\n * the stats kept for that Bundle\n */" (ERROR) "void update_stats(const Bundle* b, double p);" (primitive_type) "void" (type_descriptor) "update_stats(const Bundle* b, double p)" (type_identifier) "update_stats" (abstract_function_declarator) "(const Bundle* b, double p)" (parameter_list) "(const Bundle* b, double p)" (() "(" (parameter_declaration) "const Bundle* b" (type_qualifier) "const" (const) "const" (type_identifier) "Bundle" (pointer_declarator) "* b" (*) "*" (identifier) "b" (,) "," (parameter_declaration) "double p" (primitive_type) "double" (identifier) "p" ()) ")" (;) ";" (comment) "/**\n * Given a Bundle, return the max predictability for\n * any route over which this Bundle has been forwarded\n */" (ERROR) "double get_p_max(const Bundle* b) const;" (primitive_type) "double" (type_descriptor) "get_p_max(const Bundle* b)" (type_identifier) "get_p_max" (abstract_function_declarator) "(const Bundle* b)" (parameter_list) "(const Bundle* b)" (() "(" (parameter_declaration) "const Bundle* b" (type_qualifier) "const" (const) "const" (type_identifier) "Bundle" (pointer_declarator) "* b" (*) "*" (identifier) "b" ()) ")" (identifier) "const" (;) ";" (comment) "/**\n * Given a Bundle, return the predictability favor for\n * the routes over which this Bundle has been forwarded,\n * according to Eq. 7, Section 3.7\n */" (ERROR) "double get_mopr(const Bundle* b) const;" (primitive_type) "double" (type_descriptor) "get_mopr(const Bundle* b)" (type_identifier) "get_mopr" (abstract_function_declarator) "(const Bundle* b)" (parameter_list) "(const Bundle* b)" (() "(" (parameter_declaration) "const Bundle* b" (type_qualifier) "const" (const) "const" (type_identifier) "Bundle" (pointer_declarator) "* b" (*) "*" (identifier) "b" ()) ")" (identifier) "const" (;) ";" (comment) "/**\n * Given a Bundle, return the linear predictability favor\n * for the routes over which this Bundle has been forwarded,\n * according to Eq. 8, Section 3.7\n */" (ERROR) "double get_lmopr(const Bundle* b) const;" (primitive_type) "double" (type_descriptor) "get_lmopr(const Bundle* b)" (type_identifier) "get_lmopr" (abstract_function_declarator) "(const Bundle* b)" (parameter_list) "(const Bundle* b)" (() "(" (parameter_declaration) "const Bundle* b" (type_qualifier) "const" (const) "const" (type_identifier) "Bundle" (pointer_declarator) "* b" (*) "*" (identifier) "b" ()) ")" (identifier) "const" (;) ";" (comment) "/**\n * Bundle is no longer with us, so get rid of its stats\n */" (ERROR) "void drop_bundle(const Bundle* b);" (primitive_type) "void" (type_descriptor) "drop_bundle(const Bundle* b)" (type_identifier) "drop_bundle" (abstract_function_declarator) "(const Bundle* b)" (parameter_list) "(const Bundle* b)" (() "(" (parameter_declaration) "const Bundle* b" (type_qualifier) "const" (const) "const" (type_identifier) "Bundle" (pointer_declarator) "* b" (*) "*" (identifier) "b" ()) ")" (;) ";" (comment) "/**\n * Return count of how many Bundle stats have been dropped\n * so far\n */" (ERROR) "u_int dropped() const { return dropped_; }" (type_identifier) "u_int" (type_descriptor) "dropped()" (type_identifier) "dropped" (abstract_function_declarator) "()" (parameter_list) "()" (() "(" ()) ")" (identifier) "const" ({) "{" (return) "return" (type_identifier) "dropped_" (;) ";" (}) "}" (comment) "/**\n * Return count of Bundles currently rep'd in Stats\n */" (ERROR) "size_t size() const { return" (primitive_type) "size_t" (type_descriptor) "size()" (type_identifier) "size" (abstract_function_declarator) "()" (parameter_list) "()" (() "(" ()) ")" (identifier) "const" ({) "{" (return) "return" (type_descriptor) "pstats_" (type_identifier) "pstats_" (ERROR) ".size(" (.) "." (identifier) "size" (() "(" ()) ")" (ERROR) "; }\n\nprotected:\n typedef std::map<u_int32_t,StatsEntry" (;) ";" (}) "}" (identifier) "protected" (:) ":" (typedef) "typedef" (identifier) "std" (:) ":" (:) ":" (identifier) "map" (<) "<" (identifier) "u_int32_t" (,) "," (identifier) "StatsEntry" (abstract_pointer_declarator) "*> pstats;\n typedef std::map<u_int32_t,StatsEntry*>::iterator iterator;\n typedef std::map<u_int32_t,StatsEntry*>::const_iterator\n const_iterator;\n\n /**\n * Convenience function for finding the StatEntry per bundle id\n */\n StatsEntry* find(const Bundle*" (*) "*" (ERROR) "> pstats;\n typedef std::map<u_int32_t,StatsEntry" (>) ">" (identifier) "pstats" (;) ";" (typedef) "typedef" (identifier) "std" (:) ":" (:) ":" (identifier) "map" (<) "<" (identifier) "u_int32_t" (,) "," (identifier) "StatsEntry" (abstract_pointer_declarator) "*>::iterator iterator;\n typedef std::map<u_int32_t,StatsEntry*>::const_iterator\n const_iterator;\n\n /**\n * Convenience function for finding the StatEntry per bundle id\n */\n StatsEntry* find(const Bundle*" (*) "*" (ERROR) ">::iterator iterator;\n typedef std::map<u_int32_t,StatsEntry" (>) ">" (:) ":" (:) ":" (identifier) "iterator" (identifier) "iterator" (;) ";" (typedef) "typedef" (identifier) "std" (:) ":" (:) ":" (identifier) "map" (<) "<" (identifier) "u_int32_t" (,) "," (identifier) "StatsEntry" (abstract_pointer_declarator) "*>::const_iterator\n const_iterator;\n\n /**\n * Convenience function for finding the StatEntry per bundle id\n */\n StatsEntry* find(const Bundle*" (*) "*" (ERROR) ">::const_iterator\n const_iterator;\n\n /**\n * Convenience function for finding the StatEntry per bundle id\n */\n StatsEntry" (>) ">" (:) ":" (:) ":" (identifier) "const_iterator" (identifier) "const_iterator" (;) ";" (comment) "/**\n * Convenience function for finding the StatEntry per bundle id\n */" (identifier) "StatsEntry" (abstract_pointer_declarator) "* find(const Bundle*" (*) "*" (ERROR) "find(" (identifier) "find" (() "(" (type_qualifier) "const" (const) "const" (ERROR) "Bundle" (identifier) "Bundle" (abstract_pointer_declarator) "*" (*) "*" (ERROR) "b" (identifier) "b" ()) ")" (;) ";" (identifier) "u_int" (identifier) "dropped_" (;) ";" (identifier) "mutable" (identifier) "pstats" (identifier) "pstats_" (;) ";" (}) "}" (;) ";" (comment) "// Stats" (}) "}" (expression_statement) ";" (;) ";" (comment) "// namespace prophet" (#endif) "#endif" (comment) "// _PROPHET_STATS_H_"
316
23
{"language": "c", "success": true, "metadata": {"lines": 98, "avg_line_length": 28.5, "nodes": 182, "errors": 0, "source_hash": "f25118172f46d31ce15da010bf9ace11e689e83ce30463bcf061bf5ab5092fcb", "categorized_nodes": 97}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef _PROPHET_STATS_H_\n#define _PROPHET_STATS_H_\n\n#include <map>\n#include \"Bundle.h\"\n\nnamespace prophet\n{\n\n/**\n * Statistics to gather per Bundle as described in \n * section 3.7 regarding Queuing Policies\n */\nstruct StatsEntry\n{\n StatsEntry()\n : p_max_(0.0), mopr_(0.0), lmopr_(0.0) {}\n\n double p_max_;\n double mopr_;\n double lmopr_;\n}; // StatsEntry\n\n/**\n * Container for Bundle statistics, indexed by Bundle identifier.\n * Not thread-safe, requires external locking mechanism.\n */\nclass Stats\n{\npublic:\n /**\n * Default constructor\n */\n Stats()\n : dropped_(0) {}\n\n /**\n * Destructor\n */\n ~Stats();\n\n /**\n * Given a Bundle and a predictability value, update\n * the stats kept for that Bundle\n */\n void update_stats(const Bundle* b, double p);\n\n /**\n * Given a Bundle, return the max predictability for\n * any route over which this Bundle has been forwarded\n */\n double get_p_max(const Bundle* b) const;\n\n /**\n * Given a Bundle, return the predictability favor for\n * the routes over which this Bundle has been forwarded,\n * according to Eq. 7, Section 3.7\n */\n double get_mopr(const Bundle* b) const;\n\n /**\n * Given a Bundle, return the linear predictability favor\n * for the routes over which this Bundle has been forwarded,\n * according to Eq. 8, Section 3.7\n */ \n double get_lmopr(const Bundle* b) const;\n\n /**\n * Bundle is no longer with us, so get rid of its stats\n */\n void drop_bundle(const Bundle* b);\n\n /**\n * Return count of how many Bundle stats have been dropped\n * so far\n */\n u_int dropped() const { return dropped_; }\n\n /**\n * Return count of Bundles currently rep'd in Stats\n */\n size_t size() const { return pstats_.size(); }\n\nprotected:\n typedef std::map<u_int32_t,StatsEntry*> pstats;\n typedef std::map<u_int32_t,StatsEntry*>::iterator iterator;\n typedef std::map<u_int32_t,StatsEntry*>::const_iterator\n const_iterator;\n\n /**\n * Convenience function for finding the StatEntry per bundle id\n */\n StatsEntry* find(const Bundle* b);\n\n u_int dropped_;\n mutable pstats pstats_;\n}; // Stats\n\n}; // namespace prophet\n\n#endif", "parent": null, "children": [1, 2, 3, 6, 9, 12, 181], "start_point": {"row": 16, "column": 0}, "end_point": {"row": 116, "column": 6}}, {"id": 1, "type": "#ifndef", "text": "#ifndef", "parent": 0, "children": [], "start_point": {"row": 16, "column": 0}, "end_point": {"row": 16, "column": 7}}, {"id": 2, "type": "identifier", "text": "_PROPHET_STATS_H_", "parent": 0, "children": [], "start_point": {"row": 16, "column": 8}, "end_point": {"row": 16, "column": 25}}, {"id": 3, "type": "preproc_def", "text": "#define _PROPHET_STATS_H_\n", "parent": 0, "children": [4, 5], "start_point": {"row": 17, "column": 0}, "end_point": {"row": 18, "column": 0}}, {"id": 4, "type": "#define", "text": "#define", "parent": 3, "children": [], "start_point": {"row": 17, "column": 0}, "end_point": {"row": 17, "column": 7}}, {"id": 5, "type": "identifier", "text": "_PROPHET_STATS_H_", "parent": 3, "children": [], "start_point": {"row": 17, "column": 8}, "end_point": {"row": 17, "column": 25}}, {"id": 6, "type": "preproc_include", "text": "#include <map>\n", "parent": 0, "children": [7, 8], "start_point": {"row": 19, "column": 0}, "end_point": {"row": 20, "column": 0}}, {"id": 7, "type": "#include", "text": "#include", "parent": 6, "children": [], "start_point": {"row": 19, "column": 0}, "end_point": {"row": 19, "column": 8}}, {"id": 8, "type": "system_lib_string", "text": "<map>", "parent": 6, "children": [], "start_point": {"row": 19, "column": 9}, "end_point": {"row": 19, "column": 14}}, {"id": 9, "type": "preproc_include", "text": "#include \"Bundle.h\"\n", "parent": 0, "children": [10, 11], "start_point": {"row": 20, "column": 0}, "end_point": {"row": 21, "column": 0}}, {"id": 10, "type": "#include", "text": "#include", "parent": 9, "children": [], "start_point": {"row": 20, "column": 0}, "end_point": {"row": 20, "column": 8}}, {"id": 11, "type": "string_literal", "text": "\"Bundle.h\"", "parent": 9, "children": [], "start_point": {"row": 20, "column": 9}, "end_point": {"row": 20, "column": 19}}, {"id": 12, "type": "function_definition", "text": "namespace prophet\n{\n\n/**\n * Statistics to gather per Bundle as described in \n * section 3.7 regarding Queuing Policies\n */\nstruct StatsEntry\n{\n StatsEntry()\n : p_max_(0.0), mopr_(0.0), lmopr_(0.0) {}\n\n double p_max_;\n double mopr_;\n double lmopr_;\n}; // StatsEntry\n\n/**\n * Container for Bundle statistics, indexed by Bundle identifier.\n * Not thread-safe, requires external locking mechanism.\n */\nclass Stats\n{\npublic:\n /**\n * Default constructor\n */\n Stats()\n : dropped_(0) {}\n\n /**\n * Destructor\n */\n ~Stats();\n\n /**\n * Given a Bundle and a predictability value, update\n * the stats kept for that Bundle\n */\n void update_stats(const Bundle* b, double p);\n\n /**\n * Given a Bundle, return the max predictability for\n * any route over which this Bundle has been forwarded\n */\n double get_p_max(const Bundle* b) const;\n\n /**\n * Given a Bundle, return the predictability favor for\n * the routes over which this Bundle has been forwarded,\n * according to Eq. 7, Section 3.7\n */\n double get_mopr(const Bundle* b) const;\n\n /**\n * Given a Bundle, return the linear predictability favor\n * for the routes over which this Bundle has been forwarded,\n * according to Eq. 8, Section 3.7\n */ \n double get_lmopr(const Bundle* b) const;\n\n /**\n * Bundle is no longer with us, so get rid of its stats\n */\n void drop_bundle(const Bundle* b);\n\n /**\n * Return count of how many Bundle stats have been dropped\n * so far\n */\n u_int dropped() const { return dropped_; }\n\n /**\n * Return count of Bundles currently rep'd in Stats\n */\n size_t size() const { return pstats_.size(); }\n\nprotected:\n typedef std::map<u_int32_t,StatsEntry*> pstats;\n typedef std::map<u_int32_t,StatsEntry*>::iterator iterator;\n typedef std::map<u_int32_t,StatsEntry*>::const_iterator\n const_iterator;\n\n /**\n * Convenience function for finding the StatEntry per bundle id\n */\n StatsEntry* find(const Bundle* b);\n\n u_int dropped_;\n mutable pstats pstats_;\n}; // Stats\n\n}", "parent": 0, "children": [13, 14], "start_point": {"row": 22, "column": 0}, "end_point": {"row": 114, "column": 1}}, {"id": 13, "type": "type_identifier", "text": "namespace", "parent": 12, "children": [], "start_point": {"row": 22, "column": 0}, "end_point": {"row": 22, "column": 9}}, {"id": 14, "type": "identifier", "text": "prophet", "parent": 12, "children": [], "start_point": {"row": 22, "column": 10}, "end_point": {"row": 22, "column": 17}}, {"id": 15, "type": "struct_specifier", "text": "struct StatsEntry\n{\n StatsEntry()\n : p_max_(0.0), mopr_(0.0), lmopr_(0.0) {}\n\n double p_max_;\n double mopr_;\n double lmopr_;\n}; // StatsEntry\n\n/**\n * Container for Bundle statistics, indexed by Bundle identifier.\n * Not thread-safe, requires external locking mechanism.\n */\nclass Stats\n{\npublic:\n /**\n * Default constructor\n */\n Stats()\n : dropped_(0) {}\n\n /**\n * Destructor\n */\n ~Stats();\n\n /**\n * Given a Bundle and a predictability value, update\n * the stats kept for that Bundle\n */\n void update_stats(const Bundle* b, double p);\n\n /**\n * Given a Bundle, return the max predictability for\n * any route over which this Bundle has been forwarded\n */\n double get_p_max(const Bundle* b) const;\n\n /**\n * Given a Bundle, return the predictability favor for\n * the routes over which this Bundle has been forwarded,\n * according to Eq. 7, Section 3.7\n */\n double get_mopr(const Bundle* b) const;\n\n /**\n * Given a Bundle, return the linear predictability favor\n * for the routes over which this Bundle has been forwarded,\n * according to Eq. 8, Section 3.7\n */ \n double get_lmopr(const Bundle* b) const;\n\n /**\n * Bundle is no longer with us, so get rid of its stats\n */\n void drop_bundle(const Bundle* b);\n\n /**\n * Return count of how many Bundle stats have been dropped\n * so far\n */\n u_int dropped() const { return dropped_; }\n\n /**\n * Return count of Bundles currently rep'd in Stats\n */\n size_t size() const { return pstats_.size(); }\n\nprotected:\n typedef std::map<u_int32_t,StatsEntry*> pstats;\n typedef std::map<u_int32_t,StatsEntry*>::iterator iterator;\n typedef std::map<u_int32_t,StatsEntry*>::const_iterator\n const_iterator;\n\n /**\n * Convenience function for finding the StatEntry per bundle id\n */\n StatsEntry* find(const Bundle* b);\n\n u_int dropped_;\n mutable pstats pstats_;\n}", "parent": 12, "children": [16, 17], "start_point": {"row": 29, "column": 0}, "end_point": {"row": 112, "column": 1}}, {"id": 16, "type": "struct", "text": "struct", "parent": 15, "children": [], "start_point": {"row": 29, "column": 0}, "end_point": {"row": 29, "column": 6}}, {"id": 17, "type": "type_identifier", "text": "StatsEntry", "parent": 15, "children": [], "start_point": {"row": 29, "column": 7}, "end_point": {"row": 29, "column": 17}}, {"id": 18, "type": "ERROR", "text": "StatsEntry()\n : p_max_(0.0), mopr_(0.0), lmopr_(0.0) {}\n\n double p_max_;\n double mopr_;\n double lmopr_;\n}; // StatsEntry\n\n/**\n * Container for Bundle statistics, indexed by Bundle identifier.\n * Not thread-safe, requires external locking mechanism.\n */\nclass Stats\n{\npublic:\n /**\n * Default constructor\n */\n Stats()\n : dropped_(0) {}\n\n /**\n * Destructor\n */\n ~Stats();\n\n /**\n * Given a Bundle and a predictability value, update\n * the stats kept for that Bundle\n */\n void update_stats(const Bundle* b, double p);\n\n /**\n * Given a Bundle, return the max predictability for\n * any route over which this Bundle has been forwarded\n */\n double get_p_max(const Bundle* b) const;\n\n /**\n * Given a Bundle, return the predictability favor for\n * the routes over which this Bundle has been forwarded,\n * according to Eq. 7, Section 3.7\n */\n double get_mopr(const Bundle* b) const;\n\n /**\n * Given a Bundle, return the linear predictability favor\n * for the routes over which this Bundle has been forwarded,\n * according to Eq. 8, Section 3.7\n */ \n double get_lmopr(const Bundle* b) const;\n\n /**\n * Bundle is no longer with us, so get rid of its stats\n */\n void drop_bundle(const Bundle* b);\n\n /**\n * Return count of how many Bundle stats have been dropped\n * so far\n */\n u_int dropped() const { return dropped_; }\n\n /**\n * Return count of Bundles currently rep'd in Stats\n */\n size_t size() const { return pstats_.size(); }\n\nprotected:\n typedef std::map<u_int32_t,StatsEntry*> pstats;\n typedef std::map<u_int32_t,StatsEntry*>::iterator iterator;\n typedef std::map<u_int32_t,StatsEntry*>::const_iterator\n const_iterator;\n\n /**\n * Convenience function for finding the StatEntry per bundle id\n */\n StatsEntry* find(const Bundle* b);\n\n u_int dropped_;\n mutable pstats pstats_;", "parent": 15, "children": [19, 20, 21, 22, 24, 25, 27, 176, 177, 178, 179, 180], "start_point": {"row": 31, "column": 4}, "end_point": {"row": 111, "column": 27}}, {"id": 19, "type": "identifier", "text": "StatsEntry", "parent": 18, "children": [], "start_point": {"row": 31, "column": 4}, "end_point": {"row": 31, "column": 14}}, {"id": 20, "type": "ERROR", "text": ")\n :", "parent": 18, "children": [], "start_point": {"row": 31, "column": 15}, "end_point": {"row": 32, "column": 9}}, {"id": 21, "type": "identifier", "text": "p_max_", "parent": 18, "children": [], "start_point": {"row": 32, "column": 10}, "end_point": {"row": 32, "column": 16}}, {"id": 22, "type": "ERROR", "text": "0.0),", "parent": 18, "children": [23], "start_point": {"row": 32, "column": 17}, "end_point": {"row": 32, "column": 22}}, {"id": 23, "type": "number_literal", "text": "0.0", "parent": 22, "children": [], "start_point": {"row": 32, "column": 17}, "end_point": {"row": 32, "column": 20}}, {"id": 24, "type": "identifier", "text": "mopr_", "parent": 18, "children": [], "start_point": {"row": 32, "column": 23}, "end_point": {"row": 32, "column": 28}}, {"id": 25, "type": "ERROR", "text": "0.0),", "parent": 18, "children": [26], "start_point": {"row": 32, "column": 29}, "end_point": {"row": 32, "column": 34}}, {"id": 26, "type": "number_literal", "text": "0.0", "parent": 25, "children": [], "start_point": {"row": 32, "column": 29}, "end_point": {"row": 32, "column": 32}}, {"id": 27, "type": "macro_type_specifier", "text": "lmopr_(0.0) {}\n\n double p_max_;\n double mopr_;\n double lmopr_;\n}; // StatsEntry\n\n/**\n * Container for Bundle statistics, indexed by Bundle identifier.\n * Not thread-safe, requires external locking mechanism.\n */\nclass Stats\n{\npublic:\n /**\n * Default constructor\n */\n Stats()\n : dropped_(0) {}\n\n /**\n * Destructor\n */\n ~Stats();\n\n /**\n * Given a Bundle and a predictability value, update\n * the stats kept for that Bundle\n */\n void update_stats(const Bundle* b, double p);\n\n /**\n * Given a Bundle, return the max predictability for\n * any route over which this Bundle has been forwarded\n */\n double get_p_max(const Bundle* b) const;\n\n /**\n * Given a Bundle, return the predictability favor for\n * the routes over which this Bundle has been forwarded,\n * according to Eq. 7, Section 3.7\n */\n double get_mopr(const Bundle* b) const;\n\n /**\n * Given a Bundle, return the linear predictability favor\n * for the routes over which this Bundle has been forwarded,\n * according to Eq. 8, Section 3.7\n */ \n double get_lmopr(const Bundle* b) const;\n\n /**\n * Bundle is no longer with us, so get rid of its stats\n */\n void drop_bundle(const Bundle* b);\n\n /**\n * Return count of how many Bundle stats have been dropped\n * so far\n */\n u_int dropped() const { return dropped_; }\n\n /**\n * Return count of Bundles currently rep'd in Stats\n */\n size_t size() const { return pstats_.size(); }\n\nprotected:\n typedef std::map<u_int32_t,StatsEntry*> pstats;\n typedef std::map<u_int32_t,StatsEntry*>::iterator iterator;\n typedef std::map<u_int32_t,StatsEntry*>::const_iterator\n const_iterator;\n\n /**\n * Convenience function for finding the StatEntry per bundle id\n */\n StatsEntry* find(const Bundle* b)", "parent": 18, "children": [28, 29, 37, 39, 44, 174], "start_point": {"row": 32, "column": 35}, "end_point": {"row": 108, "column": 37}}, {"id": 28, "type": "identifier", "text": "lmopr_", "parent": 27, "children": [], "start_point": {"row": 32, "column": 35}, "end_point": {"row": 32, "column": 41}}, {"id": 29, "type": "ERROR", "text": "0.0) {}\n\n double p_max_;\n double mopr_;\n double lmopr_;\n};", "parent": 27, "children": [30, 31, 32, 33, 34, 35, 36], "start_point": {"row": 32, "column": 42}, "end_point": {"row": 37, "column": 2}}, {"id": 30, "type": "number_literal", "text": "0.0", "parent": 29, "children": [], "start_point": {"row": 32, "column": 42}, "end_point": {"row": 32, "column": 45}}, {"id": 31, "type": "primitive_type", "text": "double", "parent": 29, "children": [], "start_point": {"row": 34, "column": 4}, "end_point": {"row": 34, "column": 10}}, {"id": 32, "type": "identifier", "text": "p_max_", "parent": 29, "children": [], "start_point": {"row": 34, "column": 11}, "end_point": {"row": 34, "column": 17}}, {"id": 33, "type": "primitive_type", "text": "double", "parent": 29, "children": [], "start_point": {"row": 35, "column": 4}, "end_point": {"row": 35, "column": 10}}, {"id": 34, "type": "identifier", "text": "mopr_", "parent": 29, "children": [], "start_point": {"row": 35, "column": 11}, "end_point": {"row": 35, "column": 16}}, {"id": 35, "type": "primitive_type", "text": "double", "parent": 29, "children": [], "start_point": {"row": 36, "column": 4}, "end_point": {"row": 36, "column": 10}}, {"id": 36, "type": "identifier", "text": "lmopr_", "parent": 29, "children": [], "start_point": {"row": 36, "column": 11}, "end_point": {"row": 36, "column": 17}}, {"id": 37, "type": "ERROR", "text": "class Stats\n{\npublic:", "parent": 27, "children": [38], "start_point": {"row": 43, "column": 0}, "end_point": {"row": 45, "column": 7}}, {"id": 38, "type": "identifier", "text": "Stats", "parent": 37, "children": [], "start_point": {"row": 43, "column": 6}, "end_point": {"row": 43, "column": 11}}, {"id": 39, "type": "ERROR", "text": "Stats()\n :", "parent": 27, "children": [40], "start_point": {"row": 49, "column": 4}, "end_point": {"row": 50, "column": 9}}, {"id": 40, "type": "type_descriptor", "text": "Stats()", "parent": 39, "children": [41, 42], "start_point": {"row": 49, "column": 4}, "end_point": {"row": 49, "column": 11}}, {"id": 41, "type": "type_identifier", "text": "Stats", "parent": 40, "children": [], "start_point": {"row": 49, "column": 4}, "end_point": {"row": 49, "column": 9}}, {"id": 42, "type": "abstract_function_declarator", "text": "()", "parent": 40, "children": [43], "start_point": {"row": 49, "column": 9}, "end_point": {"row": 49, "column": 11}}, {"id": 43, "type": "parameter_list", "text": "()", "parent": 42, "children": [], "start_point": {"row": 49, "column": 9}, "end_point": {"row": 49, "column": 11}}, {"id": 44, "type": "type_descriptor", "text": "dropped_(0) {}\n\n /**\n * Destructor\n */\n ~Stats();\n\n /**\n * Given a Bundle and a predictability value, update\n * the stats kept for that Bundle\n */\n void update_stats(const Bundle* b, double p);\n\n /**\n * Given a Bundle, return the max predictability for\n * any route over which this Bundle has been forwarded\n */\n double get_p_max(const Bundle* b) const;\n\n /**\n * Given a Bundle, return the predictability favor for\n * the routes over which this Bundle has been forwarded,\n * according to Eq. 7, Section 3.7\n */\n double get_mopr(const Bundle* b) const;\n\n /**\n * Given a Bundle, return the linear predictability favor\n * for the routes over which this Bundle has been forwarded,\n * according to Eq. 8, Section 3.7\n */ \n double get_lmopr(const Bundle* b) const;\n\n /**\n * Bundle is no longer with us, so get rid of its stats\n */\n void drop_bundle(const Bundle* b);\n\n /**\n * Return count of how many Bundle stats have been dropped\n * so far\n */\n u_int dropped() const { return dropped_; }\n\n /**\n * Return count of Bundles currently rep'd in Stats\n */\n size_t size() const { return pstats_.size(); }\n\nprotected:\n typedef std::map<u_int32_t,StatsEntry*> pstats;\n typedef std::map<u_int32_t,StatsEntry*>::iterator iterator;\n typedef std::map<u_int32_t,StatsEntry*>::const_iterator\n const_iterator;\n\n /**\n * Convenience function for finding the StatEntry per bundle id\n */\n StatsEntry* find(const Bundle*", "parent": 27, "children": [45, 129, 136], "start_point": {"row": 50, "column": 10}, "end_point": {"row": 108, "column": 34}}, {"id": 45, "type": "macro_type_specifier", "text": "dropped_(0) {}\n\n /**\n * Destructor\n */\n ~Stats();\n\n /**\n * Given a Bundle and a predictability value, update\n * the stats kept for that Bundle\n */\n void update_stats(const Bundle* b, double p);\n\n /**\n * Given a Bundle, return the max predictability for\n * any route over which this Bundle has been forwarded\n */\n double get_p_max(const Bundle* b) const;\n\n /**\n * Given a Bundle, return the predictability favor for\n * the routes over which this Bundle has been forwarded,\n * according to Eq. 7, Section 3.7\n */\n double get_mopr(const Bundle* b) const;\n\n /**\n * Given a Bundle, return the linear predictability favor\n * for the routes over which this Bundle has been forwarded,\n * according to Eq. 8, Section 3.7\n */ \n double get_lmopr(const Bundle* b) const;\n\n /**\n * Bundle is no longer with us, so get rid of its stats\n */\n void drop_bundle(const Bundle* b);\n\n /**\n * Return count of how many Bundle stats have been dropped\n * so far\n */\n u_int dropped() const { return dropped_; }\n\n /**\n * Return count of Bundles currently rep'd in Stats\n */\n size_t size() const { return pstats_.size()", "parent": 44, "children": [46, 47, 54, 68, 79, 90, 101, 112, 119, 125, 127], "start_point": {"row": 50, "column": 10}, "end_point": {"row": 97, "column": 47}}, {"id": 46, "type": "identifier", "text": "dropped_", "parent": 45, "children": [], "start_point": {"row": 50, "column": 10}, "end_point": {"row": 50, "column": 18}}, {"id": 47, "type": "ERROR", "text": "0) {}\n\n /**\n * Destructor\n */\n ~Stats();", "parent": 45, "children": [48, 49, 50], "start_point": {"row": 50, "column": 19}, "end_point": {"row": 55, "column": 13}}, {"id": 48, "type": "number_literal", "text": "0", "parent": 47, "children": [], "start_point": {"row": 50, "column": 19}, "end_point": {"row": 50, "column": 20}}, {"id": 49, "type": "~", "text": "~", "parent": 47, "children": [], "start_point": {"row": 55, "column": 4}, "end_point": {"row": 55, "column": 5}}, {"id": 50, "type": "type_descriptor", "text": "Stats()", "parent": 47, "children": [51, 52], "start_point": {"row": 55, "column": 5}, "end_point": {"row": 55, "column": 12}}, {"id": 51, "type": "type_identifier", "text": "Stats", "parent": 50, "children": [], "start_point": {"row": 55, "column": 5}, "end_point": {"row": 55, "column": 10}}, {"id": 52, "type": "abstract_function_declarator", "text": "()", "parent": 50, "children": [53], "start_point": {"row": 55, "column": 10}, "end_point": {"row": 55, "column": 12}}, {"id": 53, "type": "parameter_list", "text": "()", "parent": 52, "children": [], "start_point": {"row": 55, "column": 10}, "end_point": {"row": 55, "column": 12}}, {"id": 54, "type": "ERROR", "text": "void update_stats(const Bundle* b, double p);", "parent": 45, "children": [55, 56], "start_point": {"row": 61, "column": 4}, "end_point": {"row": 61, "column": 49}}, {"id": 55, "type": "primitive_type", "text": "void", "parent": 54, "children": [], "start_point": {"row": 61, "column": 4}, "end_point": {"row": 61, "column": 8}}, {"id": 56, "type": "type_descriptor", "text": "update_stats(const Bundle* b, double p)", "parent": 54, "children": [57, 58], "start_point": {"row": 61, "column": 9}, "end_point": {"row": 61, "column": 48}}, {"id": 57, "type": "type_identifier", "text": "update_stats", "parent": 56, "children": [], "start_point": {"row": 61, "column": 9}, "end_point": {"row": 61, "column": 21}}, {"id": 58, "type": "abstract_function_declarator", "text": "(const Bundle* b, double p)", "parent": 56, "children": [59], "start_point": {"row": 61, "column": 21}, "end_point": {"row": 61, "column": 48}}, {"id": 59, "type": "parameter_list", "text": "(const Bundle* b, double p)", "parent": 58, "children": [60, 65], "start_point": {"row": 61, "column": 21}, "end_point": {"row": 61, "column": 48}}, {"id": 60, "type": "parameter_declaration", "text": "const Bundle* b", "parent": 59, "children": [61, 62], "start_point": {"row": 61, "column": 22}, "end_point": {"row": 61, "column": 37}}, {"id": 61, "type": "type_identifier", "text": "Bundle", "parent": 60, "children": [], "start_point": {"row": 61, "column": 28}, "end_point": {"row": 61, "column": 34}}, {"id": 62, "type": "pointer_declarator", "text": "* b", "parent": 60, "children": [63, 64], "start_point": {"row": 61, "column": 34}, "end_point": {"row": 61, "column": 37}}, {"id": 63, "type": "*", "text": "*", "parent": 62, "children": [], "start_point": {"row": 61, "column": 34}, "end_point": {"row": 61, "column": 35}}, {"id": 64, "type": "identifier", "text": "b", "parent": 62, "children": [], "start_point": {"row": 61, "column": 36}, "end_point": {"row": 61, "column": 37}}, {"id": 65, "type": "parameter_declaration", "text": "double p", "parent": 59, "children": [66, 67], "start_point": {"row": 61, "column": 39}, "end_point": {"row": 61, "column": 47}}, {"id": 66, "type": "primitive_type", "text": "double", "parent": 65, "children": [], "start_point": {"row": 61, "column": 39}, "end_point": {"row": 61, "column": 45}}, {"id": 67, "type": "identifier", "text": "p", "parent": 65, "children": [], "start_point": {"row": 61, "column": 46}, "end_point": {"row": 61, "column": 47}}, {"id": 68, "type": "ERROR", "text": "double get_p_max(const Bundle* b) const;", "parent": 45, "children": [69, 70], "start_point": {"row": 67, "column": 4}, "end_point": {"row": 67, "column": 44}}, {"id": 69, "type": "primitive_type", "text": "double", "parent": 68, "children": [], "start_point": {"row": 67, "column": 4}, "end_point": {"row": 67, "column": 10}}, {"id": 70, "type": "type_descriptor", "text": "get_p_max(const Bundle* b)", "parent": 68, "children": [71, 72], "start_point": {"row": 67, "column": 11}, "end_point": {"row": 67, "column": 37}}, {"id": 71, "type": "type_identifier", "text": "get_p_max", "parent": 70, "children": [], "start_point": {"row": 67, "column": 11}, "end_point": {"row": 67, "column": 20}}, {"id": 72, "type": "abstract_function_declarator", "text": "(const Bundle* b)", "parent": 70, "children": [73], "start_point": {"row": 67, "column": 20}, "end_point": {"row": 67, "column": 37}}, {"id": 73, "type": "parameter_list", "text": "(const Bundle* b)", "parent": 72, "children": [74], "start_point": {"row": 67, "column": 20}, "end_point": {"row": 67, "column": 37}}, {"id": 74, "type": "parameter_declaration", "text": "const Bundle* b", "parent": 73, "children": [75, 76], "start_point": {"row": 67, "column": 21}, "end_point": {"row": 67, "column": 36}}, {"id": 75, "type": "type_identifier", "text": "Bundle", "parent": 74, "children": [], "start_point": {"row": 67, "column": 27}, "end_point": {"row": 67, "column": 33}}, {"id": 76, "type": "pointer_declarator", "text": "* b", "parent": 74, "children": [77, 78], "start_point": {"row": 67, "column": 33}, "end_point": {"row": 67, "column": 36}}, {"id": 77, "type": "*", "text": "*", "parent": 76, "children": [], "start_point": {"row": 67, "column": 33}, "end_point": {"row": 67, "column": 34}}, {"id": 78, "type": "identifier", "text": "b", "parent": 76, "children": [], "start_point": {"row": 67, "column": 35}, "end_point": {"row": 67, "column": 36}}, {"id": 79, "type": "ERROR", "text": "double get_mopr(const Bundle* b) const;", "parent": 45, "children": [80, 81], "start_point": {"row": 74, "column": 4}, "end_point": {"row": 74, "column": 43}}, {"id": 80, "type": "primitive_type", "text": "double", "parent": 79, "children": [], "start_point": {"row": 74, "column": 4}, "end_point": {"row": 74, "column": 10}}, {"id": 81, "type": "type_descriptor", "text": "get_mopr(const Bundle* b)", "parent": 79, "children": [82, 83], "start_point": {"row": 74, "column": 11}, "end_point": {"row": 74, "column": 36}}, {"id": 82, "type": "type_identifier", "text": "get_mopr", "parent": 81, "children": [], "start_point": {"row": 74, "column": 11}, "end_point": {"row": 74, "column": 19}}, {"id": 83, "type": "abstract_function_declarator", "text": "(const Bundle* b)", "parent": 81, "children": [84], "start_point": {"row": 74, "column": 19}, "end_point": {"row": 74, "column": 36}}, {"id": 84, "type": "parameter_list", "text": "(const Bundle* b)", "parent": 83, "children": [85], "start_point": {"row": 74, "column": 19}, "end_point": {"row": 74, "column": 36}}, {"id": 85, "type": "parameter_declaration", "text": "const Bundle* b", "parent": 84, "children": [86, 87], "start_point": {"row": 74, "column": 20}, "end_point": {"row": 74, "column": 35}}, {"id": 86, "type": "type_identifier", "text": "Bundle", "parent": 85, "children": [], "start_point": {"row": 74, "column": 26}, "end_point": {"row": 74, "column": 32}}, {"id": 87, "type": "pointer_declarator", "text": "* b", "parent": 85, "children": [88, 89], "start_point": {"row": 74, "column": 32}, "end_point": {"row": 74, "column": 35}}, {"id": 88, "type": "*", "text": "*", "parent": 87, "children": [], "start_point": {"row": 74, "column": 32}, "end_point": {"row": 74, "column": 33}}, {"id": 89, "type": "identifier", "text": "b", "parent": 87, "children": [], "start_point": {"row": 74, "column": 34}, "end_point": {"row": 74, "column": 35}}, {"id": 90, "type": "ERROR", "text": "double get_lmopr(const Bundle* b) const;", "parent": 45, "children": [91, 92], "start_point": {"row": 81, "column": 4}, "end_point": {"row": 81, "column": 44}}, {"id": 91, "type": "primitive_type", "text": "double", "parent": 90, "children": [], "start_point": {"row": 81, "column": 4}, "end_point": {"row": 81, "column": 10}}, {"id": 92, "type": "type_descriptor", "text": "get_lmopr(const Bundle* b)", "parent": 90, "children": [93, 94], "start_point": {"row": 81, "column": 11}, "end_point": {"row": 81, "column": 37}}, {"id": 93, "type": "type_identifier", "text": "get_lmopr", "parent": 92, "children": [], "start_point": {"row": 81, "column": 11}, "end_point": {"row": 81, "column": 20}}, {"id": 94, "type": "abstract_function_declarator", "text": "(const Bundle* b)", "parent": 92, "children": [95], "start_point": {"row": 81, "column": 20}, "end_point": {"row": 81, "column": 37}}, {"id": 95, "type": "parameter_list", "text": "(const Bundle* b)", "parent": 94, "children": [96], "start_point": {"row": 81, "column": 20}, "end_point": {"row": 81, "column": 37}}, {"id": 96, "type": "parameter_declaration", "text": "const Bundle* b", "parent": 95, "children": [97, 98], "start_point": {"row": 81, "column": 21}, "end_point": {"row": 81, "column": 36}}, {"id": 97, "type": "type_identifier", "text": "Bundle", "parent": 96, "children": [], "start_point": {"row": 81, "column": 27}, "end_point": {"row": 81, "column": 33}}, {"id": 98, "type": "pointer_declarator", "text": "* b", "parent": 96, "children": [99, 100], "start_point": {"row": 81, "column": 33}, "end_point": {"row": 81, "column": 36}}, {"id": 99, "type": "*", "text": "*", "parent": 98, "children": [], "start_point": {"row": 81, "column": 33}, "end_point": {"row": 81, "column": 34}}, {"id": 100, "type": "identifier", "text": "b", "parent": 98, "children": [], "start_point": {"row": 81, "column": 35}, "end_point": {"row": 81, "column": 36}}, {"id": 101, "type": "ERROR", "text": "void drop_bundle(const Bundle* b);", "parent": 45, "children": [102, 103], "start_point": {"row": 86, "column": 4}, "end_point": {"row": 86, "column": 38}}, {"id": 102, "type": "primitive_type", "text": "void", "parent": 101, "children": [], "start_point": {"row": 86, "column": 4}, "end_point": {"row": 86, "column": 8}}, {"id": 103, "type": "type_descriptor", "text": "drop_bundle(const Bundle* b)", "parent": 101, "children": [104, 105], "start_point": {"row": 86, "column": 9}, "end_point": {"row": 86, "column": 37}}, {"id": 104, "type": "type_identifier", "text": "drop_bundle", "parent": 103, "children": [], "start_point": {"row": 86, "column": 9}, "end_point": {"row": 86, "column": 20}}, {"id": 105, "type": "abstract_function_declarator", "text": "(const Bundle* b)", "parent": 103, "children": [106], "start_point": {"row": 86, "column": 20}, "end_point": {"row": 86, "column": 37}}, {"id": 106, "type": "parameter_list", "text": "(const Bundle* b)", "parent": 105, "children": [107], "start_point": {"row": 86, "column": 20}, "end_point": {"row": 86, "column": 37}}, {"id": 107, "type": "parameter_declaration", "text": "const Bundle* b", "parent": 106, "children": [108, 109], "start_point": {"row": 86, "column": 21}, "end_point": {"row": 86, "column": 36}}, {"id": 108, "type": "type_identifier", "text": "Bundle", "parent": 107, "children": [], "start_point": {"row": 86, "column": 27}, "end_point": {"row": 86, "column": 33}}, {"id": 109, "type": "pointer_declarator", "text": "* b", "parent": 107, "children": [110, 111], "start_point": {"row": 86, "column": 33}, "end_point": {"row": 86, "column": 36}}, {"id": 110, "type": "*", "text": "*", "parent": 109, "children": [], "start_point": {"row": 86, "column": 33}, "end_point": {"row": 86, "column": 34}}, {"id": 111, "type": "identifier", "text": "b", "parent": 109, "children": [], "start_point": {"row": 86, "column": 35}, "end_point": {"row": 86, "column": 36}}, {"id": 112, "type": "ERROR", "text": "u_int dropped() const { return dropped_; }", "parent": 45, "children": [113, 114, 118], "start_point": {"row": 92, "column": 4}, "end_point": {"row": 92, "column": 46}}, {"id": 113, "type": "type_identifier", "text": "u_int", "parent": 112, "children": [], "start_point": {"row": 92, "column": 4}, "end_point": {"row": 92, "column": 9}}, {"id": 114, "type": "type_descriptor", "text": "dropped()", "parent": 112, "children": [115, 116], "start_point": {"row": 92, "column": 10}, "end_point": {"row": 92, "column": 19}}, {"id": 115, "type": "type_identifier", "text": "dropped", "parent": 114, "children": [], "start_point": {"row": 92, "column": 10}, "end_point": {"row": 92, "column": 17}}, {"id": 116, "type": "abstract_function_declarator", "text": "()", "parent": 114, "children": [117], "start_point": {"row": 92, "column": 17}, "end_point": {"row": 92, "column": 19}}, {"id": 117, "type": "parameter_list", "text": "()", "parent": 116, "children": [], "start_point": {"row": 92, "column": 17}, "end_point": {"row": 92, "column": 19}}, {"id": 118, "type": "type_identifier", "text": "dropped_", "parent": 112, "children": [], "start_point": {"row": 92, "column": 35}, "end_point": {"row": 92, "column": 43}}, {"id": 119, "type": "ERROR", "text": "size_t size() const { return", "parent": 45, "children": [120, 121], "start_point": {"row": 97, "column": 4}, "end_point": {"row": 97, "column": 32}}, {"id": 120, "type": "primitive_type", "text": "size_t", "parent": 119, "children": [], "start_point": {"row": 97, "column": 4}, "end_point": {"row": 97, "column": 10}}, {"id": 121, "type": "type_descriptor", "text": "size()", "parent": 119, "children": [122, 123], "start_point": {"row": 97, "column": 11}, "end_point": {"row": 97, "column": 17}}, {"id": 122, "type": "type_identifier", "text": "size", "parent": 121, "children": [], "start_point": {"row": 97, "column": 11}, "end_point": {"row": 97, "column": 15}}, {"id": 123, "type": "abstract_function_declarator", "text": "()", "parent": 121, "children": [124], "start_point": {"row": 97, "column": 15}, "end_point": {"row": 97, "column": 17}}, {"id": 124, "type": "parameter_list", "text": "()", "parent": 123, "children": [], "start_point": {"row": 97, "column": 15}, "end_point": {"row": 97, "column": 17}}, {"id": 125, "type": "type_descriptor", "text": "pstats_", "parent": 45, "children": [126], "start_point": {"row": 97, "column": 33}, "end_point": {"row": 97, "column": 40}}, {"id": 126, "type": "type_identifier", "text": "pstats_", "parent": 125, "children": [], "start_point": {"row": 97, "column": 33}, "end_point": {"row": 97, "column": 40}}, {"id": 127, "type": "ERROR", "text": ".size(", "parent": 45, "children": [128], "start_point": {"row": 97, "column": 40}, "end_point": {"row": 97, "column": 46}}, {"id": 128, "type": "identifier", "text": "size", "parent": 127, "children": [], "start_point": {"row": 97, "column": 41}, "end_point": {"row": 97, "column": 45}}, {"id": 129, "type": "ERROR", "text": "; }\n\nprotected:\n typedef std::map<u_int32_t,StatsEntry", "parent": 44, "children": [130, 131, 132, 133, 134, 135], "start_point": {"row": 97, "column": 47}, "end_point": {"row": 100, "column": 41}}, {"id": 130, "type": "typedef", "text": "typedef", "parent": 129, "children": [], "start_point": {"row": 100, "column": 4}, "end_point": {"row": 100, "column": 11}}, {"id": 131, "type": "identifier", "text": "std", "parent": 129, "children": [], "start_point": {"row": 100, "column": 12}, "end_point": {"row": 100, "column": 15}}, {"id": 132, "type": "identifier", "text": "map", "parent": 129, "children": [], "start_point": {"row": 100, "column": 17}, "end_point": {"row": 100, "column": 20}}, {"id": 133, "type": "<", "text": "<", "parent": 129, "children": [], "start_point": {"row": 100, "column": 20}, "end_point": {"row": 100, "column": 21}}, {"id": 134, "type": "identifier", "text": "u_int32_t", "parent": 129, "children": [], "start_point": {"row": 100, "column": 21}, "end_point": {"row": 100, "column": 30}}, {"id": 135, "type": "identifier", "text": "StatsEntry", "parent": 129, "children": [], "start_point": {"row": 100, "column": 31}, "end_point": {"row": 100, "column": 41}}, {"id": 136, "type": "abstract_pointer_declarator", "text": "*> pstats;\n typedef std::map<u_int32_t,StatsEntry*>::iterator iterator;\n typedef std::map<u_int32_t,StatsEntry*>::const_iterator\n const_iterator;\n\n /**\n * Convenience function for finding the StatEntry per bundle id\n */\n StatsEntry* find(const Bundle*", "parent": 44, "children": [137, 138, 147], "start_point": {"row": 100, "column": 41}, "end_point": {"row": 108, "column": 34}}, {"id": 137, "type": "*", "text": "*", "parent": 136, "children": [], "start_point": {"row": 100, "column": 41}, "end_point": {"row": 100, "column": 42}}, {"id": 138, "type": "ERROR", "text": "> pstats;\n typedef std::map<u_int32_t,StatsEntry", "parent": 136, "children": [139, 140, 141, 142, 143, 144, 145, 146], "start_point": {"row": 100, "column": 42}, "end_point": {"row": 101, "column": 41}}, {"id": 139, "type": ">", "text": ">", "parent": 138, "children": [], "start_point": {"row": 100, "column": 42}, "end_point": {"row": 100, "column": 43}}, {"id": 140, "type": "identifier", "text": "pstats", "parent": 138, "children": [], "start_point": {"row": 100, "column": 44}, "end_point": {"row": 100, "column": 50}}, {"id": 141, "type": "typedef", "text": "typedef", "parent": 138, "children": [], "start_point": {"row": 101, "column": 4}, "end_point": {"row": 101, "column": 11}}, {"id": 142, "type": "identifier", "text": "std", "parent": 138, "children": [], "start_point": {"row": 101, "column": 12}, "end_point": {"row": 101, "column": 15}}, {"id": 143, "type": "identifier", "text": "map", "parent": 138, "children": [], "start_point": {"row": 101, "column": 17}, "end_point": {"row": 101, "column": 20}}, {"id": 144, "type": "<", "text": "<", "parent": 138, "children": [], "start_point": {"row": 101, "column": 20}, "end_point": {"row": 101, "column": 21}}, {"id": 145, "type": "identifier", "text": "u_int32_t", "parent": 138, "children": [], "start_point": {"row": 101, "column": 21}, "end_point": {"row": 101, "column": 30}}, {"id": 146, "type": "identifier", "text": "StatsEntry", "parent": 138, "children": [], "start_point": {"row": 101, "column": 31}, "end_point": {"row": 101, "column": 41}}, {"id": 147, "type": "abstract_pointer_declarator", "text": "*>::iterator iterator;\n typedef std::map<u_int32_t,StatsEntry*>::const_iterator\n const_iterator;\n\n /**\n * Convenience function for finding the StatEntry per bundle id\n */\n StatsEntry* find(const Bundle*", "parent": 136, "children": [148, 149, 159], "start_point": {"row": 101, "column": 41}, "end_point": {"row": 108, "column": 34}}, {"id": 148, "type": "*", "text": "*", "parent": 147, "children": [], "start_point": {"row": 101, "column": 41}, "end_point": {"row": 101, "column": 42}}, {"id": 149, "type": "ERROR", "text": ">::iterator iterator;\n typedef std::map<u_int32_t,StatsEntry", "parent": 147, "children": [150, 151, 152, 153, 154, 155, 156, 157, 158], "start_point": {"row": 101, "column": 42}, "end_point": {"row": 102, "column": 41}}, {"id": 150, "type": ">", "text": ">", "parent": 149, "children": [], "start_point": {"row": 101, "column": 42}, "end_point": {"row": 101, "column": 43}}, {"id": 151, "type": "identifier", "text": "iterator", "parent": 149, "children": [], "start_point": {"row": 101, "column": 45}, "end_point": {"row": 101, "column": 53}}, {"id": 152, "type": "identifier", "text": "iterator", "parent": 149, "children": [], "start_point": {"row": 101, "column": 54}, "end_point": {"row": 101, "column": 62}}, {"id": 153, "type": "typedef", "text": "typedef", "parent": 149, "children": [], "start_point": {"row": 102, "column": 4}, "end_point": {"row": 102, "column": 11}}, {"id": 154, "type": "identifier", "text": "std", "parent": 149, "children": [], "start_point": {"row": 102, "column": 12}, "end_point": {"row": 102, "column": 15}}, {"id": 155, "type": "identifier", "text": "map", "parent": 149, "children": [], "start_point": {"row": 102, "column": 17}, "end_point": {"row": 102, "column": 20}}, {"id": 156, "type": "<", "text": "<", "parent": 149, "children": [], "start_point": {"row": 102, "column": 20}, "end_point": {"row": 102, "column": 21}}, {"id": 157, "type": "identifier", "text": "u_int32_t", "parent": 149, "children": [], "start_point": {"row": 102, "column": 21}, "end_point": {"row": 102, "column": 30}}, {"id": 158, "type": "identifier", "text": "StatsEntry", "parent": 149, "children": [], "start_point": {"row": 102, "column": 31}, "end_point": {"row": 102, "column": 41}}, {"id": 159, "type": "abstract_pointer_declarator", "text": "*>::const_iterator\n const_iterator;\n\n /**\n * Convenience function for finding the StatEntry per bundle id\n */\n StatsEntry* find(const Bundle*", "parent": 147, "children": [160, 161, 166], "start_point": {"row": 102, "column": 41}, "end_point": {"row": 108, "column": 34}}, {"id": 160, "type": "*", "text": "*", "parent": 159, "children": [], "start_point": {"row": 102, "column": 41}, "end_point": {"row": 102, "column": 42}}, {"id": 161, "type": "ERROR", "text": ">::const_iterator\n const_iterator;\n\n /**\n * Convenience function for finding the StatEntry per bundle id\n */\n StatsEntry", "parent": 159, "children": [162, 163, 164, 165], "start_point": {"row": 102, "column": 42}, "end_point": {"row": 108, "column": 14}}, {"id": 162, "type": ">", "text": ">", "parent": 161, "children": [], "start_point": {"row": 102, "column": 42}, "end_point": {"row": 102, "column": 43}}, {"id": 163, "type": "identifier", "text": "const_iterator", "parent": 161, "children": [], "start_point": {"row": 102, "column": 45}, "end_point": {"row": 102, "column": 59}}, {"id": 164, "type": "identifier", "text": "const_iterator", "parent": 161, "children": [], "start_point": {"row": 103, "column": 8}, "end_point": {"row": 103, "column": 22}}, {"id": 165, "type": "identifier", "text": "StatsEntry", "parent": 161, "children": [], "start_point": {"row": 108, "column": 4}, "end_point": {"row": 108, "column": 14}}, {"id": 166, "type": "abstract_pointer_declarator", "text": "* find(const Bundle*", "parent": 159, "children": [167, 168, 170, 172], "start_point": {"row": 108, "column": 14}, "end_point": {"row": 108, "column": 34}}, {"id": 167, "type": "*", "text": "*", "parent": 166, "children": [], "start_point": {"row": 108, "column": 14}, "end_point": {"row": 108, "column": 15}}, {"id": 168, "type": "ERROR", "text": "find(", "parent": 166, "children": [169], "start_point": {"row": 108, "column": 16}, "end_point": {"row": 108, "column": 21}}, {"id": 169, "type": "identifier", "text": "find", "parent": 168, "children": [], "start_point": {"row": 108, "column": 16}, "end_point": {"row": 108, "column": 20}}, {"id": 170, "type": "ERROR", "text": "Bundle", "parent": 166, "children": [171], "start_point": {"row": 108, "column": 27}, "end_point": {"row": 108, "column": 33}}, {"id": 171, "type": "identifier", "text": "Bundle", "parent": 170, "children": [], "start_point": {"row": 108, "column": 27}, "end_point": {"row": 108, "column": 33}}, {"id": 172, "type": "abstract_pointer_declarator", "text": "*", "parent": 166, "children": [173], "start_point": {"row": 108, "column": 33}, "end_point": {"row": 108, "column": 34}}, {"id": 173, "type": "*", "text": "*", "parent": 172, "children": [], "start_point": {"row": 108, "column": 33}, "end_point": {"row": 108, "column": 34}}, {"id": 174, "type": "ERROR", "text": "b", "parent": 27, "children": [175], "start_point": {"row": 108, "column": 35}, "end_point": {"row": 108, "column": 36}}, {"id": 175, "type": "identifier", "text": "b", "parent": 174, "children": [], "start_point": {"row": 108, "column": 35}, "end_point": {"row": 108, "column": 36}}, {"id": 176, "type": "identifier", "text": "u_int", "parent": 18, "children": [], "start_point": {"row": 110, "column": 4}, "end_point": {"row": 110, "column": 9}}, {"id": 177, "type": "identifier", "text": "dropped_", "parent": 18, "children": [], "start_point": {"row": 110, "column": 11}, "end_point": {"row": 110, "column": 19}}, {"id": 178, "type": "identifier", "text": "mutable", "parent": 18, "children": [], "start_point": {"row": 111, "column": 4}, "end_point": {"row": 111, "column": 11}}, {"id": 179, "type": "identifier", "text": "pstats", "parent": 18, "children": [], "start_point": {"row": 111, "column": 12}, "end_point": {"row": 111, "column": 18}}, {"id": 180, "type": "identifier", "text": "pstats_", "parent": 18, "children": [], "start_point": {"row": 111, "column": 19}, "end_point": {"row": 111, "column": 26}}, {"id": 181, "type": "#endif", "text": "#endif", "parent": 0, "children": [], "start_point": {"row": 116, "column": 0}, "end_point": {"row": 116, "column": 6}}]}, "node_categories": {"declarations": {"functions": [12, 42, 52, 58, 72, 83, 94, 105, 116, 123], "variables": [60, 65, 74, 85, 96, 107], "classes": [15, 16], "imports": [6, 7, 9, 10], "modules": [], "enums": []}, "statements": {"expressions": [], "assignments": [], "loops": [], "conditionals": [0, 1, 2, 5, 13, 14, 17, 19, 21, 24, 27, 28, 32, 34, 36, 38, 41, 45, 46, 51, 57, 61, 64, 67, 71, 75, 78, 82, 86, 89, 93, 97, 100, 104, 108, 111, 113, 115, 118, 122, 126, 128, 131, 132, 134, 135, 140, 142, 143, 145, 146, 151, 152, 154, 155, 157, 158, 163, 164, 165, 169, 171, 175, 176, 177, 178, 179, 180, 181], "returns": [], "exceptions": []}, "expressions": {"calls": [], "literals": [8, 11, 23, 26, 30, 48], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [{"node_id": 12, "universal_type": "function", "name": "StatsEntry", "text_snippet": "namespace prophet\n{\n\n/**\n * Statistics to gather per Bundle as described in \n * section 3.7 regardin"}, {"node_id": 42, "universal_type": "function", "name": "unknown", "text_snippet": "()"}, {"node_id": 52, "universal_type": "function", "name": "unknown", "text_snippet": "()"}, {"node_id": 58, "universal_type": "function", "name": "unknown", "text_snippet": "(const Bundle* b, double p)"}, {"node_id": 72, "universal_type": "function", "name": "unknown", "text_snippet": "(const Bundle* b)"}, {"node_id": 83, "universal_type": "function", "name": "unknown", "text_snippet": "(const Bundle* b)"}, {"node_id": 94, "universal_type": "function", "name": "unknown", "text_snippet": "(const Bundle* b)"}, {"node_id": 105, "universal_type": "function", "name": "unknown", "text_snippet": "(const Bundle* b)"}, {"node_id": 116, "universal_type": "function", "name": "unknown", "text_snippet": "()"}, {"node_id": 123, "universal_type": "function", "name": "unknown", "text_snippet": "()"}], "class_declarations": [{"node_id": 15, "universal_type": "class", "name": "StatsEntry", "text_snippet": "struct StatsEntry\n{\n StatsEntry()\n : p_max_(0.0), mopr_(0.0), lmopr_(0.0) {}\n\n double p"}, {"node_id": 16, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}], "import_statements": [{"node_id": 6, "text": "#include <map>\n"}, {"node_id": 7, "text": "#include"}, {"node_id": 9, "text": "#include \"Bundle.h\"\n"}, {"node_id": 10, "text": "#include"}]}, "original_source_code": "/*\n * Copyright 2007 Baylor University\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 _PROPHET_STATS_H_\n#define _PROPHET_STATS_H_\n\n#include <map>\n#include \"Bundle.h\"\n\nnamespace prophet\n{\n\n/**\n * Statistics to gather per Bundle as described in \n * section 3.7 regarding Queuing Policies\n */\nstruct StatsEntry\n{\n StatsEntry()\n : p_max_(0.0), mopr_(0.0), lmopr_(0.0) {}\n\n double p_max_;\n double mopr_;\n double lmopr_;\n}; // StatsEntry\n\n/**\n * Container for Bundle statistics, indexed by Bundle identifier.\n * Not thread-safe, requires external locking mechanism.\n */\nclass Stats\n{\npublic:\n /**\n * Default constructor\n */\n Stats()\n : dropped_(0) {}\n\n /**\n * Destructor\n */\n ~Stats();\n\n /**\n * Given a Bundle and a predictability value, update\n * the stats kept for that Bundle\n */\n void update_stats(const Bundle* b, double p);\n\n /**\n * Given a Bundle, return the max predictability for\n * any route over which this Bundle has been forwarded\n */\n double get_p_max(const Bundle* b) const;\n\n /**\n * Given a Bundle, return the predictability favor for\n * the routes over which this Bundle has been forwarded,\n * according to Eq. 7, Section 3.7\n */\n double get_mopr(const Bundle* b) const;\n\n /**\n * Given a Bundle, return the linear predictability favor\n * for the routes over which this Bundle has been forwarded,\n * according to Eq. 8, Section 3.7\n */ \n double get_lmopr(const Bundle* b) const;\n\n /**\n * Bundle is no longer with us, so get rid of its stats\n */\n void drop_bundle(const Bundle* b);\n\n /**\n * Return count of how many Bundle stats have been dropped\n * so far\n */\n u_int dropped() const { return dropped_; }\n\n /**\n * Return count of Bundles currently rep'd in Stats\n */\n size_t size() const { return pstats_.size(); }\n\nprotected:\n typedef std::map<u_int32_t,StatsEntry*> pstats;\n typedef std::map<u_int32_t,StatsEntry*>::iterator iterator;\n typedef std::map<u_int32_t,StatsEntry*>::const_iterator\n const_iterator;\n\n /**\n * Convenience function for finding the StatEntry per bundle id\n */\n StatsEntry* find(const Bundle* b);\n\n u_int dropped_;\n mutable pstats pstats_;\n}; // Stats\n\n}; // namespace prophet\n\n#endif // _PROPHET_STATS_H_\n"}
80,026
c
#include <liba.h> int libB_func() { return libA_func(); }
28
2
(translation_unit) "#include <liba.h>\n\nint libB_func() { return libA_func(); }\n" (preproc_include) "#include <liba.h>\n" (#include) "#include" (system_lib_string) "<liba.h>" (function_definition) "int libB_func() { return libA_func(); }" (primitive_type) "int" (function_declarator) "libB_func()" (identifier) "libB_func" (parameter_list) "()" (() "(" ()) ")" (compound_statement) "{ return libA_func(); }" ({) "{" (return_statement) "return libA_func();" (return) "return" (call_expression) "libA_func()" (identifier) "libA_func" (argument_list) "()" (() "(" ()) ")" (;) ";" (}) "}"
22
0
{"language": "c", "success": true, "metadata": {"lines": 2, "avg_line_length": 28.0, "nodes": 12, "errors": 0, "source_hash": "0f75471dc5b75292bd43938fd7f71a4705579aa54c4706b9221f1ff8f015c454", "categorized_nodes": 9}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#include <liba.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": "<liba.h>", "parent": 0, "children": [], "start_point": {"row": 0, "column": 9}, "end_point": {"row": 0, "column": 17}}, {"id": 3, "type": "function_definition", "text": "int libB_func() { return libA_func(); }", "parent": null, "children": [4, 5], "start_point": {"row": 2, "column": 0}, "end_point": {"row": 2, "column": 39}}, {"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": "libB_func()", "parent": 3, "children": [6, 7], "start_point": {"row": 2, "column": 4}, "end_point": {"row": 2, "column": 15}}, {"id": 6, "type": "identifier", "text": "libB_func", "parent": 5, "children": [], "start_point": {"row": 2, "column": 4}, "end_point": {"row": 2, "column": 13}}, {"id": 7, "type": "parameter_list", "text": "()", "parent": 5, "children": [], "start_point": {"row": 2, "column": 13}, "end_point": {"row": 2, "column": 15}}, {"id": 8, "type": "return_statement", "text": "return libA_func();", "parent": 3, "children": [9], "start_point": {"row": 2, "column": 18}, "end_point": {"row": 2, "column": 37}}, {"id": 9, "type": "call_expression", "text": "libA_func()", "parent": 8, "children": [10, 11], "start_point": {"row": 2, "column": 25}, "end_point": {"row": 2, "column": 36}}, {"id": 10, "type": "identifier", "text": "libA_func", "parent": 9, "children": [], "start_point": {"row": 2, "column": 25}, "end_point": {"row": 2, "column": 34}}, {"id": 11, "type": "argument_list", "text": "()", "parent": 9, "children": [], "start_point": {"row": 2, "column": 34}, "end_point": {"row": 2, "column": 36}}]}, "node_categories": {"declarations": {"functions": [3, 5], "variables": [], "classes": [], "imports": [0, 1], "modules": [], "enums": []}, "statements": {"expressions": [9], "assignments": [], "loops": [], "conditionals": [6, 10], "returns": [8], "exceptions": []}, "expressions": {"calls": [], "literals": [2], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [{"node_id": 3, "universal_type": "function", "name": "libB_func", "text_snippet": "int libB_func() { return libA_func(); }"}, {"node_id": 5, "universal_type": "function", "name": "unknown", "text_snippet": "libB_func()"}], "class_declarations": [], "import_statements": [{"node_id": 0, "text": "#include <liba.h>\n"}, {"node_id": 1, "text": "#include"}]}, "original_source_code": "#include <liba.h>\n\nint libB_func() { return libA_func(); }\n"}
80,027
c
extern int fill_yunobitarray (int, yunosize, yunosize, yunobitarray*);
70
1
(translation_unit) "extern int fill_yunobitarray (int, yunosize, yunosize, yunobitarray*);\n" (declaration) "extern int fill_yunobitarray (int, yunosize, yunosize, yunobitarray*);" (storage_class_specifier) "extern" (extern) "extern" (primitive_type) "int" (function_declarator) "fill_yunobitarray (int, yunosize, yunosize, yunobitarray*)" (identifier) "fill_yunobitarray" (parameter_list) "(int, yunosize, yunosize, yunobitarray*)" (() "(" (parameter_declaration) "int" (primitive_type) "int" (,) "," (parameter_declaration) "yunosize" (type_identifier) "yunosize" (,) "," (parameter_declaration) "yunosize" (type_identifier) "yunosize" (,) "," (parameter_declaration) "yunobitarray*" (type_identifier) "yunobitarray" (abstract_pointer_declarator) "*" (*) "*" ()) ")" (;) ";"
24
0
{"language": "c", "success": true, "metadata": {"lines": 1, "avg_line_length": 70.0, "nodes": 17, "errors": 0, "source_hash": "cfd6321c559c86d71358c2ab03929a54eecfb99a56998e28322284a91d5ba21e", "categorized_nodes": 11}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "declaration", "text": "extern int fill_yunobitarray (int, yunosize, yunosize, yunobitarray*);", "parent": null, "children": [1, 3, 4], "start_point": {"row": 1, "column": 0}, "end_point": {"row": 1, "column": 70}}, {"id": 1, "type": "storage_class_specifier", "text": "extern", "parent": 0, "children": [2], "start_point": {"row": 1, "column": 0}, "end_point": {"row": 1, "column": 6}}, {"id": 2, "type": "extern", "text": "extern", "parent": 1, "children": [], "start_point": {"row": 1, "column": 0}, "end_point": {"row": 1, "column": 6}}, {"id": 3, "type": "primitive_type", "text": "int", "parent": 0, "children": [], "start_point": {"row": 1, "column": 7}, "end_point": {"row": 1, "column": 10}}, {"id": 4, "type": "function_declarator", "text": "fill_yunobitarray (int, yunosize, yunosize, yunobitarray*)", "parent": 0, "children": [5, 6], "start_point": {"row": 1, "column": 11}, "end_point": {"row": 1, "column": 69}}, {"id": 5, "type": "identifier", "text": "fill_yunobitarray", "parent": 4, "children": [], "start_point": {"row": 1, "column": 11}, "end_point": {"row": 1, "column": 28}}, {"id": 6, "type": "parameter_list", "text": "(int, yunosize, yunosize, yunobitarray*)", "parent": 4, "children": [7, 9, 11, 13], "start_point": {"row": 1, "column": 29}, "end_point": {"row": 1, "column": 69}}, {"id": 7, "type": "parameter_declaration", "text": "int", "parent": 6, "children": [8], "start_point": {"row": 1, "column": 30}, "end_point": {"row": 1, "column": 33}}, {"id": 8, "type": "primitive_type", "text": "int", "parent": 7, "children": [], "start_point": {"row": 1, "column": 30}, "end_point": {"row": 1, "column": 33}}, {"id": 9, "type": "parameter_declaration", "text": "yunosize", "parent": 6, "children": [10], "start_point": {"row": 1, "column": 35}, "end_point": {"row": 1, "column": 43}}, {"id": 10, "type": "type_identifier", "text": "yunosize", "parent": 9, "children": [], "start_point": {"row": 1, "column": 35}, "end_point": {"row": 1, "column": 43}}, {"id": 11, "type": "parameter_declaration", "text": "yunosize", "parent": 6, "children": [12], "start_point": {"row": 1, "column": 45}, "end_point": {"row": 1, "column": 53}}, {"id": 12, "type": "type_identifier", "text": "yunosize", "parent": 11, "children": [], "start_point": {"row": 1, "column": 45}, "end_point": {"row": 1, "column": 53}}, {"id": 13, "type": "parameter_declaration", "text": "yunobitarray*", "parent": 6, "children": [14, 15], "start_point": {"row": 1, "column": 55}, "end_point": {"row": 1, "column": 68}}, {"id": 14, "type": "type_identifier", "text": "yunobitarray", "parent": 13, "children": [], "start_point": {"row": 1, "column": 55}, "end_point": {"row": 1, "column": 67}}, {"id": 15, "type": "abstract_pointer_declarator", "text": "*", "parent": 13, "children": [16], "start_point": {"row": 1, "column": 67}, "end_point": {"row": 1, "column": 68}}, {"id": 16, "type": "*", "text": "*", "parent": 15, "children": [], "start_point": {"row": 1, "column": 67}, "end_point": {"row": 1, "column": 68}}]}, "node_categories": {"declarations": {"functions": [4], "variables": [0, 7, 9, 11, 13], "classes": [1], "imports": [], "modules": [], "enums": []}, "statements": {"expressions": [], "assignments": [], "loops": [], "conditionals": [5, 10, 12, 14], "returns": [], "exceptions": []}, "expressions": {"calls": [], "literals": [], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [{"node_id": 4, "universal_type": "function", "name": "unknown", "text_snippet": "fill_yunobitarray (int, yunosize, yunosize, yunobitarray*)"}], "class_declarations": [{"node_id": 1, "universal_type": "class", "name": "unknown", "text_snippet": "extern"}], "import_statements": []}, "original_source_code": "\nextern int fill_yunobitarray (int, yunosize, yunosize, yunobitarray*);\n"}
80,028
c
#include <string.h> #include <stdlib.h> #include <stdio.h> #include "assert.h" #include "compress40.h" static void (*compress_or_decompress)(FILE *input) = compress40; int main(int argc, char *argv[]) { int i; for (i = 1; i < argc; i++) { if (strcmp(argv[i], "-c") == 0) { compress_or_decompress = compress40; } else if (strcmp(argv[i], "-d") == 0) { compress_or_decompress = decompress40; } else if (*argv[i] == '-') { fprintf(stderr, "%s: unknown option '%s'\n", argv[0], argv[i]); exit(1); } else if (argc - i > 2) { fprintf(stderr, "Usage: %s -d [filename]\n" " %s -c [filename]\n", argv[0], argv[0]); exit(1); } else { break; } } assert(argc - i <= 1); /* at most one file on command line */ if (i < argc) { FILE *fp = fopen(argv[i], "r"); assert(fp != NULL); compress_or_decompress(fp); fclose(fp); } else { compress_or_decompress(stdin); } }
35.59
37
(translation_unit) "#include <string.h>\n#include <stdlib.h>\n#include <stdio.h>\n#include "assert.h"\n#include "compress40.h"\n\nstatic void (*compress_or_decompress)(FILE *input) = compress40;\n\nint main(int argc, char *argv[])\n{\n int i;\n\n for (i = 1; i < argc; i++) {\n if (strcmp(argv[i], "-c") == 0) {\n compress_or_decompress = compress40;\n } else if (strcmp(argv[i], "-d") == 0) {\n compress_or_decompress = decompress40;\n } else if (*argv[i] == '-') {\n fprintf(stderr, "%s: unknown option '%s'\n",\n argv[0], argv[i]);\n exit(1);\n } else if (argc - i > 2) {\n fprintf(stderr, "Usage: %s -d [filename]\n"\n " %s -c [filename]\n",\n argv[0], argv[0]);\n exit(1);\n } else {\n break;\n }\n }\n assert(argc - i <= 1); /* at most one file on command line */\n if (i < argc) {\n FILE *fp = fopen(argv[i], "r");\n assert(fp != NULL);\n compress_or_decompress(fp);\n fclose(fp);\n } else {\n compress_or_decompress(stdin);\n }\n}\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 <stdio.h>\n" (#include) "#include" (system_lib_string) "<stdio.h>" (preproc_include) "#include "assert.h"\n" (#include) "#include" (string_literal) ""assert.h"" (") """ (string_content) "assert.h" (") """ (preproc_include) "#include "compress40.h"\n" (#include) "#include" (string_literal) ""compress40.h"" (") """ (string_content) "compress40.h" (") """ (declaration) "static void (*compress_or_decompress)(FILE *input) = compress40;" (storage_class_specifier) "static" (static) "static" (primitive_type) "void" (init_declarator) "(*compress_or_decompress)(FILE *input) = compress40" (function_declarator) "(*compress_or_decompress)(FILE *input)" (parenthesized_declarator) "(*compress_or_decompress)" (() "(" (pointer_declarator) "*compress_or_decompress" (*) "*" (identifier) "compress_or_decompress" ()) ")" (parameter_list) "(FILE *input)" (() "(" (parameter_declaration) "FILE *input" (type_identifier) "FILE" (pointer_declarator) "*input" (*) "*" (identifier) "input" ()) ")" (=) "=" (identifier) "compress40" (;) ";" (function_definition) "int main(int argc, char *argv[])\n{\n int i;\n\n for (i = 1; i < argc; i++) {\n if (strcmp(argv[i], "-c") == 0) {\n compress_or_decompress = compress40;\n } else if (strcmp(argv[i], "-d") == 0) {\n compress_or_decompress = decompress40;\n } else if (*argv[i] == '-') {\n fprintf(stderr, "%s: unknown option '%s'\n",\n argv[0], argv[i]);\n exit(1);\n } else if (argc - i > 2) {\n fprintf(stderr, "Usage: %s -d [filename]\n"\n " %s -c [filename]\n",\n argv[0], argv[0]);\n exit(1);\n } else {\n break;\n }\n }\n assert(argc - i <= 1); /* at most one file on command line */\n if (i < argc) {\n FILE *fp = fopen(argv[i], "r");\n assert(fp != NULL);\n compress_or_decompress(fp);\n fclose(fp);\n } else {\n compress_or_decompress(stdin);\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;\n\n for (i = 1; i < argc; i++) {\n if (strcmp(argv[i], "-c") == 0) {\n compress_or_decompress = compress40;\n } else if (strcmp(argv[i], "-d") == 0) {\n compress_or_decompress = decompress40;\n } else if (*argv[i] == '-') {\n fprintf(stderr, "%s: unknown option '%s'\n",\n argv[0], argv[i]);\n exit(1);\n } else if (argc - i > 2) {\n fprintf(stderr, "Usage: %s -d [filename]\n"\n " %s -c [filename]\n",\n argv[0], argv[0]);\n exit(1);\n } else {\n break;\n }\n }\n assert(argc - i <= 1); /* at most one file on command line */\n if (i < argc) {\n FILE *fp = fopen(argv[i], "r");\n assert(fp != NULL);\n compress_or_decompress(fp);\n fclose(fp);\n } else {\n compress_or_decompress(stdin);\n }\n}" ({) "{" (declaration) "int i;" (primitive_type) "int" (identifier) "i" (;) ";" (for_statement) "for (i = 1; i < argc; i++) {\n if (strcmp(argv[i], "-c") == 0) {\n compress_or_decompress = compress40;\n } else if (strcmp(argv[i], "-d") == 0) {\n compress_or_decompress = decompress40;\n } else if (*argv[i] == '-') {\n fprintf(stderr, "%s: unknown option '%s'\n",\n argv[0], argv[i]);\n exit(1);\n } else if (argc - i > 2) {\n fprintf(stderr, "Usage: %s -d [filename]\n"\n " %s -c [filename]\n",\n argv[0], argv[0]);\n exit(1);\n } else {\n break;\n }\n }" (for) "for" (() "(" (assignment_expression) "i = 1" (identifier) "i" (=) "=" (number_literal) "1" (;) ";" (binary_expression) "i < argc" (identifier) "i" (<) "<" (identifier) "argc" (;) ";" (update_expression) "i++" (identifier) "i" (++) "++" ()) ")" (compound_statement) "{\n if (strcmp(argv[i], "-c") == 0) {\n compress_or_decompress = compress40;\n } else if (strcmp(argv[i], "-d") == 0) {\n compress_or_decompress = decompress40;\n } else if (*argv[i] == '-') {\n fprintf(stderr, "%s: unknown option '%s'\n",\n argv[0], argv[i]);\n exit(1);\n } else if (argc - i > 2) {\n fprintf(stderr, "Usage: %s -d [filename]\n"\n " %s -c [filename]\n",\n argv[0], argv[0]);\n exit(1);\n } else {\n break;\n }\n }" ({) "{" (if_statement) "if (strcmp(argv[i], "-c") == 0) {\n compress_or_decompress = compress40;\n } else if (strcmp(argv[i], "-d") == 0) {\n compress_or_decompress = decompress40;\n } else if (*argv[i] == '-') {\n fprintf(stderr, "%s: unknown option '%s'\n",\n argv[0], argv[i]);\n exit(1);\n } else if (argc - i > 2) {\n fprintf(stderr, "Usage: %s -d [filename]\n"\n " %s -c [filename]\n",\n argv[0], argv[0]);\n exit(1);\n } else {\n break;\n }" (if) "if" (parenthesized_expression) "(strcmp(argv[i], "-c") == 0)" (() "(" (binary_expression) "strcmp(argv[i], "-c") == 0" (call_expression) "strcmp(argv[i], "-c")" (identifier) "strcmp" (argument_list) "(argv[i], "-c")" (() "(" (subscript_expression) "argv[i]" (identifier) "argv" ([) "[" (identifier) "i" (]) "]" (,) "," (string_literal) ""-c"" (") """ (string_content) "-c" (") """ ()) ")" (==) "==" (number_literal) "0" ()) ")" (compound_statement) "{\n compress_or_decompress = compress40;\n }" ({) "{" (expression_statement) "compress_or_decompress = compress40;" (assignment_expression) "compress_or_decompress = compress40" (identifier) "compress_or_decompress" (=) "=" (identifier) "compress40" (;) ";" (}) "}" (else_clause) "else if (strcmp(argv[i], "-d") == 0) {\n compress_or_decompress = decompress40;\n } else if (*argv[i] == '-') {\n fprintf(stderr, "%s: unknown option '%s'\n",\n argv[0], argv[i]);\n exit(1);\n } else if (argc - i > 2) {\n fprintf(stderr, "Usage: %s -d [filename]\n"\n " %s -c [filename]\n",\n argv[0], argv[0]);\n exit(1);\n } else {\n break;\n }" (else) "else" (if_statement) "if (strcmp(argv[i], "-d") == 0) {\n compress_or_decompress = decompress40;\n } else if (*argv[i] == '-') {\n fprintf(stderr, "%s: unknown option '%s'\n",\n argv[0], argv[i]);\n exit(1);\n } else if (argc - i > 2) {\n fprintf(stderr, "Usage: %s -d [filename]\n"\n " %s -c [filename]\n",\n argv[0], argv[0]);\n exit(1);\n } else {\n break;\n }" (if) "if" (parenthesized_expression) "(strcmp(argv[i], "-d") == 0)" (() "(" (binary_expression) "strcmp(argv[i], "-d") == 0" (call_expression) "strcmp(argv[i], "-d")" (identifier) "strcmp" (argument_list) "(argv[i], "-d")" (() "(" (subscript_expression) "argv[i]" (identifier) "argv" ([) "[" (identifier) "i" (]) "]" (,) "," (string_literal) ""-d"" (") """ (string_content) "-d" (") """ ()) ")" (==) "==" (number_literal) "0" ()) ")" (compound_statement) "{\n compress_or_decompress = decompress40;\n }" ({) "{" (expression_statement) "compress_or_decompress = decompress40;" (assignment_expression) "compress_or_decompress = decompress40" (identifier) "compress_or_decompress" (=) "=" (identifier) "decompress40" (;) ";" (}) "}" (else_clause) "else if (*argv[i] == '-') {\n fprintf(stderr, "%s: unknown option '%s'\n",\n argv[0], argv[i]);\n exit(1);\n } else if (argc - i > 2) {\n fprintf(stderr, "Usage: %s -d [filename]\n"\n " %s -c [filename]\n",\n argv[0], argv[0]);\n exit(1);\n } else {\n break;\n }" (else) "else" (if_statement) "if (*argv[i] == '-') {\n fprintf(stderr, "%s: unknown option '%s'\n",\n argv[0], argv[i]);\n exit(1);\n } else if (argc - i > 2) {\n fprintf(stderr, "Usage: %s -d [filename]\n"\n " %s -c [filename]\n",\n argv[0], argv[0]);\n exit(1);\n } else {\n break;\n }" (if) "if" (parenthesized_expression) "(*argv[i] == '-')" (() "(" (binary_expression) "*argv[i] == '-'" (pointer_expression) "*argv[i]" (*) "*" (subscript_expression) "argv[i]" (identifier) "argv" ([) "[" (identifier) "i" (]) "]" (==) "==" (char_literal) "'-'" (') "'" (character) "-" (') "'" ()) ")" (compound_statement) "{\n fprintf(stderr, "%s: unknown option '%s'\n",\n argv[0], argv[i]);\n exit(1);\n }" ({) "{" (expression_statement) "fprintf(stderr, "%s: unknown option '%s'\n",\n argv[0], argv[i]);" (call_expression) "fprintf(stderr, "%s: unknown option '%s'\n",\n argv[0], argv[i])" (identifier) "fprintf" (argument_list) "(stderr, "%s: unknown option '%s'\n",\n argv[0], argv[i])" (() "(" (identifier) "stderr" (,) "," (string_literal) ""%s: unknown option '%s'\n"" (") """ (string_content) "%s: unknown option '%s'" (escape_sequence) "\n" (") """ (,) "," (subscript_expression) "argv[0]" (identifier) "argv" ([) "[" (number_literal) "0" (]) "]" (,) "," (subscript_expression) "argv[i]" (identifier) "argv" ([) "[" (identifier) "i" (]) "]" ()) ")" (;) ";" (expression_statement) "exit(1);" (call_expression) "exit(1)" (identifier) "exit" (argument_list) "(1)" (() "(" (number_literal) "1" ()) ")" (;) ";" (}) "}" (else_clause) "else if (argc - i > 2) {\n fprintf(stderr, "Usage: %s -d [filename]\n"\n " %s -c [filename]\n",\n argv[0], argv[0]);\n exit(1);\n } else {\n break;\n }" (else) "else" (if_statement) "if (argc - i > 2) {\n fprintf(stderr, "Usage: %s -d [filename]\n"\n " %s -c [filename]\n",\n argv[0], argv[0]);\n exit(1);\n } else {\n break;\n }" (if) "if" (parenthesized_expression) "(argc - i > 2)" (() "(" (binary_expression) "argc - i > 2" (binary_expression) "argc - i" (identifier) "argc" (-) "-" (identifier) "i" (>) ">" (number_literal) "2" ()) ")" (compound_statement) "{\n fprintf(stderr, "Usage: %s -d [filename]\n"\n " %s -c [filename]\n",\n argv[0], argv[0]);\n exit(1);\n }" ({) "{" (expression_statement) "fprintf(stderr, "Usage: %s -d [filename]\n"\n " %s -c [filename]\n",\n argv[0], argv[0]);" (call_expression) "fprintf(stderr, "Usage: %s -d [filename]\n"\n " %s -c [filename]\n",\n argv[0], argv[0])" (identifier) "fprintf" (argument_list) "(stderr, "Usage: %s -d [filename]\n"\n " %s -c [filename]\n",\n argv[0], argv[0])" (() "(" (identifier) "stderr" (,) "," (concatenated_string) ""Usage: %s -d [filename]\n"\n " %s -c [filename]\n"" (string_literal) ""Usage: %s -d [filename]\n"" (") """ (string_content) "Usage: %s -d [filename]" (escape_sequence) "\n" (") """ (string_literal) "" %s -c [filename]\n"" (") """ (string_content) " %s -c [filename]" (escape_sequence) "\n" (") """ (,) "," (subscript_expression) "argv[0]" (identifier) "argv" ([) "[" (number_literal) "0" (]) "]" (,) "," (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" ()) ")" (;) ";" (}) "}" (else_clause) "else {\n break;\n }" (else) "else" (compound_statement) "{\n break;\n }" ({) "{" (break_statement) "break;" (break) "break" (;) ";" (}) "}" (}) "}" (expression_statement) "assert(argc - i <= 1);" (call_expression) "assert(argc - i <= 1)" (identifier) "assert" (argument_list) "(argc - i <= 1)" (() "(" (binary_expression) "argc - i <= 1" (binary_expression) "argc - i" (identifier) "argc" (-) "-" (identifier) "i" (<=) "<=" (number_literal) "1" ()) ")" (;) ";" (comment) "/* at most one file on command line */" (if_statement) "if (i < argc) {\n FILE *fp = fopen(argv[i], "r");\n assert(fp != NULL);\n compress_or_decompress(fp);\n fclose(fp);\n } else {\n compress_or_decompress(stdin);\n }" (if) "if" (parenthesized_expression) "(i < argc)" (() "(" (binary_expression) "i < argc" (identifier) "i" (<) "<" (identifier) "argc" ()) ")" (compound_statement) "{\n FILE *fp = fopen(argv[i], "r");\n assert(fp != NULL);\n compress_or_decompress(fp);\n fclose(fp);\n }" ({) "{" (declaration) "FILE *fp = fopen(argv[i], "r");" (type_identifier) "FILE" (init_declarator) "*fp = fopen(argv[i], "r")" (pointer_declarator) "*fp" (*) "*" (identifier) "fp" (=) "=" (call_expression) "fopen(argv[i], "r")" (identifier) "fopen" (argument_list) "(argv[i], "r")" (() "(" (subscript_expression) "argv[i]" (identifier) "argv" ([) "[" (identifier) "i" (]) "]" (,) "," (string_literal) ""r"" (") """ (string_content) "r" (") """ ()) ")" (;) ";" (expression_statement) "assert(fp != NULL);" (call_expression) "assert(fp != NULL)" (identifier) "assert" (argument_list) "(fp != NULL)" (() "(" (binary_expression) "fp != NULL" (identifier) "fp" (!=) "!=" (null) "NULL" (NULL) "NULL" ()) ")" (;) ";" (expression_statement) "compress_or_decompress(fp);" (call_expression) "compress_or_decompress(fp)" (identifier) "compress_or_decompress" (argument_list) "(fp)" (() "(" (identifier) "fp" ()) ")" (;) ";" (expression_statement) "fclose(fp);" (call_expression) "fclose(fp)" (identifier) "fclose" (argument_list) "(fp)" (() "(" (identifier) "fp" ()) ")" (;) ";" (}) "}" (else_clause) "else {\n compress_or_decompress(stdin);\n }" (else) "else" (compound_statement) "{\n compress_or_decompress(stdin);\n }" ({) "{" (expression_statement) "compress_or_decompress(stdin);" (call_expression) "compress_or_decompress(stdin)" (identifier) "compress_or_decompress" (argument_list) "(stdin)" (() "(" (identifier) "stdin" ()) ")" (;) ";" (}) "}" (}) "}"
370
0
{"language": "c", "success": true, "metadata": {"lines": 37, "avg_line_length": 35.59, "nodes": 206, "errors": 0, "source_hash": "74f8cf02f578759469b0a6e824bb6640e8f4bc0892d0f1887e3bfae1854ad178", "categorized_nodes": 143}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#include <string.h>\n", "parent": null, "children": [1, 2], "start_point": {"row": 0, "column": 0}, "end_point": {"row": 1, "column": 0}}, {"id": 1, "type": "#include", "text": "#include", "parent": 0, "children": [], "start_point": {"row": 0, "column": 0}, "end_point": {"row": 0, "column": 8}}, {"id": 2, "type": "system_lib_string", "text": "<string.h>", "parent": 0, "children": [], "start_point": {"row": 0, "column": 9}, "end_point": {"row": 0, "column": 19}}, {"id": 3, "type": "preproc_include", "text": "#include <stdlib.h>\n", "parent": null, "children": [4, 5], "start_point": {"row": 1, "column": 0}, "end_point": {"row": 2, "column": 0}}, {"id": 4, "type": "#include", "text": "#include", "parent": 3, "children": [], "start_point": {"row": 1, "column": 0}, "end_point": {"row": 1, "column": 8}}, {"id": 5, "type": "system_lib_string", "text": "<stdlib.h>", "parent": 3, "children": [], "start_point": {"row": 1, "column": 9}, "end_point": {"row": 1, "column": 19}}, {"id": 6, "type": "preproc_include", "text": "#include <stdio.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": "<stdio.h>", "parent": 6, "children": [], "start_point": {"row": 2, "column": 9}, "end_point": {"row": 2, "column": 18}}, {"id": 9, "type": "preproc_include", "text": "#include \"assert.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": "\"assert.h\"", "parent": 9, "children": [], "start_point": {"row": 3, "column": 9}, "end_point": {"row": 3, "column": 19}}, {"id": 12, "type": "preproc_include", "text": "#include \"compress40.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": "\"compress40.h\"", "parent": 12, "children": [], "start_point": {"row": 4, "column": 9}, "end_point": {"row": 4, "column": 23}}, {"id": 15, "type": "declaration", "text": "static void (*compress_or_decompress)(FILE *input) = compress40;", "parent": null, "children": [16, 17], "start_point": {"row": 6, "column": 0}, "end_point": {"row": 6, "column": 64}}, {"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": "init_declarator", "text": "(*compress_or_decompress)(FILE *input) = compress40", "parent": 15, "children": [18, 29, 30], "start_point": {"row": 6, "column": 12}, "end_point": {"row": 6, "column": 63}}, {"id": 18, "type": "function_declarator", "text": "(*compress_or_decompress)(FILE *input)", "parent": 17, "children": [19, 23], "start_point": {"row": 6, "column": 12}, "end_point": {"row": 6, "column": 50}}, {"id": 19, "type": "parenthesized_declarator", "text": "(*compress_or_decompress)", "parent": 18, "children": [20], "start_point": {"row": 6, "column": 12}, "end_point": {"row": 6, "column": 37}}, {"id": 20, "type": "pointer_declarator", "text": "*compress_or_decompress", "parent": 19, "children": [21, 22], "start_point": {"row": 6, "column": 13}, "end_point": {"row": 6, "column": 36}}, {"id": 21, "type": "*", "text": "*", "parent": 20, "children": [], "start_point": {"row": 6, "column": 13}, "end_point": {"row": 6, "column": 14}}, {"id": 22, "type": "identifier", "text": "compress_or_decompress", "parent": 20, "children": [], "start_point": {"row": 6, "column": 14}, "end_point": {"row": 6, "column": 36}}, {"id": 23, "type": "parameter_list", "text": "(FILE *input)", "parent": 18, "children": [24], "start_point": {"row": 6, "column": 37}, "end_point": {"row": 6, "column": 50}}, {"id": 24, "type": "parameter_declaration", "text": "FILE *input", "parent": 23, "children": [25, 26], "start_point": {"row": 6, "column": 38}, "end_point": {"row": 6, "column": 49}}, {"id": 25, "type": "type_identifier", "text": "FILE", "parent": 24, "children": [], "start_point": {"row": 6, "column": 38}, "end_point": {"row": 6, "column": 42}}, {"id": 26, "type": "pointer_declarator", "text": "*input", "parent": 24, "children": [27, 28], "start_point": {"row": 6, "column": 43}, "end_point": {"row": 6, "column": 49}}, {"id": 27, "type": "*", "text": "*", "parent": 26, "children": [], "start_point": {"row": 6, "column": 43}, "end_point": {"row": 6, "column": 44}}, {"id": 28, "type": "identifier", "text": "input", "parent": 26, "children": [], "start_point": {"row": 6, "column": 44}, "end_point": {"row": 6, "column": 49}}, {"id": 29, "type": "=", "text": "=", "parent": 17, "children": [], "start_point": {"row": 6, "column": 51}, "end_point": {"row": 6, "column": 52}}, {"id": 30, "type": "identifier", "text": "compress40", "parent": 17, "children": [], "start_point": {"row": 6, "column": 53}, "end_point": {"row": 6, "column": 63}}, {"id": 31, "type": "function_definition", "text": "int main(int argc, char *argv[])\n{\n int i;\n\n for (i = 1; i < argc; i++) {\n if (strcmp(argv[i], \"-c\") == 0) {\n compress_or_decompress = compress40;\n } else if (strcmp(argv[i], \"-d\") == 0) {\n compress_or_decompress = decompress40;\n } else if (*argv[i] == '-') {\n fprintf(stderr, \"%s: unknown option '%s'\\n\",\n argv[0], argv[i]);\n exit(1);\n } else if (argc - i > 2) {\n fprintf(stderr, \"Usage: %s -d [filename]\\n\"\n \" %s -c [filename]\\n\",\n argv[0], argv[0]);\n exit(1);\n } else {\n break;\n }\n }\n assert(argc - i <= 1); /* at most one file on command line */\n if (i < argc) {\n FILE *fp = fopen(argv[i], \"r\");\n assert(fp != NULL);\n compress_or_decompress(fp);\n fclose(fp);\n } else {\n compress_or_decompress(stdin);\n }\n}", "parent": null, "children": [32, 33], "start_point": {"row": 8, "column": 0}, "end_point": {"row": 39, "column": 1}}, {"id": 32, "type": "primitive_type", "text": "int", "parent": 31, "children": [], "start_point": {"row": 8, "column": 0}, "end_point": {"row": 8, "column": 3}}, {"id": 33, "type": "function_declarator", "text": "main(int argc, char *argv[])", "parent": 31, "children": [34, 35], "start_point": {"row": 8, "column": 4}, "end_point": {"row": 8, "column": 32}}, {"id": 34, "type": "identifier", "text": "main", "parent": 33, "children": [], "start_point": {"row": 8, "column": 4}, "end_point": {"row": 8, "column": 8}}, {"id": 35, "type": "parameter_list", "text": "(int argc, char *argv[])", "parent": 33, "children": [36, 39], "start_point": {"row": 8, "column": 8}, "end_point": {"row": 8, "column": 32}}, {"id": 36, "type": "parameter_declaration", "text": "int argc", "parent": 35, "children": [37, 38], "start_point": {"row": 8, "column": 9}, "end_point": {"row": 8, "column": 17}}, {"id": 37, "type": "primitive_type", "text": "int", "parent": 36, "children": [], "start_point": {"row": 8, "column": 9}, "end_point": {"row": 8, "column": 12}}, {"id": 38, "type": "identifier", "text": "argc", "parent": 36, "children": [], "start_point": {"row": 8, "column": 13}, "end_point": {"row": 8, "column": 17}}, {"id": 39, "type": "parameter_declaration", "text": "char *argv[]", "parent": 35, "children": [40, 41], "start_point": {"row": 8, "column": 19}, "end_point": {"row": 8, "column": 31}}, {"id": 40, "type": "primitive_type", "text": "char", "parent": 39, "children": [], "start_point": {"row": 8, "column": 19}, "end_point": {"row": 8, "column": 23}}, {"id": 41, "type": "pointer_declarator", "text": "*argv[]", "parent": 39, "children": [42, 43], "start_point": {"row": 8, "column": 24}, "end_point": {"row": 8, "column": 31}}, {"id": 42, "type": "*", "text": "*", "parent": 41, "children": [], "start_point": {"row": 8, "column": 24}, "end_point": {"row": 8, "column": 25}}, {"id": 43, "type": "array_declarator", "text": "argv[]", "parent": 41, "children": [44], "start_point": {"row": 8, "column": 25}, "end_point": {"row": 8, "column": 31}}, {"id": 44, "type": "identifier", "text": "argv", "parent": 43, "children": [], "start_point": {"row": 8, "column": 25}, "end_point": {"row": 8, "column": 29}}, {"id": 45, "type": "declaration", "text": "int i;", "parent": 31, "children": [46, 47], "start_point": {"row": 10, "column": 8}, "end_point": {"row": 10, "column": 14}}, {"id": 46, "type": "primitive_type", "text": "int", "parent": 45, "children": [], "start_point": {"row": 10, "column": 8}, "end_point": {"row": 10, "column": 11}}, {"id": 47, "type": "identifier", "text": "i", "parent": 45, "children": [], "start_point": {"row": 10, "column": 12}, "end_point": {"row": 10, "column": 13}}, {"id": 48, "type": "for_statement", "text": "for (i = 1; i < argc; i++) {\n if (strcmp(argv[i], \"-c\") == 0) {\n compress_or_decompress = compress40;\n } else if (strcmp(argv[i], \"-d\") == 0) {\n compress_or_decompress = decompress40;\n } else if (*argv[i] == '-') {\n fprintf(stderr, \"%s: unknown option '%s'\\n\",\n argv[0], argv[i]);\n exit(1);\n } else if (argc - i > 2) {\n fprintf(stderr, \"Usage: %s -d [filename]\\n\"\n \" %s -c [filename]\\n\",\n argv[0], argv[0]);\n exit(1);\n } else {\n break;\n }\n }", "parent": 31, "children": [49, 53, 57], "start_point": {"row": 12, "column": 8}, "end_point": {"row": 29, "column": 9}}, {"id": 49, "type": "assignment_expression", "text": "i = 1", "parent": 48, "children": [50, 51, 52], "start_point": {"row": 12, "column": 13}, "end_point": {"row": 12, "column": 18}}, {"id": 50, "type": "identifier", "text": "i", "parent": 49, "children": [], "start_point": {"row": 12, "column": 13}, "end_point": {"row": 12, "column": 14}}, {"id": 51, "type": "=", "text": "=", "parent": 49, "children": [], "start_point": {"row": 12, "column": 15}, "end_point": {"row": 12, "column": 16}}, {"id": 52, "type": "number_literal", "text": "1", "parent": 49, "children": [], "start_point": {"row": 12, "column": 17}, "end_point": {"row": 12, "column": 18}}, {"id": 53, "type": "binary_expression", "text": "i < argc", "parent": 48, "children": [54, 55, 56], "start_point": {"row": 12, "column": 20}, "end_point": {"row": 12, "column": 28}}, {"id": 54, "type": "identifier", "text": "i", "parent": 53, "children": [], "start_point": {"row": 12, "column": 20}, "end_point": {"row": 12, "column": 21}}, {"id": 55, "type": "<", "text": "<", "parent": 53, "children": [], "start_point": {"row": 12, "column": 22}, "end_point": {"row": 12, "column": 23}}, {"id": 56, "type": "identifier", "text": "argc", "parent": 53, "children": [], "start_point": {"row": 12, "column": 24}, "end_point": {"row": 12, "column": 28}}, {"id": 57, "type": "update_expression", "text": "i++", "parent": 48, "children": [58, 59], "start_point": {"row": 12, "column": 30}, "end_point": {"row": 12, "column": 33}}, {"id": 58, "type": "identifier", "text": "i", "parent": 57, "children": [], "start_point": {"row": 12, "column": 30}, "end_point": {"row": 12, "column": 31}}, {"id": 59, "type": "++", "text": "++", "parent": 57, "children": [], "start_point": {"row": 12, "column": 31}, "end_point": {"row": 12, "column": 33}}, {"id": 60, "type": "if_statement", "text": "if (strcmp(argv[i], \"-c\") == 0) {\n compress_or_decompress = compress40;\n } else if (strcmp(argv[i], \"-d\") == 0) {\n compress_or_decompress = decompress40;\n } else if (*argv[i] == '-') {\n fprintf(stderr, \"%s: unknown option '%s'\\n\",\n argv[0], argv[i]);\n exit(1);\n } else if (argc - i > 2) {\n fprintf(stderr, \"Usage: %s -d [filename]\\n\"\n \" %s -c [filename]\\n\",\n argv[0], argv[0]);\n exit(1);\n } else {\n break;\n }", "parent": 48, "children": [61, 76], "start_point": {"row": 13, "column": 16}, "end_point": {"row": 28, "column": 17}}, {"id": 61, "type": "parenthesized_expression", "text": "(strcmp(argv[i], \"-c\") == 0)", "parent": 60, "children": [62], "start_point": {"row": 13, "column": 19}, "end_point": {"row": 13, "column": 47}}, {"id": 62, "type": "binary_expression", "text": "strcmp(argv[i], \"-c\") == 0", "parent": 61, "children": [63, 70, 71], "start_point": {"row": 13, "column": 20}, "end_point": {"row": 13, "column": 46}}, {"id": 63, "type": "call_expression", "text": "strcmp(argv[i], \"-c\")", "parent": 62, "children": [64, 65], "start_point": {"row": 13, "column": 20}, "end_point": {"row": 13, "column": 41}}, {"id": 64, "type": "identifier", "text": "strcmp", "parent": 63, "children": [], "start_point": {"row": 13, "column": 20}, "end_point": {"row": 13, "column": 26}}, {"id": 65, "type": "argument_list", "text": "(argv[i], \"-c\")", "parent": 63, "children": [66, 69], "start_point": {"row": 13, "column": 26}, "end_point": {"row": 13, "column": 41}}, {"id": 66, "type": "subscript_expression", "text": "argv[i]", "parent": 65, "children": [67, 68], "start_point": {"row": 13, "column": 27}, "end_point": {"row": 13, "column": 34}}, {"id": 67, "type": "identifier", "text": "argv", "parent": 66, "children": [], "start_point": {"row": 13, "column": 27}, "end_point": {"row": 13, "column": 31}}, {"id": 68, "type": "identifier", "text": "i", "parent": 66, "children": [], "start_point": {"row": 13, "column": 32}, "end_point": {"row": 13, "column": 33}}, {"id": 69, "type": "string_literal", "text": "\"-c\"", "parent": 65, "children": [], "start_point": {"row": 13, "column": 36}, "end_point": {"row": 13, "column": 40}}, {"id": 70, "type": "==", "text": "==", "parent": 62, "children": [], "start_point": {"row": 13, "column": 42}, "end_point": {"row": 13, "column": 44}}, {"id": 71, "type": "number_literal", "text": "0", "parent": 62, "children": [], "start_point": {"row": 13, "column": 45}, "end_point": {"row": 13, "column": 46}}, {"id": 72, "type": "assignment_expression", "text": "compress_or_decompress = compress40", "parent": 60, "children": [73, 74, 75], "start_point": {"row": 14, "column": 24}, "end_point": {"row": 14, "column": 59}}, {"id": 73, "type": "identifier", "text": "compress_or_decompress", "parent": 72, "children": [], "start_point": {"row": 14, "column": 24}, "end_point": {"row": 14, "column": 46}}, {"id": 74, "type": "=", "text": "=", "parent": 72, "children": [], "start_point": {"row": 14, "column": 47}, "end_point": {"row": 14, "column": 48}}, {"id": 75, "type": "identifier", "text": "compress40", "parent": 72, "children": [], "start_point": {"row": 14, "column": 49}, "end_point": {"row": 14, "column": 59}}, {"id": 76, "type": "else_clause", "text": "else if (strcmp(argv[i], \"-d\") == 0) {\n compress_or_decompress = decompress40;\n } else if (*argv[i] == '-') {\n fprintf(stderr, \"%s: unknown option '%s'\\n\",\n argv[0], argv[i]);\n exit(1);\n } else if (argc - i > 2) {\n fprintf(stderr, \"Usage: %s -d [filename]\\n\"\n \" %s -c [filename]\\n\",\n argv[0], argv[0]);\n exit(1);\n } else {\n break;\n }", "parent": 60, "children": [77], "start_point": {"row": 15, "column": 18}, "end_point": {"row": 28, "column": 17}}, {"id": 77, "type": "if_statement", "text": "if (strcmp(argv[i], \"-d\") == 0) {\n compress_or_decompress = decompress40;\n } else if (*argv[i] == '-') {\n fprintf(stderr, \"%s: unknown option '%s'\\n\",\n argv[0], argv[i]);\n exit(1);\n } else if (argc - i > 2) {\n fprintf(stderr, \"Usage: %s -d [filename]\\n\"\n \" %s -c [filename]\\n\",\n argv[0], argv[0]);\n exit(1);\n } else {\n break;\n }", "parent": 76, "children": [78, 93], "start_point": {"row": 15, "column": 23}, "end_point": {"row": 28, "column": 17}}, {"id": 78, "type": "parenthesized_expression", "text": "(strcmp(argv[i], \"-d\") == 0)", "parent": 77, "children": [79], "start_point": {"row": 15, "column": 26}, "end_point": {"row": 15, "column": 54}}, {"id": 79, "type": "binary_expression", "text": "strcmp(argv[i], \"-d\") == 0", "parent": 78, "children": [80, 87, 88], "start_point": {"row": 15, "column": 27}, "end_point": {"row": 15, "column": 53}}, {"id": 80, "type": "call_expression", "text": "strcmp(argv[i], \"-d\")", "parent": 79, "children": [81, 82], "start_point": {"row": 15, "column": 27}, "end_point": {"row": 15, "column": 48}}, {"id": 81, "type": "identifier", "text": "strcmp", "parent": 80, "children": [], "start_point": {"row": 15, "column": 27}, "end_point": {"row": 15, "column": 33}}, {"id": 82, "type": "argument_list", "text": "(argv[i], \"-d\")", "parent": 80, "children": [83, 86], "start_point": {"row": 15, "column": 33}, "end_point": {"row": 15, "column": 48}}, {"id": 83, "type": "subscript_expression", "text": "argv[i]", "parent": 82, "children": [84, 85], "start_point": {"row": 15, "column": 34}, "end_point": {"row": 15, "column": 41}}, {"id": 84, "type": "identifier", "text": "argv", "parent": 83, "children": [], "start_point": {"row": 15, "column": 34}, "end_point": {"row": 15, "column": 38}}, {"id": 85, "type": "identifier", "text": "i", "parent": 83, "children": [], "start_point": {"row": 15, "column": 39}, "end_point": {"row": 15, "column": 40}}, {"id": 86, "type": "string_literal", "text": "\"-d\"", "parent": 82, "children": [], "start_point": {"row": 15, "column": 43}, "end_point": {"row": 15, "column": 47}}, {"id": 87, "type": "==", "text": "==", "parent": 79, "children": [], "start_point": {"row": 15, "column": 49}, "end_point": {"row": 15, "column": 51}}, {"id": 88, "type": "number_literal", "text": "0", "parent": 79, "children": [], "start_point": {"row": 15, "column": 52}, "end_point": {"row": 15, "column": 53}}, {"id": 89, "type": "assignment_expression", "text": "compress_or_decompress = decompress40", "parent": 77, "children": [90, 91, 92], "start_point": {"row": 16, "column": 24}, "end_point": {"row": 16, "column": 61}}, {"id": 90, "type": "identifier", "text": "compress_or_decompress", "parent": 89, "children": [], "start_point": {"row": 16, "column": 24}, "end_point": {"row": 16, "column": 46}}, {"id": 91, "type": "=", "text": "=", "parent": 89, "children": [], "start_point": {"row": 16, "column": 47}, "end_point": {"row": 16, "column": 48}}, {"id": 92, "type": "identifier", "text": "decompress40", "parent": 89, "children": [], "start_point": {"row": 16, "column": 49}, "end_point": {"row": 16, "column": 61}}, {"id": 93, "type": "else_clause", "text": "else if (*argv[i] == '-') {\n fprintf(stderr, \"%s: unknown option '%s'\\n\",\n argv[0], argv[i]);\n exit(1);\n } else if (argc - i > 2) {\n fprintf(stderr, \"Usage: %s -d [filename]\\n\"\n \" %s -c [filename]\\n\",\n argv[0], argv[0]);\n exit(1);\n } else {\n break;\n }", "parent": 77, "children": [94], "start_point": {"row": 17, "column": 18}, "end_point": {"row": 28, "column": 17}}, {"id": 94, "type": "if_statement", "text": "if (*argv[i] == '-') {\n fprintf(stderr, \"%s: unknown option '%s'\\n\",\n argv[0], argv[i]);\n exit(1);\n } else if (argc - i > 2) {\n fprintf(stderr, \"Usage: %s -d [filename]\\n\"\n \" %s -c [filename]\\n\",\n argv[0], argv[0]);\n exit(1);\n } else {\n break;\n }", "parent": 93, "children": [95, 123], "start_point": {"row": 17, "column": 23}, "end_point": {"row": 28, "column": 17}}, {"id": 95, "type": "parenthesized_expression", "text": "(*argv[i] == '-')", "parent": 94, "children": [96], "start_point": {"row": 17, "column": 26}, "end_point": {"row": 17, "column": 43}}, {"id": 96, "type": "binary_expression", "text": "*argv[i] == '-'", "parent": 95, "children": [97, 102, 103], "start_point": {"row": 17, "column": 27}, "end_point": {"row": 17, "column": 42}}, {"id": 97, "type": "pointer_expression", "text": "*argv[i]", "parent": 96, "children": [98, 99], "start_point": {"row": 17, "column": 27}, "end_point": {"row": 17, "column": 35}}, {"id": 98, "type": "*", "text": "*", "parent": 97, "children": [], "start_point": {"row": 17, "column": 27}, "end_point": {"row": 17, "column": 28}}, {"id": 99, "type": "subscript_expression", "text": "argv[i]", "parent": 97, "children": [100, 101], "start_point": {"row": 17, "column": 28}, "end_point": {"row": 17, "column": 35}}, {"id": 100, "type": "identifier", "text": "argv", "parent": 99, "children": [], "start_point": {"row": 17, "column": 28}, "end_point": {"row": 17, "column": 32}}, {"id": 101, "type": "identifier", "text": "i", "parent": 99, "children": [], "start_point": {"row": 17, "column": 33}, "end_point": {"row": 17, "column": 34}}, {"id": 102, "type": "==", "text": "==", "parent": 96, "children": [], "start_point": {"row": 17, "column": 36}, "end_point": {"row": 17, "column": 38}}, {"id": 103, "type": "char_literal", "text": "'-'", "parent": 96, "children": [104, 105, 106], "start_point": {"row": 17, "column": 39}, "end_point": {"row": 17, "column": 42}}, {"id": 104, "type": "'", "text": "'", "parent": 103, "children": [], "start_point": {"row": 17, "column": 39}, "end_point": {"row": 17, "column": 40}}, {"id": 105, "type": "character", "text": "-", "parent": 103, "children": [], "start_point": {"row": 17, "column": 40}, "end_point": {"row": 17, "column": 41}}, {"id": 106, "type": "'", "text": "'", "parent": 103, "children": [], "start_point": {"row": 17, "column": 41}, "end_point": {"row": 17, "column": 42}}, {"id": 107, "type": "call_expression", "text": "fprintf(stderr, \"%s: unknown option '%s'\\n\",\n argv[0], argv[i])", "parent": 94, "children": [108, 109], "start_point": {"row": 18, "column": 24}, "end_point": {"row": 19, "column": 49}}, {"id": 108, "type": "identifier", "text": "fprintf", "parent": 107, "children": [], "start_point": {"row": 18, "column": 24}, "end_point": {"row": 18, "column": 31}}, {"id": 109, "type": "argument_list", "text": "(stderr, \"%s: unknown option '%s'\\n\",\n argv[0], argv[i])", "parent": 107, "children": [110, 111, 113, 116], "start_point": {"row": 18, "column": 31}, "end_point": {"row": 19, "column": 49}}, {"id": 110, "type": "identifier", "text": "stderr", "parent": 109, "children": [], "start_point": {"row": 18, "column": 32}, "end_point": {"row": 18, "column": 38}}, {"id": 111, "type": "string_literal", "text": "\"%s: unknown option '%s'\\n\"", "parent": 109, "children": [112], "start_point": {"row": 18, "column": 40}, "end_point": {"row": 18, "column": 67}}, {"id": 112, "type": "escape_sequence", "text": "\\n", "parent": 111, "children": [], "start_point": {"row": 18, "column": 64}, "end_point": {"row": 18, "column": 66}}, {"id": 113, "type": "subscript_expression", "text": "argv[0]", "parent": 109, "children": [114, 115], "start_point": {"row": 19, "column": 32}, "end_point": {"row": 19, "column": 39}}, {"id": 114, "type": "identifier", "text": "argv", "parent": 113, "children": [], "start_point": {"row": 19, "column": 32}, "end_point": {"row": 19, "column": 36}}, {"id": 115, "type": "number_literal", "text": "0", "parent": 113, "children": [], "start_point": {"row": 19, "column": 37}, "end_point": {"row": 19, "column": 38}}, {"id": 116, "type": "subscript_expression", "text": "argv[i]", "parent": 109, "children": [117, 118], "start_point": {"row": 19, "column": 41}, "end_point": {"row": 19, "column": 48}}, {"id": 117, "type": "identifier", "text": "argv", "parent": 116, "children": [], "start_point": {"row": 19, "column": 41}, "end_point": {"row": 19, "column": 45}}, {"id": 118, "type": "identifier", "text": "i", "parent": 116, "children": [], "start_point": {"row": 19, "column": 46}, "end_point": {"row": 19, "column": 47}}, {"id": 119, "type": "call_expression", "text": "exit(1)", "parent": 94, "children": [120, 121], "start_point": {"row": 20, "column": 24}, "end_point": {"row": 20, "column": 31}}, {"id": 120, "type": "identifier", "text": "exit", "parent": 119, "children": [], "start_point": {"row": 20, "column": 24}, "end_point": {"row": 20, "column": 28}}, {"id": 121, "type": "argument_list", "text": "(1)", "parent": 119, "children": [122], "start_point": {"row": 20, "column": 28}, "end_point": {"row": 20, "column": 31}}, {"id": 122, "type": "number_literal", "text": "1", "parent": 121, "children": [], "start_point": {"row": 20, "column": 29}, "end_point": {"row": 20, "column": 30}}, {"id": 123, "type": "else_clause", "text": "else if (argc - i > 2) {\n fprintf(stderr, \"Usage: %s -d [filename]\\n\"\n \" %s -c [filename]\\n\",\n argv[0], argv[0]);\n exit(1);\n } else {\n break;\n }", "parent": 94, "children": [124], "start_point": {"row": 21, "column": 18}, "end_point": {"row": 28, "column": 17}}, {"id": 124, "type": "if_statement", "text": "if (argc - i > 2) {\n fprintf(stderr, \"Usage: %s -d [filename]\\n\"\n \" %s -c [filename]\\n\",\n argv[0], argv[0]);\n exit(1);\n } else {\n break;\n }", "parent": 123, "children": [125, 152], "start_point": {"row": 21, "column": 23}, "end_point": {"row": 28, "column": 17}}, {"id": 125, "type": "parenthesized_expression", "text": "(argc - i > 2)", "parent": 124, "children": [126], "start_point": {"row": 21, "column": 26}, "end_point": {"row": 21, "column": 40}}, {"id": 126, "type": "binary_expression", "text": "argc - i > 2", "parent": 125, "children": [127, 131, 132], "start_point": {"row": 21, "column": 27}, "end_point": {"row": 21, "column": 39}}, {"id": 127, "type": "binary_expression", "text": "argc - i", "parent": 126, "children": [128, 129, 130], "start_point": {"row": 21, "column": 27}, "end_point": {"row": 21, "column": 35}}, {"id": 128, "type": "identifier", "text": "argc", "parent": 127, "children": [], "start_point": {"row": 21, "column": 27}, "end_point": {"row": 21, "column": 31}}, {"id": 129, "type": "-", "text": "-", "parent": 127, "children": [], "start_point": {"row": 21, "column": 32}, "end_point": {"row": 21, "column": 33}}, {"id": 130, "type": "identifier", "text": "i", "parent": 127, "children": [], "start_point": {"row": 21, "column": 34}, "end_point": {"row": 21, "column": 35}}, {"id": 131, "type": ">", "text": ">", "parent": 126, "children": [], "start_point": {"row": 21, "column": 36}, "end_point": {"row": 21, "column": 37}}, {"id": 132, "type": "number_literal", "text": "2", "parent": 126, "children": [], "start_point": {"row": 21, "column": 38}, "end_point": {"row": 21, "column": 39}}, {"id": 133, "type": "call_expression", "text": "fprintf(stderr, \"Usage: %s -d [filename]\\n\"\n \" %s -c [filename]\\n\",\n argv[0], argv[0])", "parent": 124, "children": [134, 135], "start_point": {"row": 22, "column": 24}, "end_point": {"row": 24, "column": 49}}, {"id": 134, "type": "identifier", "text": "fprintf", "parent": 133, "children": [], "start_point": {"row": 22, "column": 24}, "end_point": {"row": 22, "column": 31}}, {"id": 135, "type": "argument_list", "text": "(stderr, \"Usage: %s -d [filename]\\n\"\n \" %s -c [filename]\\n\",\n argv[0], argv[0])", "parent": 133, "children": [136, 137, 142, 145], "start_point": {"row": 22, "column": 31}, "end_point": {"row": 24, "column": 49}}, {"id": 136, "type": "identifier", "text": "stderr", "parent": 135, "children": [], "start_point": {"row": 22, "column": 32}, "end_point": {"row": 22, "column": 38}}, {"id": 137, "type": "concatenated_string", "text": "\"Usage: %s -d [filename]\\n\"\n \" %s -c [filename]\\n\"", "parent": 135, "children": [138, 140], "start_point": {"row": 22, "column": 40}, "end_point": {"row": 23, "column": 59}}, {"id": 138, "type": "string_literal", "text": "\"Usage: %s -d [filename]\\n\"", "parent": 137, "children": [139], "start_point": {"row": 22, "column": 40}, "end_point": {"row": 22, "column": 67}}, {"id": 139, "type": "escape_sequence", "text": "\\n", "parent": 138, "children": [], "start_point": {"row": 22, "column": 64}, "end_point": {"row": 22, "column": 66}}, {"id": 140, "type": "string_literal", "text": "\" %s -c [filename]\\n\"", "parent": 137, "children": [141], "start_point": {"row": 23, "column": 32}, "end_point": {"row": 23, "column": 59}}, {"id": 141, "type": "escape_sequence", "text": "\\n", "parent": 140, "children": [], "start_point": {"row": 23, "column": 56}, "end_point": {"row": 23, "column": 58}}, {"id": 142, "type": "subscript_expression", "text": "argv[0]", "parent": 135, "children": [143, 144], "start_point": {"row": 24, "column": 32}, "end_point": {"row": 24, "column": 39}}, {"id": 143, "type": "identifier", "text": "argv", "parent": 142, "children": [], "start_point": {"row": 24, "column": 32}, "end_point": {"row": 24, "column": 36}}, {"id": 144, "type": "number_literal", "text": "0", "parent": 142, "children": [], "start_point": {"row": 24, "column": 37}, "end_point": {"row": 24, "column": 38}}, {"id": 145, "type": "subscript_expression", "text": "argv[0]", "parent": 135, "children": [146, 147], "start_point": {"row": 24, "column": 41}, "end_point": {"row": 24, "column": 48}}, {"id": 146, "type": "identifier", "text": "argv", "parent": 145, "children": [], "start_point": {"row": 24, "column": 41}, "end_point": {"row": 24, "column": 45}}, {"id": 147, "type": "number_literal", "text": "0", "parent": 145, "children": [], "start_point": {"row": 24, "column": 46}, "end_point": {"row": 24, "column": 47}}, {"id": 148, "type": "call_expression", "text": "exit(1)", "parent": 124, "children": [149, 150], "start_point": {"row": 25, "column": 24}, "end_point": {"row": 25, "column": 31}}, {"id": 149, "type": "identifier", "text": "exit", "parent": 148, "children": [], "start_point": {"row": 25, "column": 24}, "end_point": {"row": 25, "column": 28}}, {"id": 150, "type": "argument_list", "text": "(1)", "parent": 148, "children": [151], "start_point": {"row": 25, "column": 28}, "end_point": {"row": 25, "column": 31}}, {"id": 151, "type": "number_literal", "text": "1", "parent": 150, "children": [], "start_point": {"row": 25, "column": 29}, "end_point": {"row": 25, "column": 30}}, {"id": 152, "type": "else_clause", "text": "else {\n break;\n }", "parent": 124, "children": [], "start_point": {"row": 26, "column": 18}, "end_point": {"row": 28, "column": 17}}, {"id": 153, "type": "break_statement", "text": "break;", "parent": 152, "children": [154], "start_point": {"row": 27, "column": 24}, "end_point": {"row": 27, "column": 30}}, {"id": 154, "type": "break", "text": "break", "parent": 153, "children": [], "start_point": {"row": 27, "column": 24}, "end_point": {"row": 27, "column": 29}}, {"id": 155, "type": "call_expression", "text": "assert(argc - i <= 1)", "parent": 31, "children": [156, 157], "start_point": {"row": 30, "column": 8}, "end_point": {"row": 30, "column": 29}}, {"id": 156, "type": "identifier", "text": "assert", "parent": 155, "children": [], "start_point": {"row": 30, "column": 8}, "end_point": {"row": 30, "column": 14}}, {"id": 157, "type": "argument_list", "text": "(argc - i <= 1)", "parent": 155, "children": [158], "start_point": {"row": 30, "column": 14}, "end_point": {"row": 30, "column": 29}}, {"id": 158, "type": "binary_expression", "text": "argc - i <= 1", "parent": 157, "children": [159, 163, 164], "start_point": {"row": 30, "column": 15}, "end_point": {"row": 30, "column": 28}}, {"id": 159, "type": "binary_expression", "text": "argc - i", "parent": 158, "children": [160, 161, 162], "start_point": {"row": 30, "column": 15}, "end_point": {"row": 30, "column": 23}}, {"id": 160, "type": "identifier", "text": "argc", "parent": 159, "children": [], "start_point": {"row": 30, "column": 15}, "end_point": {"row": 30, "column": 19}}, {"id": 161, "type": "-", "text": "-", "parent": 159, "children": [], "start_point": {"row": 30, "column": 20}, "end_point": {"row": 30, "column": 21}}, {"id": 162, "type": "identifier", "text": "i", "parent": 159, "children": [], "start_point": {"row": 30, "column": 22}, "end_point": {"row": 30, "column": 23}}, {"id": 163, "type": "<=", "text": "<=", "parent": 158, "children": [], "start_point": {"row": 30, "column": 24}, "end_point": {"row": 30, "column": 26}}, {"id": 164, "type": "number_literal", "text": "1", "parent": 158, "children": [], "start_point": {"row": 30, "column": 27}, "end_point": {"row": 30, "column": 28}}, {"id": 165, "type": "if_statement", "text": "if (i < argc) {\n FILE *fp = fopen(argv[i], \"r\");\n assert(fp != NULL);\n compress_or_decompress(fp);\n fclose(fp);\n } else {\n compress_or_decompress(stdin);\n }", "parent": 31, "children": [166, 201], "start_point": {"row": 31, "column": 8}, "end_point": {"row": 38, "column": 9}}, {"id": 166, "type": "parenthesized_expression", "text": "(i < argc)", "parent": 165, "children": [167], "start_point": {"row": 31, "column": 11}, "end_point": {"row": 31, "column": 21}}, {"id": 167, "type": "binary_expression", "text": "i < argc", "parent": 166, "children": [168, 169, 170], "start_point": {"row": 31, "column": 12}, "end_point": {"row": 31, "column": 20}}, {"id": 168, "type": "identifier", "text": "i", "parent": 167, "children": [], "start_point": {"row": 31, "column": 12}, "end_point": {"row": 31, "column": 13}}, {"id": 169, "type": "<", "text": "<", "parent": 167, "children": [], "start_point": {"row": 31, "column": 14}, "end_point": {"row": 31, "column": 15}}, {"id": 170, "type": "identifier", "text": "argc", "parent": 167, "children": [], "start_point": {"row": 31, "column": 16}, "end_point": {"row": 31, "column": 20}}, {"id": 171, "type": "declaration", "text": "FILE *fp = fopen(argv[i], \"r\");", "parent": 165, "children": [172, 173], "start_point": {"row": 32, "column": 16}, "end_point": {"row": 32, "column": 47}}, {"id": 172, "type": "type_identifier", "text": "FILE", "parent": 171, "children": [], "start_point": {"row": 32, "column": 16}, "end_point": {"row": 32, "column": 20}}, {"id": 173, "type": "init_declarator", "text": "*fp = fopen(argv[i], \"r\")", "parent": 171, "children": [174, 177, 178], "start_point": {"row": 32, "column": 21}, "end_point": {"row": 32, "column": 46}}, {"id": 174, "type": "pointer_declarator", "text": "*fp", "parent": 173, "children": [175, 176], "start_point": {"row": 32, "column": 21}, "end_point": {"row": 32, "column": 24}}, {"id": 175, "type": "*", "text": "*", "parent": 174, "children": [], "start_point": {"row": 32, "column": 21}, "end_point": {"row": 32, "column": 22}}, {"id": 176, "type": "identifier", "text": "fp", "parent": 174, "children": [], "start_point": {"row": 32, "column": 22}, "end_point": {"row": 32, "column": 24}}, {"id": 177, "type": "=", "text": "=", "parent": 173, "children": [], "start_point": {"row": 32, "column": 25}, "end_point": {"row": 32, "column": 26}}, {"id": 178, "type": "call_expression", "text": "fopen(argv[i], \"r\")", "parent": 173, "children": [179, 180], "start_point": {"row": 32, "column": 27}, "end_point": {"row": 32, "column": 46}}, {"id": 179, "type": "identifier", "text": "fopen", "parent": 178, "children": [], "start_point": {"row": 32, "column": 27}, "end_point": {"row": 32, "column": 32}}, {"id": 180, "type": "argument_list", "text": "(argv[i], \"r\")", "parent": 178, "children": [181, 184], "start_point": {"row": 32, "column": 32}, "end_point": {"row": 32, "column": 46}}, {"id": 181, "type": "subscript_expression", "text": "argv[i]", "parent": 180, "children": [182, 183], "start_point": {"row": 32, "column": 33}, "end_point": {"row": 32, "column": 40}}, {"id": 182, "type": "identifier", "text": "argv", "parent": 181, "children": [], "start_point": {"row": 32, "column": 33}, "end_point": {"row": 32, "column": 37}}, {"id": 183, "type": "identifier", "text": "i", "parent": 181, "children": [], "start_point": {"row": 32, "column": 38}, "end_point": {"row": 32, "column": 39}}, {"id": 184, "type": "string_literal", "text": "\"r\"", "parent": 180, "children": [], "start_point": {"row": 32, "column": 42}, "end_point": {"row": 32, "column": 45}}, {"id": 185, "type": "call_expression", "text": "assert(fp != NULL)", "parent": 165, "children": [186, 187], "start_point": {"row": 33, "column": 16}, "end_point": {"row": 33, "column": 34}}, {"id": 186, "type": "identifier", "text": "assert", "parent": 185, "children": [], "start_point": {"row": 33, "column": 16}, "end_point": {"row": 33, "column": 22}}, {"id": 187, "type": "argument_list", "text": "(fp != NULL)", "parent": 185, "children": [188], "start_point": {"row": 33, "column": 22}, "end_point": {"row": 33, "column": 34}}, {"id": 188, "type": "binary_expression", "text": "fp != NULL", "parent": 187, "children": [189, 190, 191], "start_point": {"row": 33, "column": 23}, "end_point": {"row": 33, "column": 33}}, {"id": 189, "type": "identifier", "text": "fp", "parent": 188, "children": [], "start_point": {"row": 33, "column": 23}, "end_point": {"row": 33, "column": 25}}, {"id": 190, "type": "!=", "text": "!=", "parent": 188, "children": [], "start_point": {"row": 33, "column": 26}, "end_point": {"row": 33, "column": 28}}, {"id": 191, "type": "null", "text": "NULL", "parent": 188, "children": [192], "start_point": {"row": 33, "column": 29}, "end_point": {"row": 33, "column": 33}}, {"id": 192, "type": "NULL", "text": "NULL", "parent": 191, "children": [], "start_point": {"row": 33, "column": 29}, "end_point": {"row": 33, "column": 33}}, {"id": 193, "type": "call_expression", "text": "compress_or_decompress(fp)", "parent": 165, "children": [194, 195], "start_point": {"row": 34, "column": 16}, "end_point": {"row": 34, "column": 42}}, {"id": 194, "type": "identifier", "text": "compress_or_decompress", "parent": 193, "children": [], "start_point": {"row": 34, "column": 16}, "end_point": {"row": 34, "column": 38}}, {"id": 195, "type": "argument_list", "text": "(fp)", "parent": 193, "children": [196], "start_point": {"row": 34, "column": 38}, "end_point": {"row": 34, "column": 42}}, {"id": 196, "type": "identifier", "text": "fp", "parent": 195, "children": [], "start_point": {"row": 34, "column": 39}, "end_point": {"row": 34, "column": 41}}, {"id": 197, "type": "call_expression", "text": "fclose(fp)", "parent": 165, "children": [198, 199], "start_point": {"row": 35, "column": 16}, "end_point": {"row": 35, "column": 26}}, {"id": 198, "type": "identifier", "text": "fclose", "parent": 197, "children": [], "start_point": {"row": 35, "column": 16}, "end_point": {"row": 35, "column": 22}}, {"id": 199, "type": "argument_list", "text": "(fp)", "parent": 197, "children": [200], "start_point": {"row": 35, "column": 22}, "end_point": {"row": 35, "column": 26}}, {"id": 200, "type": "identifier", "text": "fp", "parent": 199, "children": [], "start_point": {"row": 35, "column": 23}, "end_point": {"row": 35, "column": 25}}, {"id": 201, "type": "else_clause", "text": "else {\n compress_or_decompress(stdin);\n }", "parent": 165, "children": [], "start_point": {"row": 36, "column": 10}, "end_point": {"row": 38, "column": 9}}, {"id": 202, "type": "call_expression", "text": "compress_or_decompress(stdin)", "parent": 201, "children": [203, 204], "start_point": {"row": 37, "column": 16}, "end_point": {"row": 37, "column": 45}}, {"id": 203, "type": "identifier", "text": "compress_or_decompress", "parent": 202, "children": [], "start_point": {"row": 37, "column": 16}, "end_point": {"row": 37, "column": 38}}, {"id": 204, "type": "argument_list", "text": "(stdin)", "parent": 202, "children": [205], "start_point": {"row": 37, "column": 38}, "end_point": {"row": 37, "column": 45}}, {"id": 205, "type": "identifier", "text": "stdin", "parent": 204, "children": [], "start_point": {"row": 37, "column": 39}, "end_point": {"row": 37, "column": 44}}]}, "node_categories": {"declarations": {"functions": [18, 31, 33], "variables": [15, 24, 36, 39, 45, 171], "classes": [], "imports": [0, 1, 3, 4, 6, 7, 9, 10, 12, 13], "modules": [], "enums": []}, "statements": {"expressions": [53, 57, 61, 62, 63, 66, 78, 79, 80, 83, 95, 96, 97, 99, 107, 113, 116, 119, 125, 126, 127, 133, 142, 145, 148, 155, 158, 159, 166, 167, 178, 181, 185, 188, 193, 197, 202], "assignments": [49, 72, 89], "loops": [48], "conditionals": [22, 25, 28, 30, 34, 38, 44, 47, 50, 54, 56, 58, 60, 64, 67, 68, 73, 75, 77, 81, 84, 85, 90, 92, 94, 100, 101, 108, 110, 114, 117, 118, 120, 124, 128, 130, 134, 136, 143, 146, 149, 156, 160, 162, 165, 168, 170, 172, 176, 179, 182, 183, 186, 189, 194, 196, 198, 200, 203, 205], "returns": [], "exceptions": []}, "expressions": {"calls": [], "literals": [2, 5, 8, 11, 14, 52, 69, 71, 86, 88, 103, 111, 115, 122, 132, 137, 138, 140, 144, 147, 151, 164, 184], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [{"node_id": 18, "universal_type": "function", "name": "unknown", "text_snippet": "(*compress_or_decompress)(FILE *input)"}, {"node_id": 31, "universal_type": "function", "name": "main", "text_snippet": "int main(int argc, char *argv[])\n{\n int i;\n\n for (i = 1; i < argc; i++) {\n "}, {"node_id": 33, "universal_type": "function", "name": "unknown", "text_snippet": "main(int argc, char *argv[])"}], "class_declarations": [], "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 <stdio.h>\n"}, {"node_id": 7, "text": "#include"}, {"node_id": 9, "text": "#include \"assert.h\"\n"}, {"node_id": 10, "text": "#include"}, {"node_id": 12, "text": "#include \"compress40.h\"\n"}, {"node_id": 13, "text": "#include"}]}, "original_source_code": "#include <string.h>\n#include <stdlib.h>\n#include <stdio.h>\n#include \"assert.h\"\n#include \"compress40.h\"\n\nstatic void (*compress_or_decompress)(FILE *input) = compress40;\n\nint main(int argc, char *argv[])\n{\n int i;\n\n for (i = 1; i < argc; i++) {\n if (strcmp(argv[i], \"-c\") == 0) {\n compress_or_decompress = compress40;\n } else if (strcmp(argv[i], \"-d\") == 0) {\n compress_or_decompress = decompress40;\n } else if (*argv[i] == '-') {\n fprintf(stderr, \"%s: unknown option '%s'\\n\",\n argv[0], argv[i]);\n exit(1);\n } else if (argc - i > 2) {\n fprintf(stderr, \"Usage: %s -d [filename]\\n\"\n \" %s -c [filename]\\n\",\n argv[0], argv[0]);\n exit(1);\n } else {\n break;\n }\n }\n assert(argc - i <= 1); /* at most one file on command line */\n if (i < argc) {\n FILE *fp = fopen(argv[i], \"r\");\n assert(fp != NULL);\n compress_or_decompress(fp);\n fclose(fp);\n } else {\n compress_or_decompress(stdin);\n }\n}\n"}
80,029
c
// // #import <Foundation/Foundation.h> #import "ISAEnumValueConverter.h" @interface ISANSTextAlignmentValueConverter : ISAEnumValueConverter @end
20.14
7
(translation_unit) "//\n//\n\n#import <Foundation/Foundation.h>\n#import "ISAEnumValueConverter.h"\n\n\n@interface ISANSTextAlignmentValueConverter : ISAEnumValueConverter\n@end" (comment) "//" (comment) "//" (preproc_call) "#import <Foundation/Foundation.h>\n" (preproc_directive) "#import" (preproc_arg) "<Foundation/Foundation.h>" (preproc_call) "#import "ISAEnumValueConverter.h"\n" (preproc_directive) "#import" (preproc_arg) ""ISAEnumValueConverter.h"" (ERROR) "@interface ISANSTextAlignmentValueConverter : ISAEnumValueConverter\n@end" (ERROR) "@" (type_identifier) "interface" (identifier) "ISANSTextAlignmentValueConverter" (:) ":" (identifier) "ISAEnumValueConverter" (ERROR) "@" (identifier) "end"
17
3
{"language": "c", "success": true, "metadata": {"lines": 7, "avg_line_length": 20.14, "nodes": 12, "errors": 0, "source_hash": "61a042147d57ce0fa2d76584622d1ec3c6ab6637a12b2ae49d4b2c110e9bedf1", "categorized_nodes": 5}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import <Foundation/Foundation.h>\n", "parent": null, "children": [1, 2], "start_point": {"row": 3, "column": 0}, "end_point": {"row": 4, "column": 0}}, {"id": 1, "type": "preproc_directive", "text": "#import", "parent": 0, "children": [], "start_point": {"row": 3, "column": 0}, "end_point": {"row": 3, "column": 7}}, {"id": 2, "type": "preproc_arg", "text": "<Foundation/Foundation.h>", "parent": 0, "children": [], "start_point": {"row": 3, "column": 8}, "end_point": {"row": 3, "column": 33}}, {"id": 3, "type": "preproc_call", "text": "#import \"ISAEnumValueConverter.h\"\n", "parent": null, "children": [4, 5], "start_point": {"row": 4, "column": 0}, "end_point": {"row": 5, "column": 0}}, {"id": 4, "type": "preproc_directive", "text": "#import", "parent": 3, "children": [], "start_point": {"row": 4, "column": 0}, "end_point": {"row": 4, "column": 7}}, {"id": 5, "type": "preproc_arg", "text": "\"ISAEnumValueConverter.h\"", "parent": 3, "children": [], "start_point": {"row": 4, "column": 8}, "end_point": {"row": 4, "column": 33}}, {"id": 6, "type": "ERROR", "text": "@interface ISANSTextAlignmentValueConverter : ISAEnumValueConverter\n@end", "parent": null, "children": [7, 8, 9, 10, 11], "start_point": {"row": 7, "column": 0}, "end_point": {"row": 8, "column": 4}}, {"id": 7, "type": "ERROR", "text": "@", "parent": 6, "children": [], "start_point": {"row": 7, "column": 0}, "end_point": {"row": 7, "column": 1}}, {"id": 8, "type": "type_identifier", "text": "interface", "parent": 6, "children": [], "start_point": {"row": 7, "column": 1}, "end_point": {"row": 7, "column": 10}}, {"id": 9, "type": "identifier", "text": "ISANSTextAlignmentValueConverter", "parent": 6, "children": [], "start_point": {"row": 7, "column": 11}, "end_point": {"row": 7, "column": 43}}, {"id": 10, "type": "identifier", "text": "ISAEnumValueConverter", "parent": 6, "children": [], "start_point": {"row": 7, "column": 46}, "end_point": {"row": 7, "column": 67}}, {"id": 11, "type": "ERROR", "text": "@", "parent": 6, "children": [], "start_point": {"row": 8, "column": 0}, "end_point": {"row": 8, "column": 1}}]}, "node_categories": {"declarations": {"functions": [], "variables": [], "classes": [], "imports": [], "modules": [], "enums": []}, "statements": {"expressions": [], "assignments": [], "loops": [], "conditionals": [8, 9, 10], "returns": [], "exceptions": []}, "expressions": {"calls": [0, 3], "literals": [], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [], "class_declarations": [], "import_statements": []}, "original_source_code": "//\n//\n\n#import <Foundation/Foundation.h>\n#import \"ISAEnumValueConverter.h\"\n\n\n@interface ISANSTextAlignmentValueConverter : ISAEnumValueConverter\n@end"}
80,030
c
// // RecieveDataParser.h // // // Created by <NAME> on 2016/3/9. // Copyright © 2016年 Nuvoton. All rights reserved. // #import <Foundation/Foundation.h> #import "PlayerManager.h" @interface RecieveDataParser : NSObject{ PlayerManager *playerManager; } /** * parse socket read data buffer * * @param data pure nsdata from buffer * @param tag socket read/write tag, defined in SocketManager.h * * @return NSDictionary content: * "key" <=> "value" * type <=> return data type in NSString (e.g. ACK, JSON DATA, etc.) * json <=> json data stored in NSDictionary */ + (NSDictionary *)parseSocketReadData:(NSData *)data withTag:(int)tag; + (NSDictionary *)parseSocketReadDataLength:(NSData *)data withTag:(int)tag; @end
28.54
26
(translation_unit) "//\n// RecieveDataParser.h\n// \n//\n// Created by <NAME> on 2016/3/9.\n// Copyright © 2016年 Nuvoton. All rights reserved.\n//\n\n#import <Foundation/Foundation.h>\n#import "PlayerManager.h"\n@interface RecieveDataParser : NSObject{\n PlayerManager *playerManager;\n}\n/**\n * parse socket read data buffer\n *\n * @param data pure nsdata from buffer\n * @param tag socket read/write tag, defined in SocketManager.h\n *\n * @return NSDictionary content: \n * "key" <=> "value"\n * type <=> return data type in NSString (e.g. ACK, JSON DATA, etc.)\n * json <=> json data stored in NSDictionary\n */\n+ (NSDictionary *)parseSocketReadData:(NSData *)data withTag:(int)tag;\n+ (NSDictionary *)parseSocketReadDataLength:(NSData *)data withTag:(int)tag;\n\n@end\n" (comment) "//" (comment) "// RecieveDataParser.h" (comment) "// " (comment) "//" (comment) "// Created by <NAME> on 2016/3/9." (comment) "// Copyright © 2016年 Nuvoton. All rights reserved.\n//" (comment) "\n#" (preproc_call) "port <Foundation/Foundation.h>\n#im" (preproc_directive) "port <F" (preproc_arg) "undation/Foundation.h>\n#i" (preproc_call) "port "PlayerManager.h"\n@in" (preproc_directive) "port "P" (preproc_arg) "ayerManager.h"\n@i" (ERROR) "t" (ERROR) "t" (function_definition) "erface RecieveDataParser : NSObject{\n PlayerManager *playerManager;\n}\n/*" (type_identifier) "erface Re" (identifier) "ieveDataParser : " (ERROR) "SObject{\n " (:) "S" (identifier) "bject{\n " (compound_statement) " PlayerManager *playerManager;\n}\n/*" ({) " " (declaration) "yerManager *playerManager;\n}\n" (type_identifier) "yerManager *p" (pointer_declarator) "ayerManager;\n}" (*) "a" (identifier) "yerManager;\n}" (;) "\n" (}) "*" (comment) "\n * parse socket read data buffer\n *\n * @param data pure nsdata from buffer\n * @param tag socket read/write tag, defined in SocketManager.h\n *\n * @return NSDictionary content: \n * "key" <=> "value"\n * type <=> return data type in NSString (e.g. ACK, JSON DATA, etc.)\n * json <=> json data stored in NSDictionary\n */\n+ " (ERROR) "NSDictionary *)parseSocketReadData:(NSData *)data withTag:(int)tag" (binary_expression) "NSDictionary *)parseSocketReadData:(NSData *)data withTag:(i" (unary_expression) "NSDictionary *)parseSocketReadData:(N" (+) "N" (cast_expression) "Dictionary *)parseSocketReadData:(N" (() "D" (type_descriptor) "ictionary *)pa" (type_identifier) "ictionary *)" (abstract_pointer_declarator) "a" (*) "a" ()) "r" (identifier) "seSocketReadData:(N" (ERROR) "SData *)" (:) "S" (() "D" (identifier) "ata *)" (*) "a" (ERROR) "ta wi" ()) "t" (identifier) "a wi" (identifier) "hTag:(i" (:) "n" (() "t" (primitive_type) ")ta" ()) "g" (expression_statement) ";\n+ " (identifier) ";\n+" (;) " " (ERROR) "NSDictionary *)parseSocketReadDataLength:(NSData *)data withTag:(int)tag" (binary_expression) "NSDictionary *)parseSocketReadDataLength:(NSData *)data withTag:(i" (unary_expression) "NSDictionary *)parseSocketReadDataLength:(N" (+) "N" (cast_expression) "Dictionary *)parseSocketReadDataLength:(N" (() "D" (type_descriptor) "ictionary *)pa" (type_identifier) "ictionary *)" (abstract_pointer_declarator) "a" (*) "a" ()) "r" (identifier) "seSocketReadDataLength:(N" (ERROR) "SData *)" (:) "S" (() "D" (identifier) "ata *)" (*) "a" (ERROR) "ta wi" ()) "t" (identifier) "a wi" (identifier) "hTag:(i" (:) "n" (() "t" (primitive_type) ")ta" ()) "g" (expression_statement) ";\n\n@" (identifier) ";\n\n" (;) "@" (ERROR) "d" (ERROR) "d" (expression_statement) "\n" (identifier) "\n" (;) ""
93
11
{"language": "c", "success": true, "metadata": {"lines": 26, "avg_line_length": 28.54, "nodes": 56, "errors": 0, "source_hash": "0626f18f64aac0e460b0d279466235b4619c5bcbe9f7f27a0d8acb5b81cfc41d", "categorized_nodes": 27}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "port <Foundation/Foundation.h>\n#im", "parent": null, "children": [1, 2], "start_point": {"row": 8, "column": 0}, "end_point": {"row": 9, "column": 0}}, {"id": 1, "type": "preproc_directive", "text": "port <F", "parent": 0, "children": [], "start_point": {"row": 8, "column": 0}, "end_point": {"row": 8, "column": 7}}, {"id": 2, "type": "preproc_arg", "text": "undation/Foundation.h>\n#i", "parent": 0, "children": [], "start_point": {"row": 8, "column": 8}, "end_point": {"row": 8, "column": 33}}, {"id": 3, "type": "preproc_call", "text": "port \"PlayerManager.h\"\n@in", "parent": null, "children": [4, 5], "start_point": {"row": 9, "column": 0}, "end_point": {"row": 10, "column": 0}}, {"id": 4, "type": "preproc_directive", "text": "port \"P", "parent": 3, "children": [], "start_point": {"row": 9, "column": 0}, "end_point": {"row": 9, "column": 7}}, {"id": 5, "type": "preproc_arg", "text": "ayerManager.h\"\n@i", "parent": 3, "children": [], "start_point": {"row": 9, "column": 8}, "end_point": {"row": 9, "column": 25}}, {"id": 6, "type": "ERROR", "text": "t", "parent": null, "children": [7], "start_point": {"row": 10, "column": 0}, "end_point": {"row": 10, "column": 1}}, {"id": 7, "type": "ERROR", "text": "t", "parent": 6, "children": [], "start_point": {"row": 10, "column": 0}, "end_point": {"row": 10, "column": 1}}, {"id": 8, "type": "function_definition", "text": "erface RecieveDataParser : NSObject{\n PlayerManager *playerManager;\n}\n/*", "parent": null, "children": [9, 10, 11], "start_point": {"row": 10, "column": 1}, "end_point": {"row": 12, "column": 1}}, {"id": 9, "type": "type_identifier", "text": "erface Re", "parent": 8, "children": [], "start_point": {"row": 10, "column": 1}, "end_point": {"row": 10, "column": 10}}, {"id": 10, "type": "identifier", "text": "ieveDataParser : ", "parent": 8, "children": [], "start_point": {"row": 10, "column": 11}, "end_point": {"row": 10, "column": 28}}, {"id": 11, "type": "ERROR", "text": "SObject{\n ", "parent": 8, "children": [12], "start_point": {"row": 10, "column": 29}, "end_point": {"row": 10, "column": 39}}, {"id": 12, "type": "identifier", "text": "bject{\n ", "parent": 11, "children": [], "start_point": {"row": 10, "column": 31}, "end_point": {"row": 10, "column": 39}}, {"id": 13, "type": "declaration", "text": "yerManager *playerManager;\n}\n", "parent": 8, "children": [14, 15], "start_point": {"row": 11, "column": 4}, "end_point": {"row": 11, "column": 33}}, {"id": 14, "type": "type_identifier", "text": "yerManager *p", "parent": 13, "children": [], "start_point": {"row": 11, "column": 4}, "end_point": {"row": 11, "column": 17}}, {"id": 15, "type": "pointer_declarator", "text": "ayerManager;\n}", "parent": 13, "children": [16, 17], "start_point": {"row": 11, "column": 18}, "end_point": {"row": 11, "column": 32}}, {"id": 16, "type": "*", "text": "a", "parent": 15, "children": [], "start_point": {"row": 11, "column": 18}, "end_point": {"row": 11, "column": 19}}, {"id": 17, "type": "identifier", "text": "yerManager;\n}", "parent": 15, "children": [], "start_point": {"row": 11, "column": 19}, "end_point": {"row": 11, "column": 32}}, {"id": 18, "type": "ERROR", "text": "NSDictionary *)parseSocketReadData:(NSData *)data withTag:(int)tag", "parent": null, "children": [19, 34], "start_point": {"row": 24, "column": 0}, "end_point": {"row": 24, "column": 66}}, {"id": 19, "type": "binary_expression", "text": "NSDictionary *)parseSocketReadData:(NSData *)data withTag:(i", "parent": 18, "children": [20, 28, 30, 31, 33], "start_point": {"row": 24, "column": 0}, "end_point": {"row": 24, "column": 60}}, {"id": 20, "type": "unary_expression", "text": "NSDictionary *)parseSocketReadData:(N", "parent": 19, "children": [21, 22], "start_point": {"row": 24, "column": 0}, "end_point": {"row": 24, "column": 37}}, {"id": 21, "type": "+", "text": "N", "parent": 20, "children": [], "start_point": {"row": 24, "column": 0}, "end_point": {"row": 24, "column": 1}}, {"id": 22, "type": "cast_expression", "text": "Dictionary *)parseSocketReadData:(N", "parent": 20, "children": [23, 27], "start_point": {"row": 24, "column": 2}, "end_point": {"row": 24, "column": 37}}, {"id": 23, "type": "type_descriptor", "text": "ictionary *)pa", "parent": 22, "children": [24, 25], "start_point": {"row": 24, "column": 3}, "end_point": {"row": 24, "column": 17}}, {"id": 24, "type": "type_identifier", "text": "ictionary *)", "parent": 23, "children": [], "start_point": {"row": 24, "column": 3}, "end_point": {"row": 24, "column": 15}}, {"id": 25, "type": "abstract_pointer_declarator", "text": "a", "parent": 23, "children": [26], "start_point": {"row": 24, "column": 16}, "end_point": {"row": 24, "column": 17}}, {"id": 26, "type": "*", "text": "a", "parent": 25, "children": [], "start_point": {"row": 24, "column": 16}, "end_point": {"row": 24, "column": 17}}, {"id": 27, "type": "identifier", "text": "seSocketReadData:(N", "parent": 22, "children": [], "start_point": {"row": 24, "column": 18}, "end_point": {"row": 24, "column": 37}}, {"id": 28, "type": "ERROR", "text": "SData *)", "parent": 19, "children": [29], "start_point": {"row": 24, "column": 37}, "end_point": {"row": 24, "column": 45}}, {"id": 29, "type": "identifier", "text": "ata *)", "parent": 28, "children": [], "start_point": {"row": 24, "column": 39}, "end_point": {"row": 24, "column": 45}}, {"id": 30, "type": "*", "text": "a", "parent": 19, "children": [], "start_point": {"row": 24, "column": 46}, "end_point": {"row": 24, "column": 47}}, {"id": 31, "type": "ERROR", "text": "ta wi", "parent": 19, "children": [32], "start_point": {"row": 24, "column": 47}, "end_point": {"row": 24, "column": 52}}, {"id": 32, "type": "identifier", "text": "a wi", "parent": 31, "children": [], "start_point": {"row": 24, "column": 48}, "end_point": {"row": 24, "column": 52}}, {"id": 33, "type": "identifier", "text": "hTag:(i", "parent": 19, "children": [], "start_point": {"row": 24, "column": 53}, "end_point": {"row": 24, "column": 60}}, {"id": 34, "type": "primitive_type", "text": ")ta", "parent": 18, "children": [], "start_point": {"row": 24, "column": 62}, "end_point": {"row": 24, "column": 65}}, {"id": 35, "type": "identifier", "text": ";\n+", "parent": null, "children": [], "start_point": {"row": 24, "column": 66}, "end_point": {"row": 24, "column": 69}}, {"id": 36, "type": "ERROR", "text": "NSDictionary *)parseSocketReadDataLength:(NSData *)data withTag:(int)tag", "parent": null, "children": [37, 52], "start_point": {"row": 25, "column": 0}, "end_point": {"row": 25, "column": 72}}, {"id": 37, "type": "binary_expression", "text": "NSDictionary *)parseSocketReadDataLength:(NSData *)data withTag:(i", "parent": 36, "children": [38, 46, 48, 49, 51], "start_point": {"row": 25, "column": 0}, "end_point": {"row": 25, "column": 66}}, {"id": 38, "type": "unary_expression", "text": "NSDictionary *)parseSocketReadDataLength:(N", "parent": 37, "children": [39, 40], "start_point": {"row": 25, "column": 0}, "end_point": {"row": 25, "column": 43}}, {"id": 39, "type": "+", "text": "N", "parent": 38, "children": [], "start_point": {"row": 25, "column": 0}, "end_point": {"row": 25, "column": 1}}, {"id": 40, "type": "cast_expression", "text": "Dictionary *)parseSocketReadDataLength:(N", "parent": 38, "children": [41, 45], "start_point": {"row": 25, "column": 2}, "end_point": {"row": 25, "column": 43}}, {"id": 41, "type": "type_descriptor", "text": "ictionary *)pa", "parent": 40, "children": [42, 43], "start_point": {"row": 25, "column": 3}, "end_point": {"row": 25, "column": 17}}, {"id": 42, "type": "type_identifier", "text": "ictionary *)", "parent": 41, "children": [], "start_point": {"row": 25, "column": 3}, "end_point": {"row": 25, "column": 15}}, {"id": 43, "type": "abstract_pointer_declarator", "text": "a", "parent": 41, "children": [44], "start_point": {"row": 25, "column": 16}, "end_point": {"row": 25, "column": 17}}, {"id": 44, "type": "*", "text": "a", "parent": 43, "children": [], "start_point": {"row": 25, "column": 16}, "end_point": {"row": 25, "column": 17}}, {"id": 45, "type": "identifier", "text": "seSocketReadDataLength:(N", "parent": 40, "children": [], "start_point": {"row": 25, "column": 18}, "end_point": {"row": 25, "column": 43}}, {"id": 46, "type": "ERROR", "text": "SData *)", "parent": 37, "children": [47], "start_point": {"row": 25, "column": 43}, "end_point": {"row": 25, "column": 51}}, {"id": 47, "type": "identifier", "text": "ata *)", "parent": 46, "children": [], "start_point": {"row": 25, "column": 45}, "end_point": {"row": 25, "column": 51}}, {"id": 48, "type": "*", "text": "a", "parent": 37, "children": [], "start_point": {"row": 25, "column": 52}, "end_point": {"row": 25, "column": 53}}, {"id": 49, "type": "ERROR", "text": "ta wi", "parent": 37, "children": [50], "start_point": {"row": 25, "column": 53}, "end_point": {"row": 25, "column": 58}}, {"id": 50, "type": "identifier", "text": "a wi", "parent": 49, "children": [], "start_point": {"row": 25, "column": 54}, "end_point": {"row": 25, "column": 58}}, {"id": 51, "type": "identifier", "text": "hTag:(i", "parent": 37, "children": [], "start_point": {"row": 25, "column": 59}, "end_point": {"row": 25, "column": 66}}, {"id": 52, "type": "primitive_type", "text": ")ta", "parent": 36, "children": [], "start_point": {"row": 25, "column": 68}, "end_point": {"row": 25, "column": 71}}, {"id": 53, "type": "ERROR", "text": "d", "parent": null, "children": [54], "start_point": {"row": 27, "column": 0}, "end_point": {"row": 27, "column": 1}}, {"id": 54, "type": "ERROR", "text": "d", "parent": 53, "children": [], "start_point": {"row": 27, "column": 0}, "end_point": {"row": 27, "column": 1}}, {"id": 55, "type": "identifier", "text": "\n", "parent": null, "children": [], "start_point": {"row": 27, "column": 1}, "end_point": {"row": 27, "column": 4}}]}, "node_categories": {"declarations": {"functions": [8], "variables": [13], "classes": [], "imports": [], "modules": [], "enums": []}, "statements": {"expressions": [19, 20, 22, 37, 38, 40], "assignments": [], "loops": [], "conditionals": [9, 10, 12, 14, 17, 24, 27, 29, 32, 33, 35, 42, 45, 47, 50, 51, 55], "returns": [], "exceptions": []}, "expressions": {"calls": [0, 3], "literals": [], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [{"node_id": 8, "universal_type": "function", "name": "unknown", "text_snippet": "erface RecieveDataParser : NSObject{\n PlayerManager *playerManager;\n}\n/*"}], "class_declarations": [], "import_statements": []}, "original_source_code": "//\n// RecieveDataParser.h\n// \n//\n// Created by <NAME> on 2016/3/9.\n// Copyright \u00a9 2016\u5e74 Nuvoton. All rights reserved.\n//\n\n#import <Foundation/Foundation.h>\n#import \"PlayerManager.h\"\n@interface RecieveDataParser : NSObject{\n PlayerManager *playerManager;\n}\n/**\n * parse socket read data buffer\n *\n * @param data pure nsdata from buffer\n * @param tag socket read/write tag, defined in SocketManager.h\n *\n * @return NSDictionary content: \n * \"key\" <=> \"value\"\n * type <=> return data type in NSString (e.g. ACK, JSON DATA, etc.)\n * json <=> json data stored in NSDictionary\n */\n+ (NSDictionary *)parseSocketReadData:(NSData *)data withTag:(int)tag;\n+ (NSDictionary *)parseSocketReadDataLength:(NSData *)data withTag:(int)tag;\n\n@end\n"}
80,031
c
/* * CDDL HEADER START * * The contents of this file are subject to the terms of the * Common Development and Distribution License (the "License"). * You may not use this file except in compliance with the License. * * You can obtain a copy of the license at src/OPENSOLARIS.LICENSE * or http://www.opensolaris.org/os/licensing. * See the License for the specific language governing permissions * and limitations under the License. * * When distributing Covered Code, include this CDDL HEADER in each * file and include the License file at src/OPENSOLARIS.LICENSE. * If applicable, add the following below this CDDL HEADER, with the * fields enclosed by brackets "[]" replaced with your own identifying * information: Portions Copyright [yyyy] [name of copyright owner] * * CDDL HEADER END */ /* * Copyright (c) 1996 by Sun Microsystems, Inc. */ #include "common_han.h" #include "common_utf.h" /**** _ J O H A P 8 2 _ T O _ U T F 8 ****/ hcode_type _johap82_to_utf8(hcode_type ojh_code) { /* Only for Hangul code */ hcode_type utf_code; hcode_type unicode; unsigned int x, y, z; /* Hangul only conversion. */ if (ojh_code.code < 0xA421 || 0xF3BC < ojh_code.code) { utf_code.code = 0; /* Not Hangul */ return(utf_code); } x = ojh_code.johap.chosung - 0x0A; /* 0x0A = 'Kyoug' */ y = ojh_code.johap.joongsung; y = y - (y / 4 + 2); z = ojh_code.johap.jongsung - 1; if (x > 18 || y > 20 || z > 29) { utf_code.code = 0; /* Not Hangul */ return(utf_code); } unicode.code = (unsigned int)(x*588 + y*28 + z) + 0xAC00; /* 588 = 21(Joongsung Number) * 28(Jongsung Number) */ utf_code = _uni_to_utf8(unicode); return(utf_code); } /* end of hcode_type johap82_to_utf8(hcode_type ojh_code) */
32.62
52
(translation_unit) "/*\n * CDDL HEADER START\n *\n * The contents of this file are subject to the terms of the\n * Common Development and Distribution License (the "License").\n * You may not use this file except in compliance with the License.\n *\n * You can obtain a copy of the license at src/OPENSOLARIS.LICENSE\n * or http://www.opensolaris.org/os/licensing.\n * See the License for the specific language governing permissions\n * and limitations under the License.\n *\n * When distributing Covered Code, include this CDDL HEADER in each\n * file and include the License file at src/OPENSOLARIS.LICENSE.\n * If applicable, add the following below this CDDL HEADER, with the\n * fields enclosed by brackets "[]" replaced with your own identifying\n * information: Portions Copyright [yyyy] [name of copyright owner]\n *\n * CDDL HEADER END\n */\n/*\n * Copyright (c) 1996 by Sun Microsystems, Inc.\n */\n\n\n#include "common_han.h"\n#include "common_utf.h"\n\n/**** _ J O H A P 8 2 _ T O _ U T F 8 ****/\n\nhcode_type _johap82_to_utf8(hcode_type ojh_code)\n{\n /* Only for Hangul code */\n hcode_type utf_code;\n hcode_type unicode;\n unsigned int x, y, z;\n\n /* Hangul only conversion. */\n if (ojh_code.code < 0xA421 || 0xF3BC < ojh_code.code) {\n utf_code.code = 0; /* Not Hangul */\n return(utf_code);\n }\n\n x = ojh_code.johap.chosung - 0x0A; /* 0x0A = 'Kyoug' */\n y = ojh_code.johap.joongsung;\n y = y - (y / 4 + 2);\n z = ojh_code.johap.jongsung - 1;\n\n if (x > 18 || y > 20 || z > 29) {\n utf_code.code = 0; /* Not Hangul */\n return(utf_code);\n }\n\n unicode.code = (unsigned int)(x*588 + y*28 + z)\n + 0xAC00;\n /* 588 = 21(Joongsung Number) * 28(Jongsung Number) */\n\n utf_code = _uni_to_utf8(unicode);\n\n return(utf_code);\n\n} /* end of hcode_type johap82_to_utf8(hcode_type ojh_code) */\n" (comment) "/*\n * CDDL HEADER START\n *\n * The contents of this file are subject to the terms of the\n * Common Development and Distribution License (the "License").\n * You may not use this file except in compliance with the License.\n *\n * You can obtain a copy of the license at src/OPENSOLARIS.LICENSE\n * or http://www.opensolaris.org/os/licensing.\n * See the License for the specific language governing permissions\n * and limitations under the License.\n *\n * When distributing Covered Code, include this CDDL HEADER in each\n * file and include the License file at src/OPENSOLARIS.LICENSE.\n * If applicable, add the following below this CDDL HEADER, with the\n * fields enclosed by brackets "[]" replaced with your own identifying\n * information: Portions Copyright [yyyy] [name of copyright owner]\n *\n * CDDL HEADER END\n */" (comment) "/*\n * Copyright (c) 1996 by Sun Microsystems, Inc.\n */" (preproc_include) "#include "common_han.h"\n" (#include) "#include" (string_literal) ""common_han.h"" (") """ (string_content) "common_han.h" (") """ (preproc_include) "#include "common_utf.h"\n" (#include) "#include" (string_literal) ""common_utf.h"" (") """ (string_content) "common_utf.h" (") """ (comment) "/**** _ J O H A P 8 2 _ T O _ U T F 8 ****/" (function_definition) "hcode_type _johap82_to_utf8(hcode_type ojh_code)\n{\n /* Only for Hangul code */\n hcode_type utf_code;\n hcode_type unicode;\n unsigned int x, y, z;\n\n /* Hangul only conversion. */\n if (ojh_code.code < 0xA421 || 0xF3BC < ojh_code.code) {\n utf_code.code = 0; /* Not Hangul */\n return(utf_code);\n }\n\n x = ojh_code.johap.chosung - 0x0A; /* 0x0A = 'Kyoug' */\n y = ojh_code.johap.joongsung;\n y = y - (y / 4 + 2);\n z = ojh_code.johap.jongsung - 1;\n\n if (x > 18 || y > 20 || z > 29) {\n utf_code.code = 0; /* Not Hangul */\n return(utf_code);\n }\n\n unicode.code = (unsigned int)(x*588 + y*28 + z)\n + 0xAC00;\n /* 588 = 21(Joongsung Number) * 28(Jongsung Number) */\n\n utf_code = _uni_to_utf8(unicode);\n\n return(utf_code);\n\n}" (type_identifier) "hcode_type" (function_declarator) "_johap82_to_utf8(hcode_type ojh_code)" (identifier) "_johap82_to_utf8" (parameter_list) "(hcode_type ojh_code)" (() "(" (parameter_declaration) "hcode_type ojh_code" (type_identifier) "hcode_type" (identifier) "ojh_code" ()) ")" (compound_statement) "{\n /* Only for Hangul code */\n hcode_type utf_code;\n hcode_type unicode;\n unsigned int x, y, z;\n\n /* Hangul only conversion. */\n if (ojh_code.code < 0xA421 || 0xF3BC < ojh_code.code) {\n utf_code.code = 0; /* Not Hangul */\n return(utf_code);\n }\n\n x = ojh_code.johap.chosung - 0x0A; /* 0x0A = 'Kyoug' */\n y = ojh_code.johap.joongsung;\n y = y - (y / 4 + 2);\n z = ojh_code.johap.jongsung - 1;\n\n if (x > 18 || y > 20 || z > 29) {\n utf_code.code = 0; /* Not Hangul */\n return(utf_code);\n }\n\n unicode.code = (unsigned int)(x*588 + y*28 + z)\n + 0xAC00;\n /* 588 = 21(Joongsung Number) * 28(Jongsung Number) */\n\n utf_code = _uni_to_utf8(unicode);\n\n return(utf_code);\n\n}" ({) "{" (comment) "/* Only for Hangul code */" (declaration) "hcode_type utf_code;" (type_identifier) "hcode_type" (identifier) "utf_code" (;) ";" (declaration) "hcode_type unicode;" (type_identifier) "hcode_type" (identifier) "unicode" (;) ";" (declaration) "unsigned int x, y, z;" (sized_type_specifier) "unsigned int" (unsigned) "unsigned" (primitive_type) "int" (identifier) "x" (,) "," (identifier) "y" (,) "," (identifier) "z" (;) ";" (comment) "/* Hangul only conversion. */" (if_statement) "if (ojh_code.code < 0xA421 || 0xF3BC < ojh_code.code) {\n utf_code.code = 0; /* Not Hangul */\n return(utf_code);\n }" (if) "if" (parenthesized_expression) "(ojh_code.code < 0xA421 || 0xF3BC < ojh_code.code)" (() "(" (binary_expression) "ojh_code.code < 0xA421 || 0xF3BC < ojh_code.code" (binary_expression) "ojh_code.code < 0xA421" (field_expression) "ojh_code.code" (identifier) "ojh_code" (.) "." (field_identifier) "code" (<) "<" (number_literal) "0xA421" (||) "||" (binary_expression) "0xF3BC < ojh_code.code" (number_literal) "0xF3BC" (<) "<" (field_expression) "ojh_code.code" (identifier) "ojh_code" (.) "." (field_identifier) "code" ()) ")" (compound_statement) "{\n utf_code.code = 0; /* Not Hangul */\n return(utf_code);\n }" ({) "{" (expression_statement) "utf_code.code = 0;" (assignment_expression) "utf_code.code = 0" (field_expression) "utf_code.code" (identifier) "utf_code" (.) "." (field_identifier) "code" (=) "=" (number_literal) "0" (;) ";" (comment) "/* Not Hangul */" (return_statement) "return(utf_code);" (return) "return" (parenthesized_expression) "(utf_code)" (() "(" (identifier) "utf_code" ()) ")" (;) ";" (}) "}" (expression_statement) "x = ojh_code.johap.chosung - 0x0A;" (assignment_expression) "x = ojh_code.johap.chosung - 0x0A" (identifier) "x" (=) "=" (binary_expression) "ojh_code.johap.chosung - 0x0A" (field_expression) "ojh_code.johap.chosung" (field_expression) "ojh_code.johap" (identifier) "ojh_code" (.) "." (field_identifier) "johap" (.) "." (field_identifier) "chosung" (-) "-" (number_literal) "0x0A" (;) ";" (comment) "/* 0x0A = 'Kyoug' */" (expression_statement) "y = ojh_code.johap.joongsung;" (assignment_expression) "y = ojh_code.johap.joongsung" (identifier) "y" (=) "=" (field_expression) "ojh_code.johap.joongsung" (field_expression) "ojh_code.johap" (identifier) "ojh_code" (.) "." (field_identifier) "johap" (.) "." (field_identifier) "joongsung" (;) ";" (expression_statement) "y = y - (y / 4 + 2);" (assignment_expression) "y = y - (y / 4 + 2)" (identifier) "y" (=) "=" (binary_expression) "y - (y / 4 + 2)" (identifier) "y" (-) "-" (parenthesized_expression) "(y / 4 + 2)" (() "(" (binary_expression) "y / 4 + 2" (binary_expression) "y / 4" (identifier) "y" (/) "/" (number_literal) "4" (+) "+" (number_literal) "2" ()) ")" (;) ";" (expression_statement) "z = ojh_code.johap.jongsung - 1;" (assignment_expression) "z = ojh_code.johap.jongsung - 1" (identifier) "z" (=) "=" (binary_expression) "ojh_code.johap.jongsung - 1" (field_expression) "ojh_code.johap.jongsung" (field_expression) "ojh_code.johap" (identifier) "ojh_code" (.) "." (field_identifier) "johap" (.) "." (field_identifier) "jongsung" (-) "-" (number_literal) "1" (;) ";" (if_statement) "if (x > 18 || y > 20 || z > 29) {\n utf_code.code = 0; /* Not Hangul */\n return(utf_code);\n }" (if) "if" (parenthesized_expression) "(x > 18 || y > 20 || z > 29)" (() "(" (binary_expression) "x > 18 || y > 20 || z > 29" (binary_expression) "x > 18 || y > 20" (binary_expression) "x > 18" (identifier) "x" (>) ">" (number_literal) "18" (||) "||" (binary_expression) "y > 20" (identifier) "y" (>) ">" (number_literal) "20" (||) "||" (binary_expression) "z > 29" (identifier) "z" (>) ">" (number_literal) "29" ()) ")" (compound_statement) "{\n utf_code.code = 0; /* Not Hangul */\n return(utf_code);\n }" ({) "{" (expression_statement) "utf_code.code = 0;" (assignment_expression) "utf_code.code = 0" (field_expression) "utf_code.code" (identifier) "utf_code" (.) "." (field_identifier) "code" (=) "=" (number_literal) "0" (;) ";" (comment) "/* Not Hangul */" (return_statement) "return(utf_code);" (return) "return" (parenthesized_expression) "(utf_code)" (() "(" (identifier) "utf_code" ()) ")" (;) ";" (}) "}" (expression_statement) "unicode.code = (unsigned int)(x*588 + y*28 + z)\n + 0xAC00;" (assignment_expression) "unicode.code = (unsigned int)(x*588 + y*28 + z)\n + 0xAC00" (field_expression) "unicode.code" (identifier) "unicode" (.) "." (field_identifier) "code" (=) "=" (binary_expression) "(unsigned int)(x*588 + y*28 + z)\n + 0xAC00" (cast_expression) "(unsigned int)(x*588 + y*28 + z)" (() "(" (type_descriptor) "unsigned int" (sized_type_specifier) "unsigned int" (unsigned) "unsigned" (primitive_type) "int" ()) ")" (parenthesized_expression) "(x*588 + y*28 + z)" (() "(" (binary_expression) "x*588 + y*28 + z" (binary_expression) "x*588 + y*28" (binary_expression) "x*588" (identifier) "x" (*) "*" (number_literal) "588" (+) "+" (binary_expression) "y*28" (identifier) "y" (*) "*" (number_literal) "28" (+) "+" (identifier) "z" ()) ")" (+) "+" (number_literal) "0xAC00" (;) ";" (comment) "/* 588 = 21(Joongsung Number) * 28(Jongsung Number) */" (expression_statement) "utf_code = _uni_to_utf8(unicode);" (assignment_expression) "utf_code = _uni_to_utf8(unicode)" (identifier) "utf_code" (=) "=" (call_expression) "_uni_to_utf8(unicode)" (identifier) "_uni_to_utf8" (argument_list) "(unicode)" (() "(" (identifier) "unicode" ()) ")" (;) ";" (return_statement) "return(utf_code);" (return) "return" (parenthesized_expression) "(utf_code)" (() "(" (identifier) "utf_code" ()) ")" (;) ";" (}) "}" (comment) "/* end of hcode_type johap82_to_utf8(hcode_type ojh_code) */"
246
0
{"language": "c", "success": true, "metadata": {"lines": 52, "avg_line_length": 32.62, "nodes": 160, "errors": 0, "source_hash": "a18e2c59de670bf5273d2efc365d5b8db96711058b4ccdd1ef9f33447b25b4b1", "categorized_nodes": 127}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#include \"common_han.h\"\n", "parent": null, "children": [1, 2], "start_point": {"row": 25, "column": 0}, "end_point": {"row": 26, "column": 0}}, {"id": 1, "type": "#include", "text": "#include", "parent": 0, "children": [], "start_point": {"row": 25, "column": 0}, "end_point": {"row": 25, "column": 8}}, {"id": 2, "type": "string_literal", "text": "\"common_han.h\"", "parent": 0, "children": [], "start_point": {"row": 25, "column": 9}, "end_point": {"row": 25, "column": 23}}, {"id": 3, "type": "preproc_include", "text": "#include \"common_utf.h\"\n", "parent": null, "children": [4, 5], "start_point": {"row": 26, "column": 0}, "end_point": {"row": 27, "column": 0}}, {"id": 4, "type": "#include", "text": "#include", "parent": 3, "children": [], "start_point": {"row": 26, "column": 0}, "end_point": {"row": 26, "column": 8}}, {"id": 5, "type": "string_literal", "text": "\"common_utf.h\"", "parent": 3, "children": [], "start_point": {"row": 26, "column": 9}, "end_point": {"row": 26, "column": 23}}, {"id": 6, "type": "function_definition", "text": "hcode_type _johap82_to_utf8(hcode_type ojh_code)\n{\n\t/* Only for Hangul code */\n\thcode_type utf_code;\n\thcode_type unicode;\n\tunsigned int x, y, z;\n\n /* Hangul only conversion. */\n if (ojh_code.code < 0xA421 || 0xF3BC < ojh_code.code) {\n\t\tutf_code.code = 0;\t/* Not Hangul */\n\t\treturn(utf_code);\n\t}\n\n\tx = ojh_code.johap.chosung - 0x0A; /* 0x0A = 'Kyoug' */\n\ty = ojh_code.johap.joongsung;\n\ty = y - (y / 4 + 2);\n\tz = ojh_code.johap.jongsung - 1;\n\n\tif (x > 18 || y > 20 || z > 29) {\n\t\tutf_code.code = 0;\t/* Not Hangul */\n\t\treturn(utf_code);\n\t}\n\n\tunicode.code = (unsigned int)(x*588 + y*28 + z)\n\t\t\t+ 0xAC00;\n\t\t/* 588 = 21(Joongsung Number) * 28(Jongsung Number) */\n\n\tutf_code = _uni_to_utf8(unicode);\n\n\treturn(utf_code);\n\n}", "parent": null, "children": [7, 8], "start_point": {"row": 30, "column": 0}, "end_point": {"row": 61, "column": 1}}, {"id": 7, "type": "type_identifier", "text": "hcode_type", "parent": 6, "children": [], "start_point": {"row": 30, "column": 0}, "end_point": {"row": 30, "column": 10}}, {"id": 8, "type": "function_declarator", "text": "_johap82_to_utf8(hcode_type ojh_code)", "parent": 6, "children": [9, 10], "start_point": {"row": 30, "column": 11}, "end_point": {"row": 30, "column": 48}}, {"id": 9, "type": "identifier", "text": "_johap82_to_utf8", "parent": 8, "children": [], "start_point": {"row": 30, "column": 11}, "end_point": {"row": 30, "column": 27}}, {"id": 10, "type": "parameter_list", "text": "(hcode_type ojh_code)", "parent": 8, "children": [11], "start_point": {"row": 30, "column": 27}, "end_point": {"row": 30, "column": 48}}, {"id": 11, "type": "parameter_declaration", "text": "hcode_type ojh_code", "parent": 10, "children": [12, 13], "start_point": {"row": 30, "column": 28}, "end_point": {"row": 30, "column": 47}}, {"id": 12, "type": "type_identifier", "text": "hcode_type", "parent": 11, "children": [], "start_point": {"row": 30, "column": 28}, "end_point": {"row": 30, "column": 38}}, {"id": 13, "type": "identifier", "text": "ojh_code", "parent": 11, "children": [], "start_point": {"row": 30, "column": 39}, "end_point": {"row": 30, "column": 47}}, {"id": 14, "type": "declaration", "text": "hcode_type utf_code;", "parent": 6, "children": [15, 16], "start_point": {"row": 33, "column": 1}, "end_point": {"row": 33, "column": 21}}, {"id": 15, "type": "type_identifier", "text": "hcode_type", "parent": 14, "children": [], "start_point": {"row": 33, "column": 1}, "end_point": {"row": 33, "column": 11}}, {"id": 16, "type": "identifier", "text": "utf_code", "parent": 14, "children": [], "start_point": {"row": 33, "column": 12}, "end_point": {"row": 33, "column": 20}}, {"id": 17, "type": "declaration", "text": "hcode_type unicode;", "parent": 6, "children": [18, 19], "start_point": {"row": 34, "column": 1}, "end_point": {"row": 34, "column": 20}}, {"id": 18, "type": "type_identifier", "text": "hcode_type", "parent": 17, "children": [], "start_point": {"row": 34, "column": 1}, "end_point": {"row": 34, "column": 11}}, {"id": 19, "type": "identifier", "text": "unicode", "parent": 17, "children": [], "start_point": {"row": 34, "column": 12}, "end_point": {"row": 34, "column": 19}}, {"id": 20, "type": "declaration", "text": "unsigned int x, y, z;", "parent": 6, "children": [21, 24, 25, 26], "start_point": {"row": 35, "column": 1}, "end_point": {"row": 35, "column": 22}}, {"id": 21, "type": "sized_type_specifier", "text": "unsigned int", "parent": 20, "children": [22, 23], "start_point": {"row": 35, "column": 1}, "end_point": {"row": 35, "column": 13}}, {"id": 22, "type": "unsigned", "text": "unsigned", "parent": 21, "children": [], "start_point": {"row": 35, "column": 1}, "end_point": {"row": 35, "column": 9}}, {"id": 23, "type": "primitive_type", "text": "int", "parent": 21, "children": [], "start_point": {"row": 35, "column": 10}, "end_point": {"row": 35, "column": 13}}, {"id": 24, "type": "identifier", "text": "x", "parent": 20, "children": [], "start_point": {"row": 35, "column": 14}, "end_point": {"row": 35, "column": 15}}, {"id": 25, "type": "identifier", "text": "y", "parent": 20, "children": [], "start_point": {"row": 35, "column": 17}, "end_point": {"row": 35, "column": 18}}, {"id": 26, "type": "identifier", "text": "z", "parent": 20, "children": [], "start_point": {"row": 35, "column": 20}, "end_point": {"row": 35, "column": 21}}, {"id": 27, "type": "if_statement", "text": "if (ojh_code.code < 0xA421 || 0xF3BC < ojh_code.code) {\n\t\tutf_code.code = 0;\t/* Not Hangul */\n\t\treturn(utf_code);\n\t}", "parent": 6, "children": [28], "start_point": {"row": 38, "column": 8}, "end_point": {"row": 41, "column": 2}}, {"id": 28, "type": "parenthesized_expression", "text": "(ojh_code.code < 0xA421 || 0xF3BC < ojh_code.code)", "parent": 27, "children": [29], "start_point": {"row": 38, "column": 11}, "end_point": {"row": 38, "column": 61}}, {"id": 29, "type": "binary_expression", "text": "ojh_code.code < 0xA421 || 0xF3BC < ojh_code.code", "parent": 28, "children": [30, 36, 37], "start_point": {"row": 38, "column": 12}, "end_point": {"row": 38, "column": 60}}, {"id": 30, "type": "binary_expression", "text": "ojh_code.code < 0xA421", "parent": 29, "children": [31, 34, 35], "start_point": {"row": 38, "column": 12}, "end_point": {"row": 38, "column": 34}}, {"id": 31, "type": "field_expression", "text": "ojh_code.code", "parent": 30, "children": [32, 33], "start_point": {"row": 38, "column": 12}, "end_point": {"row": 38, "column": 25}}, {"id": 32, "type": "identifier", "text": "ojh_code", "parent": 31, "children": [], "start_point": {"row": 38, "column": 12}, "end_point": {"row": 38, "column": 20}}, {"id": 33, "type": "field_identifier", "text": "code", "parent": 31, "children": [], "start_point": {"row": 38, "column": 21}, "end_point": {"row": 38, "column": 25}}, {"id": 34, "type": "<", "text": "<", "parent": 30, "children": [], "start_point": {"row": 38, "column": 26}, "end_point": {"row": 38, "column": 27}}, {"id": 35, "type": "number_literal", "text": "0xA421", "parent": 30, "children": [], "start_point": {"row": 38, "column": 28}, "end_point": {"row": 38, "column": 34}}, {"id": 36, "type": "||", "text": "||", "parent": 29, "children": [], "start_point": {"row": 38, "column": 35}, "end_point": {"row": 38, "column": 37}}, {"id": 37, "type": "binary_expression", "text": "0xF3BC < ojh_code.code", "parent": 29, "children": [38, 39, 40], "start_point": {"row": 38, "column": 38}, "end_point": {"row": 38, "column": 60}}, {"id": 38, "type": "number_literal", "text": "0xF3BC", "parent": 37, "children": [], "start_point": {"row": 38, "column": 38}, "end_point": {"row": 38, "column": 44}}, {"id": 39, "type": "<", "text": "<", "parent": 37, "children": [], "start_point": {"row": 38, "column": 45}, "end_point": {"row": 38, "column": 46}}, {"id": 40, "type": "field_expression", "text": "ojh_code.code", "parent": 37, "children": [41, 42], "start_point": {"row": 38, "column": 47}, "end_point": {"row": 38, "column": 60}}, {"id": 41, "type": "identifier", "text": "ojh_code", "parent": 40, "children": [], "start_point": {"row": 38, "column": 47}, "end_point": {"row": 38, "column": 55}}, {"id": 42, "type": "field_identifier", "text": "code", "parent": 40, "children": [], "start_point": {"row": 38, "column": 56}, "end_point": {"row": 38, "column": 60}}, {"id": 43, "type": "assignment_expression", "text": "utf_code.code = 0", "parent": 27, "children": [44, 47, 48], "start_point": {"row": 39, "column": 2}, "end_point": {"row": 39, "column": 19}}, {"id": 44, "type": "field_expression", "text": "utf_code.code", "parent": 43, "children": [45, 46], "start_point": {"row": 39, "column": 2}, "end_point": {"row": 39, "column": 15}}, {"id": 45, "type": "identifier", "text": "utf_code", "parent": 44, "children": [], "start_point": {"row": 39, "column": 2}, "end_point": {"row": 39, "column": 10}}, {"id": 46, "type": "field_identifier", "text": "code", "parent": 44, "children": [], "start_point": {"row": 39, "column": 11}, "end_point": {"row": 39, "column": 15}}, {"id": 47, "type": "=", "text": "=", "parent": 43, "children": [], "start_point": {"row": 39, "column": 16}, "end_point": {"row": 39, "column": 17}}, {"id": 48, "type": "number_literal", "text": "0", "parent": 43, "children": [], "start_point": {"row": 39, "column": 18}, "end_point": {"row": 39, "column": 19}}, {"id": 49, "type": "return_statement", "text": "return(utf_code);", "parent": 27, "children": [50], "start_point": {"row": 40, "column": 2}, "end_point": {"row": 40, "column": 19}}, {"id": 50, "type": "parenthesized_expression", "text": "(utf_code)", "parent": 49, "children": [51], "start_point": {"row": 40, "column": 8}, "end_point": {"row": 40, "column": 18}}, {"id": 51, "type": "identifier", "text": "utf_code", "parent": 50, "children": [], "start_point": {"row": 40, "column": 9}, "end_point": {"row": 40, "column": 17}}, {"id": 52, "type": "assignment_expression", "text": "x = ojh_code.johap.chosung - 0x0A", "parent": 6, "children": [53, 54, 55], "start_point": {"row": 43, "column": 1}, "end_point": {"row": 43, "column": 34}}, {"id": 53, "type": "identifier", "text": "x", "parent": 52, "children": [], "start_point": {"row": 43, "column": 1}, "end_point": {"row": 43, "column": 2}}, {"id": 54, "type": "=", "text": "=", "parent": 52, "children": [], "start_point": {"row": 43, "column": 3}, "end_point": {"row": 43, "column": 4}}, {"id": 55, "type": "binary_expression", "text": "ojh_code.johap.chosung - 0x0A", "parent": 52, "children": [56, 61, 62], "start_point": {"row": 43, "column": 5}, "end_point": {"row": 43, "column": 34}}, {"id": 56, "type": "field_expression", "text": "ojh_code.johap.chosung", "parent": 55, "children": [57, 60], "start_point": {"row": 43, "column": 5}, "end_point": {"row": 43, "column": 27}}, {"id": 57, "type": "field_expression", "text": "ojh_code.johap", "parent": 56, "children": [58, 59], "start_point": {"row": 43, "column": 5}, "end_point": {"row": 43, "column": 19}}, {"id": 58, "type": "identifier", "text": "ojh_code", "parent": 57, "children": [], "start_point": {"row": 43, "column": 5}, "end_point": {"row": 43, "column": 13}}, {"id": 59, "type": "field_identifier", "text": "johap", "parent": 57, "children": [], "start_point": {"row": 43, "column": 14}, "end_point": {"row": 43, "column": 19}}, {"id": 60, "type": "field_identifier", "text": "chosung", "parent": 56, "children": [], "start_point": {"row": 43, "column": 20}, "end_point": {"row": 43, "column": 27}}, {"id": 61, "type": "-", "text": "-", "parent": 55, "children": [], "start_point": {"row": 43, "column": 28}, "end_point": {"row": 43, "column": 29}}, {"id": 62, "type": "number_literal", "text": "0x0A", "parent": 55, "children": [], "start_point": {"row": 43, "column": 30}, "end_point": {"row": 43, "column": 34}}, {"id": 63, "type": "assignment_expression", "text": "y = ojh_code.johap.joongsung", "parent": 6, "children": [64, 65, 66], "start_point": {"row": 44, "column": 1}, "end_point": {"row": 44, "column": 29}}, {"id": 64, "type": "identifier", "text": "y", "parent": 63, "children": [], "start_point": {"row": 44, "column": 1}, "end_point": {"row": 44, "column": 2}}, {"id": 65, "type": "=", "text": "=", "parent": 63, "children": [], "start_point": {"row": 44, "column": 3}, "end_point": {"row": 44, "column": 4}}, {"id": 66, "type": "field_expression", "text": "ojh_code.johap.joongsung", "parent": 63, "children": [67, 70], "start_point": {"row": 44, "column": 5}, "end_point": {"row": 44, "column": 29}}, {"id": 67, "type": "field_expression", "text": "ojh_code.johap", "parent": 66, "children": [68, 69], "start_point": {"row": 44, "column": 5}, "end_point": {"row": 44, "column": 19}}, {"id": 68, "type": "identifier", "text": "ojh_code", "parent": 67, "children": [], "start_point": {"row": 44, "column": 5}, "end_point": {"row": 44, "column": 13}}, {"id": 69, "type": "field_identifier", "text": "johap", "parent": 67, "children": [], "start_point": {"row": 44, "column": 14}, "end_point": {"row": 44, "column": 19}}, {"id": 70, "type": "field_identifier", "text": "joongsung", "parent": 66, "children": [], "start_point": {"row": 44, "column": 20}, "end_point": {"row": 44, "column": 29}}, {"id": 71, "type": "assignment_expression", "text": "y = y - (y / 4 + 2)", "parent": 6, "children": [72, 73, 74], "start_point": {"row": 45, "column": 1}, "end_point": {"row": 45, "column": 20}}, {"id": 72, "type": "identifier", "text": "y", "parent": 71, "children": [], "start_point": {"row": 45, "column": 1}, "end_point": {"row": 45, "column": 2}}, {"id": 73, "type": "=", "text": "=", "parent": 71, "children": [], "start_point": {"row": 45, "column": 3}, "end_point": {"row": 45, "column": 4}}, {"id": 74, "type": "binary_expression", "text": "y - (y / 4 + 2)", "parent": 71, "children": [75, 76, 77], "start_point": {"row": 45, "column": 5}, "end_point": {"row": 45, "column": 20}}, {"id": 75, "type": "identifier", "text": "y", "parent": 74, "children": [], "start_point": {"row": 45, "column": 5}, "end_point": {"row": 45, "column": 6}}, {"id": 76, "type": "-", "text": "-", "parent": 74, "children": [], "start_point": {"row": 45, "column": 7}, "end_point": {"row": 45, "column": 8}}, {"id": 77, "type": "parenthesized_expression", "text": "(y / 4 + 2)", "parent": 74, "children": [78], "start_point": {"row": 45, "column": 9}, "end_point": {"row": 45, "column": 20}}, {"id": 78, "type": "binary_expression", "text": "y / 4 + 2", "parent": 77, "children": [79, 83, 84], "start_point": {"row": 45, "column": 10}, "end_point": {"row": 45, "column": 19}}, {"id": 79, "type": "binary_expression", "text": "y / 4", "parent": 78, "children": [80, 81, 82], "start_point": {"row": 45, "column": 10}, "end_point": {"row": 45, "column": 15}}, {"id": 80, "type": "identifier", "text": "y", "parent": 79, "children": [], "start_point": {"row": 45, "column": 10}, "end_point": {"row": 45, "column": 11}}, {"id": 81, "type": "/", "text": "/", "parent": 79, "children": [], "start_point": {"row": 45, "column": 12}, "end_point": {"row": 45, "column": 13}}, {"id": 82, "type": "number_literal", "text": "4", "parent": 79, "children": [], "start_point": {"row": 45, "column": 14}, "end_point": {"row": 45, "column": 15}}, {"id": 83, "type": "+", "text": "+", "parent": 78, "children": [], "start_point": {"row": 45, "column": 16}, "end_point": {"row": 45, "column": 17}}, {"id": 84, "type": "number_literal", "text": "2", "parent": 78, "children": [], "start_point": {"row": 45, "column": 18}, "end_point": {"row": 45, "column": 19}}, {"id": 85, "type": "assignment_expression", "text": "z = ojh_code.johap.jongsung - 1", "parent": 6, "children": [86, 87, 88], "start_point": {"row": 46, "column": 1}, "end_point": {"row": 46, "column": 32}}, {"id": 86, "type": "identifier", "text": "z", "parent": 85, "children": [], "start_point": {"row": 46, "column": 1}, "end_point": {"row": 46, "column": 2}}, {"id": 87, "type": "=", "text": "=", "parent": 85, "children": [], "start_point": {"row": 46, "column": 3}, "end_point": {"row": 46, "column": 4}}, {"id": 88, "type": "binary_expression", "text": "ojh_code.johap.jongsung - 1", "parent": 85, "children": [89, 94, 95], "start_point": {"row": 46, "column": 5}, "end_point": {"row": 46, "column": 32}}, {"id": 89, "type": "field_expression", "text": "ojh_code.johap.jongsung", "parent": 88, "children": [90, 93], "start_point": {"row": 46, "column": 5}, "end_point": {"row": 46, "column": 28}}, {"id": 90, "type": "field_expression", "text": "ojh_code.johap", "parent": 89, "children": [91, 92], "start_point": {"row": 46, "column": 5}, "end_point": {"row": 46, "column": 19}}, {"id": 91, "type": "identifier", "text": "ojh_code", "parent": 90, "children": [], "start_point": {"row": 46, "column": 5}, "end_point": {"row": 46, "column": 13}}, {"id": 92, "type": "field_identifier", "text": "johap", "parent": 90, "children": [], "start_point": {"row": 46, "column": 14}, "end_point": {"row": 46, "column": 19}}, {"id": 93, "type": "field_identifier", "text": "jongsung", "parent": 89, "children": [], "start_point": {"row": 46, "column": 20}, "end_point": {"row": 46, "column": 28}}, {"id": 94, "type": "-", "text": "-", "parent": 88, "children": [], "start_point": {"row": 46, "column": 29}, "end_point": {"row": 46, "column": 30}}, {"id": 95, "type": "number_literal", "text": "1", "parent": 88, "children": [], "start_point": {"row": 46, "column": 31}, "end_point": {"row": 46, "column": 32}}, {"id": 96, "type": "if_statement", "text": "if (x > 18 || y > 20 || z > 29) {\n\t\tutf_code.code = 0;\t/* Not Hangul */\n\t\treturn(utf_code);\n\t}", "parent": 6, "children": [97], "start_point": {"row": 48, "column": 1}, "end_point": {"row": 51, "column": 2}}, {"id": 97, "type": "parenthesized_expression", "text": "(x > 18 || y > 20 || z > 29)", "parent": 96, "children": [98], "start_point": {"row": 48, "column": 4}, "end_point": {"row": 48, "column": 32}}, {"id": 98, "type": "binary_expression", "text": "x > 18 || y > 20 || z > 29", "parent": 97, "children": [99, 109, 110], "start_point": {"row": 48, "column": 5}, "end_point": {"row": 48, "column": 31}}, {"id": 99, "type": "binary_expression", "text": "x > 18 || y > 20", "parent": 98, "children": [100, 104, 105], "start_point": {"row": 48, "column": 5}, "end_point": {"row": 48, "column": 21}}, {"id": 100, "type": "binary_expression", "text": "x > 18", "parent": 99, "children": [101, 102, 103], "start_point": {"row": 48, "column": 5}, "end_point": {"row": 48, "column": 11}}, {"id": 101, "type": "identifier", "text": "x", "parent": 100, "children": [], "start_point": {"row": 48, "column": 5}, "end_point": {"row": 48, "column": 6}}, {"id": 102, "type": ">", "text": ">", "parent": 100, "children": [], "start_point": {"row": 48, "column": 7}, "end_point": {"row": 48, "column": 8}}, {"id": 103, "type": "number_literal", "text": "18", "parent": 100, "children": [], "start_point": {"row": 48, "column": 9}, "end_point": {"row": 48, "column": 11}}, {"id": 104, "type": "||", "text": "||", "parent": 99, "children": [], "start_point": {"row": 48, "column": 12}, "end_point": {"row": 48, "column": 14}}, {"id": 105, "type": "binary_expression", "text": "y > 20", "parent": 99, "children": [106, 107, 108], "start_point": {"row": 48, "column": 15}, "end_point": {"row": 48, "column": 21}}, {"id": 106, "type": "identifier", "text": "y", "parent": 105, "children": [], "start_point": {"row": 48, "column": 15}, "end_point": {"row": 48, "column": 16}}, {"id": 107, "type": ">", "text": ">", "parent": 105, "children": [], "start_point": {"row": 48, "column": 17}, "end_point": {"row": 48, "column": 18}}, {"id": 108, "type": "number_literal", "text": "20", "parent": 105, "children": [], "start_point": {"row": 48, "column": 19}, "end_point": {"row": 48, "column": 21}}, {"id": 109, "type": "||", "text": "||", "parent": 98, "children": [], "start_point": {"row": 48, "column": 22}, "end_point": {"row": 48, "column": 24}}, {"id": 110, "type": "binary_expression", "text": "z > 29", "parent": 98, "children": [111, 112, 113], "start_point": {"row": 48, "column": 25}, "end_point": {"row": 48, "column": 31}}, {"id": 111, "type": "identifier", "text": "z", "parent": 110, "children": [], "start_point": {"row": 48, "column": 25}, "end_point": {"row": 48, "column": 26}}, {"id": 112, "type": ">", "text": ">", "parent": 110, "children": [], "start_point": {"row": 48, "column": 27}, "end_point": {"row": 48, "column": 28}}, {"id": 113, "type": "number_literal", "text": "29", "parent": 110, "children": [], "start_point": {"row": 48, "column": 29}, "end_point": {"row": 48, "column": 31}}, {"id": 114, "type": "assignment_expression", "text": "utf_code.code = 0", "parent": 96, "children": [115, 118, 119], "start_point": {"row": 49, "column": 2}, "end_point": {"row": 49, "column": 19}}, {"id": 115, "type": "field_expression", "text": "utf_code.code", "parent": 114, "children": [116, 117], "start_point": {"row": 49, "column": 2}, "end_point": {"row": 49, "column": 15}}, {"id": 116, "type": "identifier", "text": "utf_code", "parent": 115, "children": [], "start_point": {"row": 49, "column": 2}, "end_point": {"row": 49, "column": 10}}, {"id": 117, "type": "field_identifier", "text": "code", "parent": 115, "children": [], "start_point": {"row": 49, "column": 11}, "end_point": {"row": 49, "column": 15}}, {"id": 118, "type": "=", "text": "=", "parent": 114, "children": [], "start_point": {"row": 49, "column": 16}, "end_point": {"row": 49, "column": 17}}, {"id": 119, "type": "number_literal", "text": "0", "parent": 114, "children": [], "start_point": {"row": 49, "column": 18}, "end_point": {"row": 49, "column": 19}}, {"id": 120, "type": "return_statement", "text": "return(utf_code);", "parent": 96, "children": [121], "start_point": {"row": 50, "column": 2}, "end_point": {"row": 50, "column": 19}}, {"id": 121, "type": "parenthesized_expression", "text": "(utf_code)", "parent": 120, "children": [122], "start_point": {"row": 50, "column": 8}, "end_point": {"row": 50, "column": 18}}, {"id": 122, "type": "identifier", "text": "utf_code", "parent": 121, "children": [], "start_point": {"row": 50, "column": 9}, "end_point": {"row": 50, "column": 17}}, {"id": 123, "type": "assignment_expression", "text": "unicode.code = (unsigned int)(x*588 + y*28 + z)\n\t\t\t+ 0xAC00", "parent": 6, "children": [124, 127, 128], "start_point": {"row": 53, "column": 1}, "end_point": {"row": 54, "column": 11}}, {"id": 124, "type": "field_expression", "text": "unicode.code", "parent": 123, "children": [125, 126], "start_point": {"row": 53, "column": 1}, "end_point": {"row": 53, "column": 13}}, {"id": 125, "type": "identifier", "text": "unicode", "parent": 124, "children": [], "start_point": {"row": 53, "column": 1}, "end_point": {"row": 53, "column": 8}}, {"id": 126, "type": "field_identifier", "text": "code", "parent": 124, "children": [], "start_point": {"row": 53, "column": 9}, "end_point": {"row": 53, "column": 13}}, {"id": 127, "type": "=", "text": "=", "parent": 123, "children": [], "start_point": {"row": 53, "column": 14}, "end_point": {"row": 53, "column": 15}}, {"id": 128, "type": "binary_expression", "text": "(unsigned int)(x*588 + y*28 + z)\n\t\t\t+ 0xAC00", "parent": 123, "children": [129, 148, 149], "start_point": {"row": 53, "column": 16}, "end_point": {"row": 54, "column": 11}}, {"id": 129, "type": "cast_expression", "text": "(unsigned int)(x*588 + y*28 + z)", "parent": 128, "children": [130, 134], "start_point": {"row": 53, "column": 16}, "end_point": {"row": 53, "column": 48}}, {"id": 130, "type": "type_descriptor", "text": "unsigned int", "parent": 129, "children": [131], "start_point": {"row": 53, "column": 17}, "end_point": {"row": 53, "column": 29}}, {"id": 131, "type": "sized_type_specifier", "text": "unsigned int", "parent": 130, "children": [132, 133], "start_point": {"row": 53, "column": 17}, "end_point": {"row": 53, "column": 29}}, {"id": 132, "type": "unsigned", "text": "unsigned", "parent": 131, "children": [], "start_point": {"row": 53, "column": 17}, "end_point": {"row": 53, "column": 25}}, {"id": 133, "type": "primitive_type", "text": "int", "parent": 131, "children": [], "start_point": {"row": 53, "column": 26}, "end_point": {"row": 53, "column": 29}}, {"id": 134, "type": "parenthesized_expression", "text": "(x*588 + y*28 + z)", "parent": 129, "children": [135], "start_point": {"row": 53, "column": 30}, "end_point": {"row": 53, "column": 48}}, {"id": 135, "type": "binary_expression", "text": "x*588 + y*28 + z", "parent": 134, "children": [136, 146, 147], "start_point": {"row": 53, "column": 31}, "end_point": {"row": 53, "column": 47}}, {"id": 136, "type": "binary_expression", "text": "x*588 + y*28", "parent": 135, "children": [137, 141, 142], "start_point": {"row": 53, "column": 31}, "end_point": {"row": 53, "column": 43}}, {"id": 137, "type": "binary_expression", "text": "x*588", "parent": 136, "children": [138, 139, 140], "start_point": {"row": 53, "column": 31}, "end_point": {"row": 53, "column": 36}}, {"id": 138, "type": "identifier", "text": "x", "parent": 137, "children": [], "start_point": {"row": 53, "column": 31}, "end_point": {"row": 53, "column": 32}}, {"id": 139, "type": "*", "text": "*", "parent": 137, "children": [], "start_point": {"row": 53, "column": 32}, "end_point": {"row": 53, "column": 33}}, {"id": 140, "type": "number_literal", "text": "588", "parent": 137, "children": [], "start_point": {"row": 53, "column": 33}, "end_point": {"row": 53, "column": 36}}, {"id": 141, "type": "+", "text": "+", "parent": 136, "children": [], "start_point": {"row": 53, "column": 37}, "end_point": {"row": 53, "column": 38}}, {"id": 142, "type": "binary_expression", "text": "y*28", "parent": 136, "children": [143, 144, 145], "start_point": {"row": 53, "column": 39}, "end_point": {"row": 53, "column": 43}}, {"id": 143, "type": "identifier", "text": "y", "parent": 142, "children": [], "start_point": {"row": 53, "column": 39}, "end_point": {"row": 53, "column": 40}}, {"id": 144, "type": "*", "text": "*", "parent": 142, "children": [], "start_point": {"row": 53, "column": 40}, "end_point": {"row": 53, "column": 41}}, {"id": 145, "type": "number_literal", "text": "28", "parent": 142, "children": [], "start_point": {"row": 53, "column": 41}, "end_point": {"row": 53, "column": 43}}, {"id": 146, "type": "+", "text": "+", "parent": 135, "children": [], "start_point": {"row": 53, "column": 44}, "end_point": {"row": 53, "column": 45}}, {"id": 147, "type": "identifier", "text": "z", "parent": 135, "children": [], "start_point": {"row": 53, "column": 46}, "end_point": {"row": 53, "column": 47}}, {"id": 148, "type": "+", "text": "+", "parent": 128, "children": [], "start_point": {"row": 54, "column": 3}, "end_point": {"row": 54, "column": 4}}, {"id": 149, "type": "number_literal", "text": "0xAC00", "parent": 128, "children": [], "start_point": {"row": 54, "column": 5}, "end_point": {"row": 54, "column": 11}}, {"id": 150, "type": "assignment_expression", "text": "utf_code = _uni_to_utf8(unicode)", "parent": 6, "children": [151, 152, 153], "start_point": {"row": 57, "column": 1}, "end_point": {"row": 57, "column": 33}}, {"id": 151, "type": "identifier", "text": "utf_code", "parent": 150, "children": [], "start_point": {"row": 57, "column": 1}, "end_point": {"row": 57, "column": 9}}, {"id": 152, "type": "=", "text": "=", "parent": 150, "children": [], "start_point": {"row": 57, "column": 10}, "end_point": {"row": 57, "column": 11}}, {"id": 153, "type": "call_expression", "text": "_uni_to_utf8(unicode)", "parent": 150, "children": [154, 155], "start_point": {"row": 57, "column": 12}, "end_point": {"row": 57, "column": 33}}, {"id": 154, "type": "identifier", "text": "_uni_to_utf8", "parent": 153, "children": [], "start_point": {"row": 57, "column": 12}, "end_point": {"row": 57, "column": 24}}, {"id": 155, "type": "argument_list", "text": "(unicode)", "parent": 153, "children": [156], "start_point": {"row": 57, "column": 24}, "end_point": {"row": 57, "column": 33}}, {"id": 156, "type": "identifier", "text": "unicode", "parent": 155, "children": [], "start_point": {"row": 57, "column": 25}, "end_point": {"row": 57, "column": 32}}, {"id": 157, "type": "return_statement", "text": "return(utf_code);", "parent": 6, "children": [158], "start_point": {"row": 59, "column": 1}, "end_point": {"row": 59, "column": 18}}, {"id": 158, "type": "parenthesized_expression", "text": "(utf_code)", "parent": 157, "children": [159], "start_point": {"row": 59, "column": 7}, "end_point": {"row": 59, "column": 17}}, {"id": 159, "type": "identifier", "text": "utf_code", "parent": 158, "children": [], "start_point": {"row": 59, "column": 8}, "end_point": {"row": 59, "column": 16}}]}, "node_categories": {"declarations": {"functions": [6, 8], "variables": [11, 14, 17, 20], "classes": [], "imports": [0, 1, 3, 4], "modules": [], "enums": []}, "statements": {"expressions": [28, 29, 30, 31, 37, 40, 44, 50, 55, 56, 57, 66, 67, 74, 77, 78, 79, 88, 89, 90, 97, 98, 99, 100, 105, 110, 115, 121, 124, 128, 129, 134, 135, 136, 137, 142, 153, 158], "assignments": [43, 52, 63, 71, 85, 114, 123, 150], "loops": [], "conditionals": [7, 9, 12, 13, 15, 16, 18, 19, 21, 24, 25, 26, 27, 32, 33, 41, 42, 45, 46, 51, 53, 58, 59, 60, 64, 68, 69, 70, 72, 75, 80, 86, 91, 92, 93, 96, 101, 106, 111, 116, 117, 122, 125, 126, 131, 138, 143, 147, 151, 154, 156, 159], "returns": [49, 120, 157], "exceptions": []}, "expressions": {"calls": [], "literals": [2, 5, 35, 38, 48, 62, 82, 84, 95, 103, 108, 113, 119, 140, 145, 149], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [{"node_id": 6, "universal_type": "function", "name": "x,", "text_snippet": "hcode_type _johap82_to_utf8(hcode_type ojh_code)\n{\n\t/* Only for Hangul code */\n\thcode_type utf_code;"}, {"node_id": 8, "universal_type": "function", "name": "unknown", "text_snippet": "_johap82_to_utf8(hcode_type ojh_code)"}], "class_declarations": [], "import_statements": [{"node_id": 0, "text": "#include \"common_han.h\"\n"}, {"node_id": 1, "text": "#include"}, {"node_id": 3, "text": "#include \"common_utf.h\"\n"}, {"node_id": 4, "text": "#include"}]}, "original_source_code": "/*\n * CDDL HEADER START\n *\n * The contents of this file are subject to the terms of the\n * Common Development and Distribution License (the \"License\").\n * You may not use this file except in compliance with the License.\n *\n * You can obtain a copy of the license at src/OPENSOLARIS.LICENSE\n * or http://www.opensolaris.org/os/licensing.\n * See the License for the specific language governing permissions\n * and limitations under the License.\n *\n * When distributing Covered Code, include this CDDL HEADER in each\n * file and include the License file at src/OPENSOLARIS.LICENSE.\n * If applicable, add the following below this CDDL HEADER, with the\n * fields enclosed by brackets \"[]\" replaced with your own identifying\n * information: Portions Copyright [yyyy] [name of copyright owner]\n *\n * CDDL HEADER END\n */\n/*\n * Copyright (c) 1996 by Sun Microsystems, Inc.\n */\n\n\n#include \"common_han.h\"\n#include \"common_utf.h\"\n\n/**** _ J O H A P 8 2 _ T O _ U T F 8 ****/\n\nhcode_type _johap82_to_utf8(hcode_type ojh_code)\n{\n\t/* Only for Hangul code */\n\thcode_type utf_code;\n\thcode_type unicode;\n\tunsigned int x, y, z;\n\n /* Hangul only conversion. */\n if (ojh_code.code < 0xA421 || 0xF3BC < ojh_code.code) {\n\t\tutf_code.code = 0;\t/* Not Hangul */\n\t\treturn(utf_code);\n\t}\n\n\tx = ojh_code.johap.chosung - 0x0A; /* 0x0A = 'Kyoug' */\n\ty = ojh_code.johap.joongsung;\n\ty = y - (y / 4 + 2);\n\tz = ojh_code.johap.jongsung - 1;\n\n\tif (x > 18 || y > 20 || z > 29) {\n\t\tutf_code.code = 0;\t/* Not Hangul */\n\t\treturn(utf_code);\n\t}\n\n\tunicode.code = (unsigned int)(x*588 + y*28 + z)\n\t\t\t+ 0xAC00;\n\t\t/* 588 = 21(Joongsung Number) * 28(Jongsung Number) */\n\n\tutf_code = _uni_to_utf8(unicode);\n\n\treturn(utf_code);\n\n} /* end of hcode_type johap82_to_utf8(hcode_type ojh_code) */\n"}
80,032
c
#ifndef __RAIN_H__ #define __RAIN_H__ void matrix_rain(const char *string); int rain_animation(void); #endif
20.8
5
(translation_unit) "#ifndef __RAIN_H__\n#define __RAIN_H__\n\nvoid matrix_rain(const char *string);\nint rain_animation(void);\n\n#endif\n" (preproc_ifdef) "#ifndef __RAIN_H__\n#define __RAIN_H__\n\nvoid matrix_rain(const char *string);\nint rain_animation(void);\n\n#endif" (#ifndef) "#ifndef" (identifier) "__RAIN_H__" (preproc_def) "#define __RAIN_H__\n" (#define) "#define" (identifier) "__RAIN_H__" (declaration) "void matrix_rain(const char *string);" (primitive_type) "void" (function_declarator) "matrix_rain(const char *string)" (identifier) "matrix_rain" (parameter_list) "(const char *string)" (() "(" (parameter_declaration) "const char *string" (type_qualifier) "const" (const) "const" (primitive_type) "char" (pointer_declarator) "*string" (*) "*" (identifier) "string" ()) ")" (;) ";" (declaration) "int rain_animation(void);" (primitive_type) "int" (function_declarator) "rain_animation(void)" (identifier) "rain_animation" (parameter_list) "(void)" (() "(" (parameter_declaration) "void" (primitive_type) "void" ()) ")" (;) ";" (#endif) "#endif"
33
0
{"language": "c", "success": true, "metadata": {"lines": 5, "avg_line_length": 20.8, "nodes": 24, "errors": 0, "source_hash": "3d31c4f5584838bd2b38be9e4331c30cf07ca2b8b2a42ca9f678893c7e910dfe", "categorized_nodes": 14}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef __RAIN_H__\n#define __RAIN_H__\n\nvoid matrix_rain(const char *string);\nint rain_animation(void);\n\n#endif", "parent": null, "children": [1, 2, 3, 6, 16, 23], "start_point": {"row": 0, "column": 0}, "end_point": {"row": 6, "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": "__RAIN_H__", "parent": 0, "children": [], "start_point": {"row": 0, "column": 8}, "end_point": {"row": 0, "column": 18}}, {"id": 3, "type": "preproc_def", "text": "#define __RAIN_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": "__RAIN_H__", "parent": 3, "children": [], "start_point": {"row": 1, "column": 8}, "end_point": {"row": 1, "column": 18}}, {"id": 6, "type": "declaration", "text": "void matrix_rain(const char *string);", "parent": 0, "children": [7, 8], "start_point": {"row": 3, "column": 0}, "end_point": {"row": 3, "column": 37}}, {"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": "matrix_rain(const char *string)", "parent": 6, "children": [9, 10], "start_point": {"row": 3, "column": 5}, "end_point": {"row": 3, "column": 36}}, {"id": 9, "type": "identifier", "text": "matrix_rain", "parent": 8, "children": [], "start_point": {"row": 3, "column": 5}, "end_point": {"row": 3, "column": 16}}, {"id": 10, "type": "parameter_list", "text": "(const char *string)", "parent": 8, "children": [11], "start_point": {"row": 3, "column": 16}, "end_point": {"row": 3, "column": 36}}, {"id": 11, "type": "parameter_declaration", "text": "const char *string", "parent": 10, "children": [12, 13], "start_point": {"row": 3, "column": 17}, "end_point": {"row": 3, "column": 35}}, {"id": 12, "type": "primitive_type", "text": "char", "parent": 11, "children": [], "start_point": {"row": 3, "column": 23}, "end_point": {"row": 3, "column": 27}}, {"id": 13, "type": "pointer_declarator", "text": "*string", "parent": 11, "children": [14, 15], "start_point": {"row": 3, "column": 28}, "end_point": {"row": 3, "column": 35}}, {"id": 14, "type": "*", "text": "*", "parent": 13, "children": [], "start_point": {"row": 3, "column": 28}, "end_point": {"row": 3, "column": 29}}, {"id": 15, "type": "identifier", "text": "string", "parent": 13, "children": [], "start_point": {"row": 3, "column": 29}, "end_point": {"row": 3, "column": 35}}, {"id": 16, "type": "declaration", "text": "int rain_animation(void);", "parent": 0, "children": [17, 18], "start_point": {"row": 4, "column": 0}, "end_point": {"row": 4, "column": 25}}, {"id": 17, "type": "primitive_type", "text": "int", "parent": 16, "children": [], "start_point": {"row": 4, "column": 0}, "end_point": {"row": 4, "column": 3}}, {"id": 18, "type": "function_declarator", "text": "rain_animation(void)", "parent": 16, "children": [19, 20], "start_point": {"row": 4, "column": 4}, "end_point": {"row": 4, "column": 24}}, {"id": 19, "type": "identifier", "text": "rain_animation", "parent": 18, "children": [], "start_point": {"row": 4, "column": 4}, "end_point": {"row": 4, "column": 18}}, {"id": 20, "type": "parameter_list", "text": "(void)", "parent": 18, "children": [21], "start_point": {"row": 4, "column": 18}, "end_point": {"row": 4, "column": 24}}, {"id": 21, "type": "parameter_declaration", "text": "void", "parent": 20, "children": [22], "start_point": {"row": 4, "column": 19}, "end_point": {"row": 4, "column": 23}}, {"id": 22, "type": "primitive_type", "text": "void", "parent": 21, "children": [], "start_point": {"row": 4, "column": 19}, "end_point": {"row": 4, "column": 23}}, {"id": 23, "type": "#endif", "text": "#endif", "parent": 0, "children": [], "start_point": {"row": 6, "column": 0}, "end_point": {"row": 6, "column": 6}}]}, "node_categories": {"declarations": {"functions": [8, 18], "variables": [6, 11, 16, 21], "classes": [], "imports": [], "modules": [], "enums": []}, "statements": {"expressions": [], "assignments": [], "loops": [], "conditionals": [0, 1, 2, 5, 9, 15, 19, 23], "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": "matrix_rain(const char *string)"}, {"node_id": 18, "universal_type": "function", "name": "unknown", "text_snippet": "rain_animation(void)"}], "class_declarations": [], "import_statements": []}, "original_source_code": "#ifndef __RAIN_H__\n#define __RAIN_H__\n\nvoid matrix_rain(const char *string);\nint rain_animation(void);\n\n#endif\n"}
80,033
c
// // SKVideoDownloader.h // SKVideoPlayer // // Created by shavekevin on 2018/6/20. // Copyright © 2018年 shavekevin. All rights reserved. // #import <Foundation/Foundation.h> #import "SKM3U8PlayListModel.h" #import <UIKit/UIKit.h> /** 文件下载管理并组装下载后的文件为本地m3u8 执行下载操作(总的下载操作-对单个下载器做操作) */ @class SKVideoDownloader; @protocol SKVideoDownloaderDelegate<NSObject> /** download success @param videoDownLoader download */ - (void)videoDownLoadSuccess:(SKVideoDownloader *)videoDownLoader; /** download failed @param videoDownLoader downlod */ - (void)videoDownLoadFailed:(SKVideoDownloader *)videoDownLoader; /** download progress @param downLoadProgress downLoadProgress */ - (void)videoDownLoadProgress:(CGFloat)downLoadProgress; @end @interface SKVideoDownloader : NSObject /** Model */ @property (nonatomic, strong) SKM3U8PlayListModel *playList; @property (nonatomic, copy) NSString *originM3U8Url; - (void)startDownLoadVideo; - (void)pauseDownLoadVideo; - (void)continueDownLoadVideo; /** 需要下载的数组(所有下载器的集合) */ @property (nonatomic, strong) NSMutableArray *downloadArray; @property (nonatomic, weak) id <SKVideoDownloaderDelegate> delegate; /** 总共下载的数组 */ @property (nonatomic, assign) NSInteger totalDownLoadcount; /** create local m3u8 file */ - (void)createLocalM3U8File; @end
22.67
55
(translation_unit) "//\n// SKVideoDownloader.h\n// SKVideoPlayer\n//\n// Created by shavekevin on 2018/6/20.\n// Copyright © 2018年 shavekevin. All rights reserved.\n//\n\n#import <Foundation/Foundation.h>\n#import "SKM3U8PlayListModel.h"\n#import <UIKit/UIKit.h>\n/**\n 文件下载管理并组装下载后的文件为本地m3u8 执行下载操作(总的下载操作-对单个下载器做操作)\n */\n@class SKVideoDownloader;\n\n@protocol SKVideoDownloaderDelegate<NSObject>\n\n/**\n download success\n\n @param videoDownLoader download\n */\n- (void)videoDownLoadSuccess:(SKVideoDownloader *)videoDownLoader;\n\n/**\n download failed\n\n @param videoDownLoader downlod\n */\n- (void)videoDownLoadFailed:(SKVideoDownloader *)videoDownLoader;\n\n/**\n download progress\n\n @param downLoadProgress downLoadProgress\n */\n- (void)videoDownLoadProgress:(CGFloat)downLoadProgress;\n\n@end\n\n@interface SKVideoDownloader : NSObject\n\n/**\n Model\n */\n@property (nonatomic, strong) SKM3U8PlayListModel *playList;\n\n@property (nonatomic, copy) NSString *originM3U8Url;\n\n- (void)startDownLoadVideo;\n\n- (void)pauseDownLoadVideo;\n\n- (void)continueDownLoadVideo;\n\n/**\n 需要下载的数组(所有下载器的集合)\n */\n@property (nonatomic, strong) NSMutableArray *downloadArray;\n\n@property (nonatomic, weak) id <SKVideoDownloaderDelegate> delegate;\n/**\n 总共下载的数组\n */\n@property (nonatomic, assign) NSInteger totalDownLoadcount;\n\n\n/**\n create local m3u8 file\n */\n- (void)createLocalM3U8File;\n\n@end\n" (comment) "//" (comment) "// SKVideoDownloader.h" (comment) "// SKVideoPlayer" (comment) "//" (comment) "// Created by shavekevin on 2018/6/20." (comment) "// Copyright © 2018年 shavekevin. All rights reserved.\n//" (comment) "\n#" (preproc_call) "port <Foundation/Foundation.h>\n#im" (preproc_directive) "port <F" (preproc_arg) "undation/Foundation.h>\n#i" (preproc_call) "port "SKM3U8PlayListModel.h"\n#im" (preproc_directive) "port "S" (preproc_arg) "M3U8PlayListModel.h"\n#i" (preproc_call) "port <UIKit/UIKit.h>\n/**" (preproc_directive) "port <U" (preproc_arg) "Kit/UIKit.h>\n/*" (comment) "\n 文件下载管理并组装下载后的文件为本地m3u8 执行下载操作(总的下载操作-对单个下载器做操作)\n */\n@class SKVideoDownloader;\n\n@protocol SKVideoDownloaderDelegate<NSObject>\n\n/**\n d" (ERROR) "w" (ERROR) "w" (declaration) "nload success\n\n @param v" (type_identifier) "nload" (identifier) "success\n\n @param " (;) "v" (ERROR) "eoDownLoader download\n */\n- (void)videoDownLo" (ERROR) "e" (type_identifier) "oDownLoa" (identifier) "er download\n */\n- (void)v" (<) "i" (identifier) "deoDownL" (>) "o" (comment) "Success:(SKVideoDownloader *)videoDownLoader;\n\n/**\n downloa" (expression_statement) " failed\n\n @param videoDownLoader downlod\n */\n- (void)videoDownLoad" (update_expression) " failed\n\n @param videoDownLoader downlod\n */\n- (void)videoDownLoa" (binary_expression) " failed\n\n @param videoDownLoader downlod\n */\n- (void)videoDownLoa" (unary_expression) " failed\n\n @param videoDownLo" (-) " " (cast_expression) "ailed\n\n @param videoDownLo" (() "a" (type_descriptor) "iled" (primitive_type) "iled" ()) "\n" (identifier) "\n @param videoDownLo" (ERROR) "ader downlod\n */\n- " (:) "a" (() "d" (identifier) "er downlod\n */\n- " (*) "v" (ERROR) "o" ()) "o" (identifier) "id)videoDownLoa" (--) "" (;) "d" (comment) "iled:(SKVideoDownloader *)videoDownLoader;\n\n/**\n download" (expression_statement) "progress\n\n @param downLoadProgress downLoadProgress\n */\n- (void)v" (update_expression) "progress\n\n @param downLoadProgress downLoadProgress\n */\n- (void)" (binary_expression) "progress\n\n @param downLoadProgress downLoadProgress\n */\n- (void)" (unary_expression) "progress\n\n @param downLoadP" (-) "p" (cast_expression) "ogress\n\n @param downLoadP" (() "o" (type_descriptor) "gres" (primitive_type) "gres" ()) "s" (identifier) "\n\n @param downLoadP" (ERROR) "rogress downLoadPro" (:) "r" (() "o" (identifier) "gress downLoadPro" (*) "r" (ERROR) "e" ()) "e" (identifier) "ss\n */\n- (void)" (--) "" (;) "v" (comment) "eoDownLoadProgress:(CGFloat)downLoadProgress;\n\n@end\n\n@interface SKVid" (expression_statement) "oDownloader : NSObject\n\n/**\n Model\n */\n@property (nonato" (unary_expression) "oDownloader : NSObject\n\n/**\n " (-) "o" (cast_expression) "ownloader : NSObject\n\n/**\n " (() "o" (type_descriptor) "wnlo" (primitive_type) "wnlo" ()) "a" (identifier) "der : NSObject\n\n/**\n " (ERROR) "Model\n */\n@property (nonat" (:) "M" (() "o" (identifier) "del\n */" ()) "\n" (identifier) "@property (nonat" (;) "o" (ERROR) "c" (ERROR) "c" (declaration) ", strong) SKM3U" (type_identifier) ", s" (ERROR) "o" (ERROR) "o" (identifier) "ng) SKM3U" (;) "" (labeled_statement) "PlayListModel *playList;\n\n@property (nonatomic, copy) NSString *originM3U8Url;\n\n- (void)startDownLoadVide" (statement_identifier) "PlayListModel *pl" (:) "y" (declaration) "ist;\n\n@property (nonatomic, copy) NSString *originM3U8Url;\n\n- (void)startDownLoadVide" (type_identifier) "ist;\n\n@p" (comment) "perty (nonatom" (ERROR) "c, copy) NSString *originM3U8Url;\n\n- (void)startD" (ERROR) "c" (function_declarator) ", copy) NSString *originM3U8Url;\n\n- (void)startD" (identifier) ", copy) " (parameter_list) "SString *originM3U8" (() "S" (parameter_declaration) "String *o" (type_identifier) "String *o" (,) "r" (parameter_declaration) "ginM3U" (type_identifier) "ginM3U" ()) "8" (identifier) "rl;\n\n- (void)startD" (pointer_declarator) "wnLoadVid" (*) "w" (identifier) "nLoadVid" (;) "e" (ERROR) "\n" (ERROR) "\n" (expression_statement) "\n- (void)pauseDownLoadVide" (call_expression) "\n- (void)pauseDownLoadVide" (identifier) "\n- (void" (argument_list) "pauseDownLoadVide" (() "p" (identifier) "auseDownL" (,) "o" (identifier) "dVid" ()) "e" (;) "" (declaration) ";\n\n- (void)continueDownL" (type_identifier) ";\n\n- (vo" (pointer_declarator) "d)continueDown" (*) "d" (identifier) ")continueDown" (;) "L" (expression_statement) "dVideo;\n\n/**\n 需要下载的数组(所有下载器" (unary_expression) "dVideo;\n\n/**\n 需要下载的数组(所有下载" (-) "d" (cast_expression) "ideo;\n\n/**\n 需要下载的数组(所有下载" (() "i" (type_descriptor) "deo;" (primitive_type) "deo;" ()) "\n" (identifier) "\n/**\n 需要下载的数组(所有下载" (;) "器" (expression_statement) "合)\n */\n@property (nonatomic" (unary_expression) "合)\n */\n@property (nonatomi" (-) "合" (cast_expression) "\n */\n@property (nonatomi" (() "\n" (type_descriptor) " */\n" (primitive_type) " */\n" ()) "@" (identifier) "property (nonatomi" (;) "c" (expression_statement) "strong) NSMutableArray *downlo" (unary_expression) "strong) NSMutableArray *downl" (-) "s" (cast_expression) "rong) NSMutableArray *downl" (() "r" (type_descriptor) "ong)" (primitive_type) "ong)" ()) " " (identifier) "NSMutableArray *downl" (;) "o" (comment) "Array;\n\n@property (nonatomic, weak) id <SKVideoDownloade" (ERROR) "D" (ERROR) "D" (expression_statement) "elegate> delegate;\n/**\n 总共下载" (call_expression) "elegate> delegate;\n/**\n 总共下载" (identifier) "elegate>" (argument_list) "delegate;\n/**\n 总共下载" (() "d" (identifier) "elegate;\n" (,) "/" (identifier) "*\n 总共下" ()) "载" (;) "" (declaration) "数组\n */\n@property (nonatomic, a" (type_identifier) "数组\n */\n@proper" (pointer_declarator) "y (nonatomic, " (*) "y" (identifier) " (nonatomic, " (;) "a" (ERROR) "ign) NSInteger totalDownLoadcount;\n\n\n/**\n create local m3u8 file\n *" (ERROR) "i" (binary_expression) "gn) NSInteger totalDownLoadcount;\n\n\n/**\n create local m3u8 file\n *" (binary_expression) "gn) NSInteger totalDownLoadcount;\n\n\n/**\n create local m3" (call_expression) "gn) NSInteger totalDownLoa" (identifier) "gn) NSIn" (argument_list) "eger totalDownLoa" (() "e" (identifier) "ger total" (,) "D" (identifier) "wnLo" ()) "a" (ERROR) "co" (identifier) "co" (<) "n" (identifier) "t;\n\n\n/**\n create local m3" (>) "u" (identifier) " file\n *" (expression_statement) "/" (;) "/" (comment) "- (void)createLocalM3U8File;\n\n" (ERROR) "end\n" (ERROR) "e" (call_expression) "nd\n" (identifier) "nd\n" (argument_list) "" (() "" (identifier) "" (,) "" (identifier) "" ()) "" (identifier) "" (expression_statement) "" (identifier) "" (;) "" (comment) "" (expression_statement) "" (unary_expression) "" (-) "" (cast_expression) "" (() "" (type_descriptor) "" (primitive_type) "" ()) "" (identifier) "" (;) "" (ERROR) "" (ERROR) "" (expression_statement) "" (identifier) "" (;) ""
241
26
{"language": "c", "success": true, "metadata": {"lines": 55, "avg_line_length": 22.67, "nodes": 156, "errors": 0, "source_hash": "2a7437d1985788f1d9ca751beeb1ada3cb18ae28db8de201bcd833fef937642b", "categorized_nodes": 84}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "port <Foundation/Foundation.h>\n#im", "parent": null, "children": [1, 2], "start_point": {"row": 8, "column": 0}, "end_point": {"row": 9, "column": 0}}, {"id": 1, "type": "preproc_directive", "text": "port <F", "parent": 0, "children": [], "start_point": {"row": 8, "column": 0}, "end_point": {"row": 8, "column": 7}}, {"id": 2, "type": "preproc_arg", "text": "undation/Foundation.h>\n#i", "parent": 0, "children": [], "start_point": {"row": 8, "column": 8}, "end_point": {"row": 8, "column": 33}}, {"id": 3, "type": "preproc_call", "text": "port \"SKM3U8PlayListModel.h\"\n#im", "parent": null, "children": [4, 5], "start_point": {"row": 9, "column": 0}, "end_point": {"row": 10, "column": 0}}, {"id": 4, "type": "preproc_directive", "text": "port \"S", "parent": 3, "children": [], "start_point": {"row": 9, "column": 0}, "end_point": {"row": 9, "column": 7}}, {"id": 5, "type": "preproc_arg", "text": "M3U8PlayListModel.h\"\n#i", "parent": 3, "children": [], "start_point": {"row": 9, "column": 8}, "end_point": {"row": 9, "column": 31}}, {"id": 6, "type": "preproc_call", "text": "port <UIKit/UIKit.h>\n/**", "parent": null, "children": [7, 8], "start_point": {"row": 10, "column": 0}, "end_point": {"row": 11, "column": 0}}, {"id": 7, "type": "preproc_directive", "text": "port <U", "parent": 6, "children": [], "start_point": {"row": 10, "column": 0}, "end_point": {"row": 10, "column": 7}}, {"id": 8, "type": "preproc_arg", "text": "Kit/UIKit.h>\n/*", "parent": 6, "children": [], "start_point": {"row": 10, "column": 8}, "end_point": {"row": 10, "column": 23}}, {"id": 9, "type": "ERROR", "text": "w", "parent": null, "children": [10], "start_point": {"row": 14, "column": 0}, "end_point": {"row": 14, "column": 1}}, {"id": 10, "type": "ERROR", "text": "w", "parent": 9, "children": [], "start_point": {"row": 14, "column": 0}, "end_point": {"row": 14, "column": 1}}, {"id": 11, "type": "declaration", "text": "nload success\n\n @param v", "parent": null, "children": [12, 13], "start_point": {"row": 14, "column": 1}, "end_point": {"row": 14, "column": 25}}, {"id": 12, "type": "type_identifier", "text": "nload", "parent": 11, "children": [], "start_point": {"row": 14, "column": 1}, "end_point": {"row": 14, "column": 6}}, {"id": 13, "type": "identifier", "text": "success\n\n @param ", "parent": 11, "children": [], "start_point": {"row": 14, "column": 7}, "end_point": {"row": 14, "column": 24}}, {"id": 14, "type": "ERROR", "text": "eoDownLoader download\n */\n- (void)videoDownLo", "parent": null, "children": [15, 16, 17, 18, 19, 20], "start_point": {"row": 16, "column": 0}, "end_point": {"row": 16, "column": 45}}, {"id": 15, "type": "ERROR", "text": "e", "parent": 14, "children": [], "start_point": {"row": 16, "column": 0}, "end_point": {"row": 16, "column": 1}}, {"id": 16, "type": "type_identifier", "text": "oDownLoa", "parent": 14, "children": [], "start_point": {"row": 16, "column": 1}, "end_point": {"row": 16, "column": 9}}, {"id": 17, "type": "identifier", "text": "er download\n */\n- (void)v", "parent": 14, "children": [], "start_point": {"row": 16, "column": 10}, "end_point": {"row": 16, "column": 35}}, {"id": 18, "type": "<", "text": "i", "parent": 14, "children": [], "start_point": {"row": 16, "column": 35}, "end_point": {"row": 16, "column": 36}}, {"id": 19, "type": "identifier", "text": "deoDownL", "parent": 14, "children": [], "start_point": {"row": 16, "column": 36}, "end_point": {"row": 16, "column": 44}}, {"id": 20, "type": ">", "text": "o", "parent": 14, "children": [], "start_point": {"row": 16, "column": 44}, "end_point": {"row": 16, "column": 45}}, {"id": 21, "type": "update_expression", "text": " failed\n\n @param videoDownLoader downlod\n */\n- (void)videoDownLoa", "parent": null, "children": [22, 34], "start_point": {"row": 23, "column": 0}, "end_point": {"row": 23, "column": 65}}, {"id": 22, "type": "binary_expression", "text": " failed\n\n @param videoDownLoader downlod\n */\n- (void)videoDownLoa", "parent": 21, "children": [23, 29, 31, 32, 33], "start_point": {"row": 23, "column": 0}, "end_point": {"row": 23, "column": 65}}, {"id": 23, "type": "unary_expression", "text": " failed\n\n @param videoDownLo", "parent": 22, "children": [24, 25], "start_point": {"row": 23, "column": 0}, "end_point": {"row": 23, "column": 28}}, {"id": 24, "type": "-", "text": " ", "parent": 23, "children": [], "start_point": {"row": 23, "column": 0}, "end_point": {"row": 23, "column": 1}}, {"id": 25, "type": "cast_expression", "text": "ailed\n\n @param videoDownLo", "parent": 23, "children": [26, 28], "start_point": {"row": 23, "column": 2}, "end_point": {"row": 23, "column": 28}}, {"id": 26, "type": "type_descriptor", "text": "iled", "parent": 25, "children": [27], "start_point": {"row": 23, "column": 3}, "end_point": {"row": 23, "column": 7}}, {"id": 27, "type": "primitive_type", "text": "iled", "parent": 26, "children": [], "start_point": {"row": 23, "column": 3}, "end_point": {"row": 23, "column": 7}}, {"id": 28, "type": "identifier", "text": "\n @param videoDownLo", "parent": 25, "children": [], "start_point": {"row": 23, "column": 8}, "end_point": {"row": 23, "column": 28}}, {"id": 29, "type": "ERROR", "text": "ader downlod\n */\n- ", "parent": 22, "children": [30], "start_point": {"row": 23, "column": 28}, "end_point": {"row": 23, "column": 47}}, {"id": 30, "type": "identifier", "text": "er downlod\n */\n- ", "parent": 29, "children": [], "start_point": {"row": 23, "column": 30}, "end_point": {"row": 23, "column": 47}}, {"id": 31, "type": "*", "text": "v", "parent": 22, "children": [], "start_point": {"row": 23, "column": 48}, "end_point": {"row": 23, "column": 49}}, {"id": 32, "type": "ERROR", "text": "o", "parent": 22, "children": [], "start_point": {"row": 23, "column": 49}, "end_point": {"row": 23, "column": 50}}, {"id": 33, "type": "identifier", "text": "id)videoDownLoa", "parent": 22, "children": [], "start_point": {"row": 23, "column": 50}, "end_point": {"row": 23, "column": 65}}, {"id": 34, "type": "--", "text": "", "parent": 21, "children": [], "start_point": {"row": 23, "column": 65}, "end_point": {"row": 23, "column": 65}}, {"id": 35, "type": "update_expression", "text": "progress\n\n @param downLoadProgress downLoadProgress\n */\n- (void)", "parent": null, "children": [36, 48], "start_point": {"row": 30, "column": 0}, "end_point": {"row": 30, "column": 64}}, {"id": 36, "type": "binary_expression", "text": "progress\n\n @param downLoadProgress downLoadProgress\n */\n- (void)", "parent": 35, "children": [37, 43, 45, 46, 47], "start_point": {"row": 30, "column": 0}, "end_point": {"row": 30, "column": 64}}, {"id": 37, "type": "unary_expression", "text": "progress\n\n @param downLoadP", "parent": 36, "children": [38, 39], "start_point": {"row": 30, "column": 0}, "end_point": {"row": 30, "column": 27}}, {"id": 38, "type": "-", "text": "p", "parent": 37, "children": [], "start_point": {"row": 30, "column": 0}, "end_point": {"row": 30, "column": 1}}, {"id": 39, "type": "cast_expression", "text": "ogress\n\n @param downLoadP", "parent": 37, "children": [40, 42], "start_point": {"row": 30, "column": 2}, "end_point": {"row": 30, "column": 27}}, {"id": 40, "type": "type_descriptor", "text": "gres", "parent": 39, "children": [41], "start_point": {"row": 30, "column": 3}, "end_point": {"row": 30, "column": 7}}, {"id": 41, "type": "primitive_type", "text": "gres", "parent": 40, "children": [], "start_point": {"row": 30, "column": 3}, "end_point": {"row": 30, "column": 7}}, {"id": 42, "type": "identifier", "text": "\n\n @param downLoadP", "parent": 39, "children": [], "start_point": {"row": 30, "column": 8}, "end_point": {"row": 30, "column": 27}}, {"id": 43, "type": "ERROR", "text": "rogress downLoadPro", "parent": 36, "children": [44], "start_point": {"row": 30, "column": 27}, "end_point": {"row": 30, "column": 46}}, {"id": 44, "type": "identifier", "text": "gress downLoadPro", "parent": 43, "children": [], "start_point": {"row": 30, "column": 29}, "end_point": {"row": 30, "column": 46}}, {"id": 45, "type": "*", "text": "r", "parent": 36, "children": [], "start_point": {"row": 30, "column": 47}, "end_point": {"row": 30, "column": 48}}, {"id": 46, "type": "ERROR", "text": "e", "parent": 36, "children": [], "start_point": {"row": 30, "column": 48}, "end_point": {"row": 30, "column": 49}}, {"id": 47, "type": "identifier", "text": "ss\n */\n- (void)", "parent": 36, "children": [], "start_point": {"row": 30, "column": 49}, "end_point": {"row": 30, "column": 64}}, {"id": 48, "type": "--", "text": "", "parent": 35, "children": [], "start_point": {"row": 30, "column": 64}, "end_point": {"row": 30, "column": 64}}, {"id": 49, "type": "unary_expression", "text": "oDownloader : NSObject\n\n/**\n ", "parent": null, "children": [50, 51], "start_point": {"row": 37, "column": 0}, "end_point": {"row": 37, "column": 29}}, {"id": 50, "type": "-", "text": "o", "parent": 49, "children": [], "start_point": {"row": 37, "column": 0}, "end_point": {"row": 37, "column": 1}}, {"id": 51, "type": "cast_expression", "text": "ownloader : NSObject\n\n/**\n ", "parent": 49, "children": [52, 54], "start_point": {"row": 37, "column": 2}, "end_point": {"row": 37, "column": 29}}, {"id": 52, "type": "type_descriptor", "text": "wnlo", "parent": 51, "children": [53], "start_point": {"row": 37, "column": 3}, "end_point": {"row": 37, "column": 7}}, {"id": 53, "type": "primitive_type", "text": "wnlo", "parent": 52, "children": [], "start_point": {"row": 37, "column": 3}, "end_point": {"row": 37, "column": 7}}, {"id": 54, "type": "identifier", "text": "der : NSObject\n\n/**\n ", "parent": 51, "children": [], "start_point": {"row": 37, "column": 8}, "end_point": {"row": 37, "column": 29}}, {"id": 55, "type": "ERROR", "text": "Model\n */\n@property (nonat", "parent": null, "children": [56, 57], "start_point": {"row": 37, "column": 29}, "end_point": {"row": 37, "column": 55}}, {"id": 56, "type": "identifier", "text": "del\n */", "parent": 55, "children": [], "start_point": {"row": 37, "column": 31}, "end_point": {"row": 37, "column": 38}}, {"id": 57, "type": "identifier", "text": "@property (nonat", "parent": 55, "children": [], "start_point": {"row": 37, "column": 39}, "end_point": {"row": 37, "column": 55}}, {"id": 58, "type": "ERROR", "text": "c", "parent": null, "children": [59], "start_point": {"row": 39, "column": 0}, "end_point": {"row": 39, "column": 1}}, {"id": 59, "type": "ERROR", "text": "c", "parent": 58, "children": [], "start_point": {"row": 39, "column": 0}, "end_point": {"row": 39, "column": 1}}, {"id": 60, "type": "declaration", "text": ", strong) SKM3U", "parent": null, "children": [61, 62, 64], "start_point": {"row": 39, "column": 1}, "end_point": {"row": 41, "column": 10}}, {"id": 61, "type": "type_identifier", "text": ", s", "parent": 60, "children": [], "start_point": {"row": 39, "column": 1}, "end_point": {"row": 39, "column": 4}}, {"id": 62, "type": "ERROR", "text": "o", "parent": 60, "children": [63], "start_point": {"row": 41, "column": 0}, "end_point": {"row": 41, "column": 1}}, {"id": 63, "type": "ERROR", "text": "o", "parent": 62, "children": [], "start_point": {"row": 41, "column": 0}, "end_point": {"row": 41, "column": 1}}, {"id": 64, "type": "identifier", "text": "ng) SKM3U", "parent": 60, "children": [], "start_point": {"row": 41, "column": 1}, "end_point": {"row": 41, "column": 10}}, {"id": 65, "type": "labeled_statement", "text": "PlayListModel *playList;\n\n@property (nonatomic, copy) NSString *originM3U8Url;\n\n- (void)startDownLoadVide", "parent": null, "children": [66, 67], "start_point": {"row": 41, "column": 11}, "end_point": {"row": 46, "column": 60}}, {"id": 66, "type": "statement_identifier", "text": "PlayListModel *pl", "parent": 65, "children": [], "start_point": {"row": 41, "column": 11}, "end_point": {"row": 41, "column": 28}}, {"id": 67, "type": "declaration", "text": "ist;\n\n@property (nonatomic, copy) NSString *originM3U8Url;\n\n- (void)startDownLoadVide", "parent": 65, "children": [68, 69, 79], "start_point": {"row": 41, "column": 31}, "end_point": {"row": 46, "column": 60}}, {"id": 68, "type": "type_identifier", "text": "ist;\n\n@p", "parent": 67, "children": [], "start_point": {"row": 41, "column": 31}, "end_point": {"row": 41, "column": 39}}, {"id": 69, "type": "ERROR", "text": "c, copy) NSString *originM3U8Url;\n\n- (void)startD", "parent": 67, "children": [70, 71], "start_point": {"row": 46, "column": 0}, "end_point": {"row": 46, "column": 49}}, {"id": 70, "type": "ERROR", "text": "c", "parent": 69, "children": [], "start_point": {"row": 46, "column": 0}, "end_point": {"row": 46, "column": 1}}, {"id": 71, "type": "function_declarator", "text": ", copy) NSString *originM3U8Url;\n\n- (void)startD", "parent": 69, "children": [72, 73, 78], "start_point": {"row": 46, "column": 1}, "end_point": {"row": 46, "column": 49}}, {"id": 72, "type": "identifier", "text": ", copy) ", "parent": 71, "children": [], "start_point": {"row": 46, "column": 1}, "end_point": {"row": 46, "column": 9}}, {"id": 73, "type": "parameter_list", "text": "SString *originM3U8", "parent": 71, "children": [74, 76], "start_point": {"row": 46, "column": 10}, "end_point": {"row": 46, "column": 29}}, {"id": 74, "type": "parameter_declaration", "text": "String *o", "parent": 73, "children": [75], "start_point": {"row": 46, "column": 11}, "end_point": {"row": 46, "column": 20}}, {"id": 75, "type": "type_identifier", "text": "String *o", "parent": 74, "children": [], "start_point": {"row": 46, "column": 11}, "end_point": {"row": 46, "column": 20}}, {"id": 76, "type": "parameter_declaration", "text": "ginM3U", "parent": 73, "children": [77], "start_point": {"row": 46, "column": 22}, "end_point": {"row": 46, "column": 28}}, {"id": 77, "type": "type_identifier", "text": "ginM3U", "parent": 76, "children": [], "start_point": {"row": 46, "column": 22}, "end_point": {"row": 46, "column": 28}}, {"id": 78, "type": "identifier", "text": "rl;\n\n- (void)startD", "parent": 71, "children": [], "start_point": {"row": 46, "column": 30}, "end_point": {"row": 46, "column": 49}}, {"id": 79, "type": "pointer_declarator", "text": "wnLoadVid", "parent": 67, "children": [80, 81], "start_point": {"row": 46, "column": 50}, "end_point": {"row": 46, "column": 59}}, {"id": 80, "type": "*", "text": "w", "parent": 79, "children": [], "start_point": {"row": 46, "column": 50}, "end_point": {"row": 46, "column": 51}}, {"id": 81, "type": "identifier", "text": "nLoadVid", "parent": 79, "children": [], "start_point": {"row": 46, "column": 51}, "end_point": {"row": 46, "column": 59}}, {"id": 82, "type": "ERROR", "text": "\n", "parent": null, "children": [83], "start_point": {"row": 48, "column": 0}, "end_point": {"row": 48, "column": 1}}, {"id": 83, "type": "ERROR", "text": "\n", "parent": 82, "children": [], "start_point": {"row": 48, "column": 0}, "end_point": {"row": 48, "column": 1}}, {"id": 84, "type": "call_expression", "text": "\n- (void)pauseDownLoadVide", "parent": null, "children": [85, 86], "start_point": {"row": 48, "column": 1}, "end_point": {"row": 48, "column": 27}}, {"id": 85, "type": "identifier", "text": "\n- (void", "parent": 84, "children": [], "start_point": {"row": 48, "column": 1}, "end_point": {"row": 48, "column": 9}}, {"id": 86, "type": "argument_list", "text": "pauseDownLoadVide", "parent": 84, "children": [87, 88], "start_point": {"row": 48, "column": 10}, "end_point": {"row": 48, "column": 27}}, {"id": 87, "type": "identifier", "text": "auseDownL", "parent": 86, "children": [], "start_point": {"row": 48, "column": 11}, "end_point": {"row": 48, "column": 20}}, {"id": 88, "type": "identifier", "text": "dVid", "parent": 86, "children": [], "start_point": {"row": 48, "column": 22}, "end_point": {"row": 48, "column": 26}}, {"id": 89, "type": "declaration", "text": ";\n\n- (void)continueDownL", "parent": null, "children": [90, 91], "start_point": {"row": 48, "column": 28}, "end_point": {"row": 48, "column": 52}}, {"id": 90, "type": "type_identifier", "text": ";\n\n- (vo", "parent": 89, "children": [], "start_point": {"row": 48, "column": 28}, "end_point": {"row": 48, "column": 36}}, {"id": 91, "type": "pointer_declarator", "text": "d)continueDown", "parent": 89, "children": [92, 93], "start_point": {"row": 48, "column": 37}, "end_point": {"row": 48, "column": 51}}, {"id": 92, "type": "*", "text": "d", "parent": 91, "children": [], "start_point": {"row": 48, "column": 37}, "end_point": {"row": 48, "column": 38}}, {"id": 93, "type": "identifier", "text": ")continueDown", "parent": 91, "children": [], "start_point": {"row": 48, "column": 38}, "end_point": {"row": 48, "column": 51}}, {"id": 94, "type": "unary_expression", "text": "dVideo;\n\n/**\n \u9700\u8981\u4e0b\u8f7d\u7684\u6570\u7ec4(\u6240\u6709\u4e0b\u8f7d", "parent": null, "children": [95, 96], "start_point": {"row": 50, "column": 0}, "end_point": {"row": 50, "column": 26}}, {"id": 95, "type": "-", "text": "d", "parent": 94, "children": [], "start_point": {"row": 50, "column": 0}, "end_point": {"row": 50, "column": 1}}, {"id": 96, "type": "cast_expression", "text": "ideo;\n\n/**\n \u9700\u8981\u4e0b\u8f7d\u7684\u6570\u7ec4(\u6240\u6709\u4e0b\u8f7d", "parent": 94, "children": [97, 99], "start_point": {"row": 50, "column": 2}, "end_point": {"row": 50, "column": 26}}, {"id": 97, "type": "type_descriptor", "text": "deo;", "parent": 96, "children": [98], "start_point": {"row": 50, "column": 3}, "end_point": {"row": 50, "column": 7}}, {"id": 98, "type": "primitive_type", "text": "deo;", "parent": 97, "children": [], "start_point": {"row": 50, "column": 3}, "end_point": {"row": 50, "column": 7}}, {"id": 99, "type": "identifier", "text": "\n/**\n \u9700\u8981\u4e0b\u8f7d\u7684\u6570\u7ec4(\u6240\u6709\u4e0b\u8f7d", "parent": 96, "children": [], "start_point": {"row": 50, "column": 8}, "end_point": {"row": 50, "column": 26}}, {"id": 100, "type": "unary_expression", "text": "\u5408)\n */\n@property (nonatomi", "parent": null, "children": [101, 102], "start_point": {"row": 52, "column": 0}, "end_point": {"row": 52, "column": 26}}, {"id": 101, "type": "-", "text": "\u5408", "parent": 100, "children": [], "start_point": {"row": 52, "column": 0}, "end_point": {"row": 52, "column": 1}}, {"id": 102, "type": "cast_expression", "text": "\n */\n@property (nonatomi", "parent": 100, "children": [103, 105], "start_point": {"row": 52, "column": 2}, "end_point": {"row": 52, "column": 26}}, {"id": 103, "type": "type_descriptor", "text": " */\n", "parent": 102, "children": [104], "start_point": {"row": 52, "column": 3}, "end_point": {"row": 52, "column": 7}}, {"id": 104, "type": "primitive_type", "text": " */\n", "parent": 103, "children": [], "start_point": {"row": 52, "column": 3}, "end_point": {"row": 52, "column": 7}}, {"id": 105, "type": "identifier", "text": "property (nonatomi", "parent": 102, "children": [], "start_point": {"row": 52, "column": 8}, "end_point": {"row": 52, "column": 26}}, {"id": 106, "type": "unary_expression", "text": "strong) NSMutableArray *downl", "parent": null, "children": [107, 108], "start_point": {"row": 54, "column": 0}, "end_point": {"row": 54, "column": 29}}, {"id": 107, "type": "-", "text": "s", "parent": 106, "children": [], "start_point": {"row": 54, "column": 0}, "end_point": {"row": 54, "column": 1}}, {"id": 108, "type": "cast_expression", "text": "rong) NSMutableArray *downl", "parent": 106, "children": [109, 111], "start_point": {"row": 54, "column": 2}, "end_point": {"row": 54, "column": 29}}, {"id": 109, "type": "type_descriptor", "text": "ong)", "parent": 108, "children": [110], "start_point": {"row": 54, "column": 3}, "end_point": {"row": 54, "column": 7}}, {"id": 110, "type": "primitive_type", "text": "ong)", "parent": 109, "children": [], "start_point": {"row": 54, "column": 3}, "end_point": {"row": 54, "column": 7}}, {"id": 111, "type": "identifier", "text": "NSMutableArray *downl", "parent": 108, "children": [], "start_point": {"row": 54, "column": 8}, "end_point": {"row": 54, "column": 29}}, {"id": 112, "type": "ERROR", "text": "D", "parent": null, "children": [113], "start_point": {"row": 59, "column": 0}, "end_point": {"row": 59, "column": 1}}, {"id": 113, "type": "ERROR", "text": "D", "parent": 112, "children": [], "start_point": {"row": 59, "column": 0}, "end_point": {"row": 59, "column": 1}}, {"id": 114, "type": "call_expression", "text": "elegate> delegate;\n/**\n \u603b\u5171\u4e0b\u8f7d", "parent": null, "children": [115, 116], "start_point": {"row": 59, "column": 1}, "end_point": {"row": 59, "column": 29}}, {"id": 115, "type": "identifier", "text": "elegate>", "parent": 114, "children": [], "start_point": {"row": 59, "column": 1}, "end_point": {"row": 59, "column": 9}}, {"id": 116, "type": "argument_list", "text": "delegate;\n/**\n \u603b\u5171\u4e0b\u8f7d", "parent": 114, "children": [117, 118], "start_point": {"row": 59, "column": 10}, "end_point": {"row": 59, "column": 29}}, {"id": 117, "type": "identifier", "text": "elegate;\n", "parent": 116, "children": [], "start_point": {"row": 59, "column": 11}, "end_point": {"row": 59, "column": 20}}, {"id": 118, "type": "identifier", "text": "*\n \u603b\u5171\u4e0b", "parent": 116, "children": [], "start_point": {"row": 59, "column": 22}, "end_point": {"row": 59, "column": 28}}, {"id": 119, "type": "declaration", "text": "\u6570\u7ec4\n */\n@property (nonatomic, a", "parent": null, "children": [120, 121], "start_point": {"row": 59, "column": 30}, "end_point": {"row": 59, "column": 60}}, {"id": 120, "type": "type_identifier", "text": "\u6570\u7ec4\n */\n@proper", "parent": 119, "children": [], "start_point": {"row": 59, "column": 30}, "end_point": {"row": 59, "column": 44}}, {"id": 121, "type": "pointer_declarator", "text": "y (nonatomic, ", "parent": 119, "children": [122, 123], "start_point": {"row": 59, "column": 45}, "end_point": {"row": 59, "column": 59}}, {"id": 122, "type": "*", "text": "y", "parent": 121, "children": [], "start_point": {"row": 59, "column": 45}, "end_point": {"row": 59, "column": 46}}, {"id": 123, "type": "identifier", "text": " (nonatomic, ", "parent": 121, "children": [], "start_point": {"row": 59, "column": 46}, "end_point": {"row": 59, "column": 59}}, {"id": 124, "type": "ERROR", "text": "ign) NSInteger totalDownLoadcount;\n\n\n/**\n create local m3u8 file\n *", "parent": null, "children": [125, 126], "start_point": {"row": 61, "column": 0}, "end_point": {"row": 61, "column": 67}}, {"id": 125, "type": "ERROR", "text": "i", "parent": 124, "children": [], "start_point": {"row": 61, "column": 0}, "end_point": {"row": 61, "column": 1}}, {"id": 126, "type": "binary_expression", "text": "gn) NSInteger totalDownLoadcount;\n\n\n/**\n create local m3u8 file\n *", "parent": 124, "children": [127, 137, 138], "start_point": {"row": 61, "column": 1}, "end_point": {"row": 61, "column": 67}}, {"id": 127, "type": "binary_expression", "text": "gn) NSInteger totalDownLoadcount;\n\n\n/**\n create local m3", "parent": 126, "children": [128, 133, 135, 136], "start_point": {"row": 61, "column": 1}, "end_point": {"row": 61, "column": 57}}, {"id": 128, "type": "call_expression", "text": "gn) NSInteger totalDownLoa", "parent": 127, "children": [129, 130], "start_point": {"row": 61, "column": 1}, "end_point": {"row": 61, "column": 27}}, {"id": 129, "type": "identifier", "text": "gn) NSIn", "parent": 128, "children": [], "start_point": {"row": 61, "column": 1}, "end_point": {"row": 61, "column": 9}}, {"id": 130, "type": "argument_list", "text": "eger totalDownLoa", "parent": 128, "children": [131, 132], "start_point": {"row": 61, "column": 10}, "end_point": {"row": 61, "column": 27}}, {"id": 131, "type": "identifier", "text": "ger total", "parent": 130, "children": [], "start_point": {"row": 61, "column": 11}, "end_point": {"row": 61, "column": 20}}, {"id": 132, "type": "identifier", "text": "wnLo", "parent": 130, "children": [], "start_point": {"row": 61, "column": 22}, "end_point": {"row": 61, "column": 26}}, {"id": 133, "type": "ERROR", "text": "co", "parent": 127, "children": [134], "start_point": {"row": 61, "column": 28}, "end_point": {"row": 61, "column": 30}}, {"id": 134, "type": "identifier", "text": "co", "parent": 133, "children": [], "start_point": {"row": 61, "column": 28}, "end_point": {"row": 61, "column": 30}}, {"id": 135, "type": "<", "text": "n", "parent": 127, "children": [], "start_point": {"row": 61, "column": 31}, "end_point": {"row": 61, "column": 32}}, {"id": 136, "type": "identifier", "text": "t;\n\n\n/**\n create local m3", "parent": 127, "children": [], "start_point": {"row": 61, "column": 32}, "end_point": {"row": 61, "column": 57}}, {"id": 137, "type": ">", "text": "u", "parent": 126, "children": [], "start_point": {"row": 61, "column": 57}, "end_point": {"row": 61, "column": 58}}, {"id": 138, "type": "identifier", "text": " file\n *", "parent": 126, "children": [], "start_point": {"row": 61, "column": 59}, "end_point": {"row": 61, "column": 67}}, {"id": 139, "type": "ERROR", "text": "e", "parent": null, "children": [], "start_point": {"row": 65, "column": 0}, "end_point": {"row": 65, "column": 1}}, {"id": 140, "type": "call_expression", "text": "nd\n", "parent": null, "children": [141, 142], "start_point": {"row": 65, "column": 1}, "end_point": {"row": 65, "column": 29}}, {"id": 141, "type": "identifier", "text": "nd\n", "parent": 140, "children": [], "start_point": {"row": 65, "column": 1}, "end_point": {"row": 65, "column": 9}}, {"id": 142, "type": "argument_list", "text": "", "parent": 140, "children": [143, 144], "start_point": {"row": 65, "column": 10}, "end_point": {"row": 65, "column": 29}}, {"id": 143, "type": "identifier", "text": "", "parent": 142, "children": [], "start_point": {"row": 65, "column": 11}, "end_point": {"row": 65, "column": 20}}, {"id": 144, "type": "identifier", "text": "", "parent": 142, "children": [], "start_point": {"row": 65, "column": 22}, "end_point": {"row": 65, "column": 28}}, {"id": 145, "type": "identifier", "text": "", "parent": null, "children": [], "start_point": {"row": 65, "column": 30}, "end_point": {"row": 65, "column": 39}}, {"id": 146, "type": "identifier", "text": "", "parent": null, "children": [], "start_point": {"row": 65, "column": 40}, "end_point": {"row": 65, "column": 58}}, {"id": 147, "type": "unary_expression", "text": "", "parent": null, "children": [148, 149], "start_point": {"row": 71, "column": 0}, "end_point": {"row": 71, "column": 27}}, {"id": 148, "type": "-", "text": "", "parent": 147, "children": [], "start_point": {"row": 71, "column": 0}, "end_point": {"row": 71, "column": 1}}, {"id": 149, "type": "cast_expression", "text": "", "parent": 147, "children": [150, 152], "start_point": {"row": 71, "column": 2}, "end_point": {"row": 71, "column": 27}}, {"id": 150, "type": "type_descriptor", "text": "", "parent": 149, "children": [151], "start_point": {"row": 71, "column": 3}, "end_point": {"row": 71, "column": 7}}, {"id": 151, "type": "primitive_type", "text": "", "parent": 150, "children": [], "start_point": {"row": 71, "column": 3}, "end_point": {"row": 71, "column": 7}}, {"id": 152, "type": "identifier", "text": "", "parent": 149, "children": [], "start_point": {"row": 71, "column": 8}, "end_point": {"row": 71, "column": 27}}, {"id": 153, "type": "ERROR", "text": "", "parent": null, "children": [154], "start_point": {"row": 73, "column": 0}, "end_point": {"row": 73, "column": 1}}, {"id": 154, "type": "ERROR", "text": "", "parent": 153, "children": [], "start_point": {"row": 73, "column": 0}, "end_point": {"row": 73, "column": 1}}, {"id": 155, "type": "identifier", "text": "", "parent": null, "children": [], "start_point": {"row": 73, "column": 1}, "end_point": {"row": 73, "column": 4}}]}, "node_categories": {"declarations": {"functions": [71], "variables": [11, 60, 67, 74, 76, 89, 119], "classes": [], "imports": [], "modules": [], "enums": []}, "statements": {"expressions": [21, 22, 23, 25, 35, 36, 37, 39, 49, 51, 84, 94, 96, 100, 102, 106, 108, 114, 126, 127, 128, 140, 147, 149], "assignments": [], "loops": [], "conditionals": [12, 13, 16, 17, 19, 28, 30, 33, 42, 44, 47, 54, 56, 57, 61, 64, 66, 68, 72, 75, 77, 78, 81, 85, 87, 88, 90, 93, 99, 105, 111, 115, 117, 118, 120, 123, 129, 131, 132, 134, 136, 138, 141, 143, 144, 145, 146, 152, 155], "returns": [], "exceptions": []}, "expressions": {"calls": [0, 3, 6], "literals": [], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [{"node_id": 71, "universal_type": "function", "name": "unknown", "text_snippet": ", copy) NSString *originM3U8Url;\n\n- (void)startD"}], "class_declarations": [], "import_statements": []}, "original_source_code": "//\n// SKVideoDownloader.h\n// SKVideoPlayer\n//\n// Created by shavekevin on 2018/6/20.\n// Copyright \u00a9 2018\u5e74 shavekevin. All rights reserved.\n//\n\n#import <Foundation/Foundation.h>\n#import \"SKM3U8PlayListModel.h\"\n#import <UIKit/UIKit.h>\n/**\n \u6587\u4ef6\u4e0b\u8f7d\u7ba1\u7406\u5e76\u7ec4\u88c5\u4e0b\u8f7d\u540e\u7684\u6587\u4ef6\u4e3a\u672c\u5730m3u8 \u6267\u884c\u4e0b\u8f7d\u64cd\u4f5c(\u603b\u7684\u4e0b\u8f7d\u64cd\u4f5c-\u5bf9\u5355\u4e2a\u4e0b\u8f7d\u5668\u505a\u64cd\u4f5c)\n */\n@class SKVideoDownloader;\n\n@protocol SKVideoDownloaderDelegate<NSObject>\n\n/**\n download success\n\n @param videoDownLoader download\n */\n- (void)videoDownLoadSuccess:(SKVideoDownloader *)videoDownLoader;\n\n/**\n download failed\n\n @param videoDownLoader downlod\n */\n- (void)videoDownLoadFailed:(SKVideoDownloader *)videoDownLoader;\n\n/**\n download progress\n\n @param downLoadProgress downLoadProgress\n */\n- (void)videoDownLoadProgress:(CGFloat)downLoadProgress;\n\n@end\n\n@interface SKVideoDownloader : NSObject\n\n/**\n Model\n */\n@property (nonatomic, strong) SKM3U8PlayListModel *playList;\n\n@property (nonatomic, copy) NSString *originM3U8Url;\n\n- (void)startDownLoadVideo;\n\n- (void)pauseDownLoadVideo;\n\n- (void)continueDownLoadVideo;\n\n/**\n \u9700\u8981\u4e0b\u8f7d\u7684\u6570\u7ec4(\u6240\u6709\u4e0b\u8f7d\u5668\u7684\u96c6\u5408)\n */\n@property (nonatomic, strong) NSMutableArray *downloadArray;\n\n@property (nonatomic, weak) id <SKVideoDownloaderDelegate> delegate;\n/**\n \u603b\u5171\u4e0b\u8f7d\u7684\u6570\u7ec4\n */\n@property (nonatomic, assign) NSInteger totalDownLoadcount;\n\n\n/**\n create local m3u8 file\n */\n- (void)createLocalM3U8File;\n\n@end\n"}
80,034
c
#ifndef DIALOG_H #define DIALOG_H #include <QDialog> #include "examplemodel.h" #include "exampleview.h" QT_BEGIN_NAMESPACE class QVBoxLayout; QT_END_NAMESPACE class ExampleDialog : public QDialog { Q_OBJECT public: ExampleDialog(QWidget *parent = 0); ~ExampleDialog(); QVBoxLayout *m_pVBoxLayout; ExampleView *m_pExampleView; QSharedPointer<ExampleModel> m_pExampleModel; }; #endif // DIALOG_H
21
19
(translation_unit) "#ifndef DIALOG_H\n#define DIALOG_H\n\n#include <QDialog>\n\n#include "examplemodel.h"\n#include "exampleview.h"\n\nQT_BEGIN_NAMESPACE\nclass QVBoxLayout;\nQT_END_NAMESPACE\n\nclass ExampleDialog : public QDialog\n{\n Q_OBJECT\n\npublic:\n ExampleDialog(QWidget *parent = 0);\n ~ExampleDialog();\n\n QVBoxLayout *m_pVBoxLayout;\n ExampleView *m_pExampleView;\n QSharedPointer<ExampleModel> m_pExampleModel;\n};\n\n#endif // DIALOG_H\n" (preproc_ifdef) "#ifndef DIALOG_H\n#define DIALOG_H\n\n#include <QDialog>\n\n#include "examplemodel.h"\n#include "exampleview.h"\n\nQT_BEGIN_NAMESPACE\nclass QVBoxLayout;\nQT_END_NAMESPACE\n\nclass ExampleDialog : public QDialog\n{\n Q_OBJECT\n\npublic:\n ExampleDialog(QWidget *parent = 0);\n ~ExampleDialog();\n\n QVBoxLayout *m_pVBoxLayout;\n ExampleView *m_pExampleView;\n QSharedPointer<ExampleModel> m_pExampleModel;\n};\n\n#endif" (#ifndef) "#ifndef" (identifier) "DIALOG_H" (preproc_def) "#define DIALOG_H\n" (#define) "#define" (identifier) "DIALOG_H" (preproc_include) "#include <QDialog>\n" (#include) "#include" (system_lib_string) "<QDialog>" (preproc_include) "#include "examplemodel.h"\n" (#include) "#include" (string_literal) ""examplemodel.h"" (") """ (string_content) "examplemodel.h" (") """ (preproc_include) "#include "exampleview.h"\n" (#include) "#include" (string_literal) ""exampleview.h"" (") """ (string_content) "exampleview.h" (") """ (declaration) "QT_BEGIN_NAMESPACE\nclass QVBoxLayout;" (type_identifier) "QT_BEGIN_NAMESPACE" (ERROR) "class" (identifier) "class" (identifier) "QVBoxLayout" (;) ";" (declaration) "QT_END_NAMESPACE\n\nclass" (type_identifier) "QT_END_NAMESPACE" (identifier) "class" (;) "" (labeled_statement) "ExampleDialog : public QDialog\n{\n Q_OBJECT\n\npublic:\n ExampleDialog(QWidget *parent = 0);\n ~ExampleDialog();\n\n QVBoxLayout *m_pVBoxLayout;\n ExampleView *m_pExampleView;\n QSharedPointer<ExampleModel> m_pExampleModel;\n}" (statement_identifier) "ExampleDialog" (:) ":" (ERROR) "public QDialog" (type_identifier) "public" (identifier) "QDialog" (compound_statement) "{\n Q_OBJECT\n\npublic:\n ExampleDialog(QWidget *parent = 0);\n ~ExampleDialog();\n\n QVBoxLayout *m_pVBoxLayout;\n ExampleView *m_pExampleView;\n QSharedPointer<ExampleModel> m_pExampleModel;\n}" ({) "{" (declaration) "Q_OBJECT\n\npublic:\n ExampleDialog(QWidget *parent = 0);" (type_identifier) "Q_OBJECT" (ERROR) "public:" (identifier) "public" (:) ":" (init_declarator) "ExampleDialog(QWidget *parent = 0" (function_declarator) "ExampleDialog(QWidget *parent" (identifier) "ExampleDialog" (parameter_list) "(QWidget *parent" (() "(" (parameter_declaration) "QWidget *parent" (type_identifier) "QWidget" (pointer_declarator) "*parent" (*) "*" (identifier) "parent" ()) "" (=) "=" (number_literal) "0" (ERROR) ")" ()) ")" (;) ";" (expression_statement) "~ExampleDialog();" (unary_expression) "~ExampleDialog()" (~) "~" (call_expression) "ExampleDialog()" (identifier) "ExampleDialog" (argument_list) "()" (() "(" ()) ")" (;) ";" (declaration) "QVBoxLayout *m_pVBoxLayout;" (type_identifier) "QVBoxLayout" (pointer_declarator) "*m_pVBoxLayout" (*) "*" (identifier) "m_pVBoxLayout" (;) ";" (declaration) "ExampleView *m_pExampleView;" (type_identifier) "ExampleView" (pointer_declarator) "*m_pExampleView" (*) "*" (identifier) "m_pExampleView" (;) ";" (expression_statement) "QSharedPointer<ExampleModel> m_pExampleModel;" (binary_expression) "QSharedPointer<ExampleModel> m_pExampleModel" (binary_expression) "QSharedPointer<ExampleModel" (identifier) "QSharedPointer" (<) "<" (identifier) "ExampleModel" (>) ">" (identifier) "m_pExampleModel" (;) ";" (}) "}" (expression_statement) ";" (;) ";" (#endif) "#endif" (comment) "// DIALOG_H"
96
4
{"language": "c", "success": true, "metadata": {"lines": 19, "avg_line_length": 21.0, "nodes": 61, "errors": 0, "source_hash": "96c94efebe549188e80793d378787a96b830a02763e7e9113b261b3d56b964a9", "categorized_nodes": 43}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef DIALOG_H\n#define DIALOG_H\n\n#include <QDialog>\n\n#include \"examplemodel.h\"\n#include \"exampleview.h\"\n\nQT_BEGIN_NAMESPACE\nclass QVBoxLayout;\nQT_END_NAMESPACE\n\nclass ExampleDialog : public QDialog\n{\n Q_OBJECT\n\npublic:\n ExampleDialog(QWidget *parent = 0);\n ~ExampleDialog();\n\n QVBoxLayout *m_pVBoxLayout;\n ExampleView *m_pExampleView;\n QSharedPointer<ExampleModel> m_pExampleModel;\n};\n\n#endif", "parent": null, "children": [1, 2, 3, 6, 9, 12, 15, 18, 20, 60], "start_point": {"row": 0, "column": 0}, "end_point": {"row": 25, "column": 6}}, {"id": 1, "type": "#ifndef", "text": "#ifndef", "parent": 0, "children": [], "start_point": {"row": 0, "column": 0}, "end_point": {"row": 0, "column": 7}}, {"id": 2, "type": "identifier", "text": "DIALOG_H", "parent": 0, "children": [], "start_point": {"row": 0, "column": 8}, "end_point": {"row": 0, "column": 16}}, {"id": 3, "type": "preproc_def", "text": "#define DIALOG_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": "DIALOG_H", "parent": 3, "children": [], "start_point": {"row": 1, "column": 8}, "end_point": {"row": 1, "column": 16}}, {"id": 6, "type": "preproc_include", "text": "#include <QDialog>\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": "<QDialog>", "parent": 6, "children": [], "start_point": {"row": 3, "column": 9}, "end_point": {"row": 3, "column": 18}}, {"id": 9, "type": "preproc_include", "text": "#include \"examplemodel.h\"\n", "parent": 0, "children": [10, 11], "start_point": {"row": 5, "column": 0}, "end_point": {"row": 6, "column": 0}}, {"id": 10, "type": "#include", "text": "#include", "parent": 9, "children": [], "start_point": {"row": 5, "column": 0}, "end_point": {"row": 5, "column": 8}}, {"id": 11, "type": "string_literal", "text": "\"examplemodel.h\"", "parent": 9, "children": [], "start_point": {"row": 5, "column": 9}, "end_point": {"row": 5, "column": 25}}, {"id": 12, "type": "preproc_include", "text": "#include \"exampleview.h\"\n", "parent": 0, "children": [13, 14], "start_point": {"row": 6, "column": 0}, "end_point": {"row": 7, "column": 0}}, {"id": 13, "type": "#include", "text": "#include", "parent": 12, "children": [], "start_point": {"row": 6, "column": 0}, "end_point": {"row": 6, "column": 8}}, {"id": 14, "type": "string_literal", "text": "\"exampleview.h\"", "parent": 12, "children": [], "start_point": {"row": 6, "column": 9}, "end_point": {"row": 6, "column": 24}}, {"id": 15, "type": "declaration", "text": "QT_BEGIN_NAMESPACE\nclass QVBoxLayout;", "parent": 0, "children": [16, 17], "start_point": {"row": 8, "column": 0}, "end_point": {"row": 9, "column": 18}}, {"id": 16, "type": "type_identifier", "text": "QT_BEGIN_NAMESPACE", "parent": 15, "children": [], "start_point": {"row": 8, "column": 0}, "end_point": {"row": 8, "column": 18}}, {"id": 17, "type": "identifier", "text": "QVBoxLayout", "parent": 15, "children": [], "start_point": {"row": 9, "column": 6}, "end_point": {"row": 9, "column": 17}}, {"id": 18, "type": "declaration", "text": "QT_END_NAMESPACE\n\nclass", "parent": 0, "children": [19], "start_point": {"row": 10, "column": 0}, "end_point": {"row": 12, "column": 5}}, {"id": 19, "type": "type_identifier", "text": "QT_END_NAMESPACE", "parent": 18, "children": [], "start_point": {"row": 10, "column": 0}, "end_point": {"row": 10, "column": 16}}, {"id": 20, "type": "labeled_statement", "text": "ExampleDialog : public QDialog\n{\n Q_OBJECT\n\npublic:\n ExampleDialog(QWidget *parent = 0);\n ~ExampleDialog();\n\n QVBoxLayout *m_pVBoxLayout;\n ExampleView *m_pExampleView;\n QSharedPointer<ExampleModel> m_pExampleModel;\n}", "parent": 0, "children": [21, 22], "start_point": {"row": 12, "column": 6}, "end_point": {"row": 23, "column": 1}}, {"id": 21, "type": "statement_identifier", "text": "ExampleDialog", "parent": 20, "children": [], "start_point": {"row": 12, "column": 6}, "end_point": {"row": 12, "column": 19}}, {"id": 22, "type": "ERROR", "text": "public QDialog", "parent": 20, "children": [23], "start_point": {"row": 12, "column": 22}, "end_point": {"row": 12, "column": 36}}, {"id": 23, "type": "identifier", "text": "QDialog", "parent": 22, "children": [], "start_point": {"row": 12, "column": 29}, "end_point": {"row": 12, "column": 36}}, {"id": 24, "type": "declaration", "text": "Q_OBJECT\n\npublic:\n ExampleDialog(QWidget *parent = 0);", "parent": 20, "children": [25, 26, 27], "start_point": {"row": 14, "column": 4}, "end_point": {"row": 17, "column": 39}}, {"id": 25, "type": "type_identifier", "text": "Q_OBJECT", "parent": 24, "children": [], "start_point": {"row": 14, "column": 4}, "end_point": {"row": 14, "column": 12}}, {"id": 26, "type": "ERROR", "text": "public:", "parent": 24, "children": [], "start_point": {"row": 16, "column": 0}, "end_point": {"row": 16, "column": 7}}, {"id": 27, "type": "init_declarator", "text": "ExampleDialog(QWidget *parent = 0", "parent": 24, "children": [28, 36, 37], "start_point": {"row": 17, "column": 4}, "end_point": {"row": 17, "column": 37}}, {"id": 28, "type": "function_declarator", "text": "ExampleDialog(QWidget *parent", "parent": 27, "children": [29, 30], "start_point": {"row": 17, "column": 4}, "end_point": {"row": 17, "column": 33}}, {"id": 29, "type": "identifier", "text": "ExampleDialog", "parent": 28, "children": [], "start_point": {"row": 17, "column": 4}, "end_point": {"row": 17, "column": 17}}, {"id": 30, "type": "parameter_list", "text": "(QWidget *parent", "parent": 28, "children": [31], "start_point": {"row": 17, "column": 17}, "end_point": {"row": 17, "column": 33}}, {"id": 31, "type": "parameter_declaration", "text": "QWidget *parent", "parent": 30, "children": [32, 33], "start_point": {"row": 17, "column": 18}, "end_point": {"row": 17, "column": 33}}, {"id": 32, "type": "type_identifier", "text": "QWidget", "parent": 31, "children": [], "start_point": {"row": 17, "column": 18}, "end_point": {"row": 17, "column": 25}}, {"id": 33, "type": "pointer_declarator", "text": "*parent", "parent": 31, "children": [34, 35], "start_point": {"row": 17, "column": 26}, "end_point": {"row": 17, "column": 33}}, {"id": 34, "type": "*", "text": "*", "parent": 33, "children": [], "start_point": {"row": 17, "column": 26}, "end_point": {"row": 17, "column": 27}}, {"id": 35, "type": "identifier", "text": "parent", "parent": 33, "children": [], "start_point": {"row": 17, "column": 27}, "end_point": {"row": 17, "column": 33}}, {"id": 36, "type": "=", "text": "=", "parent": 27, "children": [], "start_point": {"row": 17, "column": 34}, "end_point": {"row": 17, "column": 35}}, {"id": 37, "type": "number_literal", "text": "0", "parent": 27, "children": [], "start_point": {"row": 17, "column": 36}, "end_point": {"row": 17, "column": 37}}, {"id": 38, "type": "unary_expression", "text": "~ExampleDialog()", "parent": 20, "children": [39, 40], "start_point": {"row": 18, "column": 4}, "end_point": {"row": 18, "column": 20}}, {"id": 39, "type": "~", "text": "~", "parent": 38, "children": [], "start_point": {"row": 18, "column": 4}, "end_point": {"row": 18, "column": 5}}, {"id": 40, "type": "call_expression", "text": "ExampleDialog()", "parent": 38, "children": [41, 42], "start_point": {"row": 18, "column": 5}, "end_point": {"row": 18, "column": 20}}, {"id": 41, "type": "identifier", "text": "ExampleDialog", "parent": 40, "children": [], "start_point": {"row": 18, "column": 5}, "end_point": {"row": 18, "column": 18}}, {"id": 42, "type": "argument_list", "text": "()", "parent": 40, "children": [], "start_point": {"row": 18, "column": 18}, "end_point": {"row": 18, "column": 20}}, {"id": 43, "type": "declaration", "text": "QVBoxLayout *m_pVBoxLayout;", "parent": 20, "children": [44, 45], "start_point": {"row": 20, "column": 4}, "end_point": {"row": 20, "column": 31}}, {"id": 44, "type": "type_identifier", "text": "QVBoxLayout", "parent": 43, "children": [], "start_point": {"row": 20, "column": 4}, "end_point": {"row": 20, "column": 15}}, {"id": 45, "type": "pointer_declarator", "text": "*m_pVBoxLayout", "parent": 43, "children": [46, 47], "start_point": {"row": 20, "column": 16}, "end_point": {"row": 20, "column": 30}}, {"id": 46, "type": "*", "text": "*", "parent": 45, "children": [], "start_point": {"row": 20, "column": 16}, "end_point": {"row": 20, "column": 17}}, {"id": 47, "type": "identifier", "text": "m_pVBoxLayout", "parent": 45, "children": [], "start_point": {"row": 20, "column": 17}, "end_point": {"row": 20, "column": 30}}, {"id": 48, "type": "declaration", "text": "ExampleView *m_pExampleView;", "parent": 20, "children": [49, 50], "start_point": {"row": 21, "column": 4}, "end_point": {"row": 21, "column": 32}}, {"id": 49, "type": "type_identifier", "text": "ExampleView", "parent": 48, "children": [], "start_point": {"row": 21, "column": 4}, "end_point": {"row": 21, "column": 15}}, {"id": 50, "type": "pointer_declarator", "text": "*m_pExampleView", "parent": 48, "children": [51, 52], "start_point": {"row": 21, "column": 16}, "end_point": {"row": 21, "column": 31}}, {"id": 51, "type": "*", "text": "*", "parent": 50, "children": [], "start_point": {"row": 21, "column": 16}, "end_point": {"row": 21, "column": 17}}, {"id": 52, "type": "identifier", "text": "m_pExampleView", "parent": 50, "children": [], "start_point": {"row": 21, "column": 17}, "end_point": {"row": 21, "column": 31}}, {"id": 53, "type": "binary_expression", "text": "QSharedPointer<ExampleModel> m_pExampleModel", "parent": 20, "children": [54, 58, 59], "start_point": {"row": 22, "column": 4}, "end_point": {"row": 22, "column": 48}}, {"id": 54, "type": "binary_expression", "text": "QSharedPointer<ExampleModel", "parent": 53, "children": [55, 56, 57], "start_point": {"row": 22, "column": 4}, "end_point": {"row": 22, "column": 31}}, {"id": 55, "type": "identifier", "text": "QSharedPointer", "parent": 54, "children": [], "start_point": {"row": 22, "column": 4}, "end_point": {"row": 22, "column": 18}}, {"id": 56, "type": "<", "text": "<", "parent": 54, "children": [], "start_point": {"row": 22, "column": 18}, "end_point": {"row": 22, "column": 19}}, {"id": 57, "type": "identifier", "text": "ExampleModel", "parent": 54, "children": [], "start_point": {"row": 22, "column": 19}, "end_point": {"row": 22, "column": 31}}, {"id": 58, "type": ">", "text": ">", "parent": 53, "children": [], "start_point": {"row": 22, "column": 31}, "end_point": {"row": 22, "column": 32}}, {"id": 59, "type": "identifier", "text": "m_pExampleModel", "parent": 53, "children": [], "start_point": {"row": 22, "column": 33}, "end_point": {"row": 22, "column": 48}}, {"id": 60, "type": "#endif", "text": "#endif", "parent": 0, "children": [], "start_point": {"row": 25, "column": 0}, "end_point": {"row": 25, "column": 6}}]}, "node_categories": {"declarations": {"functions": [28], "variables": [15, 18, 24, 31, 43, 48], "classes": [], "imports": [6, 7, 9, 10, 12, 13], "modules": [], "enums": []}, "statements": {"expressions": [38, 40, 53, 54], "assignments": [], "loops": [], "conditionals": [0, 1, 2, 5, 16, 17, 19, 21, 23, 25, 29, 32, 35, 41, 44, 47, 49, 52, 55, 57, 59, 60], "returns": [], "exceptions": []}, "expressions": {"calls": [], "literals": [8, 11, 14, 37], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [{"node_id": 28, "universal_type": "function", "name": "unknown", "text_snippet": "ExampleDialog(QWidget *parent"}], "class_declarations": [], "import_statements": [{"node_id": 6, "text": "#include <QDialog>\n"}, {"node_id": 7, "text": "#include"}, {"node_id": 9, "text": "#include \"examplemodel.h\"\n"}, {"node_id": 10, "text": "#include"}, {"node_id": 12, "text": "#include \"exampleview.h\"\n"}, {"node_id": 13, "text": "#include"}]}, "original_source_code": "#ifndef DIALOG_H\n#define DIALOG_H\n\n#include <QDialog>\n\n#include \"examplemodel.h\"\n#include \"exampleview.h\"\n\nQT_BEGIN_NAMESPACE\nclass QVBoxLayout;\nQT_END_NAMESPACE\n\nclass ExampleDialog : public QDialog\n{\n Q_OBJECT\n\npublic:\n ExampleDialog(QWidget *parent = 0);\n ~ExampleDialog();\n\n QVBoxLayout *m_pVBoxLayout;\n ExampleView *m_pExampleView;\n QSharedPointer<ExampleModel> m_pExampleModel;\n};\n\n#endif // DIALOG_H\n"}
80,035
c
// HARFANG(R) Copyright (C) 2021 <NAME>, NWNC HARFANG. Released under GPL/LGPL/Commercial Licence, see licence.txt for details. #pragma once #include "foundation/time.h" #include <chrono> namespace hg { std::chrono::seconds time_to_chrono_sec(time_ns t); std::chrono::milliseconds time_to_chrono_ms(time_ns t); std::chrono::microseconds time_to_chrono_us(time_ns t); std::chrono::nanoseconds time_to_chrono_ns(time_ns t); std::chrono::nanoseconds time_to_chrono(time_ns t); } // namespace hg
43.73
11
(translation_unit) "// HARFANG(R) Copyright (C) 2021 <NAME>, NWNC HARFANG. Released under GPL/LGPL/Commercial Licence, see licence.txt for details.\n\n#pragma once\n\n#include "foundation/time.h"\n#include <chrono>\n\nnamespace hg {\n\nstd::chrono::seconds time_to_chrono_sec(time_ns t);\nstd::chrono::milliseconds time_to_chrono_ms(time_ns t);\nstd::chrono::microseconds time_to_chrono_us(time_ns t);\nstd::chrono::nanoseconds time_to_chrono_ns(time_ns t);\nstd::chrono::nanoseconds time_to_chrono(time_ns t);\n\n} // namespace hg\n" (comment) "// HARFANG(R) Copyright (C) 2021 <NAME>, NWNC HARFANG. Released under GPL/LGPL/Commercial Licence, see licence.txt for details." (preproc_call) "#pragma once\n" (preproc_directive) "#pragma" (preproc_arg) "once" (preproc_include) "#include "foundation/time.h"\n" (#include) "#include" (string_literal) ""foundation/time.h"" (") """ (string_content) "foundation/time.h" (") """ (preproc_include) "#include <chrono>\n" (#include) "#include" (system_lib_string) "<chrono>" (function_definition) "namespace hg {\n\nstd::chrono::seconds time_to_chrono_sec(time_ns t);\nstd::chrono::milliseconds time_to_chrono_ms(time_ns t);\nstd::chrono::microseconds time_to_chrono_us(time_ns t);\nstd::chrono::nanoseconds time_to_chrono_ns(time_ns t);\nstd::chrono::nanoseconds time_to_chrono(time_ns t);\n\n}" (type_identifier) "namespace" (identifier) "hg" (compound_statement) "{\n\nstd::chrono::seconds time_to_chrono_sec(time_ns t);\nstd::chrono::milliseconds time_to_chrono_ms(time_ns t);\nstd::chrono::microseconds time_to_chrono_us(time_ns t);\nstd::chrono::nanoseconds time_to_chrono_ns(time_ns t);\nstd::chrono::nanoseconds time_to_chrono(time_ns t);\n\n}" ({) "{" (labeled_statement) "std::chrono::seconds time_to_chrono_sec(time_ns t);" (statement_identifier) "std" (:) ":" (ERROR) ":" (:) ":" (labeled_statement) "chrono::seconds time_to_chrono_sec(time_ns t);" (statement_identifier) "chrono" (:) ":" (ERROR) ":" (:) ":" (declaration) "seconds time_to_chrono_sec(time_ns t);" (type_identifier) "seconds" (function_declarator) "time_to_chrono_sec(time_ns t)" (identifier) "time_to_chrono_sec" (parameter_list) "(time_ns t)" (() "(" (parameter_declaration) "time_ns t" (type_identifier) "time_ns" (identifier) "t" ()) ")" (;) ";" (labeled_statement) "std::chrono::milliseconds time_to_chrono_ms(time_ns t);" (statement_identifier) "std" (:) ":" (ERROR) ":" (:) ":" (labeled_statement) "chrono::milliseconds time_to_chrono_ms(time_ns t);" (statement_identifier) "chrono" (:) ":" (ERROR) ":" (:) ":" (declaration) "milliseconds time_to_chrono_ms(time_ns t);" (type_identifier) "milliseconds" (function_declarator) "time_to_chrono_ms(time_ns t)" (identifier) "time_to_chrono_ms" (parameter_list) "(time_ns t)" (() "(" (parameter_declaration) "time_ns t" (type_identifier) "time_ns" (identifier) "t" ()) ")" (;) ";" (labeled_statement) "std::chrono::microseconds time_to_chrono_us(time_ns t);" (statement_identifier) "std" (:) ":" (ERROR) ":" (:) ":" (labeled_statement) "chrono::microseconds time_to_chrono_us(time_ns t);" (statement_identifier) "chrono" (:) ":" (ERROR) ":" (:) ":" (declaration) "microseconds time_to_chrono_us(time_ns t);" (type_identifier) "microseconds" (function_declarator) "time_to_chrono_us(time_ns t)" (identifier) "time_to_chrono_us" (parameter_list) "(time_ns t)" (() "(" (parameter_declaration) "time_ns t" (type_identifier) "time_ns" (identifier) "t" ()) ")" (;) ";" (labeled_statement) "std::chrono::nanoseconds time_to_chrono_ns(time_ns t);" (statement_identifier) "std" (:) ":" (ERROR) ":" (:) ":" (labeled_statement) "chrono::nanoseconds time_to_chrono_ns(time_ns t);" (statement_identifier) "chrono" (:) ":" (ERROR) ":" (:) ":" (declaration) "nanoseconds time_to_chrono_ns(time_ns t);" (type_identifier) "nanoseconds" (function_declarator) "time_to_chrono_ns(time_ns t)" (identifier) "time_to_chrono_ns" (parameter_list) "(time_ns t)" (() "(" (parameter_declaration) "time_ns t" (type_identifier) "time_ns" (identifier) "t" ()) ")" (;) ";" (labeled_statement) "std::chrono::nanoseconds time_to_chrono(time_ns t);" (statement_identifier) "std" (:) ":" (ERROR) ":" (:) ":" (labeled_statement) "chrono::nanoseconds time_to_chrono(time_ns t);" (statement_identifier) "chrono" (:) ":" (ERROR) ":" (:) ":" (declaration) "nanoseconds time_to_chrono(time_ns t);" (type_identifier) "nanoseconds" (function_declarator) "time_to_chrono(time_ns t)" (identifier) "time_to_chrono" (parameter_list) "(time_ns t)" (() "(" (parameter_declaration) "time_ns t" (type_identifier) "time_ns" (identifier) "t" ()) ")" (;) ";" (}) "}" (comment) "// namespace hg"
126
10
{"language": "c", "success": true, "metadata": {"lines": 11, "avg_line_length": 43.73, "nodes": 72, "errors": 0, "source_hash": "dadeea4d4c8312062366fd05d0219b03846310ace3f5b6cdcb68aab8dac8b062", "categorized_nodes": 55}, "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 \"foundation/time.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": "\"foundation/time.h\"", "parent": 3, "children": [], "start_point": {"row": 4, "column": 9}, "end_point": {"row": 4, "column": 28}}, {"id": 6, "type": "preproc_include", "text": "#include <chrono>\n", "parent": null, "children": [7, 8], "start_point": {"row": 5, "column": 0}, "end_point": {"row": 6, "column": 0}}, {"id": 7, "type": "#include", "text": "#include", "parent": 6, "children": [], "start_point": {"row": 5, "column": 0}, "end_point": {"row": 5, "column": 8}}, {"id": 8, "type": "system_lib_string", "text": "<chrono>", "parent": 6, "children": [], "start_point": {"row": 5, "column": 9}, "end_point": {"row": 5, "column": 17}}, {"id": 9, "type": "function_definition", "text": "namespace hg {\n\nstd::chrono::seconds time_to_chrono_sec(time_ns t);\nstd::chrono::milliseconds time_to_chrono_ms(time_ns t);\nstd::chrono::microseconds time_to_chrono_us(time_ns t);\nstd::chrono::nanoseconds time_to_chrono_ns(time_ns t);\nstd::chrono::nanoseconds time_to_chrono(time_ns t);\n\n}", "parent": null, "children": [10, 11], "start_point": {"row": 7, "column": 0}, "end_point": {"row": 15, "column": 1}}, {"id": 10, "type": "type_identifier", "text": "namespace", "parent": 9, "children": [], "start_point": {"row": 7, "column": 0}, "end_point": {"row": 7, "column": 9}}, {"id": 11, "type": "identifier", "text": "hg", "parent": 9, "children": [], "start_point": {"row": 7, "column": 10}, "end_point": {"row": 7, "column": 12}}, {"id": 12, "type": "labeled_statement", "text": "std::chrono::seconds time_to_chrono_sec(time_ns t);", "parent": 9, "children": [13, 14], "start_point": {"row": 9, "column": 0}, "end_point": {"row": 9, "column": 51}}, {"id": 13, "type": "statement_identifier", "text": "std", "parent": 12, "children": [], "start_point": {"row": 9, "column": 0}, "end_point": {"row": 9, "column": 3}}, {"id": 14, "type": "labeled_statement", "text": "chrono::seconds time_to_chrono_sec(time_ns t);", "parent": 12, "children": [15, 16], "start_point": {"row": 9, "column": 5}, "end_point": {"row": 9, "column": 51}}, {"id": 15, "type": "statement_identifier", "text": "chrono", "parent": 14, "children": [], "start_point": {"row": 9, "column": 5}, "end_point": {"row": 9, "column": 11}}, {"id": 16, "type": "declaration", "text": "seconds time_to_chrono_sec(time_ns t);", "parent": 14, "children": [17, 18], "start_point": {"row": 9, "column": 13}, "end_point": {"row": 9, "column": 51}}, {"id": 17, "type": "type_identifier", "text": "seconds", "parent": 16, "children": [], "start_point": {"row": 9, "column": 13}, "end_point": {"row": 9, "column": 20}}, {"id": 18, "type": "function_declarator", "text": "time_to_chrono_sec(time_ns t)", "parent": 16, "children": [19, 20], "start_point": {"row": 9, "column": 21}, "end_point": {"row": 9, "column": 50}}, {"id": 19, "type": "identifier", "text": "time_to_chrono_sec", "parent": 18, "children": [], "start_point": {"row": 9, "column": 21}, "end_point": {"row": 9, "column": 39}}, {"id": 20, "type": "parameter_list", "text": "(time_ns t)", "parent": 18, "children": [21], "start_point": {"row": 9, "column": 39}, "end_point": {"row": 9, "column": 50}}, {"id": 21, "type": "parameter_declaration", "text": "time_ns t", "parent": 20, "children": [22, 23], "start_point": {"row": 9, "column": 40}, "end_point": {"row": 9, "column": 49}}, {"id": 22, "type": "type_identifier", "text": "time_ns", "parent": 21, "children": [], "start_point": {"row": 9, "column": 40}, "end_point": {"row": 9, "column": 47}}, {"id": 23, "type": "identifier", "text": "t", "parent": 21, "children": [], "start_point": {"row": 9, "column": 48}, "end_point": {"row": 9, "column": 49}}, {"id": 24, "type": "labeled_statement", "text": "std::chrono::milliseconds time_to_chrono_ms(time_ns t);", "parent": 9, "children": [25, 26], "start_point": {"row": 10, "column": 0}, "end_point": {"row": 10, "column": 55}}, {"id": 25, "type": "statement_identifier", "text": "std", "parent": 24, "children": [], "start_point": {"row": 10, "column": 0}, "end_point": {"row": 10, "column": 3}}, {"id": 26, "type": "labeled_statement", "text": "chrono::milliseconds time_to_chrono_ms(time_ns t);", "parent": 24, "children": [27, 28], "start_point": {"row": 10, "column": 5}, "end_point": {"row": 10, "column": 55}}, {"id": 27, "type": "statement_identifier", "text": "chrono", "parent": 26, "children": [], "start_point": {"row": 10, "column": 5}, "end_point": {"row": 10, "column": 11}}, {"id": 28, "type": "declaration", "text": "milliseconds time_to_chrono_ms(time_ns t);", "parent": 26, "children": [29, 30], "start_point": {"row": 10, "column": 13}, "end_point": {"row": 10, "column": 55}}, {"id": 29, "type": "type_identifier", "text": "milliseconds", "parent": 28, "children": [], "start_point": {"row": 10, "column": 13}, "end_point": {"row": 10, "column": 25}}, {"id": 30, "type": "function_declarator", "text": "time_to_chrono_ms(time_ns t)", "parent": 28, "children": [31, 32], "start_point": {"row": 10, "column": 26}, "end_point": {"row": 10, "column": 54}}, {"id": 31, "type": "identifier", "text": "time_to_chrono_ms", "parent": 30, "children": [], "start_point": {"row": 10, "column": 26}, "end_point": {"row": 10, "column": 43}}, {"id": 32, "type": "parameter_list", "text": "(time_ns t)", "parent": 30, "children": [33], "start_point": {"row": 10, "column": 43}, "end_point": {"row": 10, "column": 54}}, {"id": 33, "type": "parameter_declaration", "text": "time_ns t", "parent": 32, "children": [34, 35], "start_point": {"row": 10, "column": 44}, "end_point": {"row": 10, "column": 53}}, {"id": 34, "type": "type_identifier", "text": "time_ns", "parent": 33, "children": [], "start_point": {"row": 10, "column": 44}, "end_point": {"row": 10, "column": 51}}, {"id": 35, "type": "identifier", "text": "t", "parent": 33, "children": [], "start_point": {"row": 10, "column": 52}, "end_point": {"row": 10, "column": 53}}, {"id": 36, "type": "labeled_statement", "text": "std::chrono::microseconds time_to_chrono_us(time_ns t);", "parent": 9, "children": [37, 38], "start_point": {"row": 11, "column": 0}, "end_point": {"row": 11, "column": 55}}, {"id": 37, "type": "statement_identifier", "text": "std", "parent": 36, "children": [], "start_point": {"row": 11, "column": 0}, "end_point": {"row": 11, "column": 3}}, {"id": 38, "type": "labeled_statement", "text": "chrono::microseconds time_to_chrono_us(time_ns t);", "parent": 36, "children": [39, 40], "start_point": {"row": 11, "column": 5}, "end_point": {"row": 11, "column": 55}}, {"id": 39, "type": "statement_identifier", "text": "chrono", "parent": 38, "children": [], "start_point": {"row": 11, "column": 5}, "end_point": {"row": 11, "column": 11}}, {"id": 40, "type": "declaration", "text": "microseconds time_to_chrono_us(time_ns t);", "parent": 38, "children": [41, 42], "start_point": {"row": 11, "column": 13}, "end_point": {"row": 11, "column": 55}}, {"id": 41, "type": "type_identifier", "text": "microseconds", "parent": 40, "children": [], "start_point": {"row": 11, "column": 13}, "end_point": {"row": 11, "column": 25}}, {"id": 42, "type": "function_declarator", "text": "time_to_chrono_us(time_ns t)", "parent": 40, "children": [43, 44], "start_point": {"row": 11, "column": 26}, "end_point": {"row": 11, "column": 54}}, {"id": 43, "type": "identifier", "text": "time_to_chrono_us", "parent": 42, "children": [], "start_point": {"row": 11, "column": 26}, "end_point": {"row": 11, "column": 43}}, {"id": 44, "type": "parameter_list", "text": "(time_ns t)", "parent": 42, "children": [45], "start_point": {"row": 11, "column": 43}, "end_point": {"row": 11, "column": 54}}, {"id": 45, "type": "parameter_declaration", "text": "time_ns t", "parent": 44, "children": [46, 47], "start_point": {"row": 11, "column": 44}, "end_point": {"row": 11, "column": 53}}, {"id": 46, "type": "type_identifier", "text": "time_ns", "parent": 45, "children": [], "start_point": {"row": 11, "column": 44}, "end_point": {"row": 11, "column": 51}}, {"id": 47, "type": "identifier", "text": "t", "parent": 45, "children": [], "start_point": {"row": 11, "column": 52}, "end_point": {"row": 11, "column": 53}}, {"id": 48, "type": "labeled_statement", "text": "std::chrono::nanoseconds time_to_chrono_ns(time_ns t);", "parent": 9, "children": [49, 50], "start_point": {"row": 12, "column": 0}, "end_point": {"row": 12, "column": 54}}, {"id": 49, "type": "statement_identifier", "text": "std", "parent": 48, "children": [], "start_point": {"row": 12, "column": 0}, "end_point": {"row": 12, "column": 3}}, {"id": 50, "type": "labeled_statement", "text": "chrono::nanoseconds time_to_chrono_ns(time_ns t);", "parent": 48, "children": [51, 52], "start_point": {"row": 12, "column": 5}, "end_point": {"row": 12, "column": 54}}, {"id": 51, "type": "statement_identifier", "text": "chrono", "parent": 50, "children": [], "start_point": {"row": 12, "column": 5}, "end_point": {"row": 12, "column": 11}}, {"id": 52, "type": "declaration", "text": "nanoseconds time_to_chrono_ns(time_ns t);", "parent": 50, "children": [53, 54], "start_point": {"row": 12, "column": 13}, "end_point": {"row": 12, "column": 54}}, {"id": 53, "type": "type_identifier", "text": "nanoseconds", "parent": 52, "children": [], "start_point": {"row": 12, "column": 13}, "end_point": {"row": 12, "column": 24}}, {"id": 54, "type": "function_declarator", "text": "time_to_chrono_ns(time_ns t)", "parent": 52, "children": [55, 56], "start_point": {"row": 12, "column": 25}, "end_point": {"row": 12, "column": 53}}, {"id": 55, "type": "identifier", "text": "time_to_chrono_ns", "parent": 54, "children": [], "start_point": {"row": 12, "column": 25}, "end_point": {"row": 12, "column": 42}}, {"id": 56, "type": "parameter_list", "text": "(time_ns t)", "parent": 54, "children": [57], "start_point": {"row": 12, "column": 42}, "end_point": {"row": 12, "column": 53}}, {"id": 57, "type": "parameter_declaration", "text": "time_ns t", "parent": 56, "children": [58, 59], "start_point": {"row": 12, "column": 43}, "end_point": {"row": 12, "column": 52}}, {"id": 58, "type": "type_identifier", "text": "time_ns", "parent": 57, "children": [], "start_point": {"row": 12, "column": 43}, "end_point": {"row": 12, "column": 50}}, {"id": 59, "type": "identifier", "text": "t", "parent": 57, "children": [], "start_point": {"row": 12, "column": 51}, "end_point": {"row": 12, "column": 52}}, {"id": 60, "type": "labeled_statement", "text": "std::chrono::nanoseconds time_to_chrono(time_ns t);", "parent": 9, "children": [61, 62], "start_point": {"row": 13, "column": 0}, "end_point": {"row": 13, "column": 51}}, {"id": 61, "type": "statement_identifier", "text": "std", "parent": 60, "children": [], "start_point": {"row": 13, "column": 0}, "end_point": {"row": 13, "column": 3}}, {"id": 62, "type": "labeled_statement", "text": "chrono::nanoseconds time_to_chrono(time_ns t);", "parent": 60, "children": [63, 64], "start_point": {"row": 13, "column": 5}, "end_point": {"row": 13, "column": 51}}, {"id": 63, "type": "statement_identifier", "text": "chrono", "parent": 62, "children": [], "start_point": {"row": 13, "column": 5}, "end_point": {"row": 13, "column": 11}}, {"id": 64, "type": "declaration", "text": "nanoseconds time_to_chrono(time_ns t);", "parent": 62, "children": [65, 66], "start_point": {"row": 13, "column": 13}, "end_point": {"row": 13, "column": 51}}, {"id": 65, "type": "type_identifier", "text": "nanoseconds", "parent": 64, "children": [], "start_point": {"row": 13, "column": 13}, "end_point": {"row": 13, "column": 24}}, {"id": 66, "type": "function_declarator", "text": "time_to_chrono(time_ns t)", "parent": 64, "children": [67, 68], "start_point": {"row": 13, "column": 25}, "end_point": {"row": 13, "column": 50}}, {"id": 67, "type": "identifier", "text": "time_to_chrono", "parent": 66, "children": [], "start_point": {"row": 13, "column": 25}, "end_point": {"row": 13, "column": 39}}, {"id": 68, "type": "parameter_list", "text": "(time_ns t)", "parent": 66, "children": [69], "start_point": {"row": 13, "column": 39}, "end_point": {"row": 13, "column": 50}}, {"id": 69, "type": "parameter_declaration", "text": "time_ns t", "parent": 68, "children": [70, 71], "start_point": {"row": 13, "column": 40}, "end_point": {"row": 13, "column": 49}}, {"id": 70, "type": "type_identifier", "text": "time_ns", "parent": 69, "children": [], "start_point": {"row": 13, "column": 40}, "end_point": {"row": 13, "column": 47}}, {"id": 71, "type": "identifier", "text": "t", "parent": 69, "children": [], "start_point": {"row": 13, "column": 48}, "end_point": {"row": 13, "column": 49}}]}, "node_categories": {"declarations": {"functions": [9, 18, 30, 42, 54, 66], "variables": [16, 21, 28, 33, 40, 45, 52, 57, 64, 69], "classes": [], "imports": [3, 4, 6, 7], "modules": [], "enums": []}, "statements": {"expressions": [], "assignments": [], "loops": [], "conditionals": [10, 11, 13, 15, 17, 19, 22, 23, 25, 27, 29, 31, 34, 35, 37, 39, 41, 43, 46, 47, 49, 51, 53, 55, 58, 59, 61, 63, 65, 67, 70, 71], "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": "unknown", "text_snippet": "namespace hg {\n\nstd::chrono::seconds time_to_chrono_sec(time_ns t);\nstd::chrono::milliseconds time_t"}, {"node_id": 18, "universal_type": "function", "name": "unknown", "text_snippet": "time_to_chrono_sec(time_ns t)"}, {"node_id": 30, "universal_type": "function", "name": "unknown", "text_snippet": "time_to_chrono_ms(time_ns t)"}, {"node_id": 42, "universal_type": "function", "name": "unknown", "text_snippet": "time_to_chrono_us(time_ns t)"}, {"node_id": 54, "universal_type": "function", "name": "unknown", "text_snippet": "time_to_chrono_ns(time_ns t)"}, {"node_id": 66, "universal_type": "function", "name": "unknown", "text_snippet": "time_to_chrono(time_ns t)"}], "class_declarations": [], "import_statements": [{"node_id": 3, "text": "#include \"foundation/time.h\"\n"}, {"node_id": 4, "text": "#include"}, {"node_id": 6, "text": "#include <chrono>\n"}, {"node_id": 7, "text": "#include"}]}, "original_source_code": "// HARFANG(R) Copyright (C) 2021 <NAME>, NWNC HARFANG. Released under GPL/LGPL/Commercial Licence, see licence.txt for details.\n\n#pragma once\n\n#include \"foundation/time.h\"\n#include <chrono>\n\nnamespace hg {\n\nstd::chrono::seconds time_to_chrono_sec(time_ns t);\nstd::chrono::milliseconds time_to_chrono_ms(time_ns t);\nstd::chrono::microseconds time_to_chrono_us(time_ns t);\nstd::chrono::nanoseconds time_to_chrono_ns(time_ns t);\nstd::chrono::nanoseconds time_to_chrono(time_ns t);\n\n} // namespace hg\n"}
80,036
c
/** @file This file include board specific boot manager callbacks Copyright (c) 2019, Intel Corporation. All rights reserved.<BR> SPDX-License-Identifier: BSD-2-Clause-Patent **/ #include <Library/DebugLib.h> #include <Library/UefiBootServicesTableLib.h> #include <Library/PlatformBootManagerLib.h> #include <Library/UefiLib.h> #include <Library/HobLib.h> #include <Library/PrintLib.h> #include <Library/PerformanceLib.h> #include <Library/BoardBootManagerLib.h> BOOLEAN mHotKeypressed = FALSE; EFI_EVENT HotKeyEvent = NULL; UINTN mBootMenuOptionNumber; /** This function is called each second during the boot manager waits timeout. @param TimeoutRemain The remaining timeout. **/ VOID EFIAPI BoardBootManagerWaitCallback ( UINT16 TimeoutRemain ) { EFI_STATUS Status; EFI_SIMPLE_TEXT_INPUT_EX_PROTOCOL *TxtInEx; EFI_KEY_DATA KeyData; BOOLEAN PausePressed; // // Pause on PAUSE key // Status = gBS->HandleProtocol (gST->ConsoleInHandle, &gEfiSimpleTextInputExProtocolGuid, (VOID **) &TxtInEx); ASSERT_EFI_ERROR (Status); PausePressed = FALSE; while (TRUE) { Status = TxtInEx->ReadKeyStrokeEx (TxtInEx, &KeyData); if (EFI_ERROR (Status)) { break; } if (KeyData.Key.ScanCode == SCAN_PAUSE) { PausePressed = TRUE; break; } } // // Loop until non-PAUSE key pressed // while (PausePressed) { Status = TxtInEx->ReadKeyStrokeEx (TxtInEx, &KeyData); if (!EFI_ERROR (Status)) { DEBUG (( DEBUG_INFO, "[PauseCallback] %x/%x %x/%x\n", KeyData.Key.ScanCode, KeyData.Key.UnicodeChar, KeyData.KeyState.KeyShiftState, KeyData.KeyState.KeyToggleState )); PausePressed = (BOOLEAN) (KeyData.Key.ScanCode == SCAN_PAUSE); } } } /** The function is called when no boot option could be launched, including platform recovery options and options pointing to applications built into firmware volumes. If this function returns, BDS attempts to enter an infinite loop. **/ VOID EFIAPI BoardBootManagerUnableToBoot ( VOID ) { EFI_STATUS Status; EFI_BOOT_MANAGER_LOAD_OPTION BootDeviceList; CHAR16 OptionName[sizeof ("Boot####")]; if (mBootMenuOptionNumber == LoadOptionNumberUnassigned) { return; } UnicodeSPrint (OptionName, sizeof (OptionName), L"Boot%04x", mBootMenuOptionNumber); Status = EfiBootManagerVariableToLoadOption (OptionName, &BootDeviceList); if (EFI_ERROR (Status)) { return; } for (;;) { EfiBootManagerBoot (&BootDeviceList); } }
25.64
103
(translation_unit) "/** @file \n This file include board specific boot manager callbacks \n \n Copyright (c) 2019, Intel Corporation. All rights reserved.<BR> \n SPDX-License-Identifier: BSD-2-Clause-Patent \n**/ \n \n \n#include <Library/DebugLib.h> \n#include <Library/UefiBootServicesTableLib.h> \n#include <Library/PlatformBootManagerLib.h> \n#include <Library/UefiLib.h> \n#include <Library/HobLib.h> \n#include <Library/PrintLib.h> \n#include <Library/PerformanceLib.h> \n#include <Library/BoardBootManagerLib.h> \n \n \nBOOLEAN mHotKeypressed = FALSE; \nEFI_EVENT HotKeyEvent = NULL; \nUINTN mBootMenuOptionNumber; \n \n/** \n This function is called each second during the boot manager waits timeout. \n \n @param TimeoutRemain The remaining timeout. \n**/ \nVOID \nEFIAPI \nBoardBootManagerWaitCallback ( \n UINT16 TimeoutRemain \n ) \n{ \n EFI_STATUS Status; \n EFI_SIMPLE_TEXT_INPUT_EX_PROTOCOL *TxtInEx; \n EFI_KEY_DATA KeyData; \n BOOLEAN PausePressed; \n \n // \n // Pause on PAUSE key \n // \n Status = gBS->HandleProtocol (gST->ConsoleInHandle, &gEfiSimpleTextInputExProtocolGuid, (VOID **) &TxtInEx); \n ASSERT_EFI_ERROR (Status); \n \n PausePressed = FALSE; \n \n while (TRUE) { \n Status = TxtInEx->ReadKeyStrokeEx (TxtInEx, &KeyData); \n if (EFI_ERROR (Status)) { \n break; \n } \n \n if (KeyData.Key.ScanCode == SCAN_PAUSE) { \n PausePressed = TRUE; \n break; \n } \n } \n \n // \n // Loop until non-PAUSE key pressed \n // \n while (PausePressed) { \n Status = TxtInEx->ReadKeyStrokeEx (TxtInEx, &KeyData); \n if (!EFI_ERROR (Status)) { \n DEBUG (( \n DEBUG_INFO, "[PauseCallback] %x/%x %x/%x\n", \n KeyData.Key.ScanCode, KeyData.Key.UnicodeChar, \n KeyData.KeyState.KeyShiftState, KeyData.KeyState.KeyToggleState \n )); \n PausePressed = (BOOLEAN) (KeyData.Key.ScanCode == SCAN_PAUSE); \n } \n } \n} \n \n/** \n The function is called when no boot option could be launched, \n including platform recovery options and options pointing to applications \n built into firmware volumes. \n \n If this function returns, BDS attempts to enter an infinite loop. \n**/ \nVOID \nEFIAPI \nBoardBootManagerUnableToBoot ( \n VOID \n ) \n{ \n EFI_STATUS Status; \n EFI_BOOT_MANAGER_LOAD_OPTION BootDeviceList; \n CHAR16 OptionName[sizeof ("Boot####")]; \n \n if (mBootMenuOptionNumber == LoadOptionNumberUnassigned) { \n return; \n } \n UnicodeSPrint (OptionName, sizeof (OptionName), L"Boot%04x", mBootMenuOptionNumber); \n Status = EfiBootManagerVariableToLoadOption (OptionName, &BootDeviceList); \n if (EFI_ERROR (Status)) { \n return; \n } \n for (;;) { \n EfiBootManagerBoot (&BootDeviceList); \n } \n} \n" (comment) "/** @file \n This file include board specific boot manager callbacks \n \n Copyright (c) 2019, Intel Corporation. All rights reserved.<BR> \n SPDX-License-Identifier: BSD-2-Clause-Patent \n**/" (preproc_include) "#include <Library/DebugLib.h> \n" (#include) "#include" (system_lib_string) "<Library/DebugLib.h>" (preproc_include) "#include <Library/UefiBootServicesTableLib.h> \n" (#include) "#include" (system_lib_string) "<Library/UefiBootServicesTableLib.h>" (preproc_include) "#include <Library/PlatformBootManagerLib.h> \n" (#include) "#include" (system_lib_string) "<Library/PlatformBootManagerLib.h>" (preproc_include) "#include <Library/UefiLib.h> \n" (#include) "#include" (system_lib_string) "<Library/UefiLib.h>" (preproc_include) "#include <Library/HobLib.h> \n" (#include) "#include" (system_lib_string) "<Library/HobLib.h>" (preproc_include) "#include <Library/PrintLib.h> \n" (#include) "#include" (system_lib_string) "<Library/PrintLib.h>" (preproc_include) "#include <Library/PerformanceLib.h> \n" (#include) "#include" (system_lib_string) "<Library/PerformanceLib.h>" (preproc_include) "#include <Library/BoardBootManagerLib.h> \n" (#include) "#include" (system_lib_string) "<Library/BoardBootManagerLib.h>" (declaration) "BOOLEAN mHotKeypressed = FALSE;" (type_identifier) "BOOLEAN" (init_declarator) "mHotKeypressed = FALSE" (identifier) "mHotKeypressed" (=) "=" (false) "FALSE" (;) ";" (declaration) "EFI_EVENT HotKeyEvent = NULL;" (type_identifier) "EFI_EVENT" (init_declarator) "HotKeyEvent = NULL" (identifier) "HotKeyEvent" (=) "=" (null) "NULL" (NULL) "NULL" (;) ";" (declaration) "UINTN mBootMenuOptionNumber;" (type_identifier) "UINTN" (identifier) "mBootMenuOptionNumber" (;) ";" (comment) "/** \n This function is called each second during the boot manager waits timeout. \n \n @param TimeoutRemain The remaining timeout. \n**/" (function_definition) "VOID \nEFIAPI \nBoardBootManagerWaitCallback ( \n UINT16 TimeoutRemain \n ) \n{ \n EFI_STATUS Status; \n EFI_SIMPLE_TEXT_INPUT_EX_PROTOCOL *TxtInEx; \n EFI_KEY_DATA KeyData; \n BOOLEAN PausePressed; \n \n // \n // Pause on PAUSE key \n // \n Status = gBS->HandleProtocol (gST->ConsoleInHandle, &gEfiSimpleTextInputExProtocolGuid, (VOID **) &TxtInEx); \n ASSERT_EFI_ERROR (Status); \n \n PausePressed = FALSE; \n \n while (TRUE) { \n Status = TxtInEx->ReadKeyStrokeEx (TxtInEx, &KeyData); \n if (EFI_ERROR (Status)) { \n break; \n } \n \n if (KeyData.Key.ScanCode == SCAN_PAUSE) { \n PausePressed = TRUE; \n break; \n } \n } \n \n // \n // Loop until non-PAUSE key pressed \n // \n while (PausePressed) { \n Status = TxtInEx->ReadKeyStrokeEx (TxtInEx, &KeyData); \n if (!EFI_ERROR (Status)) { \n DEBUG (( \n DEBUG_INFO, "[PauseCallback] %x/%x %x/%x\n", \n KeyData.Key.ScanCode, KeyData.Key.UnicodeChar, \n KeyData.KeyState.KeyShiftState, KeyData.KeyState.KeyToggleState \n )); \n PausePressed = (BOOLEAN) (KeyData.Key.ScanCode == SCAN_PAUSE); \n } \n } \n}" (type_identifier) "VOID" (ERROR) "EFIAPI" (identifier) "EFIAPI" (function_declarator) "BoardBootManagerWaitCallback ( \n UINT16 TimeoutRemain \n )" (identifier) "BoardBootManagerWaitCallback" (parameter_list) "( \n UINT16 TimeoutRemain \n )" (() "(" (parameter_declaration) "UINT16 TimeoutRemain" (type_identifier) "UINT16" (identifier) "TimeoutRemain" ()) ")" (compound_statement) "{ \n EFI_STATUS Status; \n EFI_SIMPLE_TEXT_INPUT_EX_PROTOCOL *TxtInEx; \n EFI_KEY_DATA KeyData; \n BOOLEAN PausePressed; \n \n // \n // Pause on PAUSE key \n // \n Status = gBS->HandleProtocol (gST->ConsoleInHandle, &gEfiSimpleTextInputExProtocolGuid, (VOID **) &TxtInEx); \n ASSERT_EFI_ERROR (Status); \n \n PausePressed = FALSE; \n \n while (TRUE) { \n Status = TxtInEx->ReadKeyStrokeEx (TxtInEx, &KeyData); \n if (EFI_ERROR (Status)) { \n break; \n } \n \n if (KeyData.Key.ScanCode == SCAN_PAUSE) { \n PausePressed = TRUE; \n break; \n } \n } \n \n // \n // Loop until non-PAUSE key pressed \n // \n while (PausePressed) { \n Status = TxtInEx->ReadKeyStrokeEx (TxtInEx, &KeyData); \n if (!EFI_ERROR (Status)) { \n DEBUG (( \n DEBUG_INFO, "[PauseCallback] %x/%x %x/%x\n", \n KeyData.Key.ScanCode, KeyData.Key.UnicodeChar, \n KeyData.KeyState.KeyShiftState, KeyData.KeyState.KeyToggleState \n )); \n PausePressed = (BOOLEAN) (KeyData.Key.ScanCode == SCAN_PAUSE); \n } \n } \n}" ({) "{" (declaration) "EFI_STATUS Status;" (type_identifier) "EFI_STATUS" (identifier) "Status" (;) ";" (declaration) "EFI_SIMPLE_TEXT_INPUT_EX_PROTOCOL *TxtInEx;" (type_identifier) "EFI_SIMPLE_TEXT_INPUT_EX_PROTOCOL" (pointer_declarator) "*TxtInEx" (*) "*" (identifier) "TxtInEx" (;) ";" (declaration) "EFI_KEY_DATA KeyData;" (type_identifier) "EFI_KEY_DATA" (identifier) "KeyData" (;) ";" (declaration) "BOOLEAN PausePressed;" (type_identifier) "BOOLEAN" (identifier) "PausePressed" (;) ";" (comment) "// " (comment) "// Pause on PAUSE key " (comment) "// " (expression_statement) "Status = gBS->HandleProtocol (gST->ConsoleInHandle, &gEfiSimpleTextInputExProtocolGuid, (VOID **) &TxtInEx);" (assignment_expression) "Status = gBS->HandleProtocol (gST->ConsoleInHandle, &gEfiSimpleTextInputExProtocolGuid, (VOID **) &TxtInEx)" (identifier) "Status" (=) "=" (call_expression) "gBS->HandleProtocol (gST->ConsoleInHandle, &gEfiSimpleTextInputExProtocolGuid, (VOID **) &TxtInEx)" (field_expression) "gBS->HandleProtocol" (identifier) "gBS" (->) "->" (field_identifier) "HandleProtocol" (argument_list) "(gST->ConsoleInHandle, &gEfiSimpleTextInputExProtocolGuid, (VOID **) &TxtInEx)" (() "(" (field_expression) "gST->ConsoleInHandle" (identifier) "gST" (->) "->" (field_identifier) "ConsoleInHandle" (,) "," (pointer_expression) "&gEfiSimpleTextInputExProtocolGuid" (&) "&" (identifier) "gEfiSimpleTextInputExProtocolGuid" (,) "," (cast_expression) "(VOID **) &TxtInEx" (() "(" (type_descriptor) "VOID **" (type_identifier) "VOID" (abstract_pointer_declarator) "**" (*) "*" (abstract_pointer_declarator) "*" (*) "*" ()) ")" (pointer_expression) "&TxtInEx" (&) "&" (identifier) "TxtInEx" ()) ")" (;) ";" (expression_statement) "ASSERT_EFI_ERROR (Status);" (call_expression) "ASSERT_EFI_ERROR (Status)" (identifier) "ASSERT_EFI_ERROR" (argument_list) "(Status)" (() "(" (identifier) "Status" ()) ")" (;) ";" (expression_statement) "PausePressed = FALSE;" (assignment_expression) "PausePressed = FALSE" (identifier) "PausePressed" (=) "=" (false) "FALSE" (;) ";" (while_statement) "while (TRUE) { \n Status = TxtInEx->ReadKeyStrokeEx (TxtInEx, &KeyData); \n if (EFI_ERROR (Status)) { \n break; \n } \n \n if (KeyData.Key.ScanCode == SCAN_PAUSE) { \n PausePressed = TRUE; \n break; \n } \n }" (while) "while" (parenthesized_expression) "(TRUE)" (() "(" (true) "TRUE" ()) ")" (compound_statement) "{ \n Status = TxtInEx->ReadKeyStrokeEx (TxtInEx, &KeyData); \n if (EFI_ERROR (Status)) { \n break; \n } \n \n if (KeyData.Key.ScanCode == SCAN_PAUSE) { \n PausePressed = TRUE; \n break; \n } \n }" ({) "{" (expression_statement) "Status = TxtInEx->ReadKeyStrokeEx (TxtInEx, &KeyData);" (assignment_expression) "Status = TxtInEx->ReadKeyStrokeEx (TxtInEx, &KeyData)" (identifier) "Status" (=) "=" (call_expression) "TxtInEx->ReadKeyStrokeEx (TxtInEx, &KeyData)" (field_expression) "TxtInEx->ReadKeyStrokeEx" (identifier) "TxtInEx" (->) "->" (field_identifier) "ReadKeyStrokeEx" (argument_list) "(TxtInEx, &KeyData)" (() "(" (identifier) "TxtInEx" (,) "," (pointer_expression) "&KeyData" (&) "&" (identifier) "KeyData" ()) ")" (;) ";" (if_statement) "if (EFI_ERROR (Status)) { \n break; \n }" (if) "if" (parenthesized_expression) "(EFI_ERROR (Status))" (() "(" (call_expression) "EFI_ERROR (Status)" (identifier) "EFI_ERROR" (argument_list) "(Status)" (() "(" (identifier) "Status" ()) ")" ()) ")" (compound_statement) "{ \n break; \n }" ({) "{" (break_statement) "break;" (break) "break" (;) ";" (}) "}" (if_statement) "if (KeyData.Key.ScanCode == SCAN_PAUSE) { \n PausePressed = TRUE; \n break; \n }" (if) "if" (parenthesized_expression) "(KeyData.Key.ScanCode == SCAN_PAUSE)" (() "(" (binary_expression) "KeyData.Key.ScanCode == SCAN_PAUSE" (field_expression) "KeyData.Key.ScanCode" (field_expression) "KeyData.Key" (identifier) "KeyData" (.) "." (field_identifier) "Key" (.) "." (field_identifier) "ScanCode" (==) "==" (identifier) "SCAN_PAUSE" ()) ")" (compound_statement) "{ \n PausePressed = TRUE; \n break; \n }" ({) "{" (expression_statement) "PausePressed = TRUE;" (assignment_expression) "PausePressed = TRUE" (identifier) "PausePressed" (=) "=" (true) "TRUE" (;) ";" (break_statement) "break;" (break) "break" (;) ";" (}) "}" (}) "}" (comment) "// " (comment) "// Loop until non-PAUSE key pressed " (comment) "// " (while_statement) "while (PausePressed) { \n Status = TxtInEx->ReadKeyStrokeEx (TxtInEx, &KeyData); \n if (!EFI_ERROR (Status)) { \n DEBUG (( \n DEBUG_INFO, "[PauseCallback] %x/%x %x/%x\n", \n KeyData.Key.ScanCode, KeyData.Key.UnicodeChar, \n KeyData.KeyState.KeyShiftState, KeyData.KeyState.KeyToggleState \n )); \n PausePressed = (BOOLEAN) (KeyData.Key.ScanCode == SCAN_PAUSE); \n } \n }" (while) "while" (parenthesized_expression) "(PausePressed)" (() "(" (identifier) "PausePressed" ()) ")" (compound_statement) "{ \n Status = TxtInEx->ReadKeyStrokeEx (TxtInEx, &KeyData); \n if (!EFI_ERROR (Status)) { \n DEBUG (( \n DEBUG_INFO, "[PauseCallback] %x/%x %x/%x\n", \n KeyData.Key.ScanCode, KeyData.Key.UnicodeChar, \n KeyData.KeyState.KeyShiftState, KeyData.KeyState.KeyToggleState \n )); \n PausePressed = (BOOLEAN) (KeyData.Key.ScanCode == SCAN_PAUSE); \n } \n }" ({) "{" (expression_statement) "Status = TxtInEx->ReadKeyStrokeEx (TxtInEx, &KeyData);" (assignment_expression) "Status = TxtInEx->ReadKeyStrokeEx (TxtInEx, &KeyData)" (identifier) "Status" (=) "=" (call_expression) "TxtInEx->ReadKeyStrokeEx (TxtInEx, &KeyData)" (field_expression) "TxtInEx->ReadKeyStrokeEx" (identifier) "TxtInEx" (->) "->" (field_identifier) "ReadKeyStrokeEx" (argument_list) "(TxtInEx, &KeyData)" (() "(" (identifier) "TxtInEx" (,) "," (pointer_expression) "&KeyData" (&) "&" (identifier) "KeyData" ()) ")" (;) ";" (if_statement) "if (!EFI_ERROR (Status)) { \n DEBUG (( \n DEBUG_INFO, "[PauseCallback] %x/%x %x/%x\n", \n KeyData.Key.ScanCode, KeyData.Key.UnicodeChar, \n KeyData.KeyState.KeyShiftState, KeyData.KeyState.KeyToggleState \n )); \n PausePressed = (BOOLEAN) (KeyData.Key.ScanCode == SCAN_PAUSE); \n }" (if) "if" (parenthesized_expression) "(!EFI_ERROR (Status))" (() "(" (unary_expression) "!EFI_ERROR (Status)" (!) "!" (call_expression) "EFI_ERROR (Status)" (identifier) "EFI_ERROR" (argument_list) "(Status)" (() "(" (identifier) "Status" ()) ")" ()) ")" (compound_statement) "{ \n DEBUG (( \n DEBUG_INFO, "[PauseCallback] %x/%x %x/%x\n", \n KeyData.Key.ScanCode, KeyData.Key.UnicodeChar, \n KeyData.KeyState.KeyShiftState, KeyData.KeyState.KeyToggleState \n )); \n PausePressed = (BOOLEAN) (KeyData.Key.ScanCode == SCAN_PAUSE); \n }" ({) "{" (expression_statement) "DEBUG (( \n DEBUG_INFO, "[PauseCallback] %x/%x %x/%x\n", \n KeyData.Key.ScanCode, KeyData.Key.UnicodeChar, \n KeyData.KeyState.KeyShiftState, KeyData.KeyState.KeyToggleState \n ));" (call_expression) "DEBUG (( \n DEBUG_INFO, "[PauseCallback] %x/%x %x/%x\n", \n KeyData.Key.ScanCode, KeyData.Key.UnicodeChar, \n KeyData.KeyState.KeyShiftState, KeyData.KeyState.KeyToggleState \n ))" (identifier) "DEBUG" (argument_list) "(( \n DEBUG_INFO, "[PauseCallback] %x/%x %x/%x\n", \n KeyData.Key.ScanCode, KeyData.Key.UnicodeChar, \n KeyData.KeyState.KeyShiftState, KeyData.KeyState.KeyToggleState \n ))" (() "(" (parenthesized_expression) "( \n DEBUG_INFO, "[PauseCallback] %x/%x %x/%x\n", \n KeyData.Key.ScanCode, KeyData.Key.UnicodeChar, \n KeyData.KeyState.KeyShiftState, KeyData.KeyState.KeyToggleState \n )" (() "(" (comma_expression) "DEBUG_INFO, "[PauseCallback] %x/%x %x/%x\n", \n KeyData.Key.ScanCode, KeyData.Key.UnicodeChar, \n KeyData.KeyState.KeyShiftState, KeyData.KeyState.KeyToggleState" (identifier) "DEBUG_INFO" (,) "," (comma_expression) ""[PauseCallback] %x/%x %x/%x\n", \n KeyData.Key.ScanCode, KeyData.Key.UnicodeChar, \n KeyData.KeyState.KeyShiftState, KeyData.KeyState.KeyToggleState" (string_literal) ""[PauseCallback] %x/%x %x/%x\n"" (") """ (string_content) "[PauseCallback] %x/%x %x/%x" (escape_sequence) "\n" (") """ (,) "," (comma_expression) "KeyData.Key.ScanCode, KeyData.Key.UnicodeChar, \n KeyData.KeyState.KeyShiftState, KeyData.KeyState.KeyToggleState" (field_expression) "KeyData.Key.ScanCode" (field_expression) "KeyData.Key" (identifier) "KeyData" (.) "." (field_identifier) "Key" (.) "." (field_identifier) "ScanCode" (,) "," (comma_expression) "KeyData.Key.UnicodeChar, \n KeyData.KeyState.KeyShiftState, KeyData.KeyState.KeyToggleState" (field_expression) "KeyData.Key.UnicodeChar" (field_expression) "KeyData.Key" (identifier) "KeyData" (.) "." (field_identifier) "Key" (.) "." (field_identifier) "UnicodeChar" (,) "," (comma_expression) "KeyData.KeyState.KeyShiftState, KeyData.KeyState.KeyToggleState" (field_expression) "KeyData.KeyState.KeyShiftState" (field_expression) "KeyData.KeyState" (identifier) "KeyData" (.) "." (field_identifier) "KeyState" (.) "." (field_identifier) "KeyShiftState" (,) "," (field_expression) "KeyData.KeyState.KeyToggleState" (field_expression) "KeyData.KeyState" (identifier) "KeyData" (.) "." (field_identifier) "KeyState" (.) "." (field_identifier) "KeyToggleState" ()) ")" ()) ")" (;) ";" (expression_statement) "PausePressed = (BOOLEAN) (KeyData.Key.ScanCode == SCAN_PAUSE);" (assignment_expression) "PausePressed = (BOOLEAN) (KeyData.Key.ScanCode == SCAN_PAUSE)" (identifier) "PausePressed" (=) "=" (call_expression) "(BOOLEAN) (KeyData.Key.ScanCode == SCAN_PAUSE)" (parenthesized_expression) "(BOOLEAN)" (() "(" (identifier) "BOOLEAN" ()) ")" (argument_list) "(KeyData.Key.ScanCode == SCAN_PAUSE)" (() "(" (binary_expression) "KeyData.Key.ScanCode == SCAN_PAUSE" (field_expression) "KeyData.Key.ScanCode" (field_expression) "KeyData.Key" (identifier) "KeyData" (.) "." (field_identifier) "Key" (.) "." (field_identifier) "ScanCode" (==) "==" (identifier) "SCAN_PAUSE" ()) ")" (;) ";" (}) "}" (}) "}" (}) "}" (comment) "/** \n The function is called when no boot option could be launched, \n including platform recovery options and options pointing to applications \n built into firmware volumes. \n \n If this function returns, BDS attempts to enter an infinite loop. \n**/" (function_definition) "VOID \nEFIAPI \nBoardBootManagerUnableToBoot ( \n VOID \n ) \n{ \n EFI_STATUS Status; \n EFI_BOOT_MANAGER_LOAD_OPTION BootDeviceList; \n CHAR16 OptionName[sizeof ("Boot####")]; \n \n if (mBootMenuOptionNumber == LoadOptionNumberUnassigned) { \n return; \n } \n UnicodeSPrint (OptionName, sizeof (OptionName), L"Boot%04x", mBootMenuOptionNumber); \n Status = EfiBootManagerVariableToLoadOption (OptionName, &BootDeviceList); \n if (EFI_ERROR (Status)) { \n return; \n } \n for (;;) { \n EfiBootManagerBoot (&BootDeviceList); \n } \n}" (type_identifier) "VOID" (ERROR) "EFIAPI" (identifier) "EFIAPI" (function_declarator) "BoardBootManagerUnableToBoot ( \n VOID \n )" (identifier) "BoardBootManagerUnableToBoot" (parameter_list) "( \n VOID \n )" (() "(" (parameter_declaration) "VOID" (type_identifier) "VOID" ()) ")" (compound_statement) "{ \n EFI_STATUS Status; \n EFI_BOOT_MANAGER_LOAD_OPTION BootDeviceList; \n CHAR16 OptionName[sizeof ("Boot####")]; \n \n if (mBootMenuOptionNumber == LoadOptionNumberUnassigned) { \n return; \n } \n UnicodeSPrint (OptionName, sizeof (OptionName), L"Boot%04x", mBootMenuOptionNumber); \n Status = EfiBootManagerVariableToLoadOption (OptionName, &BootDeviceList); \n if (EFI_ERROR (Status)) { \n return; \n } \n for (;;) { \n EfiBootManagerBoot (&BootDeviceList); \n } \n}" ({) "{" (declaration) "EFI_STATUS Status;" (type_identifier) "EFI_STATUS" (identifier) "Status" (;) ";" (declaration) "EFI_BOOT_MANAGER_LOAD_OPTION BootDeviceList;" (type_identifier) "EFI_BOOT_MANAGER_LOAD_OPTION" (identifier) "BootDeviceList" (;) ";" (declaration) "CHAR16 OptionName[sizeof ("Boot####")];" (type_identifier) "CHAR16" (array_declarator) "OptionName[sizeof ("Boot####")]" (identifier) "OptionName" ([) "[" (sizeof_expression) "sizeof ("Boot####")" (sizeof) "sizeof" (parenthesized_expression) "("Boot####")" (() "(" (string_literal) ""Boot####"" (") """ (string_content) "Boot####" (") """ ()) ")" (]) "]" (;) ";" (if_statement) "if (mBootMenuOptionNumber == LoadOptionNumberUnassigned) { \n return; \n }" (if) "if" (parenthesized_expression) "(mBootMenuOptionNumber == LoadOptionNumberUnassigned)" (() "(" (binary_expression) "mBootMenuOptionNumber == LoadOptionNumberUnassigned" (identifier) "mBootMenuOptionNumber" (==) "==" (identifier) "LoadOptionNumberUnassigned" ()) ")" (compound_statement) "{ \n return; \n }" ({) "{" (return_statement) "return;" (return) "return" (;) ";" (}) "}" (expression_statement) "UnicodeSPrint (OptionName, sizeof (OptionName), L"Boot%04x", mBootMenuOptionNumber);" (call_expression) "UnicodeSPrint (OptionName, sizeof (OptionName), L"Boot%04x", mBootMenuOptionNumber)" (identifier) "UnicodeSPrint" (argument_list) "(OptionName, sizeof (OptionName), L"Boot%04x", mBootMenuOptionNumber)" (() "(" (identifier) "OptionName" (,) "," (sizeof_expression) "sizeof (OptionName)" (sizeof) "sizeof" (parenthesized_expression) "(OptionName)" (() "(" (identifier) "OptionName" ()) ")" (,) "," (string_literal) "L"Boot%04x"" (L") "L"" (string_content) "Boot%04x" (") """ (,) "," (identifier) "mBootMenuOptionNumber" ()) ")" (;) ";" (expression_statement) "Status = EfiBootManagerVariableToLoadOption (OptionName, &BootDeviceList);" (assignment_expression) "Status = EfiBootManagerVariableToLoadOption (OptionName, &BootDeviceList)" (identifier) "Status" (=) "=" (call_expression) "EfiBootManagerVariableToLoadOption (OptionName, &BootDeviceList)" (identifier) "EfiBootManagerVariableToLoadOption" (argument_list) "(OptionName, &BootDeviceList)" (() "(" (identifier) "OptionName" (,) "," (pointer_expression) "&BootDeviceList" (&) "&" (identifier) "BootDeviceList" ()) ")" (;) ";" (if_statement) "if (EFI_ERROR (Status)) { \n return; \n }" (if) "if" (parenthesized_expression) "(EFI_ERROR (Status))" (() "(" (call_expression) "EFI_ERROR (Status)" (identifier) "EFI_ERROR" (argument_list) "(Status)" (() "(" (identifier) "Status" ()) ")" ()) ")" (compound_statement) "{ \n return; \n }" ({) "{" (return_statement) "return;" (return) "return" (;) ";" (}) "}" (for_statement) "for (;;) { \n EfiBootManagerBoot (&BootDeviceList); \n }" (for) "for" (() "(" (;) ";" (;) ";" ()) ")" (compound_statement) "{ \n EfiBootManagerBoot (&BootDeviceList); \n }" ({) "{" (expression_statement) "EfiBootManagerBoot (&BootDeviceList);" (call_expression) "EfiBootManagerBoot (&BootDeviceList)" (identifier) "EfiBootManagerBoot" (argument_list) "(&BootDeviceList)" (() "(" (pointer_expression) "&BootDeviceList" (&) "&" (identifier) "BootDeviceList" ()) ")" (;) ";" (}) "}" (}) "}"
451
2
{"language": "c", "success": true, "metadata": {"lines": 103, "avg_line_length": 25.64, "nodes": 262, "errors": 0, "source_hash": "f2fc15f9105da718038b9a2123bcccbc36ec3990c09eea85486a56fcebcf9419", "categorized_nodes": 211}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#include <Library/DebugLib.h>\r\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": "<Library/DebugLib.h>", "parent": 0, "children": [], "start_point": {"row": 8, "column": 9}, "end_point": {"row": 8, "column": 29}}, {"id": 3, "type": "preproc_include", "text": "#include <Library/UefiBootServicesTableLib.h>\r\n", "parent": null, "children": [4, 5], "start_point": {"row": 9, "column": 0}, "end_point": {"row": 10, "column": 0}}, {"id": 4, "type": "#include", "text": "#include", "parent": 3, "children": [], "start_point": {"row": 9, "column": 0}, "end_point": {"row": 9, "column": 8}}, {"id": 5, "type": "system_lib_string", "text": "<Library/UefiBootServicesTableLib.h>", "parent": 3, "children": [], "start_point": {"row": 9, "column": 9}, "end_point": {"row": 9, "column": 45}}, {"id": 6, "type": "preproc_include", "text": "#include <Library/PlatformBootManagerLib.h>\r\n", "parent": null, "children": [7, 8], "start_point": {"row": 10, "column": 0}, "end_point": {"row": 11, "column": 0}}, {"id": 7, "type": "#include", "text": "#include", "parent": 6, "children": [], "start_point": {"row": 10, "column": 0}, "end_point": {"row": 10, "column": 8}}, {"id": 8, "type": "system_lib_string", "text": "<Library/PlatformBootManagerLib.h>", "parent": 6, "children": [], "start_point": {"row": 10, "column": 9}, "end_point": {"row": 10, "column": 43}}, {"id": 9, "type": "preproc_include", "text": "#include <Library/UefiLib.h>\r\n", "parent": null, "children": [10, 11], "start_point": {"row": 11, "column": 0}, "end_point": {"row": 12, "column": 0}}, {"id": 10, "type": "#include", "text": "#include", "parent": 9, "children": [], "start_point": {"row": 11, "column": 0}, "end_point": {"row": 11, "column": 8}}, {"id": 11, "type": "system_lib_string", "text": "<Library/UefiLib.h>", "parent": 9, "children": [], "start_point": {"row": 11, "column": 9}, "end_point": {"row": 11, "column": 28}}, {"id": 12, "type": "preproc_include", "text": "#include <Library/HobLib.h>\r\n", "parent": null, "children": [13, 14], "start_point": {"row": 12, "column": 0}, "end_point": {"row": 13, "column": 0}}, {"id": 13, "type": "#include", "text": "#include", "parent": 12, "children": [], "start_point": {"row": 12, "column": 0}, "end_point": {"row": 12, "column": 8}}, {"id": 14, "type": "system_lib_string", "text": "<Library/HobLib.h>", "parent": 12, "children": [], "start_point": {"row": 12, "column": 9}, "end_point": {"row": 12, "column": 27}}, {"id": 15, "type": "preproc_include", "text": "#include <Library/PrintLib.h>\r\n", "parent": null, "children": [16, 17], "start_point": {"row": 13, "column": 0}, "end_point": {"row": 14, "column": 0}}, {"id": 16, "type": "#include", "text": "#include", "parent": 15, "children": [], "start_point": {"row": 13, "column": 0}, "end_point": {"row": 13, "column": 8}}, {"id": 17, "type": "system_lib_string", "text": "<Library/PrintLib.h>", "parent": 15, "children": [], "start_point": {"row": 13, "column": 9}, "end_point": {"row": 13, "column": 29}}, {"id": 18, "type": "preproc_include", "text": "#include <Library/PerformanceLib.h>\r\n", "parent": null, "children": [19, 20], "start_point": {"row": 14, "column": 0}, "end_point": {"row": 15, "column": 0}}, {"id": 19, "type": "#include", "text": "#include", "parent": 18, "children": [], "start_point": {"row": 14, "column": 0}, "end_point": {"row": 14, "column": 8}}, {"id": 20, "type": "system_lib_string", "text": "<Library/PerformanceLib.h>", "parent": 18, "children": [], "start_point": {"row": 14, "column": 9}, "end_point": {"row": 14, "column": 35}}, {"id": 21, "type": "preproc_include", "text": "#include <Library/BoardBootManagerLib.h>\r\n", "parent": null, "children": [22, 23], "start_point": {"row": 15, "column": 0}, "end_point": {"row": 16, "column": 0}}, {"id": 22, "type": "#include", "text": "#include", "parent": 21, "children": [], "start_point": {"row": 15, "column": 0}, "end_point": {"row": 15, "column": 8}}, {"id": 23, "type": "system_lib_string", "text": "<Library/BoardBootManagerLib.h>", "parent": 21, "children": [], "start_point": {"row": 15, "column": 9}, "end_point": {"row": 15, "column": 40}}, {"id": 24, "type": "declaration", "text": "BOOLEAN mHotKeypressed = FALSE;", "parent": null, "children": [25, 26], "start_point": {"row": 18, "column": 0}, "end_point": {"row": 18, "column": 34}}, {"id": 25, "type": "type_identifier", "text": "BOOLEAN", "parent": 24, "children": [], "start_point": {"row": 18, "column": 0}, "end_point": {"row": 18, "column": 7}}, {"id": 26, "type": "init_declarator", "text": "mHotKeypressed = FALSE", "parent": 24, "children": [27, 28, 29], "start_point": {"row": 18, "column": 11}, "end_point": {"row": 18, "column": 33}}, {"id": 27, "type": "identifier", "text": "mHotKeypressed", "parent": 26, "children": [], "start_point": {"row": 18, "column": 11}, "end_point": {"row": 18, "column": 25}}, {"id": 28, "type": "=", "text": "=", "parent": 26, "children": [], "start_point": {"row": 18, "column": 26}, "end_point": {"row": 18, "column": 27}}, {"id": 29, "type": "false", "text": "FALSE", "parent": 26, "children": [], "start_point": {"row": 18, "column": 28}, "end_point": {"row": 18, "column": 33}}, {"id": 30, "type": "declaration", "text": "EFI_EVENT HotKeyEvent = NULL;", "parent": null, "children": [31, 32], "start_point": {"row": 19, "column": 0}, "end_point": {"row": 19, "column": 33}}, {"id": 31, "type": "type_identifier", "text": "EFI_EVENT", "parent": 30, "children": [], "start_point": {"row": 19, "column": 0}, "end_point": {"row": 19, "column": 9}}, {"id": 32, "type": "init_declarator", "text": "HotKeyEvent = NULL", "parent": 30, "children": [33, 34, 35], "start_point": {"row": 19, "column": 11}, "end_point": {"row": 19, "column": 32}}, {"id": 33, "type": "identifier", "text": "HotKeyEvent", "parent": 32, "children": [], "start_point": {"row": 19, "column": 11}, "end_point": {"row": 19, "column": 22}}, {"id": 34, "type": "=", "text": "=", "parent": 32, "children": [], "start_point": {"row": 19, "column": 26}, "end_point": {"row": 19, "column": 27}}, {"id": 35, "type": "null", "text": "NULL", "parent": 32, "children": [36], "start_point": {"row": 19, "column": 28}, "end_point": {"row": 19, "column": 32}}, {"id": 36, "type": "NULL", "text": "NULL", "parent": 35, "children": [], "start_point": {"row": 19, "column": 28}, "end_point": {"row": 19, "column": 32}}, {"id": 37, "type": "declaration", "text": "UINTN mBootMenuOptionNumber;", "parent": null, "children": [38, 39], "start_point": {"row": 20, "column": 0}, "end_point": {"row": 20, "column": 33}}, {"id": 38, "type": "type_identifier", "text": "UINTN", "parent": 37, "children": [], "start_point": {"row": 20, "column": 0}, "end_point": {"row": 20, "column": 5}}, {"id": 39, "type": "identifier", "text": "mBootMenuOptionNumber", "parent": 37, "children": [], "start_point": {"row": 20, "column": 11}, "end_point": {"row": 20, "column": 32}}, {"id": 40, "type": "function_definition", "text": "VOID\r\nEFIAPI\r\nBoardBootManagerWaitCallback (\r\n UINT16 TimeoutRemain\r\n )\r\n{\r\n EFI_STATUS Status;\r\n EFI_SIMPLE_TEXT_INPUT_EX_PROTOCOL *TxtInEx;\r\n EFI_KEY_DATA KeyData;\r\n BOOLEAN PausePressed;\r\n\r\n //\r\n // Pause on PAUSE key\r\n //\r\n Status = gBS->HandleProtocol (gST->ConsoleInHandle, &gEfiSimpleTextInputExProtocolGuid, (VOID **) &TxtInEx);\r\n ASSERT_EFI_ERROR (Status);\r\n\r\n PausePressed = FALSE;\r\n\r\n while (TRUE) {\r\n Status = TxtInEx->ReadKeyStrokeEx (TxtInEx, &KeyData);\r\n if (EFI_ERROR (Status)) {\r\n break;\r\n }\r\n\r\n if (KeyData.Key.ScanCode == SCAN_PAUSE) {\r\n PausePressed = TRUE;\r\n break;\r\n }\r\n }\r\n\r\n //\r\n // Loop until non-PAUSE key pressed\r\n //\r\n while (PausePressed) {\r\n Status = TxtInEx->ReadKeyStrokeEx (TxtInEx, &KeyData);\r\n if (!EFI_ERROR (Status)) {\r\n DEBUG ((\r\n DEBUG_INFO, \"[PauseCallback] %x/%x %x/%x\\n\",\r\n KeyData.Key.ScanCode, KeyData.Key.UnicodeChar,\r\n KeyData.KeyState.KeyShiftState, KeyData.KeyState.KeyToggleState\r\n ));\r\n PausePressed = (BOOLEAN) (KeyData.Key.ScanCode == SCAN_PAUSE);\r\n }\r\n }\r\n}", "parent": null, "children": [41, 42, 44], "start_point": {"row": 27, "column": 0}, "end_point": {"row": 72, "column": 1}}, {"id": 41, "type": "type_identifier", "text": "VOID", "parent": 40, "children": [], "start_point": {"row": 27, "column": 0}, "end_point": {"row": 27, "column": 4}}, {"id": 42, "type": "ERROR", "text": "EFIAPI", "parent": 40, "children": [43], "start_point": {"row": 28, "column": 0}, "end_point": {"row": 28, "column": 6}}, {"id": 43, "type": "identifier", "text": "EFIAPI", "parent": 42, "children": [], "start_point": {"row": 28, "column": 0}, "end_point": {"row": 28, "column": 6}}, {"id": 44, "type": "function_declarator", "text": "BoardBootManagerWaitCallback (\r\n UINT16 TimeoutRemain\r\n )", "parent": 40, "children": [45, 46], "start_point": {"row": 29, "column": 0}, "end_point": {"row": 31, "column": 3}}, {"id": 45, "type": "identifier", "text": "BoardBootManagerWaitCallback", "parent": 44, "children": [], "start_point": {"row": 29, "column": 0}, "end_point": {"row": 29, "column": 28}}, {"id": 46, "type": "parameter_list", "text": "(\r\n UINT16 TimeoutRemain\r\n )", "parent": 44, "children": [47], "start_point": {"row": 29, "column": 29}, "end_point": {"row": 31, "column": 3}}, {"id": 47, "type": "parameter_declaration", "text": "UINT16 TimeoutRemain", "parent": 46, "children": [48, 49], "start_point": {"row": 30, "column": 2}, "end_point": {"row": 30, "column": 31}}, {"id": 48, "type": "type_identifier", "text": "UINT16", "parent": 47, "children": [], "start_point": {"row": 30, "column": 2}, "end_point": {"row": 30, "column": 8}}, {"id": 49, "type": "identifier", "text": "TimeoutRemain", "parent": 47, "children": [], "start_point": {"row": 30, "column": 18}, "end_point": {"row": 30, "column": 31}}, {"id": 50, "type": "declaration", "text": "EFI_STATUS Status;", "parent": 40, "children": [51, 52], "start_point": {"row": 33, "column": 2}, "end_point": {"row": 33, "column": 39}}, {"id": 51, "type": "type_identifier", "text": "EFI_STATUS", "parent": 50, "children": [], "start_point": {"row": 33, "column": 2}, "end_point": {"row": 33, "column": 12}}, {"id": 52, "type": "identifier", "text": "Status", "parent": 50, "children": [], "start_point": {"row": 33, "column": 32}, "end_point": {"row": 33, "column": 38}}, {"id": 53, "type": "declaration", "text": "EFI_SIMPLE_TEXT_INPUT_EX_PROTOCOL *TxtInEx;", "parent": 40, "children": [54, 55], "start_point": {"row": 34, "column": 2}, "end_point": {"row": 34, "column": 46}}, {"id": 54, "type": "type_identifier", "text": "EFI_SIMPLE_TEXT_INPUT_EX_PROTOCOL", "parent": 53, "children": [], "start_point": {"row": 34, "column": 2}, "end_point": {"row": 34, "column": 35}}, {"id": 55, "type": "pointer_declarator", "text": "*TxtInEx", "parent": 53, "children": [56, 57], "start_point": {"row": 34, "column": 37}, "end_point": {"row": 34, "column": 45}}, {"id": 56, "type": "*", "text": "*", "parent": 55, "children": [], "start_point": {"row": 34, "column": 37}, "end_point": {"row": 34, "column": 38}}, {"id": 57, "type": "identifier", "text": "TxtInEx", "parent": 55, "children": [], "start_point": {"row": 34, "column": 38}, "end_point": {"row": 34, "column": 45}}, {"id": 58, "type": "declaration", "text": "EFI_KEY_DATA KeyData;", "parent": 40, "children": [59, 60], "start_point": {"row": 35, "column": 2}, "end_point": {"row": 35, "column": 40}}, {"id": 59, "type": "type_identifier", "text": "EFI_KEY_DATA", "parent": 58, "children": [], "start_point": {"row": 35, "column": 2}, "end_point": {"row": 35, "column": 14}}, {"id": 60, "type": "identifier", "text": "KeyData", "parent": 58, "children": [], "start_point": {"row": 35, "column": 32}, "end_point": {"row": 35, "column": 39}}, {"id": 61, "type": "declaration", "text": "BOOLEAN PausePressed;", "parent": 40, "children": [62, 63], "start_point": {"row": 36, "column": 2}, "end_point": {"row": 36, "column": 45}}, {"id": 62, "type": "type_identifier", "text": "BOOLEAN", "parent": 61, "children": [], "start_point": {"row": 36, "column": 2}, "end_point": {"row": 36, "column": 9}}, {"id": 63, "type": "identifier", "text": "PausePressed", "parent": 61, "children": [], "start_point": {"row": 36, "column": 32}, "end_point": {"row": 36, "column": 44}}, {"id": 64, "type": "assignment_expression", "text": "Status = gBS->HandleProtocol (gST->ConsoleInHandle, &gEfiSimpleTextInputExProtocolGuid, (VOID **) &TxtInEx)", "parent": 40, "children": [65, 66, 67], "start_point": {"row": 41, "column": 2}, "end_point": {"row": 41, "column": 109}}, {"id": 65, "type": "identifier", "text": "Status", "parent": 64, "children": [], "start_point": {"row": 41, "column": 2}, "end_point": {"row": 41, "column": 8}}, {"id": 66, "type": "=", "text": "=", "parent": 64, "children": [], "start_point": {"row": 41, "column": 9}, "end_point": {"row": 41, "column": 10}}, {"id": 67, "type": "call_expression", "text": "gBS->HandleProtocol (gST->ConsoleInHandle, &gEfiSimpleTextInputExProtocolGuid, (VOID **) &TxtInEx)", "parent": 64, "children": [68, 71], "start_point": {"row": 41, "column": 11}, "end_point": {"row": 41, "column": 109}}, {"id": 68, "type": "field_expression", "text": "gBS->HandleProtocol", "parent": 67, "children": [69, 70], "start_point": {"row": 41, "column": 11}, "end_point": {"row": 41, "column": 30}}, {"id": 69, "type": "identifier", "text": "gBS", "parent": 68, "children": [], "start_point": {"row": 41, "column": 11}, "end_point": {"row": 41, "column": 14}}, {"id": 70, "type": "field_identifier", "text": "HandleProtocol", "parent": 68, "children": [], "start_point": {"row": 41, "column": 16}, "end_point": {"row": 41, "column": 30}}, {"id": 71, "type": "argument_list", "text": "(gST->ConsoleInHandle, &gEfiSimpleTextInputExProtocolGuid, (VOID **) &TxtInEx)", "parent": 67, "children": [72, 75, 77], "start_point": {"row": 41, "column": 31}, "end_point": {"row": 41, "column": 109}}, {"id": 72, "type": "field_expression", "text": "gST->ConsoleInHandle", "parent": 71, "children": [73, 74], "start_point": {"row": 41, "column": 32}, "end_point": {"row": 41, "column": 52}}, {"id": 73, "type": "identifier", "text": "gST", "parent": 72, "children": [], "start_point": {"row": 41, "column": 32}, "end_point": {"row": 41, "column": 35}}, {"id": 74, "type": "field_identifier", "text": "ConsoleInHandle", "parent": 72, "children": [], "start_point": {"row": 41, "column": 37}, "end_point": {"row": 41, "column": 52}}, {"id": 75, "type": "pointer_expression", "text": "&gEfiSimpleTextInputExProtocolGuid", "parent": 71, "children": [76], "start_point": {"row": 41, "column": 54}, "end_point": {"row": 41, "column": 88}}, {"id": 76, "type": "identifier", "text": "gEfiSimpleTextInputExProtocolGuid", "parent": 75, "children": [], "start_point": {"row": 41, "column": 55}, "end_point": {"row": 41, "column": 88}}, {"id": 77, "type": "cast_expression", "text": "(VOID **) &TxtInEx", "parent": 71, "children": [78, 84], "start_point": {"row": 41, "column": 90}, "end_point": {"row": 41, "column": 108}}, {"id": 78, "type": "type_descriptor", "text": "VOID **", "parent": 77, "children": [79, 80], "start_point": {"row": 41, "column": 91}, "end_point": {"row": 41, "column": 98}}, {"id": 79, "type": "type_identifier", "text": "VOID", "parent": 78, "children": [], "start_point": {"row": 41, "column": 91}, "end_point": {"row": 41, "column": 95}}, {"id": 80, "type": "abstract_pointer_declarator", "text": "**", "parent": 78, "children": [81, 82], "start_point": {"row": 41, "column": 96}, "end_point": {"row": 41, "column": 98}}, {"id": 81, "type": "*", "text": "*", "parent": 80, "children": [], "start_point": {"row": 41, "column": 96}, "end_point": {"row": 41, "column": 97}}, {"id": 82, "type": "abstract_pointer_declarator", "text": "*", "parent": 80, "children": [83], "start_point": {"row": 41, "column": 97}, "end_point": {"row": 41, "column": 98}}, {"id": 83, "type": "*", "text": "*", "parent": 82, "children": [], "start_point": {"row": 41, "column": 97}, "end_point": {"row": 41, "column": 98}}, {"id": 84, "type": "pointer_expression", "text": "&TxtInEx", "parent": 77, "children": [85], "start_point": {"row": 41, "column": 100}, "end_point": {"row": 41, "column": 108}}, {"id": 85, "type": "identifier", "text": "TxtInEx", "parent": 84, "children": [], "start_point": {"row": 41, "column": 101}, "end_point": {"row": 41, "column": 108}}, {"id": 86, "type": "call_expression", "text": "ASSERT_EFI_ERROR (Status)", "parent": 40, "children": [87, 88], "start_point": {"row": 42, "column": 2}, "end_point": {"row": 42, "column": 27}}, {"id": 87, "type": "identifier", "text": "ASSERT_EFI_ERROR", "parent": 86, "children": [], "start_point": {"row": 42, "column": 2}, "end_point": {"row": 42, "column": 18}}, {"id": 88, "type": "argument_list", "text": "(Status)", "parent": 86, "children": [89], "start_point": {"row": 42, "column": 19}, "end_point": {"row": 42, "column": 27}}, {"id": 89, "type": "identifier", "text": "Status", "parent": 88, "children": [], "start_point": {"row": 42, "column": 20}, "end_point": {"row": 42, "column": 26}}, {"id": 90, "type": "assignment_expression", "text": "PausePressed = FALSE", "parent": 40, "children": [91, 92, 93], "start_point": {"row": 44, "column": 2}, "end_point": {"row": 44, "column": 22}}, {"id": 91, "type": "identifier", "text": "PausePressed", "parent": 90, "children": [], "start_point": {"row": 44, "column": 2}, "end_point": {"row": 44, "column": 14}}, {"id": 92, "type": "=", "text": "=", "parent": 90, "children": [], "start_point": {"row": 44, "column": 15}, "end_point": {"row": 44, "column": 16}}, {"id": 93, "type": "false", "text": "FALSE", "parent": 90, "children": [], "start_point": {"row": 44, "column": 17}, "end_point": {"row": 44, "column": 22}}, {"id": 94, "type": "while_statement", "text": "while (TRUE) {\r\n Status = TxtInEx->ReadKeyStrokeEx (TxtInEx, &KeyData);\r\n if (EFI_ERROR (Status)) {\r\n break;\r\n }\r\n\r\n if (KeyData.Key.ScanCode == SCAN_PAUSE) {\r\n PausePressed = TRUE;\r\n break;\r\n }\r\n }", "parent": 40, "children": [95], "start_point": {"row": 46, "column": 2}, "end_point": {"row": 56, "column": 3}}, {"id": 95, "type": "parenthesized_expression", "text": "(TRUE)", "parent": 94, "children": [96], "start_point": {"row": 46, "column": 8}, "end_point": {"row": 46, "column": 14}}, {"id": 96, "type": "true", "text": "TRUE", "parent": 95, "children": [], "start_point": {"row": 46, "column": 9}, "end_point": {"row": 46, "column": 13}}, {"id": 97, "type": "assignment_expression", "text": "Status = TxtInEx->ReadKeyStrokeEx (TxtInEx, &KeyData)", "parent": 94, "children": [98, 99, 100], "start_point": {"row": 47, "column": 4}, "end_point": {"row": 47, "column": 57}}, {"id": 98, "type": "identifier", "text": "Status", "parent": 97, "children": [], "start_point": {"row": 47, "column": 4}, "end_point": {"row": 47, "column": 10}}, {"id": 99, "type": "=", "text": "=", "parent": 97, "children": [], "start_point": {"row": 47, "column": 11}, "end_point": {"row": 47, "column": 12}}, {"id": 100, "type": "call_expression", "text": "TxtInEx->ReadKeyStrokeEx (TxtInEx, &KeyData)", "parent": 97, "children": [101, 104], "start_point": {"row": 47, "column": 13}, "end_point": {"row": 47, "column": 57}}, {"id": 101, "type": "field_expression", "text": "TxtInEx->ReadKeyStrokeEx", "parent": 100, "children": [102, 103], "start_point": {"row": 47, "column": 13}, "end_point": {"row": 47, "column": 37}}, {"id": 102, "type": "identifier", "text": "TxtInEx", "parent": 101, "children": [], "start_point": {"row": 47, "column": 13}, "end_point": {"row": 47, "column": 20}}, {"id": 103, "type": "field_identifier", "text": "ReadKeyStrokeEx", "parent": 101, "children": [], "start_point": {"row": 47, "column": 22}, "end_point": {"row": 47, "column": 37}}, {"id": 104, "type": "argument_list", "text": "(TxtInEx, &KeyData)", "parent": 100, "children": [105, 106], "start_point": {"row": 47, "column": 38}, "end_point": {"row": 47, "column": 57}}, {"id": 105, "type": "identifier", "text": "TxtInEx", "parent": 104, "children": [], "start_point": {"row": 47, "column": 39}, "end_point": {"row": 47, "column": 46}}, {"id": 106, "type": "pointer_expression", "text": "&KeyData", "parent": 104, "children": [107], "start_point": {"row": 47, "column": 48}, "end_point": {"row": 47, "column": 56}}, {"id": 107, "type": "identifier", "text": "KeyData", "parent": 106, "children": [], "start_point": {"row": 47, "column": 49}, "end_point": {"row": 47, "column": 56}}, {"id": 108, "type": "if_statement", "text": "if (EFI_ERROR (Status)) {\r\n break;\r\n }", "parent": 94, "children": [109], "start_point": {"row": 48, "column": 4}, "end_point": {"row": 50, "column": 5}}, {"id": 109, "type": "parenthesized_expression", "text": "(EFI_ERROR (Status))", "parent": 108, "children": [110], "start_point": {"row": 48, "column": 7}, "end_point": {"row": 48, "column": 27}}, {"id": 110, "type": "call_expression", "text": "EFI_ERROR (Status)", "parent": 109, "children": [111, 112], "start_point": {"row": 48, "column": 8}, "end_point": {"row": 48, "column": 26}}, {"id": 111, "type": "identifier", "text": "EFI_ERROR", "parent": 110, "children": [], "start_point": {"row": 48, "column": 8}, "end_point": {"row": 48, "column": 17}}, {"id": 112, "type": "argument_list", "text": "(Status)", "parent": 110, "children": [113], "start_point": {"row": 48, "column": 18}, "end_point": {"row": 48, "column": 26}}, {"id": 113, "type": "identifier", "text": "Status", "parent": 112, "children": [], "start_point": {"row": 48, "column": 19}, "end_point": {"row": 48, "column": 25}}, {"id": 114, "type": "break_statement", "text": "break;", "parent": 108, "children": [115], "start_point": {"row": 49, "column": 6}, "end_point": {"row": 49, "column": 12}}, {"id": 115, "type": "break", "text": "break", "parent": 114, "children": [], "start_point": {"row": 49, "column": 6}, "end_point": {"row": 49, "column": 11}}, {"id": 116, "type": "if_statement", "text": "if (KeyData.Key.ScanCode == SCAN_PAUSE) {\r\n PausePressed = TRUE;\r\n break;\r\n }", "parent": 94, "children": [117], "start_point": {"row": 52, "column": 4}, "end_point": {"row": 55, "column": 5}}, {"id": 117, "type": "parenthesized_expression", "text": "(KeyData.Key.ScanCode == SCAN_PAUSE)", "parent": 116, "children": [118], "start_point": {"row": 52, "column": 7}, "end_point": {"row": 52, "column": 43}}, {"id": 118, "type": "binary_expression", "text": "KeyData.Key.ScanCode == SCAN_PAUSE", "parent": 117, "children": [119, 124, 125], "start_point": {"row": 52, "column": 8}, "end_point": {"row": 52, "column": 42}}, {"id": 119, "type": "field_expression", "text": "KeyData.Key.ScanCode", "parent": 118, "children": [120, 123], "start_point": {"row": 52, "column": 8}, "end_point": {"row": 52, "column": 28}}, {"id": 120, "type": "field_expression", "text": "KeyData.Key", "parent": 119, "children": [121, 122], "start_point": {"row": 52, "column": 8}, "end_point": {"row": 52, "column": 19}}, {"id": 121, "type": "identifier", "text": "KeyData", "parent": 120, "children": [], "start_point": {"row": 52, "column": 8}, "end_point": {"row": 52, "column": 15}}, {"id": 122, "type": "field_identifier", "text": "Key", "parent": 120, "children": [], "start_point": {"row": 52, "column": 16}, "end_point": {"row": 52, "column": 19}}, {"id": 123, "type": "field_identifier", "text": "ScanCode", "parent": 119, "children": [], "start_point": {"row": 52, "column": 20}, "end_point": {"row": 52, "column": 28}}, {"id": 124, "type": "==", "text": "==", "parent": 118, "children": [], "start_point": {"row": 52, "column": 29}, "end_point": {"row": 52, "column": 31}}, {"id": 125, "type": "identifier", "text": "SCAN_PAUSE", "parent": 118, "children": [], "start_point": {"row": 52, "column": 32}, "end_point": {"row": 52, "column": 42}}, {"id": 126, "type": "assignment_expression", "text": "PausePressed = TRUE", "parent": 116, "children": [127, 128, 129], "start_point": {"row": 53, "column": 6}, "end_point": {"row": 53, "column": 25}}, {"id": 127, "type": "identifier", "text": "PausePressed", "parent": 126, "children": [], "start_point": {"row": 53, "column": 6}, "end_point": {"row": 53, "column": 18}}, {"id": 128, "type": "=", "text": "=", "parent": 126, "children": [], "start_point": {"row": 53, "column": 19}, "end_point": {"row": 53, "column": 20}}, {"id": 129, "type": "true", "text": "TRUE", "parent": 126, "children": [], "start_point": {"row": 53, "column": 21}, "end_point": {"row": 53, "column": 25}}, {"id": 130, "type": "break_statement", "text": "break;", "parent": 116, "children": [131], "start_point": {"row": 54, "column": 6}, "end_point": {"row": 54, "column": 12}}, {"id": 131, "type": "break", "text": "break", "parent": 130, "children": [], "start_point": {"row": 54, "column": 6}, "end_point": {"row": 54, "column": 11}}, {"id": 132, "type": "while_statement", "text": "while (PausePressed) {\r\n Status = TxtInEx->ReadKeyStrokeEx (TxtInEx, &KeyData);\r\n if (!EFI_ERROR (Status)) {\r\n DEBUG ((\r\n DEBUG_INFO, \"[PauseCallback] %x/%x %x/%x\\n\",\r\n KeyData.Key.ScanCode, KeyData.Key.UnicodeChar,\r\n KeyData.KeyState.KeyShiftState, KeyData.KeyState.KeyToggleState\r\n ));\r\n PausePressed = (BOOLEAN) (KeyData.Key.ScanCode == SCAN_PAUSE);\r\n }\r\n }", "parent": 40, "children": [133], "start_point": {"row": 61, "column": 2}, "end_point": {"row": 71, "column": 3}}, {"id": 133, "type": "parenthesized_expression", "text": "(PausePressed)", "parent": 132, "children": [134], "start_point": {"row": 61, "column": 8}, "end_point": {"row": 61, "column": 22}}, {"id": 134, "type": "identifier", "text": "PausePressed", "parent": 133, "children": [], "start_point": {"row": 61, "column": 9}, "end_point": {"row": 61, "column": 21}}, {"id": 135, "type": "assignment_expression", "text": "Status = TxtInEx->ReadKeyStrokeEx (TxtInEx, &KeyData)", "parent": 132, "children": [136, 137, 138], "start_point": {"row": 62, "column": 4}, "end_point": {"row": 62, "column": 57}}, {"id": 136, "type": "identifier", "text": "Status", "parent": 135, "children": [], "start_point": {"row": 62, "column": 4}, "end_point": {"row": 62, "column": 10}}, {"id": 137, "type": "=", "text": "=", "parent": 135, "children": [], "start_point": {"row": 62, "column": 11}, "end_point": {"row": 62, "column": 12}}, {"id": 138, "type": "call_expression", "text": "TxtInEx->ReadKeyStrokeEx (TxtInEx, &KeyData)", "parent": 135, "children": [139, 142], "start_point": {"row": 62, "column": 13}, "end_point": {"row": 62, "column": 57}}, {"id": 139, "type": "field_expression", "text": "TxtInEx->ReadKeyStrokeEx", "parent": 138, "children": [140, 141], "start_point": {"row": 62, "column": 13}, "end_point": {"row": 62, "column": 37}}, {"id": 140, "type": "identifier", "text": "TxtInEx", "parent": 139, "children": [], "start_point": {"row": 62, "column": 13}, "end_point": {"row": 62, "column": 20}}, {"id": 141, "type": "field_identifier", "text": "ReadKeyStrokeEx", "parent": 139, "children": [], "start_point": {"row": 62, "column": 22}, "end_point": {"row": 62, "column": 37}}, {"id": 142, "type": "argument_list", "text": "(TxtInEx, &KeyData)", "parent": 138, "children": [143, 144], "start_point": {"row": 62, "column": 38}, "end_point": {"row": 62, "column": 57}}, {"id": 143, "type": "identifier", "text": "TxtInEx", "parent": 142, "children": [], "start_point": {"row": 62, "column": 39}, "end_point": {"row": 62, "column": 46}}, {"id": 144, "type": "pointer_expression", "text": "&KeyData", "parent": 142, "children": [145], "start_point": {"row": 62, "column": 48}, "end_point": {"row": 62, "column": 56}}, {"id": 145, "type": "identifier", "text": "KeyData", "parent": 144, "children": [], "start_point": {"row": 62, "column": 49}, "end_point": {"row": 62, "column": 56}}, {"id": 146, "type": "if_statement", "text": "if (!EFI_ERROR (Status)) {\r\n DEBUG ((\r\n DEBUG_INFO, \"[PauseCallback] %x/%x %x/%x\\n\",\r\n KeyData.Key.ScanCode, KeyData.Key.UnicodeChar,\r\n KeyData.KeyState.KeyShiftState, KeyData.KeyState.KeyToggleState\r\n ));\r\n PausePressed = (BOOLEAN) (KeyData.Key.ScanCode == SCAN_PAUSE);\r\n }", "parent": 132, "children": [147], "start_point": {"row": 63, "column": 4}, "end_point": {"row": 70, "column": 5}}, {"id": 147, "type": "parenthesized_expression", "text": "(!EFI_ERROR (Status))", "parent": 146, "children": [148], "start_point": {"row": 63, "column": 7}, "end_point": {"row": 63, "column": 28}}, {"id": 148, "type": "unary_expression", "text": "!EFI_ERROR (Status)", "parent": 147, "children": [149, 150], "start_point": {"row": 63, "column": 8}, "end_point": {"row": 63, "column": 27}}, {"id": 149, "type": "!", "text": "!", "parent": 148, "children": [], "start_point": {"row": 63, "column": 8}, "end_point": {"row": 63, "column": 9}}, {"id": 150, "type": "call_expression", "text": "EFI_ERROR (Status)", "parent": 148, "children": [151, 152], "start_point": {"row": 63, "column": 9}, "end_point": {"row": 63, "column": 27}}, {"id": 151, "type": "identifier", "text": "EFI_ERROR", "parent": 150, "children": [], "start_point": {"row": 63, "column": 9}, "end_point": {"row": 63, "column": 18}}, {"id": 152, "type": "argument_list", "text": "(Status)", "parent": 150, "children": [153], "start_point": {"row": 63, "column": 19}, "end_point": {"row": 63, "column": 27}}, {"id": 153, "type": "identifier", "text": "Status", "parent": 152, "children": [], "start_point": {"row": 63, "column": 20}, "end_point": {"row": 63, "column": 26}}, {"id": 154, "type": "call_expression", "text": "DEBUG ((\r\n DEBUG_INFO, \"[PauseCallback] %x/%x %x/%x\\n\",\r\n KeyData.Key.ScanCode, KeyData.Key.UnicodeChar,\r\n KeyData.KeyState.KeyShiftState, KeyData.KeyState.KeyToggleState\r\n ))", "parent": 146, "children": [155, 156], "start_point": {"row": 64, "column": 6}, "end_point": {"row": 68, "column": 10}}, {"id": 155, "type": "identifier", "text": "DEBUG", "parent": 154, "children": [], "start_point": {"row": 64, "column": 6}, "end_point": {"row": 64, "column": 11}}, {"id": 156, "type": "argument_list", "text": "((\r\n DEBUG_INFO, \"[PauseCallback] %x/%x %x/%x\\n\",\r\n KeyData.Key.ScanCode, KeyData.Key.UnicodeChar,\r\n KeyData.KeyState.KeyShiftState, KeyData.KeyState.KeyToggleState\r\n ))", "parent": 154, "children": [157], "start_point": {"row": 64, "column": 12}, "end_point": {"row": 68, "column": 10}}, {"id": 157, "type": "parenthesized_expression", "text": "(\r\n DEBUG_INFO, \"[PauseCallback] %x/%x %x/%x\\n\",\r\n KeyData.Key.ScanCode, KeyData.Key.UnicodeChar,\r\n KeyData.KeyState.KeyShiftState, KeyData.KeyState.KeyToggleState\r\n )", "parent": 156, "children": [158], "start_point": {"row": 64, "column": 13}, "end_point": {"row": 68, "column": 9}}, {"id": 158, "type": "comma_expression", "text": "DEBUG_INFO, \"[PauseCallback] %x/%x %x/%x\\n\",\r\n KeyData.Key.ScanCode, KeyData.Key.UnicodeChar,\r\n KeyData.KeyState.KeyShiftState, KeyData.KeyState.KeyToggleState", "parent": 157, "children": [159, 160], "start_point": {"row": 65, "column": 8}, "end_point": {"row": 67, "column": 71}}, {"id": 159, "type": "identifier", "text": "DEBUG_INFO", "parent": 158, "children": [], "start_point": {"row": 65, "column": 8}, "end_point": {"row": 65, "column": 18}}, {"id": 160, "type": "comma_expression", "text": "\"[PauseCallback] %x/%x %x/%x\\n\",\r\n KeyData.Key.ScanCode, KeyData.Key.UnicodeChar,\r\n KeyData.KeyState.KeyShiftState, KeyData.KeyState.KeyToggleState", "parent": 158, "children": [161, 163], "start_point": {"row": 65, "column": 20}, "end_point": {"row": 67, "column": 71}}, {"id": 161, "type": "string_literal", "text": "\"[PauseCallback] %x/%x %x/%x\\n\"", "parent": 160, "children": [162], "start_point": {"row": 65, "column": 20}, "end_point": {"row": 65, "column": 51}}, {"id": 162, "type": "escape_sequence", "text": "\\n", "parent": 161, "children": [], "start_point": {"row": 65, "column": 48}, "end_point": {"row": 65, "column": 50}}, {"id": 163, "type": "comma_expression", "text": "KeyData.Key.ScanCode, KeyData.Key.UnicodeChar,\r\n KeyData.KeyState.KeyShiftState, KeyData.KeyState.KeyToggleState", "parent": 160, "children": [164, 169], "start_point": {"row": 66, "column": 8}, "end_point": {"row": 67, "column": 71}}, {"id": 164, "type": "field_expression", "text": "KeyData.Key.ScanCode", "parent": 163, "children": [165, 168], "start_point": {"row": 66, "column": 8}, "end_point": {"row": 66, "column": 28}}, {"id": 165, "type": "field_expression", "text": "KeyData.Key", "parent": 164, "children": [166, 167], "start_point": {"row": 66, "column": 8}, "end_point": {"row": 66, "column": 19}}, {"id": 166, "type": "identifier", "text": "KeyData", "parent": 165, "children": [], "start_point": {"row": 66, "column": 8}, "end_point": {"row": 66, "column": 15}}, {"id": 167, "type": "field_identifier", "text": "Key", "parent": 165, "children": [], "start_point": {"row": 66, "column": 16}, "end_point": {"row": 66, "column": 19}}, {"id": 168, "type": "field_identifier", "text": "ScanCode", "parent": 164, "children": [], "start_point": {"row": 66, "column": 20}, "end_point": {"row": 66, "column": 28}}, {"id": 169, "type": "comma_expression", "text": "KeyData.Key.UnicodeChar,\r\n KeyData.KeyState.KeyShiftState, KeyData.KeyState.KeyToggleState", "parent": 163, "children": [170, 175], "start_point": {"row": 66, "column": 30}, "end_point": {"row": 67, "column": 71}}, {"id": 170, "type": "field_expression", "text": "KeyData.Key.UnicodeChar", "parent": 169, "children": [171, 174], "start_point": {"row": 66, "column": 30}, "end_point": {"row": 66, "column": 53}}, {"id": 171, "type": "field_expression", "text": "KeyData.Key", "parent": 170, "children": [172, 173], "start_point": {"row": 66, "column": 30}, "end_point": {"row": 66, "column": 41}}, {"id": 172, "type": "identifier", "text": "KeyData", "parent": 171, "children": [], "start_point": {"row": 66, "column": 30}, "end_point": {"row": 66, "column": 37}}, {"id": 173, "type": "field_identifier", "text": "Key", "parent": 171, "children": [], "start_point": {"row": 66, "column": 38}, "end_point": {"row": 66, "column": 41}}, {"id": 174, "type": "field_identifier", "text": "UnicodeChar", "parent": 170, "children": [], "start_point": {"row": 66, "column": 42}, "end_point": {"row": 66, "column": 53}}, {"id": 175, "type": "comma_expression", "text": "KeyData.KeyState.KeyShiftState, KeyData.KeyState.KeyToggleState", "parent": 169, "children": [176, 181], "start_point": {"row": 67, "column": 8}, "end_point": {"row": 67, "column": 71}}, {"id": 176, "type": "field_expression", "text": "KeyData.KeyState.KeyShiftState", "parent": 175, "children": [177, 180], "start_point": {"row": 67, "column": 8}, "end_point": {"row": 67, "column": 38}}, {"id": 177, "type": "field_expression", "text": "KeyData.KeyState", "parent": 176, "children": [178, 179], "start_point": {"row": 67, "column": 8}, "end_point": {"row": 67, "column": 24}}, {"id": 178, "type": "identifier", "text": "KeyData", "parent": 177, "children": [], "start_point": {"row": 67, "column": 8}, "end_point": {"row": 67, "column": 15}}, {"id": 179, "type": "field_identifier", "text": "KeyState", "parent": 177, "children": [], "start_point": {"row": 67, "column": 16}, "end_point": {"row": 67, "column": 24}}, {"id": 180, "type": "field_identifier", "text": "KeyShiftState", "parent": 176, "children": [], "start_point": {"row": 67, "column": 25}, "end_point": {"row": 67, "column": 38}}, {"id": 181, "type": "field_expression", "text": "KeyData.KeyState.KeyToggleState", "parent": 175, "children": [182, 185], "start_point": {"row": 67, "column": 40}, "end_point": {"row": 67, "column": 71}}, {"id": 182, "type": "field_expression", "text": "KeyData.KeyState", "parent": 181, "children": [183, 184], "start_point": {"row": 67, "column": 40}, "end_point": {"row": 67, "column": 56}}, {"id": 183, "type": "identifier", "text": "KeyData", "parent": 182, "children": [], "start_point": {"row": 67, "column": 40}, "end_point": {"row": 67, "column": 47}}, {"id": 184, "type": "field_identifier", "text": "KeyState", "parent": 182, "children": [], "start_point": {"row": 67, "column": 48}, "end_point": {"row": 67, "column": 56}}, {"id": 185, "type": "field_identifier", "text": "KeyToggleState", "parent": 181, "children": [], "start_point": {"row": 67, "column": 57}, "end_point": {"row": 67, "column": 71}}, {"id": 186, "type": "assignment_expression", "text": "PausePressed = (BOOLEAN) (KeyData.Key.ScanCode == SCAN_PAUSE)", "parent": 146, "children": [187, 188, 189], "start_point": {"row": 69, "column": 6}, "end_point": {"row": 69, "column": 67}}, {"id": 187, "type": "identifier", "text": "PausePressed", "parent": 186, "children": [], "start_point": {"row": 69, "column": 6}, "end_point": {"row": 69, "column": 18}}, {"id": 188, "type": "=", "text": "=", "parent": 186, "children": [], "start_point": {"row": 69, "column": 19}, "end_point": {"row": 69, "column": 20}}, {"id": 189, "type": "call_expression", "text": "(BOOLEAN) (KeyData.Key.ScanCode == SCAN_PAUSE)", "parent": 186, "children": [190, 192], "start_point": {"row": 69, "column": 21}, "end_point": {"row": 69, "column": 67}}, {"id": 190, "type": "parenthesized_expression", "text": "(BOOLEAN)", "parent": 189, "children": [191], "start_point": {"row": 69, "column": 21}, "end_point": {"row": 69, "column": 30}}, {"id": 191, "type": "identifier", "text": "BOOLEAN", "parent": 190, "children": [], "start_point": {"row": 69, "column": 22}, "end_point": {"row": 69, "column": 29}}, {"id": 192, "type": "argument_list", "text": "(KeyData.Key.ScanCode == SCAN_PAUSE)", "parent": 189, "children": [193], "start_point": {"row": 69, "column": 31}, "end_point": {"row": 69, "column": 67}}, {"id": 193, "type": "binary_expression", "text": "KeyData.Key.ScanCode == SCAN_PAUSE", "parent": 192, "children": [194, 199, 200], "start_point": {"row": 69, "column": 32}, "end_point": {"row": 69, "column": 66}}, {"id": 194, "type": "field_expression", "text": "KeyData.Key.ScanCode", "parent": 193, "children": [195, 198], "start_point": {"row": 69, "column": 32}, "end_point": {"row": 69, "column": 52}}, {"id": 195, "type": "field_expression", "text": "KeyData.Key", "parent": 194, "children": [196, 197], "start_point": {"row": 69, "column": 32}, "end_point": {"row": 69, "column": 43}}, {"id": 196, "type": "identifier", "text": "KeyData", "parent": 195, "children": [], "start_point": {"row": 69, "column": 32}, "end_point": {"row": 69, "column": 39}}, {"id": 197, "type": "field_identifier", "text": "Key", "parent": 195, "children": [], "start_point": {"row": 69, "column": 40}, "end_point": {"row": 69, "column": 43}}, {"id": 198, "type": "field_identifier", "text": "ScanCode", "parent": 194, "children": [], "start_point": {"row": 69, "column": 44}, "end_point": {"row": 69, "column": 52}}, {"id": 199, "type": "==", "text": "==", "parent": 193, "children": [], "start_point": {"row": 69, "column": 53}, "end_point": {"row": 69, "column": 55}}, {"id": 200, "type": "identifier", "text": "SCAN_PAUSE", "parent": 193, "children": [], "start_point": {"row": 69, "column": 56}, "end_point": {"row": 69, "column": 66}}, {"id": 201, "type": "function_definition", "text": "VOID\r\nEFIAPI\r\nBoardBootManagerUnableToBoot (\r\n VOID\r\n )\r\n{\r\n EFI_STATUS Status;\r\n EFI_BOOT_MANAGER_LOAD_OPTION BootDeviceList;\r\n CHAR16 OptionName[sizeof (\"Boot####\")];\r\n\r\n if (mBootMenuOptionNumber == LoadOptionNumberUnassigned) {\r\n return;\r\n }\r\n UnicodeSPrint (OptionName, sizeof (OptionName), L\"Boot%04x\", mBootMenuOptionNumber);\r\n Status = EfiBootManagerVariableToLoadOption (OptionName, &BootDeviceList);\r\n if (EFI_ERROR (Status)) {\r\n return;\r\n }\r\n for (;;) {\r\n EfiBootManagerBoot (&BootDeviceList);\r\n }\r\n}", "parent": null, "children": [202, 203, 205], "start_point": {"row": 81, "column": 0}, "end_point": {"row": 102, "column": 1}}, {"id": 202, "type": "type_identifier", "text": "VOID", "parent": 201, "children": [], "start_point": {"row": 81, "column": 0}, "end_point": {"row": 81, "column": 4}}, {"id": 203, "type": "ERROR", "text": "EFIAPI", "parent": 201, "children": [204], "start_point": {"row": 82, "column": 0}, "end_point": {"row": 82, "column": 6}}, {"id": 204, "type": "identifier", "text": "EFIAPI", "parent": 203, "children": [], "start_point": {"row": 82, "column": 0}, "end_point": {"row": 82, "column": 6}}, {"id": 205, "type": "function_declarator", "text": "BoardBootManagerUnableToBoot (\r\n VOID\r\n )", "parent": 201, "children": [206, 207], "start_point": {"row": 83, "column": 0}, "end_point": {"row": 85, "column": 3}}, {"id": 206, "type": "identifier", "text": "BoardBootManagerUnableToBoot", "parent": 205, "children": [], "start_point": {"row": 83, "column": 0}, "end_point": {"row": 83, "column": 28}}, {"id": 207, "type": "parameter_list", "text": "(\r\n VOID\r\n )", "parent": 205, "children": [208], "start_point": {"row": 83, "column": 29}, "end_point": {"row": 85, "column": 3}}, {"id": 208, "type": "parameter_declaration", "text": "VOID", "parent": 207, "children": [209], "start_point": {"row": 84, "column": 2}, "end_point": {"row": 84, "column": 6}}, {"id": 209, "type": "type_identifier", "text": "VOID", "parent": 208, "children": [], "start_point": {"row": 84, "column": 2}, "end_point": {"row": 84, "column": 6}}, {"id": 210, "type": "declaration", "text": "EFI_STATUS Status;", "parent": 201, "children": [211, 212], "start_point": {"row": 87, "column": 2}, "end_point": {"row": 87, "column": 38}}, {"id": 211, "type": "type_identifier", "text": "EFI_STATUS", "parent": 210, "children": [], "start_point": {"row": 87, "column": 2}, "end_point": {"row": 87, "column": 12}}, {"id": 212, "type": "identifier", "text": "Status", "parent": 210, "children": [], "start_point": {"row": 87, "column": 31}, "end_point": {"row": 87, "column": 37}}, {"id": 213, "type": "declaration", "text": "EFI_BOOT_MANAGER_LOAD_OPTION BootDeviceList;", "parent": 201, "children": [214, 215], "start_point": {"row": 88, "column": 2}, "end_point": {"row": 88, "column": 46}}, {"id": 214, "type": "type_identifier", "text": "EFI_BOOT_MANAGER_LOAD_OPTION", "parent": 213, "children": [], "start_point": {"row": 88, "column": 2}, "end_point": {"row": 88, "column": 30}}, {"id": 215, "type": "identifier", "text": "BootDeviceList", "parent": 213, "children": [], "start_point": {"row": 88, "column": 31}, "end_point": {"row": 88, "column": 45}}, {"id": 216, "type": "declaration", "text": "CHAR16 OptionName[sizeof (\"Boot####\")];", "parent": 201, "children": [217, 218], "start_point": {"row": 89, "column": 2}, "end_point": {"row": 89, "column": 63}}, {"id": 217, "type": "type_identifier", "text": "CHAR16", "parent": 216, "children": [], "start_point": {"row": 89, "column": 2}, "end_point": {"row": 89, "column": 8}}, {"id": 218, "type": "array_declarator", "text": "OptionName[sizeof (\"Boot####\")]", "parent": 216, "children": [219, 220], "start_point": {"row": 89, "column": 31}, "end_point": {"row": 89, "column": 62}}, {"id": 219, "type": "identifier", "text": "OptionName", "parent": 218, "children": [], "start_point": {"row": 89, "column": 31}, "end_point": {"row": 89, "column": 41}}, {"id": 220, "type": "sizeof_expression", "text": "sizeof (\"Boot####\")", "parent": 218, "children": [221], "start_point": {"row": 89, "column": 42}, "end_point": {"row": 89, "column": 61}}, {"id": 221, "type": "parenthesized_expression", "text": "(\"Boot####\")", "parent": 220, "children": [222], "start_point": {"row": 89, "column": 49}, "end_point": {"row": 89, "column": 61}}, {"id": 222, "type": "string_literal", "text": "\"Boot####\"", "parent": 221, "children": [], "start_point": {"row": 89, "column": 50}, "end_point": {"row": 89, "column": 60}}, {"id": 223, "type": "if_statement", "text": "if (mBootMenuOptionNumber == LoadOptionNumberUnassigned) {\r\n return;\r\n }", "parent": 201, "children": [224], "start_point": {"row": 91, "column": 2}, "end_point": {"row": 93, "column": 3}}, {"id": 224, "type": "parenthesized_expression", "text": "(mBootMenuOptionNumber == LoadOptionNumberUnassigned)", "parent": 223, "children": [225], "start_point": {"row": 91, "column": 5}, "end_point": {"row": 91, "column": 58}}, {"id": 225, "type": "binary_expression", "text": "mBootMenuOptionNumber == LoadOptionNumberUnassigned", "parent": 224, "children": [226, 227, 228], "start_point": {"row": 91, "column": 6}, "end_point": {"row": 91, "column": 57}}, {"id": 226, "type": "identifier", "text": "mBootMenuOptionNumber", "parent": 225, "children": [], "start_point": {"row": 91, "column": 6}, "end_point": {"row": 91, "column": 27}}, {"id": 227, "type": "==", "text": "==", "parent": 225, "children": [], "start_point": {"row": 91, "column": 28}, "end_point": {"row": 91, "column": 30}}, {"id": 228, "type": "identifier", "text": "LoadOptionNumberUnassigned", "parent": 225, "children": [], "start_point": {"row": 91, "column": 31}, "end_point": {"row": 91, "column": 57}}, {"id": 229, "type": "return_statement", "text": "return;", "parent": 223, "children": [], "start_point": {"row": 92, "column": 4}, "end_point": {"row": 92, "column": 11}}, {"id": 230, "type": "call_expression", "text": "UnicodeSPrint (OptionName, sizeof (OptionName), L\"Boot%04x\", mBootMenuOptionNumber)", "parent": 201, "children": [231, 232], "start_point": {"row": 94, "column": 2}, "end_point": {"row": 94, "column": 85}}, {"id": 231, "type": "identifier", "text": "UnicodeSPrint", "parent": 230, "children": [], "start_point": {"row": 94, "column": 2}, "end_point": {"row": 94, "column": 15}}, {"id": 232, "type": "argument_list", "text": "(OptionName, sizeof (OptionName), L\"Boot%04x\", mBootMenuOptionNumber)", "parent": 230, "children": [233, 234, 237, 239], "start_point": {"row": 94, "column": 16}, "end_point": {"row": 94, "column": 85}}, {"id": 233, "type": "identifier", "text": "OptionName", "parent": 232, "children": [], "start_point": {"row": 94, "column": 17}, "end_point": {"row": 94, "column": 27}}, {"id": 234, "type": "sizeof_expression", "text": "sizeof (OptionName)", "parent": 232, "children": [235], "start_point": {"row": 94, "column": 29}, "end_point": {"row": 94, "column": 48}}, {"id": 235, "type": "parenthesized_expression", "text": "(OptionName)", "parent": 234, "children": [236], "start_point": {"row": 94, "column": 36}, "end_point": {"row": 94, "column": 48}}, {"id": 236, "type": "identifier", "text": "OptionName", "parent": 235, "children": [], "start_point": {"row": 94, "column": 37}, "end_point": {"row": 94, "column": 47}}, {"id": 237, "type": "string_literal", "text": "L\"Boot%04x\"", "parent": 232, "children": [238], "start_point": {"row": 94, "column": 50}, "end_point": {"row": 94, "column": 61}}, {"id": 238, "type": "L\"", "text": "L\"", "parent": 237, "children": [], "start_point": {"row": 94, "column": 50}, "end_point": {"row": 94, "column": 52}}, {"id": 239, "type": "identifier", "text": "mBootMenuOptionNumber", "parent": 232, "children": [], "start_point": {"row": 94, "column": 63}, "end_point": {"row": 94, "column": 84}}, {"id": 240, "type": "assignment_expression", "text": "Status = EfiBootManagerVariableToLoadOption (OptionName, &BootDeviceList)", "parent": 201, "children": [241, 242, 243], "start_point": {"row": 95, "column": 2}, "end_point": {"row": 95, "column": 75}}, {"id": 241, "type": "identifier", "text": "Status", "parent": 240, "children": [], "start_point": {"row": 95, "column": 2}, "end_point": {"row": 95, "column": 8}}, {"id": 242, "type": "=", "text": "=", "parent": 240, "children": [], "start_point": {"row": 95, "column": 9}, "end_point": {"row": 95, "column": 10}}, {"id": 243, "type": "call_expression", "text": "EfiBootManagerVariableToLoadOption (OptionName, &BootDeviceList)", "parent": 240, "children": [244, 245], "start_point": {"row": 95, "column": 11}, "end_point": {"row": 95, "column": 75}}, {"id": 244, "type": "identifier", "text": "EfiBootManagerVariableToLoadOption", "parent": 243, "children": [], "start_point": {"row": 95, "column": 11}, "end_point": {"row": 95, "column": 45}}, {"id": 245, "type": "argument_list", "text": "(OptionName, &BootDeviceList)", "parent": 243, "children": [246, 247], "start_point": {"row": 95, "column": 46}, "end_point": {"row": 95, "column": 75}}, {"id": 246, "type": "identifier", "text": "OptionName", "parent": 245, "children": [], "start_point": {"row": 95, "column": 47}, "end_point": {"row": 95, "column": 57}}, {"id": 247, "type": "pointer_expression", "text": "&BootDeviceList", "parent": 245, "children": [248], "start_point": {"row": 95, "column": 59}, "end_point": {"row": 95, "column": 74}}, {"id": 248, "type": "identifier", "text": "BootDeviceList", "parent": 247, "children": [], "start_point": {"row": 95, "column": 60}, "end_point": {"row": 95, "column": 74}}, {"id": 249, "type": "if_statement", "text": "if (EFI_ERROR (Status)) {\r\n return;\r\n }", "parent": 201, "children": [250], "start_point": {"row": 96, "column": 2}, "end_point": {"row": 98, "column": 3}}, {"id": 250, "type": "parenthesized_expression", "text": "(EFI_ERROR (Status))", "parent": 249, "children": [251], "start_point": {"row": 96, "column": 5}, "end_point": {"row": 96, "column": 25}}, {"id": 251, "type": "call_expression", "text": "EFI_ERROR (Status)", "parent": 250, "children": [252, 253], "start_point": {"row": 96, "column": 6}, "end_point": {"row": 96, "column": 24}}, {"id": 252, "type": "identifier", "text": "EFI_ERROR", "parent": 251, "children": [], "start_point": {"row": 96, "column": 6}, "end_point": {"row": 96, "column": 15}}, {"id": 253, "type": "argument_list", "text": "(Status)", "parent": 251, "children": [254], "start_point": {"row": 96, "column": 16}, "end_point": {"row": 96, "column": 24}}, {"id": 254, "type": "identifier", "text": "Status", "parent": 253, "children": [], "start_point": {"row": 96, "column": 17}, "end_point": {"row": 96, "column": 23}}, {"id": 255, "type": "return_statement", "text": "return;", "parent": 249, "children": [], "start_point": {"row": 97, "column": 4}, "end_point": {"row": 97, "column": 11}}, {"id": 256, "type": "for_statement", "text": "for (;;) {\r\n EfiBootManagerBoot (&BootDeviceList);\r\n }", "parent": 201, "children": [], "start_point": {"row": 99, "column": 2}, "end_point": {"row": 101, "column": 3}}, {"id": 257, "type": "call_expression", "text": "EfiBootManagerBoot (&BootDeviceList)", "parent": 256, "children": [258, 259], "start_point": {"row": 100, "column": 4}, "end_point": {"row": 100, "column": 40}}, {"id": 258, "type": "identifier", "text": "EfiBootManagerBoot", "parent": 257, "children": [], "start_point": {"row": 100, "column": 4}, "end_point": {"row": 100, "column": 22}}, {"id": 259, "type": "argument_list", "text": "(&BootDeviceList)", "parent": 257, "children": [260], "start_point": {"row": 100, "column": 23}, "end_point": {"row": 100, "column": 40}}, {"id": 260, "type": "pointer_expression", "text": "&BootDeviceList", "parent": 259, "children": [261], "start_point": {"row": 100, "column": 24}, "end_point": {"row": 100, "column": 39}}, {"id": 261, "type": "identifier", "text": "BootDeviceList", "parent": 260, "children": [], "start_point": {"row": 100, "column": 25}, "end_point": {"row": 100, "column": 39}}]}, "node_categories": {"declarations": {"functions": [40, 44, 201, 205], "variables": [24, 30, 37, 47, 50, 53, 58, 61, 208, 210, 213, 216], "classes": [], "imports": [0, 1, 3, 4, 6, 7, 9, 10, 12, 13, 15, 16, 18, 19, 21, 22], "modules": [], "enums": []}, "statements": {"expressions": [67, 68, 72, 75, 77, 84, 86, 95, 100, 101, 106, 109, 110, 117, 118, 119, 120, 133, 138, 139, 144, 147, 148, 150, 154, 157, 158, 160, 163, 164, 165, 169, 170, 171, 175, 176, 177, 181, 182, 189, 190, 193, 194, 195, 220, 221, 224, 225, 230, 234, 235, 243, 247, 250, 251, 257, 260], "assignments": [64, 90, 97, 126, 135, 186, 240], "loops": [94, 132, 256], "conditionals": [25, 27, 31, 33, 38, 39, 41, 43, 45, 48, 49, 51, 52, 54, 57, 59, 60, 62, 63, 65, 69, 70, 73, 74, 76, 79, 85, 87, 89, 91, 98, 102, 103, 105, 107, 108, 111, 113, 116, 121, 122, 123, 125, 127, 134, 136, 140, 141, 143, 145, 146, 151, 153, 155, 159, 166, 167, 168, 172, 173, 174, 178, 179, 180, 183, 184, 185, 187, 191, 196, 197, 198, 200, 202, 204, 206, 209, 211, 212, 214, 215, 217, 219, 223, 226, 228, 231, 233, 236, 239, 241, 244, 246, 248, 249, 252, 254, 258, 261], "returns": [229, 255], "exceptions": []}, "expressions": {"calls": [], "literals": [2, 5, 8, 11, 14, 17, 20, 23, 161, 222, 237], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [{"node_id": 40, "universal_type": "function", "name": "unknown", "text_snippet": "VOID\r\nEFIAPI\r\nBoardBootManagerWaitCallback (\r\n UINT16 TimeoutRemain\r\n )\r\n{\r\n EFI_STATUS "}, {"node_id": 44, "universal_type": "function", "name": "unknown", "text_snippet": "BoardBootManagerWaitCallback (\r\n UINT16 TimeoutRemain\r\n )"}, {"node_id": 201, "universal_type": "function", "name": "unknown", "text_snippet": "VOID\r\nEFIAPI\r\nBoardBootManagerUnableToBoot (\r\n VOID\r\n )\r\n{\r\n EFI_STATUS Status;"}, {"node_id": 205, "universal_type": "function", "name": "unknown", "text_snippet": "BoardBootManagerUnableToBoot (\r\n VOID\r\n )"}], "class_declarations": [], "import_statements": [{"node_id": 0, "text": "#include <Library/DebugLib.h>\r\n"}, {"node_id": 1, "text": "#include"}, {"node_id": 3, "text": "#include <Library/UefiBootServicesTableLib.h>\r\n"}, {"node_id": 4, "text": "#include"}, {"node_id": 6, "text": "#include <Library/PlatformBootManagerLib.h>\r\n"}, {"node_id": 7, "text": "#include"}, {"node_id": 9, "text": "#include <Library/UefiLib.h>\r\n"}, {"node_id": 10, "text": "#include"}, {"node_id": 12, "text": "#include <Library/HobLib.h>\r\n"}, {"node_id": 13, "text": "#include"}, {"node_id": 15, "text": "#include <Library/PrintLib.h>\r\n"}, {"node_id": 16, "text": "#include"}, {"node_id": 18, "text": "#include <Library/PerformanceLib.h>\r\n"}, {"node_id": 19, "text": "#include"}, {"node_id": 21, "text": "#include <Library/BoardBootManagerLib.h>\r\n"}, {"node_id": 22, "text": "#include"}]}, "original_source_code": "/** @file\r\n This file include board specific boot manager callbacks\r\n\r\n Copyright (c) 2019, Intel Corporation. All rights reserved.<BR>\r\n SPDX-License-Identifier: BSD-2-Clause-Patent\r\n**/\r\n\r\n\r\n#include <Library/DebugLib.h>\r\n#include <Library/UefiBootServicesTableLib.h>\r\n#include <Library/PlatformBootManagerLib.h>\r\n#include <Library/UefiLib.h>\r\n#include <Library/HobLib.h>\r\n#include <Library/PrintLib.h>\r\n#include <Library/PerformanceLib.h>\r\n#include <Library/BoardBootManagerLib.h>\r\n\r\n\r\nBOOLEAN mHotKeypressed = FALSE;\r\nEFI_EVENT HotKeyEvent = NULL;\r\nUINTN mBootMenuOptionNumber;\r\n\r\n/**\r\n This function is called each second during the boot manager waits timeout.\r\n\r\n @param TimeoutRemain The remaining timeout.\r\n**/\r\nVOID\r\nEFIAPI\r\nBoardBootManagerWaitCallback (\r\n UINT16 TimeoutRemain\r\n )\r\n{\r\n EFI_STATUS Status;\r\n EFI_SIMPLE_TEXT_INPUT_EX_PROTOCOL *TxtInEx;\r\n EFI_KEY_DATA KeyData;\r\n BOOLEAN PausePressed;\r\n\r\n //\r\n // Pause on PAUSE key\r\n //\r\n Status = gBS->HandleProtocol (gST->ConsoleInHandle, &gEfiSimpleTextInputExProtocolGuid, (VOID **) &TxtInEx);\r\n ASSERT_EFI_ERROR (Status);\r\n\r\n PausePressed = FALSE;\r\n\r\n while (TRUE) {\r\n Status = TxtInEx->ReadKeyStrokeEx (TxtInEx, &KeyData);\r\n if (EFI_ERROR (Status)) {\r\n break;\r\n }\r\n\r\n if (KeyData.Key.ScanCode == SCAN_PAUSE) {\r\n PausePressed = TRUE;\r\n break;\r\n }\r\n }\r\n\r\n //\r\n // Loop until non-PAUSE key pressed\r\n //\r\n while (PausePressed) {\r\n Status = TxtInEx->ReadKeyStrokeEx (TxtInEx, &KeyData);\r\n if (!EFI_ERROR (Status)) {\r\n DEBUG ((\r\n DEBUG_INFO, \"[PauseCallback] %x/%x %x/%x\\n\",\r\n KeyData.Key.ScanCode, KeyData.Key.UnicodeChar,\r\n KeyData.KeyState.KeyShiftState, KeyData.KeyState.KeyToggleState\r\n ));\r\n PausePressed = (BOOLEAN) (KeyData.Key.ScanCode == SCAN_PAUSE);\r\n }\r\n }\r\n}\r\n\r\n/**\r\n The function is called when no boot option could be launched,\r\n including platform recovery options and options pointing to applications\r\n built into firmware volumes.\r\n\r\n If this function returns, BDS attempts to enter an infinite loop.\r\n**/\r\nVOID\r\nEFIAPI\r\nBoardBootManagerUnableToBoot (\r\n VOID\r\n )\r\n{\r\n EFI_STATUS Status;\r\n EFI_BOOT_MANAGER_LOAD_OPTION BootDeviceList;\r\n CHAR16 OptionName[sizeof (\"Boot####\")];\r\n\r\n if (mBootMenuOptionNumber == LoadOptionNumberUnassigned) {\r\n return;\r\n }\r\n UnicodeSPrint (OptionName, sizeof (OptionName), L\"Boot%04x\", mBootMenuOptionNumber);\r\n Status = EfiBootManagerVariableToLoadOption (OptionName, &BootDeviceList);\r\n if (EFI_ERROR (Status)) {\r\n return;\r\n }\r\n for (;;) {\r\n EfiBootManagerBoot (&BootDeviceList);\r\n }\r\n}\r\n"}
80,037
c
/* * Copyright (c) 2017-2019 THL A29 Limited, a Tencent company. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ #ifndef TENCENTCLOUD_TBAAS_V20180416_MODEL_BCOSTRANSINFO_H_ #define TENCENTCLOUD_TBAAS_V20180416_MODEL_BCOSTRANSINFO_H_ #include <string> #include <vector> #include <map> #include <tencentcloud/core/utils/rapidjson/document.h> #include <tencentcloud/core/utils/rapidjson/writer.h> #include <tencentcloud/core/utils/rapidjson/stringbuffer.h> #include <tencentcloud/core/AbstractModel.h> namespace TencentCloud { namespace Tbaas { namespace V20180416 { namespace Model { /** * Bcos交易信息对象 */ class BcosTransInfo : public AbstractModel { public: BcosTransInfo(); ~BcosTransInfo() = default; void ToJsonObject(rapidjson::Value &value, rapidjson::Document::AllocatorType& allocator) const; CoreInternalOutcome Deserialize(const rapidjson::Value &value); /** * 获取所属区块高度 * @return BlockNumber 所属区块高度 */ int64_t GetBlockNumber() const; /** * 设置所属区块高度 * @param BlockNumber 所属区块高度 */ void SetBlockNumber(const int64_t& _blockNumber); /** * 判断参数 BlockNumber 是否已赋值 * @return BlockNumber 是否已赋值 */ bool BlockNumberHasBeenSet() const; /** * 获取区块时间戳 * @return BlockTimestamp 区块时间戳 */ std::string GetBlockTimestamp() const; /** * 设置区块时间戳 * @param BlockTimestamp 区块时间戳 */ void SetBlockTimestamp(const std::string& _blockTimestamp); /** * 判断参数 BlockTimestamp 是否已赋值 * @return BlockTimestamp 是否已赋值 */ bool BlockTimestampHasBeenSet() const; /** * 获取交易哈希 * @return TransHash 交易哈希 */ std::string GetTransHash() const; /** * 设置交易哈希 * @param TransHash 交易哈希 */ void SetTransHash(const std::string& _transHash); /** * 判断参数 TransHash 是否已赋值 * @return TransHash 是否已赋值 */ bool TransHashHasBeenSet() const; /** * 获取交易发起者 * @return TransFrom 交易发起者 */ std::string GetTransFrom() const; /** * 设置交易发起者 * @param TransFrom 交易发起者 */ void SetTransFrom(const std::string& _transFrom); /** * 判断参数 TransFrom 是否已赋值 * @return TransFrom 是否已赋值 */ bool TransFromHasBeenSet() const; /** * 获取交易接收者 * @return TransTo 交易接收者 */ std::string GetTransTo() const; /** * 设置交易接收者 * @param TransTo 交易接收者 */ void SetTransTo(const std::string& _transTo); /** * 判断参数 TransTo 是否已赋值 * @return TransTo 是否已赋值 */ bool TransToHasBeenSet() const; /** * 获取落库时间 * @return CreateTime 落库时间 */ std::string GetCreateTime() const; /** * 设置落库时间 * @param CreateTime 落库时间 */ void SetCreateTime(const std::string& _createTime); /** * 判断参数 CreateTime 是否已赋值 * @return CreateTime 是否已赋值 */ bool CreateTimeHasBeenSet() const; /** * 获取修改时间 * @return ModifyTime 修改时间 */ std::string GetModifyTime() const; /** * 设置修改时间 * @param ModifyTime 修改时间 */ void SetModifyTime(const std::string& _modifyTime); /** * 判断参数 ModifyTime 是否已赋值 * @return ModifyTime 是否已赋值 */ bool ModifyTimeHasBeenSet() const; private: /** * 所属区块高度 */ int64_t m_blockNumber; bool m_blockNumberHasBeenSet; /** * 区块时间戳 */ std::string m_blockTimestamp; bool m_blockTimestampHasBeenSet; /** * 交易哈希 */ std::string m_transHash; bool m_transHashHasBeenSet; /** * 交易发起者 */ std::string m_transFrom; bool m_transFromHasBeenSet; /** * 交易接收者 */ std::string m_transTo; bool m_transToHasBeenSet; /** * 落库时间 */ std::string m_createTime; bool m_createTimeHasBeenSet; /** * 修改时间 */ std::string m_modifyTime; bool m_modifyTimeHasBeenSet; }; } } } } #endif // !TENCENTCLOUD_TBAAS_V20180416_MODEL_BCOSTRANSINFO_H_
35.52
191
(translation_unit) "/*\n * Copyright (c) 2017-2019 THL A29 Limited, a Tencent company. All Rights Reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the "License");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an "AS IS" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n#ifndef TENCENTCLOUD_TBAAS_V20180416_MODEL_BCOSTRANSINFO_H_\n#define TENCENTCLOUD_TBAAS_V20180416_MODEL_BCOSTRANSINFO_H_\n\n#include <string>\n#include <vector>\n#include <map>\n#include <tencentcloud/core/utils/rapidjson/document.h>\n#include <tencentcloud/core/utils/rapidjson/writer.h>\n#include <tencentcloud/core/utils/rapidjson/stringbuffer.h>\n#include <tencentcloud/core/AbstractModel.h>\n\n\nnamespace TencentCloud\n{\n namespace Tbaas\n {\n namespace V20180416\n {\n namespace Model\n {\n /**\n * Bcos交易信息对象\n */\n class BcosTransInfo : public AbstractModel\n {\n public:\n BcosTransInfo();\n ~BcosTransInfo() = default;\n void ToJsonObject(rapidjson::Value &value, rapidjson::Document::AllocatorType& allocator) const;\n CoreInternalOutcome Deserialize(const rapidjson::Value &value);\n\n\n /**\n * 获取所属区块高度\n * @return BlockNumber 所属区块高度\n */\n int64_t GetBlockNumber() const;\n\n /**\n * 设置所属区块高度\n * @param BlockNumber 所属区块高度\n */\n void SetBlockNumber(const int64_t& _blockNumber);\n\n /**\n * 判断参数 BlockNumber 是否已赋值\n * @return BlockNumber 是否已赋值\n */\n bool BlockNumberHasBeenSet() const;\n\n /**\n * 获取区块时间戳\n * @return BlockTimestamp 区块时间戳\n */\n std::string GetBlockTimestamp() const;\n\n /**\n * 设置区块时间戳\n * @param BlockTimestamp 区块时间戳\n */\n void SetBlockTimestamp(const std::string& _blockTimestamp);\n\n /**\n * 判断参数 BlockTimestamp 是否已赋值\n * @return BlockTimestamp 是否已赋值\n */\n bool BlockTimestampHasBeenSet() const;\n\n /**\n * 获取交易哈希\n * @return TransHash 交易哈希\n */\n std::string GetTransHash() const;\n\n /**\n * 设置交易哈希\n * @param TransHash 交易哈希\n */\n void SetTransHash(const std::string& _transHash);\n\n /**\n * 判断参数 TransHash 是否已赋值\n * @return TransHash 是否已赋值\n */\n bool TransHashHasBeenSet() const;\n\n /**\n * 获取交易发起者\n * @return TransFrom 交易发起者\n */\n std::string GetTransFrom() const;\n\n /**\n * 设置交易发起者\n * @param TransFrom 交易发起者\n */\n void SetTransFrom(const std::string& _transFrom);\n\n /**\n * 判断参数 TransFrom 是否已赋值\n * @return TransFrom 是否已赋值\n */\n bool TransFromHasBeenSet() const;\n\n /**\n * 获取交易接收者\n * @return TransTo 交易接收者\n */\n std::string GetTransTo() const;\n\n /**\n * 设置交易接收者\n * @param TransTo 交易接收者\n */\n void SetTransTo(const std::string& _transTo);\n\n /**\n * 判断参数 TransTo 是否已赋值\n * @return TransTo 是否已赋值\n */\n bool TransToHasBeenSet() const;\n\n /**\n * 获取落库时间\n * @return CreateTime 落库时间\n */\n std::string GetCreateTime() const;\n\n /**\n * 设置落库时间\n * @param CreateTime 落库时间\n */\n void SetCreateTime(const std::string& _createTime);\n\n /**\n * 判断参数 CreateTime 是否已赋值\n * @return CreateTime 是否已赋值\n */\n bool CreateTimeHasBeenSet() const;\n\n /**\n * 获取修改时间\n * @return ModifyTime 修改时间\n */\n std::string GetModifyTime() const;\n\n /**\n * 设置修改时间\n * @param ModifyTime 修改时间\n */\n void SetModifyTime(const std::string& _modifyTime);\n\n /**\n * 判断参数 ModifyTime 是否已赋值\n * @return ModifyTime 是否已赋值\n */\n bool ModifyTimeHasBeenSet() const;\n\n private:\n\n /**\n * 所属区块高度\n */\n int64_t m_blockNumber;\n bool m_blockNumberHasBeenSet;\n\n /**\n * 区块时间戳\n */\n std::string m_blockTimestamp;\n bool m_blockTimestampHasBeenSet;\n\n /**\n * 交易哈希\n */\n std::string m_transHash;\n bool m_transHashHasBeenSet;\n\n /**\n * 交易发起者\n */\n std::string m_transFrom;\n bool m_transFromHasBeenSet;\n\n /**\n * 交易接收者\n */\n std::string m_transTo;\n bool m_transToHasBeenSet;\n\n /**\n * 落库时间\n */\n std::string m_createTime;\n bool m_createTimeHasBeenSet;\n\n /**\n * 修改时间\n */\n std::string m_modifyTime;\n bool m_modifyTimeHasBeenSet;\n\n };\n }\n }\n }\n}\n\n#endif // !TENCENTCLOUD_TBAAS_V20180416_MODEL_BCOSTRANSINFO_H_\n" (comment) "/*\n * Copyright (c) 2017-2019 THL A29 Limited, a Tencent company. All Rights Reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the "License");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an "AS IS" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */" (preproc_ifdef) "#ifndef TENCENTCLOUD_TBAAS_V20180416_MODEL_BCOSTRANSINFO_H_\n#define TENCENTCLOUD_TBAAS_V20180416_MODEL_BCOSTRANSINFO_H_\n\n#include <string>\n#include <vector>\n#include <map>\n#include <tencentcloud/core/utils/rapidjson/document.h>\n#include <tencentcloud/core/utils/rapidjson/writer.h>\n#include <tencentcloud/core/utils/rapidjson/stringbuffer.h>\n#include <tencentcloud/core/AbstractModel.h>\n\n\nnamespace TencentCloud\n{\n namespace Tbaas\n {\n namespace V20180416\n {\n namespace Model\n {\n /**\n * Bcos交易信息对象\n */\n class BcosTransInfo : public AbstractModel\n {\n public:\n BcosTransInfo();\n ~BcosTransInfo() = default;\n void ToJsonObject(rapidjson::Value &value, rapidjson::Document::AllocatorType& allocator) const;\n CoreInternalOutcome Deserialize(const rapidjson::Value &value);\n\n\n /**\n * 获取所属区块高度\n * @return BlockNumber 所属区块高度\n */\n int64_t GetBlockNumber() const;\n\n /**\n * 设置所属区块高度\n * @param BlockNumber 所属区块高度\n */\n void SetBlockNumber(const int64_t& _blockNumber);\n\n /**\n * 判断参数 BlockNumber 是否已赋值\n * @return BlockNumber 是否已赋值\n */\n bool BlockNumberHasBeenSet() const;\n\n /**\n * 获取区块时间戳\n * @return BlockTimestamp 区块时间戳\n */\n std::string GetBlockTimestamp() const;\n\n /**\n * 设置区块时间戳\n * @param BlockTimestamp 区块时间戳\n */\n void SetBlockTimestamp(const std::string& _blockTimestamp);\n\n /**\n * 判断参数 BlockTimestamp 是否已赋值\n * @return BlockTimestamp 是否已赋值\n */\n bool BlockTimestampHasBeenSet() const;\n\n /**\n * 获取交易哈希\n * @return TransHash 交易哈希\n */\n std::string GetTransHash() const;\n\n /**\n * 设置交易哈希\n * @param TransHash 交易哈希\n */\n void SetTransHash(const std::string& _transHash);\n\n /**\n * 判断参数 TransHash 是否已赋值\n * @return TransHash 是否已赋值\n */\n bool TransHashHasBeenSet() const;\n\n /**\n * 获取交易发起者\n * @return TransFrom 交易发起者\n */\n std::string GetTransFrom() const;\n\n /**\n * 设置交易发起者\n * @param TransFrom 交易发起者\n */\n void SetTransFrom(const std::string& _transFrom);\n\n /**\n * 判断参数 TransFrom 是否已赋值\n * @return TransFrom 是否已赋值\n */\n bool TransFromHasBeenSet() const;\n\n /**\n * 获取交易接收者\n * @return TransTo 交易接收者\n */\n std::string GetTransTo() const;\n\n /**\n * 设置交易接收者\n * @param TransTo 交易接收者\n */\n void SetTransTo(const std::string& _transTo);\n\n /**\n * 判断参数 TransTo 是否已赋值\n * @return TransTo 是否已赋值\n */\n bool TransToHasBeenSet() const;\n\n /**\n * 获取落库时间\n * @return CreateTime 落库时间\n */\n std::string GetCreateTime() const;\n\n /**\n * 设置落库时间\n * @param CreateTime 落库时间\n */\n void SetCreateTime(const std::string& _createTime);\n\n /**\n * 判断参数 CreateTime 是否已赋值\n * @return CreateTime 是否已赋值\n */\n bool CreateTimeHasBeenSet() const;\n\n /**\n * 获取修改时间\n * @return ModifyTime 修改时间\n */\n std::string GetModifyTime() const;\n\n /**\n * 设置修改时间\n * @param ModifyTime 修改时间\n */\n void SetModifyTime(const std::string& _modifyTime);\n\n /**\n * 判断参数 ModifyTime 是否已赋值\n * @return ModifyTime 是否已赋值\n */\n bool ModifyTimeHasBeenSet() const;\n\n private:\n\n /**\n * 所属区块高度\n */\n int64_t m_blockNumber;\n bool m_blockNumberHasBeenSet;\n\n /**\n * 区块时间戳\n */\n std::string m_blockTimestamp;\n bool m_blockTimestampHasBeenSet;\n\n /**\n * 交易哈希\n */\n std::string m_transHash;\n bool m_transHashHasBeenSet;\n\n /**\n * 交易发起者\n */\n std::string m_transFrom;\n bool m_transFromHasBeenSet;\n\n /**\n * 交易接收者\n */\n std::string m_transTo;\n bool m_transToHasBeenSet;\n\n /**\n * 落库时间\n */\n std::string m_createTime;\n bool m_createTimeHasBeenSet;\n\n /**\n * 修改时间\n */\n std::string m_modifyTime;\n bool m_modifyTimeHasBeenSet;\n\n };\n }\n }\n }\n}\n\n#endif // !TENCENTCLOUD_TBAAS_V20180416_MODEL_BCOSTRANSINFO_H_\n" (#ifndef) "#ifndef" (identifier) "TENCENTCLOUD_TBAAS_V20180416_MODEL_BCOSTRANSINFO_H_" (preproc_def) "#define TENCENTCLOUD_TBAAS_V20180416_MODEL_BCOSTRANSINFO_H_\n" (#define) "#define" (identifier) "TENCENTCLOUD_TBAAS_V20180416_MODEL_BCOSTRANSINFO_H_" (preproc_include) "#include <string>\n" (#include) "#include" (system_lib_string) "<string>" (preproc_include) "#include <vector>\n" (#include) "#include" (system_lib_string) "<vector>" (preproc_include) "#include <map>\n" (#include) "#include" (system_lib_string) "<map>" (preproc_include) "#include <tencentcloud/core/utils/rapidjson/document.h>\n" (#include) "#include" (system_lib_string) "<tencentcloud/core/utils/rapidjson/document.h>" (preproc_include) "#include <tencentcloud/core/utils/rapidjson/writer.h>\n" (#include) "#include" (system_lib_string) "<tencentcloud/core/utils/rapidjson/writer.h>" (preproc_include) "#include <tencentcloud/core/utils/rapidjson/stringbuffer.h>\n" (#include) "#include" (system_lib_string) "<tencentcloud/core/utils/rapidjson/stringbuffer.h>" (preproc_include) "#include <tencentcloud/core/AbstractModel.h>\n" (#include) "#include" (system_lib_string) "<tencentcloud/core/AbstractModel.h>" (function_definition) "namespace TencentCloud\n{\n namespace Tbaas\n {\n namespace V20180416\n {\n namespace Model\n {\n /**\n * Bcos交易信息对象\n */\n class BcosTransInfo : public AbstractModel\n {\n public:\n BcosTransInfo();\n ~BcosTransInfo() = default;\n void ToJsonObject(rapidjson::Value &value, rapidjson::Document::AllocatorType& allocator) const;\n CoreInternalOutcome Deserialize(const rapidjson::Value &value);\n\n\n /**\n * 获取所属区块高度\n * @return BlockNumber 所属区块高度\n */\n int64_t GetBlockNumber() const;\n\n /**\n * 设置所属区块高度\n * @param BlockNumber 所属区块高度\n */\n void SetBlockNumber(const int64_t& _blockNumber);\n\n /**\n * 判断参数 BlockNumber 是否已赋值\n * @return BlockNumber 是否已赋值\n */\n bool BlockNumberHasBeenSet() const;\n\n /**\n * 获取区块时间戳\n * @return BlockTimestamp 区块时间戳\n */\n std::string GetBlockTimestamp() const;\n\n /**\n * 设置区块时间戳\n * @param BlockTimestamp 区块时间戳\n */\n void SetBlockTimestamp(const std::string& _blockTimestamp);\n\n /**\n * 判断参数 BlockTimestamp 是否已赋值\n * @return BlockTimestamp 是否已赋值\n */\n bool BlockTimestampHasBeenSet() const;\n\n /**\n * 获取交易哈希\n * @return TransHash 交易哈希\n */\n std::string GetTransHash() const;\n\n /**\n * 设置交易哈希\n * @param TransHash 交易哈希\n */\n void SetTransHash(const std::string& _transHash);\n\n /**\n * 判断参数 TransHash 是否已赋值\n * @return TransHash 是否已赋值\n */\n bool TransHashHasBeenSet() const;\n\n /**\n * 获取交易发起者\n * @return TransFrom 交易发起者\n */\n std::string GetTransFrom() const;\n\n /**\n * 设置交易发起者\n * @param TransFrom 交易发起者\n */\n void SetTransFrom(const std::string& _transFrom);\n\n /**\n * 判断参数 TransFrom 是否已赋值\n * @return TransFrom 是否已赋值\n */\n bool TransFromHasBeenSet() const;\n\n /**\n * 获取交易接收者\n * @return TransTo 交易接收者\n */\n std::string GetTransTo() const;\n\n /**\n * 设置交易接收者\n * @param TransTo 交易接收者\n */\n void SetTransTo(const std::string& _transTo);\n\n /**\n * 判断参数 TransTo 是否已赋值\n * @return TransTo 是否已赋值\n */\n bool TransToHasBeenSet() const;\n\n /**\n * 获取落库时间\n * @return CreateTime 落库时间\n */\n std::string GetCreateTime() const;\n\n /**\n * 设置落库时间\n * @param CreateTime 落库时间\n */\n void SetCreateTime(const std::string& _createTime);\n\n /**\n * 判断参数 CreateTime 是否已赋值\n * @return CreateTime 是否已赋值\n */\n bool CreateTimeHasBeenSet() const;\n\n /**\n * 获取修改时间\n * @return ModifyTime 修改时间\n */\n std::string GetModifyTime() const;\n\n /**\n * 设置修改时间\n * @param ModifyTime 修改时间\n */\n void SetModifyTime(const std::string& _modifyTime);\n\n /**\n * 判断参数 ModifyTime 是否已赋值\n * @return ModifyTime 是否已赋值\n */\n bool ModifyTimeHasBeenSet() const;\n\n private:\n\n /**\n * 所属区块高度\n */\n int64_t m_blockNumber;\n bool m_blockNumberHasBeenSet;\n\n /**\n * 区块时间戳\n */\n std::string m_blockTimestamp;\n bool m_blockTimestampHasBeenSet;\n\n /**\n * 交易哈希\n */\n std::string m_transHash;\n bool m_transHashHasBeenSet;\n\n /**\n * 交易发起者\n */\n std::string m_transFrom;\n bool m_transFromHasBeenSet;\n\n /**\n * 交易接收者\n */\n std::string m_transTo;\n bool m_transToHasBeenSet;\n\n /**\n * 落库时间\n */\n std::string m_createTime;\n bool m_createTimeHasBeenSet;\n\n /**\n * 修改时间\n */\n std::string m_modifyTime;\n bool m_modifyTimeHasBeenSet;\n\n };\n }\n }\n }\n}\n\n#endif // !TENCENTCLOUD_TBAAS_V20180416_MODEL_BCOSTRANSINFO_H_\n" (type_identifier) "namespace" (identifier) "TencentCloud" (compound_statement) "{\n namespace Tbaas\n {\n namespace V20180416\n {\n namespace Model\n {\n /**\n * Bcos交易信息对象\n */\n class BcosTransInfo : public AbstractModel\n {\n public:\n BcosTransInfo();\n ~BcosTransInfo() = default;\n void ToJsonObject(rapidjson::Value &value, rapidjson::Document::AllocatorType& allocator) const;\n CoreInternalOutcome Deserialize(const rapidjson::Value &value);\n\n\n /**\n * 获取所属区块高度\n * @return BlockNumber 所属区块高度\n */\n int64_t GetBlockNumber() const;\n\n /**\n * 设置所属区块高度\n * @param BlockNumber 所属区块高度\n */\n void SetBlockNumber(const int64_t& _blockNumber);\n\n /**\n * 判断参数 BlockNumber 是否已赋值\n * @return BlockNumber 是否已赋值\n */\n bool BlockNumberHasBeenSet() const;\n\n /**\n * 获取区块时间戳\n * @return BlockTimestamp 区块时间戳\n */\n std::string GetBlockTimestamp() const;\n\n /**\n * 设置区块时间戳\n * @param BlockTimestamp 区块时间戳\n */\n void SetBlockTimestamp(const std::string& _blockTimestamp);\n\n /**\n * 判断参数 BlockTimestamp 是否已赋值\n * @return BlockTimestamp 是否已赋值\n */\n bool BlockTimestampHasBeenSet() const;\n\n /**\n * 获取交易哈希\n * @return TransHash 交易哈希\n */\n std::string GetTransHash() const;\n\n /**\n * 设置交易哈希\n * @param TransHash 交易哈希\n */\n void SetTransHash(const std::string& _transHash);\n\n /**\n * 判断参数 TransHash 是否已赋值\n * @return TransHash 是否已赋值\n */\n bool TransHashHasBeenSet() const;\n\n /**\n * 获取交易发起者\n * @return TransFrom 交易发起者\n */\n std::string GetTransFrom() const;\n\n /**\n * 设置交易发起者\n * @param TransFrom 交易发起者\n */\n void SetTransFrom(const std::string& _transFrom);\n\n /**\n * 判断参数 TransFrom 是否已赋值\n * @return TransFrom 是否已赋值\n */\n bool TransFromHasBeenSet() const;\n\n /**\n * 获取交易接收者\n * @return TransTo 交易接收者\n */\n std::string GetTransTo() const;\n\n /**\n * 设置交易接收者\n * @param TransTo 交易接收者\n */\n void SetTransTo(const std::string& _transTo);\n\n /**\n * 判断参数 TransTo 是否已赋值\n * @return TransTo 是否已赋值\n */\n bool TransToHasBeenSet() const;\n\n /**\n * 获取落库时间\n * @return CreateTime 落库时间\n */\n std::string GetCreateTime() const;\n\n /**\n * 设置落库时间\n * @param CreateTime 落库时间\n */\n void SetCreateTime(const std::string& _createTime);\n\n /**\n * 判断参数 CreateTime 是否已赋值\n * @return CreateTime 是否已赋值\n */\n bool CreateTimeHasBeenSet() const;\n\n /**\n * 获取修改时间\n * @return ModifyTime 修改时间\n */\n std::string GetModifyTime() const;\n\n /**\n * 设置修改时间\n * @param ModifyTime 修改时间\n */\n void SetModifyTime(const std::string& _modifyTime);\n\n /**\n * 判断参数 ModifyTime 是否已赋值\n * @return ModifyTime 是否已赋值\n */\n bool ModifyTimeHasBeenSet() const;\n\n private:\n\n /**\n * 所属区块高度\n */\n int64_t m_blockNumber;\n bool m_blockNumberHasBeenSet;\n\n /**\n * 区块时间戳\n */\n std::string m_blockTimestamp;\n bool m_blockTimestampHasBeenSet;\n\n /**\n * 交易哈希\n */\n std::string m_transHash;\n bool m_transHashHasBeenSet;\n\n /**\n * 交易发起者\n */\n std::string m_transFrom;\n bool m_transFromHasBeenSet;\n\n /**\n * 交易接收者\n */\n std::string m_transTo;\n bool m_transToHasBeenSet;\n\n /**\n * 落库时间\n */\n std::string m_createTime;\n bool m_createTimeHasBeenSet;\n\n /**\n * 修改时间\n */\n std::string m_modifyTime;\n bool m_modifyTimeHasBeenSet;\n\n };\n }\n }\n }\n}\n\n#endif // !TENCENTCLOUD_TBAAS_V20180416_MODEL_BCOSTRANSINFO_H_\n" ({) "{" (function_definition) "namespace Tbaas\n {\n namespace V20180416\n {\n namespace Model\n {\n /**\n * Bcos交易信息对象\n */\n class BcosTransInfo : public AbstractModel\n {\n public:\n BcosTransInfo();\n ~BcosTransInfo() = default;\n void ToJsonObject(rapidjson::Value &value, rapidjson::Document::AllocatorType& allocator) const;\n CoreInternalOutcome Deserialize(const rapidjson::Value &value);\n\n\n /**\n * 获取所属区块高度\n * @return BlockNumber 所属区块高度\n */\n int64_t GetBlockNumber() const;\n\n /**\n * 设置所属区块高度\n * @param BlockNumber 所属区块高度\n */\n void SetBlockNumber(const int64_t& _blockNumber);\n\n /**\n * 判断参数 BlockNumber 是否已赋值\n * @return BlockNumber 是否已赋值\n */\n bool BlockNumberHasBeenSet() const;\n\n /**\n * 获取区块时间戳\n * @return BlockTimestamp 区块时间戳\n */\n std::string GetBlockTimestamp() const;\n\n /**\n * 设置区块时间戳\n * @param BlockTimestamp 区块时间戳\n */\n void SetBlockTimestamp(const std::string& _blockTimestamp);\n\n /**\n * 判断参数 BlockTimestamp 是否已赋值\n * @return BlockTimestamp 是否已赋值\n */\n bool BlockTimestampHasBeenSet() const;\n\n /**\n * 获取交易哈希\n * @return TransHash 交易哈希\n */\n std::string GetTransHash() const;\n\n /**\n * 设置交易哈希\n * @param TransHash 交易哈希\n */\n void SetTransHash(const std::string& _transHash);\n\n /**\n * 判断参数 TransHash 是否已赋值\n * @return TransHash 是否已赋值\n */\n bool TransHashHasBeenSet() const;\n\n /**\n * 获取交易发起者\n * @return TransFrom 交易发起者\n */\n std::string GetTransFrom() const;\n\n /**\n * 设置交易发起者\n * @param TransFrom 交易发起者\n */\n void SetTransFrom(const std::string& _transFrom);\n\n /**\n * 判断参数 TransFrom 是否已赋值\n * @return TransFrom 是否已赋值\n */\n bool TransFromHasBeenSet() const;\n\n /**\n * 获取交易接收者\n * @return TransTo 交易接收者\n */\n std::string GetTransTo() const;\n\n /**\n * 设置交易接收者\n * @param TransTo 交易接收者\n */\n void SetTransTo(const std::string& _transTo);\n\n /**\n * 判断参数 TransTo 是否已赋值\n * @return TransTo 是否已赋值\n */\n bool TransToHasBeenSet() const;\n\n /**\n * 获取落库时间\n * @return CreateTime 落库时间\n */\n std::string GetCreateTime() const;\n\n /**\n * 设置落库时间\n * @param CreateTime 落库时间\n */\n void SetCreateTime(const std::string& _createTime);\n\n /**\n * 判断参数 CreateTime 是否已赋值\n * @return CreateTime 是否已赋值\n */\n bool CreateTimeHasBeenSet() const;\n\n /**\n * 获取修改时间\n * @return ModifyTime 修改时间\n */\n std::string GetModifyTime() const;\n\n /**\n * 设置修改时间\n * @param ModifyTime 修改时间\n */\n void SetModifyTime(const std::string& _modifyTime);\n\n /**\n * 判断参数 ModifyTime 是否已赋值\n * @return ModifyTime 是否已赋值\n */\n bool ModifyTimeHasBeenSet() const;\n\n private:\n\n /**\n * 所属区块高度\n */\n int64_t m_blockNumber;\n bool m_blockNumberHasBeenSet;\n\n /**\n * 区块时间戳\n */\n std::string m_blockTimestamp;\n bool m_blockTimestampHasBeenSet;\n\n /**\n * 交易哈希\n */\n std::string m_transHash;\n bool m_transHashHasBeenSet;\n\n /**\n * 交易发起者\n */\n std::string m_transFrom;\n bool m_transFromHasBeenSet;\n\n /**\n * 交易接收者\n */\n std::string m_transTo;\n bool m_transToHasBeenSet;\n\n /**\n * 落库时间\n */\n std::string m_createTime;\n bool m_createTimeHasBeenSet;\n\n /**\n * 修改时间\n */\n std::string m_modifyTime;\n bool m_modifyTimeHasBeenSet;\n\n };\n }\n }\n }\n}\n\n#endif // !TENCENTCLOUD_TBAAS_V20180416_MODEL_BCOSTRANSINFO_H_\n" (type_identifier) "namespace" (identifier) "Tbaas" (compound_statement) "{\n namespace V20180416\n {\n namespace Model\n {\n /**\n * Bcos交易信息对象\n */\n class BcosTransInfo : public AbstractModel\n {\n public:\n BcosTransInfo();\n ~BcosTransInfo() = default;\n void ToJsonObject(rapidjson::Value &value, rapidjson::Document::AllocatorType& allocator) const;\n CoreInternalOutcome Deserialize(const rapidjson::Value &value);\n\n\n /**\n * 获取所属区块高度\n * @return BlockNumber 所属区块高度\n */\n int64_t GetBlockNumber() const;\n\n /**\n * 设置所属区块高度\n * @param BlockNumber 所属区块高度\n */\n void SetBlockNumber(const int64_t& _blockNumber);\n\n /**\n * 判断参数 BlockNumber 是否已赋值\n * @return BlockNumber 是否已赋值\n */\n bool BlockNumberHasBeenSet() const;\n\n /**\n * 获取区块时间戳\n * @return BlockTimestamp 区块时间戳\n */\n std::string GetBlockTimestamp() const;\n\n /**\n * 设置区块时间戳\n * @param BlockTimestamp 区块时间戳\n */\n void SetBlockTimestamp(const std::string& _blockTimestamp);\n\n /**\n * 判断参数 BlockTimestamp 是否已赋值\n * @return BlockTimestamp 是否已赋值\n */\n bool BlockTimestampHasBeenSet() const;\n\n /**\n * 获取交易哈希\n * @return TransHash 交易哈希\n */\n std::string GetTransHash() const;\n\n /**\n * 设置交易哈希\n * @param TransHash 交易哈希\n */\n void SetTransHash(const std::string& _transHash);\n\n /**\n * 判断参数 TransHash 是否已赋值\n * @return TransHash 是否已赋值\n */\n bool TransHashHasBeenSet() const;\n\n /**\n * 获取交易发起者\n * @return TransFrom 交易发起者\n */\n std::string GetTransFrom() const;\n\n /**\n * 设置交易发起者\n * @param TransFrom 交易发起者\n */\n void SetTransFrom(const std::string& _transFrom);\n\n /**\n * 判断参数 TransFrom 是否已赋值\n * @return TransFrom 是否已赋值\n */\n bool TransFromHasBeenSet() const;\n\n /**\n * 获取交易接收者\n * @return TransTo 交易接收者\n */\n std::string GetTransTo() const;\n\n /**\n * 设置交易接收者\n * @param TransTo 交易接收者\n */\n void SetTransTo(const std::string& _transTo);\n\n /**\n * 判断参数 TransTo 是否已赋值\n * @return TransTo 是否已赋值\n */\n bool TransToHasBeenSet() const;\n\n /**\n * 获取落库时间\n * @return CreateTime 落库时间\n */\n std::string GetCreateTime() const;\n\n /**\n * 设置落库时间\n * @param CreateTime 落库时间\n */\n void SetCreateTime(const std::string& _createTime);\n\n /**\n * 判断参数 CreateTime 是否已赋值\n * @return CreateTime 是否已赋值\n */\n bool CreateTimeHasBeenSet() const;\n\n /**\n * 获取修改时间\n * @return ModifyTime 修改时间\n */\n std::string GetModifyTime() const;\n\n /**\n * 设置修改时间\n * @param ModifyTime 修改时间\n */\n void SetModifyTime(const std::string& _modifyTime);\n\n /**\n * 判断参数 ModifyTime 是否已赋值\n * @return ModifyTime 是否已赋值\n */\n bool ModifyTimeHasBeenSet() const;\n\n private:\n\n /**\n * 所属区块高度\n */\n int64_t m_blockNumber;\n bool m_blockNumberHasBeenSet;\n\n /**\n * 区块时间戳\n */\n std::string m_blockTimestamp;\n bool m_blockTimestampHasBeenSet;\n\n /**\n * 交易哈希\n */\n std::string m_transHash;\n bool m_transHashHasBeenSet;\n\n /**\n * 交易发起者\n */\n std::string m_transFrom;\n bool m_transFromHasBeenSet;\n\n /**\n * 交易接收者\n */\n std::string m_transTo;\n bool m_transToHasBeenSet;\n\n /**\n * 落库时间\n */\n std::string m_createTime;\n bool m_createTimeHasBeenSet;\n\n /**\n * 修改时间\n */\n std::string m_modifyTime;\n bool m_modifyTimeHasBeenSet;\n\n };\n }\n }\n }\n}\n\n#endif // !TENCENTCLOUD_TBAAS_V20180416_MODEL_BCOSTRANSINFO_H_\n" ({) "{" (function_definition) "namespace V20180416\n {\n namespace Model\n {\n /**\n * Bcos交易信息对象\n */\n class BcosTransInfo : public AbstractModel\n {\n public:\n BcosTransInfo();\n ~BcosTransInfo() = default;\n void ToJsonObject(rapidjson::Value &value, rapidjson::Document::AllocatorType& allocator) const;\n CoreInternalOutcome Deserialize(const rapidjson::Value &value);\n\n\n /**\n * 获取所属区块高度\n * @return BlockNumber 所属区块高度\n */\n int64_t GetBlockNumber() const;\n\n /**\n * 设置所属区块高度\n * @param BlockNumber 所属区块高度\n */\n void SetBlockNumber(const int64_t& _blockNumber);\n\n /**\n * 判断参数 BlockNumber 是否已赋值\n * @return BlockNumber 是否已赋值\n */\n bool BlockNumberHasBeenSet() const;\n\n /**\n * 获取区块时间戳\n * @return BlockTimestamp 区块时间戳\n */\n std::string GetBlockTimestamp() const;\n\n /**\n * 设置区块时间戳\n * @param BlockTimestamp 区块时间戳\n */\n void SetBlockTimestamp(const std::string& _blockTimestamp);\n\n /**\n * 判断参数 BlockTimestamp 是否已赋值\n * @return BlockTimestamp 是否已赋值\n */\n bool BlockTimestampHasBeenSet() const;\n\n /**\n * 获取交易哈希\n * @return TransHash 交易哈希\n */\n std::string GetTransHash() const;\n\n /**\n * 设置交易哈希\n * @param TransHash 交易哈希\n */\n void SetTransHash(const std::string& _transHash);\n\n /**\n * 判断参数 TransHash 是否已赋值\n * @return TransHash 是否已赋值\n */\n bool TransHashHasBeenSet() const;\n\n /**\n * 获取交易发起者\n * @return TransFrom 交易发起者\n */\n std::string GetTransFrom() const;\n\n /**\n * 设置交易发起者\n * @param TransFrom 交易发起者\n */\n void SetTransFrom(const std::string& _transFrom);\n\n /**\n * 判断参数 TransFrom 是否已赋值\n * @return TransFrom 是否已赋值\n */\n bool TransFromHasBeenSet() const;\n\n /**\n * 获取交易接收者\n * @return TransTo 交易接收者\n */\n std::string GetTransTo() const;\n\n /**\n * 设置交易接收者\n * @param TransTo 交易接收者\n */\n void SetTransTo(const std::string& _transTo);\n\n /**\n * 判断参数 TransTo 是否已赋值\n * @return TransTo 是否已赋值\n */\n bool TransToHasBeenSet() const;\n\n /**\n * 获取落库时间\n * @return CreateTime 落库时间\n */\n std::string GetCreateTime() const;\n\n /**\n * 设置落库时间\n * @param CreateTime 落库时间\n */\n void SetCreateTime(const std::string& _createTime);\n\n /**\n * 判断参数 CreateTime 是否已赋值\n * @return CreateTime 是否已赋值\n */\n bool CreateTimeHasBeenSet() const;\n\n /**\n * 获取修改时间\n * @return ModifyTime 修改时间\n */\n std::string GetModifyTime() const;\n\n /**\n * 设置修改时间\n * @param ModifyTime 修改时间\n */\n void SetModifyTime(const std::string& _modifyTime);\n\n /**\n * 判断参数 ModifyTime 是否已赋值\n * @return ModifyTime 是否已赋值\n */\n bool ModifyTimeHasBeenSet() const;\n\n private:\n\n /**\n * 所属区块高度\n */\n int64_t m_blockNumber;\n bool m_blockNumberHasBeenSet;\n\n /**\n * 区块时间戳\n */\n std::string m_blockTimestamp;\n bool m_blockTimestampHasBeenSet;\n\n /**\n * 交易哈希\n */\n std::string m_transHash;\n bool m_transHashHasBeenSet;\n\n /**\n * 交易发起者\n */\n std::string m_transFrom;\n bool m_transFromHasBeenSet;\n\n /**\n * 交易接收者\n */\n std::string m_transTo;\n bool m_transToHasBeenSet;\n\n /**\n * 落库时间\n */\n std::string m_createTime;\n bool m_createTimeHasBeenSet;\n\n /**\n * 修改时间\n */\n std::string m_modifyTime;\n bool m_modifyTimeHasBeenSet;\n\n };\n }\n }\n }\n}\n\n#endif // !TENCENTCLOUD_TBAAS_V20180416_MODEL_BCOSTRANSINFO_H_\n" (type_identifier) "namespace" (identifier) "V20180416" (compound_statement) "{\n namespace Model\n {\n /**\n * Bcos交易信息对象\n */\n class BcosTransInfo : public AbstractModel\n {\n public:\n BcosTransInfo();\n ~BcosTransInfo() = default;\n void ToJsonObject(rapidjson::Value &value, rapidjson::Document::AllocatorType& allocator) const;\n CoreInternalOutcome Deserialize(const rapidjson::Value &value);\n\n\n /**\n * 获取所属区块高度\n * @return BlockNumber 所属区块高度\n */\n int64_t GetBlockNumber() const;\n\n /**\n * 设置所属区块高度\n * @param BlockNumber 所属区块高度\n */\n void SetBlockNumber(const int64_t& _blockNumber);\n\n /**\n * 判断参数 BlockNumber 是否已赋值\n * @return BlockNumber 是否已赋值\n */\n bool BlockNumberHasBeenSet() const;\n\n /**\n * 获取区块时间戳\n * @return BlockTimestamp 区块时间戳\n */\n std::string GetBlockTimestamp() const;\n\n /**\n * 设置区块时间戳\n * @param BlockTimestamp 区块时间戳\n */\n void SetBlockTimestamp(const std::string& _blockTimestamp);\n\n /**\n * 判断参数 BlockTimestamp 是否已赋值\n * @return BlockTimestamp 是否已赋值\n */\n bool BlockTimestampHasBeenSet() const;\n\n /**\n * 获取交易哈希\n * @return TransHash 交易哈希\n */\n std::string GetTransHash() const;\n\n /**\n * 设置交易哈希\n * @param TransHash 交易哈希\n */\n void SetTransHash(const std::string& _transHash);\n\n /**\n * 判断参数 TransHash 是否已赋值\n * @return TransHash 是否已赋值\n */\n bool TransHashHasBeenSet() const;\n\n /**\n * 获取交易发起者\n * @return TransFrom 交易发起者\n */\n std::string GetTransFrom() const;\n\n /**\n * 设置交易发起者\n * @param TransFrom 交易发起者\n */\n void SetTransFrom(const std::string& _transFrom);\n\n /**\n * 判断参数 TransFrom 是否已赋值\n * @return TransFrom 是否已赋值\n */\n bool TransFromHasBeenSet() const;\n\n /**\n * 获取交易接收者\n * @return TransTo 交易接收者\n */\n std::string GetTransTo() const;\n\n /**\n * 设置交易接收者\n * @param TransTo 交易接收者\n */\n void SetTransTo(const std::string& _transTo);\n\n /**\n * 判断参数 TransTo 是否已赋值\n * @return TransTo 是否已赋值\n */\n bool TransToHasBeenSet() const;\n\n /**\n * 获取落库时间\n * @return CreateTime 落库时间\n */\n std::string GetCreateTime() const;\n\n /**\n * 设置落库时间\n * @param CreateTime 落库时间\n */\n void SetCreateTime(const std::string& _createTime);\n\n /**\n * 判断参数 CreateTime 是否已赋值\n * @return CreateTime 是否已赋值\n */\n bool CreateTimeHasBeenSet() const;\n\n /**\n * 获取修改时间\n * @return ModifyTime 修改时间\n */\n std::string GetModifyTime() const;\n\n /**\n * 设置修改时间\n * @param ModifyTime 修改时间\n */\n void SetModifyTime(const std::string& _modifyTime);\n\n /**\n * 判断参数 ModifyTime 是否已赋值\n * @return ModifyTime 是否已赋值\n */\n bool ModifyTimeHasBeenSet() const;\n\n private:\n\n /**\n * 所属区块高度\n */\n int64_t m_blockNumber;\n bool m_blockNumberHasBeenSet;\n\n /**\n * 区块时间戳\n */\n std::string m_blockTimestamp;\n bool m_blockTimestampHasBeenSet;\n\n /**\n * 交易哈希\n */\n std::string m_transHash;\n bool m_transHashHasBeenSet;\n\n /**\n * 交易发起者\n */\n std::string m_transFrom;\n bool m_transFromHasBeenSet;\n\n /**\n * 交易接收者\n */\n std::string m_transTo;\n bool m_transToHasBeenSet;\n\n /**\n * 落库时间\n */\n std::string m_createTime;\n bool m_createTimeHasBeenSet;\n\n /**\n * 修改时间\n */\n std::string m_modifyTime;\n bool m_modifyTimeHasBeenSet;\n\n };\n }\n }\n }\n}\n\n#endif // !TENCENTCLOUD_TBAAS_V20180416_MODEL_BCOSTRANSINFO_H_\n" ({) "{" (function_definition) "namespace Model\n {\n /**\n * Bcos交易信息对象\n */\n class BcosTransInfo : public AbstractModel\n {\n public:\n BcosTransInfo();\n ~BcosTransInfo() = default;\n void ToJsonObject(rapidjson::Value &value, rapidjson::Document::AllocatorType& allocator) const;\n CoreInternalOutcome Deserialize(const rapidjson::Value &value);\n\n\n /**\n * 获取所属区块高度\n * @return BlockNumber 所属区块高度\n */\n int64_t GetBlockNumber() const;\n\n /**\n * 设置所属区块高度\n * @param BlockNumber 所属区块高度\n */\n void SetBlockNumber(const int64_t& _blockNumber);\n\n /**\n * 判断参数 BlockNumber 是否已赋值\n * @return BlockNumber 是否已赋值\n */\n bool BlockNumberHasBeenSet() const;\n\n /**\n * 获取区块时间戳\n * @return BlockTimestamp 区块时间戳\n */\n std::string GetBlockTimestamp() const;\n\n /**\n * 设置区块时间戳\n * @param BlockTimestamp 区块时间戳\n */\n void SetBlockTimestamp(const std::string& _blockTimestamp);\n\n /**\n * 判断参数 BlockTimestamp 是否已赋值\n * @return BlockTimestamp 是否已赋值\n */\n bool BlockTimestampHasBeenSet() const;\n\n /**\n * 获取交易哈希\n * @return TransHash 交易哈希\n */\n std::string GetTransHash() const;\n\n /**\n * 设置交易哈希\n * @param TransHash 交易哈希\n */\n void SetTransHash(const std::string& _transHash);\n\n /**\n * 判断参数 TransHash 是否已赋值\n * @return TransHash 是否已赋值\n */\n bool TransHashHasBeenSet() const;\n\n /**\n * 获取交易发起者\n * @return TransFrom 交易发起者\n */\n std::string GetTransFrom() const;\n\n /**\n * 设置交易发起者\n * @param TransFrom 交易发起者\n */\n void SetTransFrom(const std::string& _transFrom);\n\n /**\n * 判断参数 TransFrom 是否已赋值\n * @return TransFrom 是否已赋值\n */\n bool TransFromHasBeenSet() const;\n\n /**\n * 获取交易接收者\n * @return TransTo 交易接收者\n */\n std::string GetTransTo() const;\n\n /**\n * 设置交易接收者\n * @param TransTo 交易接收者\n */\n void SetTransTo(const std::string& _transTo);\n\n /**\n * 判断参数 TransTo 是否已赋值\n * @return TransTo 是否已赋值\n */\n bool TransToHasBeenSet() const;\n\n /**\n * 获取落库时间\n * @return CreateTime 落库时间\n */\n std::string GetCreateTime() const;\n\n /**\n * 设置落库时间\n * @param CreateTime 落库时间\n */\n void SetCreateTime(const std::string& _createTime);\n\n /**\n * 判断参数 CreateTime 是否已赋值\n * @return CreateTime 是否已赋值\n */\n bool CreateTimeHasBeenSet() const;\n\n /**\n * 获取修改时间\n * @return ModifyTime 修改时间\n */\n std::string GetModifyTime() const;\n\n /**\n * 设置修改时间\n * @param ModifyTime 修改时间\n */\n void SetModifyTime(const std::string& _modifyTime);\n\n /**\n * 判断参数 ModifyTime 是否已赋值\n * @return ModifyTime 是否已赋值\n */\n bool ModifyTimeHasBeenSet() const;\n\n private:\n\n /**\n * 所属区块高度\n */\n int64_t m_blockNumber;\n bool m_blockNumberHasBeenSet;\n\n /**\n * 区块时间戳\n */\n std::string m_blockTimestamp;\n bool m_blockTimestampHasBeenSet;\n\n /**\n * 交易哈希\n */\n std::string m_transHash;\n bool m_transHashHasBeenSet;\n\n /**\n * 交易发起者\n */\n std::string m_transFrom;\n bool m_transFromHasBeenSet;\n\n /**\n * 交易接收者\n */\n std::string m_transTo;\n bool m_transToHasBeenSet;\n\n /**\n * 落库时间\n */\n std::string m_createTime;\n bool m_createTimeHasBeenSet;\n\n /**\n * 修改时间\n */\n std::string m_modifyTime;\n bool m_modifyTimeHasBeenSet;\n\n };\n }\n }\n }\n}\n\n#endif // !TENCENTCLOUD_TBAAS_V20180416_MODEL_BCOSTRANSINFO_H_\n" (type_identifier) "namespace" (identifier) "Model" (compound_statement) "{\n /**\n * Bcos交易信息对象\n */\n class BcosTransInfo : public AbstractModel\n {\n public:\n BcosTransInfo();\n ~BcosTransInfo() = default;\n void ToJsonObject(rapidjson::Value &value, rapidjson::Document::AllocatorType& allocator) const;\n CoreInternalOutcome Deserialize(const rapidjson::Value &value);\n\n\n /**\n * 获取所属区块高度\n * @return BlockNumber 所属区块高度\n */\n int64_t GetBlockNumber() const;\n\n /**\n * 设置所属区块高度\n * @param BlockNumber 所属区块高度\n */\n void SetBlockNumber(const int64_t& _blockNumber);\n\n /**\n * 判断参数 BlockNumber 是否已赋值\n * @return BlockNumber 是否已赋值\n */\n bool BlockNumberHasBeenSet() const;\n\n /**\n * 获取区块时间戳\n * @return BlockTimestamp 区块时间戳\n */\n std::string GetBlockTimestamp() const;\n\n /**\n * 设置区块时间戳\n * @param BlockTimestamp 区块时间戳\n */\n void SetBlockTimestamp(const std::string& _blockTimestamp);\n\n /**\n * 判断参数 BlockTimestamp 是否已赋值\n * @return BlockTimestamp 是否已赋值\n */\n bool BlockTimestampHasBeenSet() const;\n\n /**\n * 获取交易哈希\n * @return TransHash 交易哈希\n */\n std::string GetTransHash() const;\n\n /**\n * 设置交易哈希\n * @param TransHash 交易哈希\n */\n void SetTransHash(const std::string& _transHash);\n\n /**\n * 判断参数 TransHash 是否已赋值\n * @return TransHash 是否已赋值\n */\n bool TransHashHasBeenSet() const;\n\n /**\n * 获取交易发起者\n * @return TransFrom 交易发起者\n */\n std::string GetTransFrom() const;\n\n /**\n * 设置交易发起者\n * @param TransFrom 交易发起者\n */\n void SetTransFrom(const std::string& _transFrom);\n\n /**\n * 判断参数 TransFrom 是否已赋值\n * @return TransFrom 是否已赋值\n */\n bool TransFromHasBeenSet() const;\n\n /**\n * 获取交易接收者\n * @return TransTo 交易接收者\n */\n std::string GetTransTo() const;\n\n /**\n * 设置交易接收者\n * @param TransTo 交易接收者\n */\n void SetTransTo(const std::string& _transTo);\n\n /**\n * 判断参数 TransTo 是否已赋值\n * @return TransTo 是否已赋值\n */\n bool TransToHasBeenSet() const;\n\n /**\n * 获取落库时间\n * @return CreateTime 落库时间\n */\n std::string GetCreateTime() const;\n\n /**\n * 设置落库时间\n * @param CreateTime 落库时间\n */\n void SetCreateTime(const std::string& _createTime);\n\n /**\n * 判断参数 CreateTime 是否已赋值\n * @return CreateTime 是否已赋值\n */\n bool CreateTimeHasBeenSet() const;\n\n /**\n * 获取修改时间\n * @return ModifyTime 修改时间\n */\n std::string GetModifyTime() const;\n\n /**\n * 设置修改时间\n * @param ModifyTime 修改时间\n */\n void SetModifyTime(const std::string& _modifyTime);\n\n /**\n * 判断参数 ModifyTime 是否已赋值\n * @return ModifyTime 是否已赋值\n */\n bool ModifyTimeHasBeenSet() const;\n\n private:\n\n /**\n * 所属区块高度\n */\n int64_t m_blockNumber;\n bool m_blockNumberHasBeenSet;\n\n /**\n * 区块时间戳\n */\n std::string m_blockTimestamp;\n bool m_blockTimestampHasBeenSet;\n\n /**\n * 交易哈希\n */\n std::string m_transHash;\n bool m_transHashHasBeenSet;\n\n /**\n * 交易发起者\n */\n std::string m_transFrom;\n bool m_transFromHasBeenSet;\n\n /**\n * 交易接收者\n */\n std::string m_transTo;\n bool m_transToHasBeenSet;\n\n /**\n * 落库时间\n */\n std::string m_createTime;\n bool m_createTimeHasBeenSet;\n\n /**\n * 修改时间\n */\n std::string m_modifyTime;\n bool m_modifyTimeHasBeenSet;\n\n };\n }\n }\n }\n}\n\n#endif // !TENCENTCLOUD_TBAAS_V20180416_MODEL_BCOSTRANSINFO_H_\n" ({) "{" (comment) "/**\n * Bcos交易信息对象\n */\n " (function_definition) "ansInfo : public AbstractModel\n {\n public:\n BcosTransInfo();\n ~BcosTransInfo() = default;\n void ToJsonObject(rapidjson::Value &value, rapidjson::Document::AllocatorType& allocator) const;\n CoreInternalOutcome Deserialize(const rapidjson::Value &value);\n\n\n /**\n * 获取所属区块高度\n * @return BlockNumber 所属区块高度\n */\n int64_t GetBlockNumber() const;\n\n /**\n * 设置所属区块高度\n * @param BlockNumber 所属区块高度\n */\n void SetBlockNumber(const int64_t& _blockNumber);\n\n /**\n * 判断参数 BlockNumber 是否已赋值\n * @return BlockNumber 是否已赋值\n */\n bool BlockNumberHasBeenSet() const;\n\n /**\n * 获取区块时间戳\n * @return BlockTimestamp 区块时间戳\n */\n std::string GetBlockTimestamp() const;\n\n /**\n * 设置区块时间戳\n * @param BlockTimestamp 区块时间戳\n */\n void SetBlockTimestamp(const std::string& _blockTimestamp);\n\n /**\n * 判断参数 BlockTimestamp 是否已赋值\n * @return BlockTimestamp 是否已赋值\n */\n bool BlockTimestampHasBeenSet() const;\n\n /**\n * 获取交易哈希\n * @return TransHash 交易哈希\n */\n std::string GetTransHash() const;\n\n /**\n * 设置交易哈希\n * @param TransHash 交易哈希\n */\n void SetTransHash(const std::string& _transHash);\n\n /**\n * 判断参数 TransHash 是否已赋值\n * @return TransHash 是否已赋值\n */\n bool TransHashHasBeenSet() const;\n\n /**\n * 获取交易发起者\n * @return TransFrom 交易发起者\n */\n std::string GetTransFrom() const;\n\n /**\n * 设置交易发起者\n * @param TransFrom 交易发起者\n */\n void SetTransFrom(const std::string& _transFrom);\n\n /**\n * 判断参数 TransFrom 是否已赋值\n * @return TransFrom 是否已赋值\n */\n bool TransFromHasBeenSet() const;\n\n /**\n * 获取交易接收者\n * @return TransTo 交易接收者\n */\n std::string GetTransTo() const;\n\n /**\n * 设置交易接收者\n * @param TransTo 交易接收者\n */\n void SetTransTo(const std::string& _transTo);\n\n /**\n * 判断参数 TransTo 是否已赋值\n * @return TransTo 是否已赋值\n */\n bool TransToHasBeenSet() const;\n\n /**\n * 获取落库时间\n * @return CreateTime 落库时间\n */\n std::string GetCreateTime() const;\n\n /**\n * 设置落库时间\n * @param CreateTime 落库时间\n */\n void SetCreateTime(const std::string& _createTime);\n\n /**\n * 判断参数 CreateTime 是否已赋值\n * @return CreateTime 是否已赋值\n */\n bool CreateTimeHasBeenSet() const;\n\n /**\n * 获取修改时间\n * @return ModifyTime 修改时间\n */\n std::string GetModifyTime() const;\n\n /**\n * 设置修改时间\n * @param ModifyTime 修改时间\n */\n void SetModifyTime(const std::string& _modifyTime);\n\n /**\n * 判断参数 ModifyTime 是否已赋值\n * @return ModifyTime 是否已赋值\n */\n bool ModifyTimeHasBeenSet() const;\n\n private:\n\n /**\n * 所属区块高度\n */\n int64_t m_blockNumber;\n bool m_blockNumberHasBeenSet;\n\n /**\n * 区块时间戳\n */\n std::string m_blockTimestamp;\n bool m_blockTimestampHasBeenSet;\n\n /**\n * 交易哈希\n */\n std::string m_transHash;\n bool m_transHashHasBeenSet;\n\n /**\n * 交易发起者\n */\n std::string m_transFrom;\n bool m_transFromHasBeenSet;\n\n /**\n * 交易接收者\n */\n std::string m_transTo;\n bool m_transToHasBeenSet;\n\n /**\n * 落库时间\n */\n std::string m_createTime;\n bool m_createTimeHasBeenSet;\n\n /**\n * 修改时间\n */\n std::string m_modifyTime;\n bool m_modifyTimeHasBeenSet;\n\n };\n }\n }\n }\n}\n\n#endif // !TENCENTCLOUD_TBAAS_V20180416_MODEL_BCOSTRANSINFO_H_\n" (type_identifier) "ansIn" (identifier) "o : public Ab" (ERROR) "tractModel\n " (:) "t" (identifier) "actMod" (identifier) "l\n " (compound_statement) " public:\n BcosTransInfo();\n ~BcosTransInfo() = default;\n void ToJsonObject(rapidjson::Value &value, rapidjson::Document::AllocatorType& allocator) const;\n CoreInternalOutcome Deserialize(const rapidjson::Value &value);\n\n\n /**\n * 获取所属区块高度\n * @return BlockNumber 所属区块高度\n */\n int64_t GetBlockNumber() const;\n\n /**\n * 设置所属区块高度\n * @param BlockNumber 所属区块高度\n */\n void SetBlockNumber(const int64_t& _blockNumber);\n\n /**\n * 判断参数 BlockNumber 是否已赋值\n * @return BlockNumber 是否已赋值\n */\n bool BlockNumberHasBeenSet() const;\n\n /**\n * 获取区块时间戳\n * @return BlockTimestamp 区块时间戳\n */\n std::string GetBlockTimestamp() const;\n\n /**\n * 设置区块时间戳\n * @param BlockTimestamp 区块时间戳\n */\n void SetBlockTimestamp(const std::string& _blockTimestamp);\n\n /**\n * 判断参数 BlockTimestamp 是否已赋值\n * @return BlockTimestamp 是否已赋值\n */\n bool BlockTimestampHasBeenSet() const;\n\n /**\n * 获取交易哈希\n * @return TransHash 交易哈希\n */\n std::string GetTransHash() const;\n\n /**\n * 设置交易哈希\n * @param TransHash 交易哈希\n */\n void SetTransHash(const std::string& _transHash);\n\n /**\n * 判断参数 TransHash 是否已赋值\n * @return TransHash 是否已赋值\n */\n bool TransHashHasBeenSet() const;\n\n /**\n * 获取交易发起者\n * @return TransFrom 交易发起者\n */\n std::string GetTransFrom() const;\n\n /**\n * 设置交易发起者\n * @param TransFrom 交易发起者\n */\n void SetTransFrom(const std::string& _transFrom);\n\n /**\n * 判断参数 TransFrom 是否已赋值\n * @return TransFrom 是否已赋值\n */\n bool TransFromHasBeenSet() const;\n\n /**\n * 获取交易接收者\n * @return TransTo 交易接收者\n */\n std::string GetTransTo() const;\n\n /**\n * 设置交易接收者\n * @param TransTo 交易接收者\n */\n void SetTransTo(const std::string& _transTo);\n\n /**\n * 判断参数 TransTo 是否已赋值\n * @return TransTo 是否已赋值\n */\n bool TransToHasBeenSet() const;\n\n /**\n * 获取落库时间\n * @return CreateTime 落库时间\n */\n std::string GetCreateTime() const;\n\n /**\n * 设置落库时间\n * @param CreateTime 落库时间\n */\n void SetCreateTime(const std::string& _createTime);\n\n /**\n * 判断参数 CreateTime 是否已赋值\n * @return CreateTime 是否已赋值\n */\n bool CreateTimeHasBeenSet() const;\n\n /**\n * 获取修改时间\n * @return ModifyTime 修改时间\n */\n std::string GetModifyTime() const;\n\n /**\n * 设置修改时间\n * @param ModifyTime 修改时间\n */\n void SetModifyTime(const std::string& _modifyTime);\n\n /**\n * 判断参数 ModifyTime 是否已赋值\n * @return ModifyTime 是否已赋值\n */\n bool ModifyTimeHasBeenSet() const;\n\n private:\n\n /**\n * 所属区块高度\n */\n int64_t m_blockNumber;\n bool m_blockNumberHasBeenSet;\n\n /**\n * 区块时间戳\n */\n std::string m_blockTimestamp;\n bool m_blockTimestampHasBeenSet;\n\n /**\n * 交易哈希\n */\n std::string m_transHash;\n bool m_transHashHasBeenSet;\n\n /**\n * 交易发起者\n */\n std::string m_transFrom;\n bool m_transFromHasBeenSet;\n\n /**\n * 交易接收者\n */\n std::string m_transTo;\n bool m_transToHasBeenSet;\n\n /**\n * 落库时间\n */\n std::string m_createTime;\n bool m_createTimeHasBeenSet;\n\n /**\n * 修改时间\n */\n std::string m_modifyTime;\n bool m_modifyTimeHasBeenSet;\n\n };\n }\n }\n }\n}\n\n#endif // !TENCENTCLOUD_TBAAS_V20180416_MODEL_BCOSTRANSINFO_H_\n" ({) " " (labeled_statement) " BcosTransInfo();\n " (statement_identifier) " " (:) " " (expression_statement) "o();\n " (call_expression) "o();\n " (identifier) "o();\n " (argument_list) " " (() " " ()) " " (;) " " (expression_statement) "fo() = default;\n " (unary_expression) "fo() = default;\n " (~) "f" (assignment_expression) "o() = default;\n " (call_expression) "o() = default;\n" (identifier) "o() = default" (argument_list) ";\n" (() ";" ()) "\n" (=) " " (identifier) " " (;) " " (ERROR) "bject(rapidjson::Value &value, rapidjson::Document::AllocatorType& allocator) const;\n " (primitive_type) "bjec" (function_declarator) "(rapidjson::Value &value, rapidjson::Document::AllocatorType& allocator) const;\n " (identifier) "(rapidjson::" (parameter_list) "Value &value, rapidjson::Document::AllocatorType& allocator) const;\n " (() "V" (parameter_declaration) "alue &value, rapidjson:" (type_identifier) "alue &val" (ERROR) "ue, rapid" (:) "u" (:) "e" (identifier) ", rap" (&) "d" (identifier) "json:" (,) ":" (parameter_declaration) "ocument::AllocatorType& allocator) const;\n " (type_identifier) "ocument::" (ERROR) "AllocatorType& allocator) " (:) "A" (:) "l" (identifier) "locatorT" (:) "y" (:) "p" (identifier) "e& allocator)" (&) " " (identifier) "onst;\n " ()) " " (identifier) " " (expression_statement) " " (;) " " (declaration) "Outcome Deserialize(const rapidjson::Value &value);\n\n\n " (type_identifier) "Outcome Deserialize" (function_declarator) "const rapidjson::Value &value);\n\n\n " (identifier) "const rapid" (parameter_list) "json::Value &value);\n\n\n " (() "j" (parameter_declaration) "son::Value &value);\n\n\n " (type_qualifier) "son::" (const) "son::" (type_identifier) "alue &val" (ERROR) "ue);\n\n\n " (:) "u" (:) "e" (identifier) ");\n\n\n" (&) " " (identifier) " " ()) " " (;) " " (comment) " * 获取所属区块高度\n * @return BlockNumber 所属区块高度\n */\n int64_t GetBlockNum" (ERROR) " /**\n * 设置所属区块高度\n * @param BlockNumber 所属区块高度\n */\n void SetBlockNumber(const int64_t& _blockNumber);\n\n /**\n * 判断参数 BlockNumber 是否已赋值\n * @return BlockNumber 是否已赋值\n */\n bool BlockNumberHasBeenSet() const;\n\n /**\n * 获取区块时间戳\n * @return BlockTimestamp 区块时间戳\n */\n std::string GetBlockTimestamp() const;\n\n /**\n * 设置区块时间戳\n * @param BlockTimestamp 区块时间戳\n */\n void SetBlockTimestamp(const std::string& _blockTimestamp);\n\n /**\n * 判断参数 BlockTimestamp 是否已赋值\n * @return BlockTimestamp 是否已赋值\n */\n bool BlockTimestampHasBeenSet() const;\n\n /**\n * 获取交易哈希\n * @return TransHash 交易哈希\n */\n std::string GetTransHash() const;\n\n /**\n * 设置交易哈希\n * @param TransHash 交易哈希\n */\n void SetTransHash(const std::string& _transHash);\n\n /**\n * 判断参数 TransHash 是否已赋值\n * @return TransHash 是否已赋值\n */\n bool TransHashHasBeenSet() const;\n\n /**\n * 获取交易发起者\n * @return TransFrom 交易发起者\n */\n std::string GetTransFrom() const;\n\n /**\n * 设置交易发起者\n * @param TransFrom 交易发起者\n */\n void SetTransFrom(const std::string& _transFrom);\n\n /**\n * 判断参数 TransFrom 是否已赋值\n * @return TransFrom 是否已赋值\n */\n bool TransFromHasBeenSet() const;\n\n /**\n * 获取交易接收者\n * @return TransTo 交易接收者\n */\n std::string GetTransTo() const;\n\n /**\n * 设置交易接收者\n * @param TransTo 交易接收者\n */\n void SetTransTo(const std::string& _transTo);\n\n /**\n * 判断参数 TransTo 是否已赋值\n * @return TransTo 是否已赋值\n */\n bool TransToHasBeenSet() const;\n\n /**\n * 获取落库时间\n * @return CreateTime 落库时间\n */\n std::string GetCreateTime() const;\n\n /**\n * 设置落库时间\n * @param CreateTime 落库时间\n */\n void SetCreateTime(const std::string& _createTime);\n\n /**\n * 判断参数 CreateTime 是否已赋值\n * @return CreateTime 是否已赋值\n */\n bool CreateTimeHasBeenSet() const;\n\n /**\n * 获取修改时间\n * @return ModifyTime 修改时间\n */\n std::string GetModifyTime() const;\n\n /**\n * 设置修改时间\n * @param ModifyTime 修改时间\n */\n void SetModifyTime(const std::string& _modifyTime);\n\n /**\n * 判断参数 ModifyTime 是否已赋值\n * @return ModifyTime 是否已赋值\n */\n bool ModifyTimeHasBeenSet() const;\n\n private:\n\n /**\n * 所属区块高度\n */\n int64_t m_blockNumber;\n bool m_blockNumberHasBeenSet;\n\n /**\n * 区块时间戳\n */\n std::string m_blockTimestamp;\n bool m_blockTimestampHasBeenSet;\n\n /**\n * 交易哈希\n */\n std::string m_transHash;\n bool m_transHashHasBeenSet;\n\n /**\n * 交易发起者\n */\n std::string m_transFrom;\n bool m_transFromHasBeenSet;\n\n /**\n * 交易接收者\n */\n std::string m_transTo;\n bool m_transToHasBeenSet;\n\n /**\n * 落库时间\n */\n std::string m_createTime;\n bool m_createTimeHasBeenSet;\n\n /**\n * 修改时间\n */\n std::string m_modifyTime;\n bool m_modifyTimeHasBeenSet;\n\n };\n }\n }\n }\n}\n\n#endif // !TENCENTCLOUD_TBAAS_V20180416_MODEL_BCOSTRANSINFO_H_\n" (primitive_type) " " (function_declarator) " /**\n " (identifier) " /**\n " (parameter_list) " " (() " " ()) " " (declaration) " * 设置所属区块高度\n * @param BlockNumber 所属区块高度\n */\n void SetBlockNumber(const int64_t& _blockNumber);\n\n /**\n * 判断参数 BlockNumber 是否" (type_qualifier) " " (const) " " (ERROR) " " (;) " " (comment) " * @param BlockNumber 所属区块高度\n */\n void SetBlockNumber(const int64_t& _blockNumber" (primitive_type) " /" (function_declarator) "*\n * 判断参数 BlockNumber 是" (identifier) "*\n " (parameter_list) " * 判断参数 BlockNumber 是" (() " " (parameter_declaration) " * 判断参数 BlockNumber " (type_qualifier) " " (const) " " (primitive_type) " * 判断参" (ERROR) "数" (&) "数" (identifier) "BlockNumber " ()) "是" (;) "否" (comment) " * @return BlockNumber 是否已赋值\n */\n bool BlockNumberHasBeenSet() const;\n\n /**\n " (ERROR) " * @return BlockTimestamp 区块时间戳\n */\n std::string GetBlockTimestamp() const;\n\n /**\n * 设置区块时间戳\n * @param BlockTimestamp 区块时间戳\n " (primitive_type) " " (ERROR) " * @return BlockTim" (function_declarator) " * @return BlockTi" (identifier) " * @return" (parameter_list) " B" (() " " ()) "B" (identifier) "ockTi" (;) "m" (comment) " */\n std::string GetBlockTimestamp() const;\n\n /**\n * 设置区块时间戳\n " (ERROR) "aram BlockT" (identifier) "ara" (:) "m" (:) " " (identifier) "BlockT" (function_declarator) "mestamp 区块时间戳\n " (identifier) "mestamp 区块时间戳\n " (parameter_list) " " (() " " ()) " " (identifier) " " (;) " " (comment) " void SetBlockTimestamp(const std::string& _blockTimestamp);\n\n /**\n * 判断参数 BlockTimes" (declaration) " * @return BlockTimestamp 是否已赋值\n " (primitive_type) " " (function_declarator) " * @return BlockTimestamp 是否已赋值\n " (identifier) " * @return B" (parameter_list) "lockTimestamp 是否已赋值\n " (() "l" (parameter_declaration) "ockTimestamp 是否已赋值\n " (type_qualifier) "ockTi" (const) "ockTi" (type_identifier) "est" (ERROR) "amp 是否已赋值" (:) "a" (:) "m" (identifier) "p 是否已赋" (&) "值" (identifier) " " ()) " " (;) " " (comment) " bool BlockTimestampHasBeenSet() const;\n\n /**\n * 获取交易哈希\n * @return TransHash 交易哈希\n " (ERROR) " std::string GetTransHash() const;\n\n /**\n * 设置交易哈希\n * @param TransHash 交易哈希\n */\n void SetTransHash(const std::string& _transHash" (primitive_type) " " (ERROR) " std::string GetTransHash()" (function_declarator) " std::string GetTransHash(" (identifier) " std::string GetTr" (parameter_list) "an" (() "a" ()) "n" (identifier) "Hash(" (;) ")" (comment) " /**\n * 设置交易哈希\n * @param TransHash 交易哈希\n */\n " (ERROR) "ash(const s" (identifier) "ash" (:) "(" (:) "c" (identifier) "onst s" (function_declarator) "d::string& _transHas" (identifier) "d::string& _" (parameter_list) "tr" (() "t" ()) "r" (identifier) "nsHas" (;) "h" (comment) " /**\n * 判断参数 TransHash 是否已赋值\n * @return TransHash 是否已赋值\n */\n " (declaration) "ol TransHashHasBeenSet() const;\n\n " (primitive_type) "ol T" (function_declarator) "ansHashHasBeenSet() const;\n\n " (identifier) "ansHashHasBe" (parameter_list) "enSet() const;\n\n " (() "e" (parameter_declaration) "nSet() const;\n\n " (type_qualifier) "nSet(" (const) "nSet(" (type_identifier) " co" (ERROR) "nst;\n\n " (:) "n" (:) "s" (identifier) "t;\n\n " (&) " " (identifier) " " ()) " " (;) " " (comment) " * 获取交易发起者\n * @return TransFrom 交易发起者\n */\n std::string GetTransFrom() const;\n\n " (ERROR) " * 设置交易发起者\n * @param TransFrom 交易发起者\n */\n void SetTransFrom(const std::string& _transFrom);\n\n /**\n * 判断参数 TransFrom 是否已赋" (primitive_type) " " (ERROR) " * 设置交易发起者\n " (function_declarator) " * 设置交易发起者\n " (identifier) " * 设" (parameter_list) "置交" (() "置" ()) "交" (identifier) "发起者\n " (;) " " (comment) "param TransFrom 交易发起者\n */\n void SetTransFrom(const std::string& _transFrom);\n\n " (ERROR) " " (identifier) " " (:) " " (:) " " (identifier) " " (function_declarator) "* 判断参数 TransFrom 是否已" (identifier) "* 判断参数 Trans" (parameter_list) "Fr" (() "F" ()) "r" (identifier) "m 是否已" (;) "赋" (comment) " * @return TransFrom 是否已赋值\n */\n bool TransFromHasBeenSet() const;\n\n /*" (declaration) " * 获取交易接收者\n * @return TransT" (primitive_type) " * " (function_declarator) "取交易接收者\n * @return Trans" (identifier) "取交易接收者\n " (parameter_list) " * @return Trans" (() " " (parameter_declaration) " * @return Tran" (type_qualifier) " " (const) " " (type_identifier) " " (ERROR) " * @" (:) " " (:) " " (identifier) " * " (&) "@" (identifier) "eturn Tran" ()) "s" (;) "T" (comment) " */\n std::string GetTransTo() const;\n\n /**\n * 设置交易接收者\n * @para" (ERROR) " */\n void SetTransTo(const std::string& _transTo);\n\n /**\n * 判断参数 TransTo 是否已赋值\n * @return TransTo 是否已赋值\n */\n " (primitive_type) " " (ERROR) " */\n " (function_declarator) " */\n " (identifier) " */\n " (parameter_list) " " (() " " ()) " " (identifier) " " (;) " " (comment) "const std::string& _transTo);\n\n /**\n * 判断参数 TransTo 是否已赋值\n * @return" (ERROR) " " (identifier) " " (:) " " (:) " " (identifier) " " (function_declarator) " */\n " (identifier) " */\n " (parameter_list) " " (() " " ()) " " (identifier) " " (;) " " (comment) "BeenSet() const;\n\n /**\n * 获取落库时间\n * @return CreateTime 落库时间\n " (declaration) " std::string GetCreateTime() c" (primitive_type) " " (function_declarator) " std::string GetCreateTime() " (identifier) " " (parameter_list) " std::string GetCreateTime() " (() " " (parameter_declaration) "std::string GetCreateTime()" (type_qualifier) "std::" (const) "std::" (type_identifier) "tri" (ERROR) "ng GetCre" (:) "n" (:) "g" (identifier) " GetCr" (&) "e" (identifier) "teTime()" ()) " " (;) "c" (comment) " /**\n * 设置落库时间\n * @param CreateTime 落库时间\n */\n void SetCreat" (ERROR) "ng& _createTime);\n\n /**\n * 判断参数 CreateTime 是否已赋值\n * @return CreateTime 是否已赋值\n */\n bool CreateTimeHasBeenSet() const;\n\n " (primitive_type) "ng& " (ERROR) "createTime);\n\n " (function_declarator) "createTime);\n\n " (identifier) "createTime);\n\n " (parameter_list) " " (() " " ()) " " (identifier) " " (;) " " (comment) " * 判断参数 CreateTime 是否已赋值\n * @return CreateTime 是否已赋值\n */\n " (ERROR) "BeenSet() c" (identifier) "Bee" (:) "n" (:) "S" (identifier) "et() c" (function_declarator) "nst;\n\n " (identifier) "nst;\n\n " (parameter_list) " " (() " " ()) " " (identifier) " " (;) " " (comment) " * 获取修改时间\n * @return ModifyTime 修改时间\n */\n std::string GetM" (declaration) " /**\n * 设置修改时" (primitive_type) " " (function_declarator) " /**\n * 设置修改" (identifier) " " (parameter_list) " /**\n * 设置修改" (() " " (parameter_declaration) "/**\n * 设置修" (type_qualifier) "/**\n " (const) "/**\n " (type_identifier) " " (ERROR) " " (:) " " (:) " " (identifier) " " (&) " " (identifier) " * 设置修" ()) "改" (;) "时" (comment) " * @param ModifyTime 修改时间\n */\n void SetModifyTime(const std::string& _modifyTime);\n\n /**\n " (ERROR) " 判断参数 ModifyTime 是否已赋值\n * @return ModifyTime 是否已赋值\n */\n bool ModifyTimeHasBeenSet() const;\n\n private:\n\n /**\n * 所属区块高度\n " (primitive_type) " 判断参" (ERROR) " ModifyTime 是否已赋值\n " (function_declarator) " ModifyTime 是否已赋值\n " (identifier) " ModifyTime 是否已赋值\n " (parameter_list) " " (() " " ()) " " (identifier) " " (;) " " (comment) "difyTime 是否已赋值\n */\n bool ModifyTimeHasBeenSet() const;\n\n private:\n\n " (ERROR) " " (identifier) " " (:) " " (:) " " (identifier) " " (function_declarator) " * 所属区块高度\n " (identifier) " * 所属" (parameter_list) "区块" (() "区" ()) "块" (identifier) "度\n " (;) " " (comment) " int64_t m_blockNumber;\n bool m_blockNumberHasBeenSet;\n\n /**\n " (declaration) "\n */\n std::s" (primitive_type) "\n " (function_declarator) " */\n std::" (identifier) " " (parameter_list) " */\n std::" (() " " (parameter_declaration) " */\n std:" (type_qualifier) " */" (const) " */" (type_identifier) " " (ERROR) " " (:) " " (:) " " (identifier) " " (&) " " (identifier) " std:" ()) ":" (;) "s" (comment) ";\n bool m_blockTimestampHasBeenSet;\n\n /**\n * 交易哈希\n */\n " (ERROR) "nsHash;\n bool m_transHashHasBeenSet;\n\n " (primitive_type) "nsHa" (ERROR) "h;\n bool m" (function_declarator) "h;\n bool " (identifier) "h;\n " (parameter_list) " " (() " " ()) " " (identifier) "bool " (;) "m" (identifier) "et;\n\n " (:) " " (comment) " * 交易发起者\n */\n " (declaration) "sFrom;\n " (primitive_type) "sFrom;\n" (identifier) " " (;) " " (declaration) "HasBeenSet;\n\n " (primitive_type) "HasB" (identifier) "enSet;\n\n " (;) " " (comment) " * 交易接收者\n */\n std::st" (declaration) " bool m_transTo" (type_identifier) " " (ERROR) " " (:) " " (:) " " (identifier) " " (identifier) " bool m_transT" (;) "o" (declaration) " /**\n " (primitive_type) " " (identifier) " /**\n " (;) " " (comment) " */\n std::string m_createTime;\n " (declaration) " m_createTimeHasBeenSet;" (type_identifier) " m_" (ERROR) "createTi" (:) "c" (:) "r" (identifier) "eateTi" (identifier) "eHasBeenSet" (;) ";" (declaration) " /**\n *" (primitive_type) " /**" (identifier) " " (;) "*" (comment) " */\n std::string m_modifyTime;\n " (declaration) "TimeHasBeenSet;\n\n " (type_identifier) "Tim" (ERROR) "eHasBeen" (:) "e" (:) "H" (identifier) "asBeen" (identifier) "et;\n\n " (;) " " (declaration) " }\n }\n }\n}\n\n#en" (primitive_type) " }" (identifier) " }\n }\n}\n\n#e" (;) "n" (comment) "BAAS_V20180416_MODEL_BCOSTRANSINFO_H_\n" (declaration) "" (type_identifier) "" (ERROR) "" (:) "" (:) "" (identifier) "" (identifier) "" (;) "" (declaration) "" (primitive_type) "" (identifier) "" (;) "" (comment) "" (declaration) "" (type_identifier) "" (ERROR) "" (:) "" (:) "" (identifier) "" (identifier) "" (;) "" (declaration) "" (primitive_type) "" (identifier) "" (;) "" (comment) "" (declaration) "" (type_identifier) "" (ERROR) "" (:) "" (:) "" (identifier) "" (identifier) "" (;) "" (declaration) "" (primitive_type) "" (identifier) "" (;) "" (}) "" (expression_statement) "" (;) "" (}) "" (}) "" (}) "" (}) "" (#endif) "" (comment) ""
524
40
{"language": "c", "success": true, "metadata": {"lines": 191, "avg_line_length": 35.52, "nodes": 324, "errors": 0, "source_hash": "4e90d185bc168ff64c2f3adbe75996fe2dbb36b214d1dc24c7a97c59da67c0c3", "categorized_nodes": 221}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef TENCENTCLOUD_TBAAS_V20180416_MODEL_BCOSTRANSINFO_H_\n#define TENCENTCLOUD_TBAAS_V20180416_MODEL_BCOSTRANSINFO_H_\n\n#include <string>\n#include <vector>\n#include <map>\n#include <tencentcloud/core/utils/rapidjson/document.h>\n#include <tencentcloud/core/utils/rapidjson/writer.h>\n#include <tencentcloud/core/utils/rapidjson/stringbuffer.h>\n#include <tencentcloud/core/AbstractModel.h>\n\n\nnamespace TencentCloud\n{\n namespace Tbaas\n {\n namespace V20180416\n {\n namespace Model\n {\n /**\n * Bcos\u4ea4\u6613\u4fe1\u606f\u5bf9\u8c61\n */\n class BcosTransInfo : public AbstractModel\n {\n public:\n BcosTransInfo();\n ~BcosTransInfo() = default;\n void ToJsonObject(rapidjson::Value &value, rapidjson::Document::AllocatorType& allocator) const;\n CoreInternalOutcome Deserialize(const rapidjson::Value &value);\n\n\n /**\n * \u83b7\u53d6\u6240\u5c5e\u533a\u5757\u9ad8\u5ea6\n * @return BlockNumber \u6240\u5c5e\u533a\u5757\u9ad8\u5ea6\n */\n int64_t GetBlockNumber() const;\n\n /**\n * \u8bbe\u7f6e\u6240\u5c5e\u533a\u5757\u9ad8\u5ea6\n * @param BlockNumber \u6240\u5c5e\u533a\u5757\u9ad8\u5ea6\n */\n void SetBlockNumber(const int64_t& _blockNumber);\n\n /**\n * \u5224\u65ad\u53c2\u6570 BlockNumber \u662f\u5426\u5df2\u8d4b\u503c\n * @return BlockNumber \u662f\u5426\u5df2\u8d4b\u503c\n */\n bool BlockNumberHasBeenSet() const;\n\n /**\n * \u83b7\u53d6\u533a\u5757\u65f6\u95f4\u6233\n * @return BlockTimestamp \u533a\u5757\u65f6\u95f4\u6233\n */\n std::string GetBlockTimestamp() const;\n\n /**\n * \u8bbe\u7f6e\u533a\u5757\u65f6\u95f4\u6233\n * @param BlockTimestamp \u533a\u5757\u65f6\u95f4\u6233\n */\n void SetBlockTimestamp(const std::string& _blockTimestamp);\n\n /**\n * \u5224\u65ad\u53c2\u6570 BlockTimestamp \u662f\u5426\u5df2\u8d4b\u503c\n * @return BlockTimestamp \u662f\u5426\u5df2\u8d4b\u503c\n */\n bool BlockTimestampHasBeenSet() const;\n\n /**\n * \u83b7\u53d6\u4ea4\u6613\u54c8\u5e0c\n * @return TransHash \u4ea4\u6613\u54c8\u5e0c\n */\n std::string GetTransHash() const;\n\n /**\n * \u8bbe\u7f6e\u4ea4\u6613\u54c8\u5e0c\n * @param TransHash \u4ea4\u6613\u54c8\u5e0c\n */\n void SetTransHash(const std::string& _transHash);\n\n /**\n * \u5224\u65ad\u53c2\u6570 TransHash \u662f\u5426\u5df2\u8d4b\u503c\n * @return TransHash \u662f\u5426\u5df2\u8d4b\u503c\n */\n bool TransHashHasBeenSet() const;\n\n /**\n * \u83b7\u53d6\u4ea4\u6613\u53d1\u8d77\u8005\n * @return TransFrom \u4ea4\u6613\u53d1\u8d77\u8005\n */\n std::string GetTransFrom() const;\n\n /**\n * \u8bbe\u7f6e\u4ea4\u6613\u53d1\u8d77\u8005\n * @param TransFrom \u4ea4\u6613\u53d1\u8d77\u8005\n */\n void SetTransFrom(const std::string& _transFrom);\n\n /**\n * \u5224\u65ad\u53c2\u6570 TransFrom \u662f\u5426\u5df2\u8d4b\u503c\n * @return TransFrom \u662f\u5426\u5df2\u8d4b\u503c\n */\n bool TransFromHasBeenSet() const;\n\n /**\n * \u83b7\u53d6\u4ea4\u6613\u63a5\u6536\u8005\n * @return TransTo \u4ea4\u6613\u63a5\u6536\u8005\n */\n std::string GetTransTo() const;\n\n /**\n * \u8bbe\u7f6e\u4ea4\u6613\u63a5\u6536\u8005\n * @param TransTo \u4ea4\u6613\u63a5\u6536\u8005\n */\n void SetTransTo(const std::string& _transTo);\n\n /**\n * \u5224\u65ad\u53c2\u6570 TransTo \u662f\u5426\u5df2\u8d4b\u503c\n * @return TransTo \u662f\u5426\u5df2\u8d4b\u503c\n */\n bool TransToHasBeenSet() const;\n\n /**\n * \u83b7\u53d6\u843d\u5e93\u65f6\u95f4\n * @return CreateTime \u843d\u5e93\u65f6\u95f4\n */\n std::string GetCreateTime() const;\n\n /**\n * \u8bbe\u7f6e\u843d\u5e93\u65f6\u95f4\n * @param CreateTime \u843d\u5e93\u65f6\u95f4\n */\n void SetCreateTime(const std::string& _createTime);\n\n /**\n * \u5224\u65ad\u53c2\u6570 CreateTime \u662f\u5426\u5df2\u8d4b\u503c\n * @return CreateTime \u662f\u5426\u5df2\u8d4b\u503c\n */\n bool CreateTimeHasBeenSet() const;\n\n /**\n * \u83b7\u53d6\u4fee\u6539\u65f6\u95f4\n * @return ModifyTime \u4fee\u6539\u65f6\u95f4\n */\n std::string GetModifyTime() const;\n\n /**\n * \u8bbe\u7f6e\u4fee\u6539\u65f6\u95f4\n * @param ModifyTime \u4fee\u6539\u65f6\u95f4\n */\n void SetModifyTime(const std::string& _modifyTime);\n\n /**\n * \u5224\u65ad\u53c2\u6570 ModifyTime \u662f\u5426\u5df2\u8d4b\u503c\n * @return ModifyTime \u662f\u5426\u5df2\u8d4b\u503c\n */\n bool ModifyTimeHasBeenSet() const;\n\n private:\n\n /**\n * \u6240\u5c5e\u533a\u5757\u9ad8\u5ea6\n */\n int64_t m_blockNumber;\n bool m_blockNumberHasBeenSet;\n\n /**\n * \u533a\u5757\u65f6\u95f4\u6233\n */\n std::string m_blockTimestamp;\n bool m_blockTimestampHasBeenSet;\n\n /**\n * \u4ea4\u6613\u54c8\u5e0c\n */\n std::string m_transHash;\n bool m_transHashHasBeenSet;\n\n /**\n * \u4ea4\u6613\u53d1\u8d77\u8005\n */\n std::string m_transFrom;\n bool m_transFromHasBeenSet;\n\n /**\n * \u4ea4\u6613\u63a5\u6536\u8005\n */\n std::string m_transTo;\n bool m_transToHasBeenSet;\n\n /**\n * \u843d\u5e93\u65f6\u95f4\n */\n std::string m_createTime;\n bool m_createTimeHasBeenSet;\n\n /**\n * \u4fee\u6539\u65f6\u95f4\n */\n std::string m_modifyTime;\n bool m_modifyTimeHasBeenSet;\n\n };\n }\n }\n }\n}\n\n#endif // !TENCENTCLOUD_TBAAS_V20180416_MODEL_BCOSTRANSINFO_H_\n", "parent": null, "children": [1, 2, 3, 6, 9, 12, 15, 18, 21, 24, 27, 323], "start_point": {"row": 16, "column": 0}, "end_point": {"row": 224, "column": 6}}, {"id": 1, "type": "#ifndef", "text": "#ifndef", "parent": 0, "children": [], "start_point": {"row": 16, "column": 0}, "end_point": {"row": 16, "column": 7}}, {"id": 2, "type": "identifier", "text": "TENCENTCLOUD_TBAAS_V20180416_MODEL_BCOSTRANSINFO_H_", "parent": 0, "children": [], "start_point": {"row": 16, "column": 8}, "end_point": {"row": 16, "column": 59}}, {"id": 3, "type": "preproc_def", "text": "#define TENCENTCLOUD_TBAAS_V20180416_MODEL_BCOSTRANSINFO_H_\n", "parent": 0, "children": [4, 5], "start_point": {"row": 17, "column": 0}, "end_point": {"row": 18, "column": 0}}, {"id": 4, "type": "#define", "text": "#define", "parent": 3, "children": [], "start_point": {"row": 17, "column": 0}, "end_point": {"row": 17, "column": 7}}, {"id": 5, "type": "identifier", "text": "TENCENTCLOUD_TBAAS_V20180416_MODEL_BCOSTRANSINFO_H_", "parent": 3, "children": [], "start_point": {"row": 17, "column": 8}, "end_point": {"row": 17, "column": 59}}, {"id": 6, "type": "preproc_include", "text": "#include <string>\n", "parent": 0, "children": [7, 8], "start_point": {"row": 19, "column": 0}, "end_point": {"row": 20, "column": 0}}, {"id": 7, "type": "#include", "text": "#include", "parent": 6, "children": [], "start_point": {"row": 19, "column": 0}, "end_point": {"row": 19, "column": 8}}, {"id": 8, "type": "system_lib_string", "text": "<string>", "parent": 6, "children": [], "start_point": {"row": 19, "column": 9}, "end_point": {"row": 19, "column": 17}}, {"id": 9, "type": "preproc_include", "text": "#include <vector>\n", "parent": 0, "children": [10, 11], "start_point": {"row": 20, "column": 0}, "end_point": {"row": 21, "column": 0}}, {"id": 10, "type": "#include", "text": "#include", "parent": 9, "children": [], "start_point": {"row": 20, "column": 0}, "end_point": {"row": 20, "column": 8}}, {"id": 11, "type": "system_lib_string", "text": "<vector>", "parent": 9, "children": [], "start_point": {"row": 20, "column": 9}, "end_point": {"row": 20, "column": 17}}, {"id": 12, "type": "preproc_include", "text": "#include <map>\n", "parent": 0, "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": "system_lib_string", "text": "<map>", "parent": 12, "children": [], "start_point": {"row": 21, "column": 9}, "end_point": {"row": 21, "column": 14}}, {"id": 15, "type": "preproc_include", "text": "#include <tencentcloud/core/utils/rapidjson/document.h>\n", "parent": 0, "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": "system_lib_string", "text": "<tencentcloud/core/utils/rapidjson/document.h>", "parent": 15, "children": [], "start_point": {"row": 22, "column": 9}, "end_point": {"row": 22, "column": 55}}, {"id": 18, "type": "preproc_include", "text": "#include <tencentcloud/core/utils/rapidjson/writer.h>\n", "parent": 0, "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": "system_lib_string", "text": "<tencentcloud/core/utils/rapidjson/writer.h>", "parent": 18, "children": [], "start_point": {"row": 23, "column": 9}, "end_point": {"row": 23, "column": 53}}, {"id": 21, "type": "preproc_include", "text": "#include <tencentcloud/core/utils/rapidjson/stringbuffer.h>\n", "parent": 0, "children": [22, 23], "start_point": {"row": 24, "column": 0}, "end_point": {"row": 25, "column": 0}}, {"id": 22, "type": "#include", "text": "#include", "parent": 21, "children": [], "start_point": {"row": 24, "column": 0}, "end_point": {"row": 24, "column": 8}}, {"id": 23, "type": "system_lib_string", "text": "<tencentcloud/core/utils/rapidjson/stringbuffer.h>", "parent": 21, "children": [], "start_point": {"row": 24, "column": 9}, "end_point": {"row": 24, "column": 59}}, {"id": 24, "type": "preproc_include", "text": "#include <tencentcloud/core/AbstractModel.h>\n", "parent": 0, "children": [25, 26], "start_point": {"row": 25, "column": 0}, "end_point": {"row": 26, "column": 0}}, {"id": 25, "type": "#include", "text": "#include", "parent": 24, "children": [], "start_point": {"row": 25, "column": 0}, "end_point": {"row": 25, "column": 8}}, {"id": 26, "type": "system_lib_string", "text": "<tencentcloud/core/AbstractModel.h>", "parent": 24, "children": [], "start_point": {"row": 25, "column": 9}, "end_point": {"row": 25, "column": 44}}, {"id": 27, "type": "function_definition", "text": "namespace TencentCloud\n{\n namespace Tbaas\n {\n namespace V20180416\n {\n namespace Model\n {\n /**\n * Bcos\u4ea4\u6613\u4fe1\u606f\u5bf9\u8c61\n */\n class BcosTransInfo : public AbstractModel\n {\n public:\n BcosTransInfo();\n ~BcosTransInfo() = default;\n void ToJsonObject(rapidjson::Value &value, rapidjson::Document::AllocatorType& allocator) const;\n CoreInternalOutcome Deserialize(const rapidjson::Value &value);\n\n\n /**\n * \u83b7\u53d6\u6240\u5c5e\u533a\u5757\u9ad8\u5ea6\n * @return BlockNumber \u6240\u5c5e\u533a\u5757\u9ad8\u5ea6\n */\n int64_t GetBlockNumber() const;\n\n /**\n * \u8bbe\u7f6e\u6240\u5c5e\u533a\u5757\u9ad8\u5ea6\n * @param BlockNumber \u6240\u5c5e\u533a\u5757\u9ad8\u5ea6\n */\n void SetBlockNumber(const int64_t& _blockNumber);\n\n /**\n * \u5224\u65ad\u53c2\u6570 BlockNumber \u662f\u5426\u5df2\u8d4b\u503c\n * @return BlockNumber \u662f\u5426\u5df2\u8d4b\u503c\n */\n bool BlockNumberHasBeenSet() const;\n\n /**\n * \u83b7\u53d6\u533a\u5757\u65f6\u95f4\u6233\n * @return BlockTimestamp \u533a\u5757\u65f6\u95f4\u6233\n */\n std::string GetBlockTimestamp() const;\n\n /**\n * \u8bbe\u7f6e\u533a\u5757\u65f6\u95f4\u6233\n * @param BlockTimestamp \u533a\u5757\u65f6\u95f4\u6233\n */\n void SetBlockTimestamp(const std::string& _blockTimestamp);\n\n /**\n * \u5224\u65ad\u53c2\u6570 BlockTimestamp \u662f\u5426\u5df2\u8d4b\u503c\n * @return BlockTimestamp \u662f\u5426\u5df2\u8d4b\u503c\n */\n bool BlockTimestampHasBeenSet() const;\n\n /**\n * \u83b7\u53d6\u4ea4\u6613\u54c8\u5e0c\n * @return TransHash \u4ea4\u6613\u54c8\u5e0c\n */\n std::string GetTransHash() const;\n\n /**\n * \u8bbe\u7f6e\u4ea4\u6613\u54c8\u5e0c\n * @param TransHash \u4ea4\u6613\u54c8\u5e0c\n */\n void SetTransHash(const std::string& _transHash);\n\n /**\n * \u5224\u65ad\u53c2\u6570 TransHash \u662f\u5426\u5df2\u8d4b\u503c\n * @return TransHash \u662f\u5426\u5df2\u8d4b\u503c\n */\n bool TransHashHasBeenSet() const;\n\n /**\n * \u83b7\u53d6\u4ea4\u6613\u53d1\u8d77\u8005\n * @return TransFrom \u4ea4\u6613\u53d1\u8d77\u8005\n */\n std::string GetTransFrom() const;\n\n /**\n * \u8bbe\u7f6e\u4ea4\u6613\u53d1\u8d77\u8005\n * @param TransFrom \u4ea4\u6613\u53d1\u8d77\u8005\n */\n void SetTransFrom(const std::string& _transFrom);\n\n /**\n * \u5224\u65ad\u53c2\u6570 TransFrom \u662f\u5426\u5df2\u8d4b\u503c\n * @return TransFrom \u662f\u5426\u5df2\u8d4b\u503c\n */\n bool TransFromHasBeenSet() const;\n\n /**\n * \u83b7\u53d6\u4ea4\u6613\u63a5\u6536\u8005\n * @return TransTo \u4ea4\u6613\u63a5\u6536\u8005\n */\n std::string GetTransTo() const;\n\n /**\n * \u8bbe\u7f6e\u4ea4\u6613\u63a5\u6536\u8005\n * @param TransTo \u4ea4\u6613\u63a5\u6536\u8005\n */\n void SetTransTo(const std::string& _transTo);\n\n /**\n * \u5224\u65ad\u53c2\u6570 TransTo \u662f\u5426\u5df2\u8d4b\u503c\n * @return TransTo \u662f\u5426\u5df2\u8d4b\u503c\n */\n bool TransToHasBeenSet() const;\n\n /**\n * \u83b7\u53d6\u843d\u5e93\u65f6\u95f4\n * @return CreateTime \u843d\u5e93\u65f6\u95f4\n */\n std::string GetCreateTime() const;\n\n /**\n * \u8bbe\u7f6e\u843d\u5e93\u65f6\u95f4\n * @param CreateTime \u843d\u5e93\u65f6\u95f4\n */\n void SetCreateTime(const std::string& _createTime);\n\n /**\n * \u5224\u65ad\u53c2\u6570 CreateTime \u662f\u5426\u5df2\u8d4b\u503c\n * @return CreateTime \u662f\u5426\u5df2\u8d4b\u503c\n */\n bool CreateTimeHasBeenSet() const;\n\n /**\n * \u83b7\u53d6\u4fee\u6539\u65f6\u95f4\n * @return ModifyTime \u4fee\u6539\u65f6\u95f4\n */\n std::string GetModifyTime() const;\n\n /**\n * \u8bbe\u7f6e\u4fee\u6539\u65f6\u95f4\n * @param ModifyTime \u4fee\u6539\u65f6\u95f4\n */\n void SetModifyTime(const std::string& _modifyTime);\n\n /**\n * \u5224\u65ad\u53c2\u6570 ModifyTime \u662f\u5426\u5df2\u8d4b\u503c\n * @return ModifyTime \u662f\u5426\u5df2\u8d4b\u503c\n */\n bool ModifyTimeHasBeenSet() const;\n\n private:\n\n /**\n * \u6240\u5c5e\u533a\u5757\u9ad8\u5ea6\n */\n int64_t m_blockNumber;\n bool m_blockNumberHasBeenSet;\n\n /**\n * \u533a\u5757\u65f6\u95f4\u6233\n */\n std::string m_blockTimestamp;\n bool m_blockTimestampHasBeenSet;\n\n /**\n * \u4ea4\u6613\u54c8\u5e0c\n */\n std::string m_transHash;\n bool m_transHashHasBeenSet;\n\n /**\n * \u4ea4\u6613\u53d1\u8d77\u8005\n */\n std::string m_transFrom;\n bool m_transFromHasBeenSet;\n\n /**\n * \u4ea4\u6613\u63a5\u6536\u8005\n */\n std::string m_transTo;\n bool m_transToHasBeenSet;\n\n /**\n * \u843d\u5e93\u65f6\u95f4\n */\n std::string m_createTime;\n bool m_createTimeHasBeenSet;\n\n /**\n * \u4fee\u6539\u65f6\u95f4\n */\n std::string m_modifyTime;\n bool m_modifyTimeHasBeenSet;\n\n };\n }\n }\n }\n}\n\n#endif // !TENCENTCLOUD_TBAAS_V20180416_MODEL_BCOSTRANSINFO_H_\n", "parent": 0, "children": [28, 29], "start_point": {"row": 28, "column": 0}, "end_point": {"row": 222, "column": 1}}, {"id": 28, "type": "type_identifier", "text": "namespace", "parent": 27, "children": [], "start_point": {"row": 28, "column": 0}, "end_point": {"row": 28, "column": 9}}, {"id": 29, "type": "identifier", "text": "TencentCloud", "parent": 27, "children": [], "start_point": {"row": 28, "column": 10}, "end_point": {"row": 28, "column": 22}}, {"id": 30, "type": "function_definition", "text": "namespace Tbaas\n {\n namespace V20180416\n {\n namespace Model\n {\n /**\n * Bcos\u4ea4\u6613\u4fe1\u606f\u5bf9\u8c61\n */\n class BcosTransInfo : public AbstractModel\n {\n public:\n BcosTransInfo();\n ~BcosTransInfo() = default;\n void ToJsonObject(rapidjson::Value &value, rapidjson::Document::AllocatorType& allocator) const;\n CoreInternalOutcome Deserialize(const rapidjson::Value &value);\n\n\n /**\n * \u83b7\u53d6\u6240\u5c5e\u533a\u5757\u9ad8\u5ea6\n * @return BlockNumber \u6240\u5c5e\u533a\u5757\u9ad8\u5ea6\n */\n int64_t GetBlockNumber() const;\n\n /**\n * \u8bbe\u7f6e\u6240\u5c5e\u533a\u5757\u9ad8\u5ea6\n * @param BlockNumber \u6240\u5c5e\u533a\u5757\u9ad8\u5ea6\n */\n void SetBlockNumber(const int64_t& _blockNumber);\n\n /**\n * \u5224\u65ad\u53c2\u6570 BlockNumber \u662f\u5426\u5df2\u8d4b\u503c\n * @return BlockNumber \u662f\u5426\u5df2\u8d4b\u503c\n */\n bool BlockNumberHasBeenSet() const;\n\n /**\n * \u83b7\u53d6\u533a\u5757\u65f6\u95f4\u6233\n * @return BlockTimestamp \u533a\u5757\u65f6\u95f4\u6233\n */\n std::string GetBlockTimestamp() const;\n\n /**\n * \u8bbe\u7f6e\u533a\u5757\u65f6\u95f4\u6233\n * @param BlockTimestamp \u533a\u5757\u65f6\u95f4\u6233\n */\n void SetBlockTimestamp(const std::string& _blockTimestamp);\n\n /**\n * \u5224\u65ad\u53c2\u6570 BlockTimestamp \u662f\u5426\u5df2\u8d4b\u503c\n * @return BlockTimestamp \u662f\u5426\u5df2\u8d4b\u503c\n */\n bool BlockTimestampHasBeenSet() const;\n\n /**\n * \u83b7\u53d6\u4ea4\u6613\u54c8\u5e0c\n * @return TransHash \u4ea4\u6613\u54c8\u5e0c\n */\n std::string GetTransHash() const;\n\n /**\n * \u8bbe\u7f6e\u4ea4\u6613\u54c8\u5e0c\n * @param TransHash \u4ea4\u6613\u54c8\u5e0c\n */\n void SetTransHash(const std::string& _transHash);\n\n /**\n * \u5224\u65ad\u53c2\u6570 TransHash \u662f\u5426\u5df2\u8d4b\u503c\n * @return TransHash \u662f\u5426\u5df2\u8d4b\u503c\n */\n bool TransHashHasBeenSet() const;\n\n /**\n * \u83b7\u53d6\u4ea4\u6613\u53d1\u8d77\u8005\n * @return TransFrom \u4ea4\u6613\u53d1\u8d77\u8005\n */\n std::string GetTransFrom() const;\n\n /**\n * \u8bbe\u7f6e\u4ea4\u6613\u53d1\u8d77\u8005\n * @param TransFrom \u4ea4\u6613\u53d1\u8d77\u8005\n */\n void SetTransFrom(const std::string& _transFrom);\n\n /**\n * \u5224\u65ad\u53c2\u6570 TransFrom \u662f\u5426\u5df2\u8d4b\u503c\n * @return TransFrom \u662f\u5426\u5df2\u8d4b\u503c\n */\n bool TransFromHasBeenSet() const;\n\n /**\n * \u83b7\u53d6\u4ea4\u6613\u63a5\u6536\u8005\n * @return TransTo \u4ea4\u6613\u63a5\u6536\u8005\n */\n std::string GetTransTo() const;\n\n /**\n * \u8bbe\u7f6e\u4ea4\u6613\u63a5\u6536\u8005\n * @param TransTo \u4ea4\u6613\u63a5\u6536\u8005\n */\n void SetTransTo(const std::string& _transTo);\n\n /**\n * \u5224\u65ad\u53c2\u6570 TransTo \u662f\u5426\u5df2\u8d4b\u503c\n * @return TransTo \u662f\u5426\u5df2\u8d4b\u503c\n */\n bool TransToHasBeenSet() const;\n\n /**\n * \u83b7\u53d6\u843d\u5e93\u65f6\u95f4\n * @return CreateTime \u843d\u5e93\u65f6\u95f4\n */\n std::string GetCreateTime() const;\n\n /**\n * \u8bbe\u7f6e\u843d\u5e93\u65f6\u95f4\n * @param CreateTime \u843d\u5e93\u65f6\u95f4\n */\n void SetCreateTime(const std::string& _createTime);\n\n /**\n * \u5224\u65ad\u53c2\u6570 CreateTime \u662f\u5426\u5df2\u8d4b\u503c\n * @return CreateTime \u662f\u5426\u5df2\u8d4b\u503c\n */\n bool CreateTimeHasBeenSet() const;\n\n /**\n * \u83b7\u53d6\u4fee\u6539\u65f6\u95f4\n * @return ModifyTime \u4fee\u6539\u65f6\u95f4\n */\n std::string GetModifyTime() const;\n\n /**\n * \u8bbe\u7f6e\u4fee\u6539\u65f6\u95f4\n * @param ModifyTime \u4fee\u6539\u65f6\u95f4\n */\n void SetModifyTime(const std::string& _modifyTime);\n\n /**\n * \u5224\u65ad\u53c2\u6570 ModifyTime \u662f\u5426\u5df2\u8d4b\u503c\n * @return ModifyTime \u662f\u5426\u5df2\u8d4b\u503c\n */\n bool ModifyTimeHasBeenSet() const;\n\n private:\n\n /**\n * \u6240\u5c5e\u533a\u5757\u9ad8\u5ea6\n */\n int64_t m_blockNumber;\n bool m_blockNumberHasBeenSet;\n\n /**\n * \u533a\u5757\u65f6\u95f4\u6233\n */\n std::string m_blockTimestamp;\n bool m_blockTimestampHasBeenSet;\n\n /**\n * \u4ea4\u6613\u54c8\u5e0c\n */\n std::string m_transHash;\n bool m_transHashHasBeenSet;\n\n /**\n * \u4ea4\u6613\u53d1\u8d77\u8005\n */\n std::string m_transFrom;\n bool m_transFromHasBeenSet;\n\n /**\n * \u4ea4\u6613\u63a5\u6536\u8005\n */\n std::string m_transTo;\n bool m_transToHasBeenSet;\n\n /**\n * \u843d\u5e93\u65f6\u95f4\n */\n std::string m_createTime;\n bool m_createTimeHasBeenSet;\n\n /**\n * \u4fee\u6539\u65f6\u95f4\n */\n std::string m_modifyTime;\n bool m_modifyTimeHasBeenSet;\n\n };\n }\n }\n }\n}\n\n#endif // !TENCENTCLOUD_TBAAS_V20180416_MODEL_BCOSTRANSINFO_H_\n", "parent": 27, "children": [31, 32], "start_point": {"row": 30, "column": 4}, "end_point": {"row": 221, "column": 5}}, {"id": 31, "type": "type_identifier", "text": "namespace", "parent": 30, "children": [], "start_point": {"row": 30, "column": 4}, "end_point": {"row": 30, "column": 13}}, {"id": 32, "type": "identifier", "text": "Tbaas", "parent": 30, "children": [], "start_point": {"row": 30, "column": 14}, "end_point": {"row": 30, "column": 19}}, {"id": 33, "type": "function_definition", "text": "namespace V20180416\n {\n namespace Model\n {\n /**\n * Bcos\u4ea4\u6613\u4fe1\u606f\u5bf9\u8c61\n */\n class BcosTransInfo : public AbstractModel\n {\n public:\n BcosTransInfo();\n ~BcosTransInfo() = default;\n void ToJsonObject(rapidjson::Value &value, rapidjson::Document::AllocatorType& allocator) const;\n CoreInternalOutcome Deserialize(const rapidjson::Value &value);\n\n\n /**\n * \u83b7\u53d6\u6240\u5c5e\u533a\u5757\u9ad8\u5ea6\n * @return BlockNumber \u6240\u5c5e\u533a\u5757\u9ad8\u5ea6\n */\n int64_t GetBlockNumber() const;\n\n /**\n * \u8bbe\u7f6e\u6240\u5c5e\u533a\u5757\u9ad8\u5ea6\n * @param BlockNumber \u6240\u5c5e\u533a\u5757\u9ad8\u5ea6\n */\n void SetBlockNumber(const int64_t& _blockNumber);\n\n /**\n * \u5224\u65ad\u53c2\u6570 BlockNumber \u662f\u5426\u5df2\u8d4b\u503c\n * @return BlockNumber \u662f\u5426\u5df2\u8d4b\u503c\n */\n bool BlockNumberHasBeenSet() const;\n\n /**\n * \u83b7\u53d6\u533a\u5757\u65f6\u95f4\u6233\n * @return BlockTimestamp \u533a\u5757\u65f6\u95f4\u6233\n */\n std::string GetBlockTimestamp() const;\n\n /**\n * \u8bbe\u7f6e\u533a\u5757\u65f6\u95f4\u6233\n * @param BlockTimestamp \u533a\u5757\u65f6\u95f4\u6233\n */\n void SetBlockTimestamp(const std::string& _blockTimestamp);\n\n /**\n * \u5224\u65ad\u53c2\u6570 BlockTimestamp \u662f\u5426\u5df2\u8d4b\u503c\n * @return BlockTimestamp \u662f\u5426\u5df2\u8d4b\u503c\n */\n bool BlockTimestampHasBeenSet() const;\n\n /**\n * \u83b7\u53d6\u4ea4\u6613\u54c8\u5e0c\n * @return TransHash \u4ea4\u6613\u54c8\u5e0c\n */\n std::string GetTransHash() const;\n\n /**\n * \u8bbe\u7f6e\u4ea4\u6613\u54c8\u5e0c\n * @param TransHash \u4ea4\u6613\u54c8\u5e0c\n */\n void SetTransHash(const std::string& _transHash);\n\n /**\n * \u5224\u65ad\u53c2\u6570 TransHash \u662f\u5426\u5df2\u8d4b\u503c\n * @return TransHash \u662f\u5426\u5df2\u8d4b\u503c\n */\n bool TransHashHasBeenSet() const;\n\n /**\n * \u83b7\u53d6\u4ea4\u6613\u53d1\u8d77\u8005\n * @return TransFrom \u4ea4\u6613\u53d1\u8d77\u8005\n */\n std::string GetTransFrom() const;\n\n /**\n * \u8bbe\u7f6e\u4ea4\u6613\u53d1\u8d77\u8005\n * @param TransFrom \u4ea4\u6613\u53d1\u8d77\u8005\n */\n void SetTransFrom(const std::string& _transFrom);\n\n /**\n * \u5224\u65ad\u53c2\u6570 TransFrom \u662f\u5426\u5df2\u8d4b\u503c\n * @return TransFrom \u662f\u5426\u5df2\u8d4b\u503c\n */\n bool TransFromHasBeenSet() const;\n\n /**\n * \u83b7\u53d6\u4ea4\u6613\u63a5\u6536\u8005\n * @return TransTo \u4ea4\u6613\u63a5\u6536\u8005\n */\n std::string GetTransTo() const;\n\n /**\n * \u8bbe\u7f6e\u4ea4\u6613\u63a5\u6536\u8005\n * @param TransTo \u4ea4\u6613\u63a5\u6536\u8005\n */\n void SetTransTo(const std::string& _transTo);\n\n /**\n * \u5224\u65ad\u53c2\u6570 TransTo \u662f\u5426\u5df2\u8d4b\u503c\n * @return TransTo \u662f\u5426\u5df2\u8d4b\u503c\n */\n bool TransToHasBeenSet() const;\n\n /**\n * \u83b7\u53d6\u843d\u5e93\u65f6\u95f4\n * @return CreateTime \u843d\u5e93\u65f6\u95f4\n */\n std::string GetCreateTime() const;\n\n /**\n * \u8bbe\u7f6e\u843d\u5e93\u65f6\u95f4\n * @param CreateTime \u843d\u5e93\u65f6\u95f4\n */\n void SetCreateTime(const std::string& _createTime);\n\n /**\n * \u5224\u65ad\u53c2\u6570 CreateTime \u662f\u5426\u5df2\u8d4b\u503c\n * @return CreateTime \u662f\u5426\u5df2\u8d4b\u503c\n */\n bool CreateTimeHasBeenSet() const;\n\n /**\n * \u83b7\u53d6\u4fee\u6539\u65f6\u95f4\n * @return ModifyTime \u4fee\u6539\u65f6\u95f4\n */\n std::string GetModifyTime() const;\n\n /**\n * \u8bbe\u7f6e\u4fee\u6539\u65f6\u95f4\n * @param ModifyTime \u4fee\u6539\u65f6\u95f4\n */\n void SetModifyTime(const std::string& _modifyTime);\n\n /**\n * \u5224\u65ad\u53c2\u6570 ModifyTime \u662f\u5426\u5df2\u8d4b\u503c\n * @return ModifyTime \u662f\u5426\u5df2\u8d4b\u503c\n */\n bool ModifyTimeHasBeenSet() const;\n\n private:\n\n /**\n * \u6240\u5c5e\u533a\u5757\u9ad8\u5ea6\n */\n int64_t m_blockNumber;\n bool m_blockNumberHasBeenSet;\n\n /**\n * \u533a\u5757\u65f6\u95f4\u6233\n */\n std::string m_blockTimestamp;\n bool m_blockTimestampHasBeenSet;\n\n /**\n * \u4ea4\u6613\u54c8\u5e0c\n */\n std::string m_transHash;\n bool m_transHashHasBeenSet;\n\n /**\n * \u4ea4\u6613\u53d1\u8d77\u8005\n */\n std::string m_transFrom;\n bool m_transFromHasBeenSet;\n\n /**\n * \u4ea4\u6613\u63a5\u6536\u8005\n */\n std::string m_transTo;\n bool m_transToHasBeenSet;\n\n /**\n * \u843d\u5e93\u65f6\u95f4\n */\n std::string m_createTime;\n bool m_createTimeHasBeenSet;\n\n /**\n * \u4fee\u6539\u65f6\u95f4\n */\n std::string m_modifyTime;\n bool m_modifyTimeHasBeenSet;\n\n };\n }\n }\n }\n}\n\n#endif // !TENCENTCLOUD_TBAAS_V20180416_MODEL_BCOSTRANSINFO_H_\n", "parent": 30, "children": [34, 35], "start_point": {"row": 32, "column": 8}, "end_point": {"row": 220, "column": 9}}, {"id": 34, "type": "type_identifier", "text": "namespace", "parent": 33, "children": [], "start_point": {"row": 32, "column": 8}, "end_point": {"row": 32, "column": 17}}, {"id": 35, "type": "identifier", "text": "V20180416", "parent": 33, "children": [], "start_point": {"row": 32, "column": 18}, "end_point": {"row": 32, "column": 27}}, {"id": 36, "type": "function_definition", "text": "namespace Model\n {\n /**\n * Bcos\u4ea4\u6613\u4fe1\u606f\u5bf9\u8c61\n */\n class BcosTransInfo : public AbstractModel\n {\n public:\n BcosTransInfo();\n ~BcosTransInfo() = default;\n void ToJsonObject(rapidjson::Value &value, rapidjson::Document::AllocatorType& allocator) const;\n CoreInternalOutcome Deserialize(const rapidjson::Value &value);\n\n\n /**\n * \u83b7\u53d6\u6240\u5c5e\u533a\u5757\u9ad8\u5ea6\n * @return BlockNumber \u6240\u5c5e\u533a\u5757\u9ad8\u5ea6\n */\n int64_t GetBlockNumber() const;\n\n /**\n * \u8bbe\u7f6e\u6240\u5c5e\u533a\u5757\u9ad8\u5ea6\n * @param BlockNumber \u6240\u5c5e\u533a\u5757\u9ad8\u5ea6\n */\n void SetBlockNumber(const int64_t& _blockNumber);\n\n /**\n * \u5224\u65ad\u53c2\u6570 BlockNumber \u662f\u5426\u5df2\u8d4b\u503c\n * @return BlockNumber \u662f\u5426\u5df2\u8d4b\u503c\n */\n bool BlockNumberHasBeenSet() const;\n\n /**\n * \u83b7\u53d6\u533a\u5757\u65f6\u95f4\u6233\n * @return BlockTimestamp \u533a\u5757\u65f6\u95f4\u6233\n */\n std::string GetBlockTimestamp() const;\n\n /**\n * \u8bbe\u7f6e\u533a\u5757\u65f6\u95f4\u6233\n * @param BlockTimestamp \u533a\u5757\u65f6\u95f4\u6233\n */\n void SetBlockTimestamp(const std::string& _blockTimestamp);\n\n /**\n * \u5224\u65ad\u53c2\u6570 BlockTimestamp \u662f\u5426\u5df2\u8d4b\u503c\n * @return BlockTimestamp \u662f\u5426\u5df2\u8d4b\u503c\n */\n bool BlockTimestampHasBeenSet() const;\n\n /**\n * \u83b7\u53d6\u4ea4\u6613\u54c8\u5e0c\n * @return TransHash \u4ea4\u6613\u54c8\u5e0c\n */\n std::string GetTransHash() const;\n\n /**\n * \u8bbe\u7f6e\u4ea4\u6613\u54c8\u5e0c\n * @param TransHash \u4ea4\u6613\u54c8\u5e0c\n */\n void SetTransHash(const std::string& _transHash);\n\n /**\n * \u5224\u65ad\u53c2\u6570 TransHash \u662f\u5426\u5df2\u8d4b\u503c\n * @return TransHash \u662f\u5426\u5df2\u8d4b\u503c\n */\n bool TransHashHasBeenSet() const;\n\n /**\n * \u83b7\u53d6\u4ea4\u6613\u53d1\u8d77\u8005\n * @return TransFrom \u4ea4\u6613\u53d1\u8d77\u8005\n */\n std::string GetTransFrom() const;\n\n /**\n * \u8bbe\u7f6e\u4ea4\u6613\u53d1\u8d77\u8005\n * @param TransFrom \u4ea4\u6613\u53d1\u8d77\u8005\n */\n void SetTransFrom(const std::string& _transFrom);\n\n /**\n * \u5224\u65ad\u53c2\u6570 TransFrom \u662f\u5426\u5df2\u8d4b\u503c\n * @return TransFrom \u662f\u5426\u5df2\u8d4b\u503c\n */\n bool TransFromHasBeenSet() const;\n\n /**\n * \u83b7\u53d6\u4ea4\u6613\u63a5\u6536\u8005\n * @return TransTo \u4ea4\u6613\u63a5\u6536\u8005\n */\n std::string GetTransTo() const;\n\n /**\n * \u8bbe\u7f6e\u4ea4\u6613\u63a5\u6536\u8005\n * @param TransTo \u4ea4\u6613\u63a5\u6536\u8005\n */\n void SetTransTo(const std::string& _transTo);\n\n /**\n * \u5224\u65ad\u53c2\u6570 TransTo \u662f\u5426\u5df2\u8d4b\u503c\n * @return TransTo \u662f\u5426\u5df2\u8d4b\u503c\n */\n bool TransToHasBeenSet() const;\n\n /**\n * \u83b7\u53d6\u843d\u5e93\u65f6\u95f4\n * @return CreateTime \u843d\u5e93\u65f6\u95f4\n */\n std::string GetCreateTime() const;\n\n /**\n * \u8bbe\u7f6e\u843d\u5e93\u65f6\u95f4\n * @param CreateTime \u843d\u5e93\u65f6\u95f4\n */\n void SetCreateTime(const std::string& _createTime);\n\n /**\n * \u5224\u65ad\u53c2\u6570 CreateTime \u662f\u5426\u5df2\u8d4b\u503c\n * @return CreateTime \u662f\u5426\u5df2\u8d4b\u503c\n */\n bool CreateTimeHasBeenSet() const;\n\n /**\n * \u83b7\u53d6\u4fee\u6539\u65f6\u95f4\n * @return ModifyTime \u4fee\u6539\u65f6\u95f4\n */\n std::string GetModifyTime() const;\n\n /**\n * \u8bbe\u7f6e\u4fee\u6539\u65f6\u95f4\n * @param ModifyTime \u4fee\u6539\u65f6\u95f4\n */\n void SetModifyTime(const std::string& _modifyTime);\n\n /**\n * \u5224\u65ad\u53c2\u6570 ModifyTime \u662f\u5426\u5df2\u8d4b\u503c\n * @return ModifyTime \u662f\u5426\u5df2\u8d4b\u503c\n */\n bool ModifyTimeHasBeenSet() const;\n\n private:\n\n /**\n * \u6240\u5c5e\u533a\u5757\u9ad8\u5ea6\n */\n int64_t m_blockNumber;\n bool m_blockNumberHasBeenSet;\n\n /**\n * \u533a\u5757\u65f6\u95f4\u6233\n */\n std::string m_blockTimestamp;\n bool m_blockTimestampHasBeenSet;\n\n /**\n * \u4ea4\u6613\u54c8\u5e0c\n */\n std::string m_transHash;\n bool m_transHashHasBeenSet;\n\n /**\n * \u4ea4\u6613\u53d1\u8d77\u8005\n */\n std::string m_transFrom;\n bool m_transFromHasBeenSet;\n\n /**\n * \u4ea4\u6613\u63a5\u6536\u8005\n */\n std::string m_transTo;\n bool m_transToHasBeenSet;\n\n /**\n * \u843d\u5e93\u65f6\u95f4\n */\n std::string m_createTime;\n bool m_createTimeHasBeenSet;\n\n /**\n * \u4fee\u6539\u65f6\u95f4\n */\n std::string m_modifyTime;\n bool m_modifyTimeHasBeenSet;\n\n };\n }\n }\n }\n}\n\n#endif // !TENCENTCLOUD_TBAAS_V20180416_MODEL_BCOSTRANSINFO_H_\n", "parent": 33, "children": [37, 38], "start_point": {"row": 34, "column": 12}, "end_point": {"row": 219, "column": 13}}, {"id": 37, "type": "type_identifier", "text": "namespace", "parent": 36, "children": [], "start_point": {"row": 34, "column": 12}, "end_point": {"row": 34, "column": 21}}, {"id": 38, "type": "identifier", "text": "Model", "parent": 36, "children": [], "start_point": {"row": 34, "column": 22}, "end_point": {"row": 34, "column": 27}}, {"id": 39, "type": "function_definition", "text": "ansInfo : public AbstractModel\n {\n public:\n BcosTransInfo();\n ~BcosTransInfo() = default;\n void ToJsonObject(rapidjson::Value &value, rapidjson::Document::AllocatorType& allocator) const;\n CoreInternalOutcome Deserialize(const rapidjson::Value &value);\n\n\n /**\n * \u83b7\u53d6\u6240\u5c5e\u533a\u5757\u9ad8\u5ea6\n * @return BlockNumber \u6240\u5c5e\u533a\u5757\u9ad8\u5ea6\n */\n int64_t GetBlockNumber() const;\n\n /**\n * \u8bbe\u7f6e\u6240\u5c5e\u533a\u5757\u9ad8\u5ea6\n * @param BlockNumber \u6240\u5c5e\u533a\u5757\u9ad8\u5ea6\n */\n void SetBlockNumber(const int64_t& _blockNumber);\n\n /**\n * \u5224\u65ad\u53c2\u6570 BlockNumber \u662f\u5426\u5df2\u8d4b\u503c\n * @return BlockNumber \u662f\u5426\u5df2\u8d4b\u503c\n */\n bool BlockNumberHasBeenSet() const;\n\n /**\n * \u83b7\u53d6\u533a\u5757\u65f6\u95f4\u6233\n * @return BlockTimestamp \u533a\u5757\u65f6\u95f4\u6233\n */\n std::string GetBlockTimestamp() const;\n\n /**\n * \u8bbe\u7f6e\u533a\u5757\u65f6\u95f4\u6233\n * @param BlockTimestamp \u533a\u5757\u65f6\u95f4\u6233\n */\n void SetBlockTimestamp(const std::string& _blockTimestamp);\n\n /**\n * \u5224\u65ad\u53c2\u6570 BlockTimestamp \u662f\u5426\u5df2\u8d4b\u503c\n * @return BlockTimestamp \u662f\u5426\u5df2\u8d4b\u503c\n */\n bool BlockTimestampHasBeenSet() const;\n\n /**\n * \u83b7\u53d6\u4ea4\u6613\u54c8\u5e0c\n * @return TransHash \u4ea4\u6613\u54c8\u5e0c\n */\n std::string GetTransHash() const;\n\n /**\n * \u8bbe\u7f6e\u4ea4\u6613\u54c8\u5e0c\n * @param TransHash \u4ea4\u6613\u54c8\u5e0c\n */\n void SetTransHash(const std::string& _transHash);\n\n /**\n * \u5224\u65ad\u53c2\u6570 TransHash \u662f\u5426\u5df2\u8d4b\u503c\n * @return TransHash \u662f\u5426\u5df2\u8d4b\u503c\n */\n bool TransHashHasBeenSet() const;\n\n /**\n * \u83b7\u53d6\u4ea4\u6613\u53d1\u8d77\u8005\n * @return TransFrom \u4ea4\u6613\u53d1\u8d77\u8005\n */\n std::string GetTransFrom() const;\n\n /**\n * \u8bbe\u7f6e\u4ea4\u6613\u53d1\u8d77\u8005\n * @param TransFrom \u4ea4\u6613\u53d1\u8d77\u8005\n */\n void SetTransFrom(const std::string& _transFrom);\n\n /**\n * \u5224\u65ad\u53c2\u6570 TransFrom \u662f\u5426\u5df2\u8d4b\u503c\n * @return TransFrom \u662f\u5426\u5df2\u8d4b\u503c\n */\n bool TransFromHasBeenSet() const;\n\n /**\n * \u83b7\u53d6\u4ea4\u6613\u63a5\u6536\u8005\n * @return TransTo \u4ea4\u6613\u63a5\u6536\u8005\n */\n std::string GetTransTo() const;\n\n /**\n * \u8bbe\u7f6e\u4ea4\u6613\u63a5\u6536\u8005\n * @param TransTo \u4ea4\u6613\u63a5\u6536\u8005\n */\n void SetTransTo(const std::string& _transTo);\n\n /**\n * \u5224\u65ad\u53c2\u6570 TransTo \u662f\u5426\u5df2\u8d4b\u503c\n * @return TransTo \u662f\u5426\u5df2\u8d4b\u503c\n */\n bool TransToHasBeenSet() const;\n\n /**\n * \u83b7\u53d6\u843d\u5e93\u65f6\u95f4\n * @return CreateTime \u843d\u5e93\u65f6\u95f4\n */\n std::string GetCreateTime() const;\n\n /**\n * \u8bbe\u7f6e\u843d\u5e93\u65f6\u95f4\n * @param CreateTime \u843d\u5e93\u65f6\u95f4\n */\n void SetCreateTime(const std::string& _createTime);\n\n /**\n * \u5224\u65ad\u53c2\u6570 CreateTime \u662f\u5426\u5df2\u8d4b\u503c\n * @return CreateTime \u662f\u5426\u5df2\u8d4b\u503c\n */\n bool CreateTimeHasBeenSet() const;\n\n /**\n * \u83b7\u53d6\u4fee\u6539\u65f6\u95f4\n * @return ModifyTime \u4fee\u6539\u65f6\u95f4\n */\n std::string GetModifyTime() const;\n\n /**\n * \u8bbe\u7f6e\u4fee\u6539\u65f6\u95f4\n * @param ModifyTime \u4fee\u6539\u65f6\u95f4\n */\n void SetModifyTime(const std::string& _modifyTime);\n\n /**\n * \u5224\u65ad\u53c2\u6570 ModifyTime \u662f\u5426\u5df2\u8d4b\u503c\n * @return ModifyTime \u662f\u5426\u5df2\u8d4b\u503c\n */\n bool ModifyTimeHasBeenSet() const;\n\n private:\n\n /**\n * \u6240\u5c5e\u533a\u5757\u9ad8\u5ea6\n */\n int64_t m_blockNumber;\n bool m_blockNumberHasBeenSet;\n\n /**\n * \u533a\u5757\u65f6\u95f4\u6233\n */\n std::string m_blockTimestamp;\n bool m_blockTimestampHasBeenSet;\n\n /**\n * \u4ea4\u6613\u54c8\u5e0c\n */\n std::string m_transHash;\n bool m_transHashHasBeenSet;\n\n /**\n * \u4ea4\u6613\u53d1\u8d77\u8005\n */\n std::string m_transFrom;\n bool m_transFromHasBeenSet;\n\n /**\n * \u4ea4\u6613\u63a5\u6536\u8005\n */\n std::string m_transTo;\n bool m_transToHasBeenSet;\n\n /**\n * \u843d\u5e93\u65f6\u95f4\n */\n std::string m_createTime;\n bool m_createTimeHasBeenSet;\n\n /**\n * \u4fee\u6539\u65f6\u95f4\n */\n std::string m_modifyTime;\n bool m_modifyTimeHasBeenSet;\n\n };\n }\n }\n }\n}\n\n#endif // !TENCENTCLOUD_TBAAS_V20180416_MODEL_BCOSTRANSINFO_H_\n", "parent": 36, "children": [40, 41, 42], "start_point": {"row": 39, "column": 16}, "end_point": {"row": 218, "column": 17}}, {"id": 40, "type": "type_identifier", "text": "ansIn", "parent": 39, "children": [], "start_point": {"row": 39, "column": 16}, "end_point": {"row": 39, "column": 21}}, {"id": 41, "type": "identifier", "text": "o : public Ab", "parent": 39, "children": [], "start_point": {"row": 39, "column": 22}, "end_point": {"row": 39, "column": 35}}, {"id": 42, "type": "ERROR", "text": "tractModel\n ", "parent": 39, "children": [43, 44], "start_point": {"row": 39, "column": 36}, "end_point": {"row": 39, "column": 58}}, {"id": 43, "type": "identifier", "text": "actMod", "parent": 42, "children": [], "start_point": {"row": 39, "column": 38}, "end_point": {"row": 39, "column": 44}}, {"id": 44, "type": "identifier", "text": "l\n ", "parent": 42, "children": [], "start_point": {"row": 39, "column": 45}, "end_point": {"row": 39, "column": 58}}, {"id": 45, "type": "labeled_statement", "text": " BcosTransInfo();\n ", "parent": 39, "children": [46], "start_point": {"row": 41, "column": 16}, "end_point": {"row": 42, "column": 36}}, {"id": 46, "type": "statement_identifier", "text": " ", "parent": 45, "children": [], "start_point": {"row": 41, "column": 16}, "end_point": {"row": 41, "column": 22}}, {"id": 47, "type": "call_expression", "text": "o();\n ", "parent": 45, "children": [48, 49], "start_point": {"row": 42, "column": 20}, "end_point": {"row": 42, "column": 35}}, {"id": 48, "type": "identifier", "text": "o();\n ", "parent": 47, "children": [], "start_point": {"row": 42, "column": 20}, "end_point": {"row": 42, "column": 33}}, {"id": 49, "type": "argument_list", "text": " ", "parent": 47, "children": [], "start_point": {"row": 42, "column": 33}, "end_point": {"row": 42, "column": 35}}, {"id": 50, "type": "unary_expression", "text": "fo() = default;\n ", "parent": 39, "children": [51, 52], "start_point": {"row": 43, "column": 20}, "end_point": {"row": 43, "column": 46}}, {"id": 51, "type": "~", "text": "f", "parent": 50, "children": [], "start_point": {"row": 43, "column": 20}, "end_point": {"row": 43, "column": 21}}, {"id": 52, "type": "assignment_expression", "text": "o() = default;\n ", "parent": 50, "children": [53, 55, 56], "start_point": {"row": 43, "column": 21}, "end_point": {"row": 43, "column": 46}}, {"id": 53, "type": "call_expression", "text": "o() = default;\n", "parent": 52, "children": [54], "start_point": {"row": 43, "column": 21}, "end_point": {"row": 43, "column": 36}}, {"id": 54, "type": "identifier", "text": "o() = default", "parent": 53, "children": [], "start_point": {"row": 43, "column": 21}, "end_point": {"row": 43, "column": 34}}, {"id": 55, "type": "=", "text": " ", "parent": 52, "children": [], "start_point": {"row": 43, "column": 37}, "end_point": {"row": 43, "column": 38}}, {"id": 56, "type": "identifier", "text": " ", "parent": 52, "children": [], "start_point": {"row": 43, "column": 39}, "end_point": {"row": 43, "column": 46}}, {"id": 57, "type": "ERROR", "text": "bject(rapidjson::Value &value, rapidjson::Document::AllocatorType& allocator) const;\n ", "parent": 39, "children": [58, 59], "start_point": {"row": 44, "column": 20}, "end_point": {"row": 44, "column": 115}}, {"id": 58, "type": "primitive_type", "text": "bjec", "parent": 57, "children": [], "start_point": {"row": 44, "column": 20}, "end_point": {"row": 44, "column": 24}}, {"id": 59, "type": "function_declarator", "text": "(rapidjson::Value &value, rapidjson::Document::AllocatorType& allocator) const;\n ", "parent": 57, "children": [60, 61, 75], "start_point": {"row": 44, "column": 25}, "end_point": {"row": 44, "column": 115}}, {"id": 60, "type": "identifier", "text": "(rapidjson::", "parent": 59, "children": [], "start_point": {"row": 44, "column": 25}, "end_point": {"row": 44, "column": 37}}, {"id": 61, "type": "parameter_list", "text": "Value &value, rapidjson::Document::AllocatorType& allocator) const;\n ", "parent": 59, "children": [62, 68], "start_point": {"row": 44, "column": 37}, "end_point": {"row": 44, "column": 109}}, {"id": 62, "type": "parameter_declaration", "text": "alue &value, rapidjson:", "parent": 61, "children": [63, 64, 67], "start_point": {"row": 44, "column": 38}, "end_point": {"row": 44, "column": 61}}, {"id": 63, "type": "type_identifier", "text": "alue &val", "parent": 62, "children": [], "start_point": {"row": 44, "column": 38}, "end_point": {"row": 44, "column": 47}}, {"id": 64, "type": "ERROR", "text": "ue, rapid", "parent": 62, "children": [65, 66], "start_point": {"row": 44, "column": 47}, "end_point": {"row": 44, "column": 56}}, {"id": 65, "type": "identifier", "text": ", rap", "parent": 64, "children": [], "start_point": {"row": 44, "column": 49}, "end_point": {"row": 44, "column": 54}}, {"id": 66, "type": "&", "text": "d", "parent": 64, "children": [], "start_point": {"row": 44, "column": 55}, "end_point": {"row": 44, "column": 56}}, {"id": 67, "type": "identifier", "text": "json:", "parent": 62, "children": [], "start_point": {"row": 44, "column": 56}, "end_point": {"row": 44, "column": 61}}, {"id": 68, "type": "parameter_declaration", "text": "ocument::AllocatorType& allocator) const;\n ", "parent": 61, "children": [69, 70, 74], "start_point": {"row": 44, "column": 63}, "end_point": {"row": 44, "column": 108}}, {"id": 69, "type": "type_identifier", "text": "ocument::", "parent": 68, "children": [], "start_point": {"row": 44, "column": 63}, "end_point": {"row": 44, "column": 72}}, {"id": 70, "type": "ERROR", "text": "AllocatorType& allocator) ", "parent": 68, "children": [71, 72, 73], "start_point": {"row": 44, "column": 72}, "end_point": {"row": 44, "column": 98}}, {"id": 71, "type": "identifier", "text": "locatorT", "parent": 70, "children": [], "start_point": {"row": 44, "column": 74}, "end_point": {"row": 44, "column": 82}}, {"id": 72, "type": "identifier", "text": "e& allocator)", "parent": 70, "children": [], "start_point": {"row": 44, "column": 84}, "end_point": {"row": 44, "column": 97}}, {"id": 73, "type": "&", "text": " ", "parent": 70, "children": [], "start_point": {"row": 44, "column": 97}, "end_point": {"row": 44, "column": 98}}, {"id": 74, "type": "identifier", "text": "onst;\n ", "parent": 68, "children": [], "start_point": {"row": 44, "column": 99}, "end_point": {"row": 44, "column": 108}}, {"id": 75, "type": "identifier", "text": " ", "parent": 59, "children": [], "start_point": {"row": 44, "column": 110}, "end_point": {"row": 44, "column": 115}}, {"id": 76, "type": "declaration", "text": "Outcome Deserialize(const rapidjson::Value &value);\n\n\n ", "parent": 39, "children": [77, 78], "start_point": {"row": 45, "column": 20}, "end_point": {"row": 45, "column": 83}}, {"id": 77, "type": "type_identifier", "text": "Outcome Deserialize", "parent": 76, "children": [], "start_point": {"row": 45, "column": 20}, "end_point": {"row": 45, "column": 39}}, {"id": 78, "type": "function_declarator", "text": "const rapidjson::Value &value);\n\n\n ", "parent": 76, "children": [79, 80], "start_point": {"row": 45, "column": 40}, "end_point": {"row": 45, "column": 82}}, {"id": 79, "type": "identifier", "text": "const rapid", "parent": 78, "children": [], "start_point": {"row": 45, "column": 40}, "end_point": {"row": 45, "column": 51}}, {"id": 80, "type": "parameter_list", "text": "json::Value &value);\n\n\n ", "parent": 78, "children": [81], "start_point": {"row": 45, "column": 51}, "end_point": {"row": 45, "column": 82}}, {"id": 81, "type": "parameter_declaration", "text": "son::Value &value);\n\n\n ", "parent": 80, "children": [82, 83, 84, 87], "start_point": {"row": 45, "column": 52}, "end_point": {"row": 45, "column": 81}}, {"id": 82, "type": "type_qualifier", "text": "son::", "parent": 81, "children": [], "start_point": {"row": 45, "column": 52}, "end_point": {"row": 45, "column": 57}}, {"id": 83, "type": "type_identifier", "text": "alue &val", "parent": 81, "children": [], "start_point": {"row": 45, "column": 58}, "end_point": {"row": 45, "column": 67}}, {"id": 84, "type": "ERROR", "text": "ue);\n\n\n ", "parent": 81, "children": [85, 86], "start_point": {"row": 45, "column": 67}, "end_point": {"row": 45, "column": 76}}, {"id": 85, "type": "identifier", "text": ");\n\n\n", "parent": 84, "children": [], "start_point": {"row": 45, "column": 69}, "end_point": {"row": 45, "column": 74}}, {"id": 86, "type": "&", "text": " ", "parent": 84, "children": [], "start_point": {"row": 45, "column": 75}, "end_point": {"row": 45, "column": 76}}, {"id": 87, "type": "identifier", "text": " ", "parent": 81, "children": [], "start_point": {"row": 45, "column": 76}, "end_point": {"row": 45, "column": 81}}, {"id": 88, "type": "ERROR", "text": " /**\n * \u8bbe\u7f6e\u6240\u5c5e\u533a\u5757\u9ad8\u5ea6\n * @param BlockNumber \u6240\u5c5e\u533a\u5757\u9ad8\u5ea6\n */\n void SetBlockNumber(const int64_t& _blockNumber);\n\n /**\n * \u5224\u65ad\u53c2\u6570 BlockNumber \u662f\u5426\u5df2\u8d4b\u503c\n * @return BlockNumber \u662f\u5426\u5df2\u8d4b\u503c\n */\n bool BlockNumberHasBeenSet() const;\n\n /**\n * \u83b7\u53d6\u533a\u5757\u65f6\u95f4\u6233\n * @return BlockTimestamp \u533a\u5757\u65f6\u95f4\u6233\n */\n std::string GetBlockTimestamp() const;\n\n /**\n * \u8bbe\u7f6e\u533a\u5757\u65f6\u95f4\u6233\n * @param BlockTimestamp \u533a\u5757\u65f6\u95f4\u6233\n */\n void SetBlockTimestamp(const std::string& _blockTimestamp);\n\n /**\n * \u5224\u65ad\u53c2\u6570 BlockTimestamp \u662f\u5426\u5df2\u8d4b\u503c\n * @return BlockTimestamp \u662f\u5426\u5df2\u8d4b\u503c\n */\n bool BlockTimestampHasBeenSet() const;\n\n /**\n * \u83b7\u53d6\u4ea4\u6613\u54c8\u5e0c\n * @return TransHash \u4ea4\u6613\u54c8\u5e0c\n */\n std::string GetTransHash() const;\n\n /**\n * \u8bbe\u7f6e\u4ea4\u6613\u54c8\u5e0c\n * @param TransHash \u4ea4\u6613\u54c8\u5e0c\n */\n void SetTransHash(const std::string& _transHash);\n\n /**\n * \u5224\u65ad\u53c2\u6570 TransHash \u662f\u5426\u5df2\u8d4b\u503c\n * @return TransHash \u662f\u5426\u5df2\u8d4b\u503c\n */\n bool TransHashHasBeenSet() const;\n\n /**\n * \u83b7\u53d6\u4ea4\u6613\u53d1\u8d77\u8005\n * @return TransFrom \u4ea4\u6613\u53d1\u8d77\u8005\n */\n std::string GetTransFrom() const;\n\n /**\n * \u8bbe\u7f6e\u4ea4\u6613\u53d1\u8d77\u8005\n * @param TransFrom \u4ea4\u6613\u53d1\u8d77\u8005\n */\n void SetTransFrom(const std::string& _transFrom);\n\n /**\n * \u5224\u65ad\u53c2\u6570 TransFrom \u662f\u5426\u5df2\u8d4b\u503c\n * @return TransFrom \u662f\u5426\u5df2\u8d4b\u503c\n */\n bool TransFromHasBeenSet() const;\n\n /**\n * \u83b7\u53d6\u4ea4\u6613\u63a5\u6536\u8005\n * @return TransTo \u4ea4\u6613\u63a5\u6536\u8005\n */\n std::string GetTransTo() const;\n\n /**\n * \u8bbe\u7f6e\u4ea4\u6613\u63a5\u6536\u8005\n * @param TransTo \u4ea4\u6613\u63a5\u6536\u8005\n */\n void SetTransTo(const std::string& _transTo);\n\n /**\n * \u5224\u65ad\u53c2\u6570 TransTo \u662f\u5426\u5df2\u8d4b\u503c\n * @return TransTo \u662f\u5426\u5df2\u8d4b\u503c\n */\n bool TransToHasBeenSet() const;\n\n /**\n * \u83b7\u53d6\u843d\u5e93\u65f6\u95f4\n * @return CreateTime \u843d\u5e93\u65f6\u95f4\n */\n std::string GetCreateTime() const;\n\n /**\n * \u8bbe\u7f6e\u843d\u5e93\u65f6\u95f4\n * @param CreateTime \u843d\u5e93\u65f6\u95f4\n */\n void SetCreateTime(const std::string& _createTime);\n\n /**\n * \u5224\u65ad\u53c2\u6570 CreateTime \u662f\u5426\u5df2\u8d4b\u503c\n * @return CreateTime \u662f\u5426\u5df2\u8d4b\u503c\n */\n bool CreateTimeHasBeenSet() const;\n\n /**\n * \u83b7\u53d6\u4fee\u6539\u65f6\u95f4\n * @return ModifyTime \u4fee\u6539\u65f6\u95f4\n */\n std::string GetModifyTime() const;\n\n /**\n * \u8bbe\u7f6e\u4fee\u6539\u65f6\u95f4\n * @param ModifyTime \u4fee\u6539\u65f6\u95f4\n */\n void SetModifyTime(const std::string& _modifyTime);\n\n /**\n * \u5224\u65ad\u53c2\u6570 ModifyTime \u662f\u5426\u5df2\u8d4b\u503c\n * @return ModifyTime \u662f\u5426\u5df2\u8d4b\u503c\n */\n bool ModifyTimeHasBeenSet() const;\n\n private:\n\n /**\n * \u6240\u5c5e\u533a\u5757\u9ad8\u5ea6\n */\n int64_t m_blockNumber;\n bool m_blockNumberHasBeenSet;\n\n /**\n * \u533a\u5757\u65f6\u95f4\u6233\n */\n std::string m_blockTimestamp;\n bool m_blockTimestampHasBeenSet;\n\n /**\n * \u4ea4\u6613\u54c8\u5e0c\n */\n std::string m_transHash;\n bool m_transHashHasBeenSet;\n\n /**\n * \u4ea4\u6613\u53d1\u8d77\u8005\n */\n std::string m_transFrom;\n bool m_transFromHasBeenSet;\n\n /**\n * \u4ea4\u6613\u63a5\u6536\u8005\n */\n std::string m_transTo;\n bool m_transToHasBeenSet;\n\n /**\n * \u843d\u5e93\u65f6\u95f4\n */\n std::string m_createTime;\n bool m_createTimeHasBeenSet;\n\n /**\n * \u4fee\u6539\u65f6\u95f4\n */\n std::string m_modifyTime;\n bool m_modifyTimeHasBeenSet;\n\n };\n }\n }\n }\n}\n\n#endif // !TENCENTCLOUD_TBAAS_V20180416_MODEL_BCOSTRANSINFO_H_\n", "parent": 39, "children": [89, 90, 93, 106, 120, 132, 146, 158, 172, 184, 198, 210, 224, 236, 250, 262, 270, 273, 276, 281, 284, 289, 292, 297, 299, 304, 307, 312, 315, 320], "start_point": {"row": 52, "column": 20}, "end_point": {"row": 216, "column": 48}}, {"id": 89, "type": "primitive_type", "text": " ", "parent": 88, "children": [], "start_point": {"row": 52, "column": 20}, "end_point": {"row": 52, "column": 27}}, {"id": 90, "type": "function_declarator", "text": " /**\n ", "parent": 88, "children": [91, 92], "start_point": {"row": 52, "column": 28}, "end_point": {"row": 52, "column": 44}}, {"id": 91, "type": "identifier", "text": " /**\n ", "parent": 90, "children": [], "start_point": {"row": 52, "column": 28}, "end_point": {"row": 52, "column": 42}}, {"id": 92, "type": "parameter_list", "text": " ", "parent": 90, "children": [], "start_point": {"row": 52, "column": 42}, "end_point": {"row": 52, "column": 44}}, {"id": 93, "type": "declaration", "text": " * \u8bbe\u7f6e\u6240\u5c5e\u533a\u5757\u9ad8\u5ea6\n * @param BlockNumber \u6240\u5c5e\u533a\u5757\u9ad8\u5ea6\n */\n void SetBlockNumber(const int64_t& _blockNumber);\n\n /**\n * \u5224\u65ad\u53c2\u6570 BlockNumber \u662f\u5426", "parent": 88, "children": [94, 95, 96, 97], "start_point": {"row": 52, "column": 45}, "end_point": {"row": 58, "column": 69}}, {"id": 94, "type": "type_qualifier", "text": " ", "parent": 93, "children": [], "start_point": {"row": 52, "column": 45}, "end_point": {"row": 52, "column": 50}}, {"id": 95, "type": "ERROR", "text": " ", "parent": 93, "children": [], "start_point": {"row": 52, "column": 50}, "end_point": {"row": 52, "column": 51}}, {"id": 96, "type": "primitive_type", "text": " /", "parent": 93, "children": [], "start_point": {"row": 58, "column": 20}, "end_point": {"row": 58, "column": 24}}, {"id": 97, "type": "function_declarator", "text": "*\n * \u5224\u65ad\u53c2\u6570 BlockNumber \u662f", "parent": 93, "children": [98, 99], "start_point": {"row": 58, "column": 25}, "end_point": {"row": 58, "column": 68}}, {"id": 98, "type": "identifier", "text": "*\n ", "parent": 97, "children": [], "start_point": {"row": 58, "column": 25}, "end_point": {"row": 58, "column": 39}}, {"id": 99, "type": "parameter_list", "text": " * \u5224\u65ad\u53c2\u6570 BlockNumber \u662f", "parent": 97, "children": [100], "start_point": {"row": 58, "column": 39}, "end_point": {"row": 58, "column": 68}}, {"id": 100, "type": "parameter_declaration", "text": " * \u5224\u65ad\u53c2\u6570 BlockNumber ", "parent": 99, "children": [101, 102, 103, 105], "start_point": {"row": 58, "column": 40}, "end_point": {"row": 58, "column": 67}}, {"id": 101, "type": "type_qualifier", "text": " ", "parent": 100, "children": [], "start_point": {"row": 58, "column": 40}, "end_point": {"row": 58, "column": 45}}, {"id": 102, "type": "primitive_type", "text": " * \u5224\u65ad\u53c2", "parent": 100, "children": [], "start_point": {"row": 58, "column": 46}, "end_point": {"row": 58, "column": 53}}, {"id": 103, "type": "ERROR", "text": "\u6570", "parent": 100, "children": [104], "start_point": {"row": 58, "column": 53}, "end_point": {"row": 58, "column": 54}}, {"id": 104, "type": "&", "text": "\u6570", "parent": 103, "children": [], "start_point": {"row": 58, "column": 53}, "end_point": {"row": 58, "column": 54}}, {"id": 105, "type": "identifier", "text": "BlockNumber ", "parent": 100, "children": [], "start_point": {"row": 58, "column": 55}, "end_point": {"row": 58, "column": 67}}, {"id": 106, "type": "ERROR", "text": " * @return BlockTimestamp \u533a\u5757\u65f6\u95f4\u6233\n */\n std::string GetBlockTimestamp() const;\n\n /**\n * \u8bbe\u7f6e\u533a\u5757\u65f6\u95f4\u6233\n * @param BlockTimestamp \u533a\u5757\u65f6\u95f4\u6233\n ", "parent": 88, "children": [107, 108, 113, 116], "start_point": {"row": 64, "column": 20}, "end_point": {"row": 70, "column": 58}}, {"id": 107, "type": "primitive_type", "text": " ", "parent": 106, "children": [], "start_point": {"row": 64, "column": 20}, "end_point": {"row": 64, "column": 24}}, {"id": 108, "type": "ERROR", "text": " * @return BlockTim", "parent": 106, "children": [109], "start_point": {"row": 64, "column": 25}, "end_point": {"row": 64, "column": 55}}, {"id": 109, "type": "function_declarator", "text": " * @return BlockTi", "parent": 108, "children": [110, 111, 112], "start_point": {"row": 64, "column": 25}, "end_point": {"row": 64, "column": 54}}, {"id": 110, "type": "identifier", "text": " * @return", "parent": 109, "children": [], "start_point": {"row": 64, "column": 25}, "end_point": {"row": 64, "column": 46}}, {"id": 111, "type": "parameter_list", "text": " B", "parent": 109, "children": [], "start_point": {"row": 64, "column": 46}, "end_point": {"row": 64, "column": 48}}, {"id": 112, "type": "identifier", "text": "ockTi", "parent": 109, "children": [], "start_point": {"row": 64, "column": 49}, "end_point": {"row": 64, "column": 54}}, {"id": 113, "type": "ERROR", "text": "aram BlockT", "parent": 106, "children": [114, 115], "start_point": {"row": 70, "column": 20}, "end_point": {"row": 70, "column": 31}}, {"id": 114, "type": "identifier", "text": "ara", "parent": 113, "children": [], "start_point": {"row": 70, "column": 20}, "end_point": {"row": 70, "column": 23}}, {"id": 115, "type": "identifier", "text": "BlockT", "parent": 113, "children": [], "start_point": {"row": 70, "column": 25}, "end_point": {"row": 70, "column": 31}}, {"id": 116, "type": "function_declarator", "text": "mestamp \u533a\u5757\u65f6\u95f4\u6233\n ", "parent": 106, "children": [117, 118, 119], "start_point": {"row": 70, "column": 32}, "end_point": {"row": 70, "column": 57}}, {"id": 117, "type": "identifier", "text": "mestamp \u533a\u5757\u65f6\u95f4\u6233\n ", "parent": 116, "children": [], "start_point": {"row": 70, "column": 32}, "end_point": {"row": 70, "column": 49}}, {"id": 118, "type": "parameter_list", "text": " ", "parent": 116, "children": [], "start_point": {"row": 70, "column": 49}, "end_point": {"row": 70, "column": 51}}, {"id": 119, "type": "identifier", "text": " ", "parent": 116, "children": [], "start_point": {"row": 70, "column": 52}, "end_point": {"row": 70, "column": 57}}, {"id": 120, "type": "declaration", "text": " * @return BlockTimestamp \u662f\u5426\u5df2\u8d4b\u503c\n ", "parent": 88, "children": [121, 122], "start_point": {"row": 76, "column": 20}, "end_point": {"row": 76, "column": 79}}, {"id": 121, "type": "primitive_type", "text": " ", "parent": 120, "children": [], "start_point": {"row": 76, "column": 20}, "end_point": {"row": 76, "column": 24}}, {"id": 122, "type": "function_declarator", "text": " * @return BlockTimestamp \u662f\u5426\u5df2\u8d4b\u503c\n ", "parent": 120, "children": [123, 124], "start_point": {"row": 76, "column": 25}, "end_point": {"row": 76, "column": 78}}, {"id": 123, "type": "identifier", "text": " * @return B", "parent": 122, "children": [], "start_point": {"row": 76, "column": 25}, "end_point": {"row": 76, "column": 42}}, {"id": 124, "type": "parameter_list", "text": "lockTimestamp \u662f\u5426\u5df2\u8d4b\u503c\n ", "parent": 122, "children": [125], "start_point": {"row": 76, "column": 42}, "end_point": {"row": 76, "column": 78}}, {"id": 125, "type": "parameter_declaration", "text": "ockTimestamp \u662f\u5426\u5df2\u8d4b\u503c\n ", "parent": 124, "children": [126, 127, 128, 131], "start_point": {"row": 76, "column": 43}, "end_point": {"row": 76, "column": 77}}, {"id": 126, "type": "type_qualifier", "text": "ockTi", "parent": 125, "children": [], "start_point": {"row": 76, "column": 43}, "end_point": {"row": 76, "column": 48}}, {"id": 127, "type": "type_identifier", "text": "est", "parent": 125, "children": [], "start_point": {"row": 76, "column": 49}, "end_point": {"row": 76, "column": 52}}, {"id": 128, "type": "ERROR", "text": "amp \u662f\u5426\u5df2\u8d4b\u503c", "parent": 125, "children": [129, 130], "start_point": {"row": 76, "column": 52}, "end_point": {"row": 76, "column": 61}}, {"id": 129, "type": "identifier", "text": "p \u662f\u5426\u5df2\u8d4b", "parent": 128, "children": [], "start_point": {"row": 76, "column": 54}, "end_point": {"row": 76, "column": 60}}, {"id": 130, "type": "&", "text": "\u503c", "parent": 128, "children": [], "start_point": {"row": 76, "column": 60}, "end_point": {"row": 76, "column": 61}}, {"id": 131, "type": "identifier", "text": " ", "parent": 125, "children": [], "start_point": {"row": 76, "column": 62}, "end_point": {"row": 76, "column": 77}}, {"id": 132, "type": "ERROR", "text": " std::string GetTransHash() const;\n\n /**\n * \u8bbe\u7f6e\u4ea4\u6613\u54c8\u5e0c\n * @param TransHash \u4ea4\u6613\u54c8\u5e0c\n */\n void SetTransHash(const std::string& _transHash", "parent": 88, "children": [133, 134, 139, 142], "start_point": {"row": 82, "column": 20}, "end_point": {"row": 88, "column": 53}}, {"id": 133, "type": "primitive_type", "text": " ", "parent": 132, "children": [], "start_point": {"row": 82, "column": 20}, "end_point": {"row": 82, "column": 24}}, {"id": 134, "type": "ERROR", "text": " std::string GetTransHash()", "parent": 132, "children": [135], "start_point": {"row": 82, "column": 25}, "end_point": {"row": 82, "column": 58}}, {"id": 135, "type": "function_declarator", "text": " std::string GetTransHash(", "parent": 134, "children": [136, 137, 138], "start_point": {"row": 82, "column": 25}, "end_point": {"row": 82, "column": 57}}, {"id": 136, "type": "identifier", "text": " std::string GetTr", "parent": 135, "children": [], "start_point": {"row": 82, "column": 25}, "end_point": {"row": 82, "column": 49}}, {"id": 137, "type": "parameter_list", "text": "an", "parent": 135, "children": [], "start_point": {"row": 82, "column": 49}, "end_point": {"row": 82, "column": 51}}, {"id": 138, "type": "identifier", "text": "Hash(", "parent": 135, "children": [], "start_point": {"row": 82, "column": 52}, "end_point": {"row": 82, "column": 57}}, {"id": 139, "type": "ERROR", "text": "ash(const s", "parent": 132, "children": [140, 141], "start_point": {"row": 88, "column": 20}, "end_point": {"row": 88, "column": 31}}, {"id": 140, "type": "identifier", "text": "ash", "parent": 139, "children": [], "start_point": {"row": 88, "column": 20}, "end_point": {"row": 88, "column": 23}}, {"id": 141, "type": "identifier", "text": "onst s", "parent": 139, "children": [], "start_point": {"row": 88, "column": 25}, "end_point": {"row": 88, "column": 31}}, {"id": 142, "type": "function_declarator", "text": "d::string& _transHas", "parent": 132, "children": [143, 144, 145], "start_point": {"row": 88, "column": 32}, "end_point": {"row": 88, "column": 52}}, {"id": 143, "type": "identifier", "text": "d::string& _", "parent": 142, "children": [], "start_point": {"row": 88, "column": 32}, "end_point": {"row": 88, "column": 44}}, {"id": 144, "type": "parameter_list", "text": "tr", "parent": 142, "children": [], "start_point": {"row": 88, "column": 44}, "end_point": {"row": 88, "column": 46}}, {"id": 145, "type": "identifier", "text": "nsHas", "parent": 142, "children": [], "start_point": {"row": 88, "column": 47}, "end_point": {"row": 88, "column": 52}}, {"id": 146, "type": "declaration", "text": "ol TransHashHasBeenSet() const;\n\n ", "parent": 88, "children": [147, 148], "start_point": {"row": 94, "column": 20}, "end_point": {"row": 94, "column": 69}}, {"id": 147, "type": "primitive_type", "text": "ol T", "parent": 146, "children": [], "start_point": {"row": 94, "column": 20}, "end_point": {"row": 94, "column": 24}}, {"id": 148, "type": "function_declarator", "text": "ansHashHasBeenSet() const;\n\n ", "parent": 146, "children": [149, 150], "start_point": {"row": 94, "column": 25}, "end_point": {"row": 94, "column": 68}}, {"id": 149, "type": "identifier", "text": "ansHashHasBe", "parent": 148, "children": [], "start_point": {"row": 94, "column": 25}, "end_point": {"row": 94, "column": 37}}, {"id": 150, "type": "parameter_list", "text": "enSet() const;\n\n ", "parent": 148, "children": [151], "start_point": {"row": 94, "column": 37}, "end_point": {"row": 94, "column": 68}}, {"id": 151, "type": "parameter_declaration", "text": "nSet() const;\n\n ", "parent": 150, "children": [152, 153, 154, 157], "start_point": {"row": 94, "column": 38}, "end_point": {"row": 94, "column": 67}}, {"id": 152, "type": "type_qualifier", "text": "nSet(", "parent": 151, "children": [], "start_point": {"row": 94, "column": 38}, "end_point": {"row": 94, "column": 43}}, {"id": 153, "type": "type_identifier", "text": " co", "parent": 151, "children": [], "start_point": {"row": 94, "column": 44}, "end_point": {"row": 94, "column": 47}}, {"id": 154, "type": "ERROR", "text": "nst;\n\n ", "parent": 151, "children": [155, 156], "start_point": {"row": 94, "column": 47}, "end_point": {"row": 94, "column": 56}}, {"id": 155, "type": "identifier", "text": "t;\n\n ", "parent": 154, "children": [], "start_point": {"row": 94, "column": 49}, "end_point": {"row": 94, "column": 55}}, {"id": 156, "type": "&", "text": " ", "parent": 154, "children": [], "start_point": {"row": 94, "column": 55}, "end_point": {"row": 94, "column": 56}}, {"id": 157, "type": "identifier", "text": " ", "parent": 151, "children": [], "start_point": {"row": 94, "column": 57}, "end_point": {"row": 94, "column": 67}}, {"id": 158, "type": "ERROR", "text": " * \u8bbe\u7f6e\u4ea4\u6613\u53d1\u8d77\u8005\n * @param TransFrom \u4ea4\u6613\u53d1\u8d77\u8005\n */\n void SetTransFrom(const std::string& _transFrom);\n\n /**\n * \u5224\u65ad\u53c2\u6570 TransFrom \u662f\u5426\u5df2\u8d4b", "parent": 88, "children": [159, 160, 165, 168], "start_point": {"row": 100, "column": 20}, "end_point": {"row": 106, "column": 53}}, {"id": 159, "type": "primitive_type", "text": " ", "parent": 158, "children": [], "start_point": {"row": 100, "column": 20}, "end_point": {"row": 100, "column": 24}}, {"id": 160, "type": "ERROR", "text": " * \u8bbe\u7f6e\u4ea4\u6613\u53d1\u8d77\u8005\n ", "parent": 158, "children": [161], "start_point": {"row": 100, "column": 25}, "end_point": {"row": 100, "column": 53}}, {"id": 161, "type": "function_declarator", "text": " * \u8bbe\u7f6e\u4ea4\u6613\u53d1\u8d77\u8005\n ", "parent": 160, "children": [162, 163, 164], "start_point": {"row": 100, "column": 25}, "end_point": {"row": 100, "column": 52}}, {"id": 162, "type": "identifier", "text": " * \u8bbe", "parent": 161, "children": [], "start_point": {"row": 100, "column": 25}, "end_point": {"row": 100, "column": 44}}, {"id": 163, "type": "parameter_list", "text": "\u7f6e\u4ea4", "parent": 161, "children": [], "start_point": {"row": 100, "column": 44}, "end_point": {"row": 100, "column": 46}}, {"id": 164, "type": "identifier", "text": "\u53d1\u8d77\u8005\n ", "parent": 161, "children": [], "start_point": {"row": 100, "column": 47}, "end_point": {"row": 100, "column": 52}}, {"id": 165, "type": "ERROR", "text": " ", "parent": 158, "children": [166, 167], "start_point": {"row": 106, "column": 20}, "end_point": {"row": 106, "column": 31}}, {"id": 166, "type": "identifier", "text": " ", "parent": 165, "children": [], "start_point": {"row": 106, "column": 20}, "end_point": {"row": 106, "column": 23}}, {"id": 167, "type": "identifier", "text": " ", "parent": 165, "children": [], "start_point": {"row": 106, "column": 25}, "end_point": {"row": 106, "column": 31}}, {"id": 168, "type": "function_declarator", "text": "* \u5224\u65ad\u53c2\u6570 TransFrom \u662f\u5426\u5df2", "parent": 158, "children": [169, 170, 171], "start_point": {"row": 106, "column": 32}, "end_point": {"row": 106, "column": 52}}, {"id": 169, "type": "identifier", "text": "* \u5224\u65ad\u53c2\u6570 Trans", "parent": 168, "children": [], "start_point": {"row": 106, "column": 32}, "end_point": {"row": 106, "column": 44}}, {"id": 170, "type": "parameter_list", "text": "Fr", "parent": 168, "children": [], "start_point": {"row": 106, "column": 44}, "end_point": {"row": 106, "column": 46}}, {"id": 171, "type": "identifier", "text": "m \u662f\u5426\u5df2", "parent": 168, "children": [], "start_point": {"row": 106, "column": 47}, "end_point": {"row": 106, "column": 52}}, {"id": 172, "type": "declaration", "text": " * \u83b7\u53d6\u4ea4\u6613\u63a5\u6536\u8005\n * @return TransT", "parent": 88, "children": [173, 174], "start_point": {"row": 112, "column": 20}, "end_point": {"row": 112, "column": 69}}, {"id": 173, "type": "primitive_type", "text": " * ", "parent": 172, "children": [], "start_point": {"row": 112, "column": 20}, "end_point": {"row": 112, "column": 24}}, {"id": 174, "type": "function_declarator", "text": "\u53d6\u4ea4\u6613\u63a5\u6536\u8005\n * @return Trans", "parent": 172, "children": [175, 176], "start_point": {"row": 112, "column": 25}, "end_point": {"row": 112, "column": 68}}, {"id": 175, "type": "identifier", "text": "\u53d6\u4ea4\u6613\u63a5\u6536\u8005\n ", "parent": 174, "children": [], "start_point": {"row": 112, "column": 25}, "end_point": {"row": 112, "column": 37}}, {"id": 176, "type": "parameter_list", "text": " * @return Trans", "parent": 174, "children": [177], "start_point": {"row": 112, "column": 37}, "end_point": {"row": 112, "column": 68}}, {"id": 177, "type": "parameter_declaration", "text": " * @return Tran", "parent": 176, "children": [178, 179, 180, 183], "start_point": {"row": 112, "column": 38}, "end_point": {"row": 112, "column": 67}}, {"id": 178, "type": "type_qualifier", "text": " ", "parent": 177, "children": [], "start_point": {"row": 112, "column": 38}, "end_point": {"row": 112, "column": 43}}, {"id": 179, "type": "type_identifier", "text": " ", "parent": 177, "children": [], "start_point": {"row": 112, "column": 44}, "end_point": {"row": 112, "column": 47}}, {"id": 180, "type": "ERROR", "text": " * @", "parent": 177, "children": [181, 182], "start_point": {"row": 112, "column": 47}, "end_point": {"row": 112, "column": 56}}, {"id": 181, "type": "identifier", "text": " * ", "parent": 180, "children": [], "start_point": {"row": 112, "column": 49}, "end_point": {"row": 112, "column": 55}}, {"id": 182, "type": "&", "text": "@", "parent": 180, "children": [], "start_point": {"row": 112, "column": 55}, "end_point": {"row": 112, "column": 56}}, {"id": 183, "type": "identifier", "text": "eturn Tran", "parent": 177, "children": [], "start_point": {"row": 112, "column": 57}, "end_point": {"row": 112, "column": 67}}, {"id": 184, "type": "ERROR", "text": " */\n void SetTransTo(const std::string& _transTo);\n\n /**\n * \u5224\u65ad\u53c2\u6570 TransTo \u662f\u5426\u5df2\u8d4b\u503c\n * @return TransTo \u662f\u5426\u5df2\u8d4b\u503c\n */\n ", "parent": 88, "children": [185, 186, 191, 194], "start_point": {"row": 118, "column": 20}, "end_point": {"row": 124, "column": 51}}, {"id": 185, "type": "primitive_type", "text": " ", "parent": 184, "children": [], "start_point": {"row": 118, "column": 20}, "end_point": {"row": 118, "column": 24}}, {"id": 186, "type": "ERROR", "text": " */\n ", "parent": 184, "children": [187], "start_point": {"row": 118, "column": 25}, "end_point": {"row": 118, "column": 53}}, {"id": 187, "type": "function_declarator", "text": " */\n ", "parent": 186, "children": [188, 189, 190], "start_point": {"row": 118, "column": 25}, "end_point": {"row": 118, "column": 52}}, {"id": 188, "type": "identifier", "text": " */\n ", "parent": 187, "children": [], "start_point": {"row": 118, "column": 25}, "end_point": {"row": 118, "column": 44}}, {"id": 189, "type": "parameter_list", "text": " ", "parent": 187, "children": [], "start_point": {"row": 118, "column": 44}, "end_point": {"row": 118, "column": 46}}, {"id": 190, "type": "identifier", "text": " ", "parent": 187, "children": [], "start_point": {"row": 118, "column": 47}, "end_point": {"row": 118, "column": 52}}, {"id": 191, "type": "ERROR", "text": " ", "parent": 184, "children": [192, 193], "start_point": {"row": 124, "column": 20}, "end_point": {"row": 124, "column": 31}}, {"id": 192, "type": "identifier", "text": " ", "parent": 191, "children": [], "start_point": {"row": 124, "column": 20}, "end_point": {"row": 124, "column": 23}}, {"id": 193, "type": "identifier", "text": " ", "parent": 191, "children": [], "start_point": {"row": 124, "column": 25}, "end_point": {"row": 124, "column": 31}}, {"id": 194, "type": "function_declarator", "text": " */\n ", "parent": 184, "children": [195, 196, 197], "start_point": {"row": 124, "column": 32}, "end_point": {"row": 124, "column": 50}}, {"id": 195, "type": "identifier", "text": " */\n ", "parent": 194, "children": [], "start_point": {"row": 124, "column": 32}, "end_point": {"row": 124, "column": 42}}, {"id": 196, "type": "parameter_list", "text": " ", "parent": 194, "children": [], "start_point": {"row": 124, "column": 42}, "end_point": {"row": 124, "column": 44}}, {"id": 197, "type": "identifier", "text": " ", "parent": 194, "children": [], "start_point": {"row": 124, "column": 45}, "end_point": {"row": 124, "column": 50}}, {"id": 198, "type": "declaration", "text": " std::string GetCreateTime() c", "parent": 88, "children": [199, 200], "start_point": {"row": 130, "column": 20}, "end_point": {"row": 130, "column": 65}}, {"id": 199, "type": "primitive_type", "text": " ", "parent": 198, "children": [], "start_point": {"row": 130, "column": 20}, "end_point": {"row": 130, "column": 24}}, {"id": 200, "type": "function_declarator", "text": " std::string GetCreateTime() ", "parent": 198, "children": [201, 202], "start_point": {"row": 130, "column": 25}, "end_point": {"row": 130, "column": 64}}, {"id": 201, "type": "identifier", "text": " ", "parent": 200, "children": [], "start_point": {"row": 130, "column": 25}, "end_point": {"row": 130, "column": 35}}, {"id": 202, "type": "parameter_list", "text": " std::string GetCreateTime() ", "parent": 200, "children": [203], "start_point": {"row": 130, "column": 35}, "end_point": {"row": 130, "column": 64}}, {"id": 203, "type": "parameter_declaration", "text": "std::string GetCreateTime()", "parent": 202, "children": [204, 205, 206, 209], "start_point": {"row": 130, "column": 36}, "end_point": {"row": 130, "column": 63}}, {"id": 204, "type": "type_qualifier", "text": "std::", "parent": 203, "children": [], "start_point": {"row": 130, "column": 36}, "end_point": {"row": 130, "column": 41}}, {"id": 205, "type": "type_identifier", "text": "tri", "parent": 203, "children": [], "start_point": {"row": 130, "column": 42}, "end_point": {"row": 130, "column": 45}}, {"id": 206, "type": "ERROR", "text": "ng GetCre", "parent": 203, "children": [207, 208], "start_point": {"row": 130, "column": 45}, "end_point": {"row": 130, "column": 54}}, {"id": 207, "type": "identifier", "text": " GetCr", "parent": 206, "children": [], "start_point": {"row": 130, "column": 47}, "end_point": {"row": 130, "column": 53}}, {"id": 208, "type": "&", "text": "e", "parent": 206, "children": [], "start_point": {"row": 130, "column": 53}, "end_point": {"row": 130, "column": 54}}, {"id": 209, "type": "identifier", "text": "teTime()", "parent": 203, "children": [], "start_point": {"row": 130, "column": 55}, "end_point": {"row": 130, "column": 63}}, {"id": 210, "type": "ERROR", "text": "ng& _createTime);\n\n /**\n * \u5224\u65ad\u53c2\u6570 CreateTime \u662f\u5426\u5df2\u8d4b\u503c\n * @return CreateTime \u662f\u5426\u5df2\u8d4b\u503c\n */\n bool CreateTimeHasBeenSet() const;\n\n ", "parent": 88, "children": [211, 212, 217, 220], "start_point": {"row": 136, "column": 20}, "end_point": {"row": 142, "column": 54}}, {"id": 211, "type": "primitive_type", "text": "ng& ", "parent": 210, "children": [], "start_point": {"row": 136, "column": 20}, "end_point": {"row": 136, "column": 24}}, {"id": 212, "type": "ERROR", "text": "createTime);\n\n ", "parent": 210, "children": [213], "start_point": {"row": 136, "column": 25}, "end_point": {"row": 136, "column": 51}}, {"id": 213, "type": "function_declarator", "text": "createTime);\n\n ", "parent": 212, "children": [214, 215, 216], "start_point": {"row": 136, "column": 25}, "end_point": {"row": 136, "column": 50}}, {"id": 214, "type": "identifier", "text": "createTime);\n\n ", "parent": 213, "children": [], "start_point": {"row": 136, "column": 25}, "end_point": {"row": 136, "column": 42}}, {"id": 215, "type": "parameter_list", "text": " ", "parent": 213, "children": [], "start_point": {"row": 136, "column": 42}, "end_point": {"row": 136, "column": 44}}, {"id": 216, "type": "identifier", "text": " ", "parent": 213, "children": [], "start_point": {"row": 136, "column": 45}, "end_point": {"row": 136, "column": 50}}, {"id": 217, "type": "ERROR", "text": "BeenSet() c", "parent": 210, "children": [218, 219], "start_point": {"row": 142, "column": 20}, "end_point": {"row": 142, "column": 31}}, {"id": 218, "type": "identifier", "text": "Bee", "parent": 217, "children": [], "start_point": {"row": 142, "column": 20}, "end_point": {"row": 142, "column": 23}}, {"id": 219, "type": "identifier", "text": "et() c", "parent": 217, "children": [], "start_point": {"row": 142, "column": 25}, "end_point": {"row": 142, "column": 31}}, {"id": 220, "type": "function_declarator", "text": "nst;\n\n ", "parent": 210, "children": [221, 222, 223], "start_point": {"row": 142, "column": 32}, "end_point": {"row": 142, "column": 53}}, {"id": 221, "type": "identifier", "text": "nst;\n\n ", "parent": 220, "children": [], "start_point": {"row": 142, "column": 32}, "end_point": {"row": 142, "column": 45}}, {"id": 222, "type": "parameter_list", "text": " ", "parent": 220, "children": [], "start_point": {"row": 142, "column": 45}, "end_point": {"row": 142, "column": 47}}, {"id": 223, "type": "identifier", "text": " ", "parent": 220, "children": [], "start_point": {"row": 142, "column": 48}, "end_point": {"row": 142, "column": 53}}, {"id": 224, "type": "declaration", "text": " /**\n * \u8bbe\u7f6e\u4fee\u6539\u65f6", "parent": 88, "children": [225, 226], "start_point": {"row": 148, "column": 20}, "end_point": {"row": 148, "column": 71}}, {"id": 225, "type": "primitive_type", "text": " ", "parent": 224, "children": [], "start_point": {"row": 148, "column": 20}, "end_point": {"row": 148, "column": 24}}, {"id": 226, "type": "function_declarator", "text": " /**\n * \u8bbe\u7f6e\u4fee\u6539", "parent": 224, "children": [227, 228], "start_point": {"row": 148, "column": 25}, "end_point": {"row": 148, "column": 70}}, {"id": 227, "type": "identifier", "text": " ", "parent": 226, "children": [], "start_point": {"row": 148, "column": 25}, "end_point": {"row": 148, "column": 38}}, {"id": 228, "type": "parameter_list", "text": " /**\n * \u8bbe\u7f6e\u4fee\u6539", "parent": 226, "children": [229], "start_point": {"row": 148, "column": 38}, "end_point": {"row": 148, "column": 70}}, {"id": 229, "type": "parameter_declaration", "text": "/**\n * \u8bbe\u7f6e\u4fee", "parent": 228, "children": [230, 231, 232, 235], "start_point": {"row": 148, "column": 39}, "end_point": {"row": 148, "column": 69}}, {"id": 230, "type": "type_qualifier", "text": "/**\n ", "parent": 229, "children": [], "start_point": {"row": 148, "column": 39}, "end_point": {"row": 148, "column": 44}}, {"id": 231, "type": "type_identifier", "text": " ", "parent": 229, "children": [], "start_point": {"row": 148, "column": 45}, "end_point": {"row": 148, "column": 48}}, {"id": 232, "type": "ERROR", "text": " ", "parent": 229, "children": [233, 234], "start_point": {"row": 148, "column": 48}, "end_point": {"row": 148, "column": 57}}, {"id": 233, "type": "identifier", "text": " ", "parent": 232, "children": [], "start_point": {"row": 148, "column": 50}, "end_point": {"row": 148, "column": 56}}, {"id": 234, "type": "&", "text": " ", "parent": 232, "children": [], "start_point": {"row": 148, "column": 56}, "end_point": {"row": 148, "column": 57}}, {"id": 235, "type": "identifier", "text": " * \u8bbe\u7f6e\u4fee", "parent": 229, "children": [], "start_point": {"row": 148, "column": 58}, "end_point": {"row": 148, "column": 69}}, {"id": 236, "type": "ERROR", "text": " \u5224\u65ad\u53c2\u6570 ModifyTime \u662f\u5426\u5df2\u8d4b\u503c\n * @return ModifyTime \u662f\u5426\u5df2\u8d4b\u503c\n */\n bool ModifyTimeHasBeenSet() const;\n\n private:\n\n /**\n * \u6240\u5c5e\u533a\u5757\u9ad8\u5ea6\n ", "parent": 88, "children": [237, 238, 243, 246], "start_point": {"row": 154, "column": 20}, "end_point": {"row": 160, "column": 54}}, {"id": 237, "type": "primitive_type", "text": " \u5224\u65ad\u53c2", "parent": 236, "children": [], "start_point": {"row": 154, "column": 20}, "end_point": {"row": 154, "column": 24}}, {"id": 238, "type": "ERROR", "text": " ModifyTime \u662f\u5426\u5df2\u8d4b\u503c\n ", "parent": 236, "children": [239], "start_point": {"row": 154, "column": 25}, "end_point": {"row": 154, "column": 54}}, {"id": 239, "type": "function_declarator", "text": " ModifyTime \u662f\u5426\u5df2\u8d4b\u503c\n ", "parent": 238, "children": [240, 241, 242], "start_point": {"row": 154, "column": 25}, "end_point": {"row": 154, "column": 53}}, {"id": 240, "type": "identifier", "text": " ModifyTime \u662f\u5426\u5df2\u8d4b\u503c\n ", "parent": 239, "children": [], "start_point": {"row": 154, "column": 25}, "end_point": {"row": 154, "column": 45}}, {"id": 241, "type": "parameter_list", "text": " ", "parent": 239, "children": [], "start_point": {"row": 154, "column": 45}, "end_point": {"row": 154, "column": 47}}, {"id": 242, "type": "identifier", "text": " ", "parent": 239, "children": [], "start_point": {"row": 154, "column": 48}, "end_point": {"row": 154, "column": 53}}, {"id": 243, "type": "ERROR", "text": " ", "parent": 236, "children": [244, 245], "start_point": {"row": 160, "column": 20}, "end_point": {"row": 160, "column": 31}}, {"id": 244, "type": "identifier", "text": " ", "parent": 243, "children": [], "start_point": {"row": 160, "column": 20}, "end_point": {"row": 160, "column": 23}}, {"id": 245, "type": "identifier", "text": " ", "parent": 243, "children": [], "start_point": {"row": 160, "column": 25}, "end_point": {"row": 160, "column": 31}}, {"id": 246, "type": "function_declarator", "text": " * \u6240\u5c5e\u533a\u5757\u9ad8\u5ea6\n ", "parent": 236, "children": [247, 248, 249], "start_point": {"row": 160, "column": 32}, "end_point": {"row": 160, "column": 53}}, {"id": 247, "type": "identifier", "text": " * \u6240\u5c5e", "parent": 246, "children": [], "start_point": {"row": 160, "column": 32}, "end_point": {"row": 160, "column": 45}}, {"id": 248, "type": "parameter_list", "text": "\u533a\u5757", "parent": 246, "children": [], "start_point": {"row": 160, "column": 45}, "end_point": {"row": 160, "column": 47}}, {"id": 249, "type": "identifier", "text": "\u5ea6\n ", "parent": 246, "children": [], "start_point": {"row": 160, "column": 48}, "end_point": {"row": 160, "column": 53}}, {"id": 250, "type": "declaration", "text": "\n */\n std::s", "parent": 88, "children": [251, 252], "start_point": {"row": 166, "column": 20}, "end_point": {"row": 166, "column": 71}}, {"id": 251, "type": "primitive_type", "text": "\n ", "parent": 250, "children": [], "start_point": {"row": 166, "column": 20}, "end_point": {"row": 166, "column": 24}}, {"id": 252, "type": "function_declarator", "text": " */\n std::", "parent": 250, "children": [253, 254], "start_point": {"row": 166, "column": 25}, "end_point": {"row": 166, "column": 70}}, {"id": 253, "type": "identifier", "text": " ", "parent": 252, "children": [], "start_point": {"row": 166, "column": 25}, "end_point": {"row": 166, "column": 38}}, {"id": 254, "type": "parameter_list", "text": " */\n std::", "parent": 252, "children": [255], "start_point": {"row": 166, "column": 38}, "end_point": {"row": 166, "column": 70}}, {"id": 255, "type": "parameter_declaration", "text": " */\n std:", "parent": 254, "children": [256, 257, 258, 261], "start_point": {"row": 166, "column": 39}, "end_point": {"row": 166, "column": 69}}, {"id": 256, "type": "type_qualifier", "text": " */", "parent": 255, "children": [], "start_point": {"row": 166, "column": 39}, "end_point": {"row": 166, "column": 44}}, {"id": 257, "type": "type_identifier", "text": " ", "parent": 255, "children": [], "start_point": {"row": 166, "column": 45}, "end_point": {"row": 166, "column": 48}}, {"id": 258, "type": "ERROR", "text": " ", "parent": 255, "children": [259, 260], "start_point": {"row": 166, "column": 48}, "end_point": {"row": 166, "column": 57}}, {"id": 259, "type": "identifier", "text": " ", "parent": 258, "children": [], "start_point": {"row": 166, "column": 50}, "end_point": {"row": 166, "column": 56}}, {"id": 260, "type": "&", "text": " ", "parent": 258, "children": [], "start_point": {"row": 166, "column": 56}, "end_point": {"row": 166, "column": 57}}, {"id": 261, "type": "identifier", "text": " std:", "parent": 255, "children": [], "start_point": {"row": 166, "column": 58}, "end_point": {"row": 166, "column": 69}}, {"id": 262, "type": "ERROR", "text": "nsHash;\n bool m_transHashHasBeenSet;\n\n ", "parent": 88, "children": [263, 264, 269], "start_point": {"row": 172, "column": 20}, "end_point": {"row": 174, "column": 24}}, {"id": 263, "type": "primitive_type", "text": "nsHa", "parent": 262, "children": [], "start_point": {"row": 172, "column": 20}, "end_point": {"row": 172, "column": 24}}, {"id": 264, "type": "ERROR", "text": "h;\n bool m", "parent": 262, "children": [265], "start_point": {"row": 172, "column": 25}, "end_point": {"row": 172, "column": 54}}, {"id": 265, "type": "function_declarator", "text": "h;\n bool ", "parent": 264, "children": [266, 267, 268], "start_point": {"row": 172, "column": 25}, "end_point": {"row": 172, "column": 53}}, {"id": 266, "type": "identifier", "text": "h;\n ", "parent": 265, "children": [], "start_point": {"row": 172, "column": 25}, "end_point": {"row": 172, "column": 45}}, {"id": 267, "type": "parameter_list", "text": " ", "parent": 265, "children": [], "start_point": {"row": 172, "column": 45}, "end_point": {"row": 172, "column": 47}}, {"id": 268, "type": "identifier", "text": "bool ", "parent": 265, "children": [], "start_point": {"row": 172, "column": 48}, "end_point": {"row": 172, "column": 53}}, {"id": 269, "type": "identifier", "text": "et;\n\n ", "parent": 262, "children": [], "start_point": {"row": 174, "column": 16}, "end_point": {"row": 174, "column": 23}}, {"id": 270, "type": "declaration", "text": "sFrom;\n ", "parent": 88, "children": [271, 272], "start_point": {"row": 179, "column": 20}, "end_point": {"row": 179, "column": 42}}, {"id": 271, "type": "primitive_type", "text": "sFrom;\n", "parent": 270, "children": [], "start_point": {"row": 179, "column": 20}, "end_point": {"row": 179, "column": 27}}, {"id": 272, "type": "identifier", "text": " ", "parent": 270, "children": [], "start_point": {"row": 179, "column": 28}, "end_point": {"row": 179, "column": 41}}, {"id": 273, "type": "declaration", "text": "HasBeenSet;\n\n ", "parent": 88, "children": [274, 275], "start_point": {"row": 180, "column": 20}, "end_point": {"row": 180, "column": 49}}, {"id": 274, "type": "primitive_type", "text": "HasB", "parent": 273, "children": [], "start_point": {"row": 180, "column": 20}, "end_point": {"row": 180, "column": 24}}, {"id": 275, "type": "identifier", "text": "enSet;\n\n ", "parent": 273, "children": [], "start_point": {"row": 180, "column": 25}, "end_point": {"row": 180, "column": 48}}, {"id": 276, "type": "declaration", "text": " bool m_transTo", "parent": 88, "children": [277, 278, 280], "start_point": {"row": 185, "column": 20}, "end_point": {"row": 185, "column": 49}}, {"id": 277, "type": "type_identifier", "text": " ", "parent": 276, "children": [], "start_point": {"row": 185, "column": 20}, "end_point": {"row": 185, "column": 23}}, {"id": 278, "type": "ERROR", "text": " ", "parent": 276, "children": [279], "start_point": {"row": 185, "column": 23}, "end_point": {"row": 185, "column": 31}}, {"id": 279, "type": "identifier", "text": " ", "parent": 278, "children": [], "start_point": {"row": 185, "column": 25}, "end_point": {"row": 185, "column": 31}}, {"id": 280, "type": "identifier", "text": " bool m_transT", "parent": 276, "children": [], "start_point": {"row": 185, "column": 32}, "end_point": {"row": 185, "column": 48}}, {"id": 281, "type": "declaration", "text": " /**\n ", "parent": 88, "children": [282, 283], "start_point": {"row": 186, "column": 20}, "end_point": {"row": 186, "column": 52}}, {"id": 282, "type": "primitive_type", "text": " ", "parent": 281, "children": [], "start_point": {"row": 186, "column": 20}, "end_point": {"row": 186, "column": 24}}, {"id": 283, "type": "identifier", "text": " /**\n ", "parent": 281, "children": [], "start_point": {"row": 186, "column": 25}, "end_point": {"row": 186, "column": 51}}, {"id": 284, "type": "declaration", "text": " m_createTimeHasBeenSet;", "parent": 88, "children": [285, 286, 288], "start_point": {"row": 191, "column": 20}, "end_point": {"row": 191, "column": 44}}, {"id": 285, "type": "type_identifier", "text": " m_", "parent": 284, "children": [], "start_point": {"row": 191, "column": 20}, "end_point": {"row": 191, "column": 23}}, {"id": 286, "type": "ERROR", "text": "createTi", "parent": 284, "children": [287], "start_point": {"row": 191, "column": 23}, "end_point": {"row": 191, "column": 31}}, {"id": 287, "type": "identifier", "text": "eateTi", "parent": 286, "children": [], "start_point": {"row": 191, "column": 25}, "end_point": {"row": 191, "column": 31}}, {"id": 288, "type": "identifier", "text": "eHasBeenSet", "parent": 284, "children": [], "start_point": {"row": 191, "column": 32}, "end_point": {"row": 191, "column": 43}}, {"id": 289, "type": "declaration", "text": " /**\n *", "parent": 88, "children": [290, 291], "start_point": {"row": 192, "column": 20}, "end_point": {"row": 192, "column": 47}}, {"id": 290, "type": "primitive_type", "text": " /**", "parent": 289, "children": [], "start_point": {"row": 192, "column": 20}, "end_point": {"row": 192, "column": 24}}, {"id": 291, "type": "identifier", "text": " ", "parent": 289, "children": [], "start_point": {"row": 192, "column": 25}, "end_point": {"row": 192, "column": 46}}, {"id": 292, "type": "declaration", "text": "TimeHasBeenSet;\n\n ", "parent": 88, "children": [293, 294, 296], "start_point": {"row": 197, "column": 20}, "end_point": {"row": 197, "column": 44}}, {"id": 293, "type": "type_identifier", "text": "Tim", "parent": 292, "children": [], "start_point": {"row": 197, "column": 20}, "end_point": {"row": 197, "column": 23}}, {"id": 294, "type": "ERROR", "text": "eHasBeen", "parent": 292, "children": [295], "start_point": {"row": 197, "column": 23}, "end_point": {"row": 197, "column": 31}}, {"id": 295, "type": "identifier", "text": "asBeen", "parent": 294, "children": [], "start_point": {"row": 197, "column": 25}, "end_point": {"row": 197, "column": 31}}, {"id": 296, "type": "identifier", "text": "et;\n\n ", "parent": 292, "children": [], "start_point": {"row": 197, "column": 32}, "end_point": {"row": 197, "column": 43}}, {"id": 297, "type": "declaration", "text": " }\n }\n }\n}\n\n#en", "parent": 88, "children": [298], "start_point": {"row": 198, "column": 20}, "end_point": {"row": 198, "column": 47}}, {"id": 298, "type": "identifier", "text": " }\n }\n}\n\n#e", "parent": 297, "children": [], "start_point": {"row": 198, "column": 25}, "end_point": {"row": 198, "column": 46}}, {"id": 299, "type": "declaration", "text": "", "parent": 88, "children": [300, 301, 303], "start_point": {"row": 203, "column": 20}, "end_point": {"row": 203, "column": 42}}, {"id": 300, "type": "type_identifier", "text": "", "parent": 299, "children": [], "start_point": {"row": 203, "column": 20}, "end_point": {"row": 203, "column": 23}}, {"id": 301, "type": "ERROR", "text": "", "parent": 299, "children": [302], "start_point": {"row": 203, "column": 23}, "end_point": {"row": 203, "column": 31}}, {"id": 302, "type": "identifier", "text": "", "parent": 301, "children": [], "start_point": {"row": 203, "column": 25}, "end_point": {"row": 203, "column": 31}}, {"id": 303, "type": "identifier", "text": "", "parent": 299, "children": [], "start_point": {"row": 203, "column": 32}, "end_point": {"row": 203, "column": 41}}, {"id": 304, "type": "declaration", "text": "", "parent": 88, "children": [305, 306], "start_point": {"row": 204, "column": 20}, "end_point": {"row": 204, "column": 45}}, {"id": 305, "type": "primitive_type", "text": "", "parent": 304, "children": [], "start_point": {"row": 204, "column": 20}, "end_point": {"row": 204, "column": 24}}, {"id": 306, "type": "identifier", "text": "", "parent": 304, "children": [], "start_point": {"row": 204, "column": 25}, "end_point": {"row": 204, "column": 44}}, {"id": 307, "type": "declaration", "text": "", "parent": 88, "children": [308, 309, 311], "start_point": {"row": 209, "column": 20}, "end_point": {"row": 209, "column": 45}}, {"id": 308, "type": "type_identifier", "text": "", "parent": 307, "children": [], "start_point": {"row": 209, "column": 20}, "end_point": {"row": 209, "column": 23}}, {"id": 309, "type": "ERROR", "text": "", "parent": 307, "children": [310], "start_point": {"row": 209, "column": 23}, "end_point": {"row": 209, "column": 31}}, {"id": 310, "type": "identifier", "text": "", "parent": 309, "children": [], "start_point": {"row": 209, "column": 25}, "end_point": {"row": 209, "column": 31}}, {"id": 311, "type": "identifier", "text": "", "parent": 307, "children": [], "start_point": {"row": 209, "column": 32}, "end_point": {"row": 209, "column": 44}}, {"id": 312, "type": "declaration", "text": "", "parent": 88, "children": [313, 314], "start_point": {"row": 210, "column": 20}, "end_point": {"row": 210, "column": 48}}, {"id": 313, "type": "primitive_type", "text": "", "parent": 312, "children": [], "start_point": {"row": 210, "column": 20}, "end_point": {"row": 210, "column": 24}}, {"id": 314, "type": "identifier", "text": "", "parent": 312, "children": [], "start_point": {"row": 210, "column": 25}, "end_point": {"row": 210, "column": 47}}, {"id": 315, "type": "declaration", "text": "", "parent": 88, "children": [316, 317, 319], "start_point": {"row": 215, "column": 20}, "end_point": {"row": 215, "column": 45}}, {"id": 316, "type": "type_identifier", "text": "", "parent": 315, "children": [], "start_point": {"row": 215, "column": 20}, "end_point": {"row": 215, "column": 23}}, {"id": 317, "type": "ERROR", "text": "", "parent": 315, "children": [318], "start_point": {"row": 215, "column": 23}, "end_point": {"row": 215, "column": 31}}, {"id": 318, "type": "identifier", "text": "", "parent": 317, "children": [], "start_point": {"row": 215, "column": 25}, "end_point": {"row": 215, "column": 31}}, {"id": 319, "type": "identifier", "text": "", "parent": 315, "children": [], "start_point": {"row": 215, "column": 32}, "end_point": {"row": 215, "column": 44}}, {"id": 320, "type": "declaration", "text": "", "parent": 88, "children": [321, 322], "start_point": {"row": 216, "column": 20}, "end_point": {"row": 216, "column": 48}}, {"id": 321, "type": "primitive_type", "text": "", "parent": 320, "children": [], "start_point": {"row": 216, "column": 20}, "end_point": {"row": 216, "column": 24}}, {"id": 322, "type": "identifier", "text": "", "parent": 320, "children": [], "start_point": {"row": 216, "column": 25}, "end_point": {"row": 216, "column": 47}}, {"id": 323, "type": "#endif", "text": "", "parent": 0, "children": [], "start_point": {"row": 224, "column": 0}, "end_point": {"row": 224, "column": 6}}]}, "node_categories": {"declarations": {"functions": [27, 30, 33, 36, 39, 59, 78, 90, 97, 109, 116, 122, 135, 142, 148, 161, 168, 174, 187, 194, 200, 213, 220, 226, 239, 246, 252, 265], "variables": [62, 68, 76, 81, 93, 100, 120, 125, 146, 151, 172, 177, 198, 203, 224, 229, 250, 255, 270, 273, 276, 281, 284, 289, 292, 297, 299, 304, 307, 312, 315, 320], "classes": [], "imports": [6, 7, 9, 10, 12, 13, 15, 16, 18, 19, 21, 22, 24, 25], "modules": [], "enums": []}, "statements": {"expressions": [47, 50, 53], "assignments": [52], "loops": [], "conditionals": [0, 1, 2, 5, 28, 29, 31, 32, 34, 35, 37, 38, 40, 41, 43, 44, 46, 48, 54, 56, 60, 63, 65, 67, 69, 71, 72, 74, 75, 77, 79, 82, 83, 85, 87, 91, 94, 98, 101, 105, 110, 112, 114, 115, 117, 119, 123, 126, 127, 129, 131, 136, 138, 140, 141, 143, 145, 149, 152, 153, 155, 157, 162, 164, 166, 167, 169, 171, 175, 178, 179, 181, 183, 188, 190, 192, 193, 195, 197, 201, 204, 205, 207, 209, 214, 216, 218, 219, 221, 223, 227, 230, 231, 233, 235, 240, 242, 244, 245, 247, 249, 253, 256, 257, 259, 261, 266, 268, 269, 272, 275, 277, 279, 280, 283, 285, 287, 288, 291, 293, 295, 296, 298, 300, 302, 303, 306, 308, 310, 311, 314, 316, 318, 319, 322, 323], "returns": [], "exceptions": []}, "expressions": {"calls": [], "literals": [8, 11, 14, 17, 20, 23, 26], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [{"node_id": 27, "universal_type": "function", "name": "BcosTransInfo", "text_snippet": "namespace TencentCloud\n{\n namespace Tbaas\n {\n namespace V20180416\n {\n "}, {"node_id": 30, "universal_type": "function", "name": "BcosTransInfo", "text_snippet": "namespace Tbaas\n {\n namespace V20180416\n {\n namespace Model\n "}, {"node_id": 33, "universal_type": "function", "name": "BcosTransInfo", "text_snippet": "namespace V20180416\n {\n namespace Model\n {\n /**\n "}, {"node_id": 36, "universal_type": "function", "name": "BcosTransInfo", "text_snippet": "namespace Model\n {\n /**\n * Bcos\u4ea4\u6613\u4fe1\u606f\u5bf9\u8c61\n */\n "}, {"node_id": 39, "universal_type": "function", "name": "ToJsonObject", "text_snippet": "ansInfo : public AbstractModel\n {\n public:\n BcosTra"}, {"node_id": 59, "universal_type": "function", "name": "unknown", "text_snippet": "(rapidjson::Value &value, rapidjson::Document::AllocatorType& allocator) const;\n "}, {"node_id": 78, "universal_type": "function", "name": "unknown", "text_snippet": "const rapidjson::Value &value);\n\n\n "}, {"node_id": 90, "universal_type": "function", "name": "unknown", "text_snippet": " /**\n "}, {"node_id": 97, "universal_type": "function", "name": "unknown", "text_snippet": "*\n * \u5224\u65ad\u53c2\u6570 BlockNumber \u662f"}, {"node_id": 109, "universal_type": "function", "name": "unknown", "text_snippet": " * @return BlockTi"}, {"node_id": 116, "universal_type": "function", "name": "unknown", "text_snippet": "mestamp \u533a\u5757\u65f6\u95f4\u6233\n "}, {"node_id": 122, "universal_type": "function", "name": "unknown", "text_snippet": " * @return BlockTimestamp \u662f\u5426\u5df2\u8d4b\u503c\n "}, {"node_id": 135, "universal_type": "function", "name": "unknown", "text_snippet": " std::string GetTransHash("}, {"node_id": 142, "universal_type": "function", "name": "unknown", "text_snippet": "d::string& _transHas"}, {"node_id": 148, "universal_type": "function", "name": "unknown", "text_snippet": "ansHashHasBeenSet() const;\n\n "}, {"node_id": 161, "universal_type": "function", "name": "unknown", "text_snippet": " * \u8bbe\u7f6e\u4ea4\u6613\u53d1\u8d77\u8005\n "}, {"node_id": 168, "universal_type": "function", "name": "unknown", "text_snippet": "* \u5224\u65ad\u53c2\u6570 TransFrom \u662f\u5426\u5df2"}, {"node_id": 174, "universal_type": "function", "name": "unknown", "text_snippet": "\u53d6\u4ea4\u6613\u63a5\u6536\u8005\n * @return Trans"}, {"node_id": 187, "universal_type": "function", "name": "unknown", "text_snippet": " */\n "}, {"node_id": 194, "universal_type": "function", "name": "unknown", "text_snippet": " */\n "}, {"node_id": 200, "universal_type": "function", "name": "unknown", "text_snippet": " std::string GetCreateTime() "}, {"node_id": 213, "universal_type": "function", "name": "unknown", "text_snippet": "createTime);\n\n "}, {"node_id": 220, "universal_type": "function", "name": "unknown", "text_snippet": "nst;\n\n "}, {"node_id": 226, "universal_type": "function", "name": "unknown", "text_snippet": " /**\n * \u8bbe\u7f6e\u4fee\u6539"}, {"node_id": 239, "universal_type": "function", "name": "unknown", "text_snippet": " ModifyTime \u662f\u5426\u5df2\u8d4b\u503c\n "}, {"node_id": 246, "universal_type": "function", "name": "unknown", "text_snippet": " * \u6240\u5c5e\u533a\u5757\u9ad8\u5ea6\n "}, {"node_id": 252, "universal_type": "function", "name": "unknown", "text_snippet": " */\n std::"}, {"node_id": 265, "universal_type": "function", "name": "unknown", "text_snippet": "h;\n bool "}], "class_declarations": [], "import_statements": [{"node_id": 6, "text": "#include <string>\n"}, {"node_id": 7, "text": "#include"}, {"node_id": 9, "text": "#include <vector>\n"}, {"node_id": 10, "text": "#include"}, {"node_id": 12, "text": "#include <map>\n"}, {"node_id": 13, "text": "#include"}, {"node_id": 15, "text": "#include <tencentcloud/core/utils/rapidjson/document.h>\n"}, {"node_id": 16, "text": "#include"}, {"node_id": 18, "text": "#include <tencentcloud/core/utils/rapidjson/writer.h>\n"}, {"node_id": 19, "text": "#include"}, {"node_id": 21, "text": "#include <tencentcloud/core/utils/rapidjson/stringbuffer.h>\n"}, {"node_id": 22, "text": "#include"}, {"node_id": 24, "text": "#include <tencentcloud/core/AbstractModel.h>\n"}, {"node_id": 25, "text": "#include"}]}, "original_source_code": "/*\n * Copyright (c) 2017-2019 THL A29 Limited, a Tencent company. All Rights Reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n#ifndef TENCENTCLOUD_TBAAS_V20180416_MODEL_BCOSTRANSINFO_H_\n#define TENCENTCLOUD_TBAAS_V20180416_MODEL_BCOSTRANSINFO_H_\n\n#include <string>\n#include <vector>\n#include <map>\n#include <tencentcloud/core/utils/rapidjson/document.h>\n#include <tencentcloud/core/utils/rapidjson/writer.h>\n#include <tencentcloud/core/utils/rapidjson/stringbuffer.h>\n#include <tencentcloud/core/AbstractModel.h>\n\n\nnamespace TencentCloud\n{\n namespace Tbaas\n {\n namespace V20180416\n {\n namespace Model\n {\n /**\n * Bcos\u4ea4\u6613\u4fe1\u606f\u5bf9\u8c61\n */\n class BcosTransInfo : public AbstractModel\n {\n public:\n BcosTransInfo();\n ~BcosTransInfo() = default;\n void ToJsonObject(rapidjson::Value &value, rapidjson::Document::AllocatorType& allocator) const;\n CoreInternalOutcome Deserialize(const rapidjson::Value &value);\n\n\n /**\n * \u83b7\u53d6\u6240\u5c5e\u533a\u5757\u9ad8\u5ea6\n * @return BlockNumber \u6240\u5c5e\u533a\u5757\u9ad8\u5ea6\n */\n int64_t GetBlockNumber() const;\n\n /**\n * \u8bbe\u7f6e\u6240\u5c5e\u533a\u5757\u9ad8\u5ea6\n * @param BlockNumber \u6240\u5c5e\u533a\u5757\u9ad8\u5ea6\n */\n void SetBlockNumber(const int64_t& _blockNumber);\n\n /**\n * \u5224\u65ad\u53c2\u6570 BlockNumber \u662f\u5426\u5df2\u8d4b\u503c\n * @return BlockNumber \u662f\u5426\u5df2\u8d4b\u503c\n */\n bool BlockNumberHasBeenSet() const;\n\n /**\n * \u83b7\u53d6\u533a\u5757\u65f6\u95f4\u6233\n * @return BlockTimestamp \u533a\u5757\u65f6\u95f4\u6233\n */\n std::string GetBlockTimestamp() const;\n\n /**\n * \u8bbe\u7f6e\u533a\u5757\u65f6\u95f4\u6233\n * @param BlockTimestamp \u533a\u5757\u65f6\u95f4\u6233\n */\n void SetBlockTimestamp(const std::string& _blockTimestamp);\n\n /**\n * \u5224\u65ad\u53c2\u6570 BlockTimestamp \u662f\u5426\u5df2\u8d4b\u503c\n * @return BlockTimestamp \u662f\u5426\u5df2\u8d4b\u503c\n */\n bool BlockTimestampHasBeenSet() const;\n\n /**\n * \u83b7\u53d6\u4ea4\u6613\u54c8\u5e0c\n * @return TransHash \u4ea4\u6613\u54c8\u5e0c\n */\n std::string GetTransHash() const;\n\n /**\n * \u8bbe\u7f6e\u4ea4\u6613\u54c8\u5e0c\n * @param TransHash \u4ea4\u6613\u54c8\u5e0c\n */\n void SetTransHash(const std::string& _transHash);\n\n /**\n * \u5224\u65ad\u53c2\u6570 TransHash \u662f\u5426\u5df2\u8d4b\u503c\n * @return TransHash \u662f\u5426\u5df2\u8d4b\u503c\n */\n bool TransHashHasBeenSet() const;\n\n /**\n * \u83b7\u53d6\u4ea4\u6613\u53d1\u8d77\u8005\n * @return TransFrom \u4ea4\u6613\u53d1\u8d77\u8005\n */\n std::string GetTransFrom() const;\n\n /**\n * \u8bbe\u7f6e\u4ea4\u6613\u53d1\u8d77\u8005\n * @param TransFrom \u4ea4\u6613\u53d1\u8d77\u8005\n */\n void SetTransFrom(const std::string& _transFrom);\n\n /**\n * \u5224\u65ad\u53c2\u6570 TransFrom \u662f\u5426\u5df2\u8d4b\u503c\n * @return TransFrom \u662f\u5426\u5df2\u8d4b\u503c\n */\n bool TransFromHasBeenSet() const;\n\n /**\n * \u83b7\u53d6\u4ea4\u6613\u63a5\u6536\u8005\n * @return TransTo \u4ea4\u6613\u63a5\u6536\u8005\n */\n std::string GetTransTo() const;\n\n /**\n * \u8bbe\u7f6e\u4ea4\u6613\u63a5\u6536\u8005\n * @param TransTo \u4ea4\u6613\u63a5\u6536\u8005\n */\n void SetTransTo(const std::string& _transTo);\n\n /**\n * \u5224\u65ad\u53c2\u6570 TransTo \u662f\u5426\u5df2\u8d4b\u503c\n * @return TransTo \u662f\u5426\u5df2\u8d4b\u503c\n */\n bool TransToHasBeenSet() const;\n\n /**\n * \u83b7\u53d6\u843d\u5e93\u65f6\u95f4\n * @return CreateTime \u843d\u5e93\u65f6\u95f4\n */\n std::string GetCreateTime() const;\n\n /**\n * \u8bbe\u7f6e\u843d\u5e93\u65f6\u95f4\n * @param CreateTime \u843d\u5e93\u65f6\u95f4\n */\n void SetCreateTime(const std::string& _createTime);\n\n /**\n * \u5224\u65ad\u53c2\u6570 CreateTime \u662f\u5426\u5df2\u8d4b\u503c\n * @return CreateTime \u662f\u5426\u5df2\u8d4b\u503c\n */\n bool CreateTimeHasBeenSet() const;\n\n /**\n * \u83b7\u53d6\u4fee\u6539\u65f6\u95f4\n * @return ModifyTime \u4fee\u6539\u65f6\u95f4\n */\n std::string GetModifyTime() const;\n\n /**\n * \u8bbe\u7f6e\u4fee\u6539\u65f6\u95f4\n * @param ModifyTime \u4fee\u6539\u65f6\u95f4\n */\n void SetModifyTime(const std::string& _modifyTime);\n\n /**\n * \u5224\u65ad\u53c2\u6570 ModifyTime \u662f\u5426\u5df2\u8d4b\u503c\n * @return ModifyTime \u662f\u5426\u5df2\u8d4b\u503c\n */\n bool ModifyTimeHasBeenSet() const;\n\n private:\n\n /**\n * \u6240\u5c5e\u533a\u5757\u9ad8\u5ea6\n */\n int64_t m_blockNumber;\n bool m_blockNumberHasBeenSet;\n\n /**\n * \u533a\u5757\u65f6\u95f4\u6233\n */\n std::string m_blockTimestamp;\n bool m_blockTimestampHasBeenSet;\n\n /**\n * \u4ea4\u6613\u54c8\u5e0c\n */\n std::string m_transHash;\n bool m_transHashHasBeenSet;\n\n /**\n * \u4ea4\u6613\u53d1\u8d77\u8005\n */\n std::string m_transFrom;\n bool m_transFromHasBeenSet;\n\n /**\n * \u4ea4\u6613\u63a5\u6536\u8005\n */\n std::string m_transTo;\n bool m_transToHasBeenSet;\n\n /**\n * \u843d\u5e93\u65f6\u95f4\n */\n std::string m_createTime;\n bool m_createTimeHasBeenSet;\n\n /**\n * \u4fee\u6539\u65f6\u95f4\n */\n std::string m_modifyTime;\n bool m_modifyTimeHasBeenSet;\n\n };\n }\n }\n }\n}\n\n#endif // !TENCENTCLOUD_TBAAS_V20180416_MODEL_BCOSTRANSINFO_H_\n"}
80,038
c
#include <seccomp.h> int main(void) { scmp_filter_ctx ctx = seccomp_init(SCMP_ACT_ALLOW); seccomp_rule_add(ctx, SCMP_ACT_ERRNO(0), SCMP_SYS(chown), 0); seccomp_rule_add(ctx, SCMP_ACT_ERRNO(0), SCMP_SYS(fchown), 0); seccomp_rule_add(ctx, SCMP_ACT_ERRNO(0), SCMP_SYS(lchown), 0); seccomp_rule_add(ctx, SCMP_ACT_ERRNO(0), SCMP_SYS(fchownat), 0); seccomp_export_bpf(ctx, 1); }
36.9
10
(translation_unit) "#include <seccomp.h>\n\nint main(void)\n{\n scmp_filter_ctx ctx = seccomp_init(SCMP_ACT_ALLOW);\n seccomp_rule_add(ctx, SCMP_ACT_ERRNO(0), SCMP_SYS(chown), 0);\n seccomp_rule_add(ctx, SCMP_ACT_ERRNO(0), SCMP_SYS(fchown), 0);\n seccomp_rule_add(ctx, SCMP_ACT_ERRNO(0), SCMP_SYS(lchown), 0);\n seccomp_rule_add(ctx, SCMP_ACT_ERRNO(0), SCMP_SYS(fchownat), 0);\n seccomp_export_bpf(ctx, 1);\n}\n" (preproc_include) "#include <seccomp.h>\n" (#include) "#include" (system_lib_string) "<seccomp.h>" (function_definition) "int main(void)\n{\n scmp_filter_ctx ctx = seccomp_init(SCMP_ACT_ALLOW);\n seccomp_rule_add(ctx, SCMP_ACT_ERRNO(0), SCMP_SYS(chown), 0);\n seccomp_rule_add(ctx, SCMP_ACT_ERRNO(0), SCMP_SYS(fchown), 0);\n seccomp_rule_add(ctx, SCMP_ACT_ERRNO(0), SCMP_SYS(lchown), 0);\n seccomp_rule_add(ctx, SCMP_ACT_ERRNO(0), SCMP_SYS(fchownat), 0);\n seccomp_export_bpf(ctx, 1);\n}" (primitive_type) "int" (function_declarator) "main(void)" (identifier) "main" (parameter_list) "(void)" (() "(" (parameter_declaration) "void" (primitive_type) "void" ()) ")" (compound_statement) "{\n scmp_filter_ctx ctx = seccomp_init(SCMP_ACT_ALLOW);\n seccomp_rule_add(ctx, SCMP_ACT_ERRNO(0), SCMP_SYS(chown), 0);\n seccomp_rule_add(ctx, SCMP_ACT_ERRNO(0), SCMP_SYS(fchown), 0);\n seccomp_rule_add(ctx, SCMP_ACT_ERRNO(0), SCMP_SYS(lchown), 0);\n seccomp_rule_add(ctx, SCMP_ACT_ERRNO(0), SCMP_SYS(fchownat), 0);\n seccomp_export_bpf(ctx, 1);\n}" ({) "{" (declaration) "scmp_filter_ctx ctx = seccomp_init(SCMP_ACT_ALLOW);" (type_identifier) "scmp_filter_ctx" (init_declarator) "ctx = seccomp_init(SCMP_ACT_ALLOW)" (identifier) "ctx" (=) "=" (call_expression) "seccomp_init(SCMP_ACT_ALLOW)" (identifier) "seccomp_init" (argument_list) "(SCMP_ACT_ALLOW)" (() "(" (identifier) "SCMP_ACT_ALLOW" ()) ")" (;) ";" (expression_statement) "seccomp_rule_add(ctx, SCMP_ACT_ERRNO(0), SCMP_SYS(chown), 0);" (call_expression) "seccomp_rule_add(ctx, SCMP_ACT_ERRNO(0), SCMP_SYS(chown), 0)" (identifier) "seccomp_rule_add" (argument_list) "(ctx, SCMP_ACT_ERRNO(0), SCMP_SYS(chown), 0)" (() "(" (identifier) "ctx" (,) "," (call_expression) "SCMP_ACT_ERRNO(0)" (identifier) "SCMP_ACT_ERRNO" (argument_list) "(0)" (() "(" (number_literal) "0" ()) ")" (,) "," (call_expression) "SCMP_SYS(chown)" (identifier) "SCMP_SYS" (argument_list) "(chown)" (() "(" (identifier) "chown" ()) ")" (,) "," (number_literal) "0" ()) ")" (;) ";" (expression_statement) "seccomp_rule_add(ctx, SCMP_ACT_ERRNO(0), SCMP_SYS(fchown), 0);" (call_expression) "seccomp_rule_add(ctx, SCMP_ACT_ERRNO(0), SCMP_SYS(fchown), 0)" (identifier) "seccomp_rule_add" (argument_list) "(ctx, SCMP_ACT_ERRNO(0), SCMP_SYS(fchown), 0)" (() "(" (identifier) "ctx" (,) "," (call_expression) "SCMP_ACT_ERRNO(0)" (identifier) "SCMP_ACT_ERRNO" (argument_list) "(0)" (() "(" (number_literal) "0" ()) ")" (,) "," (call_expression) "SCMP_SYS(fchown)" (identifier) "SCMP_SYS" (argument_list) "(fchown)" (() "(" (identifier) "fchown" ()) ")" (,) "," (number_literal) "0" ()) ")" (;) ";" (expression_statement) "seccomp_rule_add(ctx, SCMP_ACT_ERRNO(0), SCMP_SYS(lchown), 0);" (call_expression) "seccomp_rule_add(ctx, SCMP_ACT_ERRNO(0), SCMP_SYS(lchown), 0)" (identifier) "seccomp_rule_add" (argument_list) "(ctx, SCMP_ACT_ERRNO(0), SCMP_SYS(lchown), 0)" (() "(" (identifier) "ctx" (,) "," (call_expression) "SCMP_ACT_ERRNO(0)" (identifier) "SCMP_ACT_ERRNO" (argument_list) "(0)" (() "(" (number_literal) "0" ()) ")" (,) "," (call_expression) "SCMP_SYS(lchown)" (identifier) "SCMP_SYS" (argument_list) "(lchown)" (() "(" (identifier) "lchown" ()) ")" (,) "," (number_literal) "0" ()) ")" (;) ";" (expression_statement) "seccomp_rule_add(ctx, SCMP_ACT_ERRNO(0), SCMP_SYS(fchownat), 0);" (call_expression) "seccomp_rule_add(ctx, SCMP_ACT_ERRNO(0), SCMP_SYS(fchownat), 0)" (identifier) "seccomp_rule_add" (argument_list) "(ctx, SCMP_ACT_ERRNO(0), SCMP_SYS(fchownat), 0)" (() "(" (identifier) "ctx" (,) "," (call_expression) "SCMP_ACT_ERRNO(0)" (identifier) "SCMP_ACT_ERRNO" (argument_list) "(0)" (() "(" (number_literal) "0" ()) ")" (,) "," (call_expression) "SCMP_SYS(fchownat)" (identifier) "SCMP_SYS" (argument_list) "(fchownat)" (() "(" (identifier) "fchownat" ()) ")" (,) "," (number_literal) "0" ()) ")" (;) ";" (expression_statement) "seccomp_export_bpf(ctx, 1);" (call_expression) "seccomp_export_bpf(ctx, 1)" (identifier) "seccomp_export_bpf" (argument_list) "(ctx, 1)" (() "(" (identifier) "ctx" (,) "," (number_literal) "1" ()) ")" (;) ";" (}) "}"
134
0
{"language": "c", "success": true, "metadata": {"lines": 10, "avg_line_length": 36.9, "nodes": 76, "errors": 0, "source_hash": "6318be355b886b250353af20f7917524375f5afedc8526b7926514c6ef8bd597", "categorized_nodes": 57}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#include <seccomp.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": "<seccomp.h>", "parent": 0, "children": [], "start_point": {"row": 0, "column": 9}, "end_point": {"row": 0, "column": 20}}, {"id": 3, "type": "function_definition", "text": "int main(void)\n{\n\tscmp_filter_ctx ctx = seccomp_init(SCMP_ACT_ALLOW);\n\tseccomp_rule_add(ctx, SCMP_ACT_ERRNO(0), SCMP_SYS(chown), 0);\n\tseccomp_rule_add(ctx, SCMP_ACT_ERRNO(0), SCMP_SYS(fchown), 0);\n\tseccomp_rule_add(ctx, SCMP_ACT_ERRNO(0), SCMP_SYS(lchown), 0);\n\tseccomp_rule_add(ctx, SCMP_ACT_ERRNO(0), SCMP_SYS(fchownat), 0);\n\tseccomp_export_bpf(ctx, 1);\n}", "parent": null, "children": [4, 5], "start_point": {"row": 2, "column": 0}, "end_point": {"row": 10, "column": 1}}, {"id": 4, "type": "primitive_type", "text": "int", "parent": 3, "children": [], "start_point": {"row": 2, "column": 0}, "end_point": {"row": 2, "column": 3}}, {"id": 5, "type": "function_declarator", "text": "main(void)", "parent": 3, "children": [6, 7], "start_point": {"row": 2, "column": 4}, "end_point": {"row": 2, "column": 14}}, {"id": 6, "type": "identifier", "text": "main", "parent": 5, "children": [], "start_point": {"row": 2, "column": 4}, "end_point": {"row": 2, "column": 8}}, {"id": 7, "type": "parameter_list", "text": "(void)", "parent": 5, "children": [8], "start_point": {"row": 2, "column": 8}, "end_point": {"row": 2, "column": 14}}, {"id": 8, "type": "parameter_declaration", "text": "void", "parent": 7, "children": [9], "start_point": {"row": 2, "column": 9}, "end_point": {"row": 2, "column": 13}}, {"id": 9, "type": "primitive_type", "text": "void", "parent": 8, "children": [], "start_point": {"row": 2, "column": 9}, "end_point": {"row": 2, "column": 13}}, {"id": 10, "type": "declaration", "text": "scmp_filter_ctx ctx = seccomp_init(SCMP_ACT_ALLOW);", "parent": 3, "children": [11, 12], "start_point": {"row": 4, "column": 1}, "end_point": {"row": 4, "column": 52}}, {"id": 11, "type": "type_identifier", "text": "scmp_filter_ctx", "parent": 10, "children": [], "start_point": {"row": 4, "column": 1}, "end_point": {"row": 4, "column": 16}}, {"id": 12, "type": "init_declarator", "text": "ctx = seccomp_init(SCMP_ACT_ALLOW)", "parent": 10, "children": [13, 14, 15], "start_point": {"row": 4, "column": 17}, "end_point": {"row": 4, "column": 51}}, {"id": 13, "type": "identifier", "text": "ctx", "parent": 12, "children": [], "start_point": {"row": 4, "column": 17}, "end_point": {"row": 4, "column": 20}}, {"id": 14, "type": "=", "text": "=", "parent": 12, "children": [], "start_point": {"row": 4, "column": 21}, "end_point": {"row": 4, "column": 22}}, {"id": 15, "type": "call_expression", "text": "seccomp_init(SCMP_ACT_ALLOW)", "parent": 12, "children": [16, 17], "start_point": {"row": 4, "column": 23}, "end_point": {"row": 4, "column": 51}}, {"id": 16, "type": "identifier", "text": "seccomp_init", "parent": 15, "children": [], "start_point": {"row": 4, "column": 23}, "end_point": {"row": 4, "column": 35}}, {"id": 17, "type": "argument_list", "text": "(SCMP_ACT_ALLOW)", "parent": 15, "children": [18], "start_point": {"row": 4, "column": 35}, "end_point": {"row": 4, "column": 51}}, {"id": 18, "type": "identifier", "text": "SCMP_ACT_ALLOW", "parent": 17, "children": [], "start_point": {"row": 4, "column": 36}, "end_point": {"row": 4, "column": 50}}, {"id": 19, "type": "call_expression", "text": "seccomp_rule_add(ctx, SCMP_ACT_ERRNO(0), SCMP_SYS(chown), 0)", "parent": 3, "children": [20, 21], "start_point": {"row": 5, "column": 1}, "end_point": {"row": 5, "column": 61}}, {"id": 20, "type": "identifier", "text": "seccomp_rule_add", "parent": 19, "children": [], "start_point": {"row": 5, "column": 1}, "end_point": {"row": 5, "column": 17}}, {"id": 21, "type": "argument_list", "text": "(ctx, SCMP_ACT_ERRNO(0), SCMP_SYS(chown), 0)", "parent": 19, "children": [22, 23, 27, 31], "start_point": {"row": 5, "column": 17}, "end_point": {"row": 5, "column": 61}}, {"id": 22, "type": "identifier", "text": "ctx", "parent": 21, "children": [], "start_point": {"row": 5, "column": 18}, "end_point": {"row": 5, "column": 21}}, {"id": 23, "type": "call_expression", "text": "SCMP_ACT_ERRNO(0)", "parent": 21, "children": [24, 25], "start_point": {"row": 5, "column": 23}, "end_point": {"row": 5, "column": 40}}, {"id": 24, "type": "identifier", "text": "SCMP_ACT_ERRNO", "parent": 23, "children": [], "start_point": {"row": 5, "column": 23}, "end_point": {"row": 5, "column": 37}}, {"id": 25, "type": "argument_list", "text": "(0)", "parent": 23, "children": [26], "start_point": {"row": 5, "column": 37}, "end_point": {"row": 5, "column": 40}}, {"id": 26, "type": "number_literal", "text": "0", "parent": 25, "children": [], "start_point": {"row": 5, "column": 38}, "end_point": {"row": 5, "column": 39}}, {"id": 27, "type": "call_expression", "text": "SCMP_SYS(chown)", "parent": 21, "children": [28, 29], "start_point": {"row": 5, "column": 42}, "end_point": {"row": 5, "column": 57}}, {"id": 28, "type": "identifier", "text": "SCMP_SYS", "parent": 27, "children": [], "start_point": {"row": 5, "column": 42}, "end_point": {"row": 5, "column": 50}}, {"id": 29, "type": "argument_list", "text": "(chown)", "parent": 27, "children": [30], "start_point": {"row": 5, "column": 50}, "end_point": {"row": 5, "column": 57}}, {"id": 30, "type": "identifier", "text": "chown", "parent": 29, "children": [], "start_point": {"row": 5, "column": 51}, "end_point": {"row": 5, "column": 56}}, {"id": 31, "type": "number_literal", "text": "0", "parent": 21, "children": [], "start_point": {"row": 5, "column": 59}, "end_point": {"row": 5, "column": 60}}, {"id": 32, "type": "call_expression", "text": "seccomp_rule_add(ctx, SCMP_ACT_ERRNO(0), SCMP_SYS(fchown), 0)", "parent": 3, "children": [33, 34], "start_point": {"row": 6, "column": 1}, "end_point": {"row": 6, "column": 62}}, {"id": 33, "type": "identifier", "text": "seccomp_rule_add", "parent": 32, "children": [], "start_point": {"row": 6, "column": 1}, "end_point": {"row": 6, "column": 17}}, {"id": 34, "type": "argument_list", "text": "(ctx, SCMP_ACT_ERRNO(0), SCMP_SYS(fchown), 0)", "parent": 32, "children": [35, 36, 40, 44], "start_point": {"row": 6, "column": 17}, "end_point": {"row": 6, "column": 62}}, {"id": 35, "type": "identifier", "text": "ctx", "parent": 34, "children": [], "start_point": {"row": 6, "column": 18}, "end_point": {"row": 6, "column": 21}}, {"id": 36, "type": "call_expression", "text": "SCMP_ACT_ERRNO(0)", "parent": 34, "children": [37, 38], "start_point": {"row": 6, "column": 23}, "end_point": {"row": 6, "column": 40}}, {"id": 37, "type": "identifier", "text": "SCMP_ACT_ERRNO", "parent": 36, "children": [], "start_point": {"row": 6, "column": 23}, "end_point": {"row": 6, "column": 37}}, {"id": 38, "type": "argument_list", "text": "(0)", "parent": 36, "children": [39], "start_point": {"row": 6, "column": 37}, "end_point": {"row": 6, "column": 40}}, {"id": 39, "type": "number_literal", "text": "0", "parent": 38, "children": [], "start_point": {"row": 6, "column": 38}, "end_point": {"row": 6, "column": 39}}, {"id": 40, "type": "call_expression", "text": "SCMP_SYS(fchown)", "parent": 34, "children": [41, 42], "start_point": {"row": 6, "column": 42}, "end_point": {"row": 6, "column": 58}}, {"id": 41, "type": "identifier", "text": "SCMP_SYS", "parent": 40, "children": [], "start_point": {"row": 6, "column": 42}, "end_point": {"row": 6, "column": 50}}, {"id": 42, "type": "argument_list", "text": "(fchown)", "parent": 40, "children": [43], "start_point": {"row": 6, "column": 50}, "end_point": {"row": 6, "column": 58}}, {"id": 43, "type": "identifier", "text": "fchown", "parent": 42, "children": [], "start_point": {"row": 6, "column": 51}, "end_point": {"row": 6, "column": 57}}, {"id": 44, "type": "number_literal", "text": "0", "parent": 34, "children": [], "start_point": {"row": 6, "column": 60}, "end_point": {"row": 6, "column": 61}}, {"id": 45, "type": "call_expression", "text": "seccomp_rule_add(ctx, SCMP_ACT_ERRNO(0), SCMP_SYS(lchown), 0)", "parent": 3, "children": [46, 47], "start_point": {"row": 7, "column": 1}, "end_point": {"row": 7, "column": 62}}, {"id": 46, "type": "identifier", "text": "seccomp_rule_add", "parent": 45, "children": [], "start_point": {"row": 7, "column": 1}, "end_point": {"row": 7, "column": 17}}, {"id": 47, "type": "argument_list", "text": "(ctx, SCMP_ACT_ERRNO(0), SCMP_SYS(lchown), 0)", "parent": 45, "children": [48, 49, 53, 57], "start_point": {"row": 7, "column": 17}, "end_point": {"row": 7, "column": 62}}, {"id": 48, "type": "identifier", "text": "ctx", "parent": 47, "children": [], "start_point": {"row": 7, "column": 18}, "end_point": {"row": 7, "column": 21}}, {"id": 49, "type": "call_expression", "text": "SCMP_ACT_ERRNO(0)", "parent": 47, "children": [50, 51], "start_point": {"row": 7, "column": 23}, "end_point": {"row": 7, "column": 40}}, {"id": 50, "type": "identifier", "text": "SCMP_ACT_ERRNO", "parent": 49, "children": [], "start_point": {"row": 7, "column": 23}, "end_point": {"row": 7, "column": 37}}, {"id": 51, "type": "argument_list", "text": "(0)", "parent": 49, "children": [52], "start_point": {"row": 7, "column": 37}, "end_point": {"row": 7, "column": 40}}, {"id": 52, "type": "number_literal", "text": "0", "parent": 51, "children": [], "start_point": {"row": 7, "column": 38}, "end_point": {"row": 7, "column": 39}}, {"id": 53, "type": "call_expression", "text": "SCMP_SYS(lchown)", "parent": 47, "children": [54, 55], "start_point": {"row": 7, "column": 42}, "end_point": {"row": 7, "column": 58}}, {"id": 54, "type": "identifier", "text": "SCMP_SYS", "parent": 53, "children": [], "start_point": {"row": 7, "column": 42}, "end_point": {"row": 7, "column": 50}}, {"id": 55, "type": "argument_list", "text": "(lchown)", "parent": 53, "children": [56], "start_point": {"row": 7, "column": 50}, "end_point": {"row": 7, "column": 58}}, {"id": 56, "type": "identifier", "text": "lchown", "parent": 55, "children": [], "start_point": {"row": 7, "column": 51}, "end_point": {"row": 7, "column": 57}}, {"id": 57, "type": "number_literal", "text": "0", "parent": 47, "children": [], "start_point": {"row": 7, "column": 60}, "end_point": {"row": 7, "column": 61}}, {"id": 58, "type": "call_expression", "text": "seccomp_rule_add(ctx, SCMP_ACT_ERRNO(0), SCMP_SYS(fchownat), 0)", "parent": 3, "children": [59, 60], "start_point": {"row": 8, "column": 1}, "end_point": {"row": 8, "column": 64}}, {"id": 59, "type": "identifier", "text": "seccomp_rule_add", "parent": 58, "children": [], "start_point": {"row": 8, "column": 1}, "end_point": {"row": 8, "column": 17}}, {"id": 60, "type": "argument_list", "text": "(ctx, SCMP_ACT_ERRNO(0), SCMP_SYS(fchownat), 0)", "parent": 58, "children": [61, 62, 66, 70], "start_point": {"row": 8, "column": 17}, "end_point": {"row": 8, "column": 64}}, {"id": 61, "type": "identifier", "text": "ctx", "parent": 60, "children": [], "start_point": {"row": 8, "column": 18}, "end_point": {"row": 8, "column": 21}}, {"id": 62, "type": "call_expression", "text": "SCMP_ACT_ERRNO(0)", "parent": 60, "children": [63, 64], "start_point": {"row": 8, "column": 23}, "end_point": {"row": 8, "column": 40}}, {"id": 63, "type": "identifier", "text": "SCMP_ACT_ERRNO", "parent": 62, "children": [], "start_point": {"row": 8, "column": 23}, "end_point": {"row": 8, "column": 37}}, {"id": 64, "type": "argument_list", "text": "(0)", "parent": 62, "children": [65], "start_point": {"row": 8, "column": 37}, "end_point": {"row": 8, "column": 40}}, {"id": 65, "type": "number_literal", "text": "0", "parent": 64, "children": [], "start_point": {"row": 8, "column": 38}, "end_point": {"row": 8, "column": 39}}, {"id": 66, "type": "call_expression", "text": "SCMP_SYS(fchownat)", "parent": 60, "children": [67, 68], "start_point": {"row": 8, "column": 42}, "end_point": {"row": 8, "column": 60}}, {"id": 67, "type": "identifier", "text": "SCMP_SYS", "parent": 66, "children": [], "start_point": {"row": 8, "column": 42}, "end_point": {"row": 8, "column": 50}}, {"id": 68, "type": "argument_list", "text": "(fchownat)", "parent": 66, "children": [69], "start_point": {"row": 8, "column": 50}, "end_point": {"row": 8, "column": 60}}, {"id": 69, "type": "identifier", "text": "fchownat", "parent": 68, "children": [], "start_point": {"row": 8, "column": 51}, "end_point": {"row": 8, "column": 59}}, {"id": 70, "type": "number_literal", "text": "0", "parent": 60, "children": [], "start_point": {"row": 8, "column": 62}, "end_point": {"row": 8, "column": 63}}, {"id": 71, "type": "call_expression", "text": "seccomp_export_bpf(ctx, 1)", "parent": 3, "children": [72, 73], "start_point": {"row": 9, "column": 1}, "end_point": {"row": 9, "column": 27}}, {"id": 72, "type": "identifier", "text": "seccomp_export_bpf", "parent": 71, "children": [], "start_point": {"row": 9, "column": 1}, "end_point": {"row": 9, "column": 19}}, {"id": 73, "type": "argument_list", "text": "(ctx, 1)", "parent": 71, "children": [74, 75], "start_point": {"row": 9, "column": 19}, "end_point": {"row": 9, "column": 27}}, {"id": 74, "type": "identifier", "text": "ctx", "parent": 73, "children": [], "start_point": {"row": 9, "column": 20}, "end_point": {"row": 9, "column": 23}}, {"id": 75, "type": "number_literal", "text": "1", "parent": 73, "children": [], "start_point": {"row": 9, "column": 25}, "end_point": {"row": 9, "column": 26}}]}, "node_categories": {"declarations": {"functions": [3, 5], "variables": [8, 10], "classes": [], "imports": [0, 1], "modules": [], "enums": []}, "statements": {"expressions": [15, 19, 23, 27, 32, 36, 40, 45, 49, 53, 58, 62, 66, 71], "assignments": [], "loops": [], "conditionals": [6, 11, 13, 16, 18, 20, 22, 24, 28, 30, 33, 35, 37, 41, 43, 46, 48, 50, 54, 56, 59, 61, 63, 67, 69, 72, 74], "returns": [], "exceptions": []}, "expressions": {"calls": [], "literals": [2, 26, 31, 39, 44, 52, 57, 65, 70, 75], "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\tscmp_filter_ctx ctx = seccomp_init(SCMP_ACT_ALLOW);\n\tseccomp_rule_add(ctx, SCMP_AC"}, {"node_id": 5, "universal_type": "function", "name": "unknown", "text_snippet": "main(void)"}], "class_declarations": [], "import_statements": [{"node_id": 0, "text": "#include <seccomp.h>\n"}, {"node_id": 1, "text": "#include"}]}, "original_source_code": "#include <seccomp.h>\n\nint main(void)\n{\n\tscmp_filter_ctx ctx = seccomp_init(SCMP_ACT_ALLOW);\n\tseccomp_rule_add(ctx, SCMP_ACT_ERRNO(0), SCMP_SYS(chown), 0);\n\tseccomp_rule_add(ctx, SCMP_ACT_ERRNO(0), SCMP_SYS(fchown), 0);\n\tseccomp_rule_add(ctx, SCMP_ACT_ERRNO(0), SCMP_SYS(lchown), 0);\n\tseccomp_rule_add(ctx, SCMP_ACT_ERRNO(0), SCMP_SYS(fchownat), 0);\n\tseccomp_export_bpf(ctx, 1);\n}\n"}
80,039
c
#ifndef _GUI_MOUSE_H_ #define _GUI_MOUSE_H_ #include "gui_def.h" #include <memory> #include "math_type.h" namespace gui { class Mouse final { public: /** * \brief */ Mouse(); /** * \brief */ Mouse(const Mouse &other); /** * \brief */ virtual ~Mouse(); /** * \brief * \param[in] other */ Mouse &operator=(const Mouse &other); /** * \brief Get the mouse position * \return Mouse position */ math::ScreenPos_t pos() const; /** * \brief Get the mouse button * \return Mouse button */ int button() const; /** * \brief Set the mouse position * \param[in] pos */ void set_pos(const math::ScreenPos_t &pos); /** * \brief Set the mouse button * \param[in] button */ void set_button(const int button); protected: private: std::unique_ptr<math::ScreenPos_t> pos_; int button_; }; } // namespace gui { #endif // #ifndef _GUI_MOUSE_H_
17.85
53
(translation_unit) "#ifndef _GUI_MOUSE_H_\n#define _GUI_MOUSE_H_\n\n#include "gui_def.h"\n#include <memory>\n#include "math_type.h"\n\nnamespace gui {\n\nclass Mouse final\n{\n\npublic:\n /**\n * \brief\n */\n Mouse();\n /**\n * \brief\n */\n Mouse(const Mouse &other);\n /**\n * \brief\n */\n virtual ~Mouse();\n /**\n * \brief\n * \param[in] other\n */\n Mouse &operator=(const Mouse &other);\n /**\n * \brief Get the mouse position\n * \return Mouse position\n */\n math::ScreenPos_t pos() const;\n /**\n * \brief Get the mouse button\n * \return Mouse button\n */\n int button() const;\n /**\n * \brief Set the mouse position\n * \param[in] pos\n */\n void set_pos(const math::ScreenPos_t &pos);\n /**\n * \brief Set the mouse button\n * \param[in] button\n */\n void set_button(const int button);\n\nprotected:\n\nprivate:\n\n std::unique_ptr<math::ScreenPos_t> pos_;\n int button_;\n};\n\n} // namespace gui {\n\n#endif // #ifndef _GUI_MOUSE_H_\n" (preproc_ifdef) "#ifndef _GUI_MOUSE_H_\n#define _GUI_MOUSE_H_\n\n#include "gui_def.h"\n#include <memory>\n#include "math_type.h"\n\nnamespace gui {\n\nclass Mouse final\n{\n\npublic:\n /**\n * \brief\n */\n Mouse();\n /**\n * \brief\n */\n Mouse(const Mouse &other);\n /**\n * \brief\n */\n virtual ~Mouse();\n /**\n * \brief\n * \param[in] other\n */\n Mouse &operator=(const Mouse &other);\n /**\n * \brief Get the mouse position\n * \return Mouse position\n */\n math::ScreenPos_t pos() const;\n /**\n * \brief Get the mouse button\n * \return Mouse button\n */\n int button() const;\n /**\n * \brief Set the mouse position\n * \param[in] pos\n */\n void set_pos(const math::ScreenPos_t &pos);\n /**\n * \brief Set the mouse button\n * \param[in] button\n */\n void set_button(const int button);\n\nprotected:\n\nprivate:\n\n std::unique_ptr<math::ScreenPos_t> pos_;\n int button_;\n};\n\n} // namespace gui {\n\n#endif" (#ifndef) "#ifndef" (identifier) "_GUI_MOUSE_H_" (preproc_def) "#define _GUI_MOUSE_H_\n" (#define) "#define" (identifier) "_GUI_MOUSE_H_" (preproc_include) "#include "gui_def.h"\n" (#include) "#include" (string_literal) ""gui_def.h"" (") """ (string_content) "gui_def.h" (") """ (preproc_include) "#include <memory>\n" (#include) "#include" (system_lib_string) "<memory>" (preproc_include) "#include "math_type.h"\n" (#include) "#include" (string_literal) ""math_type.h"" (") """ (string_content) "math_type.h" (") """ (function_definition) "namespace gui {\n\nclass Mouse final\n{\n\npublic:\n /**\n * \brief\n */\n Mouse();\n /**\n * \brief\n */\n Mouse(const Mouse &other);\n /**\n * \brief\n */\n virtual ~Mouse();\n /**\n * \brief\n * \param[in] other\n */\n Mouse &operator=(const Mouse &other);\n /**\n * \brief Get the mouse position\n * \return Mouse position\n */\n math::ScreenPos_t pos() const;\n /**\n * \brief Get the mouse button\n * \return Mouse button\n */\n int button() const;\n /**\n * \brief Set the mouse position\n * \param[in] pos\n */\n void set_pos(const math::ScreenPos_t &pos);\n /**\n * \brief Set the mouse button\n * \param[in] button\n */\n void set_button(const int button);\n\nprotected:\n\nprivate:\n\n std::unique_ptr<math::ScreenPos_t> pos_;\n int button_;\n};\n\n}" (type_identifier) "namespace" (identifier) "gui" (compound_statement) "{\n\nclass Mouse final\n{\n\npublic:\n /**\n * \brief\n */\n Mouse();\n /**\n * \brief\n */\n Mouse(const Mouse &other);\n /**\n * \brief\n */\n virtual ~Mouse();\n /**\n * \brief\n * \param[in] other\n */\n Mouse &operator=(const Mouse &other);\n /**\n * \brief Get the mouse position\n * \return Mouse position\n */\n math::ScreenPos_t pos() const;\n /**\n * \brief Get the mouse button\n * \return Mouse button\n */\n int button() const;\n /**\n * \brief Set the mouse position\n * \param[in] pos\n */\n void set_pos(const math::ScreenPos_t &pos);\n /**\n * \brief Set the mouse button\n * \param[in] button\n */\n void set_button(const int button);\n\nprotected:\n\nprivate:\n\n std::unique_ptr<math::ScreenPos_t> pos_;\n int button_;\n};\n\n}" ({) "{" (function_definition) "class Mouse final\n{\n\npublic:\n /**\n * \brief\n */\n Mouse();\n /**\n * \brief\n */\n Mouse(const Mouse &other);\n /**\n * \brief\n */\n virtual ~Mouse();\n /**\n * \brief\n * \param[in] other\n */\n Mouse &operator=(const Mouse &other);\n /**\n * \brief Get the mouse position\n * \return Mouse position\n */\n math::ScreenPos_t pos() const;\n /**\n * \brief Get the mouse button\n * \return Mouse button\n */\n int button() const;\n /**\n * \brief Set the mouse position\n * \param[in] pos\n */\n void set_pos(const math::ScreenPos_t &pos);\n /**\n * \brief Set the mouse button\n * \param[in] button\n */\n void set_button(const int button);\n\nprotected:\n\nprivate:\n\n std::unique_ptr<math::ScreenPos_t> pos_;\n int button_;\n}" (type_identifier) "class" (ERROR) "Mouse" (identifier) "Mouse" (identifier) "final" (compound_statement) "{\n\npublic:\n /**\n * \brief\n */\n Mouse();\n /**\n * \brief\n */\n Mouse(const Mouse &other);\n /**\n * \brief\n */\n virtual ~Mouse();\n /**\n * \brief\n * \param[in] other\n */\n Mouse &operator=(const Mouse &other);\n /**\n * \brief Get the mouse position\n * \return Mouse position\n */\n math::ScreenPos_t pos() const;\n /**\n * \brief Get the mouse button\n * \return Mouse button\n */\n int button() const;\n /**\n * \brief Set the mouse position\n * \param[in] pos\n */\n void set_pos(const math::ScreenPos_t &pos);\n /**\n * \brief Set the mouse button\n * \param[in] button\n */\n void set_button(const int button);\n\nprotected:\n\nprivate:\n\n std::unique_ptr<math::ScreenPos_t> pos_;\n int button_;\n}" ({) "{" (labeled_statement) "public:\n /**\n * \brief\n */\n Mouse();" (statement_identifier) "public" (:) ":" (comment) "/**\n * \brief\n */" (expression_statement) "Mouse();" (call_expression) "Mouse()" (identifier) "Mouse" (argument_list) "()" (() "(" ()) ")" (;) ";" (comment) "/**\n * \brief\n */" (macro_type_specifier) "Mouse(const Mouse &other)" (identifier) "Mouse" (() "(" (type_descriptor) "const Mouse" (type_qualifier) "const" (const) "const" (type_identifier) "Mouse" (ERROR) "&other" (&) "&" (identifier) "other" ()) ")" (;) ";" (comment) "/**\n * \brief\n */" (declaration) "virtual ~Mouse();" (type_identifier) "virtual" (ERROR) "~" (~) "~" (function_declarator) "Mouse()" (identifier) "Mouse" (parameter_list) "()" (() "(" ()) ")" (;) ";" (comment) "/**\n * \brief\n * \param[in] other\n */" (expression_statement) "Mouse &operator=(const Mouse &other);" (binary_expression) "Mouse &operator=(const Mouse &other)" (identifier) "Mouse" (&) "&" (assignment_expression) "operator=(const Mouse &other)" (identifier) "operator" (=) "=" (parenthesized_expression) "(const Mouse &other)" (() "(" (ERROR) "const Mouse" (type_descriptor) "const Mouse" (type_qualifier) "const" (const) "const" (type_identifier) "Mouse" (pointer_expression) "&other" (&) "&" (identifier) "other" ()) ")" (;) ";" (comment) "/**\n * \brief Get the mouse position\n * \return Mouse position\n */" (labeled_statement) "math::ScreenPos_t pos() const;" (statement_identifier) "math" (:) ":" (ERROR) ":ScreenPos_t pos() const" (:) ":" (type_identifier) "ScreenPos_t" (function_declarator) "pos() const" (identifier) "pos" (parameter_list) "()" (() "(" ()) ")" (identifier) "const" (expression_statement) ";" (;) ";" (comment) "/**\n * \brief Get the mouse button\n * \return Mouse button\n */" (ERROR) "int button() const;\n /**\n * \brief Set the mouse position\n * \param[in] pos\n */\n void set_pos(const math::ScreenPos_t &pos);\n /**\n * \brief Set the mouse button\n * \param[in] button\n */\n void set_button(const int button);\n\nprotected:\n\nprivate:\n\n std::unique_ptr<math::ScreenPos_t> pos_;\n int button_;" (primitive_type) "int" (function_declarator) "button()" (identifier) "button" (parameter_list) "()" (() "(" ()) ")" (declaration) "const;\n /**\n * \brief Set the mouse position\n * \param[in] pos\n */\n void set_pos(const math::ScreenPos_t &pos);" (type_qualifier) "const" (const) "const" (ERROR) ";" (;) ";" (comment) "/**\n * \brief Set the mouse position\n * \param[in] pos\n */" (primitive_type) "void" (function_declarator) "set_pos(const math::ScreenPos_t &pos)" (identifier) "set_pos" (parameter_list) "(const math::ScreenPos_t &pos)" (() "(" (parameter_declaration) "const math::ScreenPos_t &pos" (type_qualifier) "const" (const) "const" (type_identifier) "math" (ERROR) "::ScreenPos_t &" (:) ":" (:) ":" (identifier) "ScreenPos_t" (&) "&" (identifier) "pos" ()) ")" (;) ";" (comment) "/**\n * \brief Set the mouse button\n * \param[in] button\n */" (declaration) "void set_button(const int button);" (primitive_type) "void" (function_declarator) "set_button(const int button)" (identifier) "set_button" (parameter_list) "(const int button)" (() "(" (parameter_declaration) "const int button" (type_qualifier) "const" (const) "const" (primitive_type) "int" (identifier) "button" ()) ")" (;) ";" (declaration) "protected:\n\nprivate:\n\n std::unique_ptr<math::ScreenPos_t> pos_;" (type_identifier) "protected" (ERROR) ":\n\nprivate:\n\n std::unique_ptr<math::ScreenPos_t>" (:) ":" (identifier) "private" (:) ":" (identifier) "std" (:) ":" (:) ":" (identifier) "unique_ptr" (<) "<" (identifier) "math" (:) ":" (:) ":" (identifier) "ScreenPos_t" (>) ">" (identifier) "pos_" (;) ";" (declaration) "int button_;" (primitive_type) "int" (identifier) "button_" (;) ";" (}) "}" (expression_statement) ";" (;) ";" (}) "}" (comment) "// namespace gui {" (#endif) "#endif" (comment) "// #ifndef _GUI_MOUSE_H_"
178
9
{"language": "c", "success": true, "metadata": {"lines": 53, "avg_line_length": 17.85, "nodes": 93, "errors": 0, "source_hash": "e16c27c8a3903abe6d6fb3565e76953cb18d77e635e2e2fbbd30dfeb84707d03", "categorized_nodes": 64}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef _GUI_MOUSE_H_\n#define _GUI_MOUSE_H_\n\n#include \"gui_def.h\"\n#include <memory>\n#include \"math_type.h\"\n\nnamespace gui {\n\nclass Mouse final\n{\n\npublic:\n /**\n * \\brief\n */\n Mouse();\n /**\n * \\brief\n */\n Mouse(const Mouse &other);\n /**\n * \\brief\n */\n virtual ~Mouse();\n /**\n * \\brief\n * \\param[in] other\n */\n Mouse &operator=(const Mouse &other);\n /**\n * \\brief Get the mouse position\n * \\return Mouse position\n */\n math::ScreenPos_t pos() const;\n /**\n * \\brief Get the mouse button\n * \\return Mouse button\n */\n int button() const;\n /**\n * \\brief Set the mouse position\n * \\param[in] pos\n */\n void set_pos(const math::ScreenPos_t &pos);\n /**\n * \\brief Set the mouse button\n * \\param[in] button\n */\n void set_button(const int button);\n\nprotected:\n\nprivate:\n\n std::unique_ptr<math::ScreenPos_t> pos_;\n int button_;\n};\n\n} // namespace gui {\n\n#endif", "parent": null, "children": [1, 2, 3, 6, 9, 12, 15, 92], "start_point": {"row": 0, "column": 0}, "end_point": {"row": 61, "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": "_GUI_MOUSE_H_", "parent": 0, "children": [], "start_point": {"row": 0, "column": 8}, "end_point": {"row": 0, "column": 21}}, {"id": 3, "type": "preproc_def", "text": "#define _GUI_MOUSE_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": "_GUI_MOUSE_H_", "parent": 3, "children": [], "start_point": {"row": 1, "column": 8}, "end_point": {"row": 1, "column": 21}}, {"id": 6, "type": "preproc_include", "text": "#include \"gui_def.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": "\"gui_def.h\"", "parent": 6, "children": [], "start_point": {"row": 3, "column": 9}, "end_point": {"row": 3, "column": 20}}, {"id": 9, "type": "preproc_include", "text": "#include <memory>\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": "<memory>", "parent": 9, "children": [], "start_point": {"row": 4, "column": 9}, "end_point": {"row": 4, "column": 17}}, {"id": 12, "type": "preproc_include", "text": "#include \"math_type.h\"\n", "parent": 0, "children": [13, 14], "start_point": {"row": 5, "column": 0}, "end_point": {"row": 6, "column": 0}}, {"id": 13, "type": "#include", "text": "#include", "parent": 12, "children": [], "start_point": {"row": 5, "column": 0}, "end_point": {"row": 5, "column": 8}}, {"id": 14, "type": "string_literal", "text": "\"math_type.h\"", "parent": 12, "children": [], "start_point": {"row": 5, "column": 9}, "end_point": {"row": 5, "column": 22}}, {"id": 15, "type": "function_definition", "text": "namespace gui {\n\nclass Mouse final\n{\n\npublic:\n /**\n * \\brief\n */\n Mouse();\n /**\n * \\brief\n */\n Mouse(const Mouse &other);\n /**\n * \\brief\n */\n virtual ~Mouse();\n /**\n * \\brief\n * \\param[in] other\n */\n Mouse &operator=(const Mouse &other);\n /**\n * \\brief Get the mouse position\n * \\return Mouse position\n */\n math::ScreenPos_t pos() const;\n /**\n * \\brief Get the mouse button\n * \\return Mouse button\n */\n int button() const;\n /**\n * \\brief Set the mouse position\n * \\param[in] pos\n */\n void set_pos(const math::ScreenPos_t &pos);\n /**\n * \\brief Set the mouse button\n * \\param[in] button\n */\n void set_button(const int button);\n\nprotected:\n\nprivate:\n\n std::unique_ptr<math::ScreenPos_t> pos_;\n int button_;\n};\n\n}", "parent": 0, "children": [16, 17], "start_point": {"row": 7, "column": 0}, "end_point": {"row": 59, "column": 1}}, {"id": 16, "type": "type_identifier", "text": "namespace", "parent": 15, "children": [], "start_point": {"row": 7, "column": 0}, "end_point": {"row": 7, "column": 9}}, {"id": 17, "type": "identifier", "text": "gui", "parent": 15, "children": [], "start_point": {"row": 7, "column": 10}, "end_point": {"row": 7, "column": 13}}, {"id": 18, "type": "function_definition", "text": "class Mouse final\n{\n\npublic:\n /**\n * \\brief\n */\n Mouse();\n /**\n * \\brief\n */\n Mouse(const Mouse &other);\n /**\n * \\brief\n */\n virtual ~Mouse();\n /**\n * \\brief\n * \\param[in] other\n */\n Mouse &operator=(const Mouse &other);\n /**\n * \\brief Get the mouse position\n * \\return Mouse position\n */\n math::ScreenPos_t pos() const;\n /**\n * \\brief Get the mouse button\n * \\return Mouse button\n */\n int button() const;\n /**\n * \\brief Set the mouse position\n * \\param[in] pos\n */\n void set_pos(const math::ScreenPos_t &pos);\n /**\n * \\brief Set the mouse button\n * \\param[in] button\n */\n void set_button(const int button);\n\nprotected:\n\nprivate:\n\n std::unique_ptr<math::ScreenPos_t> pos_;\n int button_;\n}", "parent": 15, "children": [19, 21], "start_point": {"row": 9, "column": 0}, "end_point": {"row": 57, "column": 1}}, {"id": 19, "type": "ERROR", "text": "Mouse", "parent": 18, "children": [20], "start_point": {"row": 9, "column": 6}, "end_point": {"row": 9, "column": 11}}, {"id": 20, "type": "identifier", "text": "Mouse", "parent": 19, "children": [], "start_point": {"row": 9, "column": 6}, "end_point": {"row": 9, "column": 11}}, {"id": 21, "type": "identifier", "text": "final", "parent": 18, "children": [], "start_point": {"row": 9, "column": 12}, "end_point": {"row": 9, "column": 17}}, {"id": 22, "type": "labeled_statement", "text": "public:\n /**\n * \\brief\n */\n Mouse();", "parent": 18, "children": [], "start_point": {"row": 12, "column": 0}, "end_point": {"row": 16, "column": 12}}, {"id": 23, "type": "call_expression", "text": "Mouse()", "parent": 22, "children": [24, 25], "start_point": {"row": 16, "column": 4}, "end_point": {"row": 16, "column": 11}}, {"id": 24, "type": "identifier", "text": "Mouse", "parent": 23, "children": [], "start_point": {"row": 16, "column": 4}, "end_point": {"row": 16, "column": 9}}, {"id": 25, "type": "argument_list", "text": "()", "parent": 23, "children": [], "start_point": {"row": 16, "column": 9}, "end_point": {"row": 16, "column": 11}}, {"id": 26, "type": "macro_type_specifier", "text": "Mouse(const Mouse &other)", "parent": 18, "children": [27, 28, 30], "start_point": {"row": 20, "column": 4}, "end_point": {"row": 20, "column": 29}}, {"id": 27, "type": "identifier", "text": "Mouse", "parent": 26, "children": [], "start_point": {"row": 20, "column": 4}, "end_point": {"row": 20, "column": 9}}, {"id": 28, "type": "type_descriptor", "text": "const Mouse", "parent": 26, "children": [29], "start_point": {"row": 20, "column": 10}, "end_point": {"row": 20, "column": 21}}, {"id": 29, "type": "type_identifier", "text": "Mouse", "parent": 28, "children": [], "start_point": {"row": 20, "column": 16}, "end_point": {"row": 20, "column": 21}}, {"id": 30, "type": "ERROR", "text": "&other", "parent": 26, "children": [31], "start_point": {"row": 20, "column": 22}, "end_point": {"row": 20, "column": 28}}, {"id": 31, "type": "identifier", "text": "other", "parent": 30, "children": [], "start_point": {"row": 20, "column": 23}, "end_point": {"row": 20, "column": 28}}, {"id": 32, "type": "declaration", "text": "virtual ~Mouse();", "parent": 18, "children": [33, 34, 36], "start_point": {"row": 24, "column": 4}, "end_point": {"row": 24, "column": 21}}, {"id": 33, "type": "type_identifier", "text": "virtual", "parent": 32, "children": [], "start_point": {"row": 24, "column": 4}, "end_point": {"row": 24, "column": 11}}, {"id": 34, "type": "ERROR", "text": "~", "parent": 32, "children": [35], "start_point": {"row": 24, "column": 12}, "end_point": {"row": 24, "column": 13}}, {"id": 35, "type": "~", "text": "~", "parent": 34, "children": [], "start_point": {"row": 24, "column": 12}, "end_point": {"row": 24, "column": 13}}, {"id": 36, "type": "function_declarator", "text": "Mouse()", "parent": 32, "children": [37, 38], "start_point": {"row": 24, "column": 13}, "end_point": {"row": 24, "column": 20}}, {"id": 37, "type": "identifier", "text": "Mouse", "parent": 36, "children": [], "start_point": {"row": 24, "column": 13}, "end_point": {"row": 24, "column": 18}}, {"id": 38, "type": "parameter_list", "text": "()", "parent": 36, "children": [], "start_point": {"row": 24, "column": 18}, "end_point": {"row": 24, "column": 20}}, {"id": 39, "type": "binary_expression", "text": "Mouse &operator=(const Mouse &other)", "parent": 18, "children": [40, 41], "start_point": {"row": 29, "column": 4}, "end_point": {"row": 29, "column": 40}}, {"id": 40, "type": "identifier", "text": "Mouse", "parent": 39, "children": [], "start_point": {"row": 29, "column": 4}, "end_point": {"row": 29, "column": 9}}, {"id": 41, "type": "assignment_expression", "text": "operator=(const Mouse &other)", "parent": 39, "children": [42, 43, 44], "start_point": {"row": 29, "column": 11}, "end_point": {"row": 29, "column": 40}}, {"id": 42, "type": "identifier", "text": "operator", "parent": 41, "children": [], "start_point": {"row": 29, "column": 11}, "end_point": {"row": 29, "column": 19}}, {"id": 43, "type": "=", "text": "=", "parent": 41, "children": [], "start_point": {"row": 29, "column": 19}, "end_point": {"row": 29, "column": 20}}, {"id": 44, "type": "parenthesized_expression", "text": "(const Mouse &other)", "parent": 41, "children": [45, 48], "start_point": {"row": 29, "column": 20}, "end_point": {"row": 29, "column": 40}}, {"id": 45, "type": "ERROR", "text": "const Mouse", "parent": 44, "children": [46], "start_point": {"row": 29, "column": 21}, "end_point": {"row": 29, "column": 32}}, {"id": 46, "type": "type_descriptor", "text": "const Mouse", "parent": 45, "children": [47], "start_point": {"row": 29, "column": 21}, "end_point": {"row": 29, "column": 32}}, {"id": 47, "type": "type_identifier", "text": "Mouse", "parent": 46, "children": [], "start_point": {"row": 29, "column": 27}, "end_point": {"row": 29, "column": 32}}, {"id": 48, "type": "pointer_expression", "text": "&other", "parent": 44, "children": [49], "start_point": {"row": 29, "column": 33}, "end_point": {"row": 29, "column": 39}}, {"id": 49, "type": "identifier", "text": "other", "parent": 48, "children": [], "start_point": {"row": 29, "column": 34}, "end_point": {"row": 29, "column": 39}}, {"id": 50, "type": "labeled_statement", "text": "math::ScreenPos_t pos() const;", "parent": 18, "children": [51, 52], "start_point": {"row": 34, "column": 4}, "end_point": {"row": 34, "column": 34}}, {"id": 51, "type": "statement_identifier", "text": "math", "parent": 50, "children": [], "start_point": {"row": 34, "column": 4}, "end_point": {"row": 34, "column": 8}}, {"id": 52, "type": "ERROR", "text": ":ScreenPos_t pos() const", "parent": 50, "children": [53, 54], "start_point": {"row": 34, "column": 9}, "end_point": {"row": 34, "column": 33}}, {"id": 53, "type": "type_identifier", "text": "ScreenPos_t", "parent": 52, "children": [], "start_point": {"row": 34, "column": 10}, "end_point": {"row": 34, "column": 21}}, {"id": 54, "type": "function_declarator", "text": "pos() const", "parent": 52, "children": [55, 56], "start_point": {"row": 34, "column": 22}, "end_point": {"row": 34, "column": 33}}, {"id": 55, "type": "identifier", "text": "pos", "parent": 54, "children": [], "start_point": {"row": 34, "column": 22}, "end_point": {"row": 34, "column": 25}}, {"id": 56, "type": "parameter_list", "text": "()", "parent": 54, "children": [], "start_point": {"row": 34, "column": 25}, "end_point": {"row": 34, "column": 27}}, {"id": 57, "type": "ERROR", "text": "int button() const;\n /**\n * \\brief Set the mouse position\n * \\param[in] pos\n */\n void set_pos(const math::ScreenPos_t &pos);\n /**\n * \\brief Set the mouse button\n * \\param[in] button\n */\n void set_button(const int button);\n\nprotected:\n\nprivate:\n\n std::unique_ptr<math::ScreenPos_t> pos_;\n int button_;", "parent": 18, "children": [58, 59, 62, 72, 80, 89], "start_point": {"row": 39, "column": 4}, "end_point": {"row": 56, "column": 16}}, {"id": 58, "type": "primitive_type", "text": "int", "parent": 57, "children": [], "start_point": {"row": 39, "column": 4}, "end_point": {"row": 39, "column": 7}}, {"id": 59, "type": "function_declarator", "text": "button()", "parent": 57, "children": [60, 61], "start_point": {"row": 39, "column": 8}, "end_point": {"row": 39, "column": 16}}, {"id": 60, "type": "identifier", "text": "button", "parent": 59, "children": [], "start_point": {"row": 39, "column": 8}, "end_point": {"row": 39, "column": 14}}, {"id": 61, "type": "parameter_list", "text": "()", "parent": 59, "children": [], "start_point": {"row": 39, "column": 14}, "end_point": {"row": 39, "column": 16}}, {"id": 62, "type": "declaration", "text": "const;\n /**\n * \\brief Set the mouse position\n * \\param[in] pos\n */\n void set_pos(const math::ScreenPos_t &pos);", "parent": 57, "children": [63, 64], "start_point": {"row": 39, "column": 17}, "end_point": {"row": 44, "column": 47}}, {"id": 63, "type": "primitive_type", "text": "void", "parent": 62, "children": [], "start_point": {"row": 44, "column": 4}, "end_point": {"row": 44, "column": 8}}, {"id": 64, "type": "function_declarator", "text": "set_pos(const math::ScreenPos_t &pos)", "parent": 62, "children": [65, 66], "start_point": {"row": 44, "column": 9}, "end_point": {"row": 44, "column": 46}}, {"id": 65, "type": "identifier", "text": "set_pos", "parent": 64, "children": [], "start_point": {"row": 44, "column": 9}, "end_point": {"row": 44, "column": 16}}, {"id": 66, "type": "parameter_list", "text": "(const math::ScreenPos_t &pos)", "parent": 64, "children": [67], "start_point": {"row": 44, "column": 16}, "end_point": {"row": 44, "column": 46}}, {"id": 67, "type": "parameter_declaration", "text": "const math::ScreenPos_t &pos", "parent": 66, "children": [68, 69, 71], "start_point": {"row": 44, "column": 17}, "end_point": {"row": 44, "column": 45}}, {"id": 68, "type": "type_identifier", "text": "math", "parent": 67, "children": [], "start_point": {"row": 44, "column": 23}, "end_point": {"row": 44, "column": 27}}, {"id": 69, "type": "ERROR", "text": "::ScreenPos_t &", "parent": 67, "children": [70], "start_point": {"row": 44, "column": 27}, "end_point": {"row": 44, "column": 42}}, {"id": 70, "type": "identifier", "text": "ScreenPos_t", "parent": 69, "children": [], "start_point": {"row": 44, "column": 29}, "end_point": {"row": 44, "column": 40}}, {"id": 71, "type": "identifier", "text": "pos", "parent": 67, "children": [], "start_point": {"row": 44, "column": 42}, "end_point": {"row": 44, "column": 45}}, {"id": 72, "type": "declaration", "text": "void set_button(const int button);", "parent": 57, "children": [73, 74], "start_point": {"row": 49, "column": 4}, "end_point": {"row": 49, "column": 38}}, {"id": 73, "type": "primitive_type", "text": "void", "parent": 72, "children": [], "start_point": {"row": 49, "column": 4}, "end_point": {"row": 49, "column": 8}}, {"id": 74, "type": "function_declarator", "text": "set_button(const int button)", "parent": 72, "children": [75, 76], "start_point": {"row": 49, "column": 9}, "end_point": {"row": 49, "column": 37}}, {"id": 75, "type": "identifier", "text": "set_button", "parent": 74, "children": [], "start_point": {"row": 49, "column": 9}, "end_point": {"row": 49, "column": 19}}, {"id": 76, "type": "parameter_list", "text": "(const int button)", "parent": 74, "children": [77], "start_point": {"row": 49, "column": 19}, "end_point": {"row": 49, "column": 37}}, {"id": 77, "type": "parameter_declaration", "text": "const int button", "parent": 76, "children": [78, 79], "start_point": {"row": 49, "column": 20}, "end_point": {"row": 49, "column": 36}}, {"id": 78, "type": "primitive_type", "text": "int", "parent": 77, "children": [], "start_point": {"row": 49, "column": 26}, "end_point": {"row": 49, "column": 29}}, {"id": 79, "type": "identifier", "text": "button", "parent": 77, "children": [], "start_point": {"row": 49, "column": 30}, "end_point": {"row": 49, "column": 36}}, {"id": 80, "type": "declaration", "text": "protected:\n\nprivate:\n\n std::unique_ptr<math::ScreenPos_t> pos_;", "parent": 57, "children": [81, 88], "start_point": {"row": 51, "column": 0}, "end_point": {"row": 55, "column": 44}}, {"id": 81, "type": "ERROR", "text": ":\n\nprivate:\n\n std::unique_ptr<math::ScreenPos_t>", "parent": 80, "children": [82, 83, 84, 85, 86, 87], "start_point": {"row": 51, "column": 9}, "end_point": {"row": 55, "column": 38}}, {"id": 82, "type": "identifier", "text": "std", "parent": 81, "children": [], "start_point": {"row": 55, "column": 4}, "end_point": {"row": 55, "column": 7}}, {"id": 83, "type": "identifier", "text": "unique_ptr", "parent": 81, "children": [], "start_point": {"row": 55, "column": 9}, "end_point": {"row": 55, "column": 19}}, {"id": 84, "type": "<", "text": "<", "parent": 81, "children": [], "start_point": {"row": 55, "column": 19}, "end_point": {"row": 55, "column": 20}}, {"id": 85, "type": "identifier", "text": "math", "parent": 81, "children": [], "start_point": {"row": 55, "column": 20}, "end_point": {"row": 55, "column": 24}}, {"id": 86, "type": "identifier", "text": "ScreenPos_t", "parent": 81, "children": [], "start_point": {"row": 55, "column": 26}, "end_point": {"row": 55, "column": 37}}, {"id": 87, "type": ">", "text": ">", "parent": 81, "children": [], "start_point": {"row": 55, "column": 37}, "end_point": {"row": 55, "column": 38}}, {"id": 88, "type": "identifier", "text": "pos_", "parent": 80, "children": [], "start_point": {"row": 55, "column": 39}, "end_point": {"row": 55, "column": 43}}, {"id": 89, "type": "declaration", "text": "int button_;", "parent": 57, "children": [90, 91], "start_point": {"row": 56, "column": 4}, "end_point": {"row": 56, "column": 16}}, {"id": 90, "type": "primitive_type", "text": "int", "parent": 89, "children": [], "start_point": {"row": 56, "column": 4}, "end_point": {"row": 56, "column": 7}}, {"id": 91, "type": "identifier", "text": "button_", "parent": 89, "children": [], "start_point": {"row": 56, "column": 8}, "end_point": {"row": 56, "column": 15}}, {"id": 92, "type": "#endif", "text": "#endif", "parent": 0, "children": [], "start_point": {"row": 61, "column": 0}, "end_point": {"row": 61, "column": 6}}]}, "node_categories": {"declarations": {"functions": [15, 18, 36, 54, 59, 64, 74], "variables": [32, 62, 67, 72, 77, 80, 89], "classes": [], "imports": [6, 7, 9, 10, 12, 13], "modules": [], "enums": []}, "statements": {"expressions": [23, 39, 44, 48], "assignments": [41], "loops": [], "conditionals": [0, 1, 2, 5, 16, 17, 20, 21, 24, 26, 27, 29, 31, 33, 37, 40, 42, 47, 49, 51, 53, 55, 60, 65, 68, 70, 71, 75, 79, 82, 83, 85, 86, 88, 91, 92], "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": "Mouse", "text_snippet": "namespace gui {\n\nclass Mouse final\n{\n\npublic:\n /**\n * \\brief\n */\n Mouse();\n /**\n "}, {"node_id": 18, "universal_type": "function", "name": "Mouse", "text_snippet": "class Mouse final\n{\n\npublic:\n /**\n * \\brief\n */\n Mouse();\n /**\n * \\brief\n *"}, {"node_id": 36, "universal_type": "function", "name": "unknown", "text_snippet": "Mouse()"}, {"node_id": 54, "universal_type": "function", "name": "unknown", "text_snippet": "pos() const"}, {"node_id": 59, "universal_type": "function", "name": "unknown", "text_snippet": "button()"}, {"node_id": 64, "universal_type": "function", "name": "unknown", "text_snippet": "set_pos(const math::ScreenPos_t &pos)"}, {"node_id": 74, "universal_type": "function", "name": "button)", "text_snippet": "set_button(const int button)"}], "class_declarations": [], "import_statements": [{"node_id": 6, "text": "#include \"gui_def.h\"\n"}, {"node_id": 7, "text": "#include"}, {"node_id": 9, "text": "#include <memory>\n"}, {"node_id": 10, "text": "#include"}, {"node_id": 12, "text": "#include \"math_type.h\"\n"}, {"node_id": 13, "text": "#include"}]}, "original_source_code": "#ifndef _GUI_MOUSE_H_\n#define _GUI_MOUSE_H_\n\n#include \"gui_def.h\"\n#include <memory>\n#include \"math_type.h\"\n\nnamespace gui {\n\nclass Mouse final\n{\n\npublic:\n /**\n * \\brief\n */\n Mouse();\n /**\n * \\brief\n */\n Mouse(const Mouse &other);\n /**\n * \\brief\n */\n virtual ~Mouse();\n /**\n * \\brief\n * \\param[in] other\n */\n Mouse &operator=(const Mouse &other);\n /**\n * \\brief Get the mouse position\n * \\return Mouse position\n */\n math::ScreenPos_t pos() const;\n /**\n * \\brief Get the mouse button\n * \\return Mouse button\n */\n int button() const;\n /**\n * \\brief Set the mouse position\n * \\param[in] pos\n */\n void set_pos(const math::ScreenPos_t &pos);\n /**\n * \\brief Set the mouse button\n * \\param[in] button\n */\n void set_button(const int button);\n\nprotected:\n\nprivate:\n\n std::unique_ptr<math::ScreenPos_t> pos_;\n int button_;\n};\n\n} // namespace gui {\n\n#endif // #ifndef _GUI_MOUSE_H_\n"}
80,040
c
#pragma once #include "SAEEngine.h" #include <cstdint> #include <glm/vec3.hpp> #include <glm/geometric.hpp> #include <chrono> namespace sae::engine { struct position_t; struct distance_t; struct velocity_t; struct acceleration_t; struct force_t; struct mass_t; using direction_t = glm::vec3; using magnitude_t = float_t; class physics_clock { public: using rep = int64_t; using period = std::nano; using duration = std::chrono::duration<rep, period>; using time_point = std::chrono::time_point<physics_clock>; static constexpr bool is_steady = false; static time_point now() noexcept; }; using duration_t = typename physics_clock::duration; using time_point_t = typename physics_clock::time_point; struct basic_unit { constexpr auto x() const noexcept { return (this->mag * this->dir.x); }; constexpr auto y() const noexcept { return (this->mag * this->dir.y); }; constexpr auto z() const noexcept { return (this->mag * this->dir.z); }; constexpr glm::vec3 as_vec() const noexcept { return (this->dir * this->mag); }; constexpr basic_unit() noexcept = default; constexpr basic_unit(const direction_t& _d, magnitude_t _mag) noexcept : dir{ _d }, mag{ _mag } {}; direction_t dir{}; magnitude_t mag{}; }; struct position_t { magnitude_t x{}; magnitude_t y{}; magnitude_t z{}; }; struct distance_t : public basic_unit { using basic_unit::basic_unit; }; struct velocity_t : public basic_unit { duration_t dt{}; }; distance_t operator-(const position_t& lhs, const position_t& rhs) noexcept; constexpr static inline position_t operator+(const position_t& lhs, const distance_t& rhs) noexcept { return position_t { lhs.x + rhs.x(), lhs.y + rhs.y(), lhs.z + rhs.z() }; }; position_t& operator+=(position_t& lhs, const distance_t& rhs) noexcept; static inline position_t operator-(const position_t& lhs, const distance_t& rhs) noexcept { return position_t { lhs.x - rhs.x(), lhs.y - rhs.y(), lhs.z - rhs.z() }; }; position_t& operator-=(position_t& lhs, const distance_t& rhs) noexcept; distance_t operator+(const distance_t& rhs, const distance_t& lhs) noexcept; distance_t& operator+=(distance_t& rhs, const distance_t& lhs) noexcept; distance_t operator-(const distance_t& rhs, const distance_t& lhs) noexcept; distance_t& operator-=(distance_t& rhs, const distance_t& lhs) noexcept; velocity_t operator+(const velocity_t& rhs, const velocity_t& lhs) noexcept; velocity_t& operator+=(velocity_t& rhs, const velocity_t& lhs) noexcept; velocity_t operator-(const velocity_t& rhs, const velocity_t& lhs) noexcept; velocity_t& operator-=(velocity_t& rhs, const velocity_t& lhs) noexcept; template <typename _Rep, typename _Period> velocity_t operator/(const distance_t& lhs, std::chrono::duration<_Rep, _Period> rhs) { return velocity_t{ lhs.dir, lhs.mag, std::chrono::duration_cast<duration_t>(rhs) }; }; class PhysicsObject { }; }
24.88
115
(translation_unit) "#pragma once\n\n#include "SAEEngine.h"\n\n#include <cstdint>\n\n#include <glm/vec3.hpp>\n#include <glm/geometric.hpp>\n\n#include <chrono>\n\nnamespace sae::engine\n{\n\n struct position_t;\n struct distance_t;\n struct velocity_t;\n struct acceleration_t;\n struct force_t;\n struct mass_t;\n\n\n\n\n using direction_t = glm::vec3;\n using magnitude_t = float_t;\n\n\n\n\n\n\n\n class physics_clock\n {\n public:\n using rep = int64_t;\n using period = std::nano;\n using duration = std::chrono::duration<rep, period>;\n using time_point = std::chrono::time_point<physics_clock>;\n static constexpr bool is_steady = false;\n static time_point now() noexcept;\n };\n\n using duration_t = typename physics_clock::duration;\n using time_point_t = typename physics_clock::time_point;\n\n\n\n struct basic_unit\n {\n constexpr auto x() const noexcept { return (this->mag * this->dir.x); };\n constexpr auto y() const noexcept { return (this->mag * this->dir.y); };\n constexpr auto z() const noexcept { return (this->mag * this->dir.z); };\n\n constexpr glm::vec3 as_vec() const noexcept { return (this->dir * this->mag); };\n\n constexpr basic_unit() noexcept = default;\n constexpr basic_unit(const direction_t& _d, magnitude_t _mag) noexcept : \n dir{ _d }, mag{ _mag }\n {};\n\n direction_t dir{};\n magnitude_t mag{};\n };\n\n\n\n struct position_t\n {\n magnitude_t x{};\n magnitude_t y{};\n magnitude_t z{};\n };\n \n struct distance_t : public basic_unit \n {\n using basic_unit::basic_unit;\n };\n\n struct velocity_t : public basic_unit \n {\n duration_t dt{};\n };\n\n\n distance_t operator-(const position_t& lhs, const position_t& rhs) noexcept;\n\n constexpr static inline position_t operator+(const position_t& lhs, const distance_t& rhs) noexcept\n {\n return position_t\n {\n lhs.x + rhs.x(),\n lhs.y + rhs.y(),\n lhs.z + rhs.z()\n };\n };\n position_t& operator+=(position_t& lhs, const distance_t& rhs) noexcept;\n\n static inline position_t operator-(const position_t& lhs, const distance_t& rhs) noexcept\n {\n return position_t\n {\n lhs.x - rhs.x(),\n lhs.y - rhs.y(),\n lhs.z - rhs.z()\n };\n }; \n position_t& operator-=(position_t& lhs, const distance_t& rhs) noexcept;\n\n\n\n distance_t operator+(const distance_t& rhs, const distance_t& lhs) noexcept;\n distance_t& operator+=(distance_t& rhs, const distance_t& lhs) noexcept;\n\n distance_t operator-(const distance_t& rhs, const distance_t& lhs) noexcept;\n distance_t& operator-=(distance_t& rhs, const distance_t& lhs) noexcept;\n\n\n\n velocity_t operator+(const velocity_t& rhs, const velocity_t& lhs) noexcept;\n velocity_t& operator+=(velocity_t& rhs, const velocity_t& lhs) noexcept;\n\n velocity_t operator-(const velocity_t& rhs, const velocity_t& lhs) noexcept;\n velocity_t& operator-=(velocity_t& rhs, const velocity_t& lhs) noexcept;\n\n\n\n\n\n\n template <typename _Rep, typename _Period>\n velocity_t operator/(const distance_t& lhs, std::chrono::duration<_Rep, _Period> rhs)\n {\n return velocity_t{ lhs.dir, lhs.mag, std::chrono::duration_cast<duration_t>(rhs) };\n };\n\n \n\n\n\n\n\n\n\n\n\n class PhysicsObject\n {\n\n\n };\n\n\n\n\n\n}" (preproc_call) "#pragma once\n" (preproc_directive) "#pragma" (preproc_arg) "once" (preproc_include) "#include "SAEEngine.h"\n" (#include) "#include" (string_literal) ""SAEEngine.h"" (") """ (string_content) "SAEEngine.h" (") """ (preproc_include) "#include <cstdint>\n" (#include) "#include" (system_lib_string) "<cstdint>" (preproc_include) "#include <glm/vec3.hpp>\n" (#include) "#include" (system_lib_string) "<glm/vec3.hpp>" (preproc_include) "#include <glm/geometric.hpp>\n" (#include) "#include" (system_lib_string) "<glm/geometric.hpp>" (preproc_include) "#include <chrono>\n" (#include) "#include" (system_lib_string) "<chrono>" (function_definition) "namespace sae::engine\n{\n\n struct position_t;\n struct distance_t;\n struct velocity_t;\n struct acceleration_t;\n struct force_t;\n struct mass_t;\n\n\n\n\n using direction_t = glm::vec3;\n using magnitude_t = float_t;\n\n\n\n\n\n\n\n class physics_clock\n {\n public:\n using rep = int64_t;\n using period = std::nano;\n using duration = std::chrono::duration<rep, period>;\n using time_point = std::chrono::time_point<physics_clock>;\n static constexpr bool is_steady = false;\n static time_point now() noexcept;\n };\n\n using duration_t = typename physics_clock::duration;\n using time_point_t = typename physics_clock::time_point;\n\n\n\n struct basic_unit\n {\n constexpr auto x() const noexcept { return (this->mag * this->dir.x); };\n constexpr auto y() const noexcept { return (this->mag * this->dir.y); };\n constexpr auto z() const noexcept { return (this->mag * this->dir.z); };\n\n constexpr glm::vec3 as_vec() const noexcept { return (this->dir * this->mag); };\n\n constexpr basic_unit() noexcept = default;\n constexpr basic_unit(const direction_t& _d, magnitude_t _mag) noexcept : \n dir{ _d }, mag{ _mag }\n {};\n\n direction_t dir{};\n magnitude_t mag{};\n }" (type_identifier) "namespace" (ERROR) "sae::" (identifier) "sae" (:) ":" (:) ":" (identifier) "engine" (compound_statement) "{\n\n struct position_t;\n struct distance_t;\n struct velocity_t;\n struct acceleration_t;\n struct force_t;\n struct mass_t;\n\n\n\n\n using direction_t = glm::vec3;\n using magnitude_t = float_t;\n\n\n\n\n\n\n\n class physics_clock\n {\n public:\n using rep = int64_t;\n using period = std::nano;\n using duration = std::chrono::duration<rep, period>;\n using time_point = std::chrono::time_point<physics_clock>;\n static constexpr bool is_steady = false;\n static time_point now() noexcept;\n };\n\n using duration_t = typename physics_clock::duration;\n using time_point_t = typename physics_clock::time_point;\n\n\n\n struct basic_unit\n {\n constexpr auto x() const noexcept { return (this->mag * this->dir.x); };\n constexpr auto y() const noexcept { return (this->mag * this->dir.y); };\n constexpr auto z() const noexcept { return (this->mag * this->dir.z); };\n\n constexpr glm::vec3 as_vec() const noexcept { return (this->dir * this->mag); };\n\n constexpr basic_unit() noexcept = default;\n constexpr basic_unit(const direction_t& _d, magnitude_t _mag) noexcept : \n dir{ _d }, mag{ _mag }\n {};\n\n direction_t dir{};\n magnitude_t mag{};\n }" ({) "{" (struct_specifier) "struct position_t" (struct) "struct" (type_identifier) "position_t" (;) ";" (struct_specifier) "struct distance_t" (struct) "struct" (type_identifier) "distance_t" (;) ";" (struct_specifier) "struct velocity_t" (struct) "struct" (type_identifier) "velocity_t" (;) ";" (struct_specifier) "struct acceleration_t" (struct) "struct" (type_identifier) "acceleration_t" (;) ";" (struct_specifier) "struct force_t" (struct) "struct" (type_identifier) "force_t" (;) ";" (struct_specifier) "struct mass_t" (struct) "struct" (type_identifier) "mass_t" (;) ";" (declaration) "using direction_t = glm::vec3;" (type_identifier) "using" (init_declarator) "direction_t = glm::vec3" (identifier) "direction_t" (=) "=" (ERROR) "glm::" (identifier) "glm" (:) ":" (:) ":" (identifier) "vec3" (;) ";" (declaration) "using magnitude_t = float_t;" (type_identifier) "using" (init_declarator) "magnitude_t = float_t" (identifier) "magnitude_t" (=) "=" (identifier) "float_t" (;) ";" (function_definition) "class physics_clock\n {\n public:\n using rep = int64_t;\n using period = std::nano;\n using duration = std::chrono::duration<rep, period>;\n using time_point = std::chrono::time_point<physics_clock>;\n static constexpr bool is_steady = false;\n static time_point now() noexcept;\n }" (type_identifier) "class" (identifier) "physics_clock" (compound_statement) "{\n public:\n using rep = int64_t;\n using period = std::nano;\n using duration = std::chrono::duration<rep, period>;\n using time_point = std::chrono::time_point<physics_clock>;\n static constexpr bool is_steady = false;\n static time_point now() noexcept;\n }" ({) "{" (labeled_statement) "public:\n using rep = int64_t;" (statement_identifier) "public" (:) ":" (declaration) "using rep = int64_t;" (type_identifier) "using" (init_declarator) "rep = int64_t" (identifier) "rep" (=) "=" (identifier) "int64_t" (;) ";" (declaration) "using period = std::nano;" (type_identifier) "using" (init_declarator) "period = std::nano" (identifier) "period" (=) "=" (ERROR) "std::" (identifier) "std" (:) ":" (:) ":" (identifier) "nano" (;) ";" (declaration) "using duration = std::chrono::duration<rep, period>;" (type_identifier) "using" (init_declarator) "duration = std::chrono::duration<rep" (identifier) "duration" (=) "=" (ERROR) "std::chrono::" (identifier) "std" (:) ":" (:) ":" (identifier) "chrono" (:) ":" (:) ":" (binary_expression) "duration<rep" (identifier) "duration" (<) "<" (identifier) "rep" (,) "," (identifier) "period" (ERROR) ">" (>) ">" (;) ";" (declaration) "using time_point = std::chrono::time_point<physics_clock>;" (type_identifier) "using" (init_declarator) "time_point = std::chrono::time_point<physics_clock" (identifier) "time_point" (=) "=" (ERROR) "std::chrono::" (identifier) "std" (:) ":" (:) ":" (identifier) "chrono" (:) ":" (:) ":" (binary_expression) "time_point<physics_clock" (identifier) "time_point" (<) "<" (identifier) "physics_clock" (ERROR) ">" (>) ">" (;) ";" (declaration) "static constexpr bool is_steady = false;" (storage_class_specifier) "static" (static) "static" (type_qualifier) "constexpr" (constexpr) "constexpr" (primitive_type) "bool" (init_declarator) "is_steady = false" (identifier) "is_steady" (=) "=" (false) "false" (;) ";" (ERROR) "static time_point now() noexcept" (storage_class_specifier) "static" (static) "static" (type_identifier) "time_point" (function_declarator) "now()" (identifier) "now" (parameter_list) "()" (() "(" ()) ")" (type_identifier) "noexcept" (expression_statement) ";" (;) ";" (}) "}" (expression_statement) ";" (;) ";" (declaration) "using duration_t = typename" (type_identifier) "using" (init_declarator) "duration_t = typename" (identifier) "duration_t" (=) "=" (identifier) "typename" (;) "" (labeled_statement) "physics_clock::duration;" (statement_identifier) "physics_clock" (:) ":" (ERROR) ":" (:) ":" (expression_statement) "duration;" (identifier) "duration" (;) ";" (declaration) "using time_point_t = typename" (type_identifier) "using" (init_declarator) "time_point_t = typename" (identifier) "time_point_t" (=) "=" (identifier) "typename" (;) "" (labeled_statement) "physics_clock::time_point;" (statement_identifier) "physics_clock" (:) ":" (ERROR) ":" (:) ":" (expression_statement) "time_point;" (identifier) "time_point" (;) ";" (struct_specifier) "struct basic_unit\n {\n constexpr auto x() const noexcept { return (this->mag * this->dir.x); }" (struct) "struct" (type_identifier) "basic_unit" (field_declaration_list) "{\n constexpr auto x() const noexcept { return (this->mag * this->dir.x); }" ({) "{" (field_declaration) "constexpr auto x() const noexcept { return (this->mag * this->dir.x);" (type_qualifier) "constexpr" (constexpr) "constexpr" (storage_class_specifier) "auto" (auto) "auto" (macro_type_specifier) "x() const noexcept { return (this->mag * this->dir.x)" (identifier) "x" (() "(" (ERROR) ")" ()) ")" (type_descriptor) "const noexcept { return (this->mag * this->dir.x)" (type_qualifier) "const" (const) "const" (type_identifier) "noexcept" (ERROR) "{ return" ({) "{" (return) "return" (abstract_function_declarator) "(this->mag * this->dir.x)" (parameter_list) "(this->mag * this->dir.x)" (() "(" (parameter_declaration) "this->mag * this" (type_identifier) "this" (ERROR) "->mag" (->) "->" (identifier) "mag" (pointer_declarator) "* this" (*) "*" (identifier) "this" (ERROR) "->dir.x" (->) "->" (identifier) "dir" (.) "." (identifier) "x" ()) ")" ()) "" (;) ";" (}) "}" (;) ";" (function_definition) "constexpr auto y() const noexcept { return (this->mag * this->dir.y); }" (type_qualifier) "constexpr" (constexpr) "constexpr" (storage_class_specifier) "auto" (auto) "auto" (macro_type_specifier) "y()" (identifier) "y" (() "(" (type_descriptor) "" (type_identifier) "" ()) ")" (type_qualifier) "const" (const) "const" (identifier) "noexcept" (compound_statement) "{ return (this->mag * this->dir.y); }" ({) "{" (return_statement) "return (this->mag * this->dir.y);" (return) "return" (parenthesized_expression) "(this->mag * this->dir.y)" (() "(" (binary_expression) "this->mag * this->dir.y" (field_expression) "this->mag" (identifier) "this" (->) "->" (field_identifier) "mag" (*) "*" (field_expression) "this->dir.y" (field_expression) "this->dir" (identifier) "this" (->) "->" (field_identifier) "dir" (.) "." (field_identifier) "y" ()) ")" (;) ";" (}) "}" (expression_statement) ";" (;) ";" (function_definition) "constexpr auto z() const noexcept { return (this->mag * this->dir.z); }" (type_qualifier) "constexpr" (constexpr) "constexpr" (storage_class_specifier) "auto" (auto) "auto" (macro_type_specifier) "z()" (identifier) "z" (() "(" (type_descriptor) "" (type_identifier) "" ()) ")" (type_qualifier) "const" (const) "const" (identifier) "noexcept" (compound_statement) "{ return (this->mag * this->dir.z); }" ({) "{" (return_statement) "return (this->mag * this->dir.z);" (return) "return" (parenthesized_expression) "(this->mag * this->dir.z)" (() "(" (binary_expression) "this->mag * this->dir.z" (field_expression) "this->mag" (identifier) "this" (->) "->" (field_identifier) "mag" (*) "*" (field_expression) "this->dir.z" (field_expression) "this->dir" (identifier) "this" (->) "->" (field_identifier) "dir" (.) "." (field_identifier) "z" ()) ")" (;) ";" (}) "}" (expression_statement) ";" (;) ";" (function_definition) "constexpr glm::vec3 as_vec() const noexcept { return (this->dir * this->mag); };\n\n constexpr basic_unit() noexcept = default;\n constexpr basic_unit(const direction_t& _d, magnitude_t _mag) noexcept : \n dir{ _d }, mag{ _mag }\n {};\n\n direction_t dir{}" (type_qualifier) "constexpr" (constexpr) "constexpr" (type_identifier) "glm" (ERROR) "::vec3" (:) ":" (:) ":" (identifier) "vec3" (function_declarator) "as_vec()" (identifier) "as_vec" (parameter_list) "()" (() "(" ()) ")" (declaration) "const noexcept { return (this->dir * this->mag); };\n\n constexpr basic_unit() noexcept = default;" (type_qualifier) "const" (const) "const" (macro_type_specifier) "noexcept { return (this->dir * this->mag)" (identifier) "noexcept" (ERROR) "{ return" ({) "{" (return) "return" (() "(" (type_descriptor) "this->dir *" (type_identifier) "this" (ERROR) "->dir" (->) "->" (identifier) "dir" (abstract_pointer_declarator) "*" (*) "*" (ERROR) "this->mag" (identifier) "this" (->) "->" (identifier) "mag" ()) ")" (ERROR) "; };\n\n constexpr" (;) ";" (}) "}" (;) ";" (constexpr) "constexpr" (init_declarator) "basic_unit() noexcept = default" (function_declarator) "basic_unit() noexcept" (identifier) "basic_unit" (parameter_list) "()" (() "(" ()) ")" (identifier) "noexcept" (=) "=" (identifier) "default" (;) ";" (declaration) "constexpr basic_unit(const direction_t& _d, magnitude_t _mag) noexcept : \n dir{ _d }, mag{ _mag }\n {};" (type_qualifier) "constexpr" (constexpr) "constexpr" (macro_type_specifier) "basic_unit(const direction_t& _d, magnitude_t _mag)" (identifier) "basic_unit" (() "(" (type_descriptor) "const direction_t" (type_qualifier) "const" (const) "const" (type_identifier) "direction_t" (ERROR) "& _d, magnitude_t _mag" (&) "&" (identifier) "_d" (,) "," (identifier) "magnitude_t" (identifier) "_mag" ()) ")" (ERROR) "noexcept : \n dir{" (identifier) "noexcept" (:) ":" (identifier) "dir" ({) "{" (identifier) "_d" (ERROR) "}" (}) "}" (,) "," (ERROR) "mag{" (identifier) "mag" ({) "{" (identifier) "_mag" (ERROR) "}\n {}" (}) "}" ({) "{" (}) "}" (;) ";" (ERROR) "direction_t dir" (type_identifier) "direction_t" (identifier) "dir" (compound_statement) "{}" ({) "{" (}) "}" (expression_statement) ";" (;) ";" (function_definition) "magnitude_t mag{}" (type_identifier) "magnitude_t" (identifier) "mag" (compound_statement) "{}" ({) "{" (}) "}" (expression_statement) ";" (;) ";" (}) "}" (expression_statement) ";" (;) ";" (struct_specifier) "struct position_t\n {\n magnitude_t x{}" (struct) "struct" (type_identifier) "position_t" (field_declaration_list) "{\n magnitude_t x{}" ({) "{" (ERROR) "magnitude_t x{" (type_identifier) "magnitude_t" (field_identifier) "x" ({) "{" (}) "}" (;) ";" (function_definition) "magnitude_t y{}" (type_identifier) "magnitude_t" (identifier) "y" (compound_statement) "{}" ({) "{" (}) "}" (expression_statement) ";" (;) ";" (function_definition) "magnitude_t z{}" (type_identifier) "magnitude_t" (identifier) "z" (compound_statement) "{}" ({) "{" (}) "}" (expression_statement) ";" (;) ";" (ERROR) "}" (}) "}" (expression_statement) ";" (;) ";" (function_definition) "struct distance_t : public basic_unit \n {\n using basic_unit::basic_unit;\n }" (struct_specifier) "struct distance_t" (struct) "struct" (type_identifier) "distance_t" (ERROR) ": public" (:) ":" (identifier) "public" (identifier) "basic_unit" (compound_statement) "{\n using basic_unit::basic_unit;\n }" ({) "{" (declaration) "using basic_unit::basic_unit;" (type_identifier) "using" (identifier) "basic_unit" (ERROR) "::basic_unit" (:) ":" (:) ":" (identifier) "basic_unit" (;) ";" (}) "}" (expression_statement) ";" (;) ";" (function_definition) "struct velocity_t : public basic_unit \n {\n duration_t dt{};\n }" (struct_specifier) "struct velocity_t" (struct) "struct" (type_identifier) "velocity_t" (ERROR) ": public" (:) ":" (identifier) "public" (identifier) "basic_unit" (compound_statement) "{\n duration_t dt{};\n }" ({) "{" (function_definition) "duration_t dt{}" (type_identifier) "duration_t" (identifier) "dt" (compound_statement) "{}" ({) "{" (}) "}" (expression_statement) ";" (;) ";" (}) "}" (expression_statement) ";" (;) ";" (declaration) "distance_t operator" (type_identifier) "distance_t" (identifier) "operator" (;) "" (expression_statement) "-(const position_t& lhs, const position_t& rhs) noexcept;" (unary_expression) "-(const position_t& lhs, const position_t& rhs)" (-) "-" (parenthesized_expression) "(const position_t& lhs, const position_t& rhs)" (() "(" (ERROR) "const position_t" (type_descriptor) "const position_t" (type_qualifier) "const" (const) "const" (type_identifier) "position_t" (comma_expression) "& lhs, const position_t& rhs" (pointer_expression) "& lhs" (&) "&" (identifier) "lhs" (,) "," (ERROR) "const" (identifier) "const" (binary_expression) "position_t& rhs" (identifier) "position_t" (&) "&" (identifier) "rhs" ()) ")" (ERROR) "noexcept" (identifier) "noexcept" (;) ";" (declaration) "constexpr static inline position_t operator" (type_qualifier) "constexpr" (constexpr) "constexpr" (storage_class_specifier) "static" (static) "static" (storage_class_specifier) "inline" (inline) "inline" (type_identifier) "position_t" (identifier) "operator" (;) "" (ERROR) "+(const position_t& lhs, const distance_t& rhs) noexcept" (unary_expression) "+(const position_t& lhs, const distance_t& rhs)" (+) "+" (parenthesized_expression) "(const position_t& lhs, const distance_t& rhs)" (() "(" (ERROR) "const position_t" (type_descriptor) "const position_t" (type_qualifier) "const" (const) "const" (type_identifier) "position_t" (comma_expression) "& lhs, const distance_t& rhs" (pointer_expression) "& lhs" (&) "&" (identifier) "lhs" (,) "," (ERROR) "const" (identifier) "const" (binary_expression) "distance_t& rhs" (identifier) "distance_t" (&) "&" (identifier) "rhs" ()) ")" (identifier) "noexcept" (compound_statement) "{\n return position_t\n {\n lhs.x + rhs.x(),\n lhs.y + rhs.y(),\n lhs.z + rhs.z()\n };\n };\n position_t& operator+=(position_t& lhs, const distance_t& rhs) noexcept;\n\n static inline position_t operator-(const position_t& lhs, const distance_t& rhs) noexcept\n {\n return position_t\n {\n lhs.x - rhs.x(),\n lhs.y - rhs.y(),\n lhs.z - rhs.z()\n };\n }; \n position_t& operator-=(position_t& lhs, const distance_t& rhs) noexcept;\n\n\n\n distance_t operator+(const distance_t& rhs, const distance_t& lhs) noexcept;\n distance_t& operator+=(distance_t& rhs, const distance_t& lhs) noexcept;\n\n distance_t operator-(const distance_t& rhs, const distance_t& lhs) noexcept;\n distance_t& operator-=(distance_t& rhs, const distance_t& lhs) noexcept;\n\n\n\n velocity_t operator+(const velocity_t& rhs, const velocity_t& lhs) noexcept;\n velocity_t& operator+=(velocity_t& rhs, const velocity_t& lhs) noexcept;\n\n velocity_t operator-(const velocity_t& rhs, const velocity_t& lhs) noexcept;\n velocity_t& operator-=(velocity_t& rhs, const velocity_t& lhs) noexcept;\n\n\n\n\n\n\n template <typename _Rep, typename _Period>\n velocity_t operator/(const distance_t& lhs, std::chrono::duration<_Rep, _Period> rhs)\n {\n return velocity_t{ lhs.dir, lhs.mag, std::chrono::duration_cast<duration_t>(rhs) };\n };\n\n \n\n\n\n\n\n\n\n\n\n class PhysicsObject\n {\n\n\n };\n\n\n\n\n\n}" ({) "{" (return_statement) "return position_t" (return) "return" (identifier) "position_t" (;) "" (compound_statement) "{\n lhs.x + rhs.x(),\n lhs.y + rhs.y(),\n lhs.z + rhs.z()\n };\n }" ({) "{" (expression_statement) "lhs.x + rhs.x(),\n lhs.y + rhs.y(),\n lhs.z + rhs.z()\n };" (comma_expression) "lhs.x + rhs.x(),\n lhs.y + rhs.y(),\n lhs.z + rhs.z()" (binary_expression) "lhs.x + rhs.x()" (field_expression) "lhs.x" (identifier) "lhs" (.) "." (field_identifier) "x" (+) "+" (call_expression) "rhs.x()" (field_expression) "rhs.x" (identifier) "rhs" (.) "." (field_identifier) "x" (argument_list) "()" (() "(" ()) ")" (,) "," (comma_expression) "lhs.y + rhs.y(),\n lhs.z + rhs.z()" (binary_expression) "lhs.y + rhs.y()" (field_expression) "lhs.y" (identifier) "lhs" (.) "." (field_identifier) "y" (+) "+" (call_expression) "rhs.y()" (field_expression) "rhs.y" (identifier) "rhs" (.) "." (field_identifier) "y" (argument_list) "()" (() "(" ()) ")" (,) "," (binary_expression) "lhs.z + rhs.z()" (field_expression) "lhs.z" (identifier) "lhs" (.) "." (field_identifier) "z" (+) "+" (call_expression) "rhs.z()" (field_expression) "rhs.z" (identifier) "rhs" (.) "." (field_identifier) "z" (argument_list) "()" (() "(" ()) ")" (ERROR) "}" (}) "}" (;) ";" (}) "}" (expression_statement) ";" (;) ";" (expression_statement) "position_t& operator+=(position_t& lhs, const distance_t& rhs) noexcept;" (binary_expression) "position_t& operator+=(position_t& lhs, const distance_t& rhs)" (identifier) "position_t" (&) "&" (assignment_expression) "operator+=(position_t& lhs, const distance_t& rhs)" (identifier) "operator" (+=) "+=" (parenthesized_expression) "(position_t& lhs, const distance_t& rhs)" (() "(" (comma_expression) "position_t& lhs, const distance_t& rhs" (binary_expression) "position_t& lhs" (identifier) "position_t" (&) "&" (identifier) "lhs" (,) "," (ERROR) "const" (identifier) "const" (binary_expression) "distance_t& rhs" (identifier) "distance_t" (&) "&" (identifier) "rhs" ()) ")" (ERROR) "noexcept" (identifier) "noexcept" (;) ";" (declaration) "static inline position_t operator" (storage_class_specifier) "static" (static) "static" (storage_class_specifier) "inline" (inline) "inline" (type_identifier) "position_t" (identifier) "operator" (;) "" (ERROR) "-(const position_t& lhs, const distance_t& rhs) noexcept" (unary_expression) "-(const position_t& lhs, const distance_t& rhs)" (-) "-" (parenthesized_expression) "(const position_t& lhs, const distance_t& rhs)" (() "(" (ERROR) "const position_t" (type_descriptor) "const position_t" (type_qualifier) "const" (const) "const" (type_identifier) "position_t" (comma_expression) "& lhs, const distance_t& rhs" (pointer_expression) "& lhs" (&) "&" (identifier) "lhs" (,) "," (ERROR) "const" (identifier) "const" (binary_expression) "distance_t& rhs" (identifier) "distance_t" (&) "&" (identifier) "rhs" ()) ")" (identifier) "noexcept" (compound_statement) "{\n return position_t\n {\n lhs.x - rhs.x(),\n lhs.y - rhs.y(),\n lhs.z - rhs.z()\n };\n }; \n position_t& operator-=(position_t& lhs, const distance_t& rhs) noexcept;\n\n\n\n distance_t operator+(const distance_t& rhs, const distance_t& lhs) noexcept;\n distance_t& operator+=(distance_t& rhs, const distance_t& lhs) noexcept;\n\n distance_t operator-(const distance_t& rhs, const distance_t& lhs) noexcept;\n distance_t& operator-=(distance_t& rhs, const distance_t& lhs) noexcept;\n\n\n\n velocity_t operator+(const velocity_t& rhs, const velocity_t& lhs) noexcept;\n velocity_t& operator+=(velocity_t& rhs, const velocity_t& lhs) noexcept;\n\n velocity_t operator-(const velocity_t& rhs, const velocity_t& lhs) noexcept;\n velocity_t& operator-=(velocity_t& rhs, const velocity_t& lhs) noexcept;\n\n\n\n\n\n\n template <typename _Rep, typename _Period>\n velocity_t operator/(const distance_t& lhs, std::chrono::duration<_Rep, _Period> rhs)\n {\n return velocity_t{ lhs.dir, lhs.mag, std::chrono::duration_cast<duration_t>(rhs) };\n };\n\n \n\n\n\n\n\n\n\n\n\n class PhysicsObject\n {\n\n\n };\n\n\n\n\n\n}" ({) "{" (return_statement) "return position_t" (return) "return" (identifier) "position_t" (;) "" (compound_statement) "{\n lhs.x - rhs.x(),\n lhs.y - rhs.y(),\n lhs.z - rhs.z()\n };\n }" ({) "{" (expression_statement) "lhs.x - rhs.x(),\n lhs.y - rhs.y(),\n lhs.z - rhs.z()\n };" (comma_expression) "lhs.x - rhs.x(),\n lhs.y - rhs.y(),\n lhs.z - rhs.z()" (binary_expression) "lhs.x - rhs.x()" (field_expression) "lhs.x" (identifier) "lhs" (.) "." (field_identifier) "x" (-) "-" (call_expression) "rhs.x()" (field_expression) "rhs.x" (identifier) "rhs" (.) "." (field_identifier) "x" (argument_list) "()" (() "(" ()) ")" (,) "," (comma_expression) "lhs.y - rhs.y(),\n lhs.z - rhs.z()" (binary_expression) "lhs.y - rhs.y()" (field_expression) "lhs.y" (identifier) "lhs" (.) "." (field_identifier) "y" (-) "-" (call_expression) "rhs.y()" (field_expression) "rhs.y" (identifier) "rhs" (.) "." (field_identifier) "y" (argument_list) "()" (() "(" ()) ")" (,) "," (binary_expression) "lhs.z - rhs.z()" (field_expression) "lhs.z" (identifier) "lhs" (.) "." (field_identifier) "z" (-) "-" (call_expression) "rhs.z()" (field_expression) "rhs.z" (identifier) "rhs" (.) "." (field_identifier) "z" (argument_list) "()" (() "(" ()) ")" (ERROR) "}" (}) "}" (;) ";" (}) "}" (expression_statement) ";" (;) ";" (expression_statement) "position_t& operator-=(position_t& lhs, const distance_t& rhs) noexcept;" (binary_expression) "position_t& operator-=(position_t& lhs, const distance_t& rhs)" (identifier) "position_t" (&) "&" (assignment_expression) "operator-=(position_t& lhs, const distance_t& rhs)" (identifier) "operator" (-=) "-=" (parenthesized_expression) "(position_t& lhs, const distance_t& rhs)" (() "(" (comma_expression) "position_t& lhs, const distance_t& rhs" (binary_expression) "position_t& lhs" (identifier) "position_t" (&) "&" (identifier) "lhs" (,) "," (ERROR) "const" (identifier) "const" (binary_expression) "distance_t& rhs" (identifier) "distance_t" (&) "&" (identifier) "rhs" ()) ")" (ERROR) "noexcept" (identifier) "noexcept" (;) ";" (declaration) "distance_t operator" (type_identifier) "distance_t" (identifier) "operator" (;) "" (expression_statement) "+(const distance_t& rhs, const distance_t& lhs) noexcept;" (unary_expression) "+(const distance_t& rhs, const distance_t& lhs)" (+) "+" (parenthesized_expression) "(const distance_t& rhs, const distance_t& lhs)" (() "(" (ERROR) "const distance_t" (type_descriptor) "const distance_t" (type_qualifier) "const" (const) "const" (type_identifier) "distance_t" (comma_expression) "& rhs, const distance_t& lhs" (pointer_expression) "& rhs" (&) "&" (identifier) "rhs" (,) "," (ERROR) "const" (identifier) "const" (binary_expression) "distance_t& lhs" (identifier) "distance_t" (&) "&" (identifier) "lhs" ()) ")" (ERROR) "noexcept" (identifier) "noexcept" (;) ";" (expression_statement) "distance_t& operator+=(distance_t& rhs, const distance_t& lhs) noexcept;" (binary_expression) "distance_t& operator+=(distance_t& rhs, const distance_t& lhs)" (identifier) "distance_t" (&) "&" (assignment_expression) "operator+=(distance_t& rhs, const distance_t& lhs)" (identifier) "operator" (+=) "+=" (parenthesized_expression) "(distance_t& rhs, const distance_t& lhs)" (() "(" (comma_expression) "distance_t& rhs, const distance_t& lhs" (binary_expression) "distance_t& rhs" (identifier) "distance_t" (&) "&" (identifier) "rhs" (,) "," (ERROR) "const" (identifier) "const" (binary_expression) "distance_t& lhs" (identifier) "distance_t" (&) "&" (identifier) "lhs" ()) ")" (ERROR) "noexcept" (identifier) "noexcept" (;) ";" (declaration) "distance_t operator" (type_identifier) "distance_t" (identifier) "operator" (;) "" (expression_statement) "-(const distance_t& rhs, const distance_t& lhs) noexcept;" (unary_expression) "-(const distance_t& rhs, const distance_t& lhs)" (-) "-" (parenthesized_expression) "(const distance_t& rhs, const distance_t& lhs)" (() "(" (ERROR) "const distance_t" (type_descriptor) "const distance_t" (type_qualifier) "const" (const) "const" (type_identifier) "distance_t" (comma_expression) "& rhs, const distance_t& lhs" (pointer_expression) "& rhs" (&) "&" (identifier) "rhs" (,) "," (ERROR) "const" (identifier) "const" (binary_expression) "distance_t& lhs" (identifier) "distance_t" (&) "&" (identifier) "lhs" ()) ")" (ERROR) "noexcept" (identifier) "noexcept" (;) ";" (expression_statement) "distance_t& operator-=(distance_t& rhs, const distance_t& lhs) noexcept;" (binary_expression) "distance_t& operator-=(distance_t& rhs, const distance_t& lhs)" (identifier) "distance_t" (&) "&" (assignment_expression) "operator-=(distance_t& rhs, const distance_t& lhs)" (identifier) "operator" (-=) "-=" (parenthesized_expression) "(distance_t& rhs, const distance_t& lhs)" (() "(" (comma_expression) "distance_t& rhs, const distance_t& lhs" (binary_expression) "distance_t& rhs" (identifier) "distance_t" (&) "&" (identifier) "rhs" (,) "," (ERROR) "const" (identifier) "const" (binary_expression) "distance_t& lhs" (identifier) "distance_t" (&) "&" (identifier) "lhs" ()) ")" (ERROR) "noexcept" (identifier) "noexcept" (;) ";" (declaration) "velocity_t operator" (type_identifier) "velocity_t" (identifier) "operator" (;) "" (expression_statement) "+(const velocity_t& rhs, const velocity_t& lhs) noexcept;" (unary_expression) "+(const velocity_t& rhs, const velocity_t& lhs)" (+) "+" (parenthesized_expression) "(const velocity_t& rhs, const velocity_t& lhs)" (() "(" (ERROR) "const velocity_t" (type_descriptor) "const velocity_t" (type_qualifier) "const" (const) "const" (type_identifier) "velocity_t" (comma_expression) "& rhs, const velocity_t& lhs" (pointer_expression) "& rhs" (&) "&" (identifier) "rhs" (,) "," (ERROR) "const" (identifier) "const" (binary_expression) "velocity_t& lhs" (identifier) "velocity_t" (&) "&" (identifier) "lhs" ()) ")" (ERROR) "noexcept" (identifier) "noexcept" (;) ";" (expression_statement) "velocity_t& operator+=(velocity_t& rhs, const velocity_t& lhs) noexcept;" (binary_expression) "velocity_t& operator+=(velocity_t& rhs, const velocity_t& lhs)" (identifier) "velocity_t" (&) "&" (assignment_expression) "operator+=(velocity_t& rhs, const velocity_t& lhs)" (identifier) "operator" (+=) "+=" (parenthesized_expression) "(velocity_t& rhs, const velocity_t& lhs)" (() "(" (comma_expression) "velocity_t& rhs, const velocity_t& lhs" (binary_expression) "velocity_t& rhs" (identifier) "velocity_t" (&) "&" (identifier) "rhs" (,) "," (ERROR) "const" (identifier) "const" (binary_expression) "velocity_t& lhs" (identifier) "velocity_t" (&) "&" (identifier) "lhs" ()) ")" (ERROR) "noexcept" (identifier) "noexcept" (;) ";" (declaration) "velocity_t operator" (type_identifier) "velocity_t" (identifier) "operator" (;) "" (expression_statement) "-(const velocity_t& rhs, const velocity_t& lhs) noexcept;" (unary_expression) "-(const velocity_t& rhs, const velocity_t& lhs)" (-) "-" (parenthesized_expression) "(const velocity_t& rhs, const velocity_t& lhs)" (() "(" (ERROR) "const velocity_t" (type_descriptor) "const velocity_t" (type_qualifier) "const" (const) "const" (type_identifier) "velocity_t" (comma_expression) "& rhs, const velocity_t& lhs" (pointer_expression) "& rhs" (&) "&" (identifier) "rhs" (,) "," (ERROR) "const" (identifier) "const" (binary_expression) "velocity_t& lhs" (identifier) "velocity_t" (&) "&" (identifier) "lhs" ()) ")" (ERROR) "noexcept" (identifier) "noexcept" (;) ";" (expression_statement) "velocity_t& operator-=(velocity_t& rhs, const velocity_t& lhs) noexcept;" (binary_expression) "velocity_t& operator-=(velocity_t& rhs, const velocity_t& lhs)" (identifier) "velocity_t" (&) "&" (assignment_expression) "operator-=(velocity_t& rhs, const velocity_t& lhs)" (identifier) "operator" (-=) "-=" (parenthesized_expression) "(velocity_t& rhs, const velocity_t& lhs)" (() "(" (comma_expression) "velocity_t& rhs, const velocity_t& lhs" (binary_expression) "velocity_t& rhs" (identifier) "velocity_t" (&) "&" (identifier) "rhs" (,) "," (ERROR) "const" (identifier) "const" (binary_expression) "velocity_t& lhs" (identifier) "velocity_t" (&) "&" (identifier) "lhs" ()) ")" (ERROR) "noexcept" (identifier) "noexcept" (;) ";" (expression_statement) "template <typename _Rep, typename _Period>\n velocity_t operator/(const distance_t& lhs, std::chrono::duration<_Rep, _Period> rhs)" (comma_expression) "template <typename _Rep, typename _Period>\n velocity_t operator/(const distance_t& lhs, std::chrono::duration<_Rep, _Period> rhs)" (binary_expression) "template <typename" (identifier) "template" (<) "<" (identifier) "typename" (ERROR) "_Rep" (identifier) "_Rep" (,) "," (binary_expression) "typename _Period>\n velocity_t operator/(const distance_t& lhs, std::chrono::duration<_Rep, _Period> rhs)" (identifier) "typename" (ERROR) "_Period" (identifier) "_Period" (>) ">" (binary_expression) "velocity_t operator/(const distance_t& lhs, std::chrono::duration<_Rep, _Period> rhs)" (identifier) "velocity_t" (ERROR) "operator" (identifier) "operator" (/) "/" (parenthesized_expression) "(const distance_t& lhs, std::chrono::duration<_Rep, _Period> rhs)" (() "(" (ERROR) "const distance_t& lhs, std::chrono::" (type_descriptor) "const distance_t" (type_qualifier) "const" (const) "const" (type_identifier) "distance_t" (comma_expression) "& lhs, std" (pointer_expression) "& lhs" (&) "&" (identifier) "lhs" (,) "," (identifier) "std" (:) ":" (:) ":" (identifier) "chrono" (:) ":" (:) ":" (comma_expression) "duration<_Rep, _Period> rhs" (binary_expression) "duration<_Rep" (identifier) "duration" (<) "<" (identifier) "_Rep" (,) "," (binary_expression) "_Period> rhs" (identifier) "_Period" (>) ">" (identifier) "rhs" ()) ")" (;) "" (compound_statement) "{\n return velocity_t{ lhs.dir, lhs.mag, std::chrono::duration_cast<duration_t>(rhs) };\n }" ({) "{" (return_statement) "return velocity_t" (return) "return" (identifier) "velocity_t" (;) "" (compound_statement) "{ lhs.dir, lhs.mag, std::chrono::duration_cast<duration_t>(rhs) }" ({) "{" (ERROR) "lhs.dir, lhs.mag, std::chrono::duration_cast<duration_t>(rhs)" (comma_expression) "lhs.dir, lhs.mag, std" (field_expression) "lhs.dir" (identifier) "lhs" (.) "." (field_identifier) "dir" (,) "," (comma_expression) "lhs.mag, std" (field_expression) "lhs.mag" (identifier) "lhs" (.) "." (field_identifier) "mag" (,) "," (identifier) "std" (:) ":" (:) ":" (identifier) "chrono" (ERROR) ":" (:) ":" (:) ":" (binary_expression) "duration_cast<duration_t>(rhs)" (binary_expression) "duration_cast<duration_t" (identifier) "duration_cast" (<) "<" (identifier) "duration_t" (>) ">" (parenthesized_expression) "(rhs)" (() "(" (identifier) "rhs" ()) ")" (}) "}" (expression_statement) ";" (;) ";" (}) "}" (expression_statement) ";" (;) ";" (function_definition) "class PhysicsObject\n {\n\n\n }" (type_identifier) "class" (identifier) "PhysicsObject" (compound_statement) "{\n\n\n }" ({) "{" (}) "}" (expression_statement) ";" (;) ";" (}) "}" (}) ""
1,074
71
{"language": "c", "success": true, "metadata": {"lines": 115, "avg_line_length": 24.88, "nodes": 631, "errors": 0, "source_hash": "0ed03bba3aa0ce52decdf7e8c89b541c44b55d4191640d633b7945368b92a3b6", "categorized_nodes": 482}, "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 \"SAEEngine.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": "\"SAEEngine.h\"", "parent": 3, "children": [], "start_point": {"row": 2, "column": 9}, "end_point": {"row": 2, "column": 22}}, {"id": 6, "type": "preproc_include", "text": "#include <cstdint>\n", "parent": null, "children": [7, 8], "start_point": {"row": 4, "column": 0}, "end_point": {"row": 5, "column": 0}}, {"id": 7, "type": "#include", "text": "#include", "parent": 6, "children": [], "start_point": {"row": 4, "column": 0}, "end_point": {"row": 4, "column": 8}}, {"id": 8, "type": "system_lib_string", "text": "<cstdint>", "parent": 6, "children": [], "start_point": {"row": 4, "column": 9}, "end_point": {"row": 4, "column": 18}}, {"id": 9, "type": "preproc_include", "text": "#include <glm/vec3.hpp>\n", "parent": null, "children": [10, 11], "start_point": {"row": 6, "column": 0}, "end_point": {"row": 7, "column": 0}}, {"id": 10, "type": "#include", "text": "#include", "parent": 9, "children": [], "start_point": {"row": 6, "column": 0}, "end_point": {"row": 6, "column": 8}}, {"id": 11, "type": "system_lib_string", "text": "<glm/vec3.hpp>", "parent": 9, "children": [], "start_point": {"row": 6, "column": 9}, "end_point": {"row": 6, "column": 23}}, {"id": 12, "type": "preproc_include", "text": "#include <glm/geometric.hpp>\n", "parent": null, "children": [13, 14], "start_point": {"row": 7, "column": 0}, "end_point": {"row": 8, "column": 0}}, {"id": 13, "type": "#include", "text": "#include", "parent": 12, "children": [], "start_point": {"row": 7, "column": 0}, "end_point": {"row": 7, "column": 8}}, {"id": 14, "type": "system_lib_string", "text": "<glm/geometric.hpp>", "parent": 12, "children": [], "start_point": {"row": 7, "column": 9}, "end_point": {"row": 7, "column": 28}}, {"id": 15, "type": "preproc_include", "text": "#include <chrono>\n", "parent": null, "children": [16, 17], "start_point": {"row": 9, "column": 0}, "end_point": {"row": 10, "column": 0}}, {"id": 16, "type": "#include", "text": "#include", "parent": 15, "children": [], "start_point": {"row": 9, "column": 0}, "end_point": {"row": 9, "column": 8}}, {"id": 17, "type": "system_lib_string", "text": "<chrono>", "parent": 15, "children": [], "start_point": {"row": 9, "column": 9}, "end_point": {"row": 9, "column": 17}}, {"id": 18, "type": "function_definition", "text": "namespace sae::engine\n{\n\n\tstruct position_t;\n\tstruct distance_t;\n\tstruct velocity_t;\n\tstruct acceleration_t;\n\tstruct force_t;\n\tstruct mass_t;\n\n\n\n\n\tusing direction_t = glm::vec3;\n\tusing magnitude_t = float_t;\n\n\n\n\n\n\n\n\tclass physics_clock\n\t{\n\tpublic:\n\t\tusing rep = int64_t;\n\t\tusing period = std::nano;\n\t\tusing duration = std::chrono::duration<rep, period>;\n\t\tusing time_point = std::chrono::time_point<physics_clock>;\n\t\tstatic constexpr bool is_steady = false;\n\t\tstatic time_point now() noexcept;\n\t};\n\n\tusing duration_t = typename physics_clock::duration;\n\tusing time_point_t = typename physics_clock::time_point;\n\n\n\n\tstruct basic_unit\n\t{\n\t\tconstexpr auto x() const noexcept { return (this->mag * this->dir.x); };\n\t\tconstexpr auto y() const noexcept { return (this->mag * this->dir.y); };\n\t\tconstexpr auto z() const noexcept { return (this->mag * this->dir.z); };\n\n\t\tconstexpr glm::vec3 as_vec() const noexcept { return (this->dir * this->mag); };\n\n\t\tconstexpr basic_unit() noexcept = default;\n\t\tconstexpr basic_unit(const direction_t& _d, magnitude_t _mag) noexcept : \n\t\t\tdir{ _d }, mag{ _mag }\n\t\t{};\n\n\t\tdirection_t dir{};\n\t\tmagnitude_t mag{};\n\t}", "parent": null, "children": [19, 20, 22], "start_point": {"row": 11, "column": 0}, "end_point": {"row": 64, "column": 2}}, {"id": 19, "type": "type_identifier", "text": "namespace", "parent": 18, "children": [], "start_point": {"row": 11, "column": 0}, "end_point": {"row": 11, "column": 9}}, {"id": 20, "type": "ERROR", "text": "sae::", "parent": 18, "children": [21], "start_point": {"row": 11, "column": 10}, "end_point": {"row": 11, "column": 15}}, {"id": 21, "type": "identifier", "text": "sae", "parent": 20, "children": [], "start_point": {"row": 11, "column": 10}, "end_point": {"row": 11, "column": 13}}, {"id": 22, "type": "identifier", "text": "engine", "parent": 18, "children": [], "start_point": {"row": 11, "column": 15}, "end_point": {"row": 11, "column": 21}}, {"id": 23, "type": "struct_specifier", "text": "struct position_t", "parent": 18, "children": [24, 25], "start_point": {"row": 14, "column": 1}, "end_point": {"row": 14, "column": 18}}, {"id": 24, "type": "struct", "text": "struct", "parent": 23, "children": [], "start_point": {"row": 14, "column": 1}, "end_point": {"row": 14, "column": 7}}, {"id": 25, "type": "type_identifier", "text": "position_t", "parent": 23, "children": [], "start_point": {"row": 14, "column": 8}, "end_point": {"row": 14, "column": 18}}, {"id": 26, "type": "struct_specifier", "text": "struct distance_t", "parent": 18, "children": [27, 28], "start_point": {"row": 15, "column": 1}, "end_point": {"row": 15, "column": 18}}, {"id": 27, "type": "struct", "text": "struct", "parent": 26, "children": [], "start_point": {"row": 15, "column": 1}, "end_point": {"row": 15, "column": 7}}, {"id": 28, "type": "type_identifier", "text": "distance_t", "parent": 26, "children": [], "start_point": {"row": 15, "column": 8}, "end_point": {"row": 15, "column": 18}}, {"id": 29, "type": "struct_specifier", "text": "struct velocity_t", "parent": 18, "children": [30, 31], "start_point": {"row": 16, "column": 1}, "end_point": {"row": 16, "column": 18}}, {"id": 30, "type": "struct", "text": "struct", "parent": 29, "children": [], "start_point": {"row": 16, "column": 1}, "end_point": {"row": 16, "column": 7}}, {"id": 31, "type": "type_identifier", "text": "velocity_t", "parent": 29, "children": [], "start_point": {"row": 16, "column": 8}, "end_point": {"row": 16, "column": 18}}, {"id": 32, "type": "struct_specifier", "text": "struct acceleration_t", "parent": 18, "children": [33, 34], "start_point": {"row": 17, "column": 1}, "end_point": {"row": 17, "column": 22}}, {"id": 33, "type": "struct", "text": "struct", "parent": 32, "children": [], "start_point": {"row": 17, "column": 1}, "end_point": {"row": 17, "column": 7}}, {"id": 34, "type": "type_identifier", "text": "acceleration_t", "parent": 32, "children": [], "start_point": {"row": 17, "column": 8}, "end_point": {"row": 17, "column": 22}}, {"id": 35, "type": "struct_specifier", "text": "struct force_t", "parent": 18, "children": [36, 37], "start_point": {"row": 18, "column": 1}, "end_point": {"row": 18, "column": 15}}, {"id": 36, "type": "struct", "text": "struct", "parent": 35, "children": [], "start_point": {"row": 18, "column": 1}, "end_point": {"row": 18, "column": 7}}, {"id": 37, "type": "type_identifier", "text": "force_t", "parent": 35, "children": [], "start_point": {"row": 18, "column": 8}, "end_point": {"row": 18, "column": 15}}, {"id": 38, "type": "struct_specifier", "text": "struct mass_t", "parent": 18, "children": [39, 40], "start_point": {"row": 19, "column": 1}, "end_point": {"row": 19, "column": 14}}, {"id": 39, "type": "struct", "text": "struct", "parent": 38, "children": [], "start_point": {"row": 19, "column": 1}, "end_point": {"row": 19, "column": 7}}, {"id": 40, "type": "type_identifier", "text": "mass_t", "parent": 38, "children": [], "start_point": {"row": 19, "column": 8}, "end_point": {"row": 19, "column": 14}}, {"id": 41, "type": "declaration", "text": "using direction_t = glm::vec3;", "parent": 18, "children": [42, 43], "start_point": {"row": 24, "column": 1}, "end_point": {"row": 24, "column": 31}}, {"id": 42, "type": "type_identifier", "text": "using", "parent": 41, "children": [], "start_point": {"row": 24, "column": 1}, "end_point": {"row": 24, "column": 6}}, {"id": 43, "type": "init_declarator", "text": "direction_t = glm::vec3", "parent": 41, "children": [44, 45, 46, 48], "start_point": {"row": 24, "column": 7}, "end_point": {"row": 24, "column": 30}}, {"id": 44, "type": "identifier", "text": "direction_t", "parent": 43, "children": [], "start_point": {"row": 24, "column": 7}, "end_point": {"row": 24, "column": 18}}, {"id": 45, "type": "=", "text": "=", "parent": 43, "children": [], "start_point": {"row": 24, "column": 19}, "end_point": {"row": 24, "column": 20}}, {"id": 46, "type": "ERROR", "text": "glm::", "parent": 43, "children": [47], "start_point": {"row": 24, "column": 21}, "end_point": {"row": 24, "column": 26}}, {"id": 47, "type": "identifier", "text": "glm", "parent": 46, "children": [], "start_point": {"row": 24, "column": 21}, "end_point": {"row": 24, "column": 24}}, {"id": 48, "type": "identifier", "text": "vec3", "parent": 43, "children": [], "start_point": {"row": 24, "column": 26}, "end_point": {"row": 24, "column": 30}}, {"id": 49, "type": "declaration", "text": "using magnitude_t = float_t;", "parent": 18, "children": [50, 51], "start_point": {"row": 25, "column": 1}, "end_point": {"row": 25, "column": 29}}, {"id": 50, "type": "type_identifier", "text": "using", "parent": 49, "children": [], "start_point": {"row": 25, "column": 1}, "end_point": {"row": 25, "column": 6}}, {"id": 51, "type": "init_declarator", "text": "magnitude_t = float_t", "parent": 49, "children": [52, 53, 54], "start_point": {"row": 25, "column": 7}, "end_point": {"row": 25, "column": 28}}, {"id": 52, "type": "identifier", "text": "magnitude_t", "parent": 51, "children": [], "start_point": {"row": 25, "column": 7}, "end_point": {"row": 25, "column": 18}}, {"id": 53, "type": "=", "text": "=", "parent": 51, "children": [], "start_point": {"row": 25, "column": 19}, "end_point": {"row": 25, "column": 20}}, {"id": 54, "type": "identifier", "text": "float_t", "parent": 51, "children": [], "start_point": {"row": 25, "column": 21}, "end_point": {"row": 25, "column": 28}}, {"id": 55, "type": "function_definition", "text": "class physics_clock\n\t{\n\tpublic:\n\t\tusing rep = int64_t;\n\t\tusing period = std::nano;\n\t\tusing duration = std::chrono::duration<rep, period>;\n\t\tusing time_point = std::chrono::time_point<physics_clock>;\n\t\tstatic constexpr bool is_steady = false;\n\t\tstatic time_point now() noexcept;\n\t}", "parent": 18, "children": [56], "start_point": {"row": 33, "column": 1}, "end_point": {"row": 42, "column": 2}}, {"id": 56, "type": "identifier", "text": "physics_clock", "parent": 55, "children": [], "start_point": {"row": 33, "column": 7}, "end_point": {"row": 33, "column": 20}}, {"id": 57, "type": "labeled_statement", "text": "public:\n\t\tusing rep = int64_t;", "parent": 55, "children": [58], "start_point": {"row": 35, "column": 1}, "end_point": {"row": 36, "column": 22}}, {"id": 58, "type": "declaration", "text": "using rep = int64_t;", "parent": 57, "children": [59, 60], "start_point": {"row": 36, "column": 2}, "end_point": {"row": 36, "column": 22}}, {"id": 59, "type": "type_identifier", "text": "using", "parent": 58, "children": [], "start_point": {"row": 36, "column": 2}, "end_point": {"row": 36, "column": 7}}, {"id": 60, "type": "init_declarator", "text": "rep = int64_t", "parent": 58, "children": [61, 62, 63], "start_point": {"row": 36, "column": 8}, "end_point": {"row": 36, "column": 21}}, {"id": 61, "type": "identifier", "text": "rep", "parent": 60, "children": [], "start_point": {"row": 36, "column": 8}, "end_point": {"row": 36, "column": 11}}, {"id": 62, "type": "=", "text": "=", "parent": 60, "children": [], "start_point": {"row": 36, "column": 12}, "end_point": {"row": 36, "column": 13}}, {"id": 63, "type": "identifier", "text": "int64_t", "parent": 60, "children": [], "start_point": {"row": 36, "column": 14}, "end_point": {"row": 36, "column": 21}}, {"id": 64, "type": "declaration", "text": "using period = std::nano;", "parent": 55, "children": [65, 66], "start_point": {"row": 37, "column": 2}, "end_point": {"row": 37, "column": 27}}, {"id": 65, "type": "type_identifier", "text": "using", "parent": 64, "children": [], "start_point": {"row": 37, "column": 2}, "end_point": {"row": 37, "column": 7}}, {"id": 66, "type": "init_declarator", "text": "period = std::nano", "parent": 64, "children": [67, 68, 69, 71], "start_point": {"row": 37, "column": 8}, "end_point": {"row": 37, "column": 26}}, {"id": 67, "type": "identifier", "text": "period", "parent": 66, "children": [], "start_point": {"row": 37, "column": 8}, "end_point": {"row": 37, "column": 14}}, {"id": 68, "type": "=", "text": "=", "parent": 66, "children": [], "start_point": {"row": 37, "column": 15}, "end_point": {"row": 37, "column": 16}}, {"id": 69, "type": "ERROR", "text": "std::", "parent": 66, "children": [70], "start_point": {"row": 37, "column": 17}, "end_point": {"row": 37, "column": 22}}, {"id": 70, "type": "identifier", "text": "std", "parent": 69, "children": [], "start_point": {"row": 37, "column": 17}, "end_point": {"row": 37, "column": 20}}, {"id": 71, "type": "identifier", "text": "nano", "parent": 66, "children": [], "start_point": {"row": 37, "column": 22}, "end_point": {"row": 37, "column": 26}}, {"id": 72, "type": "declaration", "text": "using duration = std::chrono::duration<rep, period>;", "parent": 55, "children": [73, 74, 84, 85], "start_point": {"row": 38, "column": 2}, "end_point": {"row": 38, "column": 54}}, {"id": 73, "type": "type_identifier", "text": "using", "parent": 72, "children": [], "start_point": {"row": 38, "column": 2}, "end_point": {"row": 38, "column": 7}}, {"id": 74, "type": "init_declarator", "text": "duration = std::chrono::duration<rep", "parent": 72, "children": [75, 76, 77, 80], "start_point": {"row": 38, "column": 8}, "end_point": {"row": 38, "column": 44}}, {"id": 75, "type": "identifier", "text": "duration", "parent": 74, "children": [], "start_point": {"row": 38, "column": 8}, "end_point": {"row": 38, "column": 16}}, {"id": 76, "type": "=", "text": "=", "parent": 74, "children": [], "start_point": {"row": 38, "column": 17}, "end_point": {"row": 38, "column": 18}}, {"id": 77, "type": "ERROR", "text": "std::chrono::", "parent": 74, "children": [78, 79], "start_point": {"row": 38, "column": 19}, "end_point": {"row": 38, "column": 32}}, {"id": 78, "type": "identifier", "text": "std", "parent": 77, "children": [], "start_point": {"row": 38, "column": 19}, "end_point": {"row": 38, "column": 22}}, {"id": 79, "type": "identifier", "text": "chrono", "parent": 77, "children": [], "start_point": {"row": 38, "column": 24}, "end_point": {"row": 38, "column": 30}}, {"id": 80, "type": "binary_expression", "text": "duration<rep", "parent": 74, "children": [81, 82, 83], "start_point": {"row": 38, "column": 32}, "end_point": {"row": 38, "column": 44}}, {"id": 81, "type": "identifier", "text": "duration", "parent": 80, "children": [], "start_point": {"row": 38, "column": 32}, "end_point": {"row": 38, "column": 40}}, {"id": 82, "type": "<", "text": "<", "parent": 80, "children": [], "start_point": {"row": 38, "column": 40}, "end_point": {"row": 38, "column": 41}}, {"id": 83, "type": "identifier", "text": "rep", "parent": 80, "children": [], "start_point": {"row": 38, "column": 41}, "end_point": {"row": 38, "column": 44}}, {"id": 84, "type": "identifier", "text": "period", "parent": 72, "children": [], "start_point": {"row": 38, "column": 46}, "end_point": {"row": 38, "column": 52}}, {"id": 85, "type": "ERROR", "text": ">", "parent": 72, "children": [86], "start_point": {"row": 38, "column": 52}, "end_point": {"row": 38, "column": 53}}, {"id": 86, "type": ">", "text": ">", "parent": 85, "children": [], "start_point": {"row": 38, "column": 52}, "end_point": {"row": 38, "column": 53}}, {"id": 87, "type": "declaration", "text": "using time_point = std::chrono::time_point<physics_clock>;", "parent": 55, "children": [88, 89, 99], "start_point": {"row": 39, "column": 2}, "end_point": {"row": 39, "column": 60}}, {"id": 88, "type": "type_identifier", "text": "using", "parent": 87, "children": [], "start_point": {"row": 39, "column": 2}, "end_point": {"row": 39, "column": 7}}, {"id": 89, "type": "init_declarator", "text": "time_point = std::chrono::time_point<physics_clock", "parent": 87, "children": [90, 91, 92, 95], "start_point": {"row": 39, "column": 8}, "end_point": {"row": 39, "column": 58}}, {"id": 90, "type": "identifier", "text": "time_point", "parent": 89, "children": [], "start_point": {"row": 39, "column": 8}, "end_point": {"row": 39, "column": 18}}, {"id": 91, "type": "=", "text": "=", "parent": 89, "children": [], "start_point": {"row": 39, "column": 19}, "end_point": {"row": 39, "column": 20}}, {"id": 92, "type": "ERROR", "text": "std::chrono::", "parent": 89, "children": [93, 94], "start_point": {"row": 39, "column": 21}, "end_point": {"row": 39, "column": 34}}, {"id": 93, "type": "identifier", "text": "std", "parent": 92, "children": [], "start_point": {"row": 39, "column": 21}, "end_point": {"row": 39, "column": 24}}, {"id": 94, "type": "identifier", "text": "chrono", "parent": 92, "children": [], "start_point": {"row": 39, "column": 26}, "end_point": {"row": 39, "column": 32}}, {"id": 95, "type": "binary_expression", "text": "time_point<physics_clock", "parent": 89, "children": [96, 97, 98], "start_point": {"row": 39, "column": 34}, "end_point": {"row": 39, "column": 58}}, {"id": 96, "type": "identifier", "text": "time_point", "parent": 95, "children": [], "start_point": {"row": 39, "column": 34}, "end_point": {"row": 39, "column": 44}}, {"id": 97, "type": "<", "text": "<", "parent": 95, "children": [], "start_point": {"row": 39, "column": 44}, "end_point": {"row": 39, "column": 45}}, {"id": 98, "type": "identifier", "text": "physics_clock", "parent": 95, "children": [], "start_point": {"row": 39, "column": 45}, "end_point": {"row": 39, "column": 58}}, {"id": 99, "type": "ERROR", "text": ">", "parent": 87, "children": [100], "start_point": {"row": 39, "column": 58}, "end_point": {"row": 39, "column": 59}}, {"id": 100, "type": ">", "text": ">", "parent": 99, "children": [], "start_point": {"row": 39, "column": 58}, "end_point": {"row": 39, "column": 59}}, {"id": 101, "type": "declaration", "text": "static constexpr bool is_steady = false;", "parent": 55, "children": [102, 104, 105], "start_point": {"row": 40, "column": 2}, "end_point": {"row": 40, "column": 42}}, {"id": 102, "type": "type_qualifier", "text": "constexpr", "parent": 101, "children": [103], "start_point": {"row": 40, "column": 9}, "end_point": {"row": 40, "column": 18}}, {"id": 103, "type": "constexpr", "text": "constexpr", "parent": 102, "children": [], "start_point": {"row": 40, "column": 9}, "end_point": {"row": 40, "column": 18}}, {"id": 104, "type": "primitive_type", "text": "bool", "parent": 101, "children": [], "start_point": {"row": 40, "column": 19}, "end_point": {"row": 40, "column": 23}}, {"id": 105, "type": "init_declarator", "text": "is_steady = false", "parent": 101, "children": [106, 107, 108], "start_point": {"row": 40, "column": 24}, "end_point": {"row": 40, "column": 41}}, {"id": 106, "type": "identifier", "text": "is_steady", "parent": 105, "children": [], "start_point": {"row": 40, "column": 24}, "end_point": {"row": 40, "column": 33}}, {"id": 107, "type": "=", "text": "=", "parent": 105, "children": [], "start_point": {"row": 40, "column": 34}, "end_point": {"row": 40, "column": 35}}, {"id": 108, "type": "false", "text": "false", "parent": 105, "children": [], "start_point": {"row": 40, "column": 36}, "end_point": {"row": 40, "column": 41}}, {"id": 109, "type": "ERROR", "text": "static time_point now() noexcept", "parent": 55, "children": [110, 111, 114], "start_point": {"row": 41, "column": 2}, "end_point": {"row": 41, "column": 34}}, {"id": 110, "type": "type_identifier", "text": "time_point", "parent": 109, "children": [], "start_point": {"row": 41, "column": 9}, "end_point": {"row": 41, "column": 19}}, {"id": 111, "type": "function_declarator", "text": "now()", "parent": 109, "children": [112, 113], "start_point": {"row": 41, "column": 20}, "end_point": {"row": 41, "column": 25}}, {"id": 112, "type": "identifier", "text": "now", "parent": 111, "children": [], "start_point": {"row": 41, "column": 20}, "end_point": {"row": 41, "column": 23}}, {"id": 113, "type": "parameter_list", "text": "()", "parent": 111, "children": [], "start_point": {"row": 41, "column": 23}, "end_point": {"row": 41, "column": 25}}, {"id": 114, "type": "type_identifier", "text": "noexcept", "parent": 109, "children": [], "start_point": {"row": 41, "column": 26}, "end_point": {"row": 41, "column": 34}}, {"id": 115, "type": "declaration", "text": "using duration_t = typename", "parent": 18, "children": [116, 117], "start_point": {"row": 44, "column": 1}, "end_point": {"row": 44, "column": 28}}, {"id": 116, "type": "type_identifier", "text": "using", "parent": 115, "children": [], "start_point": {"row": 44, "column": 1}, "end_point": {"row": 44, "column": 6}}, {"id": 117, "type": "init_declarator", "text": "duration_t = typename", "parent": 115, "children": [118, 119, 120], "start_point": {"row": 44, "column": 7}, "end_point": {"row": 44, "column": 28}}, {"id": 118, "type": "identifier", "text": "duration_t", "parent": 117, "children": [], "start_point": {"row": 44, "column": 7}, "end_point": {"row": 44, "column": 17}}, {"id": 119, "type": "=", "text": "=", "parent": 117, "children": [], "start_point": {"row": 44, "column": 18}, "end_point": {"row": 44, "column": 19}}, {"id": 120, "type": "identifier", "text": "typename", "parent": 117, "children": [], "start_point": {"row": 44, "column": 20}, "end_point": {"row": 44, "column": 28}}, {"id": 121, "type": "labeled_statement", "text": "physics_clock::duration;", "parent": 18, "children": [122], "start_point": {"row": 44, "column": 29}, "end_point": {"row": 44, "column": 53}}, {"id": 122, "type": "statement_identifier", "text": "physics_clock", "parent": 121, "children": [], "start_point": {"row": 44, "column": 29}, "end_point": {"row": 44, "column": 42}}, {"id": 123, "type": "identifier", "text": "duration", "parent": 121, "children": [], "start_point": {"row": 44, "column": 44}, "end_point": {"row": 44, "column": 52}}, {"id": 124, "type": "declaration", "text": "using time_point_t = typename", "parent": 18, "children": [125, 126], "start_point": {"row": 45, "column": 1}, "end_point": {"row": 45, "column": 30}}, {"id": 125, "type": "type_identifier", "text": "using", "parent": 124, "children": [], "start_point": {"row": 45, "column": 1}, "end_point": {"row": 45, "column": 6}}, {"id": 126, "type": "init_declarator", "text": "time_point_t = typename", "parent": 124, "children": [127, 128, 129], "start_point": {"row": 45, "column": 7}, "end_point": {"row": 45, "column": 30}}, {"id": 127, "type": "identifier", "text": "time_point_t", "parent": 126, "children": [], "start_point": {"row": 45, "column": 7}, "end_point": {"row": 45, "column": 19}}, {"id": 128, "type": "=", "text": "=", "parent": 126, "children": [], "start_point": {"row": 45, "column": 20}, "end_point": {"row": 45, "column": 21}}, {"id": 129, "type": "identifier", "text": "typename", "parent": 126, "children": [], "start_point": {"row": 45, "column": 22}, "end_point": {"row": 45, "column": 30}}, {"id": 130, "type": "labeled_statement", "text": "physics_clock::time_point;", "parent": 18, "children": [131], "start_point": {"row": 45, "column": 31}, "end_point": {"row": 45, "column": 57}}, {"id": 131, "type": "statement_identifier", "text": "physics_clock", "parent": 130, "children": [], "start_point": {"row": 45, "column": 31}, "end_point": {"row": 45, "column": 44}}, {"id": 132, "type": "identifier", "text": "time_point", "parent": 130, "children": [], "start_point": {"row": 45, "column": 46}, "end_point": {"row": 45, "column": 56}}, {"id": 133, "type": "struct_specifier", "text": "struct basic_unit\n\t{\n\t\tconstexpr auto x() const noexcept { return (this->mag * this->dir.x); }", "parent": 18, "children": [134, 135], "start_point": {"row": 49, "column": 1}, "end_point": {"row": 51, "column": 73}}, {"id": 134, "type": "struct", "text": "struct", "parent": 133, "children": [], "start_point": {"row": 49, "column": 1}, "end_point": {"row": 49, "column": 7}}, {"id": 135, "type": "type_identifier", "text": "basic_unit", "parent": 133, "children": [], "start_point": {"row": 49, "column": 8}, "end_point": {"row": 49, "column": 18}}, {"id": 136, "type": "field_declaration", "text": "constexpr auto x() const noexcept { return (this->mag * this->dir.x);", "parent": 133, "children": [137, 139, 141], "start_point": {"row": 51, "column": 2}, "end_point": {"row": 51, "column": 71}}, {"id": 137, "type": "type_qualifier", "text": "constexpr", "parent": 136, "children": [138], "start_point": {"row": 51, "column": 2}, "end_point": {"row": 51, "column": 11}}, {"id": 138, "type": "constexpr", "text": "constexpr", "parent": 137, "children": [], "start_point": {"row": 51, "column": 2}, "end_point": {"row": 51, "column": 11}}, {"id": 139, "type": "storage_class_specifier", "text": "auto", "parent": 136, "children": [140], "start_point": {"row": 51, "column": 12}, "end_point": {"row": 51, "column": 16}}, {"id": 140, "type": "auto", "text": "auto", "parent": 139, "children": [], "start_point": {"row": 51, "column": 12}, "end_point": {"row": 51, "column": 16}}, {"id": 141, "type": "macro_type_specifier", "text": "x() const noexcept { return (this->mag * this->dir.x)", "parent": 136, "children": [142, 143], "start_point": {"row": 51, "column": 17}, "end_point": {"row": 51, "column": 70}}, {"id": 142, "type": "identifier", "text": "x", "parent": 141, "children": [], "start_point": {"row": 51, "column": 17}, "end_point": {"row": 51, "column": 18}}, {"id": 143, "type": "type_descriptor", "text": "const noexcept { return (this->mag * this->dir.x)", "parent": 141, "children": [144, 145, 146], "start_point": {"row": 51, "column": 21}, "end_point": {"row": 51, "column": 70}}, {"id": 144, "type": "type_identifier", "text": "noexcept", "parent": 143, "children": [], "start_point": {"row": 51, "column": 27}, "end_point": {"row": 51, "column": 35}}, {"id": 145, "type": "ERROR", "text": "{ return", "parent": 143, "children": [], "start_point": {"row": 51, "column": 36}, "end_point": {"row": 51, "column": 44}}, {"id": 146, "type": "abstract_function_declarator", "text": "(this->mag * this->dir.x)", "parent": 143, "children": [147], "start_point": {"row": 51, "column": 45}, "end_point": {"row": 51, "column": 70}}, {"id": 147, "type": "parameter_list", "text": "(this->mag * this->dir.x)", "parent": 146, "children": [148, 155], "start_point": {"row": 51, "column": 45}, "end_point": {"row": 51, "column": 70}}, {"id": 148, "type": "parameter_declaration", "text": "this->mag * this", "parent": 147, "children": [149, 150, 152], "start_point": {"row": 51, "column": 46}, "end_point": {"row": 51, "column": 62}}, {"id": 149, "type": "type_identifier", "text": "this", "parent": 148, "children": [], "start_point": {"row": 51, "column": 46}, "end_point": {"row": 51, "column": 50}}, {"id": 150, "type": "ERROR", "text": "->mag", "parent": 148, "children": [151], "start_point": {"row": 51, "column": 50}, "end_point": {"row": 51, "column": 55}}, {"id": 151, "type": "identifier", "text": "mag", "parent": 150, "children": [], "start_point": {"row": 51, "column": 52}, "end_point": {"row": 51, "column": 55}}, {"id": 152, "type": "pointer_declarator", "text": "* this", "parent": 148, "children": [153, 154], "start_point": {"row": 51, "column": 56}, "end_point": {"row": 51, "column": 62}}, {"id": 153, "type": "*", "text": "*", "parent": 152, "children": [], "start_point": {"row": 51, "column": 56}, "end_point": {"row": 51, "column": 57}}, {"id": 154, "type": "identifier", "text": "this", "parent": 152, "children": [], "start_point": {"row": 51, "column": 58}, "end_point": {"row": 51, "column": 62}}, {"id": 155, "type": "ERROR", "text": "->dir.x", "parent": 147, "children": [156, 157], "start_point": {"row": 51, "column": 62}, "end_point": {"row": 51, "column": 69}}, {"id": 156, "type": "identifier", "text": "dir", "parent": 155, "children": [], "start_point": {"row": 51, "column": 64}, "end_point": {"row": 51, "column": 67}}, {"id": 157, "type": "identifier", "text": "x", "parent": 155, "children": [], "start_point": {"row": 51, "column": 68}, "end_point": {"row": 51, "column": 69}}, {"id": 158, "type": "function_definition", "text": "constexpr auto y() const noexcept { return (this->mag * this->dir.y); }", "parent": 18, "children": [159, 161, 163, 167], "start_point": {"row": 52, "column": 2}, "end_point": {"row": 52, "column": 73}}, {"id": 159, "type": "type_qualifier", "text": "constexpr", "parent": 158, "children": [160], "start_point": {"row": 52, "column": 2}, "end_point": {"row": 52, "column": 11}}, {"id": 160, "type": "constexpr", "text": "constexpr", "parent": 159, "children": [], "start_point": {"row": 52, "column": 2}, "end_point": {"row": 52, "column": 11}}, {"id": 161, "type": "storage_class_specifier", "text": "auto", "parent": 158, "children": [162], "start_point": {"row": 52, "column": 12}, "end_point": {"row": 52, "column": 16}}, {"id": 162, "type": "auto", "text": "auto", "parent": 161, "children": [], "start_point": {"row": 52, "column": 12}, "end_point": {"row": 52, "column": 16}}, {"id": 163, "type": "macro_type_specifier", "text": "y()", "parent": 158, "children": [164, 165], "start_point": {"row": 52, "column": 17}, "end_point": {"row": 52, "column": 20}}, {"id": 164, "type": "identifier", "text": "y", "parent": 163, "children": [], "start_point": {"row": 52, "column": 17}, "end_point": {"row": 52, "column": 18}}, {"id": 165, "type": "type_descriptor", "text": "", "parent": 163, "children": [166], "start_point": {"row": 52, "column": 19}, "end_point": {"row": 52, "column": 19}}, {"id": 166, "type": "type_identifier", "text": "", "parent": 165, "children": [], "start_point": {"row": 52, "column": 19}, "end_point": {"row": 52, "column": 19}}, {"id": 167, "type": "identifier", "text": "noexcept", "parent": 158, "children": [], "start_point": {"row": 52, "column": 27}, "end_point": {"row": 52, "column": 35}}, {"id": 168, "type": "return_statement", "text": "return (this->mag * this->dir.y);", "parent": 158, "children": [169], "start_point": {"row": 52, "column": 38}, "end_point": {"row": 52, "column": 71}}, {"id": 169, "type": "parenthesized_expression", "text": "(this->mag * this->dir.y)", "parent": 168, "children": [170], "start_point": {"row": 52, "column": 45}, "end_point": {"row": 52, "column": 70}}, {"id": 170, "type": "binary_expression", "text": "this->mag * this->dir.y", "parent": 169, "children": [171, 174, 175], "start_point": {"row": 52, "column": 46}, "end_point": {"row": 52, "column": 69}}, {"id": 171, "type": "field_expression", "text": "this->mag", "parent": 170, "children": [172, 173], "start_point": {"row": 52, "column": 46}, "end_point": {"row": 52, "column": 55}}, {"id": 172, "type": "identifier", "text": "this", "parent": 171, "children": [], "start_point": {"row": 52, "column": 46}, "end_point": {"row": 52, "column": 50}}, {"id": 173, "type": "field_identifier", "text": "mag", "parent": 171, "children": [], "start_point": {"row": 52, "column": 52}, "end_point": {"row": 52, "column": 55}}, {"id": 174, "type": "*", "text": "*", "parent": 170, "children": [], "start_point": {"row": 52, "column": 56}, "end_point": {"row": 52, "column": 57}}, {"id": 175, "type": "field_expression", "text": "this->dir.y", "parent": 170, "children": [176, 179], "start_point": {"row": 52, "column": 58}, "end_point": {"row": 52, "column": 69}}, {"id": 176, "type": "field_expression", "text": "this->dir", "parent": 175, "children": [177, 178], "start_point": {"row": 52, "column": 58}, "end_point": {"row": 52, "column": 67}}, {"id": 177, "type": "identifier", "text": "this", "parent": 176, "children": [], "start_point": {"row": 52, "column": 58}, "end_point": {"row": 52, "column": 62}}, {"id": 178, "type": "field_identifier", "text": "dir", "parent": 176, "children": [], "start_point": {"row": 52, "column": 64}, "end_point": {"row": 52, "column": 67}}, {"id": 179, "type": "field_identifier", "text": "y", "parent": 175, "children": [], "start_point": {"row": 52, "column": 68}, "end_point": {"row": 52, "column": 69}}, {"id": 180, "type": "function_definition", "text": "constexpr auto z() const noexcept { return (this->mag * this->dir.z); }", "parent": 18, "children": [181, 183, 185, 189], "start_point": {"row": 53, "column": 2}, "end_point": {"row": 53, "column": 73}}, {"id": 181, "type": "type_qualifier", "text": "constexpr", "parent": 180, "children": [182], "start_point": {"row": 53, "column": 2}, "end_point": {"row": 53, "column": 11}}, {"id": 182, "type": "constexpr", "text": "constexpr", "parent": 181, "children": [], "start_point": {"row": 53, "column": 2}, "end_point": {"row": 53, "column": 11}}, {"id": 183, "type": "storage_class_specifier", "text": "auto", "parent": 180, "children": [184], "start_point": {"row": 53, "column": 12}, "end_point": {"row": 53, "column": 16}}, {"id": 184, "type": "auto", "text": "auto", "parent": 183, "children": [], "start_point": {"row": 53, "column": 12}, "end_point": {"row": 53, "column": 16}}, {"id": 185, "type": "macro_type_specifier", "text": "z()", "parent": 180, "children": [186, 187], "start_point": {"row": 53, "column": 17}, "end_point": {"row": 53, "column": 20}}, {"id": 186, "type": "identifier", "text": "z", "parent": 185, "children": [], "start_point": {"row": 53, "column": 17}, "end_point": {"row": 53, "column": 18}}, {"id": 187, "type": "type_descriptor", "text": "", "parent": 185, "children": [188], "start_point": {"row": 53, "column": 19}, "end_point": {"row": 53, "column": 19}}, {"id": 188, "type": "type_identifier", "text": "", "parent": 187, "children": [], "start_point": {"row": 53, "column": 19}, "end_point": {"row": 53, "column": 19}}, {"id": 189, "type": "identifier", "text": "noexcept", "parent": 180, "children": [], "start_point": {"row": 53, "column": 27}, "end_point": {"row": 53, "column": 35}}, {"id": 190, "type": "return_statement", "text": "return (this->mag * this->dir.z);", "parent": 180, "children": [191], "start_point": {"row": 53, "column": 38}, "end_point": {"row": 53, "column": 71}}, {"id": 191, "type": "parenthesized_expression", "text": "(this->mag * this->dir.z)", "parent": 190, "children": [192], "start_point": {"row": 53, "column": 45}, "end_point": {"row": 53, "column": 70}}, {"id": 192, "type": "binary_expression", "text": "this->mag * this->dir.z", "parent": 191, "children": [193, 196, 197], "start_point": {"row": 53, "column": 46}, "end_point": {"row": 53, "column": 69}}, {"id": 193, "type": "field_expression", "text": "this->mag", "parent": 192, "children": [194, 195], "start_point": {"row": 53, "column": 46}, "end_point": {"row": 53, "column": 55}}, {"id": 194, "type": "identifier", "text": "this", "parent": 193, "children": [], "start_point": {"row": 53, "column": 46}, "end_point": {"row": 53, "column": 50}}, {"id": 195, "type": "field_identifier", "text": "mag", "parent": 193, "children": [], "start_point": {"row": 53, "column": 52}, "end_point": {"row": 53, "column": 55}}, {"id": 196, "type": "*", "text": "*", "parent": 192, "children": [], "start_point": {"row": 53, "column": 56}, "end_point": {"row": 53, "column": 57}}, {"id": 197, "type": "field_expression", "text": "this->dir.z", "parent": 192, "children": [198, 201], "start_point": {"row": 53, "column": 58}, "end_point": {"row": 53, "column": 69}}, {"id": 198, "type": "field_expression", "text": "this->dir", "parent": 197, "children": [199, 200], "start_point": {"row": 53, "column": 58}, "end_point": {"row": 53, "column": 67}}, {"id": 199, "type": "identifier", "text": "this", "parent": 198, "children": [], "start_point": {"row": 53, "column": 58}, "end_point": {"row": 53, "column": 62}}, {"id": 200, "type": "field_identifier", "text": "dir", "parent": 198, "children": [], "start_point": {"row": 53, "column": 64}, "end_point": {"row": 53, "column": 67}}, {"id": 201, "type": "field_identifier", "text": "z", "parent": 197, "children": [], "start_point": {"row": 53, "column": 68}, "end_point": {"row": 53, "column": 69}}, {"id": 202, "type": "function_definition", "text": "constexpr glm::vec3 as_vec() const noexcept { return (this->dir * this->mag); };\n\n\t\tconstexpr basic_unit() noexcept = default;\n\t\tconstexpr basic_unit(const direction_t& _d, magnitude_t _mag) noexcept : \n\t\t\tdir{ _d }, mag{ _mag }\n\t\t{};\n\n\t\tdirection_t dir{}", "parent": 18, "children": [203, 205, 206, 208, 211, 233, 252], "start_point": {"row": 55, "column": 2}, "end_point": {"row": 62, "column": 19}}, {"id": 203, "type": "type_qualifier", "text": "constexpr", "parent": 202, "children": [204], "start_point": {"row": 55, "column": 2}, "end_point": {"row": 55, "column": 11}}, {"id": 204, "type": "constexpr", "text": "constexpr", "parent": 203, "children": [], "start_point": {"row": 55, "column": 2}, "end_point": {"row": 55, "column": 11}}, {"id": 205, "type": "type_identifier", "text": "glm", "parent": 202, "children": [], "start_point": {"row": 55, "column": 12}, "end_point": {"row": 55, "column": 15}}, {"id": 206, "type": "ERROR", "text": "::vec3", "parent": 202, "children": [207], "start_point": {"row": 55, "column": 15}, "end_point": {"row": 55, "column": 21}}, {"id": 207, "type": "identifier", "text": "vec3", "parent": 206, "children": [], "start_point": {"row": 55, "column": 17}, "end_point": {"row": 55, "column": 21}}, {"id": 208, "type": "function_declarator", "text": "as_vec()", "parent": 202, "children": [209, 210], "start_point": {"row": 55, "column": 22}, "end_point": {"row": 55, "column": 30}}, {"id": 209, "type": "identifier", "text": "as_vec", "parent": 208, "children": [], "start_point": {"row": 55, "column": 22}, "end_point": {"row": 55, "column": 28}}, {"id": 210, "type": "parameter_list", "text": "()", "parent": 208, "children": [], "start_point": {"row": 55, "column": 28}, "end_point": {"row": 55, "column": 30}}, {"id": 211, "type": "declaration", "text": "const noexcept { return (this->dir * this->mag); };\n\n\t\tconstexpr basic_unit() noexcept = default;", "parent": 202, "children": [212, 224, 226], "start_point": {"row": 55, "column": 31}, "end_point": {"row": 57, "column": 44}}, {"id": 212, "type": "macro_type_specifier", "text": "noexcept { return (this->dir * this->mag)", "parent": 211, "children": [213, 214, 215, 221], "start_point": {"row": 55, "column": 37}, "end_point": {"row": 55, "column": 78}}, {"id": 213, "type": "identifier", "text": "noexcept", "parent": 212, "children": [], "start_point": {"row": 55, "column": 37}, "end_point": {"row": 55, "column": 45}}, {"id": 214, "type": "ERROR", "text": "{ return", "parent": 212, "children": [], "start_point": {"row": 55, "column": 46}, "end_point": {"row": 55, "column": 54}}, {"id": 215, "type": "type_descriptor", "text": "this->dir *", "parent": 212, "children": [216, 217, 219], "start_point": {"row": 55, "column": 56}, "end_point": {"row": 55, "column": 67}}, {"id": 216, "type": "type_identifier", "text": "this", "parent": 215, "children": [], "start_point": {"row": 55, "column": 56}, "end_point": {"row": 55, "column": 60}}, {"id": 217, "type": "ERROR", "text": "->dir", "parent": 215, "children": [218], "start_point": {"row": 55, "column": 60}, "end_point": {"row": 55, "column": 65}}, {"id": 218, "type": "identifier", "text": "dir", "parent": 217, "children": [], "start_point": {"row": 55, "column": 62}, "end_point": {"row": 55, "column": 65}}, {"id": 219, "type": "abstract_pointer_declarator", "text": "*", "parent": 215, "children": [220], "start_point": {"row": 55, "column": 66}, "end_point": {"row": 55, "column": 67}}, {"id": 220, "type": "*", "text": "*", "parent": 219, "children": [], "start_point": {"row": 55, "column": 66}, "end_point": {"row": 55, "column": 67}}, {"id": 221, "type": "ERROR", "text": "this->mag", "parent": 212, "children": [222, 223], "start_point": {"row": 55, "column": 68}, "end_point": {"row": 55, "column": 77}}, {"id": 222, "type": "identifier", "text": "this", "parent": 221, "children": [], "start_point": {"row": 55, "column": 68}, "end_point": {"row": 55, "column": 72}}, {"id": 223, "type": "identifier", "text": "mag", "parent": 221, "children": [], "start_point": {"row": 55, "column": 74}, "end_point": {"row": 55, "column": 77}}, {"id": 224, "type": "ERROR", "text": "; };\n\n\t\tconstexpr", "parent": 211, "children": [225], "start_point": {"row": 55, "column": 78}, "end_point": {"row": 57, "column": 11}}, {"id": 225, "type": "constexpr", "text": "constexpr", "parent": 224, "children": [], "start_point": {"row": 57, "column": 2}, "end_point": {"row": 57, "column": 11}}, {"id": 226, "type": "init_declarator", "text": "basic_unit() noexcept = default", "parent": 211, "children": [227, 231, 232], "start_point": {"row": 57, "column": 12}, "end_point": {"row": 57, "column": 43}}, {"id": 227, "type": "function_declarator", "text": "basic_unit() noexcept", "parent": 226, "children": [228, 229, 230], "start_point": {"row": 57, "column": 12}, "end_point": {"row": 57, "column": 33}}, {"id": 228, "type": "identifier", "text": "basic_unit", "parent": 227, "children": [], "start_point": {"row": 57, "column": 12}, "end_point": {"row": 57, "column": 22}}, {"id": 229, "type": "parameter_list", "text": "()", "parent": 227, "children": [], "start_point": {"row": 57, "column": 22}, "end_point": {"row": 57, "column": 24}}, {"id": 230, "type": "identifier", "text": "noexcept", "parent": 227, "children": [], "start_point": {"row": 57, "column": 25}, "end_point": {"row": 57, "column": 33}}, {"id": 231, "type": "=", "text": "=", "parent": 226, "children": [], "start_point": {"row": 57, "column": 34}, "end_point": {"row": 57, "column": 35}}, {"id": 232, "type": "identifier", "text": "default", "parent": 226, "children": [], "start_point": {"row": 57, "column": 36}, "end_point": {"row": 57, "column": 43}}, {"id": 233, "type": "declaration", "text": "constexpr basic_unit(const direction_t& _d, magnitude_t _mag) noexcept : \n\t\t\tdir{ _d }, mag{ _mag }\n\t\t{};", "parent": 202, "children": [234, 236, 244, 247, 248, 250, 251], "start_point": {"row": 58, "column": 2}, "end_point": {"row": 60, "column": 5}}, {"id": 234, "type": "type_qualifier", "text": "constexpr", "parent": 233, "children": [235], "start_point": {"row": 58, "column": 2}, "end_point": {"row": 58, "column": 11}}, {"id": 235, "type": "constexpr", "text": "constexpr", "parent": 234, "children": [], "start_point": {"row": 58, "column": 2}, "end_point": {"row": 58, "column": 11}}, {"id": 236, "type": "macro_type_specifier", "text": "basic_unit(const direction_t& _d, magnitude_t _mag)", "parent": 233, "children": [237, 238, 240], "start_point": {"row": 58, "column": 12}, "end_point": {"row": 58, "column": 63}}, {"id": 237, "type": "identifier", "text": "basic_unit", "parent": 236, "children": [], "start_point": {"row": 58, "column": 12}, "end_point": {"row": 58, "column": 22}}, {"id": 238, "type": "type_descriptor", "text": "const direction_t", "parent": 236, "children": [239], "start_point": {"row": 58, "column": 23}, "end_point": {"row": 58, "column": 40}}, {"id": 239, "type": "type_identifier", "text": "direction_t", "parent": 238, "children": [], "start_point": {"row": 58, "column": 29}, "end_point": {"row": 58, "column": 40}}, {"id": 240, "type": "ERROR", "text": "& _d, magnitude_t _mag", "parent": 236, "children": [241, 242, 243], "start_point": {"row": 58, "column": 40}, "end_point": {"row": 58, "column": 62}}, {"id": 241, "type": "identifier", "text": "_d", "parent": 240, "children": [], "start_point": {"row": 58, "column": 42}, "end_point": {"row": 58, "column": 44}}, {"id": 242, "type": "identifier", "text": "magnitude_t", "parent": 240, "children": [], "start_point": {"row": 58, "column": 46}, "end_point": {"row": 58, "column": 57}}, {"id": 243, "type": "identifier", "text": "_mag", "parent": 240, "children": [], "start_point": {"row": 58, "column": 58}, "end_point": {"row": 58, "column": 62}}, {"id": 244, "type": "ERROR", "text": "noexcept : \n\t\t\tdir{", "parent": 233, "children": [245, 246], "start_point": {"row": 58, "column": 64}, "end_point": {"row": 59, "column": 7}}, {"id": 245, "type": "identifier", "text": "noexcept", "parent": 244, "children": [], "start_point": {"row": 58, "column": 64}, "end_point": {"row": 58, "column": 72}}, {"id": 246, "type": "identifier", "text": "dir", "parent": 244, "children": [], "start_point": {"row": 59, "column": 3}, "end_point": {"row": 59, "column": 6}}, {"id": 247, "type": "identifier", "text": "_d", "parent": 233, "children": [], "start_point": {"row": 59, "column": 8}, "end_point": {"row": 59, "column": 10}}, {"id": 248, "type": "ERROR", "text": "mag{", "parent": 233, "children": [249], "start_point": {"row": 59, "column": 14}, "end_point": {"row": 59, "column": 18}}, {"id": 249, "type": "identifier", "text": "mag", "parent": 248, "children": [], "start_point": {"row": 59, "column": 14}, "end_point": {"row": 59, "column": 17}}, {"id": 250, "type": "identifier", "text": "_mag", "parent": 233, "children": [], "start_point": {"row": 59, "column": 19}, "end_point": {"row": 59, "column": 23}}, {"id": 251, "type": "ERROR", "text": "}\n\t\t{}", "parent": 233, "children": [], "start_point": {"row": 59, "column": 24}, "end_point": {"row": 60, "column": 4}}, {"id": 252, "type": "ERROR", "text": "direction_t dir", "parent": 202, "children": [253, 254], "start_point": {"row": 62, "column": 2}, "end_point": {"row": 62, "column": 17}}, {"id": 253, "type": "type_identifier", "text": "direction_t", "parent": 252, "children": [], "start_point": {"row": 62, "column": 2}, "end_point": {"row": 62, "column": 13}}, {"id": 254, "type": "identifier", "text": "dir", "parent": 252, "children": [], "start_point": {"row": 62, "column": 14}, "end_point": {"row": 62, "column": 17}}, {"id": 255, "type": "function_definition", "text": "magnitude_t mag{}", "parent": 18, "children": [256, 257], "start_point": {"row": 63, "column": 2}, "end_point": {"row": 63, "column": 19}}, {"id": 256, "type": "type_identifier", "text": "magnitude_t", "parent": 255, "children": [], "start_point": {"row": 63, "column": 2}, "end_point": {"row": 63, "column": 13}}, {"id": 257, "type": "identifier", "text": "mag", "parent": 255, "children": [], "start_point": {"row": 63, "column": 14}, "end_point": {"row": 63, "column": 17}}, {"id": 258, "type": "struct_specifier", "text": "struct position_t\n\t{\n\t\tmagnitude_t x{}", "parent": null, "children": [259, 260], "start_point": {"row": 68, "column": 1}, "end_point": {"row": 70, "column": 17}}, {"id": 259, "type": "struct", "text": "struct", "parent": 258, "children": [], "start_point": {"row": 68, "column": 1}, "end_point": {"row": 68, "column": 7}}, {"id": 260, "type": "type_identifier", "text": "position_t", "parent": 258, "children": [], "start_point": {"row": 68, "column": 8}, "end_point": {"row": 68, "column": 18}}, {"id": 261, "type": "ERROR", "text": "magnitude_t x{", "parent": 258, "children": [262, 263], "start_point": {"row": 70, "column": 2}, "end_point": {"row": 70, "column": 16}}, {"id": 262, "type": "type_identifier", "text": "magnitude_t", "parent": 261, "children": [], "start_point": {"row": 70, "column": 2}, "end_point": {"row": 70, "column": 13}}, {"id": 263, "type": "field_identifier", "text": "x", "parent": 261, "children": [], "start_point": {"row": 70, "column": 14}, "end_point": {"row": 70, "column": 15}}, {"id": 264, "type": "function_definition", "text": "magnitude_t y{}", "parent": null, "children": [265, 266], "start_point": {"row": 71, "column": 2}, "end_point": {"row": 71, "column": 17}}, {"id": 265, "type": "type_identifier", "text": "magnitude_t", "parent": 264, "children": [], "start_point": {"row": 71, "column": 2}, "end_point": {"row": 71, "column": 13}}, {"id": 266, "type": "identifier", "text": "y", "parent": 264, "children": [], "start_point": {"row": 71, "column": 14}, "end_point": {"row": 71, "column": 15}}, {"id": 267, "type": "function_definition", "text": "magnitude_t z{}", "parent": null, "children": [268, 269], "start_point": {"row": 72, "column": 2}, "end_point": {"row": 72, "column": 17}}, {"id": 268, "type": "type_identifier", "text": "magnitude_t", "parent": 267, "children": [], "start_point": {"row": 72, "column": 2}, "end_point": {"row": 72, "column": 13}}, {"id": 269, "type": "identifier", "text": "z", "parent": 267, "children": [], "start_point": {"row": 72, "column": 14}, "end_point": {"row": 72, "column": 15}}, {"id": 270, "type": "function_definition", "text": "struct distance_t : public basic_unit \n\t{\n\t\tusing basic_unit::basic_unit;\n\t}", "parent": null, "children": [271, 274, 275], "start_point": {"row": 75, "column": 1}, "end_point": {"row": 78, "column": 2}}, {"id": 271, "type": "struct_specifier", "text": "struct distance_t", "parent": 270, "children": [272, 273], "start_point": {"row": 75, "column": 1}, "end_point": {"row": 75, "column": 18}}, {"id": 272, "type": "struct", "text": "struct", "parent": 271, "children": [], "start_point": {"row": 75, "column": 1}, "end_point": {"row": 75, "column": 7}}, {"id": 273, "type": "type_identifier", "text": "distance_t", "parent": 271, "children": [], "start_point": {"row": 75, "column": 8}, "end_point": {"row": 75, "column": 18}}, {"id": 274, "type": "ERROR", "text": ": public", "parent": 270, "children": [], "start_point": {"row": 75, "column": 19}, "end_point": {"row": 75, "column": 27}}, {"id": 275, "type": "identifier", "text": "basic_unit", "parent": 270, "children": [], "start_point": {"row": 75, "column": 28}, "end_point": {"row": 75, "column": 38}}, {"id": 276, "type": "declaration", "text": "using basic_unit::basic_unit;", "parent": 270, "children": [277, 278, 279], "start_point": {"row": 77, "column": 2}, "end_point": {"row": 77, "column": 31}}, {"id": 277, "type": "type_identifier", "text": "using", "parent": 276, "children": [], "start_point": {"row": 77, "column": 2}, "end_point": {"row": 77, "column": 7}}, {"id": 278, "type": "identifier", "text": "basic_unit", "parent": 276, "children": [], "start_point": {"row": 77, "column": 8}, "end_point": {"row": 77, "column": 18}}, {"id": 279, "type": "ERROR", "text": "::basic_unit", "parent": 276, "children": [280], "start_point": {"row": 77, "column": 18}, "end_point": {"row": 77, "column": 30}}, {"id": 280, "type": "identifier", "text": "basic_unit", "parent": 279, "children": [], "start_point": {"row": 77, "column": 20}, "end_point": {"row": 77, "column": 30}}, {"id": 281, "type": "function_definition", "text": "struct velocity_t : public basic_unit \n\t{\n\t\tduration_t dt{};\n\t}", "parent": null, "children": [282, 285, 286], "start_point": {"row": 80, "column": 1}, "end_point": {"row": 83, "column": 2}}, {"id": 282, "type": "struct_specifier", "text": "struct velocity_t", "parent": 281, "children": [283, 284], "start_point": {"row": 80, "column": 1}, "end_point": {"row": 80, "column": 18}}, {"id": 283, "type": "struct", "text": "struct", "parent": 282, "children": [], "start_point": {"row": 80, "column": 1}, "end_point": {"row": 80, "column": 7}}, {"id": 284, "type": "type_identifier", "text": "velocity_t", "parent": 282, "children": [], "start_point": {"row": 80, "column": 8}, "end_point": {"row": 80, "column": 18}}, {"id": 285, "type": "ERROR", "text": ": public", "parent": 281, "children": [], "start_point": {"row": 80, "column": 19}, "end_point": {"row": 80, "column": 27}}, {"id": 286, "type": "identifier", "text": "basic_unit", "parent": 281, "children": [], "start_point": {"row": 80, "column": 28}, "end_point": {"row": 80, "column": 38}}, {"id": 287, "type": "function_definition", "text": "duration_t dt{}", "parent": 281, "children": [288, 289], "start_point": {"row": 82, "column": 2}, "end_point": {"row": 82, "column": 17}}, {"id": 288, "type": "type_identifier", "text": "duration_t", "parent": 287, "children": [], "start_point": {"row": 82, "column": 2}, "end_point": {"row": 82, "column": 12}}, {"id": 289, "type": "identifier", "text": "dt", "parent": 287, "children": [], "start_point": {"row": 82, "column": 13}, "end_point": {"row": 82, "column": 15}}, {"id": 290, "type": "declaration", "text": "distance_t operator", "parent": null, "children": [291, 292], "start_point": {"row": 86, "column": 1}, "end_point": {"row": 86, "column": 20}}, {"id": 291, "type": "type_identifier", "text": "distance_t", "parent": 290, "children": [], "start_point": {"row": 86, "column": 1}, "end_point": {"row": 86, "column": 11}}, {"id": 292, "type": "identifier", "text": "operator", "parent": 290, "children": [], "start_point": {"row": 86, "column": 12}, "end_point": {"row": 86, "column": 20}}, {"id": 293, "type": "unary_expression", "text": "-(const position_t& lhs, const position_t& rhs)", "parent": null, "children": [294, 295], "start_point": {"row": 86, "column": 20}, "end_point": {"row": 86, "column": 67}}, {"id": 294, "type": "-", "text": "-", "parent": 293, "children": [], "start_point": {"row": 86, "column": 20}, "end_point": {"row": 86, "column": 21}}, {"id": 295, "type": "parenthesized_expression", "text": "(const position_t& lhs, const position_t& rhs)", "parent": 293, "children": [296, 299], "start_point": {"row": 86, "column": 21}, "end_point": {"row": 86, "column": 67}}, {"id": 296, "type": "ERROR", "text": "const position_t", "parent": 295, "children": [297], "start_point": {"row": 86, "column": 22}, "end_point": {"row": 86, "column": 38}}, {"id": 297, "type": "type_descriptor", "text": "const position_t", "parent": 296, "children": [298], "start_point": {"row": 86, "column": 22}, "end_point": {"row": 86, "column": 38}}, {"id": 298, "type": "type_identifier", "text": "position_t", "parent": 297, "children": [], "start_point": {"row": 86, "column": 28}, "end_point": {"row": 86, "column": 38}}, {"id": 299, "type": "comma_expression", "text": "& lhs, const position_t& rhs", "parent": 295, "children": [300, 302], "start_point": {"row": 86, "column": 38}, "end_point": {"row": 86, "column": 66}}, {"id": 300, "type": "pointer_expression", "text": "& lhs", "parent": 299, "children": [301], "start_point": {"row": 86, "column": 38}, "end_point": {"row": 86, "column": 43}}, {"id": 301, "type": "identifier", "text": "lhs", "parent": 300, "children": [], "start_point": {"row": 86, "column": 40}, "end_point": {"row": 86, "column": 43}}, {"id": 302, "type": "binary_expression", "text": "position_t& rhs", "parent": 299, "children": [303, 304], "start_point": {"row": 86, "column": 51}, "end_point": {"row": 86, "column": 66}}, {"id": 303, "type": "identifier", "text": "position_t", "parent": 302, "children": [], "start_point": {"row": 86, "column": 51}, "end_point": {"row": 86, "column": 61}}, {"id": 304, "type": "identifier", "text": "rhs", "parent": 302, "children": [], "start_point": {"row": 86, "column": 63}, "end_point": {"row": 86, "column": 66}}, {"id": 305, "type": "ERROR", "text": "noexcept", "parent": null, "children": [306], "start_point": {"row": 86, "column": 68}, "end_point": {"row": 86, "column": 76}}, {"id": 306, "type": "identifier", "text": "noexcept", "parent": 305, "children": [], "start_point": {"row": 86, "column": 68}, "end_point": {"row": 86, "column": 76}}, {"id": 307, "type": "declaration", "text": "constexpr static inline position_t operator", "parent": null, "children": [308, 310, 312, 313], "start_point": {"row": 88, "column": 1}, "end_point": {"row": 88, "column": 44}}, {"id": 308, "type": "type_qualifier", "text": "constexpr", "parent": 307, "children": [309], "start_point": {"row": 88, "column": 1}, "end_point": {"row": 88, "column": 10}}, {"id": 309, "type": "constexpr", "text": "constexpr", "parent": 308, "children": [], "start_point": {"row": 88, "column": 1}, "end_point": {"row": 88, "column": 10}}, {"id": 310, "type": "storage_class_specifier", "text": "inline", "parent": 307, "children": [311], "start_point": {"row": 88, "column": 18}, "end_point": {"row": 88, "column": 24}}, {"id": 311, "type": "inline", "text": "inline", "parent": 310, "children": [], "start_point": {"row": 88, "column": 18}, "end_point": {"row": 88, "column": 24}}, {"id": 312, "type": "type_identifier", "text": "position_t", "parent": 307, "children": [], "start_point": {"row": 88, "column": 25}, "end_point": {"row": 88, "column": 35}}, {"id": 313, "type": "identifier", "text": "operator", "parent": 307, "children": [], "start_point": {"row": 88, "column": 36}, "end_point": {"row": 88, "column": 44}}, {"id": 314, "type": "ERROR", "text": "+(const position_t& lhs, const distance_t& rhs) noexcept", "parent": null, "children": [315, 327], "start_point": {"row": 88, "column": 44}, "end_point": {"row": 88, "column": 100}}, {"id": 315, "type": "unary_expression", "text": "+(const position_t& lhs, const distance_t& rhs)", "parent": 314, "children": [316, 317], "start_point": {"row": 88, "column": 44}, "end_point": {"row": 88, "column": 91}}, {"id": 316, "type": "+", "text": "+", "parent": 315, "children": [], "start_point": {"row": 88, "column": 44}, "end_point": {"row": 88, "column": 45}}, {"id": 317, "type": "parenthesized_expression", "text": "(const position_t& lhs, const distance_t& rhs)", "parent": 315, "children": [318, 321], "start_point": {"row": 88, "column": 45}, "end_point": {"row": 88, "column": 91}}, {"id": 318, "type": "ERROR", "text": "const position_t", "parent": 317, "children": [319], "start_point": {"row": 88, "column": 46}, "end_point": {"row": 88, "column": 62}}, {"id": 319, "type": "type_descriptor", "text": "const position_t", "parent": 318, "children": [320], "start_point": {"row": 88, "column": 46}, "end_point": {"row": 88, "column": 62}}, {"id": 320, "type": "type_identifier", "text": "position_t", "parent": 319, "children": [], "start_point": {"row": 88, "column": 52}, "end_point": {"row": 88, "column": 62}}, {"id": 321, "type": "comma_expression", "text": "& lhs, const distance_t& rhs", "parent": 317, "children": [322, 324], "start_point": {"row": 88, "column": 62}, "end_point": {"row": 88, "column": 90}}, {"id": 322, "type": "pointer_expression", "text": "& lhs", "parent": 321, "children": [323], "start_point": {"row": 88, "column": 62}, "end_point": {"row": 88, "column": 67}}, {"id": 323, "type": "identifier", "text": "lhs", "parent": 322, "children": [], "start_point": {"row": 88, "column": 64}, "end_point": {"row": 88, "column": 67}}, {"id": 324, "type": "binary_expression", "text": "distance_t& rhs", "parent": 321, "children": [325, 326], "start_point": {"row": 88, "column": 75}, "end_point": {"row": 88, "column": 90}}, {"id": 325, "type": "identifier", "text": "distance_t", "parent": 324, "children": [], "start_point": {"row": 88, "column": 75}, "end_point": {"row": 88, "column": 85}}, {"id": 326, "type": "identifier", "text": "rhs", "parent": 324, "children": [], "start_point": {"row": 88, "column": 87}, "end_point": {"row": 88, "column": 90}}, {"id": 327, "type": "identifier", "text": "noexcept", "parent": 314, "children": [], "start_point": {"row": 88, "column": 92}, "end_point": {"row": 88, "column": 100}}, {"id": 328, "type": "return_statement", "text": "return position_t", "parent": null, "children": [329], "start_point": {"row": 90, "column": 2}, "end_point": {"row": 90, "column": 19}}, {"id": 329, "type": "identifier", "text": "position_t", "parent": 328, "children": [], "start_point": {"row": 90, "column": 9}, "end_point": {"row": 90, "column": 19}}, {"id": 330, "type": "comma_expression", "text": "lhs.x + rhs.x(),\n\t\t\tlhs.y + rhs.y(),\n\t\t\tlhs.z + rhs.z()", "parent": null, "children": [331, 341], "start_point": {"row": 92, "column": 3}, "end_point": {"row": 94, "column": 18}}, {"id": 331, "type": "binary_expression", "text": "lhs.x + rhs.x()", "parent": 330, "children": [332, 335, 336], "start_point": {"row": 92, "column": 3}, "end_point": {"row": 92, "column": 18}}, {"id": 332, "type": "field_expression", "text": "lhs.x", "parent": 331, "children": [333, 334], "start_point": {"row": 92, "column": 3}, "end_point": {"row": 92, "column": 8}}, {"id": 333, "type": "identifier", "text": "lhs", "parent": 332, "children": [], "start_point": {"row": 92, "column": 3}, "end_point": {"row": 92, "column": 6}}, {"id": 334, "type": "field_identifier", "text": "x", "parent": 332, "children": [], "start_point": {"row": 92, "column": 7}, "end_point": {"row": 92, "column": 8}}, {"id": 335, "type": "+", "text": "+", "parent": 331, "children": [], "start_point": {"row": 92, "column": 9}, "end_point": {"row": 92, "column": 10}}, {"id": 336, "type": "call_expression", "text": "rhs.x()", "parent": 331, "children": [337, 340], "start_point": {"row": 92, "column": 11}, "end_point": {"row": 92, "column": 18}}, {"id": 337, "type": "field_expression", "text": "rhs.x", "parent": 336, "children": [338, 339], "start_point": {"row": 92, "column": 11}, "end_point": {"row": 92, "column": 16}}, {"id": 338, "type": "identifier", "text": "rhs", "parent": 337, "children": [], "start_point": {"row": 92, "column": 11}, "end_point": {"row": 92, "column": 14}}, {"id": 339, "type": "field_identifier", "text": "x", "parent": 337, "children": [], "start_point": {"row": 92, "column": 15}, "end_point": {"row": 92, "column": 16}}, {"id": 340, "type": "argument_list", "text": "()", "parent": 336, "children": [], "start_point": {"row": 92, "column": 16}, "end_point": {"row": 92, "column": 18}}, {"id": 341, "type": "comma_expression", "text": "lhs.y + rhs.y(),\n\t\t\tlhs.z + rhs.z()", "parent": 330, "children": [342, 352], "start_point": {"row": 93, "column": 3}, "end_point": {"row": 94, "column": 18}}, {"id": 342, "type": "binary_expression", "text": "lhs.y + rhs.y()", "parent": 341, "children": [343, 346, 347], "start_point": {"row": 93, "column": 3}, "end_point": {"row": 93, "column": 18}}, {"id": 343, "type": "field_expression", "text": "lhs.y", "parent": 342, "children": [344, 345], "start_point": {"row": 93, "column": 3}, "end_point": {"row": 93, "column": 8}}, {"id": 344, "type": "identifier", "text": "lhs", "parent": 343, "children": [], "start_point": {"row": 93, "column": 3}, "end_point": {"row": 93, "column": 6}}, {"id": 345, "type": "field_identifier", "text": "y", "parent": 343, "children": [], "start_point": {"row": 93, "column": 7}, "end_point": {"row": 93, "column": 8}}, {"id": 346, "type": "+", "text": "+", "parent": 342, "children": [], "start_point": {"row": 93, "column": 9}, "end_point": {"row": 93, "column": 10}}, {"id": 347, "type": "call_expression", "text": "rhs.y()", "parent": 342, "children": [348, 351], "start_point": {"row": 93, "column": 11}, "end_point": {"row": 93, "column": 18}}, {"id": 348, "type": "field_expression", "text": "rhs.y", "parent": 347, "children": [349, 350], "start_point": {"row": 93, "column": 11}, "end_point": {"row": 93, "column": 16}}, {"id": 349, "type": "identifier", "text": "rhs", "parent": 348, "children": [], "start_point": {"row": 93, "column": 11}, "end_point": {"row": 93, "column": 14}}, {"id": 350, "type": "field_identifier", "text": "y", "parent": 348, "children": [], "start_point": {"row": 93, "column": 15}, "end_point": {"row": 93, "column": 16}}, {"id": 351, "type": "argument_list", "text": "()", "parent": 347, "children": [], "start_point": {"row": 93, "column": 16}, "end_point": {"row": 93, "column": 18}}, {"id": 352, "type": "binary_expression", "text": "lhs.z + rhs.z()", "parent": 341, "children": [353, 356, 357], "start_point": {"row": 94, "column": 3}, "end_point": {"row": 94, "column": 18}}, {"id": 353, "type": "field_expression", "text": "lhs.z", "parent": 352, "children": [354, 355], "start_point": {"row": 94, "column": 3}, "end_point": {"row": 94, "column": 8}}, {"id": 354, "type": "identifier", "text": "lhs", "parent": 353, "children": [], "start_point": {"row": 94, "column": 3}, "end_point": {"row": 94, "column": 6}}, {"id": 355, "type": "field_identifier", "text": "z", "parent": 353, "children": [], "start_point": {"row": 94, "column": 7}, "end_point": {"row": 94, "column": 8}}, {"id": 356, "type": "+", "text": "+", "parent": 352, "children": [], "start_point": {"row": 94, "column": 9}, "end_point": {"row": 94, "column": 10}}, {"id": 357, "type": "call_expression", "text": "rhs.z()", "parent": 352, "children": [358, 361], "start_point": {"row": 94, "column": 11}, "end_point": {"row": 94, "column": 18}}, {"id": 358, "type": "field_expression", "text": "rhs.z", "parent": 357, "children": [359, 360], "start_point": {"row": 94, "column": 11}, "end_point": {"row": 94, "column": 16}}, {"id": 359, "type": "identifier", "text": "rhs", "parent": 358, "children": [], "start_point": {"row": 94, "column": 11}, "end_point": {"row": 94, "column": 14}}, {"id": 360, "type": "field_identifier", "text": "z", "parent": 358, "children": [], "start_point": {"row": 94, "column": 15}, "end_point": {"row": 94, "column": 16}}, {"id": 361, "type": "argument_list", "text": "()", "parent": 357, "children": [], "start_point": {"row": 94, "column": 16}, "end_point": {"row": 94, "column": 18}}, {"id": 362, "type": "binary_expression", "text": "position_t& operator+=(position_t& lhs, const distance_t& rhs)", "parent": null, "children": [363, 364], "start_point": {"row": 97, "column": 1}, "end_point": {"row": 97, "column": 63}}, {"id": 363, "type": "identifier", "text": "position_t", "parent": 362, "children": [], "start_point": {"row": 97, "column": 1}, "end_point": {"row": 97, "column": 11}}, {"id": 364, "type": "assignment_expression", "text": "operator+=(position_t& lhs, const distance_t& rhs)", "parent": 362, "children": [365, 366, 367], "start_point": {"row": 97, "column": 13}, "end_point": {"row": 97, "column": 63}}, {"id": 365, "type": "identifier", "text": "operator", "parent": 364, "children": [], "start_point": {"row": 97, "column": 13}, "end_point": {"row": 97, "column": 21}}, {"id": 366, "type": "+=", "text": "+=", "parent": 364, "children": [], "start_point": {"row": 97, "column": 21}, "end_point": {"row": 97, "column": 23}}, {"id": 367, "type": "parenthesized_expression", "text": "(position_t& lhs, const distance_t& rhs)", "parent": 364, "children": [368], "start_point": {"row": 97, "column": 23}, "end_point": {"row": 97, "column": 63}}, {"id": 368, "type": "comma_expression", "text": "position_t& lhs, const distance_t& rhs", "parent": 367, "children": [369, 372], "start_point": {"row": 97, "column": 24}, "end_point": {"row": 97, "column": 62}}, {"id": 369, "type": "binary_expression", "text": "position_t& lhs", "parent": 368, "children": [370, 371], "start_point": {"row": 97, "column": 24}, "end_point": {"row": 97, "column": 39}}, {"id": 370, "type": "identifier", "text": "position_t", "parent": 369, "children": [], "start_point": {"row": 97, "column": 24}, "end_point": {"row": 97, "column": 34}}, {"id": 371, "type": "identifier", "text": "lhs", "parent": 369, "children": [], "start_point": {"row": 97, "column": 36}, "end_point": {"row": 97, "column": 39}}, {"id": 372, "type": "binary_expression", "text": "distance_t& rhs", "parent": 368, "children": [373, 374], "start_point": {"row": 97, "column": 47}, "end_point": {"row": 97, "column": 62}}, {"id": 373, "type": "identifier", "text": "distance_t", "parent": 372, "children": [], "start_point": {"row": 97, "column": 47}, "end_point": {"row": 97, "column": 57}}, {"id": 374, "type": "identifier", "text": "rhs", "parent": 372, "children": [], "start_point": {"row": 97, "column": 59}, "end_point": {"row": 97, "column": 62}}, {"id": 375, "type": "ERROR", "text": "noexcept", "parent": null, "children": [376], "start_point": {"row": 97, "column": 64}, "end_point": {"row": 97, "column": 72}}, {"id": 376, "type": "identifier", "text": "noexcept", "parent": 375, "children": [], "start_point": {"row": 97, "column": 64}, "end_point": {"row": 97, "column": 72}}, {"id": 377, "type": "declaration", "text": "static inline position_t operator", "parent": null, "children": [378, 380, 381], "start_point": {"row": 99, "column": 1}, "end_point": {"row": 99, "column": 34}}, {"id": 378, "type": "storage_class_specifier", "text": "inline", "parent": 377, "children": [379], "start_point": {"row": 99, "column": 8}, "end_point": {"row": 99, "column": 14}}, {"id": 379, "type": "inline", "text": "inline", "parent": 378, "children": [], "start_point": {"row": 99, "column": 8}, "end_point": {"row": 99, "column": 14}}, {"id": 380, "type": "type_identifier", "text": "position_t", "parent": 377, "children": [], "start_point": {"row": 99, "column": 15}, "end_point": {"row": 99, "column": 25}}, {"id": 381, "type": "identifier", "text": "operator", "parent": 377, "children": [], "start_point": {"row": 99, "column": 26}, "end_point": {"row": 99, "column": 34}}, {"id": 382, "type": "ERROR", "text": "-(const position_t& lhs, const distance_t& rhs) noexcept", "parent": null, "children": [383, 395], "start_point": {"row": 99, "column": 34}, "end_point": {"row": 99, "column": 90}}, {"id": 383, "type": "unary_expression", "text": "-(const position_t& lhs, const distance_t& rhs)", "parent": 382, "children": [384, 385], "start_point": {"row": 99, "column": 34}, "end_point": {"row": 99, "column": 81}}, {"id": 384, "type": "-", "text": "-", "parent": 383, "children": [], "start_point": {"row": 99, "column": 34}, "end_point": {"row": 99, "column": 35}}, {"id": 385, "type": "parenthesized_expression", "text": "(const position_t& lhs, const distance_t& rhs)", "parent": 383, "children": [386, 389], "start_point": {"row": 99, "column": 35}, "end_point": {"row": 99, "column": 81}}, {"id": 386, "type": "ERROR", "text": "const position_t", "parent": 385, "children": [387], "start_point": {"row": 99, "column": 36}, "end_point": {"row": 99, "column": 52}}, {"id": 387, "type": "type_descriptor", "text": "const position_t", "parent": 386, "children": [388], "start_point": {"row": 99, "column": 36}, "end_point": {"row": 99, "column": 52}}, {"id": 388, "type": "type_identifier", "text": "position_t", "parent": 387, "children": [], "start_point": {"row": 99, "column": 42}, "end_point": {"row": 99, "column": 52}}, {"id": 389, "type": "comma_expression", "text": "& lhs, const distance_t& rhs", "parent": 385, "children": [390, 392], "start_point": {"row": 99, "column": 52}, "end_point": {"row": 99, "column": 80}}, {"id": 390, "type": "pointer_expression", "text": "& lhs", "parent": 389, "children": [391], "start_point": {"row": 99, "column": 52}, "end_point": {"row": 99, "column": 57}}, {"id": 391, "type": "identifier", "text": "lhs", "parent": 390, "children": [], "start_point": {"row": 99, "column": 54}, "end_point": {"row": 99, "column": 57}}, {"id": 392, "type": "binary_expression", "text": "distance_t& rhs", "parent": 389, "children": [393, 394], "start_point": {"row": 99, "column": 65}, "end_point": {"row": 99, "column": 80}}, {"id": 393, "type": "identifier", "text": "distance_t", "parent": 392, "children": [], "start_point": {"row": 99, "column": 65}, "end_point": {"row": 99, "column": 75}}, {"id": 394, "type": "identifier", "text": "rhs", "parent": 392, "children": [], "start_point": {"row": 99, "column": 77}, "end_point": {"row": 99, "column": 80}}, {"id": 395, "type": "identifier", "text": "noexcept", "parent": 382, "children": [], "start_point": {"row": 99, "column": 82}, "end_point": {"row": 99, "column": 90}}, {"id": 396, "type": "return_statement", "text": "return position_t", "parent": null, "children": [397], "start_point": {"row": 101, "column": 2}, "end_point": {"row": 101, "column": 19}}, {"id": 397, "type": "identifier", "text": "position_t", "parent": 396, "children": [], "start_point": {"row": 101, "column": 9}, "end_point": {"row": 101, "column": 19}}, {"id": 398, "type": "comma_expression", "text": "lhs.x - rhs.x(),\n\t\t\tlhs.y - rhs.y(),\n\t\t\tlhs.z - rhs.z()", "parent": null, "children": [399, 409], "start_point": {"row": 103, "column": 3}, "end_point": {"row": 105, "column": 18}}, {"id": 399, "type": "binary_expression", "text": "lhs.x - rhs.x()", "parent": 398, "children": [400, 403, 404], "start_point": {"row": 103, "column": 3}, "end_point": {"row": 103, "column": 18}}, {"id": 400, "type": "field_expression", "text": "lhs.x", "parent": 399, "children": [401, 402], "start_point": {"row": 103, "column": 3}, "end_point": {"row": 103, "column": 8}}, {"id": 401, "type": "identifier", "text": "lhs", "parent": 400, "children": [], "start_point": {"row": 103, "column": 3}, "end_point": {"row": 103, "column": 6}}, {"id": 402, "type": "field_identifier", "text": "x", "parent": 400, "children": [], "start_point": {"row": 103, "column": 7}, "end_point": {"row": 103, "column": 8}}, {"id": 403, "type": "-", "text": "-", "parent": 399, "children": [], "start_point": {"row": 103, "column": 9}, "end_point": {"row": 103, "column": 10}}, {"id": 404, "type": "call_expression", "text": "rhs.x()", "parent": 399, "children": [405, 408], "start_point": {"row": 103, "column": 11}, "end_point": {"row": 103, "column": 18}}, {"id": 405, "type": "field_expression", "text": "rhs.x", "parent": 404, "children": [406, 407], "start_point": {"row": 103, "column": 11}, "end_point": {"row": 103, "column": 16}}, {"id": 406, "type": "identifier", "text": "rhs", "parent": 405, "children": [], "start_point": {"row": 103, "column": 11}, "end_point": {"row": 103, "column": 14}}, {"id": 407, "type": "field_identifier", "text": "x", "parent": 405, "children": [], "start_point": {"row": 103, "column": 15}, "end_point": {"row": 103, "column": 16}}, {"id": 408, "type": "argument_list", "text": "()", "parent": 404, "children": [], "start_point": {"row": 103, "column": 16}, "end_point": {"row": 103, "column": 18}}, {"id": 409, "type": "comma_expression", "text": "lhs.y - rhs.y(),\n\t\t\tlhs.z - rhs.z()", "parent": 398, "children": [410, 420], "start_point": {"row": 104, "column": 3}, "end_point": {"row": 105, "column": 18}}, {"id": 410, "type": "binary_expression", "text": "lhs.y - rhs.y()", "parent": 409, "children": [411, 414, 415], "start_point": {"row": 104, "column": 3}, "end_point": {"row": 104, "column": 18}}, {"id": 411, "type": "field_expression", "text": "lhs.y", "parent": 410, "children": [412, 413], "start_point": {"row": 104, "column": 3}, "end_point": {"row": 104, "column": 8}}, {"id": 412, "type": "identifier", "text": "lhs", "parent": 411, "children": [], "start_point": {"row": 104, "column": 3}, "end_point": {"row": 104, "column": 6}}, {"id": 413, "type": "field_identifier", "text": "y", "parent": 411, "children": [], "start_point": {"row": 104, "column": 7}, "end_point": {"row": 104, "column": 8}}, {"id": 414, "type": "-", "text": "-", "parent": 410, "children": [], "start_point": {"row": 104, "column": 9}, "end_point": {"row": 104, "column": 10}}, {"id": 415, "type": "call_expression", "text": "rhs.y()", "parent": 410, "children": [416, 419], "start_point": {"row": 104, "column": 11}, "end_point": {"row": 104, "column": 18}}, {"id": 416, "type": "field_expression", "text": "rhs.y", "parent": 415, "children": [417, 418], "start_point": {"row": 104, "column": 11}, "end_point": {"row": 104, "column": 16}}, {"id": 417, "type": "identifier", "text": "rhs", "parent": 416, "children": [], "start_point": {"row": 104, "column": 11}, "end_point": {"row": 104, "column": 14}}, {"id": 418, "type": "field_identifier", "text": "y", "parent": 416, "children": [], "start_point": {"row": 104, "column": 15}, "end_point": {"row": 104, "column": 16}}, {"id": 419, "type": "argument_list", "text": "()", "parent": 415, "children": [], "start_point": {"row": 104, "column": 16}, "end_point": {"row": 104, "column": 18}}, {"id": 420, "type": "binary_expression", "text": "lhs.z - rhs.z()", "parent": 409, "children": [421, 424, 425], "start_point": {"row": 105, "column": 3}, "end_point": {"row": 105, "column": 18}}, {"id": 421, "type": "field_expression", "text": "lhs.z", "parent": 420, "children": [422, 423], "start_point": {"row": 105, "column": 3}, "end_point": {"row": 105, "column": 8}}, {"id": 422, "type": "identifier", "text": "lhs", "parent": 421, "children": [], "start_point": {"row": 105, "column": 3}, "end_point": {"row": 105, "column": 6}}, {"id": 423, "type": "field_identifier", "text": "z", "parent": 421, "children": [], "start_point": {"row": 105, "column": 7}, "end_point": {"row": 105, "column": 8}}, {"id": 424, "type": "-", "text": "-", "parent": 420, "children": [], "start_point": {"row": 105, "column": 9}, "end_point": {"row": 105, "column": 10}}, {"id": 425, "type": "call_expression", "text": "rhs.z()", "parent": 420, "children": [426, 429], "start_point": {"row": 105, "column": 11}, "end_point": {"row": 105, "column": 18}}, {"id": 426, "type": "field_expression", "text": "rhs.z", "parent": 425, "children": [427, 428], "start_point": {"row": 105, "column": 11}, "end_point": {"row": 105, "column": 16}}, {"id": 427, "type": "identifier", "text": "rhs", "parent": 426, "children": [], "start_point": {"row": 105, "column": 11}, "end_point": {"row": 105, "column": 14}}, {"id": 428, "type": "field_identifier", "text": "z", "parent": 426, "children": [], "start_point": {"row": 105, "column": 15}, "end_point": {"row": 105, "column": 16}}, {"id": 429, "type": "argument_list", "text": "()", "parent": 425, "children": [], "start_point": {"row": 105, "column": 16}, "end_point": {"row": 105, "column": 18}}, {"id": 430, "type": "binary_expression", "text": "position_t& operator-=(position_t& lhs, const distance_t& rhs)", "parent": null, "children": [431, 432], "start_point": {"row": 108, "column": 1}, "end_point": {"row": 108, "column": 63}}, {"id": 431, "type": "identifier", "text": "position_t", "parent": 430, "children": [], "start_point": {"row": 108, "column": 1}, "end_point": {"row": 108, "column": 11}}, {"id": 432, "type": "assignment_expression", "text": "operator-=(position_t& lhs, const distance_t& rhs)", "parent": 430, "children": [433, 434, 435], "start_point": {"row": 108, "column": 13}, "end_point": {"row": 108, "column": 63}}, {"id": 433, "type": "identifier", "text": "operator", "parent": 432, "children": [], "start_point": {"row": 108, "column": 13}, "end_point": {"row": 108, "column": 21}}, {"id": 434, "type": "-=", "text": "-=", "parent": 432, "children": [], "start_point": {"row": 108, "column": 21}, "end_point": {"row": 108, "column": 23}}, {"id": 435, "type": "parenthesized_expression", "text": "(position_t& lhs, const distance_t& rhs)", "parent": 432, "children": [436], "start_point": {"row": 108, "column": 23}, "end_point": {"row": 108, "column": 63}}, {"id": 436, "type": "comma_expression", "text": "position_t& lhs, const distance_t& rhs", "parent": 435, "children": [437, 440], "start_point": {"row": 108, "column": 24}, "end_point": {"row": 108, "column": 62}}, {"id": 437, "type": "binary_expression", "text": "position_t& lhs", "parent": 436, "children": [438, 439], "start_point": {"row": 108, "column": 24}, "end_point": {"row": 108, "column": 39}}, {"id": 438, "type": "identifier", "text": "position_t", "parent": 437, "children": [], "start_point": {"row": 108, "column": 24}, "end_point": {"row": 108, "column": 34}}, {"id": 439, "type": "identifier", "text": "lhs", "parent": 437, "children": [], "start_point": {"row": 108, "column": 36}, "end_point": {"row": 108, "column": 39}}, {"id": 440, "type": "binary_expression", "text": "distance_t& rhs", "parent": 436, "children": [441, 442], "start_point": {"row": 108, "column": 47}, "end_point": {"row": 108, "column": 62}}, {"id": 441, "type": "identifier", "text": "distance_t", "parent": 440, "children": [], "start_point": {"row": 108, "column": 47}, "end_point": {"row": 108, "column": 57}}, {"id": 442, "type": "identifier", "text": "rhs", "parent": 440, "children": [], "start_point": {"row": 108, "column": 59}, "end_point": {"row": 108, "column": 62}}, {"id": 443, "type": "ERROR", "text": "noexcept", "parent": null, "children": [444], "start_point": {"row": 108, "column": 64}, "end_point": {"row": 108, "column": 72}}, {"id": 444, "type": "identifier", "text": "noexcept", "parent": 443, "children": [], "start_point": {"row": 108, "column": 64}, "end_point": {"row": 108, "column": 72}}, {"id": 445, "type": "declaration", "text": "distance_t operator", "parent": null, "children": [446, 447], "start_point": {"row": 112, "column": 1}, "end_point": {"row": 112, "column": 20}}, {"id": 446, "type": "type_identifier", "text": "distance_t", "parent": 445, "children": [], "start_point": {"row": 112, "column": 1}, "end_point": {"row": 112, "column": 11}}, {"id": 447, "type": "identifier", "text": "operator", "parent": 445, "children": [], "start_point": {"row": 112, "column": 12}, "end_point": {"row": 112, "column": 20}}, {"id": 448, "type": "unary_expression", "text": "+(const distance_t& rhs, const distance_t& lhs)", "parent": null, "children": [449, 450], "start_point": {"row": 112, "column": 20}, "end_point": {"row": 112, "column": 67}}, {"id": 449, "type": "+", "text": "+", "parent": 448, "children": [], "start_point": {"row": 112, "column": 20}, "end_point": {"row": 112, "column": 21}}, {"id": 450, "type": "parenthesized_expression", "text": "(const distance_t& rhs, const distance_t& lhs)", "parent": 448, "children": [451, 454], "start_point": {"row": 112, "column": 21}, "end_point": {"row": 112, "column": 67}}, {"id": 451, "type": "ERROR", "text": "const distance_t", "parent": 450, "children": [452], "start_point": {"row": 112, "column": 22}, "end_point": {"row": 112, "column": 38}}, {"id": 452, "type": "type_descriptor", "text": "const distance_t", "parent": 451, "children": [453], "start_point": {"row": 112, "column": 22}, "end_point": {"row": 112, "column": 38}}, {"id": 453, "type": "type_identifier", "text": "distance_t", "parent": 452, "children": [], "start_point": {"row": 112, "column": 28}, "end_point": {"row": 112, "column": 38}}, {"id": 454, "type": "comma_expression", "text": "& rhs, const distance_t& lhs", "parent": 450, "children": [455, 457], "start_point": {"row": 112, "column": 38}, "end_point": {"row": 112, "column": 66}}, {"id": 455, "type": "pointer_expression", "text": "& rhs", "parent": 454, "children": [456], "start_point": {"row": 112, "column": 38}, "end_point": {"row": 112, "column": 43}}, {"id": 456, "type": "identifier", "text": "rhs", "parent": 455, "children": [], "start_point": {"row": 112, "column": 40}, "end_point": {"row": 112, "column": 43}}, {"id": 457, "type": "binary_expression", "text": "distance_t& lhs", "parent": 454, "children": [458, 459], "start_point": {"row": 112, "column": 51}, "end_point": {"row": 112, "column": 66}}, {"id": 458, "type": "identifier", "text": "distance_t", "parent": 457, "children": [], "start_point": {"row": 112, "column": 51}, "end_point": {"row": 112, "column": 61}}, {"id": 459, "type": "identifier", "text": "lhs", "parent": 457, "children": [], "start_point": {"row": 112, "column": 63}, "end_point": {"row": 112, "column": 66}}, {"id": 460, "type": "ERROR", "text": "noexcept", "parent": null, "children": [461], "start_point": {"row": 112, "column": 68}, "end_point": {"row": 112, "column": 76}}, {"id": 461, "type": "identifier", "text": "noexcept", "parent": 460, "children": [], "start_point": {"row": 112, "column": 68}, "end_point": {"row": 112, "column": 76}}, {"id": 462, "type": "binary_expression", "text": "distance_t& operator+=(distance_t& rhs, const distance_t& lhs)", "parent": null, "children": [463, 464], "start_point": {"row": 113, "column": 1}, "end_point": {"row": 113, "column": 63}}, {"id": 463, "type": "identifier", "text": "distance_t", "parent": 462, "children": [], "start_point": {"row": 113, "column": 1}, "end_point": {"row": 113, "column": 11}}, {"id": 464, "type": "assignment_expression", "text": "operator+=(distance_t& rhs, const distance_t& lhs)", "parent": 462, "children": [465, 466, 467], "start_point": {"row": 113, "column": 13}, "end_point": {"row": 113, "column": 63}}, {"id": 465, "type": "identifier", "text": "operator", "parent": 464, "children": [], "start_point": {"row": 113, "column": 13}, "end_point": {"row": 113, "column": 21}}, {"id": 466, "type": "+=", "text": "+=", "parent": 464, "children": [], "start_point": {"row": 113, "column": 21}, "end_point": {"row": 113, "column": 23}}, {"id": 467, "type": "parenthesized_expression", "text": "(distance_t& rhs, const distance_t& lhs)", "parent": 464, "children": [468], "start_point": {"row": 113, "column": 23}, "end_point": {"row": 113, "column": 63}}, {"id": 468, "type": "comma_expression", "text": "distance_t& rhs, const distance_t& lhs", "parent": 467, "children": [469, 472], "start_point": {"row": 113, "column": 24}, "end_point": {"row": 113, "column": 62}}, {"id": 469, "type": "binary_expression", "text": "distance_t& rhs", "parent": 468, "children": [470, 471], "start_point": {"row": 113, "column": 24}, "end_point": {"row": 113, "column": 39}}, {"id": 470, "type": "identifier", "text": "distance_t", "parent": 469, "children": [], "start_point": {"row": 113, "column": 24}, "end_point": {"row": 113, "column": 34}}, {"id": 471, "type": "identifier", "text": "rhs", "parent": 469, "children": [], "start_point": {"row": 113, "column": 36}, "end_point": {"row": 113, "column": 39}}, {"id": 472, "type": "binary_expression", "text": "distance_t& lhs", "parent": 468, "children": [473, 474], "start_point": {"row": 113, "column": 47}, "end_point": {"row": 113, "column": 62}}, {"id": 473, "type": "identifier", "text": "distance_t", "parent": 472, "children": [], "start_point": {"row": 113, "column": 47}, "end_point": {"row": 113, "column": 57}}, {"id": 474, "type": "identifier", "text": "lhs", "parent": 472, "children": [], "start_point": {"row": 113, "column": 59}, "end_point": {"row": 113, "column": 62}}, {"id": 475, "type": "ERROR", "text": "noexcept", "parent": null, "children": [476], "start_point": {"row": 113, "column": 64}, "end_point": {"row": 113, "column": 72}}, {"id": 476, "type": "identifier", "text": "noexcept", "parent": 475, "children": [], "start_point": {"row": 113, "column": 64}, "end_point": {"row": 113, "column": 72}}, {"id": 477, "type": "declaration", "text": "distance_t operator", "parent": null, "children": [478, 479], "start_point": {"row": 115, "column": 1}, "end_point": {"row": 115, "column": 20}}, {"id": 478, "type": "type_identifier", "text": "distance_t", "parent": 477, "children": [], "start_point": {"row": 115, "column": 1}, "end_point": {"row": 115, "column": 11}}, {"id": 479, "type": "identifier", "text": "operator", "parent": 477, "children": [], "start_point": {"row": 115, "column": 12}, "end_point": {"row": 115, "column": 20}}, {"id": 480, "type": "unary_expression", "text": "-(const distance_t& rhs, const distance_t& lhs)", "parent": null, "children": [481, 482], "start_point": {"row": 115, "column": 20}, "end_point": {"row": 115, "column": 67}}, {"id": 481, "type": "-", "text": "-", "parent": 480, "children": [], "start_point": {"row": 115, "column": 20}, "end_point": {"row": 115, "column": 21}}, {"id": 482, "type": "parenthesized_expression", "text": "(const distance_t& rhs, const distance_t& lhs)", "parent": 480, "children": [483, 486], "start_point": {"row": 115, "column": 21}, "end_point": {"row": 115, "column": 67}}, {"id": 483, "type": "ERROR", "text": "const distance_t", "parent": 482, "children": [484], "start_point": {"row": 115, "column": 22}, "end_point": {"row": 115, "column": 38}}, {"id": 484, "type": "type_descriptor", "text": "const distance_t", "parent": 483, "children": [485], "start_point": {"row": 115, "column": 22}, "end_point": {"row": 115, "column": 38}}, {"id": 485, "type": "type_identifier", "text": "distance_t", "parent": 484, "children": [], "start_point": {"row": 115, "column": 28}, "end_point": {"row": 115, "column": 38}}, {"id": 486, "type": "comma_expression", "text": "& rhs, const distance_t& lhs", "parent": 482, "children": [487, 489], "start_point": {"row": 115, "column": 38}, "end_point": {"row": 115, "column": 66}}, {"id": 487, "type": "pointer_expression", "text": "& rhs", "parent": 486, "children": [488], "start_point": {"row": 115, "column": 38}, "end_point": {"row": 115, "column": 43}}, {"id": 488, "type": "identifier", "text": "rhs", "parent": 487, "children": [], "start_point": {"row": 115, "column": 40}, "end_point": {"row": 115, "column": 43}}, {"id": 489, "type": "binary_expression", "text": "distance_t& lhs", "parent": 486, "children": [490, 491], "start_point": {"row": 115, "column": 51}, "end_point": {"row": 115, "column": 66}}, {"id": 490, "type": "identifier", "text": "distance_t", "parent": 489, "children": [], "start_point": {"row": 115, "column": 51}, "end_point": {"row": 115, "column": 61}}, {"id": 491, "type": "identifier", "text": "lhs", "parent": 489, "children": [], "start_point": {"row": 115, "column": 63}, "end_point": {"row": 115, "column": 66}}, {"id": 492, "type": "ERROR", "text": "noexcept", "parent": null, "children": [493], "start_point": {"row": 115, "column": 68}, "end_point": {"row": 115, "column": 76}}, {"id": 493, "type": "identifier", "text": "noexcept", "parent": 492, "children": [], "start_point": {"row": 115, "column": 68}, "end_point": {"row": 115, "column": 76}}, {"id": 494, "type": "binary_expression", "text": "distance_t& operator-=(distance_t& rhs, const distance_t& lhs)", "parent": null, "children": [495, 496], "start_point": {"row": 116, "column": 1}, "end_point": {"row": 116, "column": 63}}, {"id": 495, "type": "identifier", "text": "distance_t", "parent": 494, "children": [], "start_point": {"row": 116, "column": 1}, "end_point": {"row": 116, "column": 11}}, {"id": 496, "type": "assignment_expression", "text": "operator-=(distance_t& rhs, const distance_t& lhs)", "parent": 494, "children": [497, 498, 499], "start_point": {"row": 116, "column": 13}, "end_point": {"row": 116, "column": 63}}, {"id": 497, "type": "identifier", "text": "operator", "parent": 496, "children": [], "start_point": {"row": 116, "column": 13}, "end_point": {"row": 116, "column": 21}}, {"id": 498, "type": "-=", "text": "-=", "parent": 496, "children": [], "start_point": {"row": 116, "column": 21}, "end_point": {"row": 116, "column": 23}}, {"id": 499, "type": "parenthesized_expression", "text": "(distance_t& rhs, const distance_t& lhs)", "parent": 496, "children": [500], "start_point": {"row": 116, "column": 23}, "end_point": {"row": 116, "column": 63}}, {"id": 500, "type": "comma_expression", "text": "distance_t& rhs, const distance_t& lhs", "parent": 499, "children": [501, 504], "start_point": {"row": 116, "column": 24}, "end_point": {"row": 116, "column": 62}}, {"id": 501, "type": "binary_expression", "text": "distance_t& rhs", "parent": 500, "children": [502, 503], "start_point": {"row": 116, "column": 24}, "end_point": {"row": 116, "column": 39}}, {"id": 502, "type": "identifier", "text": "distance_t", "parent": 501, "children": [], "start_point": {"row": 116, "column": 24}, "end_point": {"row": 116, "column": 34}}, {"id": 503, "type": "identifier", "text": "rhs", "parent": 501, "children": [], "start_point": {"row": 116, "column": 36}, "end_point": {"row": 116, "column": 39}}, {"id": 504, "type": "binary_expression", "text": "distance_t& lhs", "parent": 500, "children": [505, 506], "start_point": {"row": 116, "column": 47}, "end_point": {"row": 116, "column": 62}}, {"id": 505, "type": "identifier", "text": "distance_t", "parent": 504, "children": [], "start_point": {"row": 116, "column": 47}, "end_point": {"row": 116, "column": 57}}, {"id": 506, "type": "identifier", "text": "lhs", "parent": 504, "children": [], "start_point": {"row": 116, "column": 59}, "end_point": {"row": 116, "column": 62}}, {"id": 507, "type": "ERROR", "text": "noexcept", "parent": null, "children": [508], "start_point": {"row": 116, "column": 64}, "end_point": {"row": 116, "column": 72}}, {"id": 508, "type": "identifier", "text": "noexcept", "parent": 507, "children": [], "start_point": {"row": 116, "column": 64}, "end_point": {"row": 116, "column": 72}}, {"id": 509, "type": "declaration", "text": "velocity_t operator", "parent": null, "children": [510, 511], "start_point": {"row": 120, "column": 1}, "end_point": {"row": 120, "column": 20}}, {"id": 510, "type": "type_identifier", "text": "velocity_t", "parent": 509, "children": [], "start_point": {"row": 120, "column": 1}, "end_point": {"row": 120, "column": 11}}, {"id": 511, "type": "identifier", "text": "operator", "parent": 509, "children": [], "start_point": {"row": 120, "column": 12}, "end_point": {"row": 120, "column": 20}}, {"id": 512, "type": "unary_expression", "text": "+(const velocity_t& rhs, const velocity_t& lhs)", "parent": null, "children": [513, 514], "start_point": {"row": 120, "column": 20}, "end_point": {"row": 120, "column": 67}}, {"id": 513, "type": "+", "text": "+", "parent": 512, "children": [], "start_point": {"row": 120, "column": 20}, "end_point": {"row": 120, "column": 21}}, {"id": 514, "type": "parenthesized_expression", "text": "(const velocity_t& rhs, const velocity_t& lhs)", "parent": 512, "children": [515, 518], "start_point": {"row": 120, "column": 21}, "end_point": {"row": 120, "column": 67}}, {"id": 515, "type": "ERROR", "text": "const velocity_t", "parent": 514, "children": [516], "start_point": {"row": 120, "column": 22}, "end_point": {"row": 120, "column": 38}}, {"id": 516, "type": "type_descriptor", "text": "const velocity_t", "parent": 515, "children": [517], "start_point": {"row": 120, "column": 22}, "end_point": {"row": 120, "column": 38}}, {"id": 517, "type": "type_identifier", "text": "velocity_t", "parent": 516, "children": [], "start_point": {"row": 120, "column": 28}, "end_point": {"row": 120, "column": 38}}, {"id": 518, "type": "comma_expression", "text": "& rhs, const velocity_t& lhs", "parent": 514, "children": [519, 521], "start_point": {"row": 120, "column": 38}, "end_point": {"row": 120, "column": 66}}, {"id": 519, "type": "pointer_expression", "text": "& rhs", "parent": 518, "children": [520], "start_point": {"row": 120, "column": 38}, "end_point": {"row": 120, "column": 43}}, {"id": 520, "type": "identifier", "text": "rhs", "parent": 519, "children": [], "start_point": {"row": 120, "column": 40}, "end_point": {"row": 120, "column": 43}}, {"id": 521, "type": "binary_expression", "text": "velocity_t& lhs", "parent": 518, "children": [522, 523], "start_point": {"row": 120, "column": 51}, "end_point": {"row": 120, "column": 66}}, {"id": 522, "type": "identifier", "text": "velocity_t", "parent": 521, "children": [], "start_point": {"row": 120, "column": 51}, "end_point": {"row": 120, "column": 61}}, {"id": 523, "type": "identifier", "text": "lhs", "parent": 521, "children": [], "start_point": {"row": 120, "column": 63}, "end_point": {"row": 120, "column": 66}}, {"id": 524, "type": "ERROR", "text": "noexcept", "parent": null, "children": [525], "start_point": {"row": 120, "column": 68}, "end_point": {"row": 120, "column": 76}}, {"id": 525, "type": "identifier", "text": "noexcept", "parent": 524, "children": [], "start_point": {"row": 120, "column": 68}, "end_point": {"row": 120, "column": 76}}, {"id": 526, "type": "binary_expression", "text": "velocity_t& operator+=(velocity_t& rhs, const velocity_t& lhs)", "parent": null, "children": [527, 528], "start_point": {"row": 121, "column": 1}, "end_point": {"row": 121, "column": 63}}, {"id": 527, "type": "identifier", "text": "velocity_t", "parent": 526, "children": [], "start_point": {"row": 121, "column": 1}, "end_point": {"row": 121, "column": 11}}, {"id": 528, "type": "assignment_expression", "text": "operator+=(velocity_t& rhs, const velocity_t& lhs)", "parent": 526, "children": [529, 530, 531], "start_point": {"row": 121, "column": 13}, "end_point": {"row": 121, "column": 63}}, {"id": 529, "type": "identifier", "text": "operator", "parent": 528, "children": [], "start_point": {"row": 121, "column": 13}, "end_point": {"row": 121, "column": 21}}, {"id": 530, "type": "+=", "text": "+=", "parent": 528, "children": [], "start_point": {"row": 121, "column": 21}, "end_point": {"row": 121, "column": 23}}, {"id": 531, "type": "parenthesized_expression", "text": "(velocity_t& rhs, const velocity_t& lhs)", "parent": 528, "children": [532], "start_point": {"row": 121, "column": 23}, "end_point": {"row": 121, "column": 63}}, {"id": 532, "type": "comma_expression", "text": "velocity_t& rhs, const velocity_t& lhs", "parent": 531, "children": [533, 536], "start_point": {"row": 121, "column": 24}, "end_point": {"row": 121, "column": 62}}, {"id": 533, "type": "binary_expression", "text": "velocity_t& rhs", "parent": 532, "children": [534, 535], "start_point": {"row": 121, "column": 24}, "end_point": {"row": 121, "column": 39}}, {"id": 534, "type": "identifier", "text": "velocity_t", "parent": 533, "children": [], "start_point": {"row": 121, "column": 24}, "end_point": {"row": 121, "column": 34}}, {"id": 535, "type": "identifier", "text": "rhs", "parent": 533, "children": [], "start_point": {"row": 121, "column": 36}, "end_point": {"row": 121, "column": 39}}, {"id": 536, "type": "binary_expression", "text": "velocity_t& lhs", "parent": 532, "children": [537, 538], "start_point": {"row": 121, "column": 47}, "end_point": {"row": 121, "column": 62}}, {"id": 537, "type": "identifier", "text": "velocity_t", "parent": 536, "children": [], "start_point": {"row": 121, "column": 47}, "end_point": {"row": 121, "column": 57}}, {"id": 538, "type": "identifier", "text": "lhs", "parent": 536, "children": [], "start_point": {"row": 121, "column": 59}, "end_point": {"row": 121, "column": 62}}, {"id": 539, "type": "ERROR", "text": "noexcept", "parent": null, "children": [540], "start_point": {"row": 121, "column": 64}, "end_point": {"row": 121, "column": 72}}, {"id": 540, "type": "identifier", "text": "noexcept", "parent": 539, "children": [], "start_point": {"row": 121, "column": 64}, "end_point": {"row": 121, "column": 72}}, {"id": 541, "type": "declaration", "text": "velocity_t operator", "parent": null, "children": [542, 543], "start_point": {"row": 123, "column": 1}, "end_point": {"row": 123, "column": 20}}, {"id": 542, "type": "type_identifier", "text": "velocity_t", "parent": 541, "children": [], "start_point": {"row": 123, "column": 1}, "end_point": {"row": 123, "column": 11}}, {"id": 543, "type": "identifier", "text": "operator", "parent": 541, "children": [], "start_point": {"row": 123, "column": 12}, "end_point": {"row": 123, "column": 20}}, {"id": 544, "type": "unary_expression", "text": "-(const velocity_t& rhs, const velocity_t& lhs)", "parent": null, "children": [545, 546], "start_point": {"row": 123, "column": 20}, "end_point": {"row": 123, "column": 67}}, {"id": 545, "type": "-", "text": "-", "parent": 544, "children": [], "start_point": {"row": 123, "column": 20}, "end_point": {"row": 123, "column": 21}}, {"id": 546, "type": "parenthesized_expression", "text": "(const velocity_t& rhs, const velocity_t& lhs)", "parent": 544, "children": [547, 550], "start_point": {"row": 123, "column": 21}, "end_point": {"row": 123, "column": 67}}, {"id": 547, "type": "ERROR", "text": "const velocity_t", "parent": 546, "children": [548], "start_point": {"row": 123, "column": 22}, "end_point": {"row": 123, "column": 38}}, {"id": 548, "type": "type_descriptor", "text": "const velocity_t", "parent": 547, "children": [549], "start_point": {"row": 123, "column": 22}, "end_point": {"row": 123, "column": 38}}, {"id": 549, "type": "type_identifier", "text": "velocity_t", "parent": 548, "children": [], "start_point": {"row": 123, "column": 28}, "end_point": {"row": 123, "column": 38}}, {"id": 550, "type": "comma_expression", "text": "& rhs, const velocity_t& lhs", "parent": 546, "children": [551, 553], "start_point": {"row": 123, "column": 38}, "end_point": {"row": 123, "column": 66}}, {"id": 551, "type": "pointer_expression", "text": "& rhs", "parent": 550, "children": [552], "start_point": {"row": 123, "column": 38}, "end_point": {"row": 123, "column": 43}}, {"id": 552, "type": "identifier", "text": "rhs", "parent": 551, "children": [], "start_point": {"row": 123, "column": 40}, "end_point": {"row": 123, "column": 43}}, {"id": 553, "type": "binary_expression", "text": "velocity_t& lhs", "parent": 550, "children": [554, 555], "start_point": {"row": 123, "column": 51}, "end_point": {"row": 123, "column": 66}}, {"id": 554, "type": "identifier", "text": "velocity_t", "parent": 553, "children": [], "start_point": {"row": 123, "column": 51}, "end_point": {"row": 123, "column": 61}}, {"id": 555, "type": "identifier", "text": "lhs", "parent": 553, "children": [], "start_point": {"row": 123, "column": 63}, "end_point": {"row": 123, "column": 66}}, {"id": 556, "type": "ERROR", "text": "noexcept", "parent": null, "children": [557], "start_point": {"row": 123, "column": 68}, "end_point": {"row": 123, "column": 76}}, {"id": 557, "type": "identifier", "text": "noexcept", "parent": 556, "children": [], "start_point": {"row": 123, "column": 68}, "end_point": {"row": 123, "column": 76}}, {"id": 558, "type": "binary_expression", "text": "velocity_t& operator-=(velocity_t& rhs, const velocity_t& lhs)", "parent": null, "children": [559, 560], "start_point": {"row": 124, "column": 1}, "end_point": {"row": 124, "column": 63}}, {"id": 559, "type": "identifier", "text": "velocity_t", "parent": 558, "children": [], "start_point": {"row": 124, "column": 1}, "end_point": {"row": 124, "column": 11}}, {"id": 560, "type": "assignment_expression", "text": "operator-=(velocity_t& rhs, const velocity_t& lhs)", "parent": 558, "children": [561, 562, 563], "start_point": {"row": 124, "column": 13}, "end_point": {"row": 124, "column": 63}}, {"id": 561, "type": "identifier", "text": "operator", "parent": 560, "children": [], "start_point": {"row": 124, "column": 13}, "end_point": {"row": 124, "column": 21}}, {"id": 562, "type": "-=", "text": "-=", "parent": 560, "children": [], "start_point": {"row": 124, "column": 21}, "end_point": {"row": 124, "column": 23}}, {"id": 563, "type": "parenthesized_expression", "text": "(velocity_t& rhs, const velocity_t& lhs)", "parent": 560, "children": [564], "start_point": {"row": 124, "column": 23}, "end_point": {"row": 124, "column": 63}}, {"id": 564, "type": "comma_expression", "text": "velocity_t& rhs, const velocity_t& lhs", "parent": 563, "children": [565, 568], "start_point": {"row": 124, "column": 24}, "end_point": {"row": 124, "column": 62}}, {"id": 565, "type": "binary_expression", "text": "velocity_t& rhs", "parent": 564, "children": [566, 567], "start_point": {"row": 124, "column": 24}, "end_point": {"row": 124, "column": 39}}, {"id": 566, "type": "identifier", "text": "velocity_t", "parent": 565, "children": [], "start_point": {"row": 124, "column": 24}, "end_point": {"row": 124, "column": 34}}, {"id": 567, "type": "identifier", "text": "rhs", "parent": 565, "children": [], "start_point": {"row": 124, "column": 36}, "end_point": {"row": 124, "column": 39}}, {"id": 568, "type": "binary_expression", "text": "velocity_t& lhs", "parent": 564, "children": [569, 570], "start_point": {"row": 124, "column": 47}, "end_point": {"row": 124, "column": 62}}, {"id": 569, "type": "identifier", "text": "velocity_t", "parent": 568, "children": [], "start_point": {"row": 124, "column": 47}, "end_point": {"row": 124, "column": 57}}, {"id": 570, "type": "identifier", "text": "lhs", "parent": 568, "children": [], "start_point": {"row": 124, "column": 59}, "end_point": {"row": 124, "column": 62}}, {"id": 571, "type": "ERROR", "text": "noexcept", "parent": null, "children": [572], "start_point": {"row": 124, "column": 64}, "end_point": {"row": 124, "column": 72}}, {"id": 572, "type": "identifier", "text": "noexcept", "parent": 571, "children": [], "start_point": {"row": 124, "column": 64}, "end_point": {"row": 124, "column": 72}}, {"id": 573, "type": "comma_expression", "text": "template <typename _Rep, typename _Period>\n\tvelocity_t operator/(const distance_t& lhs, std::chrono::duration<_Rep, _Period> rhs)", "parent": null, "children": [574, 578, 580], "start_point": {"row": 131, "column": 1}, "end_point": {"row": 132, "column": 86}}, {"id": 574, "type": "binary_expression", "text": "template <typename", "parent": 573, "children": [575, 576, 577], "start_point": {"row": 131, "column": 1}, "end_point": {"row": 131, "column": 19}}, {"id": 575, "type": "identifier", "text": "template", "parent": 574, "children": [], "start_point": {"row": 131, "column": 1}, "end_point": {"row": 131, "column": 9}}, {"id": 576, "type": "<", "text": "<", "parent": 574, "children": [], "start_point": {"row": 131, "column": 10}, "end_point": {"row": 131, "column": 11}}, {"id": 577, "type": "identifier", "text": "typename", "parent": 574, "children": [], "start_point": {"row": 131, "column": 11}, "end_point": {"row": 131, "column": 19}}, {"id": 578, "type": "ERROR", "text": "_Rep", "parent": 573, "children": [579], "start_point": {"row": 131, "column": 20}, "end_point": {"row": 131, "column": 24}}, {"id": 579, "type": "identifier", "text": "_Rep", "parent": 578, "children": [], "start_point": {"row": 131, "column": 20}, "end_point": {"row": 131, "column": 24}}, {"id": 580, "type": "binary_expression", "text": "typename _Period>\n\tvelocity_t operator/(const distance_t& lhs, std::chrono::duration<_Rep, _Period> rhs)", "parent": 573, "children": [581, 582, 584, 585], "start_point": {"row": 131, "column": 26}, "end_point": {"row": 132, "column": 86}}, {"id": 581, "type": "identifier", "text": "typename", "parent": 580, "children": [], "start_point": {"row": 131, "column": 26}, "end_point": {"row": 131, "column": 34}}, {"id": 582, "type": "ERROR", "text": "_Period", "parent": 580, "children": [583], "start_point": {"row": 131, "column": 35}, "end_point": {"row": 131, "column": 42}}, {"id": 583, "type": "identifier", "text": "_Period", "parent": 582, "children": [], "start_point": {"row": 131, "column": 35}, "end_point": {"row": 131, "column": 42}}, {"id": 584, "type": ">", "text": ">", "parent": 580, "children": [], "start_point": {"row": 131, "column": 42}, "end_point": {"row": 131, "column": 43}}, {"id": 585, "type": "binary_expression", "text": "velocity_t operator/(const distance_t& lhs, std::chrono::duration<_Rep, _Period> rhs)", "parent": 580, "children": [586, 587, 589, 590], "start_point": {"row": 132, "column": 1}, "end_point": {"row": 132, "column": 86}}, {"id": 586, "type": "identifier", "text": "velocity_t", "parent": 585, "children": [], "start_point": {"row": 132, "column": 1}, "end_point": {"row": 132, "column": 11}}, {"id": 587, "type": "ERROR", "text": "operator", "parent": 585, "children": [588], "start_point": {"row": 132, "column": 12}, "end_point": {"row": 132, "column": 20}}, {"id": 588, "type": "identifier", "text": "operator", "parent": 587, "children": [], "start_point": {"row": 132, "column": 12}, "end_point": {"row": 132, "column": 20}}, {"id": 589, "type": "/", "text": "/", "parent": 585, "children": [], "start_point": {"row": 132, "column": 20}, "end_point": {"row": 132, "column": 21}}, {"id": 590, "type": "parenthesized_expression", "text": "(const distance_t& lhs, std::chrono::duration<_Rep, _Period> rhs)", "parent": 585, "children": [591, 599], "start_point": {"row": 132, "column": 21}, "end_point": {"row": 132, "column": 86}}, {"id": 591, "type": "ERROR", "text": "const distance_t& lhs, std::chrono::", "parent": 590, "children": [592, 594, 598], "start_point": {"row": 132, "column": 22}, "end_point": {"row": 132, "column": 58}}, {"id": 592, "type": "type_descriptor", "text": "const distance_t", "parent": 591, "children": [593], "start_point": {"row": 132, "column": 22}, "end_point": {"row": 132, "column": 38}}, {"id": 593, "type": "type_identifier", "text": "distance_t", "parent": 592, "children": [], "start_point": {"row": 132, "column": 28}, "end_point": {"row": 132, "column": 38}}, {"id": 594, "type": "comma_expression", "text": "& lhs, std", "parent": 591, "children": [595, 597], "start_point": {"row": 132, "column": 38}, "end_point": {"row": 132, "column": 48}}, {"id": 595, "type": "pointer_expression", "text": "& lhs", "parent": 594, "children": [596], "start_point": {"row": 132, "column": 38}, "end_point": {"row": 132, "column": 43}}, {"id": 596, "type": "identifier", "text": "lhs", "parent": 595, "children": [], "start_point": {"row": 132, "column": 40}, "end_point": {"row": 132, "column": 43}}, {"id": 597, "type": "identifier", "text": "std", "parent": 594, "children": [], "start_point": {"row": 132, "column": 45}, "end_point": {"row": 132, "column": 48}}, {"id": 598, "type": "identifier", "text": "chrono", "parent": 591, "children": [], "start_point": {"row": 132, "column": 50}, "end_point": {"row": 132, "column": 56}}, {"id": 599, "type": "comma_expression", "text": "duration<_Rep, _Period> rhs", "parent": 590, "children": [600, 604], "start_point": {"row": 132, "column": 58}, "end_point": {"row": 132, "column": 85}}, {"id": 600, "type": "binary_expression", "text": "duration<_Rep", "parent": 599, "children": [601, 602, 603], "start_point": {"row": 132, "column": 58}, "end_point": {"row": 132, "column": 71}}, {"id": 601, "type": "identifier", "text": "duration", "parent": 600, "children": [], "start_point": {"row": 132, "column": 58}, "end_point": {"row": 132, "column": 66}}, {"id": 602, "type": "<", "text": "<", "parent": 600, "children": [], "start_point": {"row": 132, "column": 66}, "end_point": {"row": 132, "column": 67}}, {"id": 603, "type": "identifier", "text": "_Rep", "parent": 600, "children": [], "start_point": {"row": 132, "column": 67}, "end_point": {"row": 132, "column": 71}}, {"id": 604, "type": "binary_expression", "text": "_Period> rhs", "parent": 599, "children": [605, 606, 607], "start_point": {"row": 132, "column": 73}, "end_point": {"row": 132, "column": 85}}, {"id": 605, "type": "identifier", "text": "_Period", "parent": 604, "children": [], "start_point": {"row": 132, "column": 73}, "end_point": {"row": 132, "column": 80}}, {"id": 606, "type": ">", "text": ">", "parent": 604, "children": [], "start_point": {"row": 132, "column": 80}, "end_point": {"row": 132, "column": 81}}, {"id": 607, "type": "identifier", "text": "rhs", "parent": 604, "children": [], "start_point": {"row": 132, "column": 82}, "end_point": {"row": 132, "column": 85}}, {"id": 608, "type": "return_statement", "text": "return velocity_t", "parent": null, "children": [609], "start_point": {"row": 134, "column": 2}, "end_point": {"row": 134, "column": 19}}, {"id": 609, "type": "identifier", "text": "velocity_t", "parent": 608, "children": [], "start_point": {"row": 134, "column": 9}, "end_point": {"row": 134, "column": 19}}, {"id": 610, "type": "ERROR", "text": "lhs.dir, lhs.mag, std::chrono::duration_cast<duration_t>(rhs)", "parent": null, "children": [611, 620, 621], "start_point": {"row": 134, "column": 21}, "end_point": {"row": 134, "column": 82}}, {"id": 611, "type": "comma_expression", "text": "lhs.dir, lhs.mag, std", "parent": 610, "children": [612, 615], "start_point": {"row": 134, "column": 21}, "end_point": {"row": 134, "column": 42}}, {"id": 612, "type": "field_expression", "text": "lhs.dir", "parent": 611, "children": [613, 614], "start_point": {"row": 134, "column": 21}, "end_point": {"row": 134, "column": 28}}, {"id": 613, "type": "identifier", "text": "lhs", "parent": 612, "children": [], "start_point": {"row": 134, "column": 21}, "end_point": {"row": 134, "column": 24}}, {"id": 614, "type": "field_identifier", "text": "dir", "parent": 612, "children": [], "start_point": {"row": 134, "column": 25}, "end_point": {"row": 134, "column": 28}}, {"id": 615, "type": "comma_expression", "text": "lhs.mag, std", "parent": 611, "children": [616, 619], "start_point": {"row": 134, "column": 30}, "end_point": {"row": 134, "column": 42}}, {"id": 616, "type": "field_expression", "text": "lhs.mag", "parent": 615, "children": [617, 618], "start_point": {"row": 134, "column": 30}, "end_point": {"row": 134, "column": 37}}, {"id": 617, "type": "identifier", "text": "lhs", "parent": 616, "children": [], "start_point": {"row": 134, "column": 30}, "end_point": {"row": 134, "column": 33}}, {"id": 618, "type": "field_identifier", "text": "mag", "parent": 616, "children": [], "start_point": {"row": 134, "column": 34}, "end_point": {"row": 134, "column": 37}}, {"id": 619, "type": "identifier", "text": "std", "parent": 615, "children": [], "start_point": {"row": 134, "column": 39}, "end_point": {"row": 134, "column": 42}}, {"id": 620, "type": "identifier", "text": "chrono", "parent": 610, "children": [], "start_point": {"row": 134, "column": 44}, "end_point": {"row": 134, "column": 50}}, {"id": 621, "type": "binary_expression", "text": "duration_cast<duration_t>(rhs)", "parent": 610, "children": [622, 626, 627], "start_point": {"row": 134, "column": 52}, "end_point": {"row": 134, "column": 82}}, {"id": 622, "type": "binary_expression", "text": "duration_cast<duration_t", "parent": 621, "children": [623, 624, 625], "start_point": {"row": 134, "column": 52}, "end_point": {"row": 134, "column": 76}}, {"id": 623, "type": "identifier", "text": "duration_cast", "parent": 622, "children": [], "start_point": {"row": 134, "column": 52}, "end_point": {"row": 134, "column": 65}}, {"id": 624, "type": "<", "text": "<", "parent": 622, "children": [], "start_point": {"row": 134, "column": 65}, "end_point": {"row": 134, "column": 66}}, {"id": 625, "type": "identifier", "text": "duration_t", "parent": 622, "children": [], "start_point": {"row": 134, "column": 66}, "end_point": {"row": 134, "column": 76}}, {"id": 626, "type": ">", "text": ">", "parent": 621, "children": [], "start_point": {"row": 134, "column": 76}, "end_point": {"row": 134, "column": 77}}, {"id": 627, "type": "parenthesized_expression", "text": "(rhs)", "parent": 621, "children": [628], "start_point": {"row": 134, "column": 77}, "end_point": {"row": 134, "column": 82}}, {"id": 628, "type": "identifier", "text": "rhs", "parent": 627, "children": [], "start_point": {"row": 134, "column": 78}, "end_point": {"row": 134, "column": 81}}, {"id": 629, "type": "function_definition", "text": "class PhysicsObject\n\t{\n\n\n\t}", "parent": null, "children": [630], "start_point": {"row": 147, "column": 1}, "end_point": {"row": 151, "column": 2}}, {"id": 630, "type": "identifier", "text": "PhysicsObject", "parent": 629, "children": [], "start_point": {"row": 147, "column": 7}, "end_point": {"row": 147, "column": 20}}]}, "node_categories": {"declarations": {"functions": [18, 55, 111, 146, 158, 180, 202, 208, 227, 255, 264, 267, 270, 281, 287, 629], "variables": [41, 49, 58, 64, 72, 87, 101, 115, 124, 136, 148, 211, 233, 276, 290, 307, 377, 445, 477, 509, 541], "classes": [23, 24, 26, 27, 29, 30, 32, 33, 35, 36, 38, 39, 133, 134, 139, 161, 183, 258, 259, 271, 272, 282, 283, 310, 378], "imports": [3, 4, 6, 7, 9, 10, 12, 13, 15, 16], "modules": [], "enums": []}, "statements": {"expressions": [80, 95, 169, 170, 171, 175, 176, 191, 192, 193, 197, 198, 293, 295, 299, 300, 302, 315, 317, 321, 322, 324, 330, 331, 332, 336, 337, 341, 342, 343, 347, 348, 352, 353, 357, 358, 362, 367, 368, 369, 372, 383, 385, 389, 390, 392, 398, 399, 400, 404, 405, 409, 410, 411, 415, 416, 420, 421, 425, 426, 430, 435, 436, 437, 440, 448, 450, 454, 455, 457, 462, 467, 468, 469, 472, 480, 482, 486, 487, 489, 494, 499, 500, 501, 504, 512, 514, 518, 519, 521, 526, 531, 532, 533, 536, 544, 546, 550, 551, 553, 558, 563, 564, 565, 568, 573, 574, 580, 585, 590, 594, 595, 599, 600, 604, 611, 612, 615, 616, 621, 622, 627], "assignments": [364, 432, 464, 496, 528, 560], "loops": [], "conditionals": [19, 21, 22, 25, 28, 31, 34, 37, 40, 42, 44, 47, 48, 50, 52, 54, 56, 59, 61, 63, 65, 67, 70, 71, 73, 75, 78, 79, 81, 83, 84, 88, 90, 93, 94, 96, 98, 102, 106, 110, 112, 114, 116, 118, 120, 122, 123, 125, 127, 129, 131, 132, 135, 137, 141, 142, 144, 149, 151, 154, 156, 157, 159, 163, 164, 166, 167, 172, 173, 177, 178, 179, 181, 185, 186, 188, 189, 194, 195, 199, 200, 201, 203, 205, 207, 209, 212, 213, 216, 218, 222, 223, 228, 230, 232, 234, 236, 237, 239, 241, 242, 243, 245, 246, 247, 249, 250, 253, 254, 256, 257, 260, 262, 263, 265, 266, 268, 269, 273, 275, 277, 278, 280, 284, 286, 288, 289, 291, 292, 298, 301, 303, 304, 306, 308, 312, 313, 320, 323, 325, 326, 327, 329, 333, 334, 338, 339, 344, 345, 349, 350, 354, 355, 359, 360, 363, 365, 370, 371, 373, 374, 376, 380, 381, 388, 391, 393, 394, 395, 397, 401, 402, 406, 407, 412, 413, 417, 418, 422, 423, 427, 428, 431, 433, 438, 439, 441, 442, 444, 446, 447, 453, 456, 458, 459, 461, 463, 465, 470, 471, 473, 474, 476, 478, 479, 485, 488, 490, 491, 493, 495, 497, 502, 503, 505, 506, 508, 510, 511, 517, 520, 522, 523, 525, 527, 529, 534, 535, 537, 538, 540, 542, 543, 549, 552, 554, 555, 557, 559, 561, 566, 567, 569, 570, 572, 575, 577, 579, 581, 583, 586, 588, 593, 596, 597, 598, 601, 603, 605, 607, 609, 613, 614, 617, 618, 619, 620, 623, 625, 628, 630], "returns": [168, 190, 328, 396, 608], "exceptions": []}, "expressions": {"calls": [0], "literals": [5, 8, 11, 14, 17], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [{"node_id": 18, "universal_type": "function", "name": "position_t;", "text_snippet": "namespace sae::engine\n{\n\n\tstruct position_t;\n\tstruct distance_t;\n\tstruct velocity_t;\n\tstruct acceler"}, {"node_id": 55, "universal_type": "function", "name": "physics_clock", "text_snippet": "class physics_clock\n\t{\n\tpublic:\n\t\tusing rep = int64_t;\n\t\tusing period = std::nano;\n\t\tusing duration "}, {"node_id": 111, "universal_type": "function", "name": "unknown", "text_snippet": "now()"}, {"node_id": 146, "universal_type": "function", "name": "unknown", "text_snippet": "(this->mag * this->dir.x)"}, {"node_id": 158, "universal_type": "function", "name": "unknown", "text_snippet": "constexpr auto y() const noexcept { return (this->mag * this->dir.y); }"}, {"node_id": 180, "universal_type": "function", "name": "unknown", "text_snippet": "constexpr auto z() const noexcept { return (this->mag * this->dir.z); }"}, {"node_id": 202, "universal_type": "function", "name": "unknown", "text_snippet": "constexpr glm::vec3 as_vec() const noexcept { return (this->dir * this->mag); };\n\n\t\tconstexpr basic_"}, {"node_id": 208, "universal_type": "function", "name": "unknown", "text_snippet": "as_vec()"}, {"node_id": 227, "universal_type": "function", "name": "unknown", "text_snippet": "basic_unit() noexcept"}, {"node_id": 255, "universal_type": "function", "name": "unknown", "text_snippet": "magnitude_t mag{}"}, {"node_id": 264, "universal_type": "function", "name": "unknown", "text_snippet": "magnitude_t y{}"}, {"node_id": 267, "universal_type": "function", "name": "unknown", "text_snippet": "magnitude_t z{}"}, {"node_id": 270, "universal_type": "function", "name": "distance_t", "text_snippet": "struct distance_t : public basic_unit \n\t{\n\t\tusing basic_unit::basic_unit;\n\t}"}, {"node_id": 281, "universal_type": "function", "name": "velocity_t", "text_snippet": "struct velocity_t : public basic_unit \n\t{\n\t\tduration_t dt{};\n\t}"}, {"node_id": 287, "universal_type": "function", "name": "unknown", "text_snippet": "duration_t dt{}"}, {"node_id": 629, "universal_type": "function", "name": "PhysicsObject", "text_snippet": "class PhysicsObject\n\t{\n\n\n\t}"}], "class_declarations": [{"node_id": 23, "universal_type": "class", "name": "position_t", "text_snippet": "struct position_t"}, {"node_id": 24, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 26, "universal_type": "class", "name": "distance_t", "text_snippet": "struct distance_t"}, {"node_id": 27, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 29, "universal_type": "class", "name": "velocity_t", "text_snippet": "struct velocity_t"}, {"node_id": 30, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 32, "universal_type": "class", "name": "acceleration_t", "text_snippet": "struct acceleration_t"}, {"node_id": 33, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 35, "universal_type": "class", "name": "force_t", "text_snippet": "struct force_t"}, {"node_id": 36, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 38, "universal_type": "class", "name": "mass_t", "text_snippet": "struct mass_t"}, {"node_id": 39, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 133, "universal_type": "class", "name": "basic_unit", "text_snippet": "struct basic_unit\n\t{\n\t\tconstexpr auto x() const noexcept { return (this->mag * this->dir.x); }"}, {"node_id": 134, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 139, "universal_type": "class", "name": "unknown", "text_snippet": "auto"}, {"node_id": 161, "universal_type": "class", "name": "unknown", "text_snippet": "auto"}, {"node_id": 183, "universal_type": "class", "name": "unknown", "text_snippet": "auto"}, {"node_id": 258, "universal_type": "class", "name": "position_t", "text_snippet": "struct position_t\n\t{\n\t\tmagnitude_t x{}"}, {"node_id": 259, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 271, "universal_type": "class", "name": "distance_t", "text_snippet": "struct distance_t"}, {"node_id": 272, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 282, "universal_type": "class", "name": "velocity_t", "text_snippet": "struct velocity_t"}, {"node_id": 283, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 310, "universal_type": "class", "name": "unknown", "text_snippet": "inline"}, {"node_id": 378, "universal_type": "class", "name": "unknown", "text_snippet": "inline"}], "import_statements": [{"node_id": 3, "text": "#include \"SAEEngine.h\"\n"}, {"node_id": 4, "text": "#include"}, {"node_id": 6, "text": "#include <cstdint>\n"}, {"node_id": 7, "text": "#include"}, {"node_id": 9, "text": "#include <glm/vec3.hpp>\n"}, {"node_id": 10, "text": "#include"}, {"node_id": 12, "text": "#include <glm/geometric.hpp>\n"}, {"node_id": 13, "text": "#include"}, {"node_id": 15, "text": "#include <chrono>\n"}, {"node_id": 16, "text": "#include"}]}, "original_source_code": "#pragma once\n\n#include \"SAEEngine.h\"\n\n#include <cstdint>\n\n#include <glm/vec3.hpp>\n#include <glm/geometric.hpp>\n\n#include <chrono>\n\nnamespace sae::engine\n{\n\n\tstruct position_t;\n\tstruct distance_t;\n\tstruct velocity_t;\n\tstruct acceleration_t;\n\tstruct force_t;\n\tstruct mass_t;\n\n\n\n\n\tusing direction_t = glm::vec3;\n\tusing magnitude_t = float_t;\n\n\n\n\n\n\n\n\tclass physics_clock\n\t{\n\tpublic:\n\t\tusing rep = int64_t;\n\t\tusing period = std::nano;\n\t\tusing duration = std::chrono::duration<rep, period>;\n\t\tusing time_point = std::chrono::time_point<physics_clock>;\n\t\tstatic constexpr bool is_steady = false;\n\t\tstatic time_point now() noexcept;\n\t};\n\n\tusing duration_t = typename physics_clock::duration;\n\tusing time_point_t = typename physics_clock::time_point;\n\n\n\n\tstruct basic_unit\n\t{\n\t\tconstexpr auto x() const noexcept { return (this->mag * this->dir.x); };\n\t\tconstexpr auto y() const noexcept { return (this->mag * this->dir.y); };\n\t\tconstexpr auto z() const noexcept { return (this->mag * this->dir.z); };\n\n\t\tconstexpr glm::vec3 as_vec() const noexcept { return (this->dir * this->mag); };\n\n\t\tconstexpr basic_unit() noexcept = default;\n\t\tconstexpr basic_unit(const direction_t& _d, magnitude_t _mag) noexcept : \n\t\t\tdir{ _d }, mag{ _mag }\n\t\t{};\n\n\t\tdirection_t dir{};\n\t\tmagnitude_t mag{};\n\t};\n\n\n\n\tstruct position_t\n\t{\n\t\tmagnitude_t x{};\n\t\tmagnitude_t y{};\n\t\tmagnitude_t z{};\n\t};\n\t\n\tstruct distance_t : public basic_unit \n\t{\n\t\tusing basic_unit::basic_unit;\n\t};\n\n\tstruct velocity_t : public basic_unit \n\t{\n\t\tduration_t dt{};\n\t};\n\n\n\tdistance_t operator-(const position_t& lhs, const position_t& rhs) noexcept;\n\n\tconstexpr static inline position_t operator+(const position_t& lhs, const distance_t& rhs) noexcept\n\t{\n\t\treturn position_t\n\t\t{\n\t\t\tlhs.x + rhs.x(),\n\t\t\tlhs.y + rhs.y(),\n\t\t\tlhs.z + rhs.z()\n\t\t};\n\t};\n\tposition_t& operator+=(position_t& lhs, const distance_t& rhs) noexcept;\n\n\tstatic inline position_t operator-(const position_t& lhs, const distance_t& rhs) noexcept\n\t{\n\t\treturn position_t\n\t\t{\n\t\t\tlhs.x - rhs.x(),\n\t\t\tlhs.y - rhs.y(),\n\t\t\tlhs.z - rhs.z()\n\t\t};\n\t}; \n\tposition_t& operator-=(position_t& lhs, const distance_t& rhs) noexcept;\n\n\n\n\tdistance_t operator+(const distance_t& rhs, const distance_t& lhs) noexcept;\n\tdistance_t& operator+=(distance_t& rhs, const distance_t& lhs) noexcept;\n\n\tdistance_t operator-(const distance_t& rhs, const distance_t& lhs) noexcept;\n\tdistance_t& operator-=(distance_t& rhs, const distance_t& lhs) noexcept;\n\n\n\n\tvelocity_t operator+(const velocity_t& rhs, const velocity_t& lhs) noexcept;\n\tvelocity_t& operator+=(velocity_t& rhs, const velocity_t& lhs) noexcept;\n\n\tvelocity_t operator-(const velocity_t& rhs, const velocity_t& lhs) noexcept;\n\tvelocity_t& operator-=(velocity_t& rhs, const velocity_t& lhs) noexcept;\n\n\n\n\n\n\n\ttemplate <typename _Rep, typename _Period>\n\tvelocity_t operator/(const distance_t& lhs, std::chrono::duration<_Rep, _Period> rhs)\n\t{\n\t\treturn velocity_t{ lhs.dir, lhs.mag, std::chrono::duration_cast<duration_t>(rhs) };\n\t};\n\n\t\n\n\n\n\n\n\n\n\n\n\tclass PhysicsObject\n\t{\n\n\n\t};\n\n\n\n\n\n}"}
80,041
c
#include "BSP\bsp.h" #include "common.h" #include "stm32f103xb.h" int main(void){ while(1){ } }
10.44
9
(translation_unit) "#include "BSP\bsp.h"\n\n#include "common.h"\n#include "stm32f103xb.h"\n\n\nint main(void){\n while(1){\n\n\n }\n}\n\n" (preproc_include) "#include "BSP\bsp.h"\n" (#include) "#include" (string_literal) ""BSP\bsp.h"" (") """ (string_content) "BSP" (escape_sequence) "\b" (string_content) "sp.h" (") """ (preproc_include) "#include "common.h"\n" (#include) "#include" (string_literal) ""common.h"" (") """ (string_content) "common.h" (") """ (preproc_include) "#include "stm32f103xb.h"\n" (#include) "#include" (string_literal) ""stm32f103xb.h"" (") """ (string_content) "stm32f103xb.h" (") """ (function_definition) "int main(void){\n while(1){\n\n\n }\n}" (primitive_type) "int" (function_declarator) "main(void)" (identifier) "main" (parameter_list) "(void)" (() "(" (parameter_declaration) "void" (primitive_type) "void" ()) ")" (compound_statement) "{\n while(1){\n\n\n }\n}" ({) "{" (while_statement) "while(1){\n\n\n }" (while) "while" (parenthesized_expression) "(1)" (() "(" (number_literal) "1" ()) ")" (compound_statement) "{\n\n\n }" ({) "{" (}) "}" (}) "}"
42
0
{"language": "c", "success": true, "metadata": {"lines": 9, "avg_line_length": 10.44, "nodes": 20, "errors": 0, "source_hash": "5a56380cbf6698eae0e442db6669fca5360182f58c952a63eec974a216425fb6", "categorized_nodes": 16}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#include \"BSP\\bsp.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": "\"BSP\\bsp.h\"", "parent": 0, "children": [3], "start_point": {"row": 0, "column": 9}, "end_point": {"row": 0, "column": 20}}, {"id": 3, "type": "escape_sequence", "text": "\\b", "parent": 2, "children": [], "start_point": {"row": 0, "column": 13}, "end_point": {"row": 0, "column": 15}}, {"id": 4, "type": "preproc_include", "text": "#include \"common.h\"\n", "parent": null, "children": [5, 6], "start_point": {"row": 2, "column": 0}, "end_point": {"row": 3, "column": 0}}, {"id": 5, "type": "#include", "text": "#include", "parent": 4, "children": [], "start_point": {"row": 2, "column": 0}, "end_point": {"row": 2, "column": 8}}, {"id": 6, "type": "string_literal", "text": "\"common.h\"", "parent": 4, "children": [], "start_point": {"row": 2, "column": 9}, "end_point": {"row": 2, "column": 19}}, {"id": 7, "type": "preproc_include", "text": "#include \"stm32f103xb.h\"\n", "parent": null, "children": [8, 9], "start_point": {"row": 3, "column": 0}, "end_point": {"row": 4, "column": 0}}, {"id": 8, "type": "#include", "text": "#include", "parent": 7, "children": [], "start_point": {"row": 3, "column": 0}, "end_point": {"row": 3, "column": 8}}, {"id": 9, "type": "string_literal", "text": "\"stm32f103xb.h\"", "parent": 7, "children": [], "start_point": {"row": 3, "column": 9}, "end_point": {"row": 3, "column": 24}}, {"id": 10, "type": "function_definition", "text": "int main(void){\n\twhile(1){\n\n\n }\n}", "parent": null, "children": [11, 12], "start_point": {"row": 6, "column": 0}, "end_point": {"row": 11, "column": 1}}, {"id": 11, "type": "primitive_type", "text": "int", "parent": 10, "children": [], "start_point": {"row": 6, "column": 0}, "end_point": {"row": 6, "column": 3}}, {"id": 12, "type": "function_declarator", "text": "main(void)", "parent": 10, "children": [13, 14], "start_point": {"row": 6, "column": 4}, "end_point": {"row": 6, "column": 14}}, {"id": 13, "type": "identifier", "text": "main", "parent": 12, "children": [], "start_point": {"row": 6, "column": 4}, "end_point": {"row": 6, "column": 8}}, {"id": 14, "type": "parameter_list", "text": "(void)", "parent": 12, "children": [15], "start_point": {"row": 6, "column": 8}, "end_point": {"row": 6, "column": 14}}, {"id": 15, "type": "parameter_declaration", "text": "void", "parent": 14, "children": [16], "start_point": {"row": 6, "column": 9}, "end_point": {"row": 6, "column": 13}}, {"id": 16, "type": "primitive_type", "text": "void", "parent": 15, "children": [], "start_point": {"row": 6, "column": 9}, "end_point": {"row": 6, "column": 13}}, {"id": 17, "type": "while_statement", "text": "while(1){\n\n\n }", "parent": 10, "children": [18], "start_point": {"row": 7, "column": 1}, "end_point": {"row": 10, "column": 5}}, {"id": 18, "type": "parenthesized_expression", "text": "(1)", "parent": 17, "children": [19], "start_point": {"row": 7, "column": 6}, "end_point": {"row": 7, "column": 9}}, {"id": 19, "type": "number_literal", "text": "1", "parent": 18, "children": [], "start_point": {"row": 7, "column": 7}, "end_point": {"row": 7, "column": 8}}]}, "node_categories": {"declarations": {"functions": [10, 12], "variables": [15], "classes": [], "imports": [0, 1, 4, 5, 7, 8], "modules": [], "enums": []}, "statements": {"expressions": [18], "assignments": [], "loops": [17], "conditionals": [13], "returns": [], "exceptions": []}, "expressions": {"calls": [], "literals": [2, 6, 9, 19], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [{"node_id": 10, "universal_type": "function", "name": "main", "text_snippet": "int main(void){\n\twhile(1){\n\n\n }\n}"}, {"node_id": 12, "universal_type": "function", "name": "unknown", "text_snippet": "main(void)"}], "class_declarations": [], "import_statements": [{"node_id": 0, "text": "#include \"BSP\\bsp.h\"\n"}, {"node_id": 1, "text": "#include"}, {"node_id": 4, "text": "#include \"common.h\"\n"}, {"node_id": 5, "text": "#include"}, {"node_id": 7, "text": "#include \"stm32f103xb.h\"\n"}, {"node_id": 8, "text": "#include"}]}, "original_source_code": "#include \"BSP\\bsp.h\"\n\n#include \"common.h\"\n#include \"stm32f103xb.h\"\n\n\nint main(void){\n\twhile(1){\n\n\n }\n}\n\n"}
80,042
c
// // CollectRoomListRequestModel.h // xbed // // Created by Leo.Chen on 16/9/29. // Copyright © 2016年 Leo.Chen. All rights reserved. // #import "XbedRequestModel.h" @interface CollectRoomListRequestModel : XbedRequestModel @property (nonatomic, strong)NSNumber *page; @property (nonatomic, strong)NSNumber *size; @end
25.92
12
(translation_unit) "//\n// CollectRoomListRequestModel.h\n// xbed\n//\n// Created by Leo.Chen on 16/9/29.\n// Copyright © 2016年 Leo.Chen. All rights reserved.\n//\n\n#import "XbedRequestModel.h"\n\n@interface CollectRoomListRequestModel : XbedRequestModel\n\n@property (nonatomic, strong)NSNumber *page;\n@property (nonatomic, strong)NSNumber *size;\n\n@end\n" (comment) "//" (comment) "// CollectRoomListRequestModel.h" (comment) "// xbed" (comment) "//" (comment) "// Created by Leo.Chen on 16/9/29." (comment) "// Copyright © 2016年 Leo.Chen. All rights reserved.\n//" (comment) "\n#" (preproc_call) "port "XbedRequestModel.h"\n\n@i" (preproc_directive) "port "X" (preproc_arg) "edRequestModel.h"\n\n@" (ERROR) "terface CollectRoomListRequestModel : XbedRequestModel\n\n@property (nonatomic, strong)NSNumber *page;\n@property (nonatomic, strong)NSNumber *size;\n\n@end\n" (ERROR) "t" (type_identifier) "erface Co" (function_declarator) "lectRoomListRequestModel : XbedRequestModel\n\n@property (nonatomic, strong)NSN" (identifier) "lectRoomListRequestModel : " (ERROR) "bedRequestModel\n\n@property (n" (:) "b" (identifier) "dRequestModel\n\n@" (ERROR) "o" (identifier) "perty (n" (parameter_list) "natomic, strong)NSN" (() "n" (identifier) "atomic, s" (,) "t" (identifier) "ong)NS" ()) "N" (declaration) "umber *page;\n@p" (type_identifier) "umber *p" (pointer_declarator) "ge;\n@" (*) "g" (identifier) "e;\n@" (;) "p" (ERROR) "o" (ERROR) "o" (declaration) "perty (nonatomic, strong)NSNumber *size;\n\n@" (macro_type_specifier) "perty (nonatomic, strong)NSN" (identifier) "perty (n" (() "n" (type_descriptor) "atomic, s" (type_identifier) "atomic, s" (ERROR) "trong)NS" (,) "t" (identifier) "ong)NS" ()) "N" (ERROR) "umber *s" (identifier) "umber *s" (pointer_declarator) "ze;\n\n" (*) "z" (identifier) "e;\n\n" (;) "@" (ERROR) "d" (ERROR) "d" (identifier) "\n"
54
10
{"language": "c", "success": true, "metadata": {"lines": 12, "avg_line_length": 25.92, "nodes": 37, "errors": 0, "source_hash": "2e783cd97f7f9788457a1a87052c12142f7f77a7850323dbfaa6000139b1d3c0", "categorized_nodes": 19}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "port \"XbedRequestModel.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 \"X", "parent": 0, "children": [], "start_point": {"row": 8, "column": 0}, "end_point": {"row": 8, "column": 7}}, {"id": 2, "type": "preproc_arg", "text": "edRequestModel.h\"\n\n@", "parent": 0, "children": [], "start_point": {"row": 8, "column": 8}, "end_point": {"row": 8, "column": 28}}, {"id": 3, "type": "ERROR", "text": "terface CollectRoomListRequestModel : XbedRequestModel\n\n@property (nonatomic, strong)NSNumber *page;\n@property (nonatomic, strong)NSNumber *size;\n\n@end\n", "parent": null, "children": [4, 5, 6, 15, 20, 22, 34, 36], "start_point": {"row": 10, "column": 0}, "end_point": {"row": 15, "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 Co", "parent": 3, "children": [], "start_point": {"row": 10, "column": 1}, "end_point": {"row": 10, "column": 10}}, {"id": 6, "type": "function_declarator", "text": "lectRoomListRequestModel : XbedRequestModel\n\n@property (nonatomic, strong)NSN", "parent": 3, "children": [7, 8, 12], "start_point": {"row": 10, "column": 11}, "end_point": {"row": 12, "column": 29}}, {"id": 7, "type": "identifier", "text": "lectRoomListRequestModel : ", "parent": 6, "children": [], "start_point": {"row": 10, "column": 11}, "end_point": {"row": 10, "column": 38}}, {"id": 8, "type": "ERROR", "text": "bedRequestModel\n\n@property (n", "parent": 6, "children": [9, 10, 11], "start_point": {"row": 10, "column": 39}, "end_point": {"row": 12, "column": 9}}, {"id": 9, "type": "identifier", "text": "dRequestModel\n\n@", "parent": 8, "children": [], "start_point": {"row": 10, "column": 41}, "end_point": {"row": 10, "column": 57}}, {"id": 10, "type": "ERROR", "text": "o", "parent": 8, "children": [], "start_point": {"row": 12, "column": 0}, "end_point": {"row": 12, "column": 1}}, {"id": 11, "type": "identifier", "text": "perty (n", "parent": 8, "children": [], "start_point": {"row": 12, "column": 1}, "end_point": {"row": 12, "column": 9}}, {"id": 12, "type": "parameter_list", "text": "natomic, strong)NSN", "parent": 6, "children": [13, 14], "start_point": {"row": 12, "column": 10}, "end_point": {"row": 12, "column": 29}}, {"id": 13, "type": "identifier", "text": "atomic, s", "parent": 12, "children": [], "start_point": {"row": 12, "column": 11}, "end_point": {"row": 12, "column": 20}}, {"id": 14, "type": "identifier", "text": "ong)NS", "parent": 12, "children": [], "start_point": {"row": 12, "column": 22}, "end_point": {"row": 12, "column": 28}}, {"id": 15, "type": "declaration", "text": "umber *page;\n@p", "parent": 3, "children": [16, 17], "start_point": {"row": 12, "column": 29}, "end_point": {"row": 12, "column": 44}}, {"id": 16, "type": "type_identifier", "text": "umber *p", "parent": 15, "children": [], "start_point": {"row": 12, "column": 29}, "end_point": {"row": 12, "column": 37}}, {"id": 17, "type": "pointer_declarator", "text": "ge;\n@", "parent": 15, "children": [18, 19], "start_point": {"row": 12, "column": 38}, "end_point": {"row": 12, "column": 43}}, {"id": 18, "type": "*", "text": "g", "parent": 17, "children": [], "start_point": {"row": 12, "column": 38}, "end_point": {"row": 12, "column": 39}}, {"id": 19, "type": "identifier", "text": "e;\n@", "parent": 17, "children": [], "start_point": {"row": 12, "column": 39}, "end_point": {"row": 12, "column": 43}}, {"id": 20, "type": "ERROR", "text": "o", "parent": 3, "children": [21], "start_point": {"row": 13, "column": 0}, "end_point": {"row": 13, "column": 1}}, {"id": 21, "type": "ERROR", "text": "o", "parent": 20, "children": [], "start_point": {"row": 13, "column": 0}, "end_point": {"row": 13, "column": 1}}, {"id": 22, "type": "declaration", "text": "perty (nonatomic, strong)NSNumber *size;\n\n@", "parent": 3, "children": [23, 29, 31], "start_point": {"row": 13, "column": 1}, "end_point": {"row": 13, "column": 44}}, {"id": 23, "type": "macro_type_specifier", "text": "perty (nonatomic, strong)NSN", "parent": 22, "children": [24, 25, 27], "start_point": {"row": 13, "column": 1}, "end_point": {"row": 13, "column": 29}}, {"id": 24, "type": "identifier", "text": "perty (n", "parent": 23, "children": [], "start_point": {"row": 13, "column": 1}, "end_point": {"row": 13, "column": 9}}, {"id": 25, "type": "type_descriptor", "text": "atomic, s", "parent": 23, "children": [26], "start_point": {"row": 13, "column": 11}, "end_point": {"row": 13, "column": 20}}, {"id": 26, "type": "type_identifier", "text": "atomic, s", "parent": 25, "children": [], "start_point": {"row": 13, "column": 11}, "end_point": {"row": 13, "column": 20}}, {"id": 27, "type": "ERROR", "text": "trong)NS", "parent": 23, "children": [28], "start_point": {"row": 13, "column": 20}, "end_point": {"row": 13, "column": 28}}, {"id": 28, "type": "identifier", "text": "ong)NS", "parent": 27, "children": [], "start_point": {"row": 13, "column": 22}, "end_point": {"row": 13, "column": 28}}, {"id": 29, "type": "ERROR", "text": "umber *s", "parent": 22, "children": [30], "start_point": {"row": 13, "column": 29}, "end_point": {"row": 13, "column": 37}}, {"id": 30, "type": "identifier", "text": "umber *s", "parent": 29, "children": [], "start_point": {"row": 13, "column": 29}, "end_point": {"row": 13, "column": 37}}, {"id": 31, "type": "pointer_declarator", "text": "ze;\n\n", "parent": 22, "children": [32, 33], "start_point": {"row": 13, "column": 38}, "end_point": {"row": 13, "column": 43}}, {"id": 32, "type": "*", "text": "z", "parent": 31, "children": [], "start_point": {"row": 13, "column": 38}, "end_point": {"row": 13, "column": 39}}, {"id": 33, "type": "identifier", "text": "e;\n\n", "parent": 31, "children": [], "start_point": {"row": 13, "column": 39}, "end_point": {"row": 13, "column": 43}}, {"id": 34, "type": "ERROR", "text": "d", "parent": 3, "children": [35], "start_point": {"row": 15, "column": 0}, "end_point": {"row": 15, "column": 1}}, {"id": 35, "type": "ERROR", "text": "d", "parent": 34, "children": [], "start_point": {"row": 15, "column": 0}, "end_point": {"row": 15, "column": 1}}, {"id": 36, "type": "identifier", "text": "\n", "parent": 3, "children": [], "start_point": {"row": 15, "column": 1}, "end_point": {"row": 15, "column": 4}}]}, "node_categories": {"declarations": {"functions": [6], "variables": [15, 22], "classes": [], "imports": [], "modules": [], "enums": []}, "statements": {"expressions": [], "assignments": [], "loops": [], "conditionals": [5, 7, 9, 11, 13, 14, 16, 19, 23, 24, 26, 28, 30, 33, 36], "returns": [], "exceptions": []}, "expressions": {"calls": [0], "literals": [], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [{"node_id": 6, "universal_type": "function", "name": "unknown", "text_snippet": "lectRoomListRequestModel : XbedRequestModel\n\n@property (nonatomic, strong)NSN"}], "class_declarations": [], "import_statements": []}, "original_source_code": "//\n// CollectRoomListRequestModel.h\n// xbed\n//\n// Created by Leo.Chen on 16/9/29.\n// Copyright \u00a9 2016\u5e74 Leo.Chen. All rights reserved.\n//\n\n#import \"XbedRequestModel.h\"\n\n@interface CollectRoomListRequestModel : XbedRequestModel\n\n@property (nonatomic, strong)NSNumber *page;\n@property (nonatomic, strong)NSNumber *size;\n\n@end\n"}
80,043
c
// SPDX-License-Identifier: GPL-2.0+ /* * Driver for Motorcomm PHYs * * Author: <NAME> <<EMAIL>> */ #include <linux/kernel.h> #include <linux/module.h> #include <linux/phy.h> #define PHY_ID_YT8511 0x0000010a #define YT8511_PAGE_SELECT 0x1e #define YT8511_PAGE 0x1f #define YT8511_EXT_CLK_GATE 0x0c #define YT8511_EXT_DELAY_DRIVE 0x0d #define YT8511_EXT_SLEEP_CTRL 0x27 /* 2b00 25m from pll * 2b01 25m from xtl *default* * 2b10 62.m from pll * 2b11 125m from pll */ #define YT8511_CLK_125M (BIT(2) | BIT(1)) #define YT8511_PLLON_SLP BIT(14) /* RX Delay enabled = 1.8ns 1000T, 8ns 10/100T */ #define YT8511_DELAY_RX BIT(0) /* TX Gig-E Delay is bits 7:4, default 0x5 * TX Fast-E Delay is bits 15:12, default 0xf * Delay = 150ps * N - 250ps * On = 2000ps, off = 50ps */ #define YT8511_DELAY_GE_TX_EN (0xf << 4) #define YT8511_DELAY_GE_TX_DIS (0x2 << 4) #define YT8511_DELAY_FE_TX_EN (0xf << 12) #define YT8511_DELAY_FE_TX_DIS (0x2 << 12) static int yt8511_read_page(struct phy_device *phydev) { return __phy_read(phydev, YT8511_PAGE_SELECT); }; static int yt8511_write_page(struct phy_device *phydev, int page) { return __phy_write(phydev, YT8511_PAGE_SELECT, page); }; static int yt8511_config_init(struct phy_device *phydev) { int oldpage, ret = 0; unsigned int ge, fe; oldpage = phy_select_page(phydev, YT8511_EXT_CLK_GATE); if (oldpage < 0) goto err_restore_page; /* set rgmii delay mode */ switch (phydev->interface) { case PHY_INTERFACE_MODE_RGMII: ge = YT8511_DELAY_GE_TX_DIS; fe = YT8511_DELAY_FE_TX_DIS; break; case PHY_INTERFACE_MODE_RGMII_RXID: ge = YT8511_DELAY_RX | YT8511_DELAY_GE_TX_DIS; fe = YT8511_DELAY_FE_TX_DIS; break; case PHY_INTERFACE_MODE_RGMII_TXID: ge = YT8511_DELAY_GE_TX_EN; fe = YT8511_DELAY_FE_TX_EN; break; case PHY_INTERFACE_MODE_RGMII_ID: ge = YT8511_DELAY_RX | YT8511_DELAY_GE_TX_EN; fe = YT8511_DELAY_FE_TX_EN; break; default: /* do not support other modes */ ret = -EOPNOTSUPP; goto err_restore_page; } ret = __phy_modify(phydev, YT8511_PAGE, (YT8511_DELAY_RX | YT8511_DELAY_GE_TX_EN), ge); if (ret < 0) goto err_restore_page; /* set clock mode to 125mhz */ ret = __phy_modify(phydev, YT8511_PAGE, 0, YT8511_CLK_125M); if (ret < 0) goto err_restore_page; /* fast ethernet delay is in a separate page */ ret = __phy_write(phydev, YT8511_PAGE_SELECT, YT8511_EXT_DELAY_DRIVE); if (ret < 0) goto err_restore_page; ret = __phy_modify(phydev, YT8511_PAGE, YT8511_DELAY_FE_TX_EN, fe); if (ret < 0) goto err_restore_page; /* leave pll enabled in sleep */ ret = __phy_write(phydev, YT8511_PAGE_SELECT, YT8511_EXT_SLEEP_CTRL); if (ret < 0) goto err_restore_page; ret = __phy_modify(phydev, YT8511_PAGE, 0, YT8511_PLLON_SLP); if (ret < 0) goto err_restore_page; err_restore_page: return phy_restore_page(phydev, oldpage, ret); } static struct phy_driver motorcomm_phy_drvs[] = { { PHY_ID_MATCH_EXACT(PHY_ID_YT8511), .name = "YT8511 Gigabit Ethernet", .config_init = yt8511_config_init, .suspend = genphy_suspend, .resume = genphy_resume, .read_page = yt8511_read_page, .write_page = yt8511_write_page, }, }; module_phy_driver(motorcomm_phy_drvs); MODULE_DESCRIPTION("Motorcomm PHY driver"); MODULE_AUTHOR("<NAME>"); MODULE_LICENSE("GPL"); static const struct mdio_device_id __maybe_unused motorcomm_tbl[] = { { PHY_ID_MATCH_EXACT(PHY_ID_YT8511) }, { /* sentinal */ } }; MODULE_DEVICE_TABLE(mdio, motorcomm_tbl);
29.18
114
(translation_unit) "// SPDX-License-Identifier: GPL-2.0+\n/*\n * Driver for Motorcomm PHYs\n *\n * Author: <NAME> <<EMAIL>>\n */\n\n#include <linux/kernel.h>\n#include <linux/module.h>\n#include <linux/phy.h>\n\n#define PHY_ID_YT8511 0x0000010a\n\n#define YT8511_PAGE_SELECT 0x1e\n#define YT8511_PAGE 0x1f\n#define YT8511_EXT_CLK_GATE 0x0c\n#define YT8511_EXT_DELAY_DRIVE 0x0d\n#define YT8511_EXT_SLEEP_CTRL 0x27\n\n/* 2b00 25m from pll\n * 2b01 25m from xtl *default*\n * 2b10 62.m from pll\n * 2b11 125m from pll\n */\n#define YT8511_CLK_125M (BIT(2) | BIT(1))\n#define YT8511_PLLON_SLP BIT(14)\n\n/* RX Delay enabled = 1.8ns 1000T, 8ns 10/100T */\n#define YT8511_DELAY_RX BIT(0)\n\n/* TX Gig-E Delay is bits 7:4, default 0x5\n * TX Fast-E Delay is bits 15:12, default 0xf\n * Delay = 150ps * N - 250ps\n * On = 2000ps, off = 50ps\n */\n#define YT8511_DELAY_GE_TX_EN (0xf << 4)\n#define YT8511_DELAY_GE_TX_DIS (0x2 << 4)\n#define YT8511_DELAY_FE_TX_EN (0xf << 12)\n#define YT8511_DELAY_FE_TX_DIS (0x2 << 12)\n\nstatic int yt8511_read_page(struct phy_device *phydev)\n{\n return __phy_read(phydev, YT8511_PAGE_SELECT);\n};\n\nstatic int yt8511_write_page(struct phy_device *phydev, int page)\n{\n return __phy_write(phydev, YT8511_PAGE_SELECT, page);\n};\n\nstatic int yt8511_config_init(struct phy_device *phydev)\n{\n int oldpage, ret = 0;\n unsigned int ge, fe;\n\n oldpage = phy_select_page(phydev, YT8511_EXT_CLK_GATE);\n if (oldpage < 0)\n goto err_restore_page;\n\n /* set rgmii delay mode */\n switch (phydev->interface) {\n case PHY_INTERFACE_MODE_RGMII:\n ge = YT8511_DELAY_GE_TX_DIS;\n fe = YT8511_DELAY_FE_TX_DIS;\n break;\n case PHY_INTERFACE_MODE_RGMII_RXID:\n ge = YT8511_DELAY_RX | YT8511_DELAY_GE_TX_DIS;\n fe = YT8511_DELAY_FE_TX_DIS;\n break;\n case PHY_INTERFACE_MODE_RGMII_TXID:\n ge = YT8511_DELAY_GE_TX_EN;\n fe = YT8511_DELAY_FE_TX_EN;\n break;\n case PHY_INTERFACE_MODE_RGMII_ID:\n ge = YT8511_DELAY_RX | YT8511_DELAY_GE_TX_EN;\n fe = YT8511_DELAY_FE_TX_EN;\n break;\n default: /* do not support other modes */\n ret = -EOPNOTSUPP;\n goto err_restore_page;\n }\n\n ret = __phy_modify(phydev, YT8511_PAGE, (YT8511_DELAY_RX | YT8511_DELAY_GE_TX_EN), ge);\n if (ret < 0)\n goto err_restore_page;\n\n /* set clock mode to 125mhz */\n ret = __phy_modify(phydev, YT8511_PAGE, 0, YT8511_CLK_125M);\n if (ret < 0)\n goto err_restore_page;\n\n /* fast ethernet delay is in a separate page */\n ret = __phy_write(phydev, YT8511_PAGE_SELECT, YT8511_EXT_DELAY_DRIVE);\n if (ret < 0)\n goto err_restore_page;\n\n ret = __phy_modify(phydev, YT8511_PAGE, YT8511_DELAY_FE_TX_EN, fe);\n if (ret < 0)\n goto err_restore_page;\n\n /* leave pll enabled in sleep */\n ret = __phy_write(phydev, YT8511_PAGE_SELECT, YT8511_EXT_SLEEP_CTRL);\n if (ret < 0)\n goto err_restore_page;\n\n ret = __phy_modify(phydev, YT8511_PAGE, 0, YT8511_PLLON_SLP);\n if (ret < 0)\n goto err_restore_page;\n\nerr_restore_page:\n return phy_restore_page(phydev, oldpage, ret);\n}\n\nstatic struct phy_driver motorcomm_phy_drvs[] = {\n {\n PHY_ID_MATCH_EXACT(PHY_ID_YT8511),\n .name = "YT8511 Gigabit Ethernet",\n .config_init = yt8511_config_init,\n .suspend = genphy_suspend,\n .resume = genphy_resume,\n .read_page = yt8511_read_page,\n .write_page = yt8511_write_page,\n },\n};\n\nmodule_phy_driver(motorcomm_phy_drvs);\n\nMODULE_DESCRIPTION("Motorcomm PHY driver");\nMODULE_AUTHOR("<NAME>");\nMODULE_LICENSE("GPL");\n\nstatic const struct mdio_device_id __maybe_unused motorcomm_tbl[] = {\n { PHY_ID_MATCH_EXACT(PHY_ID_YT8511) },\n { /* sentinal */ }\n};\n\nMODULE_DEVICE_TABLE(mdio, motorcomm_tbl);\n" (comment) "// SPDX-License-Identifier: GPL-2.0+" (comment) "/*\n * Driver for Motorcomm PHYs\n *\n * Author: <NAME> <<EMAIL>>\n */" (preproc_include) "#include <linux/kernel.h>\n" (#include) "#include" (system_lib_string) "<linux/kernel.h>" (preproc_include) "#include <linux/module.h>\n" (#include) "#include" (system_lib_string) "<linux/module.h>" (preproc_include) "#include <linux/phy.h>\n" (#include) "#include" (system_lib_string) "<linux/phy.h>" (preproc_def) "#define PHY_ID_YT8511 0x0000010a\n" (#define) "#define" (identifier) "PHY_ID_YT8511" (preproc_arg) "0x0000010a" (preproc_def) "#define YT8511_PAGE_SELECT 0x1e\n" (#define) "#define" (identifier) "YT8511_PAGE_SELECT" (preproc_arg) "0x1e" (preproc_def) "#define YT8511_PAGE 0x1f\n" (#define) "#define" (identifier) "YT8511_PAGE" (preproc_arg) "0x1f" (preproc_def) "#define YT8511_EXT_CLK_GATE 0x0c\n" (#define) "#define" (identifier) "YT8511_EXT_CLK_GATE" (preproc_arg) "0x0c" (preproc_def) "#define YT8511_EXT_DELAY_DRIVE 0x0d\n" (#define) "#define" (identifier) "YT8511_EXT_DELAY_DRIVE" (preproc_arg) "0x0d" (preproc_def) "#define YT8511_EXT_SLEEP_CTRL 0x27\n" (#define) "#define" (identifier) "YT8511_EXT_SLEEP_CTRL" (preproc_arg) "0x27" (comment) "/* 2b00 25m from pll\n * 2b01 25m from xtl *default*\n * 2b10 62.m from pll\n * 2b11 125m from pll\n */" (preproc_def) "#define YT8511_CLK_125M (BIT(2) | BIT(1))\n" (#define) "#define" (identifier) "YT8511_CLK_125M" (preproc_arg) "(BIT(2) | BIT(1))" (preproc_def) "#define YT8511_PLLON_SLP BIT(14)\n" (#define) "#define" (identifier) "YT8511_PLLON_SLP" (preproc_arg) "BIT(14)" (comment) "/* RX Delay enabled = 1.8ns 1000T, 8ns 10/100T */" (preproc_def) "#define YT8511_DELAY_RX BIT(0)\n" (#define) "#define" (identifier) "YT8511_DELAY_RX" (preproc_arg) "BIT(0)" (comment) "/* TX Gig-E Delay is bits 7:4, default 0x5\n * TX Fast-E Delay is bits 15:12, default 0xf\n * Delay = 150ps * N - 250ps\n * On = 2000ps, off = 50ps\n */" (preproc_def) "#define YT8511_DELAY_GE_TX_EN (0xf << 4)\n" (#define) "#define" (identifier) "YT8511_DELAY_GE_TX_EN" (preproc_arg) "(0xf << 4)" (preproc_def) "#define YT8511_DELAY_GE_TX_DIS (0x2 << 4)\n" (#define) "#define" (identifier) "YT8511_DELAY_GE_TX_DIS" (preproc_arg) "(0x2 << 4)" (preproc_def) "#define YT8511_DELAY_FE_TX_EN (0xf << 12)\n" (#define) "#define" (identifier) "YT8511_DELAY_FE_TX_EN" (preproc_arg) "(0xf << 12)" (preproc_def) "#define YT8511_DELAY_FE_TX_DIS (0x2 << 12)\n" (#define) "#define" (identifier) "YT8511_DELAY_FE_TX_DIS" (preproc_arg) "(0x2 << 12)" (function_definition) "static int yt8511_read_page(struct phy_device *phydev)\n{\n return __phy_read(phydev, YT8511_PAGE_SELECT);\n}" (storage_class_specifier) "static" (static) "static" (primitive_type) "int" (function_declarator) "yt8511_read_page(struct phy_device *phydev)" (identifier) "yt8511_read_page" (parameter_list) "(struct phy_device *phydev)" (() "(" (parameter_declaration) "struct phy_device *phydev" (struct_specifier) "struct phy_device" (struct) "struct" (type_identifier) "phy_device" (pointer_declarator) "*phydev" (*) "*" (identifier) "phydev" ()) ")" (compound_statement) "{\n return __phy_read(phydev, YT8511_PAGE_SELECT);\n}" ({) "{" (return_statement) "return __phy_read(phydev, YT8511_PAGE_SELECT);" (return) "return" (call_expression) "__phy_read(phydev, YT8511_PAGE_SELECT)" (identifier) "__phy_read" (argument_list) "(phydev, YT8511_PAGE_SELECT)" (() "(" (identifier) "phydev" (,) "," (identifier) "YT8511_PAGE_SELECT" ()) ")" (;) ";" (}) "}" (expression_statement) ";" (;) ";" (function_definition) "static int yt8511_write_page(struct phy_device *phydev, int page)\n{\n return __phy_write(phydev, YT8511_PAGE_SELECT, page);\n}" (storage_class_specifier) "static" (static) "static" (primitive_type) "int" (function_declarator) "yt8511_write_page(struct phy_device *phydev, int page)" (identifier) "yt8511_write_page" (parameter_list) "(struct phy_device *phydev, int page)" (() "(" (parameter_declaration) "struct phy_device *phydev" (struct_specifier) "struct phy_device" (struct) "struct" (type_identifier) "phy_device" (pointer_declarator) "*phydev" (*) "*" (identifier) "phydev" (,) "," (parameter_declaration) "int page" (primitive_type) "int" (identifier) "page" ()) ")" (compound_statement) "{\n return __phy_write(phydev, YT8511_PAGE_SELECT, page);\n}" ({) "{" (return_statement) "return __phy_write(phydev, YT8511_PAGE_SELECT, page);" (return) "return" (call_expression) "__phy_write(phydev, YT8511_PAGE_SELECT, page)" (identifier) "__phy_write" (argument_list) "(phydev, YT8511_PAGE_SELECT, page)" (() "(" (identifier) "phydev" (,) "," (identifier) "YT8511_PAGE_SELECT" (,) "," (identifier) "page" ()) ")" (;) ";" (}) "}" (expression_statement) ";" (;) ";" (function_definition) "static int yt8511_config_init(struct phy_device *phydev)\n{\n int oldpage, ret = 0;\n unsigned int ge, fe;\n\n oldpage = phy_select_page(phydev, YT8511_EXT_CLK_GATE);\n if (oldpage < 0)\n goto err_restore_page;\n\n /* set rgmii delay mode */\n switch (phydev->interface) {\n case PHY_INTERFACE_MODE_RGMII:\n ge = YT8511_DELAY_GE_TX_DIS;\n fe = YT8511_DELAY_FE_TX_DIS;\n break;\n case PHY_INTERFACE_MODE_RGMII_RXID:\n ge = YT8511_DELAY_RX | YT8511_DELAY_GE_TX_DIS;\n fe = YT8511_DELAY_FE_TX_DIS;\n break;\n case PHY_INTERFACE_MODE_RGMII_TXID:\n ge = YT8511_DELAY_GE_TX_EN;\n fe = YT8511_DELAY_FE_TX_EN;\n break;\n case PHY_INTERFACE_MODE_RGMII_ID:\n ge = YT8511_DELAY_RX | YT8511_DELAY_GE_TX_EN;\n fe = YT8511_DELAY_FE_TX_EN;\n break;\n default: /* do not support other modes */\n ret = -EOPNOTSUPP;\n goto err_restore_page;\n }\n\n ret = __phy_modify(phydev, YT8511_PAGE, (YT8511_DELAY_RX | YT8511_DELAY_GE_TX_EN), ge);\n if (ret < 0)\n goto err_restore_page;\n\n /* set clock mode to 125mhz */\n ret = __phy_modify(phydev, YT8511_PAGE, 0, YT8511_CLK_125M);\n if (ret < 0)\n goto err_restore_page;\n\n /* fast ethernet delay is in a separate page */\n ret = __phy_write(phydev, YT8511_PAGE_SELECT, YT8511_EXT_DELAY_DRIVE);\n if (ret < 0)\n goto err_restore_page;\n\n ret = __phy_modify(phydev, YT8511_PAGE, YT8511_DELAY_FE_TX_EN, fe);\n if (ret < 0)\n goto err_restore_page;\n\n /* leave pll enabled in sleep */\n ret = __phy_write(phydev, YT8511_PAGE_SELECT, YT8511_EXT_SLEEP_CTRL);\n if (ret < 0)\n goto err_restore_page;\n\n ret = __phy_modify(phydev, YT8511_PAGE, 0, YT8511_PLLON_SLP);\n if (ret < 0)\n goto err_restore_page;\n\nerr_restore_page:\n return phy_restore_page(phydev, oldpage, ret);\n}" (storage_class_specifier) "static" (static) "static" (primitive_type) "int" (function_declarator) "yt8511_config_init(struct phy_device *phydev)" (identifier) "yt8511_config_init" (parameter_list) "(struct phy_device *phydev)" (() "(" (parameter_declaration) "struct phy_device *phydev" (struct_specifier) "struct phy_device" (struct) "struct" (type_identifier) "phy_device" (pointer_declarator) "*phydev" (*) "*" (identifier) "phydev" ()) ")" (compound_statement) "{\n int oldpage, ret = 0;\n unsigned int ge, fe;\n\n oldpage = phy_select_page(phydev, YT8511_EXT_CLK_GATE);\n if (oldpage < 0)\n goto err_restore_page;\n\n /* set rgmii delay mode */\n switch (phydev->interface) {\n case PHY_INTERFACE_MODE_RGMII:\n ge = YT8511_DELAY_GE_TX_DIS;\n fe = YT8511_DELAY_FE_TX_DIS;\n break;\n case PHY_INTERFACE_MODE_RGMII_RXID:\n ge = YT8511_DELAY_RX | YT8511_DELAY_GE_TX_DIS;\n fe = YT8511_DELAY_FE_TX_DIS;\n break;\n case PHY_INTERFACE_MODE_RGMII_TXID:\n ge = YT8511_DELAY_GE_TX_EN;\n fe = YT8511_DELAY_FE_TX_EN;\n break;\n case PHY_INTERFACE_MODE_RGMII_ID:\n ge = YT8511_DELAY_RX | YT8511_DELAY_GE_TX_EN;\n fe = YT8511_DELAY_FE_TX_EN;\n break;\n default: /* do not support other modes */\n ret = -EOPNOTSUPP;\n goto err_restore_page;\n }\n\n ret = __phy_modify(phydev, YT8511_PAGE, (YT8511_DELAY_RX | YT8511_DELAY_GE_TX_EN), ge);\n if (ret < 0)\n goto err_restore_page;\n\n /* set clock mode to 125mhz */\n ret = __phy_modify(phydev, YT8511_PAGE, 0, YT8511_CLK_125M);\n if (ret < 0)\n goto err_restore_page;\n\n /* fast ethernet delay is in a separate page */\n ret = __phy_write(phydev, YT8511_PAGE_SELECT, YT8511_EXT_DELAY_DRIVE);\n if (ret < 0)\n goto err_restore_page;\n\n ret = __phy_modify(phydev, YT8511_PAGE, YT8511_DELAY_FE_TX_EN, fe);\n if (ret < 0)\n goto err_restore_page;\n\n /* leave pll enabled in sleep */\n ret = __phy_write(phydev, YT8511_PAGE_SELECT, YT8511_EXT_SLEEP_CTRL);\n if (ret < 0)\n goto err_restore_page;\n\n ret = __phy_modify(phydev, YT8511_PAGE, 0, YT8511_PLLON_SLP);\n if (ret < 0)\n goto err_restore_page;\n\nerr_restore_page:\n return phy_restore_page(phydev, oldpage, ret);\n}" ({) "{" (declaration) "int oldpage, ret = 0;" (primitive_type) "int" (identifier) "oldpage" (,) "," (init_declarator) "ret = 0" (identifier) "ret" (=) "=" (number_literal) "0" (;) ";" (declaration) "unsigned int ge, fe;" (sized_type_specifier) "unsigned int" (unsigned) "unsigned" (primitive_type) "int" (identifier) "ge" (,) "," (identifier) "fe" (;) ";" (expression_statement) "oldpage = phy_select_page(phydev, YT8511_EXT_CLK_GATE);" (assignment_expression) "oldpage = phy_select_page(phydev, YT8511_EXT_CLK_GATE)" (identifier) "oldpage" (=) "=" (call_expression) "phy_select_page(phydev, YT8511_EXT_CLK_GATE)" (identifier) "phy_select_page" (argument_list) "(phydev, YT8511_EXT_CLK_GATE)" (() "(" (identifier) "phydev" (,) "," (identifier) "YT8511_EXT_CLK_GATE" ()) ")" (;) ";" (if_statement) "if (oldpage < 0)\n goto err_restore_page;" (if) "if" (parenthesized_expression) "(oldpage < 0)" (() "(" (binary_expression) "oldpage < 0" (identifier) "oldpage" (<) "<" (number_literal) "0" ()) ")" (goto_statement) "goto err_restore_page;" (goto) "goto" (statement_identifier) "err_restore_page" (;) ";" (comment) "/* set rgmii delay mode */" (switch_statement) "switch (phydev->interface) {\n case PHY_INTERFACE_MODE_RGMII:\n ge = YT8511_DELAY_GE_TX_DIS;\n fe = YT8511_DELAY_FE_TX_DIS;\n break;\n case PHY_INTERFACE_MODE_RGMII_RXID:\n ge = YT8511_DELAY_RX | YT8511_DELAY_GE_TX_DIS;\n fe = YT8511_DELAY_FE_TX_DIS;\n break;\n case PHY_INTERFACE_MODE_RGMII_TXID:\n ge = YT8511_DELAY_GE_TX_EN;\n fe = YT8511_DELAY_FE_TX_EN;\n break;\n case PHY_INTERFACE_MODE_RGMII_ID:\n ge = YT8511_DELAY_RX | YT8511_DELAY_GE_TX_EN;\n fe = YT8511_DELAY_FE_TX_EN;\n break;\n default: /* do not support other modes */\n ret = -EOPNOTSUPP;\n goto err_restore_page;\n }" (switch) "switch" (parenthesized_expression) "(phydev->interface)" (() "(" (field_expression) "phydev->interface" (identifier) "phydev" (->) "->" (field_identifier) "interface" ()) ")" (compound_statement) "{\n case PHY_INTERFACE_MODE_RGMII:\n ge = YT8511_DELAY_GE_TX_DIS;\n fe = YT8511_DELAY_FE_TX_DIS;\n break;\n case PHY_INTERFACE_MODE_RGMII_RXID:\n ge = YT8511_DELAY_RX | YT8511_DELAY_GE_TX_DIS;\n fe = YT8511_DELAY_FE_TX_DIS;\n break;\n case PHY_INTERFACE_MODE_RGMII_TXID:\n ge = YT8511_DELAY_GE_TX_EN;\n fe = YT8511_DELAY_FE_TX_EN;\n break;\n case PHY_INTERFACE_MODE_RGMII_ID:\n ge = YT8511_DELAY_RX | YT8511_DELAY_GE_TX_EN;\n fe = YT8511_DELAY_FE_TX_EN;\n break;\n default: /* do not support other modes */\n ret = -EOPNOTSUPP;\n goto err_restore_page;\n }" ({) "{" (case_statement) "case PHY_INTERFACE_MODE_RGMII:\n ge = YT8511_DELAY_GE_TX_DIS;\n fe = YT8511_DELAY_FE_TX_DIS;\n break;" (case) "case" (identifier) "PHY_INTERFACE_MODE_RGMII" (:) ":" (expression_statement) "ge = YT8511_DELAY_GE_TX_DIS;" (assignment_expression) "ge = YT8511_DELAY_GE_TX_DIS" (identifier) "ge" (=) "=" (identifier) "YT8511_DELAY_GE_TX_DIS" (;) ";" (expression_statement) "fe = YT8511_DELAY_FE_TX_DIS;" (assignment_expression) "fe = YT8511_DELAY_FE_TX_DIS" (identifier) "fe" (=) "=" (identifier) "YT8511_DELAY_FE_TX_DIS" (;) ";" (break_statement) "break;" (break) "break" (;) ";" (case_statement) "case PHY_INTERFACE_MODE_RGMII_RXID:\n ge = YT8511_DELAY_RX | YT8511_DELAY_GE_TX_DIS;\n fe = YT8511_DELAY_FE_TX_DIS;\n break;" (case) "case" (identifier) "PHY_INTERFACE_MODE_RGMII_RXID" (:) ":" (expression_statement) "ge = YT8511_DELAY_RX | YT8511_DELAY_GE_TX_DIS;" (assignment_expression) "ge = YT8511_DELAY_RX | YT8511_DELAY_GE_TX_DIS" (identifier) "ge" (=) "=" (binary_expression) "YT8511_DELAY_RX | YT8511_DELAY_GE_TX_DIS" (identifier) "YT8511_DELAY_RX" (|) "|" (identifier) "YT8511_DELAY_GE_TX_DIS" (;) ";" (expression_statement) "fe = YT8511_DELAY_FE_TX_DIS;" (assignment_expression) "fe = YT8511_DELAY_FE_TX_DIS" (identifier) "fe" (=) "=" (identifier) "YT8511_DELAY_FE_TX_DIS" (;) ";" (break_statement) "break;" (break) "break" (;) ";" (case_statement) "case PHY_INTERFACE_MODE_RGMII_TXID:\n ge = YT8511_DELAY_GE_TX_EN;\n fe = YT8511_DELAY_FE_TX_EN;\n break;" (case) "case" (identifier) "PHY_INTERFACE_MODE_RGMII_TXID" (:) ":" (expression_statement) "ge = YT8511_DELAY_GE_TX_EN;" (assignment_expression) "ge = YT8511_DELAY_GE_TX_EN" (identifier) "ge" (=) "=" (identifier) "YT8511_DELAY_GE_TX_EN" (;) ";" (expression_statement) "fe = YT8511_DELAY_FE_TX_EN;" (assignment_expression) "fe = YT8511_DELAY_FE_TX_EN" (identifier) "fe" (=) "=" (identifier) "YT8511_DELAY_FE_TX_EN" (;) ";" (break_statement) "break;" (break) "break" (;) ";" (case_statement) "case PHY_INTERFACE_MODE_RGMII_ID:\n ge = YT8511_DELAY_RX | YT8511_DELAY_GE_TX_EN;\n fe = YT8511_DELAY_FE_TX_EN;\n break;" (case) "case" (identifier) "PHY_INTERFACE_MODE_RGMII_ID" (:) ":" (expression_statement) "ge = YT8511_DELAY_RX | YT8511_DELAY_GE_TX_EN;" (assignment_expression) "ge = YT8511_DELAY_RX | YT8511_DELAY_GE_TX_EN" (identifier) "ge" (=) "=" (binary_expression) "YT8511_DELAY_RX | YT8511_DELAY_GE_TX_EN" (identifier) "YT8511_DELAY_RX" (|) "|" (identifier) "YT8511_DELAY_GE_TX_EN" (;) ";" (expression_statement) "fe = YT8511_DELAY_FE_TX_EN;" (assignment_expression) "fe = YT8511_DELAY_FE_TX_EN" (identifier) "fe" (=) "=" (identifier) "YT8511_DELAY_FE_TX_EN" (;) ";" (break_statement) "break;" (break) "break" (;) ";" (case_statement) "default: /* do not support other modes */\n ret = -EOPNOTSUPP;\n goto err_restore_page;" (default) "default" (:) ":" (comment) "/* do not support other modes */" (expression_statement) "ret = -EOPNOTSUPP;" (assignment_expression) "ret = -EOPNOTSUPP" (identifier) "ret" (=) "=" (unary_expression) "-EOPNOTSUPP" (-) "-" (identifier) "EOPNOTSUPP" (;) ";" (goto_statement) "goto err_restore_page;" (goto) "goto" (statement_identifier) "err_restore_page" (;) ";" (}) "}" (expression_statement) "ret = __phy_modify(phydev, YT8511_PAGE, (YT8511_DELAY_RX | YT8511_DELAY_GE_TX_EN), ge);" (assignment_expression) "ret = __phy_modify(phydev, YT8511_PAGE, (YT8511_DELAY_RX | YT8511_DELAY_GE_TX_EN), ge)" (identifier) "ret" (=) "=" (call_expression) "__phy_modify(phydev, YT8511_PAGE, (YT8511_DELAY_RX | YT8511_DELAY_GE_TX_EN), ge)" (identifier) "__phy_modify" (argument_list) "(phydev, YT8511_PAGE, (YT8511_DELAY_RX | YT8511_DELAY_GE_TX_EN), ge)" (() "(" (identifier) "phydev" (,) "," (identifier) "YT8511_PAGE" (,) "," (parenthesized_expression) "(YT8511_DELAY_RX | YT8511_DELAY_GE_TX_EN)" (() "(" (binary_expression) "YT8511_DELAY_RX | YT8511_DELAY_GE_TX_EN" (identifier) "YT8511_DELAY_RX" (|) "|" (identifier) "YT8511_DELAY_GE_TX_EN" ()) ")" (,) "," (identifier) "ge" ()) ")" (;) ";" (if_statement) "if (ret < 0)\n goto err_restore_page;" (if) "if" (parenthesized_expression) "(ret < 0)" (() "(" (binary_expression) "ret < 0" (identifier) "ret" (<) "<" (number_literal) "0" ()) ")" (goto_statement) "goto err_restore_page;" (goto) "goto" (statement_identifier) "err_restore_page" (;) ";" (comment) "/* set clock mode to 125mhz */" (expression_statement) "ret = __phy_modify(phydev, YT8511_PAGE, 0, YT8511_CLK_125M);" (assignment_expression) "ret = __phy_modify(phydev, YT8511_PAGE, 0, YT8511_CLK_125M)" (identifier) "ret" (=) "=" (call_expression) "__phy_modify(phydev, YT8511_PAGE, 0, YT8511_CLK_125M)" (identifier) "__phy_modify" (argument_list) "(phydev, YT8511_PAGE, 0, YT8511_CLK_125M)" (() "(" (identifier) "phydev" (,) "," (identifier) "YT8511_PAGE" (,) "," (number_literal) "0" (,) "," (identifier) "YT8511_CLK_125M" ()) ")" (;) ";" (if_statement) "if (ret < 0)\n goto err_restore_page;" (if) "if" (parenthesized_expression) "(ret < 0)" (() "(" (binary_expression) "ret < 0" (identifier) "ret" (<) "<" (number_literal) "0" ()) ")" (goto_statement) "goto err_restore_page;" (goto) "goto" (statement_identifier) "err_restore_page" (;) ";" (comment) "/* fast ethernet delay is in a separate page */" (expression_statement) "ret = __phy_write(phydev, YT8511_PAGE_SELECT, YT8511_EXT_DELAY_DRIVE);" (assignment_expression) "ret = __phy_write(phydev, YT8511_PAGE_SELECT, YT8511_EXT_DELAY_DRIVE)" (identifier) "ret" (=) "=" (call_expression) "__phy_write(phydev, YT8511_PAGE_SELECT, YT8511_EXT_DELAY_DRIVE)" (identifier) "__phy_write" (argument_list) "(phydev, YT8511_PAGE_SELECT, YT8511_EXT_DELAY_DRIVE)" (() "(" (identifier) "phydev" (,) "," (identifier) "YT8511_PAGE_SELECT" (,) "," (identifier) "YT8511_EXT_DELAY_DRIVE" ()) ")" (;) ";" (if_statement) "if (ret < 0)\n goto err_restore_page;" (if) "if" (parenthesized_expression) "(ret < 0)" (() "(" (binary_expression) "ret < 0" (identifier) "ret" (<) "<" (number_literal) "0" ()) ")" (goto_statement) "goto err_restore_page;" (goto) "goto" (statement_identifier) "err_restore_page" (;) ";" (expression_statement) "ret = __phy_modify(phydev, YT8511_PAGE, YT8511_DELAY_FE_TX_EN, fe);" (assignment_expression) "ret = __phy_modify(phydev, YT8511_PAGE, YT8511_DELAY_FE_TX_EN, fe)" (identifier) "ret" (=) "=" (call_expression) "__phy_modify(phydev, YT8511_PAGE, YT8511_DELAY_FE_TX_EN, fe)" (identifier) "__phy_modify" (argument_list) "(phydev, YT8511_PAGE, YT8511_DELAY_FE_TX_EN, fe)" (() "(" (identifier) "phydev" (,) "," (identifier) "YT8511_PAGE" (,) "," (identifier) "YT8511_DELAY_FE_TX_EN" (,) "," (identifier) "fe" ()) ")" (;) ";" (if_statement) "if (ret < 0)\n goto err_restore_page;" (if) "if" (parenthesized_expression) "(ret < 0)" (() "(" (binary_expression) "ret < 0" (identifier) "ret" (<) "<" (number_literal) "0" ()) ")" (goto_statement) "goto err_restore_page;" (goto) "goto" (statement_identifier) "err_restore_page" (;) ";" (comment) "/* leave pll enabled in sleep */" (expression_statement) "ret = __phy_write(phydev, YT8511_PAGE_SELECT, YT8511_EXT_SLEEP_CTRL);" (assignment_expression) "ret = __phy_write(phydev, YT8511_PAGE_SELECT, YT8511_EXT_SLEEP_CTRL)" (identifier) "ret" (=) "=" (call_expression) "__phy_write(phydev, YT8511_PAGE_SELECT, YT8511_EXT_SLEEP_CTRL)" (identifier) "__phy_write" (argument_list) "(phydev, YT8511_PAGE_SELECT, YT8511_EXT_SLEEP_CTRL)" (() "(" (identifier) "phydev" (,) "," (identifier) "YT8511_PAGE_SELECT" (,) "," (identifier) "YT8511_EXT_SLEEP_CTRL" ()) ")" (;) ";" (if_statement) "if (ret < 0)\n goto err_restore_page;" (if) "if" (parenthesized_expression) "(ret < 0)" (() "(" (binary_expression) "ret < 0" (identifier) "ret" (<) "<" (number_literal) "0" ()) ")" (goto_statement) "goto err_restore_page;" (goto) "goto" (statement_identifier) "err_restore_page" (;) ";" (expression_statement) "ret = __phy_modify(phydev, YT8511_PAGE, 0, YT8511_PLLON_SLP);" (assignment_expression) "ret = __phy_modify(phydev, YT8511_PAGE, 0, YT8511_PLLON_SLP)" (identifier) "ret" (=) "=" (call_expression) "__phy_modify(phydev, YT8511_PAGE, 0, YT8511_PLLON_SLP)" (identifier) "__phy_modify" (argument_list) "(phydev, YT8511_PAGE, 0, YT8511_PLLON_SLP)" (() "(" (identifier) "phydev" (,) "," (identifier) "YT8511_PAGE" (,) "," (number_literal) "0" (,) "," (identifier) "YT8511_PLLON_SLP" ()) ")" (;) ";" (if_statement) "if (ret < 0)\n goto err_restore_page;" (if) "if" (parenthesized_expression) "(ret < 0)" (() "(" (binary_expression) "ret < 0" (identifier) "ret" (<) "<" (number_literal) "0" ()) ")" (goto_statement) "goto err_restore_page;" (goto) "goto" (statement_identifier) "err_restore_page" (;) ";" (labeled_statement) "err_restore_page:\n return phy_restore_page(phydev, oldpage, ret);" (statement_identifier) "err_restore_page" (:) ":" (return_statement) "return phy_restore_page(phydev, oldpage, ret);" (return) "return" (call_expression) "phy_restore_page(phydev, oldpage, ret)" (identifier) "phy_restore_page" (argument_list) "(phydev, oldpage, ret)" (() "(" (identifier) "phydev" (,) "," (identifier) "oldpage" (,) "," (identifier) "ret" ()) ")" (;) ";" (}) "}" (declaration) "static struct phy_driver motorcomm_phy_drvs[] = {\n {\n PHY_ID_MATCH_EXACT(PHY_ID_YT8511),\n .name = "YT8511 Gigabit Ethernet",\n .config_init = yt8511_config_init,\n .suspend = genphy_suspend,\n .resume = genphy_resume,\n .read_page = yt8511_read_page,\n .write_page = yt8511_write_page,\n },\n};" (storage_class_specifier) "static" (static) "static" (struct_specifier) "struct phy_driver" (struct) "struct" (type_identifier) "phy_driver" (init_declarator) "motorcomm_phy_drvs[] = {\n {\n PHY_ID_MATCH_EXACT(PHY_ID_YT8511),\n .name = "YT8511 Gigabit Ethernet",\n .config_init = yt8511_config_init,\n .suspend = genphy_suspend,\n .resume = genphy_resume,\n .read_page = yt8511_read_page,\n .write_page = yt8511_write_page,\n },\n}" (array_declarator) "motorcomm_phy_drvs[]" (identifier) "motorcomm_phy_drvs" ([) "[" (]) "]" (=) "=" (initializer_list) "{\n {\n PHY_ID_MATCH_EXACT(PHY_ID_YT8511),\n .name = "YT8511 Gigabit Ethernet",\n .config_init = yt8511_config_init,\n .suspend = genphy_suspend,\n .resume = genphy_resume,\n .read_page = yt8511_read_page,\n .write_page = yt8511_write_page,\n },\n}" ({) "{" (initializer_list) "{\n PHY_ID_MATCH_EXACT(PHY_ID_YT8511),\n .name = "YT8511 Gigabit Ethernet",\n .config_init = yt8511_config_init,\n .suspend = genphy_suspend,\n .resume = genphy_resume,\n .read_page = yt8511_read_page,\n .write_page = yt8511_write_page,\n }" ({) "{" (call_expression) "PHY_ID_MATCH_EXACT(PHY_ID_YT8511)" (identifier) "PHY_ID_MATCH_EXACT" (argument_list) "(PHY_ID_YT8511)" (() "(" (identifier) "PHY_ID_YT8511" ()) ")" (,) "," (initializer_pair) ".name = "YT8511 Gigabit Ethernet"" (field_designator) ".name" (.) "." (field_identifier) "name" (=) "=" (string_literal) ""YT8511 Gigabit Ethernet"" (") """ (string_content) "YT8511 Gigabit Ethernet" (") """ (,) "," (initializer_pair) ".config_init = yt8511_config_init" (field_designator) ".config_init" (.) "." (field_identifier) "config_init" (=) "=" (identifier) "yt8511_config_init" (,) "," (initializer_pair) ".suspend = genphy_suspend" (field_designator) ".suspend" (.) "." (field_identifier) "suspend" (=) "=" (identifier) "genphy_suspend" (,) "," (initializer_pair) ".resume = genphy_resume" (field_designator) ".resume" (.) "." (field_identifier) "resume" (=) "=" (identifier) "genphy_resume" (,) "," (initializer_pair) ".read_page = yt8511_read_page" (field_designator) ".read_page" (.) "." (field_identifier) "read_page" (=) "=" (identifier) "yt8511_read_page" (,) "," (initializer_pair) ".write_page = yt8511_write_page" (field_designator) ".write_page" (.) "." (field_identifier) "write_page" (=) "=" (identifier) "yt8511_write_page" (,) "," (}) "}" (,) "," (}) "}" (;) ";" (expression_statement) "module_phy_driver(motorcomm_phy_drvs);" (call_expression) "module_phy_driver(motorcomm_phy_drvs)" (identifier) "module_phy_driver" (argument_list) "(motorcomm_phy_drvs)" (() "(" (identifier) "motorcomm_phy_drvs" ()) ")" (;) ";" (expression_statement) "MODULE_DESCRIPTION("Motorcomm PHY driver");" (call_expression) "MODULE_DESCRIPTION("Motorcomm PHY driver")" (identifier) "MODULE_DESCRIPTION" (argument_list) "("Motorcomm PHY driver")" (() "(" (string_literal) ""Motorcomm PHY driver"" (") """ (string_content) "Motorcomm PHY driver" (") """ ()) ")" (;) ";" (expression_statement) "MODULE_AUTHOR("<NAME>");" (call_expression) "MODULE_AUTHOR("<NAME>")" (identifier) "MODULE_AUTHOR" (argument_list) "("<NAME>")" (() "(" (string_literal) ""<NAME>"" (") """ (string_content) "<NAME>" (") """ ()) ")" (;) ";" (expression_statement) "MODULE_LICENSE("GPL");" (call_expression) "MODULE_LICENSE("GPL")" (identifier) "MODULE_LICENSE" (argument_list) "("GPL")" (() "(" (string_literal) ""GPL"" (") """ (string_content) "GPL" (") """ ()) ")" (;) ";" (declaration) "static const struct mdio_device_id __maybe_unused motorcomm_tbl[] = {\n { PHY_ID_MATCH_EXACT(PHY_ID_YT8511) },\n { /* sentinal */ }\n};" (storage_class_specifier) "static" (static) "static" (type_qualifier) "const" (const) "const" (struct_specifier) "struct mdio_device_id" (struct) "struct" (type_identifier) "mdio_device_id" (init_declarator) "__maybe_unused motorcomm_tbl[] = {\n { PHY_ID_MATCH_EXACT(PHY_ID_YT8511) },\n { /* sentinal */ }\n}" (array_declarator) "__maybe_unused motorcomm_tbl[]" (identifier) "__maybe_unused" (ERROR) "motorcomm_tbl" (identifier) "motorcomm_tbl" ([) "[" (]) "]" (=) "=" (initializer_list) "{\n { PHY_ID_MATCH_EXACT(PHY_ID_YT8511) },\n { /* sentinal */ }\n}" ({) "{" (initializer_list) "{ PHY_ID_MATCH_EXACT(PHY_ID_YT8511) }" ({) "{" (call_expression) "PHY_ID_MATCH_EXACT(PHY_ID_YT8511)" (identifier) "PHY_ID_MATCH_EXACT" (argument_list) "(PHY_ID_YT8511)" (() "(" (identifier) "PHY_ID_YT8511" ()) ")" (}) "}" (,) "," (initializer_list) "{ /* sentinal */ }" ({) "{" (comment) "/* sentinal */" (}) "}" (}) "}" (;) ";" (expression_statement) "MODULE_DEVICE_TABLE(mdio, motorcomm_tbl);" (call_expression) "MODULE_DEVICE_TABLE(mdio, motorcomm_tbl)" (identifier) "MODULE_DEVICE_TABLE" (argument_list) "(mdio, motorcomm_tbl)" (() "(" (identifier) "mdio" (,) "," (identifier) "motorcomm_tbl" ()) ")" (;) ";"
668
1
{"language": "c", "success": true, "metadata": {"lines": 114, "avg_line_length": 29.18, "nodes": 422, "errors": 0, "source_hash": "f9d44c1b34c00412a9c18821541d4c7b5e6f7cdd2b43574bad769514358924fe", "categorized_nodes": 274}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#include <linux/kernel.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": "system_lib_string", "text": "<linux/kernel.h>", "parent": 0, "children": [], "start_point": {"row": 7, "column": 9}, "end_point": {"row": 7, "column": 25}}, {"id": 3, "type": "preproc_include", "text": "#include <linux/module.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": "<linux/module.h>", "parent": 3, "children": [], "start_point": {"row": 8, "column": 9}, "end_point": {"row": 8, "column": 25}}, {"id": 6, "type": "preproc_include", "text": "#include <linux/phy.h>\n", "parent": null, "children": [7, 8], "start_point": {"row": 9, "column": 0}, "end_point": {"row": 10, "column": 0}}, {"id": 7, "type": "#include", "text": "#include", "parent": 6, "children": [], "start_point": {"row": 9, "column": 0}, "end_point": {"row": 9, "column": 8}}, {"id": 8, "type": "system_lib_string", "text": "<linux/phy.h>", "parent": 6, "children": [], "start_point": {"row": 9, "column": 9}, "end_point": {"row": 9, "column": 22}}, {"id": 9, "type": "preproc_def", "text": "#define PHY_ID_YT8511\t\t0x0000010a\n", "parent": null, "children": [10, 11, 12], "start_point": {"row": 11, "column": 0}, "end_point": {"row": 12, "column": 0}}, {"id": 10, "type": "#define", "text": "#define", "parent": 9, "children": [], "start_point": {"row": 11, "column": 0}, "end_point": {"row": 11, "column": 7}}, {"id": 11, "type": "identifier", "text": "PHY_ID_YT8511", "parent": 9, "children": [], "start_point": {"row": 11, "column": 8}, "end_point": {"row": 11, "column": 21}}, {"id": 12, "type": "preproc_arg", "text": "0x0000010a", "parent": 9, "children": [], "start_point": {"row": 11, "column": 23}, "end_point": {"row": 11, "column": 33}}, {"id": 13, "type": "preproc_def", "text": "#define YT8511_PAGE_SELECT\t0x1e\n", "parent": null, "children": [14, 15, 16], "start_point": {"row": 13, "column": 0}, "end_point": {"row": 14, "column": 0}}, {"id": 14, "type": "#define", "text": "#define", "parent": 13, "children": [], "start_point": {"row": 13, "column": 0}, "end_point": {"row": 13, "column": 7}}, {"id": 15, "type": "identifier", "text": "YT8511_PAGE_SELECT", "parent": 13, "children": [], "start_point": {"row": 13, "column": 8}, "end_point": {"row": 13, "column": 26}}, {"id": 16, "type": "preproc_arg", "text": "0x1e", "parent": 13, "children": [], "start_point": {"row": 13, "column": 27}, "end_point": {"row": 13, "column": 31}}, {"id": 17, "type": "preproc_def", "text": "#define YT8511_PAGE\t\t0x1f\n", "parent": null, "children": [18, 19, 20], "start_point": {"row": 14, "column": 0}, "end_point": {"row": 15, "column": 0}}, {"id": 18, "type": "#define", "text": "#define", "parent": 17, "children": [], "start_point": {"row": 14, "column": 0}, "end_point": {"row": 14, "column": 7}}, {"id": 19, "type": "identifier", "text": "YT8511_PAGE", "parent": 17, "children": [], "start_point": {"row": 14, "column": 8}, "end_point": {"row": 14, "column": 19}}, {"id": 20, "type": "preproc_arg", "text": "0x1f", "parent": 17, "children": [], "start_point": {"row": 14, "column": 21}, "end_point": {"row": 14, "column": 25}}, {"id": 21, "type": "preproc_def", "text": "#define YT8511_EXT_CLK_GATE\t0x0c\n", "parent": null, "children": [22, 23, 24], "start_point": {"row": 15, "column": 0}, "end_point": {"row": 16, "column": 0}}, {"id": 22, "type": "#define", "text": "#define", "parent": 21, "children": [], "start_point": {"row": 15, "column": 0}, "end_point": {"row": 15, "column": 7}}, {"id": 23, "type": "identifier", "text": "YT8511_EXT_CLK_GATE", "parent": 21, "children": [], "start_point": {"row": 15, "column": 8}, "end_point": {"row": 15, "column": 27}}, {"id": 24, "type": "preproc_arg", "text": "0x0c", "parent": 21, "children": [], "start_point": {"row": 15, "column": 28}, "end_point": {"row": 15, "column": 32}}, {"id": 25, "type": "preproc_def", "text": "#define YT8511_EXT_DELAY_DRIVE\t0x0d\n", "parent": null, "children": [26, 27, 28], "start_point": {"row": 16, "column": 0}, "end_point": {"row": 17, "column": 0}}, {"id": 26, "type": "#define", "text": "#define", "parent": 25, "children": [], "start_point": {"row": 16, "column": 0}, "end_point": {"row": 16, "column": 7}}, {"id": 27, "type": "identifier", "text": "YT8511_EXT_DELAY_DRIVE", "parent": 25, "children": [], "start_point": {"row": 16, "column": 8}, "end_point": {"row": 16, "column": 30}}, {"id": 28, "type": "preproc_arg", "text": "0x0d", "parent": 25, "children": [], "start_point": {"row": 16, "column": 31}, "end_point": {"row": 16, "column": 35}}, {"id": 29, "type": "preproc_def", "text": "#define YT8511_EXT_SLEEP_CTRL\t0x27\n", "parent": null, "children": [30, 31, 32], "start_point": {"row": 17, "column": 0}, "end_point": {"row": 18, "column": 0}}, {"id": 30, "type": "#define", "text": "#define", "parent": 29, "children": [], "start_point": {"row": 17, "column": 0}, "end_point": {"row": 17, "column": 7}}, {"id": 31, "type": "identifier", "text": "YT8511_EXT_SLEEP_CTRL", "parent": 29, "children": [], "start_point": {"row": 17, "column": 8}, "end_point": {"row": 17, "column": 29}}, {"id": 32, "type": "preproc_arg", "text": "0x27", "parent": 29, "children": [], "start_point": {"row": 17, "column": 30}, "end_point": {"row": 17, "column": 34}}, {"id": 33, "type": "preproc_def", "text": "#define YT8511_CLK_125M\t\t(BIT(2) | BIT(1))\n", "parent": null, "children": [34, 35, 36], "start_point": {"row": 24, "column": 0}, "end_point": {"row": 25, "column": 0}}, {"id": 34, "type": "#define", "text": "#define", "parent": 33, "children": [], "start_point": {"row": 24, "column": 0}, "end_point": {"row": 24, "column": 7}}, {"id": 35, "type": "identifier", "text": "YT8511_CLK_125M", "parent": 33, "children": [], "start_point": {"row": 24, "column": 8}, "end_point": {"row": 24, "column": 23}}, {"id": 36, "type": "preproc_arg", "text": "(BIT(2) | BIT(1))", "parent": 33, "children": [], "start_point": {"row": 24, "column": 25}, "end_point": {"row": 24, "column": 42}}, {"id": 37, "type": "preproc_def", "text": "#define YT8511_PLLON_SLP\tBIT(14)\n", "parent": null, "children": [38, 39, 40], "start_point": {"row": 25, "column": 0}, "end_point": {"row": 26, "column": 0}}, {"id": 38, "type": "#define", "text": "#define", "parent": 37, "children": [], "start_point": {"row": 25, "column": 0}, "end_point": {"row": 25, "column": 7}}, {"id": 39, "type": "identifier", "text": "YT8511_PLLON_SLP", "parent": 37, "children": [], "start_point": {"row": 25, "column": 8}, "end_point": {"row": 25, "column": 24}}, {"id": 40, "type": "preproc_arg", "text": "BIT(14)", "parent": 37, "children": [], "start_point": {"row": 25, "column": 25}, "end_point": {"row": 25, "column": 32}}, {"id": 41, "type": "preproc_def", "text": "#define YT8511_DELAY_RX\t\tBIT(0)\n", "parent": null, "children": [42, 43, 44], "start_point": {"row": 28, "column": 0}, "end_point": {"row": 29, "column": 0}}, {"id": 42, "type": "#define", "text": "#define", "parent": 41, "children": [], "start_point": {"row": 28, "column": 0}, "end_point": {"row": 28, "column": 7}}, {"id": 43, "type": "identifier", "text": "YT8511_DELAY_RX", "parent": 41, "children": [], "start_point": {"row": 28, "column": 8}, "end_point": {"row": 28, "column": 23}}, {"id": 44, "type": "preproc_arg", "text": "BIT(0)", "parent": 41, "children": [], "start_point": {"row": 28, "column": 25}, "end_point": {"row": 28, "column": 31}}, {"id": 45, "type": "preproc_def", "text": "#define YT8511_DELAY_GE_TX_EN\t(0xf << 4)\n", "parent": null, "children": [46, 47, 48], "start_point": {"row": 35, "column": 0}, "end_point": {"row": 36, "column": 0}}, {"id": 46, "type": "#define", "text": "#define", "parent": 45, "children": [], "start_point": {"row": 35, "column": 0}, "end_point": {"row": 35, "column": 7}}, {"id": 47, "type": "identifier", "text": "YT8511_DELAY_GE_TX_EN", "parent": 45, "children": [], "start_point": {"row": 35, "column": 8}, "end_point": {"row": 35, "column": 29}}, {"id": 48, "type": "preproc_arg", "text": "(0xf << 4)", "parent": 45, "children": [], "start_point": {"row": 35, "column": 30}, "end_point": {"row": 35, "column": 40}}, {"id": 49, "type": "preproc_def", "text": "#define YT8511_DELAY_GE_TX_DIS\t(0x2 << 4)\n", "parent": null, "children": [50, 51, 52], "start_point": {"row": 36, "column": 0}, "end_point": {"row": 37, "column": 0}}, {"id": 50, "type": "#define", "text": "#define", "parent": 49, "children": [], "start_point": {"row": 36, "column": 0}, "end_point": {"row": 36, "column": 7}}, {"id": 51, "type": "identifier", "text": "YT8511_DELAY_GE_TX_DIS", "parent": 49, "children": [], "start_point": {"row": 36, "column": 8}, "end_point": {"row": 36, "column": 30}}, {"id": 52, "type": "preproc_arg", "text": "(0x2 << 4)", "parent": 49, "children": [], "start_point": {"row": 36, "column": 31}, "end_point": {"row": 36, "column": 41}}, {"id": 53, "type": "preproc_def", "text": "#define YT8511_DELAY_FE_TX_EN\t(0xf << 12)\n", "parent": null, "children": [54, 55, 56], "start_point": {"row": 37, "column": 0}, "end_point": {"row": 38, "column": 0}}, {"id": 54, "type": "#define", "text": "#define", "parent": 53, "children": [], "start_point": {"row": 37, "column": 0}, "end_point": {"row": 37, "column": 7}}, {"id": 55, "type": "identifier", "text": "YT8511_DELAY_FE_TX_EN", "parent": 53, "children": [], "start_point": {"row": 37, "column": 8}, "end_point": {"row": 37, "column": 29}}, {"id": 56, "type": "preproc_arg", "text": "(0xf << 12)", "parent": 53, "children": [], "start_point": {"row": 37, "column": 30}, "end_point": {"row": 37, "column": 41}}, {"id": 57, "type": "preproc_def", "text": "#define YT8511_DELAY_FE_TX_DIS\t(0x2 << 12)\n", "parent": null, "children": [58, 59, 60], "start_point": {"row": 38, "column": 0}, "end_point": {"row": 39, "column": 0}}, {"id": 58, "type": "#define", "text": "#define", "parent": 57, "children": [], "start_point": {"row": 38, "column": 0}, "end_point": {"row": 38, "column": 7}}, {"id": 59, "type": "identifier", "text": "YT8511_DELAY_FE_TX_DIS", "parent": 57, "children": [], "start_point": {"row": 38, "column": 8}, "end_point": {"row": 38, "column": 30}}, {"id": 60, "type": "preproc_arg", "text": "(0x2 << 12)", "parent": 57, "children": [], "start_point": {"row": 38, "column": 31}, "end_point": {"row": 38, "column": 42}}, {"id": 61, "type": "function_definition", "text": "static int yt8511_read_page(struct phy_device *phydev)\n{\n\treturn __phy_read(phydev, YT8511_PAGE_SELECT);\n}", "parent": null, "children": [62, 63], "start_point": {"row": 40, "column": 0}, "end_point": {"row": 43, "column": 1}}, {"id": 62, "type": "primitive_type", "text": "int", "parent": 61, "children": [], "start_point": {"row": 40, "column": 7}, "end_point": {"row": 40, "column": 10}}, {"id": 63, "type": "function_declarator", "text": "yt8511_read_page(struct phy_device *phydev)", "parent": 61, "children": [64, 65], "start_point": {"row": 40, "column": 11}, "end_point": {"row": 40, "column": 54}}, {"id": 64, "type": "identifier", "text": "yt8511_read_page", "parent": 63, "children": [], "start_point": {"row": 40, "column": 11}, "end_point": {"row": 40, "column": 27}}, {"id": 65, "type": "parameter_list", "text": "(struct phy_device *phydev)", "parent": 63, "children": [66], "start_point": {"row": 40, "column": 27}, "end_point": {"row": 40, "column": 54}}, {"id": 66, "type": "parameter_declaration", "text": "struct phy_device *phydev", "parent": 65, "children": [67, 70], "start_point": {"row": 40, "column": 28}, "end_point": {"row": 40, "column": 53}}, {"id": 67, "type": "struct_specifier", "text": "struct phy_device", "parent": 66, "children": [68, 69], "start_point": {"row": 40, "column": 28}, "end_point": {"row": 40, "column": 45}}, {"id": 68, "type": "struct", "text": "struct", "parent": 67, "children": [], "start_point": {"row": 40, "column": 28}, "end_point": {"row": 40, "column": 34}}, {"id": 69, "type": "type_identifier", "text": "phy_device", "parent": 67, "children": [], "start_point": {"row": 40, "column": 35}, "end_point": {"row": 40, "column": 45}}, {"id": 70, "type": "pointer_declarator", "text": "*phydev", "parent": 66, "children": [71, 72], "start_point": {"row": 40, "column": 46}, "end_point": {"row": 40, "column": 53}}, {"id": 71, "type": "*", "text": "*", "parent": 70, "children": [], "start_point": {"row": 40, "column": 46}, "end_point": {"row": 40, "column": 47}}, {"id": 72, "type": "identifier", "text": "phydev", "parent": 70, "children": [], "start_point": {"row": 40, "column": 47}, "end_point": {"row": 40, "column": 53}}, {"id": 73, "type": "return_statement", "text": "return __phy_read(phydev, YT8511_PAGE_SELECT);", "parent": 61, "children": [74], "start_point": {"row": 42, "column": 1}, "end_point": {"row": 42, "column": 47}}, {"id": 74, "type": "call_expression", "text": "__phy_read(phydev, YT8511_PAGE_SELECT)", "parent": 73, "children": [75, 76], "start_point": {"row": 42, "column": 8}, "end_point": {"row": 42, "column": 46}}, {"id": 75, "type": "identifier", "text": "__phy_read", "parent": 74, "children": [], "start_point": {"row": 42, "column": 8}, "end_point": {"row": 42, "column": 18}}, {"id": 76, "type": "argument_list", "text": "(phydev, YT8511_PAGE_SELECT)", "parent": 74, "children": [77, 78], "start_point": {"row": 42, "column": 18}, "end_point": {"row": 42, "column": 46}}, {"id": 77, "type": "identifier", "text": "phydev", "parent": 76, "children": [], "start_point": {"row": 42, "column": 19}, "end_point": {"row": 42, "column": 25}}, {"id": 78, "type": "identifier", "text": "YT8511_PAGE_SELECT", "parent": 76, "children": [], "start_point": {"row": 42, "column": 27}, "end_point": {"row": 42, "column": 45}}, {"id": 79, "type": "function_definition", "text": "static int yt8511_write_page(struct phy_device *phydev, int page)\n{\n\treturn __phy_write(phydev, YT8511_PAGE_SELECT, page);\n}", "parent": null, "children": [80, 81], "start_point": {"row": 45, "column": 0}, "end_point": {"row": 48, "column": 1}}, {"id": 80, "type": "primitive_type", "text": "int", "parent": 79, "children": [], "start_point": {"row": 45, "column": 7}, "end_point": {"row": 45, "column": 10}}, {"id": 81, "type": "function_declarator", "text": "yt8511_write_page(struct phy_device *phydev, int page)", "parent": 79, "children": [82, 83], "start_point": {"row": 45, "column": 11}, "end_point": {"row": 45, "column": 65}}, {"id": 82, "type": "identifier", "text": "yt8511_write_page", "parent": 81, "children": [], "start_point": {"row": 45, "column": 11}, "end_point": {"row": 45, "column": 28}}, {"id": 83, "type": "parameter_list", "text": "(struct phy_device *phydev, int page)", "parent": 81, "children": [84, 91], "start_point": {"row": 45, "column": 28}, "end_point": {"row": 45, "column": 65}}, {"id": 84, "type": "parameter_declaration", "text": "struct phy_device *phydev", "parent": 83, "children": [85, 88], "start_point": {"row": 45, "column": 29}, "end_point": {"row": 45, "column": 54}}, {"id": 85, "type": "struct_specifier", "text": "struct phy_device", "parent": 84, "children": [86, 87], "start_point": {"row": 45, "column": 29}, "end_point": {"row": 45, "column": 46}}, {"id": 86, "type": "struct", "text": "struct", "parent": 85, "children": [], "start_point": {"row": 45, "column": 29}, "end_point": {"row": 45, "column": 35}}, {"id": 87, "type": "type_identifier", "text": "phy_device", "parent": 85, "children": [], "start_point": {"row": 45, "column": 36}, "end_point": {"row": 45, "column": 46}}, {"id": 88, "type": "pointer_declarator", "text": "*phydev", "parent": 84, "children": [89, 90], "start_point": {"row": 45, "column": 47}, "end_point": {"row": 45, "column": 54}}, {"id": 89, "type": "*", "text": "*", "parent": 88, "children": [], "start_point": {"row": 45, "column": 47}, "end_point": {"row": 45, "column": 48}}, {"id": 90, "type": "identifier", "text": "phydev", "parent": 88, "children": [], "start_point": {"row": 45, "column": 48}, "end_point": {"row": 45, "column": 54}}, {"id": 91, "type": "parameter_declaration", "text": "int page", "parent": 83, "children": [92, 93], "start_point": {"row": 45, "column": 56}, "end_point": {"row": 45, "column": 64}}, {"id": 92, "type": "primitive_type", "text": "int", "parent": 91, "children": [], "start_point": {"row": 45, "column": 56}, "end_point": {"row": 45, "column": 59}}, {"id": 93, "type": "identifier", "text": "page", "parent": 91, "children": [], "start_point": {"row": 45, "column": 60}, "end_point": {"row": 45, "column": 64}}, {"id": 94, "type": "return_statement", "text": "return __phy_write(phydev, YT8511_PAGE_SELECT, page);", "parent": 79, "children": [95], "start_point": {"row": 47, "column": 1}, "end_point": {"row": 47, "column": 54}}, {"id": 95, "type": "call_expression", "text": "__phy_write(phydev, YT8511_PAGE_SELECT, page)", "parent": 94, "children": [96, 97], "start_point": {"row": 47, "column": 8}, "end_point": {"row": 47, "column": 53}}, {"id": 96, "type": "identifier", "text": "__phy_write", "parent": 95, "children": [], "start_point": {"row": 47, "column": 8}, "end_point": {"row": 47, "column": 19}}, {"id": 97, "type": "argument_list", "text": "(phydev, YT8511_PAGE_SELECT, page)", "parent": 95, "children": [98, 99, 100], "start_point": {"row": 47, "column": 19}, "end_point": {"row": 47, "column": 53}}, {"id": 98, "type": "identifier", "text": "phydev", "parent": 97, "children": [], "start_point": {"row": 47, "column": 20}, "end_point": {"row": 47, "column": 26}}, {"id": 99, "type": "identifier", "text": "YT8511_PAGE_SELECT", "parent": 97, "children": [], "start_point": {"row": 47, "column": 28}, "end_point": {"row": 47, "column": 46}}, {"id": 100, "type": "identifier", "text": "page", "parent": 97, "children": [], "start_point": {"row": 47, "column": 48}, "end_point": {"row": 47, "column": 52}}, {"id": 101, "type": "function_definition", "text": "static int yt8511_config_init(struct phy_device *phydev)\n{\n\tint oldpage, ret = 0;\n\tunsigned int ge, fe;\n\n\toldpage = phy_select_page(phydev, YT8511_EXT_CLK_GATE);\n\tif (oldpage < 0)\n\t\tgoto err_restore_page;\n\n\t/* set rgmii delay mode */\n\tswitch (phydev->interface) {\n\tcase PHY_INTERFACE_MODE_RGMII:\n\t\tge = YT8511_DELAY_GE_TX_DIS;\n\t\tfe = YT8511_DELAY_FE_TX_DIS;\n\t\tbreak;\n\tcase PHY_INTERFACE_MODE_RGMII_RXID:\n\t\tge = YT8511_DELAY_RX | YT8511_DELAY_GE_TX_DIS;\n\t\tfe = YT8511_DELAY_FE_TX_DIS;\n\t\tbreak;\n\tcase PHY_INTERFACE_MODE_RGMII_TXID:\n\t\tge = YT8511_DELAY_GE_TX_EN;\n\t\tfe = YT8511_DELAY_FE_TX_EN;\n\t\tbreak;\n\tcase PHY_INTERFACE_MODE_RGMII_ID:\n\t\tge = YT8511_DELAY_RX | YT8511_DELAY_GE_TX_EN;\n\t\tfe = YT8511_DELAY_FE_TX_EN;\n\t\tbreak;\n\tdefault: /* do not support other modes */\n\t\tret = -EOPNOTSUPP;\n\t\tgoto err_restore_page;\n\t}\n\n\tret = __phy_modify(phydev, YT8511_PAGE, (YT8511_DELAY_RX | YT8511_DELAY_GE_TX_EN), ge);\n\tif (ret < 0)\n\t\tgoto err_restore_page;\n\n\t/* set clock mode to 125mhz */\n\tret = __phy_modify(phydev, YT8511_PAGE, 0, YT8511_CLK_125M);\n\tif (ret < 0)\n\t\tgoto err_restore_page;\n\n\t/* fast ethernet delay is in a separate page */\n\tret = __phy_write(phydev, YT8511_PAGE_SELECT, YT8511_EXT_DELAY_DRIVE);\n\tif (ret < 0)\n\t\tgoto err_restore_page;\n\n\tret = __phy_modify(phydev, YT8511_PAGE, YT8511_DELAY_FE_TX_EN, fe);\n\tif (ret < 0)\n\t\tgoto err_restore_page;\n\n\t/* leave pll enabled in sleep */\n\tret = __phy_write(phydev, YT8511_PAGE_SELECT, YT8511_EXT_SLEEP_CTRL);\n\tif (ret < 0)\n\t\tgoto err_restore_page;\n\n\tret = __phy_modify(phydev, YT8511_PAGE, 0, YT8511_PLLON_SLP);\n\tif (ret < 0)\n\t\tgoto err_restore_page;\n\nerr_restore_page:\n\treturn phy_restore_page(phydev, oldpage, ret);\n}", "parent": null, "children": [102, 103], "start_point": {"row": 50, "column": 0}, "end_point": {"row": 111, "column": 1}}, {"id": 102, "type": "primitive_type", "text": "int", "parent": 101, "children": [], "start_point": {"row": 50, "column": 7}, "end_point": {"row": 50, "column": 10}}, {"id": 103, "type": "function_declarator", "text": "yt8511_config_init(struct phy_device *phydev)", "parent": 101, "children": [104, 105], "start_point": {"row": 50, "column": 11}, "end_point": {"row": 50, "column": 56}}, {"id": 104, "type": "identifier", "text": "yt8511_config_init", "parent": 103, "children": [], "start_point": {"row": 50, "column": 11}, "end_point": {"row": 50, "column": 29}}, {"id": 105, "type": "parameter_list", "text": "(struct phy_device *phydev)", "parent": 103, "children": [106], "start_point": {"row": 50, "column": 29}, "end_point": {"row": 50, "column": 56}}, {"id": 106, "type": "parameter_declaration", "text": "struct phy_device *phydev", "parent": 105, "children": [107, 110], "start_point": {"row": 50, "column": 30}, "end_point": {"row": 50, "column": 55}}, {"id": 107, "type": "struct_specifier", "text": "struct phy_device", "parent": 106, "children": [108, 109], "start_point": {"row": 50, "column": 30}, "end_point": {"row": 50, "column": 47}}, {"id": 108, "type": "struct", "text": "struct", "parent": 107, "children": [], "start_point": {"row": 50, "column": 30}, "end_point": {"row": 50, "column": 36}}, {"id": 109, "type": "type_identifier", "text": "phy_device", "parent": 107, "children": [], "start_point": {"row": 50, "column": 37}, "end_point": {"row": 50, "column": 47}}, {"id": 110, "type": "pointer_declarator", "text": "*phydev", "parent": 106, "children": [111, 112], "start_point": {"row": 50, "column": 48}, "end_point": {"row": 50, "column": 55}}, {"id": 111, "type": "*", "text": "*", "parent": 110, "children": [], "start_point": {"row": 50, "column": 48}, "end_point": {"row": 50, "column": 49}}, {"id": 112, "type": "identifier", "text": "phydev", "parent": 110, "children": [], "start_point": {"row": 50, "column": 49}, "end_point": {"row": 50, "column": 55}}, {"id": 113, "type": "declaration", "text": "int oldpage, ret = 0;", "parent": 101, "children": [114, 115, 116], "start_point": {"row": 52, "column": 1}, "end_point": {"row": 52, "column": 22}}, {"id": 114, "type": "primitive_type", "text": "int", "parent": 113, "children": [], "start_point": {"row": 52, "column": 1}, "end_point": {"row": 52, "column": 4}}, {"id": 115, "type": "identifier", "text": "oldpage", "parent": 113, "children": [], "start_point": {"row": 52, "column": 5}, "end_point": {"row": 52, "column": 12}}, {"id": 116, "type": "init_declarator", "text": "ret = 0", "parent": 113, "children": [117, 118, 119], "start_point": {"row": 52, "column": 14}, "end_point": {"row": 52, "column": 21}}, {"id": 117, "type": "identifier", "text": "ret", "parent": 116, "children": [], "start_point": {"row": 52, "column": 14}, "end_point": {"row": 52, "column": 17}}, {"id": 118, "type": "=", "text": "=", "parent": 116, "children": [], "start_point": {"row": 52, "column": 18}, "end_point": {"row": 52, "column": 19}}, {"id": 119, "type": "number_literal", "text": "0", "parent": 116, "children": [], "start_point": {"row": 52, "column": 20}, "end_point": {"row": 52, "column": 21}}, {"id": 120, "type": "declaration", "text": "unsigned int ge, fe;", "parent": 101, "children": [121, 124, 125], "start_point": {"row": 53, "column": 1}, "end_point": {"row": 53, "column": 21}}, {"id": 121, "type": "sized_type_specifier", "text": "unsigned int", "parent": 120, "children": [122, 123], "start_point": {"row": 53, "column": 1}, "end_point": {"row": 53, "column": 13}}, {"id": 122, "type": "unsigned", "text": "unsigned", "parent": 121, "children": [], "start_point": {"row": 53, "column": 1}, "end_point": {"row": 53, "column": 9}}, {"id": 123, "type": "primitive_type", "text": "int", "parent": 121, "children": [], "start_point": {"row": 53, "column": 10}, "end_point": {"row": 53, "column": 13}}, {"id": 124, "type": "identifier", "text": "ge", "parent": 120, "children": [], "start_point": {"row": 53, "column": 14}, "end_point": {"row": 53, "column": 16}}, {"id": 125, "type": "identifier", "text": "fe", "parent": 120, "children": [], "start_point": {"row": 53, "column": 18}, "end_point": {"row": 53, "column": 20}}, {"id": 126, "type": "assignment_expression", "text": "oldpage = phy_select_page(phydev, YT8511_EXT_CLK_GATE)", "parent": 101, "children": [127, 128, 129], "start_point": {"row": 55, "column": 1}, "end_point": {"row": 55, "column": 55}}, {"id": 127, "type": "identifier", "text": "oldpage", "parent": 126, "children": [], "start_point": {"row": 55, "column": 1}, "end_point": {"row": 55, "column": 8}}, {"id": 128, "type": "=", "text": "=", "parent": 126, "children": [], "start_point": {"row": 55, "column": 9}, "end_point": {"row": 55, "column": 10}}, {"id": 129, "type": "call_expression", "text": "phy_select_page(phydev, YT8511_EXT_CLK_GATE)", "parent": 126, "children": [130, 131], "start_point": {"row": 55, "column": 11}, "end_point": {"row": 55, "column": 55}}, {"id": 130, "type": "identifier", "text": "phy_select_page", "parent": 129, "children": [], "start_point": {"row": 55, "column": 11}, "end_point": {"row": 55, "column": 26}}, {"id": 131, "type": "argument_list", "text": "(phydev, YT8511_EXT_CLK_GATE)", "parent": 129, "children": [132, 133], "start_point": {"row": 55, "column": 26}, "end_point": {"row": 55, "column": 55}}, {"id": 132, "type": "identifier", "text": "phydev", "parent": 131, "children": [], "start_point": {"row": 55, "column": 27}, "end_point": {"row": 55, "column": 33}}, {"id": 133, "type": "identifier", "text": "YT8511_EXT_CLK_GATE", "parent": 131, "children": [], "start_point": {"row": 55, "column": 35}, "end_point": {"row": 55, "column": 54}}, {"id": 134, "type": "if_statement", "text": "if (oldpage < 0)\n\t\tgoto err_restore_page;", "parent": 101, "children": [135, 140], "start_point": {"row": 56, "column": 1}, "end_point": {"row": 57, "column": 24}}, {"id": 135, "type": "parenthesized_expression", "text": "(oldpage < 0)", "parent": 134, "children": [136], "start_point": {"row": 56, "column": 4}, "end_point": {"row": 56, "column": 17}}, {"id": 136, "type": "binary_expression", "text": "oldpage < 0", "parent": 135, "children": [137, 138, 139], "start_point": {"row": 56, "column": 5}, "end_point": {"row": 56, "column": 16}}, {"id": 137, "type": "identifier", "text": "oldpage", "parent": 136, "children": [], "start_point": {"row": 56, "column": 5}, "end_point": {"row": 56, "column": 12}}, {"id": 138, "type": "<", "text": "<", "parent": 136, "children": [], "start_point": {"row": 56, "column": 13}, "end_point": {"row": 56, "column": 14}}, {"id": 139, "type": "number_literal", "text": "0", "parent": 136, "children": [], "start_point": {"row": 56, "column": 15}, "end_point": {"row": 56, "column": 16}}, {"id": 140, "type": "goto_statement", "text": "goto err_restore_page;", "parent": 134, "children": [141, 142], "start_point": {"row": 57, "column": 2}, "end_point": {"row": 57, "column": 24}}, {"id": 141, "type": "goto", "text": "goto", "parent": 140, "children": [], "start_point": {"row": 57, "column": 2}, "end_point": {"row": 57, "column": 6}}, {"id": 142, "type": "statement_identifier", "text": "err_restore_page", "parent": 140, "children": [], "start_point": {"row": 57, "column": 7}, "end_point": {"row": 57, "column": 23}}, {"id": 143, "type": "switch_statement", "text": "switch (phydev->interface) {\n\tcase PHY_INTERFACE_MODE_RGMII:\n\t\tge = YT8511_DELAY_GE_TX_DIS;\n\t\tfe = YT8511_DELAY_FE_TX_DIS;\n\t\tbreak;\n\tcase PHY_INTERFACE_MODE_RGMII_RXID:\n\t\tge = YT8511_DELAY_RX | YT8511_DELAY_GE_TX_DIS;\n\t\tfe = YT8511_DELAY_FE_TX_DIS;\n\t\tbreak;\n\tcase PHY_INTERFACE_MODE_RGMII_TXID:\n\t\tge = YT8511_DELAY_GE_TX_EN;\n\t\tfe = YT8511_DELAY_FE_TX_EN;\n\t\tbreak;\n\tcase PHY_INTERFACE_MODE_RGMII_ID:\n\t\tge = YT8511_DELAY_RX | YT8511_DELAY_GE_TX_EN;\n\t\tfe = YT8511_DELAY_FE_TX_EN;\n\t\tbreak;\n\tdefault: /* do not support other modes */\n\t\tret = -EOPNOTSUPP;\n\t\tgoto err_restore_page;\n\t}", "parent": 101, "children": [144, 145], "start_point": {"row": 60, "column": 1}, "end_point": {"row": 80, "column": 2}}, {"id": 144, "type": "switch", "text": "switch", "parent": 143, "children": [], "start_point": {"row": 60, "column": 1}, "end_point": {"row": 60, "column": 7}}, {"id": 145, "type": "parenthesized_expression", "text": "(phydev->interface)", "parent": 143, "children": [146], "start_point": {"row": 60, "column": 8}, "end_point": {"row": 60, "column": 27}}, {"id": 146, "type": "field_expression", "text": "phydev->interface", "parent": 145, "children": [147, 148], "start_point": {"row": 60, "column": 9}, "end_point": {"row": 60, "column": 26}}, {"id": 147, "type": "identifier", "text": "phydev", "parent": 146, "children": [], "start_point": {"row": 60, "column": 9}, "end_point": {"row": 60, "column": 15}}, {"id": 148, "type": "field_identifier", "text": "interface", "parent": 146, "children": [], "start_point": {"row": 60, "column": 17}, "end_point": {"row": 60, "column": 26}}, {"id": 149, "type": "case_statement", "text": "case PHY_INTERFACE_MODE_RGMII:\n\t\tge = YT8511_DELAY_GE_TX_DIS;\n\t\tfe = YT8511_DELAY_FE_TX_DIS;\n\t\tbreak;", "parent": 143, "children": [150, 151, 160], "start_point": {"row": 61, "column": 1}, "end_point": {"row": 64, "column": 8}}, {"id": 150, "type": "case", "text": "case", "parent": 149, "children": [], "start_point": {"row": 61, "column": 1}, "end_point": {"row": 61, "column": 5}}, {"id": 151, "type": "identifier", "text": "PHY_INTERFACE_MODE_RGMII", "parent": 149, "children": [], "start_point": {"row": 61, "column": 6}, "end_point": {"row": 61, "column": 30}}, {"id": 152, "type": "assignment_expression", "text": "ge = YT8511_DELAY_GE_TX_DIS", "parent": 149, "children": [153, 154, 155], "start_point": {"row": 62, "column": 2}, "end_point": {"row": 62, "column": 29}}, {"id": 153, "type": "identifier", "text": "ge", "parent": 152, "children": [], "start_point": {"row": 62, "column": 2}, "end_point": {"row": 62, "column": 4}}, {"id": 154, "type": "=", "text": "=", "parent": 152, "children": [], "start_point": {"row": 62, "column": 5}, "end_point": {"row": 62, "column": 6}}, {"id": 155, "type": "identifier", "text": "YT8511_DELAY_GE_TX_DIS", "parent": 152, "children": [], "start_point": {"row": 62, "column": 7}, "end_point": {"row": 62, "column": 29}}, {"id": 156, "type": "assignment_expression", "text": "fe = YT8511_DELAY_FE_TX_DIS", "parent": 149, "children": [157, 158, 159], "start_point": {"row": 63, "column": 2}, "end_point": {"row": 63, "column": 29}}, {"id": 157, "type": "identifier", "text": "fe", "parent": 156, "children": [], "start_point": {"row": 63, "column": 2}, "end_point": {"row": 63, "column": 4}}, {"id": 158, "type": "=", "text": "=", "parent": 156, "children": [], "start_point": {"row": 63, "column": 5}, "end_point": {"row": 63, "column": 6}}, {"id": 159, "type": "identifier", "text": "YT8511_DELAY_FE_TX_DIS", "parent": 156, "children": [], "start_point": {"row": 63, "column": 7}, "end_point": {"row": 63, "column": 29}}, {"id": 160, "type": "break_statement", "text": "break;", "parent": 149, "children": [161], "start_point": {"row": 64, "column": 2}, "end_point": {"row": 64, "column": 8}}, {"id": 161, "type": "break", "text": "break", "parent": 160, "children": [], "start_point": {"row": 64, "column": 2}, "end_point": {"row": 64, "column": 7}}, {"id": 162, "type": "case_statement", "text": "case PHY_INTERFACE_MODE_RGMII_RXID:\n\t\tge = YT8511_DELAY_RX | YT8511_DELAY_GE_TX_DIS;\n\t\tfe = YT8511_DELAY_FE_TX_DIS;\n\t\tbreak;", "parent": 143, "children": [163, 164, 175], "start_point": {"row": 65, "column": 1}, "end_point": {"row": 68, "column": 8}}, {"id": 163, "type": "case", "text": "case", "parent": 162, "children": [], "start_point": {"row": 65, "column": 1}, "end_point": {"row": 65, "column": 5}}, {"id": 164, "type": "identifier", "text": "PHY_INTERFACE_MODE_RGMII_RXID", "parent": 162, "children": [], "start_point": {"row": 65, "column": 6}, "end_point": {"row": 65, "column": 35}}, {"id": 165, "type": "assignment_expression", "text": "ge = YT8511_DELAY_RX | YT8511_DELAY_GE_TX_DIS", "parent": 162, "children": [166, 167, 168], "start_point": {"row": 66, "column": 2}, "end_point": {"row": 66, "column": 47}}, {"id": 166, "type": "identifier", "text": "ge", "parent": 165, "children": [], "start_point": {"row": 66, "column": 2}, "end_point": {"row": 66, "column": 4}}, {"id": 167, "type": "=", "text": "=", "parent": 165, "children": [], "start_point": {"row": 66, "column": 5}, "end_point": {"row": 66, "column": 6}}, {"id": 168, "type": "binary_expression", "text": "YT8511_DELAY_RX | YT8511_DELAY_GE_TX_DIS", "parent": 165, "children": [169, 170], "start_point": {"row": 66, "column": 7}, "end_point": {"row": 66, "column": 47}}, {"id": 169, "type": "identifier", "text": "YT8511_DELAY_RX", "parent": 168, "children": [], "start_point": {"row": 66, "column": 7}, "end_point": {"row": 66, "column": 22}}, {"id": 170, "type": "identifier", "text": "YT8511_DELAY_GE_TX_DIS", "parent": 168, "children": [], "start_point": {"row": 66, "column": 25}, "end_point": {"row": 66, "column": 47}}, {"id": 171, "type": "assignment_expression", "text": "fe = YT8511_DELAY_FE_TX_DIS", "parent": 162, "children": [172, 173, 174], "start_point": {"row": 67, "column": 2}, "end_point": {"row": 67, "column": 29}}, {"id": 172, "type": "identifier", "text": "fe", "parent": 171, "children": [], "start_point": {"row": 67, "column": 2}, "end_point": {"row": 67, "column": 4}}, {"id": 173, "type": "=", "text": "=", "parent": 171, "children": [], "start_point": {"row": 67, "column": 5}, "end_point": {"row": 67, "column": 6}}, {"id": 174, "type": "identifier", "text": "YT8511_DELAY_FE_TX_DIS", "parent": 171, "children": [], "start_point": {"row": 67, "column": 7}, "end_point": {"row": 67, "column": 29}}, {"id": 175, "type": "break_statement", "text": "break;", "parent": 162, "children": [176], "start_point": {"row": 68, "column": 2}, "end_point": {"row": 68, "column": 8}}, {"id": 176, "type": "break", "text": "break", "parent": 175, "children": [], "start_point": {"row": 68, "column": 2}, "end_point": {"row": 68, "column": 7}}, {"id": 177, "type": "case_statement", "text": "case PHY_INTERFACE_MODE_RGMII_TXID:\n\t\tge = YT8511_DELAY_GE_TX_EN;\n\t\tfe = YT8511_DELAY_FE_TX_EN;\n\t\tbreak;", "parent": 143, "children": [178, 179, 188], "start_point": {"row": 69, "column": 1}, "end_point": {"row": 72, "column": 8}}, {"id": 178, "type": "case", "text": "case", "parent": 177, "children": [], "start_point": {"row": 69, "column": 1}, "end_point": {"row": 69, "column": 5}}, {"id": 179, "type": "identifier", "text": "PHY_INTERFACE_MODE_RGMII_TXID", "parent": 177, "children": [], "start_point": {"row": 69, "column": 6}, "end_point": {"row": 69, "column": 35}}, {"id": 180, "type": "assignment_expression", "text": "ge = YT8511_DELAY_GE_TX_EN", "parent": 177, "children": [181, 182, 183], "start_point": {"row": 70, "column": 2}, "end_point": {"row": 70, "column": 28}}, {"id": 181, "type": "identifier", "text": "ge", "parent": 180, "children": [], "start_point": {"row": 70, "column": 2}, "end_point": {"row": 70, "column": 4}}, {"id": 182, "type": "=", "text": "=", "parent": 180, "children": [], "start_point": {"row": 70, "column": 5}, "end_point": {"row": 70, "column": 6}}, {"id": 183, "type": "identifier", "text": "YT8511_DELAY_GE_TX_EN", "parent": 180, "children": [], "start_point": {"row": 70, "column": 7}, "end_point": {"row": 70, "column": 28}}, {"id": 184, "type": "assignment_expression", "text": "fe = YT8511_DELAY_FE_TX_EN", "parent": 177, "children": [185, 186, 187], "start_point": {"row": 71, "column": 2}, "end_point": {"row": 71, "column": 28}}, {"id": 185, "type": "identifier", "text": "fe", "parent": 184, "children": [], "start_point": {"row": 71, "column": 2}, "end_point": {"row": 71, "column": 4}}, {"id": 186, "type": "=", "text": "=", "parent": 184, "children": [], "start_point": {"row": 71, "column": 5}, "end_point": {"row": 71, "column": 6}}, {"id": 187, "type": "identifier", "text": "YT8511_DELAY_FE_TX_EN", "parent": 184, "children": [], "start_point": {"row": 71, "column": 7}, "end_point": {"row": 71, "column": 28}}, {"id": 188, "type": "break_statement", "text": "break;", "parent": 177, "children": [189], "start_point": {"row": 72, "column": 2}, "end_point": {"row": 72, "column": 8}}, {"id": 189, "type": "break", "text": "break", "parent": 188, "children": [], "start_point": {"row": 72, "column": 2}, "end_point": {"row": 72, "column": 7}}, {"id": 190, "type": "case_statement", "text": "case PHY_INTERFACE_MODE_RGMII_ID:\n\t\tge = YT8511_DELAY_RX | YT8511_DELAY_GE_TX_EN;\n\t\tfe = YT8511_DELAY_FE_TX_EN;\n\t\tbreak;", "parent": 143, "children": [191, 192, 203], "start_point": {"row": 73, "column": 1}, "end_point": {"row": 76, "column": 8}}, {"id": 191, "type": "case", "text": "case", "parent": 190, "children": [], "start_point": {"row": 73, "column": 1}, "end_point": {"row": 73, "column": 5}}, {"id": 192, "type": "identifier", "text": "PHY_INTERFACE_MODE_RGMII_ID", "parent": 190, "children": [], "start_point": {"row": 73, "column": 6}, "end_point": {"row": 73, "column": 33}}, {"id": 193, "type": "assignment_expression", "text": "ge = YT8511_DELAY_RX | YT8511_DELAY_GE_TX_EN", "parent": 190, "children": [194, 195, 196], "start_point": {"row": 74, "column": 2}, "end_point": {"row": 74, "column": 46}}, {"id": 194, "type": "identifier", "text": "ge", "parent": 193, "children": [], "start_point": {"row": 74, "column": 2}, "end_point": {"row": 74, "column": 4}}, {"id": 195, "type": "=", "text": "=", "parent": 193, "children": [], "start_point": {"row": 74, "column": 5}, "end_point": {"row": 74, "column": 6}}, {"id": 196, "type": "binary_expression", "text": "YT8511_DELAY_RX | YT8511_DELAY_GE_TX_EN", "parent": 193, "children": [197, 198], "start_point": {"row": 74, "column": 7}, "end_point": {"row": 74, "column": 46}}, {"id": 197, "type": "identifier", "text": "YT8511_DELAY_RX", "parent": 196, "children": [], "start_point": {"row": 74, "column": 7}, "end_point": {"row": 74, "column": 22}}, {"id": 198, "type": "identifier", "text": "YT8511_DELAY_GE_TX_EN", "parent": 196, "children": [], "start_point": {"row": 74, "column": 25}, "end_point": {"row": 74, "column": 46}}, {"id": 199, "type": "assignment_expression", "text": "fe = YT8511_DELAY_FE_TX_EN", "parent": 190, "children": [200, 201, 202], "start_point": {"row": 75, "column": 2}, "end_point": {"row": 75, "column": 28}}, {"id": 200, "type": "identifier", "text": "fe", "parent": 199, "children": [], "start_point": {"row": 75, "column": 2}, "end_point": {"row": 75, "column": 4}}, {"id": 201, "type": "=", "text": "=", "parent": 199, "children": [], "start_point": {"row": 75, "column": 5}, "end_point": {"row": 75, "column": 6}}, {"id": 202, "type": "identifier", "text": "YT8511_DELAY_FE_TX_EN", "parent": 199, "children": [], "start_point": {"row": 75, "column": 7}, "end_point": {"row": 75, "column": 28}}, {"id": 203, "type": "break_statement", "text": "break;", "parent": 190, "children": [204], "start_point": {"row": 76, "column": 2}, "end_point": {"row": 76, "column": 8}}, {"id": 204, "type": "break", "text": "break", "parent": 203, "children": [], "start_point": {"row": 76, "column": 2}, "end_point": {"row": 76, "column": 7}}, {"id": 205, "type": "case_statement", "text": "default: /* do not support other modes */\n\t\tret = -EOPNOTSUPP;\n\t\tgoto err_restore_page;", "parent": 143, "children": [206, 213], "start_point": {"row": 77, "column": 1}, "end_point": {"row": 79, "column": 24}}, {"id": 206, "type": "default", "text": "default", "parent": 205, "children": [], "start_point": {"row": 77, "column": 1}, "end_point": {"row": 77, "column": 8}}, {"id": 207, "type": "assignment_expression", "text": "ret = -EOPNOTSUPP", "parent": 205, "children": [208, 209, 210], "start_point": {"row": 78, "column": 2}, "end_point": {"row": 78, "column": 19}}, {"id": 208, "type": "identifier", "text": "ret", "parent": 207, "children": [], "start_point": {"row": 78, "column": 2}, "end_point": {"row": 78, "column": 5}}, {"id": 209, "type": "=", "text": "=", "parent": 207, "children": [], "start_point": {"row": 78, "column": 6}, "end_point": {"row": 78, "column": 7}}, {"id": 210, "type": "unary_expression", "text": "-EOPNOTSUPP", "parent": 207, "children": [211, 212], "start_point": {"row": 78, "column": 8}, "end_point": {"row": 78, "column": 19}}, {"id": 211, "type": "-", "text": "-", "parent": 210, "children": [], "start_point": {"row": 78, "column": 8}, "end_point": {"row": 78, "column": 9}}, {"id": 212, "type": "identifier", "text": "EOPNOTSUPP", "parent": 210, "children": [], "start_point": {"row": 78, "column": 9}, "end_point": {"row": 78, "column": 19}}, {"id": 213, "type": "goto_statement", "text": "goto err_restore_page;", "parent": 205, "children": [214, 215], "start_point": {"row": 79, "column": 2}, "end_point": {"row": 79, "column": 24}}, {"id": 214, "type": "goto", "text": "goto", "parent": 213, "children": [], "start_point": {"row": 79, "column": 2}, "end_point": {"row": 79, "column": 6}}, {"id": 215, "type": "statement_identifier", "text": "err_restore_page", "parent": 213, "children": [], "start_point": {"row": 79, "column": 7}, "end_point": {"row": 79, "column": 23}}, {"id": 216, "type": "assignment_expression", "text": "ret = __phy_modify(phydev, YT8511_PAGE, (YT8511_DELAY_RX | YT8511_DELAY_GE_TX_EN), ge)", "parent": 101, "children": [217, 218, 219], "start_point": {"row": 82, "column": 1}, "end_point": {"row": 82, "column": 87}}, {"id": 217, "type": "identifier", "text": "ret", "parent": 216, "children": [], "start_point": {"row": 82, "column": 1}, "end_point": {"row": 82, "column": 4}}, {"id": 218, "type": "=", "text": "=", "parent": 216, "children": [], "start_point": {"row": 82, "column": 5}, "end_point": {"row": 82, "column": 6}}, {"id": 219, "type": "call_expression", "text": "__phy_modify(phydev, YT8511_PAGE, (YT8511_DELAY_RX | YT8511_DELAY_GE_TX_EN), ge)", "parent": 216, "children": [220, 221], "start_point": {"row": 82, "column": 7}, "end_point": {"row": 82, "column": 87}}, {"id": 220, "type": "identifier", "text": "__phy_modify", "parent": 219, "children": [], "start_point": {"row": 82, "column": 7}, "end_point": {"row": 82, "column": 19}}, {"id": 221, "type": "argument_list", "text": "(phydev, YT8511_PAGE, (YT8511_DELAY_RX | YT8511_DELAY_GE_TX_EN), ge)", "parent": 219, "children": [222, 223, 224, 228], "start_point": {"row": 82, "column": 19}, "end_point": {"row": 82, "column": 87}}, {"id": 222, "type": "identifier", "text": "phydev", "parent": 221, "children": [], "start_point": {"row": 82, "column": 20}, "end_point": {"row": 82, "column": 26}}, {"id": 223, "type": "identifier", "text": "YT8511_PAGE", "parent": 221, "children": [], "start_point": {"row": 82, "column": 28}, "end_point": {"row": 82, "column": 39}}, {"id": 224, "type": "parenthesized_expression", "text": "(YT8511_DELAY_RX | YT8511_DELAY_GE_TX_EN)", "parent": 221, "children": [225], "start_point": {"row": 82, "column": 41}, "end_point": {"row": 82, "column": 82}}, {"id": 225, "type": "binary_expression", "text": "YT8511_DELAY_RX | YT8511_DELAY_GE_TX_EN", "parent": 224, "children": [226, 227], "start_point": {"row": 82, "column": 42}, "end_point": {"row": 82, "column": 81}}, {"id": 226, "type": "identifier", "text": "YT8511_DELAY_RX", "parent": 225, "children": [], "start_point": {"row": 82, "column": 42}, "end_point": {"row": 82, "column": 57}}, {"id": 227, "type": "identifier", "text": "YT8511_DELAY_GE_TX_EN", "parent": 225, "children": [], "start_point": {"row": 82, "column": 60}, "end_point": {"row": 82, "column": 81}}, {"id": 228, "type": "identifier", "text": "ge", "parent": 221, "children": [], "start_point": {"row": 82, "column": 84}, "end_point": {"row": 82, "column": 86}}, {"id": 229, "type": "if_statement", "text": "if (ret < 0)\n\t\tgoto err_restore_page;", "parent": 101, "children": [230, 235], "start_point": {"row": 83, "column": 1}, "end_point": {"row": 84, "column": 24}}, {"id": 230, "type": "parenthesized_expression", "text": "(ret < 0)", "parent": 229, "children": [231], "start_point": {"row": 83, "column": 4}, "end_point": {"row": 83, "column": 13}}, {"id": 231, "type": "binary_expression", "text": "ret < 0", "parent": 230, "children": [232, 233, 234], "start_point": {"row": 83, "column": 5}, "end_point": {"row": 83, "column": 12}}, {"id": 232, "type": "identifier", "text": "ret", "parent": 231, "children": [], "start_point": {"row": 83, "column": 5}, "end_point": {"row": 83, "column": 8}}, {"id": 233, "type": "<", "text": "<", "parent": 231, "children": [], "start_point": {"row": 83, "column": 9}, "end_point": {"row": 83, "column": 10}}, {"id": 234, "type": "number_literal", "text": "0", "parent": 231, "children": [], "start_point": {"row": 83, "column": 11}, "end_point": {"row": 83, "column": 12}}, {"id": 235, "type": "goto_statement", "text": "goto err_restore_page;", "parent": 229, "children": [236, 237], "start_point": {"row": 84, "column": 2}, "end_point": {"row": 84, "column": 24}}, {"id": 236, "type": "goto", "text": "goto", "parent": 235, "children": [], "start_point": {"row": 84, "column": 2}, "end_point": {"row": 84, "column": 6}}, {"id": 237, "type": "statement_identifier", "text": "err_restore_page", "parent": 235, "children": [], "start_point": {"row": 84, "column": 7}, "end_point": {"row": 84, "column": 23}}, {"id": 238, "type": "assignment_expression", "text": "ret = __phy_modify(phydev, YT8511_PAGE, 0, YT8511_CLK_125M)", "parent": 101, "children": [239, 240, 241], "start_point": {"row": 87, "column": 1}, "end_point": {"row": 87, "column": 60}}, {"id": 239, "type": "identifier", "text": "ret", "parent": 238, "children": [], "start_point": {"row": 87, "column": 1}, "end_point": {"row": 87, "column": 4}}, {"id": 240, "type": "=", "text": "=", "parent": 238, "children": [], "start_point": {"row": 87, "column": 5}, "end_point": {"row": 87, "column": 6}}, {"id": 241, "type": "call_expression", "text": "__phy_modify(phydev, YT8511_PAGE, 0, YT8511_CLK_125M)", "parent": 238, "children": [242, 243], "start_point": {"row": 87, "column": 7}, "end_point": {"row": 87, "column": 60}}, {"id": 242, "type": "identifier", "text": "__phy_modify", "parent": 241, "children": [], "start_point": {"row": 87, "column": 7}, "end_point": {"row": 87, "column": 19}}, {"id": 243, "type": "argument_list", "text": "(phydev, YT8511_PAGE, 0, YT8511_CLK_125M)", "parent": 241, "children": [244, 245, 246, 247], "start_point": {"row": 87, "column": 19}, "end_point": {"row": 87, "column": 60}}, {"id": 244, "type": "identifier", "text": "phydev", "parent": 243, "children": [], "start_point": {"row": 87, "column": 20}, "end_point": {"row": 87, "column": 26}}, {"id": 245, "type": "identifier", "text": "YT8511_PAGE", "parent": 243, "children": [], "start_point": {"row": 87, "column": 28}, "end_point": {"row": 87, "column": 39}}, {"id": 246, "type": "number_literal", "text": "0", "parent": 243, "children": [], "start_point": {"row": 87, "column": 41}, "end_point": {"row": 87, "column": 42}}, {"id": 247, "type": "identifier", "text": "YT8511_CLK_125M", "parent": 243, "children": [], "start_point": {"row": 87, "column": 44}, "end_point": {"row": 87, "column": 59}}, {"id": 248, "type": "if_statement", "text": "if (ret < 0)\n\t\tgoto err_restore_page;", "parent": 101, "children": [249, 254], "start_point": {"row": 88, "column": 1}, "end_point": {"row": 89, "column": 24}}, {"id": 249, "type": "parenthesized_expression", "text": "(ret < 0)", "parent": 248, "children": [250], "start_point": {"row": 88, "column": 4}, "end_point": {"row": 88, "column": 13}}, {"id": 250, "type": "binary_expression", "text": "ret < 0", "parent": 249, "children": [251, 252, 253], "start_point": {"row": 88, "column": 5}, "end_point": {"row": 88, "column": 12}}, {"id": 251, "type": "identifier", "text": "ret", "parent": 250, "children": [], "start_point": {"row": 88, "column": 5}, "end_point": {"row": 88, "column": 8}}, {"id": 252, "type": "<", "text": "<", "parent": 250, "children": [], "start_point": {"row": 88, "column": 9}, "end_point": {"row": 88, "column": 10}}, {"id": 253, "type": "number_literal", "text": "0", "parent": 250, "children": [], "start_point": {"row": 88, "column": 11}, "end_point": {"row": 88, "column": 12}}, {"id": 254, "type": "goto_statement", "text": "goto err_restore_page;", "parent": 248, "children": [255, 256], "start_point": {"row": 89, "column": 2}, "end_point": {"row": 89, "column": 24}}, {"id": 255, "type": "goto", "text": "goto", "parent": 254, "children": [], "start_point": {"row": 89, "column": 2}, "end_point": {"row": 89, "column": 6}}, {"id": 256, "type": "statement_identifier", "text": "err_restore_page", "parent": 254, "children": [], "start_point": {"row": 89, "column": 7}, "end_point": {"row": 89, "column": 23}}, {"id": 257, "type": "assignment_expression", "text": "ret = __phy_write(phydev, YT8511_PAGE_SELECT, YT8511_EXT_DELAY_DRIVE)", "parent": 101, "children": [258, 259, 260], "start_point": {"row": 92, "column": 1}, "end_point": {"row": 92, "column": 70}}, {"id": 258, "type": "identifier", "text": "ret", "parent": 257, "children": [], "start_point": {"row": 92, "column": 1}, "end_point": {"row": 92, "column": 4}}, {"id": 259, "type": "=", "text": "=", "parent": 257, "children": [], "start_point": {"row": 92, "column": 5}, "end_point": {"row": 92, "column": 6}}, {"id": 260, "type": "call_expression", "text": "__phy_write(phydev, YT8511_PAGE_SELECT, YT8511_EXT_DELAY_DRIVE)", "parent": 257, "children": [261, 262], "start_point": {"row": 92, "column": 7}, "end_point": {"row": 92, "column": 70}}, {"id": 261, "type": "identifier", "text": "__phy_write", "parent": 260, "children": [], "start_point": {"row": 92, "column": 7}, "end_point": {"row": 92, "column": 18}}, {"id": 262, "type": "argument_list", "text": "(phydev, YT8511_PAGE_SELECT, YT8511_EXT_DELAY_DRIVE)", "parent": 260, "children": [263, 264, 265], "start_point": {"row": 92, "column": 18}, "end_point": {"row": 92, "column": 70}}, {"id": 263, "type": "identifier", "text": "phydev", "parent": 262, "children": [], "start_point": {"row": 92, "column": 19}, "end_point": {"row": 92, "column": 25}}, {"id": 264, "type": "identifier", "text": "YT8511_PAGE_SELECT", "parent": 262, "children": [], "start_point": {"row": 92, "column": 27}, "end_point": {"row": 92, "column": 45}}, {"id": 265, "type": "identifier", "text": "YT8511_EXT_DELAY_DRIVE", "parent": 262, "children": [], "start_point": {"row": 92, "column": 47}, "end_point": {"row": 92, "column": 69}}, {"id": 266, "type": "if_statement", "text": "if (ret < 0)\n\t\tgoto err_restore_page;", "parent": 101, "children": [267, 272], "start_point": {"row": 93, "column": 1}, "end_point": {"row": 94, "column": 24}}, {"id": 267, "type": "parenthesized_expression", "text": "(ret < 0)", "parent": 266, "children": [268], "start_point": {"row": 93, "column": 4}, "end_point": {"row": 93, "column": 13}}, {"id": 268, "type": "binary_expression", "text": "ret < 0", "parent": 267, "children": [269, 270, 271], "start_point": {"row": 93, "column": 5}, "end_point": {"row": 93, "column": 12}}, {"id": 269, "type": "identifier", "text": "ret", "parent": 268, "children": [], "start_point": {"row": 93, "column": 5}, "end_point": {"row": 93, "column": 8}}, {"id": 270, "type": "<", "text": "<", "parent": 268, "children": [], "start_point": {"row": 93, "column": 9}, "end_point": {"row": 93, "column": 10}}, {"id": 271, "type": "number_literal", "text": "0", "parent": 268, "children": [], "start_point": {"row": 93, "column": 11}, "end_point": {"row": 93, "column": 12}}, {"id": 272, "type": "goto_statement", "text": "goto err_restore_page;", "parent": 266, "children": [273, 274], "start_point": {"row": 94, "column": 2}, "end_point": {"row": 94, "column": 24}}, {"id": 273, "type": "goto", "text": "goto", "parent": 272, "children": [], "start_point": {"row": 94, "column": 2}, "end_point": {"row": 94, "column": 6}}, {"id": 274, "type": "statement_identifier", "text": "err_restore_page", "parent": 272, "children": [], "start_point": {"row": 94, "column": 7}, "end_point": {"row": 94, "column": 23}}, {"id": 275, "type": "assignment_expression", "text": "ret = __phy_modify(phydev, YT8511_PAGE, YT8511_DELAY_FE_TX_EN, fe)", "parent": 101, "children": [276, 277, 278], "start_point": {"row": 96, "column": 1}, "end_point": {"row": 96, "column": 67}}, {"id": 276, "type": "identifier", "text": "ret", "parent": 275, "children": [], "start_point": {"row": 96, "column": 1}, "end_point": {"row": 96, "column": 4}}, {"id": 277, "type": "=", "text": "=", "parent": 275, "children": [], "start_point": {"row": 96, "column": 5}, "end_point": {"row": 96, "column": 6}}, {"id": 278, "type": "call_expression", "text": "__phy_modify(phydev, YT8511_PAGE, YT8511_DELAY_FE_TX_EN, fe)", "parent": 275, "children": [279, 280], "start_point": {"row": 96, "column": 7}, "end_point": {"row": 96, "column": 67}}, {"id": 279, "type": "identifier", "text": "__phy_modify", "parent": 278, "children": [], "start_point": {"row": 96, "column": 7}, "end_point": {"row": 96, "column": 19}}, {"id": 280, "type": "argument_list", "text": "(phydev, YT8511_PAGE, YT8511_DELAY_FE_TX_EN, fe)", "parent": 278, "children": [281, 282, 283, 284], "start_point": {"row": 96, "column": 19}, "end_point": {"row": 96, "column": 67}}, {"id": 281, "type": "identifier", "text": "phydev", "parent": 280, "children": [], "start_point": {"row": 96, "column": 20}, "end_point": {"row": 96, "column": 26}}, {"id": 282, "type": "identifier", "text": "YT8511_PAGE", "parent": 280, "children": [], "start_point": {"row": 96, "column": 28}, "end_point": {"row": 96, "column": 39}}, {"id": 283, "type": "identifier", "text": "YT8511_DELAY_FE_TX_EN", "parent": 280, "children": [], "start_point": {"row": 96, "column": 41}, "end_point": {"row": 96, "column": 62}}, {"id": 284, "type": "identifier", "text": "fe", "parent": 280, "children": [], "start_point": {"row": 96, "column": 64}, "end_point": {"row": 96, "column": 66}}, {"id": 285, "type": "if_statement", "text": "if (ret < 0)\n\t\tgoto err_restore_page;", "parent": 101, "children": [286, 291], "start_point": {"row": 97, "column": 1}, "end_point": {"row": 98, "column": 24}}, {"id": 286, "type": "parenthesized_expression", "text": "(ret < 0)", "parent": 285, "children": [287], "start_point": {"row": 97, "column": 4}, "end_point": {"row": 97, "column": 13}}, {"id": 287, "type": "binary_expression", "text": "ret < 0", "parent": 286, "children": [288, 289, 290], "start_point": {"row": 97, "column": 5}, "end_point": {"row": 97, "column": 12}}, {"id": 288, "type": "identifier", "text": "ret", "parent": 287, "children": [], "start_point": {"row": 97, "column": 5}, "end_point": {"row": 97, "column": 8}}, {"id": 289, "type": "<", "text": "<", "parent": 287, "children": [], "start_point": {"row": 97, "column": 9}, "end_point": {"row": 97, "column": 10}}, {"id": 290, "type": "number_literal", "text": "0", "parent": 287, "children": [], "start_point": {"row": 97, "column": 11}, "end_point": {"row": 97, "column": 12}}, {"id": 291, "type": "goto_statement", "text": "goto err_restore_page;", "parent": 285, "children": [292, 293], "start_point": {"row": 98, "column": 2}, "end_point": {"row": 98, "column": 24}}, {"id": 292, "type": "goto", "text": "goto", "parent": 291, "children": [], "start_point": {"row": 98, "column": 2}, "end_point": {"row": 98, "column": 6}}, {"id": 293, "type": "statement_identifier", "text": "err_restore_page", "parent": 291, "children": [], "start_point": {"row": 98, "column": 7}, "end_point": {"row": 98, "column": 23}}, {"id": 294, "type": "assignment_expression", "text": "ret = __phy_write(phydev, YT8511_PAGE_SELECT, YT8511_EXT_SLEEP_CTRL)", "parent": 101, "children": [295, 296, 297], "start_point": {"row": 101, "column": 1}, "end_point": {"row": 101, "column": 69}}, {"id": 295, "type": "identifier", "text": "ret", "parent": 294, "children": [], "start_point": {"row": 101, "column": 1}, "end_point": {"row": 101, "column": 4}}, {"id": 296, "type": "=", "text": "=", "parent": 294, "children": [], "start_point": {"row": 101, "column": 5}, "end_point": {"row": 101, "column": 6}}, {"id": 297, "type": "call_expression", "text": "__phy_write(phydev, YT8511_PAGE_SELECT, YT8511_EXT_SLEEP_CTRL)", "parent": 294, "children": [298, 299], "start_point": {"row": 101, "column": 7}, "end_point": {"row": 101, "column": 69}}, {"id": 298, "type": "identifier", "text": "__phy_write", "parent": 297, "children": [], "start_point": {"row": 101, "column": 7}, "end_point": {"row": 101, "column": 18}}, {"id": 299, "type": "argument_list", "text": "(phydev, YT8511_PAGE_SELECT, YT8511_EXT_SLEEP_CTRL)", "parent": 297, "children": [300, 301, 302], "start_point": {"row": 101, "column": 18}, "end_point": {"row": 101, "column": 69}}, {"id": 300, "type": "identifier", "text": "phydev", "parent": 299, "children": [], "start_point": {"row": 101, "column": 19}, "end_point": {"row": 101, "column": 25}}, {"id": 301, "type": "identifier", "text": "YT8511_PAGE_SELECT", "parent": 299, "children": [], "start_point": {"row": 101, "column": 27}, "end_point": {"row": 101, "column": 45}}, {"id": 302, "type": "identifier", "text": "YT8511_EXT_SLEEP_CTRL", "parent": 299, "children": [], "start_point": {"row": 101, "column": 47}, "end_point": {"row": 101, "column": 68}}, {"id": 303, "type": "if_statement", "text": "if (ret < 0)\n\t\tgoto err_restore_page;", "parent": 101, "children": [304, 309], "start_point": {"row": 102, "column": 1}, "end_point": {"row": 103, "column": 24}}, {"id": 304, "type": "parenthesized_expression", "text": "(ret < 0)", "parent": 303, "children": [305], "start_point": {"row": 102, "column": 4}, "end_point": {"row": 102, "column": 13}}, {"id": 305, "type": "binary_expression", "text": "ret < 0", "parent": 304, "children": [306, 307, 308], "start_point": {"row": 102, "column": 5}, "end_point": {"row": 102, "column": 12}}, {"id": 306, "type": "identifier", "text": "ret", "parent": 305, "children": [], "start_point": {"row": 102, "column": 5}, "end_point": {"row": 102, "column": 8}}, {"id": 307, "type": "<", "text": "<", "parent": 305, "children": [], "start_point": {"row": 102, "column": 9}, "end_point": {"row": 102, "column": 10}}, {"id": 308, "type": "number_literal", "text": "0", "parent": 305, "children": [], "start_point": {"row": 102, "column": 11}, "end_point": {"row": 102, "column": 12}}, {"id": 309, "type": "goto_statement", "text": "goto err_restore_page;", "parent": 303, "children": [310, 311], "start_point": {"row": 103, "column": 2}, "end_point": {"row": 103, "column": 24}}, {"id": 310, "type": "goto", "text": "goto", "parent": 309, "children": [], "start_point": {"row": 103, "column": 2}, "end_point": {"row": 103, "column": 6}}, {"id": 311, "type": "statement_identifier", "text": "err_restore_page", "parent": 309, "children": [], "start_point": {"row": 103, "column": 7}, "end_point": {"row": 103, "column": 23}}, {"id": 312, "type": "assignment_expression", "text": "ret = __phy_modify(phydev, YT8511_PAGE, 0, YT8511_PLLON_SLP)", "parent": 101, "children": [313, 314, 315], "start_point": {"row": 105, "column": 1}, "end_point": {"row": 105, "column": 61}}, {"id": 313, "type": "identifier", "text": "ret", "parent": 312, "children": [], "start_point": {"row": 105, "column": 1}, "end_point": {"row": 105, "column": 4}}, {"id": 314, "type": "=", "text": "=", "parent": 312, "children": [], "start_point": {"row": 105, "column": 5}, "end_point": {"row": 105, "column": 6}}, {"id": 315, "type": "call_expression", "text": "__phy_modify(phydev, YT8511_PAGE, 0, YT8511_PLLON_SLP)", "parent": 312, "children": [316, 317], "start_point": {"row": 105, "column": 7}, "end_point": {"row": 105, "column": 61}}, {"id": 316, "type": "identifier", "text": "__phy_modify", "parent": 315, "children": [], "start_point": {"row": 105, "column": 7}, "end_point": {"row": 105, "column": 19}}, {"id": 317, "type": "argument_list", "text": "(phydev, YT8511_PAGE, 0, YT8511_PLLON_SLP)", "parent": 315, "children": [318, 319, 320, 321], "start_point": {"row": 105, "column": 19}, "end_point": {"row": 105, "column": 61}}, {"id": 318, "type": "identifier", "text": "phydev", "parent": 317, "children": [], "start_point": {"row": 105, "column": 20}, "end_point": {"row": 105, "column": 26}}, {"id": 319, "type": "identifier", "text": "YT8511_PAGE", "parent": 317, "children": [], "start_point": {"row": 105, "column": 28}, "end_point": {"row": 105, "column": 39}}, {"id": 320, "type": "number_literal", "text": "0", "parent": 317, "children": [], "start_point": {"row": 105, "column": 41}, "end_point": {"row": 105, "column": 42}}, {"id": 321, "type": "identifier", "text": "YT8511_PLLON_SLP", "parent": 317, "children": [], "start_point": {"row": 105, "column": 44}, "end_point": {"row": 105, "column": 60}}, {"id": 322, "type": "if_statement", "text": "if (ret < 0)\n\t\tgoto err_restore_page;", "parent": 101, "children": [323, 328], "start_point": {"row": 106, "column": 1}, "end_point": {"row": 107, "column": 24}}, {"id": 323, "type": "parenthesized_expression", "text": "(ret < 0)", "parent": 322, "children": [324], "start_point": {"row": 106, "column": 4}, "end_point": {"row": 106, "column": 13}}, {"id": 324, "type": "binary_expression", "text": "ret < 0", "parent": 323, "children": [325, 326, 327], "start_point": {"row": 106, "column": 5}, "end_point": {"row": 106, "column": 12}}, {"id": 325, "type": "identifier", "text": "ret", "parent": 324, "children": [], "start_point": {"row": 106, "column": 5}, "end_point": {"row": 106, "column": 8}}, {"id": 326, "type": "<", "text": "<", "parent": 324, "children": [], "start_point": {"row": 106, "column": 9}, "end_point": {"row": 106, "column": 10}}, {"id": 327, "type": "number_literal", "text": "0", "parent": 324, "children": [], "start_point": {"row": 106, "column": 11}, "end_point": {"row": 106, "column": 12}}, {"id": 328, "type": "goto_statement", "text": "goto err_restore_page;", "parent": 322, "children": [329, 330], "start_point": {"row": 107, "column": 2}, "end_point": {"row": 107, "column": 24}}, {"id": 329, "type": "goto", "text": "goto", "parent": 328, "children": [], "start_point": {"row": 107, "column": 2}, "end_point": {"row": 107, "column": 6}}, {"id": 330, "type": "statement_identifier", "text": "err_restore_page", "parent": 328, "children": [], "start_point": {"row": 107, "column": 7}, "end_point": {"row": 107, "column": 23}}, {"id": 331, "type": "labeled_statement", "text": "err_restore_page:\n\treturn phy_restore_page(phydev, oldpage, ret);", "parent": 101, "children": [332, 333], "start_point": {"row": 109, "column": 0}, "end_point": {"row": 110, "column": 47}}, {"id": 332, "type": "statement_identifier", "text": "err_restore_page", "parent": 331, "children": [], "start_point": {"row": 109, "column": 0}, "end_point": {"row": 109, "column": 16}}, {"id": 333, "type": "return_statement", "text": "return phy_restore_page(phydev, oldpage, ret);", "parent": 331, "children": [334], "start_point": {"row": 110, "column": 1}, "end_point": {"row": 110, "column": 47}}, {"id": 334, "type": "call_expression", "text": "phy_restore_page(phydev, oldpage, ret)", "parent": 333, "children": [335, 336], "start_point": {"row": 110, "column": 8}, "end_point": {"row": 110, "column": 46}}, {"id": 335, "type": "identifier", "text": "phy_restore_page", "parent": 334, "children": [], "start_point": {"row": 110, "column": 8}, "end_point": {"row": 110, "column": 24}}, {"id": 336, "type": "argument_list", "text": "(phydev, oldpage, ret)", "parent": 334, "children": [337, 338, 339], "start_point": {"row": 110, "column": 24}, "end_point": {"row": 110, "column": 46}}, {"id": 337, "type": "identifier", "text": "phydev", "parent": 336, "children": [], "start_point": {"row": 110, "column": 25}, "end_point": {"row": 110, "column": 31}}, {"id": 338, "type": "identifier", "text": "oldpage", "parent": 336, "children": [], "start_point": {"row": 110, "column": 33}, "end_point": {"row": 110, "column": 40}}, {"id": 339, "type": "identifier", "text": "ret", "parent": 336, "children": [], "start_point": {"row": 110, "column": 42}, "end_point": {"row": 110, "column": 45}}, {"id": 340, "type": "declaration", "text": "static struct phy_driver motorcomm_phy_drvs[] = {\n\t{\n\t\tPHY_ID_MATCH_EXACT(PHY_ID_YT8511),\n\t\t.name\t\t= \"YT8511 Gigabit Ethernet\",\n\t\t.config_init\t= yt8511_config_init,\n\t\t.suspend\t= genphy_suspend,\n\t\t.resume\t\t= genphy_resume,\n\t\t.read_page\t= yt8511_read_page,\n\t\t.write_page\t= yt8511_write_page,\n\t},\n};", "parent": null, "children": [341, 344], "start_point": {"row": 113, "column": 0}, "end_point": {"row": 123, "column": 2}}, {"id": 341, "type": "struct_specifier", "text": "struct phy_driver", "parent": 340, "children": [342, 343], "start_point": {"row": 113, "column": 7}, "end_point": {"row": 113, "column": 24}}, {"id": 342, "type": "struct", "text": "struct", "parent": 341, "children": [], "start_point": {"row": 113, "column": 7}, "end_point": {"row": 113, "column": 13}}, {"id": 343, "type": "type_identifier", "text": "phy_driver", "parent": 341, "children": [], "start_point": {"row": 113, "column": 14}, "end_point": {"row": 113, "column": 24}}, {"id": 344, "type": "init_declarator", "text": "motorcomm_phy_drvs[] = {\n\t{\n\t\tPHY_ID_MATCH_EXACT(PHY_ID_YT8511),\n\t\t.name\t\t= \"YT8511 Gigabit Ethernet\",\n\t\t.config_init\t= yt8511_config_init,\n\t\t.suspend\t= genphy_suspend,\n\t\t.resume\t\t= genphy_resume,\n\t\t.read_page\t= yt8511_read_page,\n\t\t.write_page\t= yt8511_write_page,\n\t},\n}", "parent": 340, "children": [345, 347, 348], "start_point": {"row": 113, "column": 25}, "end_point": {"row": 123, "column": 1}}, {"id": 345, "type": "array_declarator", "text": "motorcomm_phy_drvs[]", "parent": 344, "children": [346], "start_point": {"row": 113, "column": 25}, "end_point": {"row": 113, "column": 45}}, {"id": 346, "type": "identifier", "text": "motorcomm_phy_drvs", "parent": 345, "children": [], "start_point": {"row": 113, "column": 25}, "end_point": {"row": 113, "column": 43}}, {"id": 347, "type": "=", "text": "=", "parent": 344, "children": [], "start_point": {"row": 113, "column": 46}, "end_point": {"row": 113, "column": 47}}, {"id": 348, "type": "initializer_list", "text": "{\n\t{\n\t\tPHY_ID_MATCH_EXACT(PHY_ID_YT8511),\n\t\t.name\t\t= \"YT8511 Gigabit Ethernet\",\n\t\t.config_init\t= yt8511_config_init,\n\t\t.suspend\t= genphy_suspend,\n\t\t.resume\t\t= genphy_resume,\n\t\t.read_page\t= yt8511_read_page,\n\t\t.write_page\t= yt8511_write_page,\n\t},\n}", "parent": 344, "children": [349], "start_point": {"row": 113, "column": 48}, "end_point": {"row": 123, "column": 1}}, {"id": 349, "type": "initializer_list", "text": "{\n\t\tPHY_ID_MATCH_EXACT(PHY_ID_YT8511),\n\t\t.name\t\t= \"YT8511 Gigabit Ethernet\",\n\t\t.config_init\t= yt8511_config_init,\n\t\t.suspend\t= genphy_suspend,\n\t\t.resume\t\t= genphy_resume,\n\t\t.read_page\t= yt8511_read_page,\n\t\t.write_page\t= yt8511_write_page,\n\t}", "parent": 348, "children": [350, 354, 359, 364, 369, 374, 379], "start_point": {"row": 114, "column": 1}, "end_point": {"row": 122, "column": 2}}, {"id": 350, "type": "call_expression", "text": "PHY_ID_MATCH_EXACT(PHY_ID_YT8511)", "parent": 349, "children": [351, 352], "start_point": {"row": 115, "column": 2}, "end_point": {"row": 115, "column": 35}}, {"id": 351, "type": "identifier", "text": "PHY_ID_MATCH_EXACT", "parent": 350, "children": [], "start_point": {"row": 115, "column": 2}, "end_point": {"row": 115, "column": 20}}, {"id": 352, "type": "argument_list", "text": "(PHY_ID_YT8511)", "parent": 350, "children": [353], "start_point": {"row": 115, "column": 20}, "end_point": {"row": 115, "column": 35}}, {"id": 353, "type": "identifier", "text": "PHY_ID_YT8511", "parent": 352, "children": [], "start_point": {"row": 115, "column": 21}, "end_point": {"row": 115, "column": 34}}, {"id": 354, "type": "initializer_pair", "text": ".name\t\t= \"YT8511 Gigabit Ethernet\"", "parent": 349, "children": [355, 357, 358], "start_point": {"row": 116, "column": 2}, "end_point": {"row": 116, "column": 36}}, {"id": 355, "type": "field_designator", "text": ".name", "parent": 354, "children": [356], "start_point": {"row": 116, "column": 2}, "end_point": {"row": 116, "column": 7}}, {"id": 356, "type": "field_identifier", "text": "name", "parent": 355, "children": [], "start_point": {"row": 116, "column": 3}, "end_point": {"row": 116, "column": 7}}, {"id": 357, "type": "=", "text": "=", "parent": 354, "children": [], "start_point": {"row": 116, "column": 9}, "end_point": {"row": 116, "column": 10}}, {"id": 358, "type": "string_literal", "text": "\"YT8511 Gigabit Ethernet\"", "parent": 354, "children": [], "start_point": {"row": 116, "column": 11}, "end_point": {"row": 116, "column": 36}}, {"id": 359, "type": "initializer_pair", "text": ".config_init\t= yt8511_config_init", "parent": 349, "children": [360, 362, 363], "start_point": {"row": 117, "column": 2}, "end_point": {"row": 117, "column": 35}}, {"id": 360, "type": "field_designator", "text": ".config_init", "parent": 359, "children": [361], "start_point": {"row": 117, "column": 2}, "end_point": {"row": 117, "column": 14}}, {"id": 361, "type": "field_identifier", "text": "config_init", "parent": 360, "children": [], "start_point": {"row": 117, "column": 3}, "end_point": {"row": 117, "column": 14}}, {"id": 362, "type": "=", "text": "=", "parent": 359, "children": [], "start_point": {"row": 117, "column": 15}, "end_point": {"row": 117, "column": 16}}, {"id": 363, "type": "identifier", "text": "yt8511_config_init", "parent": 359, "children": [], "start_point": {"row": 117, "column": 17}, "end_point": {"row": 117, "column": 35}}, {"id": 364, "type": "initializer_pair", "text": ".suspend\t= genphy_suspend", "parent": 349, "children": [365, 367, 368], "start_point": {"row": 118, "column": 2}, "end_point": {"row": 118, "column": 27}}, {"id": 365, "type": "field_designator", "text": ".suspend", "parent": 364, "children": [366], "start_point": {"row": 118, "column": 2}, "end_point": {"row": 118, "column": 10}}, {"id": 366, "type": "field_identifier", "text": "suspend", "parent": 365, "children": [], "start_point": {"row": 118, "column": 3}, "end_point": {"row": 118, "column": 10}}, {"id": 367, "type": "=", "text": "=", "parent": 364, "children": [], "start_point": {"row": 118, "column": 11}, "end_point": {"row": 118, "column": 12}}, {"id": 368, "type": "identifier", "text": "genphy_suspend", "parent": 364, "children": [], "start_point": {"row": 118, "column": 13}, "end_point": {"row": 118, "column": 27}}, {"id": 369, "type": "initializer_pair", "text": ".resume\t\t= genphy_resume", "parent": 349, "children": [370, 372, 373], "start_point": {"row": 119, "column": 2}, "end_point": {"row": 119, "column": 26}}, {"id": 370, "type": "field_designator", "text": ".resume", "parent": 369, "children": [371], "start_point": {"row": 119, "column": 2}, "end_point": {"row": 119, "column": 9}}, {"id": 371, "type": "field_identifier", "text": "resume", "parent": 370, "children": [], "start_point": {"row": 119, "column": 3}, "end_point": {"row": 119, "column": 9}}, {"id": 372, "type": "=", "text": "=", "parent": 369, "children": [], "start_point": {"row": 119, "column": 11}, "end_point": {"row": 119, "column": 12}}, {"id": 373, "type": "identifier", "text": "genphy_resume", "parent": 369, "children": [], "start_point": {"row": 119, "column": 13}, "end_point": {"row": 119, "column": 26}}, {"id": 374, "type": "initializer_pair", "text": ".read_page\t= yt8511_read_page", "parent": 349, "children": [375, 377, 378], "start_point": {"row": 120, "column": 2}, "end_point": {"row": 120, "column": 31}}, {"id": 375, "type": "field_designator", "text": ".read_page", "parent": 374, "children": [376], "start_point": {"row": 120, "column": 2}, "end_point": {"row": 120, "column": 12}}, {"id": 376, "type": "field_identifier", "text": "read_page", "parent": 375, "children": [], "start_point": {"row": 120, "column": 3}, "end_point": {"row": 120, "column": 12}}, {"id": 377, "type": "=", "text": "=", "parent": 374, "children": [], "start_point": {"row": 120, "column": 13}, "end_point": {"row": 120, "column": 14}}, {"id": 378, "type": "identifier", "text": "yt8511_read_page", "parent": 374, "children": [], "start_point": {"row": 120, "column": 15}, "end_point": {"row": 120, "column": 31}}, {"id": 379, "type": "initializer_pair", "text": ".write_page\t= yt8511_write_page", "parent": 349, "children": [380, 382, 383], "start_point": {"row": 121, "column": 2}, "end_point": {"row": 121, "column": 33}}, {"id": 380, "type": "field_designator", "text": ".write_page", "parent": 379, "children": [381], "start_point": {"row": 121, "column": 2}, "end_point": {"row": 121, "column": 13}}, {"id": 381, "type": "field_identifier", "text": "write_page", "parent": 380, "children": [], "start_point": {"row": 121, "column": 3}, "end_point": {"row": 121, "column": 13}}, {"id": 382, "type": "=", "text": "=", "parent": 379, "children": [], "start_point": {"row": 121, "column": 14}, "end_point": {"row": 121, "column": 15}}, {"id": 383, "type": "identifier", "text": "yt8511_write_page", "parent": 379, "children": [], "start_point": {"row": 121, "column": 16}, "end_point": {"row": 121, "column": 33}}, {"id": 384, "type": "call_expression", "text": "module_phy_driver(motorcomm_phy_drvs)", "parent": null, "children": [385, 386], "start_point": {"row": 125, "column": 0}, "end_point": {"row": 125, "column": 37}}, {"id": 385, "type": "identifier", "text": "module_phy_driver", "parent": 384, "children": [], "start_point": {"row": 125, "column": 0}, "end_point": {"row": 125, "column": 17}}, {"id": 386, "type": "argument_list", "text": "(motorcomm_phy_drvs)", "parent": 384, "children": [387], "start_point": {"row": 125, "column": 17}, "end_point": {"row": 125, "column": 37}}, {"id": 387, "type": "identifier", "text": "motorcomm_phy_drvs", "parent": 386, "children": [], "start_point": {"row": 125, "column": 18}, "end_point": {"row": 125, "column": 36}}, {"id": 388, "type": "call_expression", "text": "MODULE_DESCRIPTION(\"Motorcomm PHY driver\")", "parent": null, "children": [389, 390], "start_point": {"row": 127, "column": 0}, "end_point": {"row": 127, "column": 42}}, {"id": 389, "type": "identifier", "text": "MODULE_DESCRIPTION", "parent": 388, "children": [], "start_point": {"row": 127, "column": 0}, "end_point": {"row": 127, "column": 18}}, {"id": 390, "type": "argument_list", "text": "(\"Motorcomm PHY driver\")", "parent": 388, "children": [391], "start_point": {"row": 127, "column": 18}, "end_point": {"row": 127, "column": 42}}, {"id": 391, "type": "string_literal", "text": "\"Motorcomm PHY driver\"", "parent": 390, "children": [], "start_point": {"row": 127, "column": 19}, "end_point": {"row": 127, "column": 41}}, {"id": 392, "type": "call_expression", "text": "MODULE_AUTHOR(\"<NAME>\")", "parent": null, "children": [393, 394], "start_point": {"row": 128, "column": 0}, "end_point": {"row": 128, "column": 23}}, {"id": 393, "type": "identifier", "text": "MODULE_AUTHOR", "parent": 392, "children": [], "start_point": {"row": 128, "column": 0}, "end_point": {"row": 128, "column": 13}}, {"id": 394, "type": "argument_list", "text": "(\"<NAME>\")", "parent": 392, "children": [395], "start_point": {"row": 128, "column": 13}, "end_point": {"row": 128, "column": 23}}, {"id": 395, "type": "string_literal", "text": "\"<NAME>\"", "parent": 394, "children": [], "start_point": {"row": 128, "column": 14}, "end_point": {"row": 128, "column": 22}}, {"id": 396, "type": "call_expression", "text": "MODULE_LICENSE(\"GPL\")", "parent": null, "children": [397, 398], "start_point": {"row": 129, "column": 0}, "end_point": {"row": 129, "column": 21}}, {"id": 397, "type": "identifier", "text": "MODULE_LICENSE", "parent": 396, "children": [], "start_point": {"row": 129, "column": 0}, "end_point": {"row": 129, "column": 14}}, {"id": 398, "type": "argument_list", "text": "(\"GPL\")", "parent": 396, "children": [399], "start_point": {"row": 129, "column": 14}, "end_point": {"row": 129, "column": 21}}, {"id": 399, "type": "string_literal", "text": "\"GPL\"", "parent": 398, "children": [], "start_point": {"row": 129, "column": 15}, "end_point": {"row": 129, "column": 20}}, {"id": 400, "type": "declaration", "text": "static const struct mdio_device_id __maybe_unused motorcomm_tbl[] = {\n\t{ PHY_ID_MATCH_EXACT(PHY_ID_YT8511) },\n\t{ /* sentinal */ }\n};", "parent": null, "children": [401, 404], "start_point": {"row": 131, "column": 0}, "end_point": {"row": 134, "column": 2}}, {"id": 401, "type": "struct_specifier", "text": "struct mdio_device_id", "parent": 400, "children": [402, 403], "start_point": {"row": 131, "column": 13}, "end_point": {"row": 131, "column": 34}}, {"id": 402, "type": "struct", "text": "struct", "parent": 401, "children": [], "start_point": {"row": 131, "column": 13}, "end_point": {"row": 131, "column": 19}}, {"id": 403, "type": "type_identifier", "text": "mdio_device_id", "parent": 401, "children": [], "start_point": {"row": 131, "column": 20}, "end_point": {"row": 131, "column": 34}}, {"id": 404, "type": "init_declarator", "text": "__maybe_unused motorcomm_tbl[] = {\n\t{ PHY_ID_MATCH_EXACT(PHY_ID_YT8511) },\n\t{ /* sentinal */ }\n}", "parent": 400, "children": [405, 409, 410], "start_point": {"row": 131, "column": 35}, "end_point": {"row": 134, "column": 1}}, {"id": 405, "type": "array_declarator", "text": "__maybe_unused motorcomm_tbl[]", "parent": 404, "children": [406, 407], "start_point": {"row": 131, "column": 35}, "end_point": {"row": 131, "column": 65}}, {"id": 406, "type": "identifier", "text": "__maybe_unused", "parent": 405, "children": [], "start_point": {"row": 131, "column": 35}, "end_point": {"row": 131, "column": 49}}, {"id": 407, "type": "ERROR", "text": "motorcomm_tbl", "parent": 405, "children": [408], "start_point": {"row": 131, "column": 50}, "end_point": {"row": 131, "column": 63}}, {"id": 408, "type": "identifier", "text": "motorcomm_tbl", "parent": 407, "children": [], "start_point": {"row": 131, "column": 50}, "end_point": {"row": 131, "column": 63}}, {"id": 409, "type": "=", "text": "=", "parent": 404, "children": [], "start_point": {"row": 131, "column": 66}, "end_point": {"row": 131, "column": 67}}, {"id": 410, "type": "initializer_list", "text": "{\n\t{ PHY_ID_MATCH_EXACT(PHY_ID_YT8511) },\n\t{ /* sentinal */ }\n}", "parent": 404, "children": [411, 416], "start_point": {"row": 131, "column": 68}, "end_point": {"row": 134, "column": 1}}, {"id": 411, "type": "initializer_list", "text": "{ PHY_ID_MATCH_EXACT(PHY_ID_YT8511) }", "parent": 410, "children": [412], "start_point": {"row": 132, "column": 1}, "end_point": {"row": 132, "column": 38}}, {"id": 412, "type": "call_expression", "text": "PHY_ID_MATCH_EXACT(PHY_ID_YT8511)", "parent": 411, "children": [413, 414], "start_point": {"row": 132, "column": 3}, "end_point": {"row": 132, "column": 36}}, {"id": 413, "type": "identifier", "text": "PHY_ID_MATCH_EXACT", "parent": 412, "children": [], "start_point": {"row": 132, "column": 3}, "end_point": {"row": 132, "column": 21}}, {"id": 414, "type": "argument_list", "text": "(PHY_ID_YT8511)", "parent": 412, "children": [415], "start_point": {"row": 132, "column": 21}, "end_point": {"row": 132, "column": 36}}, {"id": 415, "type": "identifier", "text": "PHY_ID_YT8511", "parent": 414, "children": [], "start_point": {"row": 132, "column": 22}, "end_point": {"row": 132, "column": 35}}, {"id": 416, "type": "initializer_list", "text": "{ /* sentinal */ }", "parent": 410, "children": [], "start_point": {"row": 133, "column": 1}, "end_point": {"row": 133, "column": 19}}, {"id": 417, "type": "call_expression", "text": "MODULE_DEVICE_TABLE(mdio, motorcomm_tbl)", "parent": null, "children": [418, 419], "start_point": {"row": 136, "column": 0}, "end_point": {"row": 136, "column": 40}}, {"id": 418, "type": "identifier", "text": "MODULE_DEVICE_TABLE", "parent": 417, "children": [], "start_point": {"row": 136, "column": 0}, "end_point": {"row": 136, "column": 19}}, {"id": 419, "type": "argument_list", "text": "(mdio, motorcomm_tbl)", "parent": 417, "children": [420, 421], "start_point": {"row": 136, "column": 19}, "end_point": {"row": 136, "column": 40}}, {"id": 420, "type": "identifier", "text": "mdio", "parent": 419, "children": [], "start_point": {"row": 136, "column": 20}, "end_point": {"row": 136, "column": 24}}, {"id": 421, "type": "identifier", "text": "motorcomm_tbl", "parent": 419, "children": [], "start_point": {"row": 136, "column": 26}, "end_point": {"row": 136, "column": 39}}]}, "node_categories": {"declarations": {"functions": [61, 63, 79, 81, 101, 103], "variables": [66, 84, 91, 106, 113, 120, 340, 400], "classes": [67, 68, 85, 86, 107, 108, 341, 342, 401, 402], "imports": [0, 1, 3, 4, 6, 7], "modules": [], "enums": []}, "statements": {"expressions": [74, 95, 129, 135, 136, 145, 146, 168, 196, 210, 219, 224, 225, 230, 231, 241, 249, 250, 260, 267, 268, 278, 286, 287, 297, 304, 305, 315, 323, 324, 334, 350, 384, 388, 392, 396, 412, 417], "assignments": [126, 152, 156, 165, 171, 180, 184, 193, 199, 207, 216, 238, 257, 275, 294, 312], "loops": [], "conditionals": [11, 15, 19, 23, 27, 31, 35, 39, 43, 47, 51, 55, 59, 64, 69, 72, 75, 77, 78, 82, 87, 90, 93, 96, 98, 99, 100, 104, 109, 112, 115, 117, 121, 124, 125, 127, 130, 132, 133, 134, 137, 142, 143, 144, 147, 148, 149, 150, 151, 153, 155, 157, 159, 162, 163, 164, 166, 169, 170, 172, 174, 177, 178, 179, 181, 183, 185, 187, 190, 191, 192, 194, 197, 198, 200, 202, 205, 208, 212, 215, 217, 220, 222, 223, 226, 227, 228, 229, 232, 237, 239, 242, 244, 245, 247, 248, 251, 256, 258, 261, 263, 264, 265, 266, 269, 274, 276, 279, 281, 282, 283, 284, 285, 288, 293, 295, 298, 300, 301, 302, 303, 306, 311, 313, 316, 318, 319, 321, 322, 325, 330, 332, 335, 337, 338, 339, 343, 346, 351, 353, 356, 361, 363, 366, 368, 371, 373, 376, 378, 381, 383, 385, 387, 389, 393, 397, 403, 406, 408, 413, 415, 418, 420, 421], "returns": [73, 94, 333], "exceptions": []}, "expressions": {"calls": [], "literals": [2, 5, 8, 119, 139, 234, 246, 253, 271, 290, 308, 320, 327, 358, 391, 395, 399], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": [355, 360, 365, 370, 375, 380]}}, "cross_language_map": {"function_declarations": [{"node_id": 61, "universal_type": "function", "name": "yt8511_read_page", "text_snippet": "static int yt8511_read_page(struct phy_device *phydev)\n{\n\treturn __phy_read(phydev, YT8511_PAGE_SELE"}, {"node_id": 63, "universal_type": "function", "name": "unknown", "text_snippet": "yt8511_read_page(struct phy_device *phydev)"}, {"node_id": 79, "universal_type": "function", "name": "yt8511_write_page", "text_snippet": "static int yt8511_write_page(struct phy_device *phydev, int page)\n{\n\treturn __phy_write(phydev, YT85"}, {"node_id": 81, "universal_type": "function", "name": "page)", "text_snippet": "yt8511_write_page(struct phy_device *phydev, int page)"}, {"node_id": 101, "universal_type": "function", "name": "yt8511_config_init", "text_snippet": "static int yt8511_config_init(struct phy_device *phydev)\n{\n\tint oldpage, ret = 0;\n\tunsigned int ge, "}, {"node_id": 103, "universal_type": "function", "name": "unknown", "text_snippet": "yt8511_config_init(struct phy_device *phydev)"}], "class_declarations": [{"node_id": 67, "universal_type": "class", "name": "phy_device", "text_snippet": "struct phy_device"}, {"node_id": 68, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 85, "universal_type": "class", "name": "phy_device", "text_snippet": "struct phy_device"}, {"node_id": 86, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 107, "universal_type": "class", "name": "phy_device", "text_snippet": "struct phy_device"}, {"node_id": 108, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 341, "universal_type": "class", "name": "phy_driver", "text_snippet": "struct phy_driver"}, {"node_id": 342, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 401, "universal_type": "class", "name": "mdio_device_id", "text_snippet": "struct mdio_device_id"}, {"node_id": 402, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}], "import_statements": [{"node_id": 0, "text": "#include <linux/kernel.h>\n"}, {"node_id": 1, "text": "#include"}, {"node_id": 3, "text": "#include <linux/module.h>\n"}, {"node_id": 4, "text": "#include"}, {"node_id": 6, "text": "#include <linux/phy.h>\n"}, {"node_id": 7, "text": "#include"}]}, "original_source_code": "// SPDX-License-Identifier: GPL-2.0+\n/*\n * Driver for Motorcomm PHYs\n *\n * Author: <NAME> <<EMAIL>>\n */\n\n#include <linux/kernel.h>\n#include <linux/module.h>\n#include <linux/phy.h>\n\n#define PHY_ID_YT8511\t\t0x0000010a\n\n#define YT8511_PAGE_SELECT\t0x1e\n#define YT8511_PAGE\t\t0x1f\n#define YT8511_EXT_CLK_GATE\t0x0c\n#define YT8511_EXT_DELAY_DRIVE\t0x0d\n#define YT8511_EXT_SLEEP_CTRL\t0x27\n\n/* 2b00 25m from pll\n * 2b01 25m from xtl *default*\n * 2b10 62.m from pll\n * 2b11 125m from pll\n */\n#define YT8511_CLK_125M\t\t(BIT(2) | BIT(1))\n#define YT8511_PLLON_SLP\tBIT(14)\n\n/* RX Delay enabled = 1.8ns 1000T, 8ns 10/100T */\n#define YT8511_DELAY_RX\t\tBIT(0)\n\n/* TX Gig-E Delay is bits 7:4, default 0x5\n * TX Fast-E Delay is bits 15:12, default 0xf\n * Delay = 150ps * N - 250ps\n * On = 2000ps, off = 50ps\n */\n#define YT8511_DELAY_GE_TX_EN\t(0xf << 4)\n#define YT8511_DELAY_GE_TX_DIS\t(0x2 << 4)\n#define YT8511_DELAY_FE_TX_EN\t(0xf << 12)\n#define YT8511_DELAY_FE_TX_DIS\t(0x2 << 12)\n\nstatic int yt8511_read_page(struct phy_device *phydev)\n{\n\treturn __phy_read(phydev, YT8511_PAGE_SELECT);\n};\n\nstatic int yt8511_write_page(struct phy_device *phydev, int page)\n{\n\treturn __phy_write(phydev, YT8511_PAGE_SELECT, page);\n};\n\nstatic int yt8511_config_init(struct phy_device *phydev)\n{\n\tint oldpage, ret = 0;\n\tunsigned int ge, fe;\n\n\toldpage = phy_select_page(phydev, YT8511_EXT_CLK_GATE);\n\tif (oldpage < 0)\n\t\tgoto err_restore_page;\n\n\t/* set rgmii delay mode */\n\tswitch (phydev->interface) {\n\tcase PHY_INTERFACE_MODE_RGMII:\n\t\tge = YT8511_DELAY_GE_TX_DIS;\n\t\tfe = YT8511_DELAY_FE_TX_DIS;\n\t\tbreak;\n\tcase PHY_INTERFACE_MODE_RGMII_RXID:\n\t\tge = YT8511_DELAY_RX | YT8511_DELAY_GE_TX_DIS;\n\t\tfe = YT8511_DELAY_FE_TX_DIS;\n\t\tbreak;\n\tcase PHY_INTERFACE_MODE_RGMII_TXID:\n\t\tge = YT8511_DELAY_GE_TX_EN;\n\t\tfe = YT8511_DELAY_FE_TX_EN;\n\t\tbreak;\n\tcase PHY_INTERFACE_MODE_RGMII_ID:\n\t\tge = YT8511_DELAY_RX | YT8511_DELAY_GE_TX_EN;\n\t\tfe = YT8511_DELAY_FE_TX_EN;\n\t\tbreak;\n\tdefault: /* do not support other modes */\n\t\tret = -EOPNOTSUPP;\n\t\tgoto err_restore_page;\n\t}\n\n\tret = __phy_modify(phydev, YT8511_PAGE, (YT8511_DELAY_RX | YT8511_DELAY_GE_TX_EN), ge);\n\tif (ret < 0)\n\t\tgoto err_restore_page;\n\n\t/* set clock mode to 125mhz */\n\tret = __phy_modify(phydev, YT8511_PAGE, 0, YT8511_CLK_125M);\n\tif (ret < 0)\n\t\tgoto err_restore_page;\n\n\t/* fast ethernet delay is in a separate page */\n\tret = __phy_write(phydev, YT8511_PAGE_SELECT, YT8511_EXT_DELAY_DRIVE);\n\tif (ret < 0)\n\t\tgoto err_restore_page;\n\n\tret = __phy_modify(phydev, YT8511_PAGE, YT8511_DELAY_FE_TX_EN, fe);\n\tif (ret < 0)\n\t\tgoto err_restore_page;\n\n\t/* leave pll enabled in sleep */\n\tret = __phy_write(phydev, YT8511_PAGE_SELECT, YT8511_EXT_SLEEP_CTRL);\n\tif (ret < 0)\n\t\tgoto err_restore_page;\n\n\tret = __phy_modify(phydev, YT8511_PAGE, 0, YT8511_PLLON_SLP);\n\tif (ret < 0)\n\t\tgoto err_restore_page;\n\nerr_restore_page:\n\treturn phy_restore_page(phydev, oldpage, ret);\n}\n\nstatic struct phy_driver motorcomm_phy_drvs[] = {\n\t{\n\t\tPHY_ID_MATCH_EXACT(PHY_ID_YT8511),\n\t\t.name\t\t= \"YT8511 Gigabit Ethernet\",\n\t\t.config_init\t= yt8511_config_init,\n\t\t.suspend\t= genphy_suspend,\n\t\t.resume\t\t= genphy_resume,\n\t\t.read_page\t= yt8511_read_page,\n\t\t.write_page\t= yt8511_write_page,\n\t},\n};\n\nmodule_phy_driver(motorcomm_phy_drvs);\n\nMODULE_DESCRIPTION(\"Motorcomm PHY driver\");\nMODULE_AUTHOR(\"<NAME>\");\nMODULE_LICENSE(\"GPL\");\n\nstatic const struct mdio_device_id __maybe_unused motorcomm_tbl[] = {\n\t{ PHY_ID_MATCH_EXACT(PHY_ID_YT8511) },\n\t{ /* sentinal */ }\n};\n\nMODULE_DEVICE_TABLE(mdio, motorcomm_tbl);\n"}
80,044
c
/****************************************************************************** * Copyright (c) 2013 - 2021 Xilinx, Inc. All rights reserved. * SPDX-License-Identifier: MIT ******************************************************************************/ /*****************************************************************************/ /** * * @file xil_errata.h * * @addtogroup a9_errata Cortex A9 Processor and pl310 Errata Support * @{ * Various ARM errata are handled in the standalone BSP. The implementation for * errata handling follows ARM guidelines and is based on the open source Linux * support for these errata. * * @note The errata handling is enabled by default. To disable handling of all the * errata globally, un-define the macro ENABLE_ARM_ERRATA in xil_errata.h. To * disable errata on a per-erratum basis, un-define relevant macros in * xil_errata.h. * * <pre> * MODIFICATION HISTORY: * * Ver Who Date Changes * ----- ---- -------- ----------------------------------------------- * 1.00a srt 04/18/13 First release * 6.6 mus 12/07/17 Removed errata 753970, It fixes CR#989132. * </pre> * ******************************************************************************/ #ifndef XIL_ERRATA_H #define XIL_ERRATA_H #ifdef __cplusplus extern "C" { #endif /** *@cond nocomments */ /** * @name errata_definitions * * The errata conditions handled in the standalone BSP are listed below * @{ */ #define ENABLE_ARM_ERRATA 1 /** *@endcond */ #ifdef ENABLE_ARM_ERRATA /** * Errata No: 742230 * Description: DMB operation may be faulty */ #define CONFIG_ARM_ERRATA_742230 1 /** * Errata No: 743622 * Description: Faulty hazard checking in the Store Buffer may lead * to data corruption. */ #define CONFIG_ARM_ERRATA_743622 1 /** * Errata No: 775420 * Description: A data cache maintenance operation which aborts, * might lead to deadlock */ #define CONFIG_ARM_ERRATA_775420 1 /** * Errata No: 794073 * Description: Speculative instruction fetches with MMU disabled * might not comply with architectural requirements */ #define CONFIG_ARM_ERRATA_794073 1 /** PL310 L2 Cache Errata */ /** * Errata No: 588369 * Description: Clean & Invalidate maintenance operations do not * invalidate clean lines */ #define CONFIG_PL310_ERRATA_588369 1 /** * Errata No: 727915 * Description: Background Clean and Invalidate by Way operation * can cause data corruption */ #define CONFIG_PL310_ERRATA_727915 1 /*@}*/ #endif /* ENABLE_ARM_ERRATA */ #ifdef __cplusplus } #endif #endif /* XIL_ERRATA_H */ /** * @} End of "addtogroup a9_errata". */
26.82
95
(translation_unit) "/******************************************************************************\n* Copyright (c) 2013 - 2021 Xilinx, Inc. All rights reserved.\n* SPDX-License-Identifier: MIT\n******************************************************************************/\n\n/*****************************************************************************/\n/**\n*\n* @file xil_errata.h\n*\n* @addtogroup a9_errata Cortex A9 Processor and pl310 Errata Support\n* @{\n* Various ARM errata are handled in the standalone BSP. The implementation for\n* errata handling follows ARM guidelines and is based on the open source Linux\n* support for these errata.\n*\n* @note The errata handling is enabled by default. To disable handling of all the\n* errata globally, un-define the macro ENABLE_ARM_ERRATA in xil_errata.h. To\n* disable errata on a per-erratum basis, un-define relevant macros in\n* xil_errata.h.\n*\n* <pre>\n* MODIFICATION HISTORY:\n*\n* Ver Who Date Changes\n* ----- ---- -------- -----------------------------------------------\n* 1.00a srt 04/18/13 First release\n* 6.6 mus 12/07/17 Removed errata 753970, It fixes CR#989132.\n* </pre>\n*\n******************************************************************************/\n#ifndef XIL_ERRATA_H\n#define XIL_ERRATA_H\n\n#ifdef __cplusplus\nextern "C" {\n#endif\n\n/**\n *@cond nocomments\n */\n/**\n * @name errata_definitions\n *\n * The errata conditions handled in the standalone BSP are listed below\n * @{\n */\n\n#define ENABLE_ARM_ERRATA 1\n\n/**\n *@endcond\n */\n\n#ifdef ENABLE_ARM_ERRATA\n\n/**\n * Errata No: 742230\n * Description: DMB operation may be faulty\n */\n#define CONFIG_ARM_ERRATA_742230 1\n\n/**\n * Errata No: 743622\n * Description: Faulty hazard checking in the Store Buffer may lead\n * to data corruption.\n */\n#define CONFIG_ARM_ERRATA_743622 1\n\n/**\n * Errata No: 775420\n * Description: A data cache maintenance operation which aborts,\n * might lead to deadlock\n */\n#define CONFIG_ARM_ERRATA_775420 1\n\n/**\n * Errata No: 794073\n * Description: Speculative instruction fetches with MMU disabled\n * might not comply with architectural requirements\n */\n#define CONFIG_ARM_ERRATA_794073 1\n\n\n/** PL310 L2 Cache Errata */\n\n/**\n * Errata No: 588369\n * Description: Clean & Invalidate maintenance operations do not\n * invalidate clean lines\n */\n#define CONFIG_PL310_ERRATA_588369 1\n\n/**\n * Errata No: 727915\n * Description: Background Clean and Invalidate by Way operation\n * can cause data corruption\n */\n#define CONFIG_PL310_ERRATA_727915 1\n\n/*@}*/\n#endif /* ENABLE_ARM_ERRATA */\n\n#ifdef __cplusplus\n}\n#endif\n\n#endif /* XIL_ERRATA_H */\n/**\n* @} End of "addtogroup a9_errata".\n*/\n" (comment) "/******************************************************************************\n* Copyright (c) 2013 - 2021 Xilinx, Inc. All rights reserved.\n* SPDX-License-Identifier: MIT\n******************************************************************************/" (comment) "/*****************************************************************************/" (comment) "/**\n*\n* @file xil_errata.h\n*\n* @addtogroup a9_errata Cortex A9 Processor and pl310 Errata Support\n* @{\n* Various ARM errata are handled in the standalone BSP. The implementation for\n* errata handling follows ARM guidelines and is based on the open source Linux\n* support for these errata.\n*\n* @note The errata handling is enabled by default. To disable handling of all the\n* errata globally, un-define the macro ENABLE_ARM_ERRATA in xil_errata.h. To\n* disable errata on a per-erratum basis, un-define relevant macros in\n* xil_errata.h.\n*\n* <pre>\n* MODIFICATION HISTORY:\n*\n* Ver Who Date Changes\n* ----- ---- -------- -----------------------------------------------\n* 1.00a srt 04/18/13 First release\n* 6.6 mus 12/07/17 Removed errata 753970, It fixes CR#989132.\n* </pre>\n*\n******************************************************************************/" (preproc_ifdef) "#ifndef XIL_ERRATA_H\n#define XIL_ERRATA_H\n\n#ifdef __cplusplus\nextern "C" {\n#endif\n\n/**\n *@cond nocomments\n */\n/**\n * @name errata_definitions\n *\n * The errata conditions handled in the standalone BSP are listed below\n * @{\n */\n\n#define ENABLE_ARM_ERRATA 1\n\n/**\n *@endcond\n */\n\n#ifdef ENABLE_ARM_ERRATA\n\n/**\n * Errata No: 742230\n * Description: DMB operation may be faulty\n */\n#define CONFIG_ARM_ERRATA_742230 1\n\n/**\n * Errata No: 743622\n * Description: Faulty hazard checking in the Store Buffer may lead\n * to data corruption.\n */\n#define CONFIG_ARM_ERRATA_743622 1\n\n/**\n * Errata No: 775420\n * Description: A data cache maintenance operation which aborts,\n * might lead to deadlock\n */\n#define CONFIG_ARM_ERRATA_775420 1\n\n/**\n * Errata No: 794073\n * Description: Speculative instruction fetches with MMU disabled\n * might not comply with architectural requirements\n */\n#define CONFIG_ARM_ERRATA_794073 1\n\n\n/** PL310 L2 Cache Errata */\n\n/**\n * Errata No: 588369\n * Description: Clean & Invalidate maintenance operations do not\n * invalidate clean lines\n */\n#define CONFIG_PL310_ERRATA_588369 1\n\n/**\n * Errata No: 727915\n * Description: Background Clean and Invalidate by Way operation\n * can cause data corruption\n */\n#define CONFIG_PL310_ERRATA_727915 1\n\n/*@}*/\n#endif /* ENABLE_ARM_ERRATA */\n\n#ifdef __cplusplus\n}\n#endif\n\n#endif" (#ifndef) "#ifndef" (identifier) "XIL_ERRATA_H" (preproc_def) "#define XIL_ERRATA_H\n" (#define) "#define" (identifier) "XIL_ERRATA_H" (preproc_ifdef) "#ifdef __cplusplus\nextern "C" {\n#endif\n\n/**\n *@cond nocomments\n */\n/**\n * @name errata_definitions\n *\n * The errata conditions handled in the standalone BSP are listed below\n * @{\n */\n\n#define ENABLE_ARM_ERRATA 1\n\n/**\n *@endcond\n */\n\n#ifdef ENABLE_ARM_ERRATA\n\n/**\n * Errata No: 742230\n * Description: DMB operation may be faulty\n */\n#define CONFIG_ARM_ERRATA_742230 1\n\n/**\n * Errata No: 743622\n * Description: Faulty hazard checking in the Store Buffer may lead\n * to data corruption.\n */\n#define CONFIG_ARM_ERRATA_743622 1\n\n/**\n * Errata No: 775420\n * Description: A data cache maintenance operation which aborts,\n * might lead to deadlock\n */\n#define CONFIG_ARM_ERRATA_775420 1\n\n/**\n * Errata No: 794073\n * Description: Speculative instruction fetches with MMU disabled\n * might not comply with architectural requirements\n */\n#define CONFIG_ARM_ERRATA_794073 1\n\n\n/** PL310 L2 Cache Errata */\n\n/**\n * Errata No: 588369\n * Description: Clean & Invalidate maintenance operations do not\n * invalidate clean lines\n */\n#define CONFIG_PL310_ERRATA_588369 1\n\n/**\n * Errata No: 727915\n * Description: Background Clean and Invalidate by Way operation\n * can cause data corruption\n */\n#define CONFIG_PL310_ERRATA_727915 1\n\n/*@}*/\n#endif /* ENABLE_ARM_ERRATA */\n\n#ifdef __cplusplus\n}\n#endif" (#ifdef) "#ifdef" (identifier) "__cplusplus" (linkage_specification) "extern "C" {\n#endif\n\n/**\n *@cond nocomments\n */\n/**\n * @name errata_definitions\n *\n * The errata conditions handled in the standalone BSP are listed below\n * @{\n */\n\n#define ENABLE_ARM_ERRATA 1\n\n/**\n *@endcond\n */\n\n#ifdef ENABLE_ARM_ERRATA\n\n/**\n * Errata No: 742230\n * Description: DMB operation may be faulty\n */\n#define CONFIG_ARM_ERRATA_742230 1\n\n/**\n * Errata No: 743622\n * Description: Faulty hazard checking in the Store Buffer may lead\n * to data corruption.\n */\n#define CONFIG_ARM_ERRATA_743622 1\n\n/**\n * Errata No: 775420\n * Description: A data cache maintenance operation which aborts,\n * might lead to deadlock\n */\n#define CONFIG_ARM_ERRATA_775420 1\n\n/**\n * Errata No: 794073\n * Description: Speculative instruction fetches with MMU disabled\n * might not comply with architectural requirements\n */\n#define CONFIG_ARM_ERRATA_794073 1\n\n\n/** PL310 L2 Cache Errata */\n\n/**\n * Errata No: 588369\n * Description: Clean & Invalidate maintenance operations do not\n * invalidate clean lines\n */\n#define CONFIG_PL310_ERRATA_588369 1\n\n/**\n * Errata No: 727915\n * Description: Background Clean and Invalidate by Way operation\n * can cause data corruption\n */\n#define CONFIG_PL310_ERRATA_727915 1\n\n/*@}*/\n#endif /* ENABLE_ARM_ERRATA */\n\n#ifdef __cplusplus\n}" (extern) "extern" (string_literal) ""C"" (") """ (string_content) "C" (") """ (declaration_list) "{\n#endif\n\n/**\n *@cond nocomments\n */\n/**\n * @name errata_definitions\n *\n * The errata conditions handled in the standalone BSP are listed below\n * @{\n */\n\n#define ENABLE_ARM_ERRATA 1\n\n/**\n *@endcond\n */\n\n#ifdef ENABLE_ARM_ERRATA\n\n/**\n * Errata No: 742230\n * Description: DMB operation may be faulty\n */\n#define CONFIG_ARM_ERRATA_742230 1\n\n/**\n * Errata No: 743622\n * Description: Faulty hazard checking in the Store Buffer may lead\n * to data corruption.\n */\n#define CONFIG_ARM_ERRATA_743622 1\n\n/**\n * Errata No: 775420\n * Description: A data cache maintenance operation which aborts,\n * might lead to deadlock\n */\n#define CONFIG_ARM_ERRATA_775420 1\n\n/**\n * Errata No: 794073\n * Description: Speculative instruction fetches with MMU disabled\n * might not comply with architectural requirements\n */\n#define CONFIG_ARM_ERRATA_794073 1\n\n\n/** PL310 L2 Cache Errata */\n\n/**\n * Errata No: 588369\n * Description: Clean & Invalidate maintenance operations do not\n * invalidate clean lines\n */\n#define CONFIG_PL310_ERRATA_588369 1\n\n/**\n * Errata No: 727915\n * Description: Background Clean and Invalidate by Way operation\n * can cause data corruption\n */\n#define CONFIG_PL310_ERRATA_727915 1\n\n/*@}*/\n#endif /* ENABLE_ARM_ERRATA */\n\n#ifdef __cplusplus\n}" ({) "{" (preproc_call) "#endif\n" (preproc_directive) "#endif" (comment) "/**\n *@cond nocomments\n */" (comment) "/**\n * @name errata_definitions\n *\n * The errata conditions handled in the standalone BSP are listed below\n * @{\n */" (preproc_def) "#define ENABLE_ARM_ERRATA 1\n" (#define) "#define" (identifier) "ENABLE_ARM_ERRATA" (preproc_arg) "1" (comment) "/**\n *@endcond\n */" (preproc_ifdef) "#ifdef ENABLE_ARM_ERRATA\n\n/**\n * Errata No: 742230\n * Description: DMB operation may be faulty\n */\n#define CONFIG_ARM_ERRATA_742230 1\n\n/**\n * Errata No: 743622\n * Description: Faulty hazard checking in the Store Buffer may lead\n * to data corruption.\n */\n#define CONFIG_ARM_ERRATA_743622 1\n\n/**\n * Errata No: 775420\n * Description: A data cache maintenance operation which aborts,\n * might lead to deadlock\n */\n#define CONFIG_ARM_ERRATA_775420 1\n\n/**\n * Errata No: 794073\n * Description: Speculative instruction fetches with MMU disabled\n * might not comply with architectural requirements\n */\n#define CONFIG_ARM_ERRATA_794073 1\n\n\n/** PL310 L2 Cache Errata */\n\n/**\n * Errata No: 588369\n * Description: Clean & Invalidate maintenance operations do not\n * invalidate clean lines\n */\n#define CONFIG_PL310_ERRATA_588369 1\n\n/**\n * Errata No: 727915\n * Description: Background Clean and Invalidate by Way operation\n * can cause data corruption\n */\n#define CONFIG_PL310_ERRATA_727915 1\n\n/*@}*/\n#endif" (#ifdef) "#ifdef" (identifier) "ENABLE_ARM_ERRATA" (comment) "/**\n * Errata No: 742230\n * Description: DMB operation may be faulty\n */" (preproc_def) "#define CONFIG_ARM_ERRATA_742230 1\n" (#define) "#define" (identifier) "CONFIG_ARM_ERRATA_742230" (preproc_arg) "1" (comment) "/**\n * Errata No: 743622\n * Description: Faulty hazard checking in the Store Buffer may lead\n * to data corruption.\n */" (preproc_def) "#define CONFIG_ARM_ERRATA_743622 1\n" (#define) "#define" (identifier) "CONFIG_ARM_ERRATA_743622" (preproc_arg) "1" (comment) "/**\n * Errata No: 775420\n * Description: A data cache maintenance operation which aborts,\n * might lead to deadlock\n */" (preproc_def) "#define CONFIG_ARM_ERRATA_775420 1\n" (#define) "#define" (identifier) "CONFIG_ARM_ERRATA_775420" (preproc_arg) "1" (comment) "/**\n * Errata No: 794073\n * Description: Speculative instruction fetches with MMU disabled\n * might not comply with architectural requirements\n */" (preproc_def) "#define CONFIG_ARM_ERRATA_794073 1\n" (#define) "#define" (identifier) "CONFIG_ARM_ERRATA_794073" (preproc_arg) "1" (comment) "/** PL310 L2 Cache Errata */" (comment) "/**\n * Errata No: 588369\n * Description: Clean & Invalidate maintenance operations do not\n * invalidate clean lines\n */" (preproc_def) "#define CONFIG_PL310_ERRATA_588369 1\n" (#define) "#define" (identifier) "CONFIG_PL310_ERRATA_588369" (preproc_arg) "1" (comment) "/**\n * Errata No: 727915\n * Description: Background Clean and Invalidate by Way operation\n * can cause data corruption\n */" (preproc_def) "#define CONFIG_PL310_ERRATA_727915 1\n" (#define) "#define" (identifier) "CONFIG_PL310_ERRATA_727915" (preproc_arg) "1" (comment) "/*@}*/" (#endif) "#endif" (comment) "/* ENABLE_ARM_ERRATA */" (preproc_ifdef) "#ifdef __cplusplus" (#ifdef) "#ifdef" (identifier) "__cplusplus" (#endif) "" (}) "}" (#endif) "#endif" (#endif) "#endif" (comment) "/* XIL_ERRATA_H */" (comment) "/**\n* @} End of "addtogroup a9_errata".\n*/"
76
0
{"language": "c", "success": true, "metadata": {"lines": 95, "avg_line_length": 26.82, "nodes": 52, "errors": 0, "source_hash": "6375721cb6c1ac6984b0c7590f25caf64ce5b7b33587ca5c051b0e889f32640d", "categorized_nodes": 27}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef XIL_ERRATA_H\n#define XIL_ERRATA_H\n\n#ifdef __cplusplus\nextern \"C\" {\n#endif\n\n/**\n *@cond nocomments\n */\n/**\n * @name errata_definitions\n *\n * The errata conditions handled in the standalone BSP are listed below\n * @{\n */\n\n#define ENABLE_ARM_ERRATA 1\n\n/**\n *@endcond\n */\n\n#ifdef ENABLE_ARM_ERRATA\n\n/**\n * Errata No: \t 742230\n * Description: DMB operation may be faulty\n */\n#define CONFIG_ARM_ERRATA_742230 1\n\n/**\n * Errata No: \t 743622\n * Description: Faulty hazard checking in the Store Buffer may lead\n *\t \t to data corruption.\n */\n#define CONFIG_ARM_ERRATA_743622 1\n\n/**\n * Errata No: \t 775420\n * Description: A data cache maintenance operation which aborts,\n *\t\t \t\t might lead to deadlock\n */\n#define CONFIG_ARM_ERRATA_775420 1\n\n/**\n * Errata No: \t 794073\n * Description: Speculative instruction fetches with MMU disabled\n * might not comply with architectural requirements\n */\n#define CONFIG_ARM_ERRATA_794073 1\n\n\n/** PL310 L2 Cache Errata */\n\n/**\n * Errata No: \t 588369\n * Description: Clean & Invalidate maintenance operations do not\n *\t \t \t\t invalidate clean lines\n */\n#define CONFIG_PL310_ERRATA_588369 1\n\n/**\n * Errata No: \t 727915\n * Description: Background Clean and Invalidate by Way operation\n *\t\t can cause data corruption\n */\n#define CONFIG_PL310_ERRATA_727915 1\n\n/*@}*/\n#endif /* ENABLE_ARM_ERRATA */\n\n#ifdef __cplusplus\n}\n#endif\n\n#endif", "parent": null, "children": [1, 2, 3, 6, 51], "start_point": {"row": 31, "column": 0}, "end_point": {"row": 107, "column": 6}}, {"id": 1, "type": "#ifndef", "text": "#ifndef", "parent": 0, "children": [], "start_point": {"row": 31, "column": 0}, "end_point": {"row": 31, "column": 7}}, {"id": 2, "type": "identifier", "text": "XIL_ERRATA_H", "parent": 0, "children": [], "start_point": {"row": 31, "column": 8}, "end_point": {"row": 31, "column": 20}}, {"id": 3, "type": "preproc_def", "text": "#define XIL_ERRATA_H\n", "parent": 0, "children": [4, 5], "start_point": {"row": 32, "column": 0}, "end_point": {"row": 33, "column": 0}}, {"id": 4, "type": "#define", "text": "#define", "parent": 3, "children": [], "start_point": {"row": 32, "column": 0}, "end_point": {"row": 32, "column": 7}}, {"id": 5, "type": "identifier", "text": "XIL_ERRATA_H", "parent": 3, "children": [], "start_point": {"row": 32, "column": 8}, "end_point": {"row": 32, "column": 20}}, {"id": 6, "type": "preproc_ifdef", "text": "#ifdef __cplusplus\nextern \"C\" {\n#endif\n\n/**\n *@cond nocomments\n */\n/**\n * @name errata_definitions\n *\n * The errata conditions handled in the standalone BSP are listed below\n * @{\n */\n\n#define ENABLE_ARM_ERRATA 1\n\n/**\n *@endcond\n */\n\n#ifdef ENABLE_ARM_ERRATA\n\n/**\n * Errata No: \t 742230\n * Description: DMB operation may be faulty\n */\n#define CONFIG_ARM_ERRATA_742230 1\n\n/**\n * Errata No: \t 743622\n * Description: Faulty hazard checking in the Store Buffer may lead\n *\t \t to data corruption.\n */\n#define CONFIG_ARM_ERRATA_743622 1\n\n/**\n * Errata No: \t 775420\n * Description: A data cache maintenance operation which aborts,\n *\t\t \t\t might lead to deadlock\n */\n#define CONFIG_ARM_ERRATA_775420 1\n\n/**\n * Errata No: \t 794073\n * Description: Speculative instruction fetches with MMU disabled\n * might not comply with architectural requirements\n */\n#define CONFIG_ARM_ERRATA_794073 1\n\n\n/** PL310 L2 Cache Errata */\n\n/**\n * Errata No: \t 588369\n * Description: Clean & Invalidate maintenance operations do not\n *\t \t \t\t invalidate clean lines\n */\n#define CONFIG_PL310_ERRATA_588369 1\n\n/**\n * Errata No: \t 727915\n * Description: Background Clean and Invalidate by Way operation\n *\t\t can cause data corruption\n */\n#define CONFIG_PL310_ERRATA_727915 1\n\n/*@}*/\n#endif /* ENABLE_ARM_ERRATA */\n\n#ifdef __cplusplus\n}\n#endif", "parent": 0, "children": [7, 8, 9, 50], "start_point": {"row": 34, "column": 0}, "end_point": {"row": 105, "column": 6}}, {"id": 7, "type": "#ifdef", "text": "#ifdef", "parent": 6, "children": [], "start_point": {"row": 34, "column": 0}, "end_point": {"row": 34, "column": 6}}, {"id": 8, "type": "identifier", "text": "__cplusplus", "parent": 6, "children": [], "start_point": {"row": 34, "column": 7}, "end_point": {"row": 34, "column": 18}}, {"id": 9, "type": "linkage_specification", "text": "extern \"C\" {\n#endif\n\n/**\n *@cond nocomments\n */\n/**\n * @name errata_definitions\n *\n * The errata conditions handled in the standalone BSP are listed below\n * @{\n */\n\n#define ENABLE_ARM_ERRATA 1\n\n/**\n *@endcond\n */\n\n#ifdef ENABLE_ARM_ERRATA\n\n/**\n * Errata No: \t 742230\n * Description: DMB operation may be faulty\n */\n#define CONFIG_ARM_ERRATA_742230 1\n\n/**\n * Errata No: \t 743622\n * Description: Faulty hazard checking in the Store Buffer may lead\n *\t \t to data corruption.\n */\n#define CONFIG_ARM_ERRATA_743622 1\n\n/**\n * Errata No: \t 775420\n * Description: A data cache maintenance operation which aborts,\n *\t\t \t\t might lead to deadlock\n */\n#define CONFIG_ARM_ERRATA_775420 1\n\n/**\n * Errata No: \t 794073\n * Description: Speculative instruction fetches with MMU disabled\n * might not comply with architectural requirements\n */\n#define CONFIG_ARM_ERRATA_794073 1\n\n\n/** PL310 L2 Cache Errata */\n\n/**\n * Errata No: \t 588369\n * Description: Clean & Invalidate maintenance operations do not\n *\t \t \t\t invalidate clean lines\n */\n#define CONFIG_PL310_ERRATA_588369 1\n\n/**\n * Errata No: \t 727915\n * Description: Background Clean and Invalidate by Way operation\n *\t\t can cause data corruption\n */\n#define CONFIG_PL310_ERRATA_727915 1\n\n/*@}*/\n#endif /* ENABLE_ARM_ERRATA */\n\n#ifdef __cplusplus\n}", "parent": 6, "children": [10, 11], "start_point": {"row": 35, "column": 0}, "end_point": {"row": 104, "column": 1}}, {"id": 10, "type": "extern", "text": "extern", "parent": 9, "children": [], "start_point": {"row": 35, "column": 0}, "end_point": {"row": 35, "column": 6}}, {"id": 11, "type": "string_literal", "text": "\"C\"", "parent": 9, "children": [], "start_point": {"row": 35, "column": 7}, "end_point": {"row": 35, "column": 10}}, {"id": 12, "type": "preproc_call", "text": "#endif\n", "parent": 9, "children": [13], "start_point": {"row": 36, "column": 0}, "end_point": {"row": 37, "column": 0}}, {"id": 13, "type": "preproc_directive", "text": "#endif", "parent": 12, "children": [], "start_point": {"row": 36, "column": 0}, "end_point": {"row": 36, "column": 6}}, {"id": 14, "type": "preproc_def", "text": "#define ENABLE_ARM_ERRATA 1\n", "parent": 9, "children": [15, 16, 17], "start_point": {"row": 48, "column": 0}, "end_point": {"row": 49, "column": 0}}, {"id": 15, "type": "#define", "text": "#define", "parent": 14, "children": [], "start_point": {"row": 48, "column": 0}, "end_point": {"row": 48, "column": 7}}, {"id": 16, "type": "identifier", "text": "ENABLE_ARM_ERRATA", "parent": 14, "children": [], "start_point": {"row": 48, "column": 8}, "end_point": {"row": 48, "column": 25}}, {"id": 17, "type": "preproc_arg", "text": "1", "parent": 14, "children": [], "start_point": {"row": 48, "column": 26}, "end_point": {"row": 48, "column": 27}}, {"id": 18, "type": "preproc_ifdef", "text": "#ifdef ENABLE_ARM_ERRATA\n\n/**\n * Errata No: \t 742230\n * Description: DMB operation may be faulty\n */\n#define CONFIG_ARM_ERRATA_742230 1\n\n/**\n * Errata No: \t 743622\n * Description: Faulty hazard checking in the Store Buffer may lead\n *\t \t to data corruption.\n */\n#define CONFIG_ARM_ERRATA_743622 1\n\n/**\n * Errata No: \t 775420\n * Description: A data cache maintenance operation which aborts,\n *\t\t \t\t might lead to deadlock\n */\n#define CONFIG_ARM_ERRATA_775420 1\n\n/**\n * Errata No: \t 794073\n * Description: Speculative instruction fetches with MMU disabled\n * might not comply with architectural requirements\n */\n#define CONFIG_ARM_ERRATA_794073 1\n\n\n/** PL310 L2 Cache Errata */\n\n/**\n * Errata No: \t 588369\n * Description: Clean & Invalidate maintenance operations do not\n *\t \t \t\t invalidate clean lines\n */\n#define CONFIG_PL310_ERRATA_588369 1\n\n/**\n * Errata No: \t 727915\n * Description: Background Clean and Invalidate by Way operation\n *\t\t can cause data corruption\n */\n#define CONFIG_PL310_ERRATA_727915 1\n\n/*@}*/\n#endif", "parent": 9, "children": [19, 20, 21, 25, 29, 33, 37, 41, 45], "start_point": {"row": 54, "column": 0}, "end_point": {"row": 101, "column": 6}}, {"id": 19, "type": "#ifdef", "text": "#ifdef", "parent": 18, "children": [], "start_point": {"row": 54, "column": 0}, "end_point": {"row": 54, "column": 6}}, {"id": 20, "type": "identifier", "text": "ENABLE_ARM_ERRATA", "parent": 18, "children": [], "start_point": {"row": 54, "column": 7}, "end_point": {"row": 54, "column": 24}}, {"id": 21, "type": "preproc_def", "text": "#define CONFIG_ARM_ERRATA_742230 1\n", "parent": 18, "children": [22, 23, 24], "start_point": {"row": 60, "column": 0}, "end_point": {"row": 61, "column": 0}}, {"id": 22, "type": "#define", "text": "#define", "parent": 21, "children": [], "start_point": {"row": 60, "column": 0}, "end_point": {"row": 60, "column": 7}}, {"id": 23, "type": "identifier", "text": "CONFIG_ARM_ERRATA_742230", "parent": 21, "children": [], "start_point": {"row": 60, "column": 8}, "end_point": {"row": 60, "column": 32}}, {"id": 24, "type": "preproc_arg", "text": "1", "parent": 21, "children": [], "start_point": {"row": 60, "column": 33}, "end_point": {"row": 60, "column": 34}}, {"id": 25, "type": "preproc_def", "text": "#define CONFIG_ARM_ERRATA_743622 1\n", "parent": 18, "children": [26, 27, 28], "start_point": {"row": 67, "column": 0}, "end_point": {"row": 68, "column": 0}}, {"id": 26, "type": "#define", "text": "#define", "parent": 25, "children": [], "start_point": {"row": 67, "column": 0}, "end_point": {"row": 67, "column": 7}}, {"id": 27, "type": "identifier", "text": "CONFIG_ARM_ERRATA_743622", "parent": 25, "children": [], "start_point": {"row": 67, "column": 8}, "end_point": {"row": 67, "column": 32}}, {"id": 28, "type": "preproc_arg", "text": "1", "parent": 25, "children": [], "start_point": {"row": 67, "column": 33}, "end_point": {"row": 67, "column": 34}}, {"id": 29, "type": "preproc_def", "text": "#define CONFIG_ARM_ERRATA_775420 1\n", "parent": 18, "children": [30, 31, 32], "start_point": {"row": 74, "column": 0}, "end_point": {"row": 75, "column": 0}}, {"id": 30, "type": "#define", "text": "#define", "parent": 29, "children": [], "start_point": {"row": 74, "column": 0}, "end_point": {"row": 74, "column": 7}}, {"id": 31, "type": "identifier", "text": "CONFIG_ARM_ERRATA_775420", "parent": 29, "children": [], "start_point": {"row": 74, "column": 8}, "end_point": {"row": 74, "column": 32}}, {"id": 32, "type": "preproc_arg", "text": "1", "parent": 29, "children": [], "start_point": {"row": 74, "column": 33}, "end_point": {"row": 74, "column": 34}}, {"id": 33, "type": "preproc_def", "text": "#define CONFIG_ARM_ERRATA_794073 1\n", "parent": 18, "children": [34, 35, 36], "start_point": {"row": 81, "column": 0}, "end_point": {"row": 82, "column": 0}}, {"id": 34, "type": "#define", "text": "#define", "parent": 33, "children": [], "start_point": {"row": 81, "column": 0}, "end_point": {"row": 81, "column": 7}}, {"id": 35, "type": "identifier", "text": "CONFIG_ARM_ERRATA_794073", "parent": 33, "children": [], "start_point": {"row": 81, "column": 8}, "end_point": {"row": 81, "column": 32}}, {"id": 36, "type": "preproc_arg", "text": "1", "parent": 33, "children": [], "start_point": {"row": 81, "column": 33}, "end_point": {"row": 81, "column": 34}}, {"id": 37, "type": "preproc_def", "text": "#define CONFIG_PL310_ERRATA_588369 1\n", "parent": 18, "children": [38, 39, 40], "start_point": {"row": 91, "column": 0}, "end_point": {"row": 92, "column": 0}}, {"id": 38, "type": "#define", "text": "#define", "parent": 37, "children": [], "start_point": {"row": 91, "column": 0}, "end_point": {"row": 91, "column": 7}}, {"id": 39, "type": "identifier", "text": "CONFIG_PL310_ERRATA_588369", "parent": 37, "children": [], "start_point": {"row": 91, "column": 8}, "end_point": {"row": 91, "column": 34}}, {"id": 40, "type": "preproc_arg", "text": "1", "parent": 37, "children": [], "start_point": {"row": 91, "column": 35}, "end_point": {"row": 91, "column": 36}}, {"id": 41, "type": "preproc_def", "text": "#define CONFIG_PL310_ERRATA_727915 1\n", "parent": 18, "children": [42, 43, 44], "start_point": {"row": 98, "column": 0}, "end_point": {"row": 99, "column": 0}}, {"id": 42, "type": "#define", "text": "#define", "parent": 41, "children": [], "start_point": {"row": 98, "column": 0}, "end_point": {"row": 98, "column": 7}}, {"id": 43, "type": "identifier", "text": "CONFIG_PL310_ERRATA_727915", "parent": 41, "children": [], "start_point": {"row": 98, "column": 8}, "end_point": {"row": 98, "column": 34}}, {"id": 44, "type": "preproc_arg", "text": "1", "parent": 41, "children": [], "start_point": {"row": 98, "column": 35}, "end_point": {"row": 98, "column": 36}}, {"id": 45, "type": "#endif", "text": "#endif", "parent": 18, "children": [], "start_point": {"row": 101, "column": 0}, "end_point": {"row": 101, "column": 6}}, {"id": 46, "type": "preproc_ifdef", "text": "#ifdef __cplusplus", "parent": 9, "children": [47, 48, 49], "start_point": {"row": 103, "column": 0}, "end_point": {"row": 103, "column": 18}}, {"id": 47, "type": "#ifdef", "text": "#ifdef", "parent": 46, "children": [], "start_point": {"row": 103, "column": 0}, "end_point": {"row": 103, "column": 6}}, {"id": 48, "type": "identifier", "text": "__cplusplus", "parent": 46, "children": [], "start_point": {"row": 103, "column": 7}, "end_point": {"row": 103, "column": 18}}, {"id": 49, "type": "#endif", "text": "", "parent": 46, "children": [], "start_point": {"row": 103, "column": 18}, "end_point": {"row": 103, "column": 18}}, {"id": 50, "type": "#endif", "text": "#endif", "parent": 6, "children": [], "start_point": {"row": 105, "column": 0}, "end_point": {"row": 105, "column": 6}}, {"id": 51, "type": "#endif", "text": "#endif", "parent": 0, "children": [], "start_point": {"row": 107, "column": 0}, "end_point": {"row": 107, "column": 6}}]}, "node_categories": {"declarations": {"functions": [], "variables": [], "classes": [], "imports": [], "modules": [], "enums": []}, "statements": {"expressions": [], "assignments": [], "loops": [], "conditionals": [0, 1, 2, 5, 6, 7, 8, 9, 16, 18, 19, 20, 23, 27, 31, 35, 39, 43, 45, 46, 47, 48, 49, 50, 51], "returns": [], "exceptions": []}, "expressions": {"calls": [12], "literals": [11], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [], "class_declarations": [], "import_statements": []}, "original_source_code": "/******************************************************************************\n* Copyright (c) 2013 - 2021 Xilinx, Inc. All rights reserved.\n* SPDX-License-Identifier: MIT\n******************************************************************************/\n\n/*****************************************************************************/\n/**\n*\n* @file xil_errata.h\n*\n* @addtogroup a9_errata Cortex A9 Processor and pl310 Errata Support\n* @{\n* Various ARM errata are handled in the standalone BSP. The implementation for\n* errata handling follows ARM guidelines and is based on the open source Linux\n* support for these errata.\n*\n* @note The errata handling is enabled by default. To disable handling of all the\n* errata globally, un-define the macro ENABLE_ARM_ERRATA in xil_errata.h. To\n* disable errata on a per-erratum basis, un-define relevant macros in\n* xil_errata.h.\n*\n* <pre>\n* MODIFICATION HISTORY:\n*\n* Ver Who Date Changes\n* ----- ---- -------- -----------------------------------------------\n* 1.00a srt 04/18/13 First release\n* 6.6 mus 12/07/17 Removed errata 753970, It fixes CR#989132.\n* </pre>\n*\n******************************************************************************/\n#ifndef XIL_ERRATA_H\n#define XIL_ERRATA_H\n\n#ifdef __cplusplus\nextern \"C\" {\n#endif\n\n/**\n *@cond nocomments\n */\n/**\n * @name errata_definitions\n *\n * The errata conditions handled in the standalone BSP are listed below\n * @{\n */\n\n#define ENABLE_ARM_ERRATA 1\n\n/**\n *@endcond\n */\n\n#ifdef ENABLE_ARM_ERRATA\n\n/**\n * Errata No: \t 742230\n * Description: DMB operation may be faulty\n */\n#define CONFIG_ARM_ERRATA_742230 1\n\n/**\n * Errata No: \t 743622\n * Description: Faulty hazard checking in the Store Buffer may lead\n *\t \t to data corruption.\n */\n#define CONFIG_ARM_ERRATA_743622 1\n\n/**\n * Errata No: \t 775420\n * Description: A data cache maintenance operation which aborts,\n *\t\t \t\t might lead to deadlock\n */\n#define CONFIG_ARM_ERRATA_775420 1\n\n/**\n * Errata No: \t 794073\n * Description: Speculative instruction fetches with MMU disabled\n * might not comply with architectural requirements\n */\n#define CONFIG_ARM_ERRATA_794073 1\n\n\n/** PL310 L2 Cache Errata */\n\n/**\n * Errata No: \t 588369\n * Description: Clean & Invalidate maintenance operations do not\n *\t \t \t\t invalidate clean lines\n */\n#define CONFIG_PL310_ERRATA_588369 1\n\n/**\n * Errata No: \t 727915\n * Description: Background Clean and Invalidate by Way operation\n *\t\t can cause data corruption\n */\n#define CONFIG_PL310_ERRATA_727915 1\n\n/*@}*/\n#endif /* ENABLE_ARM_ERRATA */\n\n#ifdef __cplusplus\n}\n#endif\n\n#endif /* XIL_ERRATA_H */\n/**\n* @} End of \"addtogroup a9_errata\".\n*/\n"}
80,045
c
// // ViewController.h // BackWebView // // Created by <NAME> on 15/11/25. // Copyright (c) 2015年 CheilOpenTide. All rights reserved. // #import <UIKit/UIKit.h> @interface ViewController : UIViewController @end
18.64
11
(translation_unit) "//\n// ViewController.h\n// BackWebView\n//\n// Created by <NAME> on 15/11/25.\n// Copyright (c) 2015年 CheilOpenTide. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n\n@interface ViewController : UIViewController\n\n\n@end\n\n" (comment) "//" (comment) "// ViewController.h" (comment) "// BackWebView" (comment) "//" (comment) "// Created by <NAME> on 15/11/25." (comment) "// Copyright (c) 2015年 CheilOpenTide. All rights reserved.\n/" (comment) "\n\n" (preproc_call) "mport <UIKit/UIKit.h>\n\n@" (preproc_directive) "mport <" (preproc_arg) "IKit/UIKit.h>\n\n" (ERROR) "n" (ERROR) "n" (declaration) "terface ViewController : UIViewController\n\n\n@end\n\n" (type_identifier) "terface V" (ERROR) "ewController : UIViewController\n\n\n@en" (identifier) "ewController :" (:) "U" (identifier) "ViewController\n\n" (ERROR) "n" (identifier) "d\n\n" (;) ""
22
4
{"language": "c", "success": true, "metadata": {"lines": 11, "avg_line_length": 18.64, "nodes": 12, "errors": 0, "source_hash": "4ff1153921772b77cd4a0f33c199b43fe0ded42bc73ed8e8b9a88722005508de", "categorized_nodes": 6}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "mport <UIKit/UIKit.h>\n\n@", "parent": null, "children": [1, 2], "start_point": {"row": 8, "column": 0}, "end_point": {"row": 9, "column": 0}}, {"id": 1, "type": "preproc_directive", "text": "mport <", "parent": 0, "children": [], "start_point": {"row": 8, "column": 0}, "end_point": {"row": 8, "column": 7}}, {"id": 2, "type": "preproc_arg", "text": "IKit/UIKit.h>\n\n", "parent": 0, "children": [], "start_point": {"row": 8, "column": 8}, "end_point": {"row": 8, "column": 23}}, {"id": 3, "type": "ERROR", "text": "n", "parent": null, "children": [4], "start_point": {"row": 10, "column": 0}, "end_point": {"row": 10, "column": 1}}, {"id": 4, "type": "ERROR", "text": "n", "parent": 3, "children": [], "start_point": {"row": 10, "column": 0}, "end_point": {"row": 10, "column": 1}}, {"id": 5, "type": "declaration", "text": "terface ViewController : UIViewController\n\n\n@end\n\n", "parent": null, "children": [6, 7, 11], "start_point": {"row": 10, "column": 1}, "end_point": {"row": 13, "column": 4}}, {"id": 6, "type": "type_identifier", "text": "terface V", "parent": 5, "children": [], "start_point": {"row": 10, "column": 1}, "end_point": {"row": 10, "column": 10}}, {"id": 7, "type": "ERROR", "text": "ewController : UIViewController\n\n\n@en", "parent": 5, "children": [8, 9, 10], "start_point": {"row": 10, "column": 11}, "end_point": {"row": 13, "column": 1}}, {"id": 8, "type": "identifier", "text": "ewController :", "parent": 7, "children": [], "start_point": {"row": 10, "column": 11}, "end_point": {"row": 10, "column": 25}}, {"id": 9, "type": "identifier", "text": "ViewController\n\n", "parent": 7, "children": [], "start_point": {"row": 10, "column": 28}, "end_point": {"row": 10, "column": 44}}, {"id": 10, "type": "ERROR", "text": "n", "parent": 7, "children": [], "start_point": {"row": 13, "column": 0}, "end_point": {"row": 13, "column": 1}}, {"id": 11, "type": "identifier", "text": "d\n\n", "parent": 5, "children": [], "start_point": {"row": 13, "column": 1}, "end_point": {"row": 13, "column": 4}}]}, "node_categories": {"declarations": {"functions": [], "variables": [5], "classes": [], "imports": [], "modules": [], "enums": []}, "statements": {"expressions": [], "assignments": [], "loops": [], "conditionals": [6, 8, 9, 11], "returns": [], "exceptions": []}, "expressions": {"calls": [0], "literals": [], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [], "class_declarations": [], "import_statements": []}, "original_source_code": "//\n// ViewController.h\n// BackWebView\n//\n// Created by <NAME> on 15/11/25.\n// Copyright (c) 2015\u5e74 CheilOpenTide. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n\n@interface ViewController : UIViewController\n\n\n@end\n\n"}
80,046
c
inherit "obj/weapon"; start() { set_class(4); set_sub_type("short sword"); set_name("sword"); set_short("A rusty short sword"); set_long("Rusty and old short sword. It's blade is in bad\n"+ "condition. Orcs usually uses this kind of weapons.\n"); }
33
9
(translation_unit) "inherit "obj/weapon";\n\nstart() {\n set_class(4);\n set_sub_type("short sword");\n set_name("sword");\n set_short("A rusty short sword");\n set_long("Rusty and old short sword. It's blade is in bad\n"+\n "condition. Orcs usually uses this kind of weapons.\n");\n\n}\n" (expression_statement) "inherit "obj/weapon";" (concatenated_string) "inherit "obj/weapon"" (identifier) "inherit" (string_literal) ""obj/weapon"" (") """ (string_content) "obj/weapon" (") """ (;) ";" (expression_statement) "start()" (call_expression) "start()" (identifier) "start" (argument_list) "()" (() "(" ()) ")" (;) "" (compound_statement) "{\n set_class(4);\n set_sub_type("short sword");\n set_name("sword");\n set_short("A rusty short sword");\n set_long("Rusty and old short sword. It's blade is in bad\n"+\n "condition. Orcs usually uses this kind of weapons.\n");\n\n}" ({) "{" (expression_statement) "set_class(4);" (call_expression) "set_class(4)" (identifier) "set_class" (argument_list) "(4)" (() "(" (number_literal) "4" ()) ")" (;) ";" (expression_statement) "set_sub_type("short sword");" (call_expression) "set_sub_type("short sword")" (identifier) "set_sub_type" (argument_list) "("short sword")" (() "(" (string_literal) ""short sword"" (") """ (string_content) "short sword" (") """ ()) ")" (;) ";" (expression_statement) "set_name("sword");" (call_expression) "set_name("sword")" (identifier) "set_name" (argument_list) "("sword")" (() "(" (string_literal) ""sword"" (") """ (string_content) "sword" (") """ ()) ")" (;) ";" (expression_statement) "set_short("A rusty short sword");" (call_expression) "set_short("A rusty short sword")" (identifier) "set_short" (argument_list) "("A rusty short sword")" (() "(" (string_literal) ""A rusty short sword"" (") """ (string_content) "A rusty short sword" (") """ ()) ")" (;) ";" (expression_statement) "set_long("Rusty and old short sword. It's blade is in bad\n"+\n "condition. Orcs usually uses this kind of weapons.\n");" (call_expression) "set_long("Rusty and old short sword. It's blade is in bad\n"+\n "condition. Orcs usually uses this kind of weapons.\n")" (identifier) "set_long" (argument_list) "("Rusty and old short sword. It's blade is in bad\n"+\n "condition. Orcs usually uses this kind of weapons.\n")" (() "(" (binary_expression) ""Rusty and old short sword. It's blade is in bad\n"+\n "condition. Orcs usually uses this kind of weapons.\n"" (string_literal) ""Rusty and old short sword. It's blade is in bad\n"" (") """ (string_content) "Rusty and old short sword. It's blade is in bad" (escape_sequence) "\n" (") """ (+) "+" (string_literal) ""condition. Orcs usually uses this kind of weapons.\n"" (") """ (string_content) "condition. Orcs usually uses this kind of weapons." (escape_sequence) "\n" (") """ ()) ")" (;) ";" (}) "}"
79
0
{"language": "c", "success": true, "metadata": {"lines": 9, "avg_line_length": 33.0, "nodes": 31, "errors": 0, "source_hash": "f8d134d3533b60d3fd634ebbae762a3c814d0003d06cd9a784b981aaddeb513d", "categorized_nodes": 22}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "concatenated_string", "text": "inherit \"obj/weapon\"", "parent": null, "children": [1, 2], "start_point": {"row": 0, "column": 0}, "end_point": {"row": 0, "column": 20}}, {"id": 1, "type": "identifier", "text": "inherit", "parent": 0, "children": [], "start_point": {"row": 0, "column": 0}, "end_point": {"row": 0, "column": 7}}, {"id": 2, "type": "string_literal", "text": "\"obj/weapon\"", "parent": 0, "children": [], "start_point": {"row": 0, "column": 8}, "end_point": {"row": 0, "column": 20}}, {"id": 3, "type": "call_expression", "text": "start()", "parent": null, "children": [4, 5], "start_point": {"row": 2, "column": 0}, "end_point": {"row": 2, "column": 7}}, {"id": 4, "type": "identifier", "text": "start", "parent": 3, "children": [], "start_point": {"row": 2, "column": 0}, "end_point": {"row": 2, "column": 5}}, {"id": 5, "type": "argument_list", "text": "()", "parent": 3, "children": [], "start_point": {"row": 2, "column": 5}, "end_point": {"row": 2, "column": 7}}, {"id": 6, "type": "call_expression", "text": "set_class(4)", "parent": null, "children": [7, 8], "start_point": {"row": 3, "column": 8}, "end_point": {"row": 3, "column": 20}}, {"id": 7, "type": "identifier", "text": "set_class", "parent": 6, "children": [], "start_point": {"row": 3, "column": 8}, "end_point": {"row": 3, "column": 17}}, {"id": 8, "type": "argument_list", "text": "(4)", "parent": 6, "children": [9], "start_point": {"row": 3, "column": 17}, "end_point": {"row": 3, "column": 20}}, {"id": 9, "type": "number_literal", "text": "4", "parent": 8, "children": [], "start_point": {"row": 3, "column": 18}, "end_point": {"row": 3, "column": 19}}, {"id": 10, "type": "call_expression", "text": "set_sub_type(\"short sword\")", "parent": null, "children": [11, 12], "start_point": {"row": 4, "column": 8}, "end_point": {"row": 4, "column": 35}}, {"id": 11, "type": "identifier", "text": "set_sub_type", "parent": 10, "children": [], "start_point": {"row": 4, "column": 8}, "end_point": {"row": 4, "column": 20}}, {"id": 12, "type": "argument_list", "text": "(\"short sword\")", "parent": 10, "children": [13], "start_point": {"row": 4, "column": 20}, "end_point": {"row": 4, "column": 35}}, {"id": 13, "type": "string_literal", "text": "\"short sword\"", "parent": 12, "children": [], "start_point": {"row": 4, "column": 21}, "end_point": {"row": 4, "column": 34}}, {"id": 14, "type": "call_expression", "text": "set_name(\"sword\")", "parent": null, "children": [15, 16], "start_point": {"row": 5, "column": 8}, "end_point": {"row": 5, "column": 25}}, {"id": 15, "type": "identifier", "text": "set_name", "parent": 14, "children": [], "start_point": {"row": 5, "column": 8}, "end_point": {"row": 5, "column": 16}}, {"id": 16, "type": "argument_list", "text": "(\"sword\")", "parent": 14, "children": [17], "start_point": {"row": 5, "column": 16}, "end_point": {"row": 5, "column": 25}}, {"id": 17, "type": "string_literal", "text": "\"sword\"", "parent": 16, "children": [], "start_point": {"row": 5, "column": 17}, "end_point": {"row": 5, "column": 24}}, {"id": 18, "type": "call_expression", "text": "set_short(\"A rusty short sword\")", "parent": null, "children": [19, 20], "start_point": {"row": 6, "column": 8}, "end_point": {"row": 6, "column": 40}}, {"id": 19, "type": "identifier", "text": "set_short", "parent": 18, "children": [], "start_point": {"row": 6, "column": 8}, "end_point": {"row": 6, "column": 17}}, {"id": 20, "type": "argument_list", "text": "(\"A rusty short sword\")", "parent": 18, "children": [21], "start_point": {"row": 6, "column": 17}, "end_point": {"row": 6, "column": 40}}, {"id": 21, "type": "string_literal", "text": "\"A rusty short sword\"", "parent": 20, "children": [], "start_point": {"row": 6, "column": 18}, "end_point": {"row": 6, "column": 39}}, {"id": 22, "type": "call_expression", "text": "set_long(\"Rusty and old short sword. It's blade is in bad\\n\"+\n \"condition. Orcs usually uses this kind of weapons.\\n\")", "parent": null, "children": [23, 24], "start_point": {"row": 7, "column": 8}, "end_point": {"row": 8, "column": 72}}, {"id": 23, "type": "identifier", "text": "set_long", "parent": 22, "children": [], "start_point": {"row": 7, "column": 8}, "end_point": {"row": 7, "column": 16}}, {"id": 24, "type": "argument_list", "text": "(\"Rusty and old short sword. It's blade is in bad\\n\"+\n \"condition. Orcs usually uses this kind of weapons.\\n\")", "parent": 22, "children": [25], "start_point": {"row": 7, "column": 16}, "end_point": {"row": 8, "column": 72}}, {"id": 25, "type": "binary_expression", "text": "\"Rusty and old short sword. It's blade is in bad\\n\"+\n \"condition. Orcs usually uses this kind of weapons.\\n\"", "parent": 24, "children": [26, 28, 29], "start_point": {"row": 7, "column": 17}, "end_point": {"row": 8, "column": 71}}, {"id": 26, "type": "string_literal", "text": "\"Rusty and old short sword. It's blade is in bad\\n\"", "parent": 25, "children": [27], "start_point": {"row": 7, "column": 17}, "end_point": {"row": 7, "column": 68}}, {"id": 27, "type": "escape_sequence", "text": "\\n", "parent": 26, "children": [], "start_point": {"row": 7, "column": 65}, "end_point": {"row": 7, "column": 67}}, {"id": 28, "type": "+", "text": "+", "parent": 25, "children": [], "start_point": {"row": 7, "column": 68}, "end_point": {"row": 7, "column": 69}}, {"id": 29, "type": "string_literal", "text": "\"condition. Orcs usually uses this kind of weapons.\\n\"", "parent": 25, "children": [30], "start_point": {"row": 8, "column": 17}, "end_point": {"row": 8, "column": 71}}, {"id": 30, "type": "escape_sequence", "text": "\\n", "parent": 29, "children": [], "start_point": {"row": 8, "column": 68}, "end_point": {"row": 8, "column": 70}}]}, "node_categories": {"declarations": {"functions": [], "variables": [], "classes": [], "imports": [], "modules": [], "enums": []}, "statements": {"expressions": [3, 6, 10, 14, 18, 22, 25], "assignments": [], "loops": [], "conditionals": [1, 4, 7, 11, 15, 19, 23], "returns": [], "exceptions": []}, "expressions": {"calls": [], "literals": [0, 2, 9, 13, 17, 21, 26, 29], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [], "class_declarations": [], "import_statements": []}, "original_source_code": "inherit \"obj/weapon\";\n\nstart() {\n set_class(4);\n set_sub_type(\"short sword\");\n set_name(\"sword\");\n set_short(\"A rusty short sword\");\n set_long(\"Rusty and old short sword. It's blade is in bad\\n\"+\n \"condition. Orcs usually uses this kind of weapons.\\n\");\n\n}\n"}
80,047
c
#ifndef COIN_SOFILE_H #define COIN_SOFILE_H /**************************************************************************\ * * This file is part of the Coin 3D visualization library. * Copyright (C) by <NAME> & Gas Technologies. * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License * ("GPL") version 2 as published by the Free Software Foundation. * See the file LICENSE.GPL at the root directory of this source * distribution for additional information about the GNU GPL. * * For using Coin with software that can not be combined with the GNU * GPL, and for taking advantage of the additional benefits of our * support services, please contact Kongsberg Oil & Gas Technologies * about acquiring a Coin Professional Edition License. * * See http://www.coin3d.org/ for more information. * * <NAME>il & Gas Technologies, Bygdoy Alle 5, 0257 Oslo, NORWAY. * http://www.sim.no/ <EMAIL> <EMAIL> * \**************************************************************************/ #include <Inventor/nodes/SoSubNode.h> #include <Inventor/fields/SoSFString.h> class SoFieldSensor; class SoGroup; class SoSensor; class COIN_DLL_API SoFile : public SoNode { typedef SoNode inherited; SO_NODE_HEADER(SoFile); public: static void initClass(void); SoFile(void); SoSFString name; virtual void doAction(SoAction * action); virtual void callback(SoCallbackAction * action); virtual void GLRender(SoGLRenderAction * action); virtual void getBoundingBox(SoGetBoundingBoxAction * action); virtual void getMatrix(SoGetMatrixAction * action); virtual void handleEvent(SoHandleEventAction * action); virtual void pick(SoPickAction * action); virtual void getPrimitiveCount(SoGetPrimitiveCountAction * action); virtual void audioRender(SoAudioRenderAction * action); virtual void search(SoSearchAction * action); SoGroup * copyChildren(void) const; virtual SoChildList * getChildren(void) const; virtual void copyContents(const SoFieldContainer * from, SbBool copyconnections); const SbString & getFullName(void) const; static void setSearchOK(SbBool dosearch); static SbBool getSearchOK(); protected: virtual ~SoFile(); virtual SbBool readInstance(SoInput * in, unsigned short flags); virtual SbBool readNamedFile(SoInput * in); private: static void nameFieldModified(void * userdata, SoSensor * sensor); SoChildList * children; SoFieldSensor * namesensor; SbString fullname; }; #endif // !COIN_SOFILE_H
39.16
64
(translation_unit) "#ifndef COIN_SOFILE_H\n#define COIN_SOFILE_H\n\n/**************************************************************************\\n *\n * This file is part of the Coin 3D visualization library.\n * Copyright (C) by <NAME> & Gas Technologies.\n *\n * This library is free software; you can redistribute it and/or\n * modify it under the terms of the GNU General Public License\n * ("GPL") version 2 as published by the Free Software Foundation.\n * See the file LICENSE.GPL at the root directory of this source\n * distribution for additional information about the GNU GPL.\n *\n * For using Coin with software that can not be combined with the GNU\n * GPL, and for taking advantage of the additional benefits of our\n * support services, please contact Kongsberg Oil & Gas Technologies\n * about acquiring a Coin Professional Edition License.\n *\n * See http://www.coin3d.org/ for more information.\n *\n * <NAME>il & Gas Technologies, Bygdoy Alle 5, 0257 Oslo, NORWAY.\n * http://www.sim.no/ <EMAIL> <EMAIL>\n *\n\**************************************************************************/\n\n#include <Inventor/nodes/SoSubNode.h>\n#include <Inventor/fields/SoSFString.h>\n\nclass SoFieldSensor;\nclass SoGroup;\nclass SoSensor;\n\nclass COIN_DLL_API SoFile : public SoNode {\n typedef SoNode inherited;\n\n SO_NODE_HEADER(SoFile);\n\npublic:\n static void initClass(void);\n SoFile(void);\n\n SoSFString name;\n\n virtual void doAction(SoAction * action);\n virtual void callback(SoCallbackAction * action);\n virtual void GLRender(SoGLRenderAction * action);\n virtual void getBoundingBox(SoGetBoundingBoxAction * action);\n virtual void getMatrix(SoGetMatrixAction * action);\n virtual void handleEvent(SoHandleEventAction * action);\n virtual void pick(SoPickAction * action);\n virtual void getPrimitiveCount(SoGetPrimitiveCountAction * action);\n virtual void audioRender(SoAudioRenderAction * action);\n virtual void search(SoSearchAction * action);\n\n SoGroup * copyChildren(void) const;\n virtual SoChildList * getChildren(void) const;\n virtual void copyContents(const SoFieldContainer * from,\n SbBool copyconnections);\n\n const SbString & getFullName(void) const;\n\n static void setSearchOK(SbBool dosearch);\n static SbBool getSearchOK();\n\nprotected:\n virtual ~SoFile();\n\n virtual SbBool readInstance(SoInput * in, unsigned short flags);\n virtual SbBool readNamedFile(SoInput * in);\n\nprivate:\n static void nameFieldModified(void * userdata, SoSensor * sensor);\n\n SoChildList * children;\n SoFieldSensor * namesensor;\n SbString fullname;\n};\n\n#endif // !COIN_SOFILE_H\n" (preproc_ifdef) "#ifndef COIN_SOFILE_H\n#define COIN_SOFILE_H\n\n/**************************************************************************\\n *\n * This file is part of the Coin 3D visualization library.\n * Copyright (C) by <NAME> & Gas Technologies.\n *\n * This library is free software; you can redistribute it and/or\n * modify it under the terms of the GNU General Public License\n * ("GPL") version 2 as published by the Free Software Foundation.\n * See the file LICENSE.GPL at the root directory of this source\n * distribution for additional information about the GNU GPL.\n *\n * For using Coin with software that can not be combined with the GNU\n * GPL, and for taking advantage of the additional benefits of our\n * support services, please contact Kongsberg Oil & Gas Technologies\n * about acquiring a Coin Professional Edition License.\n *\n * See http://www.coin3d.org/ for more information.\n *\n * <NAME>il & Gas Technologies, Bygdoy Alle 5, 0257 Oslo, NORWAY.\n * http://www.sim.no/ <EMAIL> <EMAIL>\n *\n\**************************************************************************/\n\n#include <Inventor/nodes/SoSubNode.h>\n#include <Inventor/fields/SoSFString.h>\n\nclass SoFieldSensor;\nclass SoGroup;\nclass SoSensor;\n\nclass COIN_DLL_API SoFile : public SoNode {\n typedef SoNode inherited;\n\n SO_NODE_HEADER(SoFile);\n\npublic:\n static void initClass(void);\n SoFile(void);\n\n SoSFString name;\n\n virtual void doAction(SoAction * action);\n virtual void callback(SoCallbackAction * action);\n virtual void GLRender(SoGLRenderAction * action);\n virtual void getBoundingBox(SoGetBoundingBoxAction * action);\n virtual void getMatrix(SoGetMatrixAction * action);\n virtual void handleEvent(SoHandleEventAction * action);\n virtual void pick(SoPickAction * action);\n virtual void getPrimitiveCount(SoGetPrimitiveCountAction * action);\n virtual void audioRender(SoAudioRenderAction * action);\n virtual void search(SoSearchAction * action);\n\n SoGroup * copyChildren(void) const;\n virtual SoChildList * getChildren(void) const;\n virtual void copyContents(const SoFieldContainer * from,\n SbBool copyconnections);\n\n const SbString & getFullName(void) const;\n\n static void setSearchOK(SbBool dosearch);\n static SbBool getSearchOK();\n\nprotected:\n virtual ~SoFile();\n\n virtual SbBool readInstance(SoInput * in, unsigned short flags);\n virtual SbBool readNamedFile(SoInput * in);\n\nprivate:\n static void nameFieldModified(void * userdata, SoSensor * sensor);\n\n SoChildList * children;\n SoFieldSensor * namesensor;\n SbString fullname;\n};\n\n#endif" (#ifndef) "#ifndef" (identifier) "COIN_SOFILE_H" (preproc_def) "#define COIN_SOFILE_H\n" (#define) "#define" (identifier) "COIN_SOFILE_H" (comment) "/**************************************************************************\\n *\n * This file is part of the Coin 3D visualization library.\n * Copyright (C) by <NAME> & Gas Technologies.\n *\n * This library is free software; you can redistribute it and/or\n * modify it under the terms of the GNU General Public License\n * ("GPL") version 2 as published by the Free Software Foundation.\n * See the file LICENSE.GPL at the root directory of this source\n * distribution for additional information about the GNU GPL.\n *\n * For using Coin with software that can not be combined with the GNU\n * GPL, and for taking advantage of the additional benefits of our\n * support services, please contact Kongsberg Oil & Gas Technologies\n * about acquiring a Coin Professional Edition License.\n *\n * See http://www.coin3d.org/ for more information.\n *\n * <NAME>il & Gas Technologies, Bygdoy Alle 5, 0257 Oslo, NORWAY.\n * http://www.sim.no/ <EMAIL> <EMAIL>\n *\n\**************************************************************************/" (preproc_include) "#include <Inventor/nodes/SoSubNode.h>\n" (#include) "#include" (system_lib_string) "<Inventor/nodes/SoSubNode.h>" (preproc_include) "#include <Inventor/fields/SoSFString.h>\n" (#include) "#include" (system_lib_string) "<Inventor/fields/SoSFString.h>" (declaration) "class SoFieldSensor;" (type_identifier) "class" (identifier) "SoFieldSensor" (;) ";" (declaration) "class SoGroup;" (type_identifier) "class" (identifier) "SoGroup" (;) ";" (declaration) "class SoSensor;" (type_identifier) "class" (identifier) "SoSensor" (;) ";" (declaration) "class COIN_DLL_API" (type_identifier) "class" (identifier) "COIN_DLL_API" (;) "" (labeled_statement) "SoFile : public SoNode {\n typedef SoNode inherited;\n\n SO_NODE_HEADER(SoFile);\n\npublic:\n static void initClass(void);\n SoFile(void);\n\n SoSFString name;\n\n virtual void doAction(SoAction * action);\n virtual void callback(SoCallbackAction * action);\n virtual void GLRender(SoGLRenderAction * action);\n virtual void getBoundingBox(SoGetBoundingBoxAction * action);\n virtual void getMatrix(SoGetMatrixAction * action);\n virtual void handleEvent(SoHandleEventAction * action);\n virtual void pick(SoPickAction * action);\n virtual void getPrimitiveCount(SoGetPrimitiveCountAction * action);\n virtual void audioRender(SoAudioRenderAction * action);\n virtual void search(SoSearchAction * action);\n\n SoGroup * copyChildren(void) const;\n virtual SoChildList * getChildren(void) const;\n virtual void copyContents(const SoFieldContainer * from,\n SbBool copyconnections);\n\n const SbString & getFullName(void) const;\n\n static void setSearchOK(SbBool dosearch);\n static SbBool getSearchOK();\n\nprotected:\n virtual ~SoFile();\n\n virtual SbBool readInstance(SoInput * in, unsigned short flags);\n virtual SbBool readNamedFile(SoInput * in);\n\nprivate:\n static void nameFieldModified(void * userdata, SoSensor * sensor);\n\n SoChildList * children;\n SoFieldSensor * namesensor;\n SbString fullname;\n}" (statement_identifier) "SoFile" (:) ":" (ERROR) "public SoNode" (type_identifier) "public" (identifier) "SoNode" (compound_statement) "{\n typedef SoNode inherited;\n\n SO_NODE_HEADER(SoFile);\n\npublic:\n static void initClass(void);\n SoFile(void);\n\n SoSFString name;\n\n virtual void doAction(SoAction * action);\n virtual void callback(SoCallbackAction * action);\n virtual void GLRender(SoGLRenderAction * action);\n virtual void getBoundingBox(SoGetBoundingBoxAction * action);\n virtual void getMatrix(SoGetMatrixAction * action);\n virtual void handleEvent(SoHandleEventAction * action);\n virtual void pick(SoPickAction * action);\n virtual void getPrimitiveCount(SoGetPrimitiveCountAction * action);\n virtual void audioRender(SoAudioRenderAction * action);\n virtual void search(SoSearchAction * action);\n\n SoGroup * copyChildren(void) const;\n virtual SoChildList * getChildren(void) const;\n virtual void copyContents(const SoFieldContainer * from,\n SbBool copyconnections);\n\n const SbString & getFullName(void) const;\n\n static void setSearchOK(SbBool dosearch);\n static SbBool getSearchOK();\n\nprotected:\n virtual ~SoFile();\n\n virtual SbBool readInstance(SoInput * in, unsigned short flags);\n virtual SbBool readNamedFile(SoInput * in);\n\nprivate:\n static void nameFieldModified(void * userdata, SoSensor * sensor);\n\n SoChildList * children;\n SoFieldSensor * namesensor;\n SbString fullname;\n}" ({) "{" (type_definition) "typedef SoNode inherited;" (typedef) "typedef" (type_identifier) "SoNode" (type_identifier) "inherited" (;) ";" (expression_statement) "SO_NODE_HEADER(SoFile);" (call_expression) "SO_NODE_HEADER(SoFile)" (identifier) "SO_NODE_HEADER" (argument_list) "(SoFile)" (() "(" (identifier) "SoFile" ()) ")" (;) ";" (labeled_statement) "public:\n static void initClass(void);" (statement_identifier) "public" (:) ":" (declaration) "static void initClass(void);" (storage_class_specifier) "static" (static) "static" (primitive_type) "void" (function_declarator) "initClass(void)" (identifier) "initClass" (parameter_list) "(void)" (() "(" (parameter_declaration) "void" (primitive_type) "void" ()) ")" (;) ";" (expression_statement) "SoFile(void);" (call_expression) "SoFile(void)" (identifier) "SoFile" (argument_list) "(void)" (() "(" (identifier) "void" ()) ")" (;) ";" (declaration) "SoSFString name;" (type_identifier) "SoSFString" (identifier) "name" (;) ";" (declaration) "virtual void doAction(SoAction * action);" (type_identifier) "virtual" (ERROR) "void" (identifier) "void" (function_declarator) "doAction(SoAction * action)" (identifier) "doAction" (parameter_list) "(SoAction * action)" (() "(" (parameter_declaration) "SoAction * action" (type_identifier) "SoAction" (pointer_declarator) "* action" (*) "*" (identifier) "action" ()) ")" (;) ";" (declaration) "virtual void callback(SoCallbackAction * action);" (type_identifier) "virtual" (ERROR) "void" (identifier) "void" (function_declarator) "callback(SoCallbackAction * action)" (identifier) "callback" (parameter_list) "(SoCallbackAction * action)" (() "(" (parameter_declaration) "SoCallbackAction * action" (type_identifier) "SoCallbackAction" (pointer_declarator) "* action" (*) "*" (identifier) "action" ()) ")" (;) ";" (declaration) "virtual void GLRender(SoGLRenderAction * action);" (type_identifier) "virtual" (ERROR) "void" (identifier) "void" (function_declarator) "GLRender(SoGLRenderAction * action)" (identifier) "GLRender" (parameter_list) "(SoGLRenderAction * action)" (() "(" (parameter_declaration) "SoGLRenderAction * action" (type_identifier) "SoGLRenderAction" (pointer_declarator) "* action" (*) "*" (identifier) "action" ()) ")" (;) ";" (declaration) "virtual void getBoundingBox(SoGetBoundingBoxAction * action);" (type_identifier) "virtual" (ERROR) "void" (identifier) "void" (function_declarator) "getBoundingBox(SoGetBoundingBoxAction * action)" (identifier) "getBoundingBox" (parameter_list) "(SoGetBoundingBoxAction * action)" (() "(" (parameter_declaration) "SoGetBoundingBoxAction * action" (type_identifier) "SoGetBoundingBoxAction" (pointer_declarator) "* action" (*) "*" (identifier) "action" ()) ")" (;) ";" (declaration) "virtual void getMatrix(SoGetMatrixAction * action);" (type_identifier) "virtual" (ERROR) "void" (identifier) "void" (function_declarator) "getMatrix(SoGetMatrixAction * action)" (identifier) "getMatrix" (parameter_list) "(SoGetMatrixAction * action)" (() "(" (parameter_declaration) "SoGetMatrixAction * action" (type_identifier) "SoGetMatrixAction" (pointer_declarator) "* action" (*) "*" (identifier) "action" ()) ")" (;) ";" (declaration) "virtual void handleEvent(SoHandleEventAction * action);" (type_identifier) "virtual" (ERROR) "void" (identifier) "void" (function_declarator) "handleEvent(SoHandleEventAction * action)" (identifier) "handleEvent" (parameter_list) "(SoHandleEventAction * action)" (() "(" (parameter_declaration) "SoHandleEventAction * action" (type_identifier) "SoHandleEventAction" (pointer_declarator) "* action" (*) "*" (identifier) "action" ()) ")" (;) ";" (declaration) "virtual void pick(SoPickAction * action);" (type_identifier) "virtual" (ERROR) "void" (identifier) "void" (function_declarator) "pick(SoPickAction * action)" (identifier) "pick" (parameter_list) "(SoPickAction * action)" (() "(" (parameter_declaration) "SoPickAction * action" (type_identifier) "SoPickAction" (pointer_declarator) "* action" (*) "*" (identifier) "action" ()) ")" (;) ";" (declaration) "virtual void getPrimitiveCount(SoGetPrimitiveCountAction * action);" (type_identifier) "virtual" (ERROR) "void" (identifier) "void" (function_declarator) "getPrimitiveCount(SoGetPrimitiveCountAction * action)" (identifier) "getPrimitiveCount" (parameter_list) "(SoGetPrimitiveCountAction * action)" (() "(" (parameter_declaration) "SoGetPrimitiveCountAction * action" (type_identifier) "SoGetPrimitiveCountAction" (pointer_declarator) "* action" (*) "*" (identifier) "action" ()) ")" (;) ";" (declaration) "virtual void audioRender(SoAudioRenderAction * action);" (type_identifier) "virtual" (ERROR) "void" (identifier) "void" (function_declarator) "audioRender(SoAudioRenderAction * action)" (identifier) "audioRender" (parameter_list) "(SoAudioRenderAction * action)" (() "(" (parameter_declaration) "SoAudioRenderAction * action" (type_identifier) "SoAudioRenderAction" (pointer_declarator) "* action" (*) "*" (identifier) "action" ()) ")" (;) ";" (declaration) "virtual void search(SoSearchAction * action);" (type_identifier) "virtual" (ERROR) "void" (identifier) "void" (function_declarator) "search(SoSearchAction * action)" (identifier) "search" (parameter_list) "(SoSearchAction * action)" (() "(" (parameter_declaration) "SoSearchAction * action" (type_identifier) "SoSearchAction" (pointer_declarator) "* action" (*) "*" (identifier) "action" ()) ")" (;) ";" (declaration) "SoGroup * copyChildren(void) const;" (type_identifier) "SoGroup" (pointer_declarator) "* copyChildren(void) const" (*) "*" (function_declarator) "copyChildren(void) const" (identifier) "copyChildren" (parameter_list) "(void)" (() "(" (parameter_declaration) "void" (primitive_type) "void" ()) ")" (identifier) "const" (;) ";" (declaration) "virtual SoChildList * getChildren(void) const;" (type_identifier) "virtual" (ERROR) "SoChildList" (identifier) "SoChildList" (pointer_declarator) "* getChildren(void) const" (*) "*" (function_declarator) "getChildren(void) const" (identifier) "getChildren" (parameter_list) "(void)" (() "(" (parameter_declaration) "void" (primitive_type) "void" ()) ")" (identifier) "const" (;) ";" (declaration) "virtual void copyContents(const SoFieldContainer * from,\n SbBool copyconnections);" (type_identifier) "virtual" (ERROR) "void" (identifier) "void" (function_declarator) "copyContents(const SoFieldContainer * from,\n SbBool copyconnections)" (identifier) "copyContents" (parameter_list) "(const SoFieldContainer * from,\n SbBool copyconnections)" (() "(" (parameter_declaration) "const SoFieldContainer * from" (type_qualifier) "const" (const) "const" (type_identifier) "SoFieldContainer" (pointer_declarator) "* from" (*) "*" (identifier) "from" (,) "," (parameter_declaration) "SbBool copyconnections" (type_identifier) "SbBool" (identifier) "copyconnections" ()) ")" (;) ";" (ERROR) "const SbString & getFullName(void) const" (type_qualifier) "const" (const) "const" (type_identifier) "SbString" (ERROR) "&" (&) "&" (function_declarator) "getFullName(void) const" (identifier) "getFullName" (parameter_list) "(void)" (() "(" (parameter_declaration) "void" (primitive_type) "void" ()) ")" (identifier) "const" (expression_statement) ";" (;) ";" (declaration) "static void setSearchOK(SbBool dosearch);" (storage_class_specifier) "static" (static) "static" (primitive_type) "void" (function_declarator) "setSearchOK(SbBool dosearch)" (identifier) "setSearchOK" (parameter_list) "(SbBool dosearch)" (() "(" (parameter_declaration) "SbBool dosearch" (type_identifier) "SbBool" (identifier) "dosearch" ()) ")" (;) ";" (declaration) "static SbBool getSearchOK();" (storage_class_specifier) "static" (static) "static" (type_identifier) "SbBool" (function_declarator) "getSearchOK()" (identifier) "getSearchOK" (parameter_list) "()" (() "(" ()) ")" (;) ";" (labeled_statement) "protected:\n virtual ~SoFile();" (statement_identifier) "protected" (:) ":" (declaration) "virtual ~SoFile();" (type_identifier) "virtual" (ERROR) "~" (~) "~" (function_declarator) "SoFile()" (identifier) "SoFile" (parameter_list) "()" (() "(" ()) ")" (;) ";" (declaration) "virtual SbBool readInstance(SoInput * in, unsigned short flags);" (type_identifier) "virtual" (ERROR) "SbBool" (identifier) "SbBool" (function_declarator) "readInstance(SoInput * in, unsigned short flags)" (identifier) "readInstance" (parameter_list) "(SoInput * in, unsigned short flags)" (() "(" (parameter_declaration) "SoInput * in" (type_identifier) "SoInput" (pointer_declarator) "* in" (*) "*" (identifier) "in" (,) "," (parameter_declaration) "unsigned short flags" (sized_type_specifier) "unsigned short" (unsigned) "unsigned" (short) "short" (identifier) "flags" ()) ")" (;) ";" (declaration) "virtual SbBool readNamedFile(SoInput * in);" (type_identifier) "virtual" (ERROR) "SbBool" (identifier) "SbBool" (function_declarator) "readNamedFile(SoInput * in)" (identifier) "readNamedFile" (parameter_list) "(SoInput * in)" (() "(" (parameter_declaration) "SoInput * in" (type_identifier) "SoInput" (pointer_declarator) "* in" (*) "*" (identifier) "in" ()) ")" (;) ";" (labeled_statement) "private:\n static void nameFieldModified(void * userdata, SoSensor * sensor);" (statement_identifier) "private" (:) ":" (declaration) "static void nameFieldModified(void * userdata, SoSensor * sensor);" (storage_class_specifier) "static" (static) "static" (primitive_type) "void" (function_declarator) "nameFieldModified(void * userdata, SoSensor * sensor)" (identifier) "nameFieldModified" (parameter_list) "(void * userdata, SoSensor * sensor)" (() "(" (parameter_declaration) "void * userdata" (primitive_type) "void" (pointer_declarator) "* userdata" (*) "*" (identifier) "userdata" (,) "," (parameter_declaration) "SoSensor * sensor" (type_identifier) "SoSensor" (pointer_declarator) "* sensor" (*) "*" (identifier) "sensor" ()) ")" (;) ";" (declaration) "SoChildList * children;" (type_identifier) "SoChildList" (pointer_declarator) "* children" (*) "*" (identifier) "children" (;) ";" (declaration) "SoFieldSensor * namesensor;" (type_identifier) "SoFieldSensor" (pointer_declarator) "* namesensor" (*) "*" (identifier) "namesensor" (;) ";" (declaration) "SbString fullname;" (type_identifier) "SbString" (identifier) "fullname" (;) ";" (}) "}" (expression_statement) ";" (;) ";" (#endif) "#endif" (comment) "// !COIN_SOFILE_H"
410
18
{"language": "c", "success": true, "metadata": {"lines": 64, "avg_line_length": 39.16, "nodes": 288, "errors": 0, "source_hash": "1bd9e80de4c038b5e780e7fcd366476176ddc126844a90a64e334106cccc952c", "categorized_nodes": 192}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef COIN_SOFILE_H\n#define COIN_SOFILE_H\n\n/**************************************************************************\\\n *\n * This file is part of the Coin 3D visualization library.\n * Copyright (C) by <NAME> & Gas Technologies.\n *\n * This library is free software; you can redistribute it and/or\n * modify it under the terms of the GNU General Public License\n * (\"GPL\") version 2 as published by the Free Software Foundation.\n * See the file LICENSE.GPL at the root directory of this source\n * distribution for additional information about the GNU GPL.\n *\n * For using Coin with software that can not be combined with the GNU\n * GPL, and for taking advantage of the additional benefits of our\n * support services, please contact Kongsberg Oil & Gas Technologies\n * about acquiring a Coin Professional Edition License.\n *\n * See http://www.coin3d.org/ for more information.\n *\n * <NAME>il & Gas Technologies, Bygdoy Alle 5, 0257 Oslo, NORWAY.\n * http://www.sim.no/ <EMAIL> <EMAIL>\n *\n\\**************************************************************************/\n\n#include <Inventor/nodes/SoSubNode.h>\n#include <Inventor/fields/SoSFString.h>\n\nclass SoFieldSensor;\nclass SoGroup;\nclass SoSensor;\n\nclass COIN_DLL_API SoFile : public SoNode {\n typedef SoNode inherited;\n\n SO_NODE_HEADER(SoFile);\n\npublic:\n static void initClass(void);\n SoFile(void);\n\n SoSFString name;\n\n virtual void doAction(SoAction * action);\n virtual void callback(SoCallbackAction * action);\n virtual void GLRender(SoGLRenderAction * action);\n virtual void getBoundingBox(SoGetBoundingBoxAction * action);\n virtual void getMatrix(SoGetMatrixAction * action);\n virtual void handleEvent(SoHandleEventAction * action);\n virtual void pick(SoPickAction * action);\n virtual void getPrimitiveCount(SoGetPrimitiveCountAction * action);\n virtual void audioRender(SoAudioRenderAction * action);\n virtual void search(SoSearchAction * action);\n\n SoGroup * copyChildren(void) const;\n virtual SoChildList * getChildren(void) const;\n virtual void copyContents(const SoFieldContainer * from,\n SbBool copyconnections);\n\n const SbString & getFullName(void) const;\n\n static void setSearchOK(SbBool dosearch);\n static SbBool getSearchOK();\n\nprotected:\n virtual ~SoFile();\n\n virtual SbBool readInstance(SoInput * in, unsigned short flags);\n virtual SbBool readNamedFile(SoInput * in);\n\nprivate:\n static void nameFieldModified(void * userdata, SoSensor * sensor);\n\n SoChildList * children;\n SoFieldSensor * namesensor;\n SbString fullname;\n};\n\n#endif", "parent": null, "children": [1, 2, 3, 6, 9, 12, 14, 16, 18, 20, 287], "start_point": {"row": 0, "column": 0}, "end_point": {"row": 79, "column": 6}}, {"id": 1, "type": "#ifndef", "text": "#ifndef", "parent": 0, "children": [], "start_point": {"row": 0, "column": 0}, "end_point": {"row": 0, "column": 7}}, {"id": 2, "type": "identifier", "text": "COIN_SOFILE_H", "parent": 0, "children": [], "start_point": {"row": 0, "column": 8}, "end_point": {"row": 0, "column": 21}}, {"id": 3, "type": "preproc_def", "text": "#define COIN_SOFILE_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": "COIN_SOFILE_H", "parent": 3, "children": [], "start_point": {"row": 1, "column": 8}, "end_point": {"row": 1, "column": 21}}, {"id": 6, "type": "preproc_include", "text": "#include <Inventor/nodes/SoSubNode.h>\n", "parent": 0, "children": [7, 8], "start_point": {"row": 26, "column": 0}, "end_point": {"row": 27, "column": 0}}, {"id": 7, "type": "#include", "text": "#include", "parent": 6, "children": [], "start_point": {"row": 26, "column": 0}, "end_point": {"row": 26, "column": 8}}, {"id": 8, "type": "system_lib_string", "text": "<Inventor/nodes/SoSubNode.h>", "parent": 6, "children": [], "start_point": {"row": 26, "column": 9}, "end_point": {"row": 26, "column": 37}}, {"id": 9, "type": "preproc_include", "text": "#include <Inventor/fields/SoSFString.h>\n", "parent": 0, "children": [10, 11], "start_point": {"row": 27, "column": 0}, "end_point": {"row": 28, "column": 0}}, {"id": 10, "type": "#include", "text": "#include", "parent": 9, "children": [], "start_point": {"row": 27, "column": 0}, "end_point": {"row": 27, "column": 8}}, {"id": 11, "type": "system_lib_string", "text": "<Inventor/fields/SoSFString.h>", "parent": 9, "children": [], "start_point": {"row": 27, "column": 9}, "end_point": {"row": 27, "column": 39}}, {"id": 12, "type": "declaration", "text": "class SoFieldSensor;", "parent": 0, "children": [13], "start_point": {"row": 29, "column": 0}, "end_point": {"row": 29, "column": 20}}, {"id": 13, "type": "identifier", "text": "SoFieldSensor", "parent": 12, "children": [], "start_point": {"row": 29, "column": 6}, "end_point": {"row": 29, "column": 19}}, {"id": 14, "type": "declaration", "text": "class SoGroup;", "parent": 0, "children": [15], "start_point": {"row": 30, "column": 0}, "end_point": {"row": 30, "column": 14}}, {"id": 15, "type": "identifier", "text": "SoGroup", "parent": 14, "children": [], "start_point": {"row": 30, "column": 6}, "end_point": {"row": 30, "column": 13}}, {"id": 16, "type": "declaration", "text": "class SoSensor;", "parent": 0, "children": [17], "start_point": {"row": 31, "column": 0}, "end_point": {"row": 31, "column": 15}}, {"id": 17, "type": "identifier", "text": "SoSensor", "parent": 16, "children": [], "start_point": {"row": 31, "column": 6}, "end_point": {"row": 31, "column": 14}}, {"id": 18, "type": "declaration", "text": "class COIN_DLL_API", "parent": 0, "children": [19], "start_point": {"row": 33, "column": 0}, "end_point": {"row": 33, "column": 18}}, {"id": 19, "type": "identifier", "text": "COIN_DLL_API", "parent": 18, "children": [], "start_point": {"row": 33, "column": 6}, "end_point": {"row": 33, "column": 18}}, {"id": 20, "type": "labeled_statement", "text": "SoFile : public SoNode {\n typedef SoNode inherited;\n\n SO_NODE_HEADER(SoFile);\n\npublic:\n static void initClass(void);\n SoFile(void);\n\n SoSFString name;\n\n virtual void doAction(SoAction * action);\n virtual void callback(SoCallbackAction * action);\n virtual void GLRender(SoGLRenderAction * action);\n virtual void getBoundingBox(SoGetBoundingBoxAction * action);\n virtual void getMatrix(SoGetMatrixAction * action);\n virtual void handleEvent(SoHandleEventAction * action);\n virtual void pick(SoPickAction * action);\n virtual void getPrimitiveCount(SoGetPrimitiveCountAction * action);\n virtual void audioRender(SoAudioRenderAction * action);\n virtual void search(SoSearchAction * action);\n\n SoGroup * copyChildren(void) const;\n virtual SoChildList * getChildren(void) const;\n virtual void copyContents(const SoFieldContainer * from,\n SbBool copyconnections);\n\n const SbString & getFullName(void) const;\n\n static void setSearchOK(SbBool dosearch);\n static SbBool getSearchOK();\n\nprotected:\n virtual ~SoFile();\n\n virtual SbBool readInstance(SoInput * in, unsigned short flags);\n virtual SbBool readNamedFile(SoInput * in);\n\nprivate:\n static void nameFieldModified(void * userdata, SoSensor * sensor);\n\n SoChildList * children;\n SoFieldSensor * namesensor;\n SbString fullname;\n}", "parent": 0, "children": [21, 22], "start_point": {"row": 33, "column": 19}, "end_point": {"row": 77, "column": 1}}, {"id": 21, "type": "statement_identifier", "text": "SoFile", "parent": 20, "children": [], "start_point": {"row": 33, "column": 19}, "end_point": {"row": 33, "column": 25}}, {"id": 22, "type": "ERROR", "text": "public SoNode", "parent": 20, "children": [23], "start_point": {"row": 33, "column": 28}, "end_point": {"row": 33, "column": 41}}, {"id": 23, "type": "identifier", "text": "SoNode", "parent": 22, "children": [], "start_point": {"row": 33, "column": 35}, "end_point": {"row": 33, "column": 41}}, {"id": 24, "type": "type_definition", "text": "typedef SoNode inherited;", "parent": 20, "children": [25, 26, 27], "start_point": {"row": 34, "column": 2}, "end_point": {"row": 34, "column": 27}}, {"id": 25, "type": "typedef", "text": "typedef", "parent": 24, "children": [], "start_point": {"row": 34, "column": 2}, "end_point": {"row": 34, "column": 9}}, {"id": 26, "type": "type_identifier", "text": "SoNode", "parent": 24, "children": [], "start_point": {"row": 34, "column": 10}, "end_point": {"row": 34, "column": 16}}, {"id": 27, "type": "type_identifier", "text": "inherited", "parent": 24, "children": [], "start_point": {"row": 34, "column": 17}, "end_point": {"row": 34, "column": 26}}, {"id": 28, "type": "call_expression", "text": "SO_NODE_HEADER(SoFile)", "parent": 20, "children": [29, 30], "start_point": {"row": 36, "column": 2}, "end_point": {"row": 36, "column": 24}}, {"id": 29, "type": "identifier", "text": "SO_NODE_HEADER", "parent": 28, "children": [], "start_point": {"row": 36, "column": 2}, "end_point": {"row": 36, "column": 16}}, {"id": 30, "type": "argument_list", "text": "(SoFile)", "parent": 28, "children": [31], "start_point": {"row": 36, "column": 16}, "end_point": {"row": 36, "column": 24}}, {"id": 31, "type": "identifier", "text": "SoFile", "parent": 30, "children": [], "start_point": {"row": 36, "column": 17}, "end_point": {"row": 36, "column": 23}}, {"id": 32, "type": "labeled_statement", "text": "public:\n static void initClass(void);", "parent": 20, "children": [33], "start_point": {"row": 38, "column": 0}, "end_point": {"row": 39, "column": 30}}, {"id": 33, "type": "declaration", "text": "static void initClass(void);", "parent": 32, "children": [34, 35], "start_point": {"row": 39, "column": 2}, "end_point": {"row": 39, "column": 30}}, {"id": 34, "type": "primitive_type", "text": "void", "parent": 33, "children": [], "start_point": {"row": 39, "column": 9}, "end_point": {"row": 39, "column": 13}}, {"id": 35, "type": "function_declarator", "text": "initClass(void)", "parent": 33, "children": [36, 37], "start_point": {"row": 39, "column": 14}, "end_point": {"row": 39, "column": 29}}, {"id": 36, "type": "identifier", "text": "initClass", "parent": 35, "children": [], "start_point": {"row": 39, "column": 14}, "end_point": {"row": 39, "column": 23}}, {"id": 37, "type": "parameter_list", "text": "(void)", "parent": 35, "children": [38], "start_point": {"row": 39, "column": 23}, "end_point": {"row": 39, "column": 29}}, {"id": 38, "type": "parameter_declaration", "text": "void", "parent": 37, "children": [39], "start_point": {"row": 39, "column": 24}, "end_point": {"row": 39, "column": 28}}, {"id": 39, "type": "primitive_type", "text": "void", "parent": 38, "children": [], "start_point": {"row": 39, "column": 24}, "end_point": {"row": 39, "column": 28}}, {"id": 40, "type": "call_expression", "text": "SoFile(void)", "parent": 20, "children": [41, 42], "start_point": {"row": 40, "column": 2}, "end_point": {"row": 40, "column": 14}}, {"id": 41, "type": "identifier", "text": "SoFile", "parent": 40, "children": [], "start_point": {"row": 40, "column": 2}, "end_point": {"row": 40, "column": 8}}, {"id": 42, "type": "argument_list", "text": "(void)", "parent": 40, "children": [43], "start_point": {"row": 40, "column": 8}, "end_point": {"row": 40, "column": 14}}, {"id": 43, "type": "identifier", "text": "void", "parent": 42, "children": [], "start_point": {"row": 40, "column": 9}, "end_point": {"row": 40, "column": 13}}, {"id": 44, "type": "declaration", "text": "SoSFString name;", "parent": 20, "children": [45, 46], "start_point": {"row": 42, "column": 2}, "end_point": {"row": 42, "column": 18}}, {"id": 45, "type": "type_identifier", "text": "SoSFString", "parent": 44, "children": [], "start_point": {"row": 42, "column": 2}, "end_point": {"row": 42, "column": 12}}, {"id": 46, "type": "identifier", "text": "name", "parent": 44, "children": [], "start_point": {"row": 42, "column": 13}, "end_point": {"row": 42, "column": 17}}, {"id": 47, "type": "declaration", "text": "virtual void doAction(SoAction * action);", "parent": 20, "children": [48, 49, 51], "start_point": {"row": 44, "column": 2}, "end_point": {"row": 44, "column": 43}}, {"id": 48, "type": "type_identifier", "text": "virtual", "parent": 47, "children": [], "start_point": {"row": 44, "column": 2}, "end_point": {"row": 44, "column": 9}}, {"id": 49, "type": "ERROR", "text": "void", "parent": 47, "children": [50], "start_point": {"row": 44, "column": 10}, "end_point": {"row": 44, "column": 14}}, {"id": 50, "type": "identifier", "text": "void", "parent": 49, "children": [], "start_point": {"row": 44, "column": 10}, "end_point": {"row": 44, "column": 14}}, {"id": 51, "type": "function_declarator", "text": "doAction(SoAction * action)", "parent": 47, "children": [52, 53], "start_point": {"row": 44, "column": 15}, "end_point": {"row": 44, "column": 42}}, {"id": 52, "type": "identifier", "text": "doAction", "parent": 51, "children": [], "start_point": {"row": 44, "column": 15}, "end_point": {"row": 44, "column": 23}}, {"id": 53, "type": "parameter_list", "text": "(SoAction * action)", "parent": 51, "children": [54], "start_point": {"row": 44, "column": 23}, "end_point": {"row": 44, "column": 42}}, {"id": 54, "type": "parameter_declaration", "text": "SoAction * action", "parent": 53, "children": [55, 56], "start_point": {"row": 44, "column": 24}, "end_point": {"row": 44, "column": 41}}, {"id": 55, "type": "type_identifier", "text": "SoAction", "parent": 54, "children": [], "start_point": {"row": 44, "column": 24}, "end_point": {"row": 44, "column": 32}}, {"id": 56, "type": "pointer_declarator", "text": "* action", "parent": 54, "children": [57, 58], "start_point": {"row": 44, "column": 33}, "end_point": {"row": 44, "column": 41}}, {"id": 57, "type": "*", "text": "*", "parent": 56, "children": [], "start_point": {"row": 44, "column": 33}, "end_point": {"row": 44, "column": 34}}, {"id": 58, "type": "identifier", "text": "action", "parent": 56, "children": [], "start_point": {"row": 44, "column": 35}, "end_point": {"row": 44, "column": 41}}, {"id": 59, "type": "declaration", "text": "virtual void callback(SoCallbackAction * action);", "parent": 20, "children": [60, 61, 63], "start_point": {"row": 45, "column": 2}, "end_point": {"row": 45, "column": 51}}, {"id": 60, "type": "type_identifier", "text": "virtual", "parent": 59, "children": [], "start_point": {"row": 45, "column": 2}, "end_point": {"row": 45, "column": 9}}, {"id": 61, "type": "ERROR", "text": "void", "parent": 59, "children": [62], "start_point": {"row": 45, "column": 10}, "end_point": {"row": 45, "column": 14}}, {"id": 62, "type": "identifier", "text": "void", "parent": 61, "children": [], "start_point": {"row": 45, "column": 10}, "end_point": {"row": 45, "column": 14}}, {"id": 63, "type": "function_declarator", "text": "callback(SoCallbackAction * action)", "parent": 59, "children": [64, 65], "start_point": {"row": 45, "column": 15}, "end_point": {"row": 45, "column": 50}}, {"id": 64, "type": "identifier", "text": "callback", "parent": 63, "children": [], "start_point": {"row": 45, "column": 15}, "end_point": {"row": 45, "column": 23}}, {"id": 65, "type": "parameter_list", "text": "(SoCallbackAction * action)", "parent": 63, "children": [66], "start_point": {"row": 45, "column": 23}, "end_point": {"row": 45, "column": 50}}, {"id": 66, "type": "parameter_declaration", "text": "SoCallbackAction * action", "parent": 65, "children": [67, 68], "start_point": {"row": 45, "column": 24}, "end_point": {"row": 45, "column": 49}}, {"id": 67, "type": "type_identifier", "text": "SoCallbackAction", "parent": 66, "children": [], "start_point": {"row": 45, "column": 24}, "end_point": {"row": 45, "column": 40}}, {"id": 68, "type": "pointer_declarator", "text": "* action", "parent": 66, "children": [69, 70], "start_point": {"row": 45, "column": 41}, "end_point": {"row": 45, "column": 49}}, {"id": 69, "type": "*", "text": "*", "parent": 68, "children": [], "start_point": {"row": 45, "column": 41}, "end_point": {"row": 45, "column": 42}}, {"id": 70, "type": "identifier", "text": "action", "parent": 68, "children": [], "start_point": {"row": 45, "column": 43}, "end_point": {"row": 45, "column": 49}}, {"id": 71, "type": "declaration", "text": "virtual void GLRender(SoGLRenderAction * action);", "parent": 20, "children": [72, 73, 75], "start_point": {"row": 46, "column": 2}, "end_point": {"row": 46, "column": 51}}, {"id": 72, "type": "type_identifier", "text": "virtual", "parent": 71, "children": [], "start_point": {"row": 46, "column": 2}, "end_point": {"row": 46, "column": 9}}, {"id": 73, "type": "ERROR", "text": "void", "parent": 71, "children": [74], "start_point": {"row": 46, "column": 10}, "end_point": {"row": 46, "column": 14}}, {"id": 74, "type": "identifier", "text": "void", "parent": 73, "children": [], "start_point": {"row": 46, "column": 10}, "end_point": {"row": 46, "column": 14}}, {"id": 75, "type": "function_declarator", "text": "GLRender(SoGLRenderAction * action)", "parent": 71, "children": [76, 77], "start_point": {"row": 46, "column": 15}, "end_point": {"row": 46, "column": 50}}, {"id": 76, "type": "identifier", "text": "GLRender", "parent": 75, "children": [], "start_point": {"row": 46, "column": 15}, "end_point": {"row": 46, "column": 23}}, {"id": 77, "type": "parameter_list", "text": "(SoGLRenderAction * action)", "parent": 75, "children": [78], "start_point": {"row": 46, "column": 23}, "end_point": {"row": 46, "column": 50}}, {"id": 78, "type": "parameter_declaration", "text": "SoGLRenderAction * action", "parent": 77, "children": [79, 80], "start_point": {"row": 46, "column": 24}, "end_point": {"row": 46, "column": 49}}, {"id": 79, "type": "type_identifier", "text": "SoGLRenderAction", "parent": 78, "children": [], "start_point": {"row": 46, "column": 24}, "end_point": {"row": 46, "column": 40}}, {"id": 80, "type": "pointer_declarator", "text": "* action", "parent": 78, "children": [81, 82], "start_point": {"row": 46, "column": 41}, "end_point": {"row": 46, "column": 49}}, {"id": 81, "type": "*", "text": "*", "parent": 80, "children": [], "start_point": {"row": 46, "column": 41}, "end_point": {"row": 46, "column": 42}}, {"id": 82, "type": "identifier", "text": "action", "parent": 80, "children": [], "start_point": {"row": 46, "column": 43}, "end_point": {"row": 46, "column": 49}}, {"id": 83, "type": "declaration", "text": "virtual void getBoundingBox(SoGetBoundingBoxAction * action);", "parent": 20, "children": [84, 85, 87], "start_point": {"row": 47, "column": 2}, "end_point": {"row": 47, "column": 63}}, {"id": 84, "type": "type_identifier", "text": "virtual", "parent": 83, "children": [], "start_point": {"row": 47, "column": 2}, "end_point": {"row": 47, "column": 9}}, {"id": 85, "type": "ERROR", "text": "void", "parent": 83, "children": [86], "start_point": {"row": 47, "column": 10}, "end_point": {"row": 47, "column": 14}}, {"id": 86, "type": "identifier", "text": "void", "parent": 85, "children": [], "start_point": {"row": 47, "column": 10}, "end_point": {"row": 47, "column": 14}}, {"id": 87, "type": "function_declarator", "text": "getBoundingBox(SoGetBoundingBoxAction * action)", "parent": 83, "children": [88, 89], "start_point": {"row": 47, "column": 15}, "end_point": {"row": 47, "column": 62}}, {"id": 88, "type": "identifier", "text": "getBoundingBox", "parent": 87, "children": [], "start_point": {"row": 47, "column": 15}, "end_point": {"row": 47, "column": 29}}, {"id": 89, "type": "parameter_list", "text": "(SoGetBoundingBoxAction * action)", "parent": 87, "children": [90], "start_point": {"row": 47, "column": 29}, "end_point": {"row": 47, "column": 62}}, {"id": 90, "type": "parameter_declaration", "text": "SoGetBoundingBoxAction * action", "parent": 89, "children": [91, 92], "start_point": {"row": 47, "column": 30}, "end_point": {"row": 47, "column": 61}}, {"id": 91, "type": "type_identifier", "text": "SoGetBoundingBoxAction", "parent": 90, "children": [], "start_point": {"row": 47, "column": 30}, "end_point": {"row": 47, "column": 52}}, {"id": 92, "type": "pointer_declarator", "text": "* action", "parent": 90, "children": [93, 94], "start_point": {"row": 47, "column": 53}, "end_point": {"row": 47, "column": 61}}, {"id": 93, "type": "*", "text": "*", "parent": 92, "children": [], "start_point": {"row": 47, "column": 53}, "end_point": {"row": 47, "column": 54}}, {"id": 94, "type": "identifier", "text": "action", "parent": 92, "children": [], "start_point": {"row": 47, "column": 55}, "end_point": {"row": 47, "column": 61}}, {"id": 95, "type": "declaration", "text": "virtual void getMatrix(SoGetMatrixAction * action);", "parent": 20, "children": [96, 97, 99], "start_point": {"row": 48, "column": 2}, "end_point": {"row": 48, "column": 53}}, {"id": 96, "type": "type_identifier", "text": "virtual", "parent": 95, "children": [], "start_point": {"row": 48, "column": 2}, "end_point": {"row": 48, "column": 9}}, {"id": 97, "type": "ERROR", "text": "void", "parent": 95, "children": [98], "start_point": {"row": 48, "column": 10}, "end_point": {"row": 48, "column": 14}}, {"id": 98, "type": "identifier", "text": "void", "parent": 97, "children": [], "start_point": {"row": 48, "column": 10}, "end_point": {"row": 48, "column": 14}}, {"id": 99, "type": "function_declarator", "text": "getMatrix(SoGetMatrixAction * action)", "parent": 95, "children": [100, 101], "start_point": {"row": 48, "column": 15}, "end_point": {"row": 48, "column": 52}}, {"id": 100, "type": "identifier", "text": "getMatrix", "parent": 99, "children": [], "start_point": {"row": 48, "column": 15}, "end_point": {"row": 48, "column": 24}}, {"id": 101, "type": "parameter_list", "text": "(SoGetMatrixAction * action)", "parent": 99, "children": [102], "start_point": {"row": 48, "column": 24}, "end_point": {"row": 48, "column": 52}}, {"id": 102, "type": "parameter_declaration", "text": "SoGetMatrixAction * action", "parent": 101, "children": [103, 104], "start_point": {"row": 48, "column": 25}, "end_point": {"row": 48, "column": 51}}, {"id": 103, "type": "type_identifier", "text": "SoGetMatrixAction", "parent": 102, "children": [], "start_point": {"row": 48, "column": 25}, "end_point": {"row": 48, "column": 42}}, {"id": 104, "type": "pointer_declarator", "text": "* action", "parent": 102, "children": [105, 106], "start_point": {"row": 48, "column": 43}, "end_point": {"row": 48, "column": 51}}, {"id": 105, "type": "*", "text": "*", "parent": 104, "children": [], "start_point": {"row": 48, "column": 43}, "end_point": {"row": 48, "column": 44}}, {"id": 106, "type": "identifier", "text": "action", "parent": 104, "children": [], "start_point": {"row": 48, "column": 45}, "end_point": {"row": 48, "column": 51}}, {"id": 107, "type": "declaration", "text": "virtual void handleEvent(SoHandleEventAction * action);", "parent": 20, "children": [108, 109, 111], "start_point": {"row": 49, "column": 2}, "end_point": {"row": 49, "column": 57}}, {"id": 108, "type": "type_identifier", "text": "virtual", "parent": 107, "children": [], "start_point": {"row": 49, "column": 2}, "end_point": {"row": 49, "column": 9}}, {"id": 109, "type": "ERROR", "text": "void", "parent": 107, "children": [110], "start_point": {"row": 49, "column": 10}, "end_point": {"row": 49, "column": 14}}, {"id": 110, "type": "identifier", "text": "void", "parent": 109, "children": [], "start_point": {"row": 49, "column": 10}, "end_point": {"row": 49, "column": 14}}, {"id": 111, "type": "function_declarator", "text": "handleEvent(SoHandleEventAction * action)", "parent": 107, "children": [112, 113], "start_point": {"row": 49, "column": 15}, "end_point": {"row": 49, "column": 56}}, {"id": 112, "type": "identifier", "text": "handleEvent", "parent": 111, "children": [], "start_point": {"row": 49, "column": 15}, "end_point": {"row": 49, "column": 26}}, {"id": 113, "type": "parameter_list", "text": "(SoHandleEventAction * action)", "parent": 111, "children": [114], "start_point": {"row": 49, "column": 26}, "end_point": {"row": 49, "column": 56}}, {"id": 114, "type": "parameter_declaration", "text": "SoHandleEventAction * action", "parent": 113, "children": [115, 116], "start_point": {"row": 49, "column": 27}, "end_point": {"row": 49, "column": 55}}, {"id": 115, "type": "type_identifier", "text": "SoHandleEventAction", "parent": 114, "children": [], "start_point": {"row": 49, "column": 27}, "end_point": {"row": 49, "column": 46}}, {"id": 116, "type": "pointer_declarator", "text": "* action", "parent": 114, "children": [117, 118], "start_point": {"row": 49, "column": 47}, "end_point": {"row": 49, "column": 55}}, {"id": 117, "type": "*", "text": "*", "parent": 116, "children": [], "start_point": {"row": 49, "column": 47}, "end_point": {"row": 49, "column": 48}}, {"id": 118, "type": "identifier", "text": "action", "parent": 116, "children": [], "start_point": {"row": 49, "column": 49}, "end_point": {"row": 49, "column": 55}}, {"id": 119, "type": "declaration", "text": "virtual void pick(SoPickAction * action);", "parent": 20, "children": [120, 121, 123], "start_point": {"row": 50, "column": 2}, "end_point": {"row": 50, "column": 43}}, {"id": 120, "type": "type_identifier", "text": "virtual", "parent": 119, "children": [], "start_point": {"row": 50, "column": 2}, "end_point": {"row": 50, "column": 9}}, {"id": 121, "type": "ERROR", "text": "void", "parent": 119, "children": [122], "start_point": {"row": 50, "column": 10}, "end_point": {"row": 50, "column": 14}}, {"id": 122, "type": "identifier", "text": "void", "parent": 121, "children": [], "start_point": {"row": 50, "column": 10}, "end_point": {"row": 50, "column": 14}}, {"id": 123, "type": "function_declarator", "text": "pick(SoPickAction * action)", "parent": 119, "children": [124, 125], "start_point": {"row": 50, "column": 15}, "end_point": {"row": 50, "column": 42}}, {"id": 124, "type": "identifier", "text": "pick", "parent": 123, "children": [], "start_point": {"row": 50, "column": 15}, "end_point": {"row": 50, "column": 19}}, {"id": 125, "type": "parameter_list", "text": "(SoPickAction * action)", "parent": 123, "children": [126], "start_point": {"row": 50, "column": 19}, "end_point": {"row": 50, "column": 42}}, {"id": 126, "type": "parameter_declaration", "text": "SoPickAction * action", "parent": 125, "children": [127, 128], "start_point": {"row": 50, "column": 20}, "end_point": {"row": 50, "column": 41}}, {"id": 127, "type": "type_identifier", "text": "SoPickAction", "parent": 126, "children": [], "start_point": {"row": 50, "column": 20}, "end_point": {"row": 50, "column": 32}}, {"id": 128, "type": "pointer_declarator", "text": "* action", "parent": 126, "children": [129, 130], "start_point": {"row": 50, "column": 33}, "end_point": {"row": 50, "column": 41}}, {"id": 129, "type": "*", "text": "*", "parent": 128, "children": [], "start_point": {"row": 50, "column": 33}, "end_point": {"row": 50, "column": 34}}, {"id": 130, "type": "identifier", "text": "action", "parent": 128, "children": [], "start_point": {"row": 50, "column": 35}, "end_point": {"row": 50, "column": 41}}, {"id": 131, "type": "declaration", "text": "virtual void getPrimitiveCount(SoGetPrimitiveCountAction * action);", "parent": 20, "children": [132, 133, 135], "start_point": {"row": 51, "column": 2}, "end_point": {"row": 51, "column": 69}}, {"id": 132, "type": "type_identifier", "text": "virtual", "parent": 131, "children": [], "start_point": {"row": 51, "column": 2}, "end_point": {"row": 51, "column": 9}}, {"id": 133, "type": "ERROR", "text": "void", "parent": 131, "children": [134], "start_point": {"row": 51, "column": 10}, "end_point": {"row": 51, "column": 14}}, {"id": 134, "type": "identifier", "text": "void", "parent": 133, "children": [], "start_point": {"row": 51, "column": 10}, "end_point": {"row": 51, "column": 14}}, {"id": 135, "type": "function_declarator", "text": "getPrimitiveCount(SoGetPrimitiveCountAction * action)", "parent": 131, "children": [136, 137], "start_point": {"row": 51, "column": 15}, "end_point": {"row": 51, "column": 68}}, {"id": 136, "type": "identifier", "text": "getPrimitiveCount", "parent": 135, "children": [], "start_point": {"row": 51, "column": 15}, "end_point": {"row": 51, "column": 32}}, {"id": 137, "type": "parameter_list", "text": "(SoGetPrimitiveCountAction * action)", "parent": 135, "children": [138], "start_point": {"row": 51, "column": 32}, "end_point": {"row": 51, "column": 68}}, {"id": 138, "type": "parameter_declaration", "text": "SoGetPrimitiveCountAction * action", "parent": 137, "children": [139, 140], "start_point": {"row": 51, "column": 33}, "end_point": {"row": 51, "column": 67}}, {"id": 139, "type": "type_identifier", "text": "SoGetPrimitiveCountAction", "parent": 138, "children": [], "start_point": {"row": 51, "column": 33}, "end_point": {"row": 51, "column": 58}}, {"id": 140, "type": "pointer_declarator", "text": "* action", "parent": 138, "children": [141, 142], "start_point": {"row": 51, "column": 59}, "end_point": {"row": 51, "column": 67}}, {"id": 141, "type": "*", "text": "*", "parent": 140, "children": [], "start_point": {"row": 51, "column": 59}, "end_point": {"row": 51, "column": 60}}, {"id": 142, "type": "identifier", "text": "action", "parent": 140, "children": [], "start_point": {"row": 51, "column": 61}, "end_point": {"row": 51, "column": 67}}, {"id": 143, "type": "declaration", "text": "virtual void audioRender(SoAudioRenderAction * action);", "parent": 20, "children": [144, 145, 147], "start_point": {"row": 52, "column": 2}, "end_point": {"row": 52, "column": 57}}, {"id": 144, "type": "type_identifier", "text": "virtual", "parent": 143, "children": [], "start_point": {"row": 52, "column": 2}, "end_point": {"row": 52, "column": 9}}, {"id": 145, "type": "ERROR", "text": "void", "parent": 143, "children": [146], "start_point": {"row": 52, "column": 10}, "end_point": {"row": 52, "column": 14}}, {"id": 146, "type": "identifier", "text": "void", "parent": 145, "children": [], "start_point": {"row": 52, "column": 10}, "end_point": {"row": 52, "column": 14}}, {"id": 147, "type": "function_declarator", "text": "audioRender(SoAudioRenderAction * action)", "parent": 143, "children": [148, 149], "start_point": {"row": 52, "column": 15}, "end_point": {"row": 52, "column": 56}}, {"id": 148, "type": "identifier", "text": "audioRender", "parent": 147, "children": [], "start_point": {"row": 52, "column": 15}, "end_point": {"row": 52, "column": 26}}, {"id": 149, "type": "parameter_list", "text": "(SoAudioRenderAction * action)", "parent": 147, "children": [150], "start_point": {"row": 52, "column": 26}, "end_point": {"row": 52, "column": 56}}, {"id": 150, "type": "parameter_declaration", "text": "SoAudioRenderAction * action", "parent": 149, "children": [151, 152], "start_point": {"row": 52, "column": 27}, "end_point": {"row": 52, "column": 55}}, {"id": 151, "type": "type_identifier", "text": "SoAudioRenderAction", "parent": 150, "children": [], "start_point": {"row": 52, "column": 27}, "end_point": {"row": 52, "column": 46}}, {"id": 152, "type": "pointer_declarator", "text": "* action", "parent": 150, "children": [153, 154], "start_point": {"row": 52, "column": 47}, "end_point": {"row": 52, "column": 55}}, {"id": 153, "type": "*", "text": "*", "parent": 152, "children": [], "start_point": {"row": 52, "column": 47}, "end_point": {"row": 52, "column": 48}}, {"id": 154, "type": "identifier", "text": "action", "parent": 152, "children": [], "start_point": {"row": 52, "column": 49}, "end_point": {"row": 52, "column": 55}}, {"id": 155, "type": "declaration", "text": "virtual void search(SoSearchAction * action);", "parent": 20, "children": [156, 157, 159], "start_point": {"row": 53, "column": 2}, "end_point": {"row": 53, "column": 47}}, {"id": 156, "type": "type_identifier", "text": "virtual", "parent": 155, "children": [], "start_point": {"row": 53, "column": 2}, "end_point": {"row": 53, "column": 9}}, {"id": 157, "type": "ERROR", "text": "void", "parent": 155, "children": [158], "start_point": {"row": 53, "column": 10}, "end_point": {"row": 53, "column": 14}}, {"id": 158, "type": "identifier", "text": "void", "parent": 157, "children": [], "start_point": {"row": 53, "column": 10}, "end_point": {"row": 53, "column": 14}}, {"id": 159, "type": "function_declarator", "text": "search(SoSearchAction * action)", "parent": 155, "children": [160, 161], "start_point": {"row": 53, "column": 15}, "end_point": {"row": 53, "column": 46}}, {"id": 160, "type": "identifier", "text": "search", "parent": 159, "children": [], "start_point": {"row": 53, "column": 15}, "end_point": {"row": 53, "column": 21}}, {"id": 161, "type": "parameter_list", "text": "(SoSearchAction * action)", "parent": 159, "children": [162], "start_point": {"row": 53, "column": 21}, "end_point": {"row": 53, "column": 46}}, {"id": 162, "type": "parameter_declaration", "text": "SoSearchAction * action", "parent": 161, "children": [163, 164], "start_point": {"row": 53, "column": 22}, "end_point": {"row": 53, "column": 45}}, {"id": 163, "type": "type_identifier", "text": "SoSearchAction", "parent": 162, "children": [], "start_point": {"row": 53, "column": 22}, "end_point": {"row": 53, "column": 36}}, {"id": 164, "type": "pointer_declarator", "text": "* action", "parent": 162, "children": [165, 166], "start_point": {"row": 53, "column": 37}, "end_point": {"row": 53, "column": 45}}, {"id": 165, "type": "*", "text": "*", "parent": 164, "children": [], "start_point": {"row": 53, "column": 37}, "end_point": {"row": 53, "column": 38}}, {"id": 166, "type": "identifier", "text": "action", "parent": 164, "children": [], "start_point": {"row": 53, "column": 39}, "end_point": {"row": 53, "column": 45}}, {"id": 167, "type": "declaration", "text": "SoGroup * copyChildren(void) const;", "parent": 20, "children": [168, 169], "start_point": {"row": 55, "column": 2}, "end_point": {"row": 55, "column": 37}}, {"id": 168, "type": "type_identifier", "text": "SoGroup", "parent": 167, "children": [], "start_point": {"row": 55, "column": 2}, "end_point": {"row": 55, "column": 9}}, {"id": 169, "type": "pointer_declarator", "text": "* copyChildren(void) const", "parent": 167, "children": [170, 171], "start_point": {"row": 55, "column": 10}, "end_point": {"row": 55, "column": 36}}, {"id": 170, "type": "*", "text": "*", "parent": 169, "children": [], "start_point": {"row": 55, "column": 10}, "end_point": {"row": 55, "column": 11}}, {"id": 171, "type": "function_declarator", "text": "copyChildren(void) const", "parent": 169, "children": [172, 173], "start_point": {"row": 55, "column": 12}, "end_point": {"row": 55, "column": 36}}, {"id": 172, "type": "identifier", "text": "copyChildren", "parent": 171, "children": [], "start_point": {"row": 55, "column": 12}, "end_point": {"row": 55, "column": 24}}, {"id": 173, "type": "parameter_list", "text": "(void)", "parent": 171, "children": [174], "start_point": {"row": 55, "column": 24}, "end_point": {"row": 55, "column": 30}}, {"id": 174, "type": "parameter_declaration", "text": "void", "parent": 173, "children": [175], "start_point": {"row": 55, "column": 25}, "end_point": {"row": 55, "column": 29}}, {"id": 175, "type": "primitive_type", "text": "void", "parent": 174, "children": [], "start_point": {"row": 55, "column": 25}, "end_point": {"row": 55, "column": 29}}, {"id": 176, "type": "declaration", "text": "virtual SoChildList * getChildren(void) const;", "parent": 20, "children": [177, 178, 180], "start_point": {"row": 56, "column": 2}, "end_point": {"row": 56, "column": 48}}, {"id": 177, "type": "type_identifier", "text": "virtual", "parent": 176, "children": [], "start_point": {"row": 56, "column": 2}, "end_point": {"row": 56, "column": 9}}, {"id": 178, "type": "ERROR", "text": "SoChildList", "parent": 176, "children": [179], "start_point": {"row": 56, "column": 10}, "end_point": {"row": 56, "column": 21}}, {"id": 179, "type": "identifier", "text": "SoChildList", "parent": 178, "children": [], "start_point": {"row": 56, "column": 10}, "end_point": {"row": 56, "column": 21}}, {"id": 180, "type": "pointer_declarator", "text": "* getChildren(void) const", "parent": 176, "children": [181, 182], "start_point": {"row": 56, "column": 22}, "end_point": {"row": 56, "column": 47}}, {"id": 181, "type": "*", "text": "*", "parent": 180, "children": [], "start_point": {"row": 56, "column": 22}, "end_point": {"row": 56, "column": 23}}, {"id": 182, "type": "function_declarator", "text": "getChildren(void) const", "parent": 180, "children": [183, 184], "start_point": {"row": 56, "column": 24}, "end_point": {"row": 56, "column": 47}}, {"id": 183, "type": "identifier", "text": "getChildren", "parent": 182, "children": [], "start_point": {"row": 56, "column": 24}, "end_point": {"row": 56, "column": 35}}, {"id": 184, "type": "parameter_list", "text": "(void)", "parent": 182, "children": [185], "start_point": {"row": 56, "column": 35}, "end_point": {"row": 56, "column": 41}}, {"id": 185, "type": "parameter_declaration", "text": "void", "parent": 184, "children": [186], "start_point": {"row": 56, "column": 36}, "end_point": {"row": 56, "column": 40}}, {"id": 186, "type": "primitive_type", "text": "void", "parent": 185, "children": [], "start_point": {"row": 56, "column": 36}, "end_point": {"row": 56, "column": 40}}, {"id": 187, "type": "declaration", "text": "virtual void copyContents(const SoFieldContainer * from,\n SbBool copyconnections);", "parent": 20, "children": [188, 189, 191], "start_point": {"row": 57, "column": 2}, "end_point": {"row": 58, "column": 52}}, {"id": 188, "type": "type_identifier", "text": "virtual", "parent": 187, "children": [], "start_point": {"row": 57, "column": 2}, "end_point": {"row": 57, "column": 9}}, {"id": 189, "type": "ERROR", "text": "void", "parent": 187, "children": [190], "start_point": {"row": 57, "column": 10}, "end_point": {"row": 57, "column": 14}}, {"id": 190, "type": "identifier", "text": "void", "parent": 189, "children": [], "start_point": {"row": 57, "column": 10}, "end_point": {"row": 57, "column": 14}}, {"id": 191, "type": "function_declarator", "text": "copyContents(const SoFieldContainer * from,\n SbBool copyconnections)", "parent": 187, "children": [192, 193], "start_point": {"row": 57, "column": 15}, "end_point": {"row": 58, "column": 51}}, {"id": 192, "type": "identifier", "text": "copyContents", "parent": 191, "children": [], "start_point": {"row": 57, "column": 15}, "end_point": {"row": 57, "column": 27}}, {"id": 193, "type": "parameter_list", "text": "(const SoFieldContainer * from,\n SbBool copyconnections)", "parent": 191, "children": [194, 198], "start_point": {"row": 57, "column": 27}, "end_point": {"row": 58, "column": 51}}, {"id": 194, "type": "parameter_declaration", "text": "const SoFieldContainer * from", "parent": 193, "children": [195, 196], "start_point": {"row": 57, "column": 28}, "end_point": {"row": 57, "column": 57}}, {"id": 195, "type": "type_identifier", "text": "SoFieldContainer", "parent": 194, "children": [], "start_point": {"row": 57, "column": 34}, "end_point": {"row": 57, "column": 50}}, {"id": 196, "type": "pointer_declarator", "text": "* from", "parent": 194, "children": [197], "start_point": {"row": 57, "column": 51}, "end_point": {"row": 57, "column": 57}}, {"id": 197, "type": "*", "text": "*", "parent": 196, "children": [], "start_point": {"row": 57, "column": 51}, "end_point": {"row": 57, "column": 52}}, {"id": 198, "type": "parameter_declaration", "text": "SbBool copyconnections", "parent": 193, "children": [199, 200], "start_point": {"row": 58, "column": 28}, "end_point": {"row": 58, "column": 50}}, {"id": 199, "type": "type_identifier", "text": "SbBool", "parent": 198, "children": [], "start_point": {"row": 58, "column": 28}, "end_point": {"row": 58, "column": 34}}, {"id": 200, "type": "identifier", "text": "copyconnections", "parent": 198, "children": [], "start_point": {"row": 58, "column": 35}, "end_point": {"row": 58, "column": 50}}, {"id": 201, "type": "ERROR", "text": "const SbString & getFullName(void) const", "parent": 20, "children": [202, 203], "start_point": {"row": 60, "column": 2}, "end_point": {"row": 60, "column": 42}}, {"id": 202, "type": "type_identifier", "text": "SbString", "parent": 201, "children": [], "start_point": {"row": 60, "column": 8}, "end_point": {"row": 60, "column": 16}}, {"id": 203, "type": "function_declarator", "text": "getFullName(void) const", "parent": 201, "children": [204, 205], "start_point": {"row": 60, "column": 19}, "end_point": {"row": 60, "column": 42}}, {"id": 204, "type": "identifier", "text": "getFullName", "parent": 203, "children": [], "start_point": {"row": 60, "column": 19}, "end_point": {"row": 60, "column": 30}}, {"id": 205, "type": "parameter_list", "text": "(void)", "parent": 203, "children": [206], "start_point": {"row": 60, "column": 30}, "end_point": {"row": 60, "column": 36}}, {"id": 206, "type": "parameter_declaration", "text": "void", "parent": 205, "children": [207], "start_point": {"row": 60, "column": 31}, "end_point": {"row": 60, "column": 35}}, {"id": 207, "type": "primitive_type", "text": "void", "parent": 206, "children": [], "start_point": {"row": 60, "column": 31}, "end_point": {"row": 60, "column": 35}}, {"id": 208, "type": "declaration", "text": "static void setSearchOK(SbBool dosearch);", "parent": 20, "children": [209, 210], "start_point": {"row": 62, "column": 2}, "end_point": {"row": 62, "column": 43}}, {"id": 209, "type": "primitive_type", "text": "void", "parent": 208, "children": [], "start_point": {"row": 62, "column": 9}, "end_point": {"row": 62, "column": 13}}, {"id": 210, "type": "function_declarator", "text": "setSearchOK(SbBool dosearch)", "parent": 208, "children": [211, 212], "start_point": {"row": 62, "column": 14}, "end_point": {"row": 62, "column": 42}}, {"id": 211, "type": "identifier", "text": "setSearchOK", "parent": 210, "children": [], "start_point": {"row": 62, "column": 14}, "end_point": {"row": 62, "column": 25}}, {"id": 212, "type": "parameter_list", "text": "(SbBool dosearch)", "parent": 210, "children": [213], "start_point": {"row": 62, "column": 25}, "end_point": {"row": 62, "column": 42}}, {"id": 213, "type": "parameter_declaration", "text": "SbBool dosearch", "parent": 212, "children": [214, 215], "start_point": {"row": 62, "column": 26}, "end_point": {"row": 62, "column": 41}}, {"id": 214, "type": "type_identifier", "text": "SbBool", "parent": 213, "children": [], "start_point": {"row": 62, "column": 26}, "end_point": {"row": 62, "column": 32}}, {"id": 215, "type": "identifier", "text": "dosearch", "parent": 213, "children": [], "start_point": {"row": 62, "column": 33}, "end_point": {"row": 62, "column": 41}}, {"id": 216, "type": "declaration", "text": "static SbBool getSearchOK();", "parent": 20, "children": [217, 218], "start_point": {"row": 63, "column": 2}, "end_point": {"row": 63, "column": 30}}, {"id": 217, "type": "type_identifier", "text": "SbBool", "parent": 216, "children": [], "start_point": {"row": 63, "column": 9}, "end_point": {"row": 63, "column": 15}}, {"id": 218, "type": "function_declarator", "text": "getSearchOK()", "parent": 216, "children": [219, 220], "start_point": {"row": 63, "column": 16}, "end_point": {"row": 63, "column": 29}}, {"id": 219, "type": "identifier", "text": "getSearchOK", "parent": 218, "children": [], "start_point": {"row": 63, "column": 16}, "end_point": {"row": 63, "column": 27}}, {"id": 220, "type": "parameter_list", "text": "()", "parent": 218, "children": [], "start_point": {"row": 63, "column": 27}, "end_point": {"row": 63, "column": 29}}, {"id": 221, "type": "labeled_statement", "text": "protected:\n virtual ~SoFile();", "parent": 20, "children": [222], "start_point": {"row": 65, "column": 0}, "end_point": {"row": 66, "column": 20}}, {"id": 222, "type": "declaration", "text": "virtual ~SoFile();", "parent": 221, "children": [223, 224, 226], "start_point": {"row": 66, "column": 2}, "end_point": {"row": 66, "column": 20}}, {"id": 223, "type": "type_identifier", "text": "virtual", "parent": 222, "children": [], "start_point": {"row": 66, "column": 2}, "end_point": {"row": 66, "column": 9}}, {"id": 224, "type": "ERROR", "text": "~", "parent": 222, "children": [225], "start_point": {"row": 66, "column": 10}, "end_point": {"row": 66, "column": 11}}, {"id": 225, "type": "~", "text": "~", "parent": 224, "children": [], "start_point": {"row": 66, "column": 10}, "end_point": {"row": 66, "column": 11}}, {"id": 226, "type": "function_declarator", "text": "SoFile()", "parent": 222, "children": [227, 228], "start_point": {"row": 66, "column": 11}, "end_point": {"row": 66, "column": 19}}, {"id": 227, "type": "identifier", "text": "SoFile", "parent": 226, "children": [], "start_point": {"row": 66, "column": 11}, "end_point": {"row": 66, "column": 17}}, {"id": 228, "type": "parameter_list", "text": "()", "parent": 226, "children": [], "start_point": {"row": 66, "column": 17}, "end_point": {"row": 66, "column": 19}}, {"id": 229, "type": "declaration", "text": "virtual SbBool readInstance(SoInput * in, unsigned short flags);", "parent": 20, "children": [230, 231, 233], "start_point": {"row": 68, "column": 2}, "end_point": {"row": 68, "column": 66}}, {"id": 230, "type": "type_identifier", "text": "virtual", "parent": 229, "children": [], "start_point": {"row": 68, "column": 2}, "end_point": {"row": 68, "column": 9}}, {"id": 231, "type": "ERROR", "text": "SbBool", "parent": 229, "children": [232], "start_point": {"row": 68, "column": 10}, "end_point": {"row": 68, "column": 16}}, {"id": 232, "type": "identifier", "text": "SbBool", "parent": 231, "children": [], "start_point": {"row": 68, "column": 10}, "end_point": {"row": 68, "column": 16}}, {"id": 233, "type": "function_declarator", "text": "readInstance(SoInput * in, unsigned short flags)", "parent": 229, "children": [234, 235], "start_point": {"row": 68, "column": 17}, "end_point": {"row": 68, "column": 65}}, {"id": 234, "type": "identifier", "text": "readInstance", "parent": 233, "children": [], "start_point": {"row": 68, "column": 17}, "end_point": {"row": 68, "column": 29}}, {"id": 235, "type": "parameter_list", "text": "(SoInput * in, unsigned short flags)", "parent": 233, "children": [236, 241], "start_point": {"row": 68, "column": 29}, "end_point": {"row": 68, "column": 65}}, {"id": 236, "type": "parameter_declaration", "text": "SoInput * in", "parent": 235, "children": [237, 238], "start_point": {"row": 68, "column": 30}, "end_point": {"row": 68, "column": 42}}, {"id": 237, "type": "type_identifier", "text": "SoInput", "parent": 236, "children": [], "start_point": {"row": 68, "column": 30}, "end_point": {"row": 68, "column": 37}}, {"id": 238, "type": "pointer_declarator", "text": "* in", "parent": 236, "children": [239, 240], "start_point": {"row": 68, "column": 38}, "end_point": {"row": 68, "column": 42}}, {"id": 239, "type": "*", "text": "*", "parent": 238, "children": [], "start_point": {"row": 68, "column": 38}, "end_point": {"row": 68, "column": 39}}, {"id": 240, "type": "identifier", "text": "in", "parent": 238, "children": [], "start_point": {"row": 68, "column": 40}, "end_point": {"row": 68, "column": 42}}, {"id": 241, "type": "parameter_declaration", "text": "unsigned short flags", "parent": 235, "children": [242, 245], "start_point": {"row": 68, "column": 44}, "end_point": {"row": 68, "column": 64}}, {"id": 242, "type": "sized_type_specifier", "text": "unsigned short", "parent": 241, "children": [243, 244], "start_point": {"row": 68, "column": 44}, "end_point": {"row": 68, "column": 58}}, {"id": 243, "type": "unsigned", "text": "unsigned", "parent": 242, "children": [], "start_point": {"row": 68, "column": 44}, "end_point": {"row": 68, "column": 52}}, {"id": 244, "type": "short", "text": "short", "parent": 242, "children": [], "start_point": {"row": 68, "column": 53}, "end_point": {"row": 68, "column": 58}}, {"id": 245, "type": "identifier", "text": "flags", "parent": 241, "children": [], "start_point": {"row": 68, "column": 59}, "end_point": {"row": 68, "column": 64}}, {"id": 246, "type": "declaration", "text": "virtual SbBool readNamedFile(SoInput * in);", "parent": 20, "children": [247, 248, 250], "start_point": {"row": 69, "column": 2}, "end_point": {"row": 69, "column": 45}}, {"id": 247, "type": "type_identifier", "text": "virtual", "parent": 246, "children": [], "start_point": {"row": 69, "column": 2}, "end_point": {"row": 69, "column": 9}}, {"id": 248, "type": "ERROR", "text": "SbBool", "parent": 246, "children": [249], "start_point": {"row": 69, "column": 10}, "end_point": {"row": 69, "column": 16}}, {"id": 249, "type": "identifier", "text": "SbBool", "parent": 248, "children": [], "start_point": {"row": 69, "column": 10}, "end_point": {"row": 69, "column": 16}}, {"id": 250, "type": "function_declarator", "text": "readNamedFile(SoInput * in)", "parent": 246, "children": [251, 252], "start_point": {"row": 69, "column": 17}, "end_point": {"row": 69, "column": 44}}, {"id": 251, "type": "identifier", "text": "readNamedFile", "parent": 250, "children": [], "start_point": {"row": 69, "column": 17}, "end_point": {"row": 69, "column": 30}}, {"id": 252, "type": "parameter_list", "text": "(SoInput * in)", "parent": 250, "children": [253], "start_point": {"row": 69, "column": 30}, "end_point": {"row": 69, "column": 44}}, {"id": 253, "type": "parameter_declaration", "text": "SoInput * in", "parent": 252, "children": [254, 255], "start_point": {"row": 69, "column": 31}, "end_point": {"row": 69, "column": 43}}, {"id": 254, "type": "type_identifier", "text": "SoInput", "parent": 253, "children": [], "start_point": {"row": 69, "column": 31}, "end_point": {"row": 69, "column": 38}}, {"id": 255, "type": "pointer_declarator", "text": "* in", "parent": 253, "children": [256, 257], "start_point": {"row": 69, "column": 39}, "end_point": {"row": 69, "column": 43}}, {"id": 256, "type": "*", "text": "*", "parent": 255, "children": [], "start_point": {"row": 69, "column": 39}, "end_point": {"row": 69, "column": 40}}, {"id": 257, "type": "identifier", "text": "in", "parent": 255, "children": [], "start_point": {"row": 69, "column": 41}, "end_point": {"row": 69, "column": 43}}, {"id": 258, "type": "labeled_statement", "text": "private:\n static void nameFieldModified(void * userdata, SoSensor * sensor);", "parent": 20, "children": [259], "start_point": {"row": 71, "column": 0}, "end_point": {"row": 72, "column": 68}}, {"id": 259, "type": "declaration", "text": "static void nameFieldModified(void * userdata, SoSensor * sensor);", "parent": 258, "children": [260, 261], "start_point": {"row": 72, "column": 2}, "end_point": {"row": 72, "column": 68}}, {"id": 260, "type": "primitive_type", "text": "void", "parent": 259, "children": [], "start_point": {"row": 72, "column": 9}, "end_point": {"row": 72, "column": 13}}, {"id": 261, "type": "function_declarator", "text": "nameFieldModified(void * userdata, SoSensor * sensor)", "parent": 259, "children": [262, 263], "start_point": {"row": 72, "column": 14}, "end_point": {"row": 72, "column": 67}}, {"id": 262, "type": "identifier", "text": "nameFieldModified", "parent": 261, "children": [], "start_point": {"row": 72, "column": 14}, "end_point": {"row": 72, "column": 31}}, {"id": 263, "type": "parameter_list", "text": "(void * userdata, SoSensor * sensor)", "parent": 261, "children": [264, 269], "start_point": {"row": 72, "column": 31}, "end_point": {"row": 72, "column": 67}}, {"id": 264, "type": "parameter_declaration", "text": "void * userdata", "parent": 263, "children": [265, 266], "start_point": {"row": 72, "column": 32}, "end_point": {"row": 72, "column": 47}}, {"id": 265, "type": "primitive_type", "text": "void", "parent": 264, "children": [], "start_point": {"row": 72, "column": 32}, "end_point": {"row": 72, "column": 36}}, {"id": 266, "type": "pointer_declarator", "text": "* userdata", "parent": 264, "children": [267, 268], "start_point": {"row": 72, "column": 37}, "end_point": {"row": 72, "column": 47}}, {"id": 267, "type": "*", "text": "*", "parent": 266, "children": [], "start_point": {"row": 72, "column": 37}, "end_point": {"row": 72, "column": 38}}, {"id": 268, "type": "identifier", "text": "userdata", "parent": 266, "children": [], "start_point": {"row": 72, "column": 39}, "end_point": {"row": 72, "column": 47}}, {"id": 269, "type": "parameter_declaration", "text": "SoSensor * sensor", "parent": 263, "children": [270, 271], "start_point": {"row": 72, "column": 49}, "end_point": {"row": 72, "column": 66}}, {"id": 270, "type": "type_identifier", "text": "SoSensor", "parent": 269, "children": [], "start_point": {"row": 72, "column": 49}, "end_point": {"row": 72, "column": 57}}, {"id": 271, "type": "pointer_declarator", "text": "* sensor", "parent": 269, "children": [272, 273], "start_point": {"row": 72, "column": 58}, "end_point": {"row": 72, "column": 66}}, {"id": 272, "type": "*", "text": "*", "parent": 271, "children": [], "start_point": {"row": 72, "column": 58}, "end_point": {"row": 72, "column": 59}}, {"id": 273, "type": "identifier", "text": "sensor", "parent": 271, "children": [], "start_point": {"row": 72, "column": 60}, "end_point": {"row": 72, "column": 66}}, {"id": 274, "type": "declaration", "text": "SoChildList * children;", "parent": 20, "children": [275, 276], "start_point": {"row": 74, "column": 2}, "end_point": {"row": 74, "column": 25}}, {"id": 275, "type": "type_identifier", "text": "SoChildList", "parent": 274, "children": [], "start_point": {"row": 74, "column": 2}, "end_point": {"row": 74, "column": 13}}, {"id": 276, "type": "pointer_declarator", "text": "* children", "parent": 274, "children": [277, 278], "start_point": {"row": 74, "column": 14}, "end_point": {"row": 74, "column": 24}}, {"id": 277, "type": "*", "text": "*", "parent": 276, "children": [], "start_point": {"row": 74, "column": 14}, "end_point": {"row": 74, "column": 15}}, {"id": 278, "type": "identifier", "text": "children", "parent": 276, "children": [], "start_point": {"row": 74, "column": 16}, "end_point": {"row": 74, "column": 24}}, {"id": 279, "type": "declaration", "text": "SoFieldSensor * namesensor;", "parent": 20, "children": [280, 281], "start_point": {"row": 75, "column": 2}, "end_point": {"row": 75, "column": 29}}, {"id": 280, "type": "type_identifier", "text": "SoFieldSensor", "parent": 279, "children": [], "start_point": {"row": 75, "column": 2}, "end_point": {"row": 75, "column": 15}}, {"id": 281, "type": "pointer_declarator", "text": "* namesensor", "parent": 279, "children": [282, 283], "start_point": {"row": 75, "column": 16}, "end_point": {"row": 75, "column": 28}}, {"id": 282, "type": "*", "text": "*", "parent": 281, "children": [], "start_point": {"row": 75, "column": 16}, "end_point": {"row": 75, "column": 17}}, {"id": 283, "type": "identifier", "text": "namesensor", "parent": 281, "children": [], "start_point": {"row": 75, "column": 18}, "end_point": {"row": 75, "column": 28}}, {"id": 284, "type": "declaration", "text": "SbString fullname;", "parent": 20, "children": [285, 286], "start_point": {"row": 76, "column": 2}, "end_point": {"row": 76, "column": 20}}, {"id": 285, "type": "type_identifier", "text": "SbString", "parent": 284, "children": [], "start_point": {"row": 76, "column": 2}, "end_point": {"row": 76, "column": 10}}, {"id": 286, "type": "identifier", "text": "fullname", "parent": 284, "children": [], "start_point": {"row": 76, "column": 11}, "end_point": {"row": 76, "column": 19}}, {"id": 287, "type": "#endif", "text": "#endif", "parent": 0, "children": [], "start_point": {"row": 79, "column": 0}, "end_point": {"row": 79, "column": 6}}]}, "node_categories": {"declarations": {"functions": [35, 51, 63, 75, 87, 99, 111, 123, 135, 147, 159, 171, 182, 191, 203, 210, 218, 226, 233, 250, 261], "variables": [12, 14, 16, 18, 24, 33, 38, 44, 47, 54, 59, 66, 71, 78, 83, 90, 95, 102, 107, 114, 119, 126, 131, 138, 143, 150, 155, 162, 167, 174, 176, 185, 187, 194, 198, 206, 208, 213, 216, 222, 229, 236, 241, 246, 253, 259, 264, 269, 274, 279, 284], "classes": [], "imports": [6, 7, 9, 10], "modules": [], "enums": []}, "statements": {"expressions": [28, 40], "assignments": [], "loops": [], "conditionals": [0, 1, 2, 5, 13, 15, 17, 19, 21, 23, 26, 27, 29, 31, 36, 41, 43, 45, 46, 48, 50, 52, 55, 58, 60, 62, 64, 67, 70, 72, 74, 76, 79, 82, 84, 86, 88, 91, 94, 96, 98, 100, 103, 106, 108, 110, 112, 115, 118, 120, 122, 124, 127, 130, 132, 134, 136, 139, 142, 144, 146, 148, 151, 154, 156, 158, 160, 163, 166, 168, 172, 177, 179, 183, 188, 190, 192, 195, 199, 200, 202, 204, 211, 214, 215, 217, 219, 223, 227, 230, 232, 234, 237, 240, 242, 245, 247, 249, 251, 254, 257, 262, 268, 270, 273, 275, 278, 280, 283, 285, 286, 287], "returns": [], "exceptions": []}, "expressions": {"calls": [], "literals": [8, 11], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [{"node_id": 35, "universal_type": "function", "name": "unknown", "text_snippet": "initClass(void)"}, {"node_id": 51, "universal_type": "function", "name": "unknown", "text_snippet": "doAction(SoAction * action)"}, {"node_id": 63, "universal_type": "function", "name": "unknown", "text_snippet": "callback(SoCallbackAction * action)"}, {"node_id": 75, "universal_type": "function", "name": "unknown", "text_snippet": "GLRender(SoGLRenderAction * action)"}, {"node_id": 87, "universal_type": "function", "name": "unknown", "text_snippet": "getBoundingBox(SoGetBoundingBoxAction * action)"}, {"node_id": 99, "universal_type": "function", "name": "unknown", "text_snippet": "getMatrix(SoGetMatrixAction * action)"}, {"node_id": 111, "universal_type": "function", "name": "unknown", "text_snippet": "handleEvent(SoHandleEventAction * action)"}, {"node_id": 123, "universal_type": "function", "name": "unknown", "text_snippet": "pick(SoPickAction * action)"}, {"node_id": 135, "universal_type": "function", "name": "unknown", "text_snippet": "getPrimitiveCount(SoGetPrimitiveCountAction * action)"}, {"node_id": 147, "universal_type": "function", "name": "unknown", "text_snippet": "audioRender(SoAudioRenderAction * action)"}, {"node_id": 159, "universal_type": "function", "name": "unknown", "text_snippet": "search(SoSearchAction * action)"}, {"node_id": 171, "universal_type": "function", "name": "unknown", "text_snippet": "copyChildren(void) const"}, {"node_id": 182, "universal_type": "function", "name": "unknown", "text_snippet": "getChildren(void) const"}, {"node_id": 191, "universal_type": "function", "name": "unknown", "text_snippet": "copyContents(const SoFieldContainer * from,\n SbBool copyconnections)"}, {"node_id": 203, "universal_type": "function", "name": "unknown", "text_snippet": "getFullName(void) const"}, {"node_id": 210, "universal_type": "function", "name": "unknown", "text_snippet": "setSearchOK(SbBool dosearch)"}, {"node_id": 218, "universal_type": "function", "name": "unknown", "text_snippet": "getSearchOK()"}, {"node_id": 226, "universal_type": "function", "name": "unknown", "text_snippet": "SoFile()"}, {"node_id": 233, "universal_type": "function", "name": "unknown", "text_snippet": "readInstance(SoInput * in, unsigned short flags)"}, {"node_id": 250, "universal_type": "function", "name": "unknown", "text_snippet": "readNamedFile(SoInput * in)"}, {"node_id": 261, "universal_type": "function", "name": "unknown", "text_snippet": "nameFieldModified(void * userdata, SoSensor * sensor)"}], "class_declarations": [], "import_statements": [{"node_id": 6, "text": "#include <Inventor/nodes/SoSubNode.h>\n"}, {"node_id": 7, "text": "#include"}, {"node_id": 9, "text": "#include <Inventor/fields/SoSFString.h>\n"}, {"node_id": 10, "text": "#include"}]}, "original_source_code": "#ifndef COIN_SOFILE_H\n#define COIN_SOFILE_H\n\n/**************************************************************************\\\n *\n * This file is part of the Coin 3D visualization library.\n * Copyright (C) by <NAME> & Gas Technologies.\n *\n * This library is free software; you can redistribute it and/or\n * modify it under the terms of the GNU General Public License\n * (\"GPL\") version 2 as published by the Free Software Foundation.\n * See the file LICENSE.GPL at the root directory of this source\n * distribution for additional information about the GNU GPL.\n *\n * For using Coin with software that can not be combined with the GNU\n * GPL, and for taking advantage of the additional benefits of our\n * support services, please contact Kongsberg Oil & Gas Technologies\n * about acquiring a Coin Professional Edition License.\n *\n * See http://www.coin3d.org/ for more information.\n *\n * <NAME>il & Gas Technologies, Bygdoy Alle 5, 0257 Oslo, NORWAY.\n * http://www.sim.no/ <EMAIL> <EMAIL>\n *\n\\**************************************************************************/\n\n#include <Inventor/nodes/SoSubNode.h>\n#include <Inventor/fields/SoSFString.h>\n\nclass SoFieldSensor;\nclass SoGroup;\nclass SoSensor;\n\nclass COIN_DLL_API SoFile : public SoNode {\n typedef SoNode inherited;\n\n SO_NODE_HEADER(SoFile);\n\npublic:\n static void initClass(void);\n SoFile(void);\n\n SoSFString name;\n\n virtual void doAction(SoAction * action);\n virtual void callback(SoCallbackAction * action);\n virtual void GLRender(SoGLRenderAction * action);\n virtual void getBoundingBox(SoGetBoundingBoxAction * action);\n virtual void getMatrix(SoGetMatrixAction * action);\n virtual void handleEvent(SoHandleEventAction * action);\n virtual void pick(SoPickAction * action);\n virtual void getPrimitiveCount(SoGetPrimitiveCountAction * action);\n virtual void audioRender(SoAudioRenderAction * action);\n virtual void search(SoSearchAction * action);\n\n SoGroup * copyChildren(void) const;\n virtual SoChildList * getChildren(void) const;\n virtual void copyContents(const SoFieldContainer * from,\n SbBool copyconnections);\n\n const SbString & getFullName(void) const;\n\n static void setSearchOK(SbBool dosearch);\n static SbBool getSearchOK();\n\nprotected:\n virtual ~SoFile();\n\n virtual SbBool readInstance(SoInput * in, unsigned short flags);\n virtual SbBool readNamedFile(SoInput * in);\n\nprivate:\n static void nameFieldModified(void * userdata, SoSensor * sensor);\n\n SoChildList * children;\n SoFieldSensor * namesensor;\n SbString fullname;\n};\n\n#endif // !COIN_SOFILE_H\n"}
80,048
c
#include <stdio.h> void fgets_cons_erase_character(unsigned char toerase) __z88dk_fastcall { fputc_cons(8); fputc_cons(' '); fputc_cons(8); }
21
7
(translation_unit) "#include <stdio.h>\n\nvoid fgets_cons_erase_character(unsigned char toerase) __z88dk_fastcall\n{\n fputc_cons(8);\n fputc_cons(' ');\n fputc_cons(8);\n}\n" (preproc_include) "#include <stdio.h>\n" (#include) "#include" (system_lib_string) "<stdio.h>" (function_definition) "void fgets_cons_erase_character(unsigned char toerase) __z88dk_fastcall\n{\n fputc_cons(8);\n fputc_cons(' ');\n fputc_cons(8);\n}" (primitive_type) "void" (function_declarator) "fgets_cons_erase_character(unsigned char toerase) __z88dk_fastcall" (identifier) "fgets_cons_erase_character" (parameter_list) "(unsigned char toerase)" (() "(" (parameter_declaration) "unsigned char toerase" (sized_type_specifier) "unsigned char" (unsigned) "unsigned" (primitive_type) "char" (identifier) "toerase" ()) ")" (identifier) "__z88dk_fastcall" (compound_statement) "{\n fputc_cons(8);\n fputc_cons(' ');\n fputc_cons(8);\n}" ({) "{" (expression_statement) "fputc_cons(8);" (call_expression) "fputc_cons(8)" (identifier) "fputc_cons" (argument_list) "(8)" (() "(" (number_literal) "8" ()) ")" (;) ";" (expression_statement) "fputc_cons(' ');" (call_expression) "fputc_cons(' ')" (identifier) "fputc_cons" (argument_list) "(' ')" (() "(" (char_literal) "' '" (') "'" (character) " " (') "'" ()) ")" (;) ";" (expression_statement) "fputc_cons(8);" (call_expression) "fputc_cons(8)" (identifier) "fputc_cons" (argument_list) "(8)" (() "(" (number_literal) "8" ()) ")" (;) ";" (}) "}"
47
0
{"language": "c", "success": true, "metadata": {"lines": 7, "avg_line_length": 21.0, "nodes": 29, "errors": 0, "source_hash": "565229fe654539f113eed96ebc17d7afb6a158ad85a5884db10adcf6d770d689", "categorized_nodes": 19}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#include <stdio.h>\n", "parent": null, "children": [1, 2], "start_point": {"row": 0, "column": 0}, "end_point": {"row": 1, "column": 0}}, {"id": 1, "type": "#include", "text": "#include", "parent": 0, "children": [], "start_point": {"row": 0, "column": 0}, "end_point": {"row": 0, "column": 8}}, {"id": 2, "type": "system_lib_string", "text": "<stdio.h>", "parent": 0, "children": [], "start_point": {"row": 0, "column": 9}, "end_point": {"row": 0, "column": 18}}, {"id": 3, "type": "function_definition", "text": "void fgets_cons_erase_character(unsigned char toerase) __z88dk_fastcall\n{\n fputc_cons(8);\n fputc_cons(' ');\n fputc_cons(8);\n}", "parent": null, "children": [4, 5], "start_point": {"row": 2, "column": 0}, "end_point": {"row": 7, "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": "function_declarator", "text": "fgets_cons_erase_character(unsigned char toerase) __z88dk_fastcall", "parent": 3, "children": [6, 7, 13], "start_point": {"row": 2, "column": 5}, "end_point": {"row": 2, "column": 71}}, {"id": 6, "type": "identifier", "text": "fgets_cons_erase_character", "parent": 5, "children": [], "start_point": {"row": 2, "column": 5}, "end_point": {"row": 2, "column": 31}}, {"id": 7, "type": "parameter_list", "text": "(unsigned char toerase)", "parent": 5, "children": [8], "start_point": {"row": 2, "column": 31}, "end_point": {"row": 2, "column": 54}}, {"id": 8, "type": "parameter_declaration", "text": "unsigned char toerase", "parent": 7, "children": [9, 12], "start_point": {"row": 2, "column": 32}, "end_point": {"row": 2, "column": 53}}, {"id": 9, "type": "sized_type_specifier", "text": "unsigned char", "parent": 8, "children": [10, 11], "start_point": {"row": 2, "column": 32}, "end_point": {"row": 2, "column": 45}}, {"id": 10, "type": "unsigned", "text": "unsigned", "parent": 9, "children": [], "start_point": {"row": 2, "column": 32}, "end_point": {"row": 2, "column": 40}}, {"id": 11, "type": "primitive_type", "text": "char", "parent": 9, "children": [], "start_point": {"row": 2, "column": 41}, "end_point": {"row": 2, "column": 45}}, {"id": 12, "type": "identifier", "text": "toerase", "parent": 8, "children": [], "start_point": {"row": 2, "column": 46}, "end_point": {"row": 2, "column": 53}}, {"id": 13, "type": "identifier", "text": "__z88dk_fastcall", "parent": 5, "children": [], "start_point": {"row": 2, "column": 55}, "end_point": {"row": 2, "column": 71}}, {"id": 14, "type": "call_expression", "text": "fputc_cons(8)", "parent": 3, "children": [15, 16], "start_point": {"row": 4, "column": 4}, "end_point": {"row": 4, "column": 17}}, {"id": 15, "type": "identifier", "text": "fputc_cons", "parent": 14, "children": [], "start_point": {"row": 4, "column": 4}, "end_point": {"row": 4, "column": 14}}, {"id": 16, "type": "argument_list", "text": "(8)", "parent": 14, "children": [17], "start_point": {"row": 4, "column": 14}, "end_point": {"row": 4, "column": 17}}, {"id": 17, "type": "number_literal", "text": "8", "parent": 16, "children": [], "start_point": {"row": 4, "column": 15}, "end_point": {"row": 4, "column": 16}}, {"id": 18, "type": "call_expression", "text": "fputc_cons(' ')", "parent": 3, "children": [19, 20], "start_point": {"row": 5, "column": 4}, "end_point": {"row": 5, "column": 19}}, {"id": 19, "type": "identifier", "text": "fputc_cons", "parent": 18, "children": [], "start_point": {"row": 5, "column": 4}, "end_point": {"row": 5, "column": 14}}, {"id": 20, "type": "argument_list", "text": "(' ')", "parent": 18, "children": [21], "start_point": {"row": 5, "column": 14}, "end_point": {"row": 5, "column": 19}}, {"id": 21, "type": "char_literal", "text": "' '", "parent": 20, "children": [22, 23, 24], "start_point": {"row": 5, "column": 15}, "end_point": {"row": 5, "column": 18}}, {"id": 22, "type": "'", "text": "'", "parent": 21, "children": [], "start_point": {"row": 5, "column": 15}, "end_point": {"row": 5, "column": 16}}, {"id": 23, "type": "character", "text": " ", "parent": 21, "children": [], "start_point": {"row": 5, "column": 16}, "end_point": {"row": 5, "column": 17}}, {"id": 24, "type": "'", "text": "'", "parent": 21, "children": [], "start_point": {"row": 5, "column": 17}, "end_point": {"row": 5, "column": 18}}, {"id": 25, "type": "call_expression", "text": "fputc_cons(8)", "parent": 3, "children": [26, 27], "start_point": {"row": 6, "column": 4}, "end_point": {"row": 6, "column": 17}}, {"id": 26, "type": "identifier", "text": "fputc_cons", "parent": 25, "children": [], "start_point": {"row": 6, "column": 4}, "end_point": {"row": 6, "column": 14}}, {"id": 27, "type": "argument_list", "text": "(8)", "parent": 25, "children": [28], "start_point": {"row": 6, "column": 14}, "end_point": {"row": 6, "column": 17}}, {"id": 28, "type": "number_literal", "text": "8", "parent": 27, "children": [], "start_point": {"row": 6, "column": 15}, "end_point": {"row": 6, "column": 16}}]}, "node_categories": {"declarations": {"functions": [3, 5], "variables": [8], "classes": [], "imports": [0, 1], "modules": [], "enums": []}, "statements": {"expressions": [14, 18, 25], "assignments": [], "loops": [], "conditionals": [6, 9, 12, 13, 15, 19, 26], "returns": [], "exceptions": []}, "expressions": {"calls": [], "literals": [2, 17, 21, 28], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [{"node_id": 3, "universal_type": "function", "name": "fgets_cons_erase_character", "text_snippet": "void fgets_cons_erase_character(unsigned char toerase) __z88dk_fastcall\n{\n fputc_cons(8);\n fpu"}, {"node_id": 5, "universal_type": "function", "name": "unknown", "text_snippet": "fgets_cons_erase_character(unsigned char toerase) __z88dk_fastcall"}], "class_declarations": [], "import_statements": [{"node_id": 0, "text": "#include <stdio.h>\n"}, {"node_id": 1, "text": "#include"}]}, "original_source_code": "#include <stdio.h>\n\nvoid fgets_cons_erase_character(unsigned char toerase) __z88dk_fastcall\n{\n fputc_cons(8);\n fputc_cons(' ');\n fputc_cons(8);\n}\n"}
80,049
c
#ifndef BLAZINGDB_RAL_ORDERBY_OPERATOR_H #define BLAZINGDB_RAL_ORDERBY_OPERATOR_H #include "DataFrame.h" #include <blazingdb/manager/Context.h> #include <string> #include <vector> namespace ral { namespace operators { namespace { using blazingdb::manager::Context; } // namespace bool is_sort(std::string query_part); void process_sort(blazing_frame & input, std::string query_part, Context * queryContext); } // namespace operators } // namespace ral #endif // BLAZINGDB_RAL_ORDERBY_OPERATOR_H
30.19
16
(translation_unit) "#ifndef BLAZINGDB_RAL_ORDERBY_OPERATOR_H\n#define BLAZINGDB_RAL_ORDERBY_OPERATOR_H\n\n#include "DataFrame.h"\n#include <blazingdb/manager/Context.h>\n#include <string>\n#include <vector>\n\nnamespace ral {\nnamespace operators {\n\nnamespace {\nusing blazingdb::manager::Context;\n} // namespace\n\nbool is_sort(std::string query_part);\n\nvoid process_sort(blazing_frame & input, std::string query_part, Context * queryContext);\n\n} // namespace operators\n} // namespace ral\n\n#endif // BLAZINGDB_RAL_ORDERBY_OPERATOR_H\n" (preproc_ifdef) "#ifndef BLAZINGDB_RAL_ORDERBY_OPERATOR_H\n#define BLAZINGDB_RAL_ORDERBY_OPERATOR_H\n\n#include "DataFrame.h"\n#include <blazingdb/manager/Context.h>\n#include <string>\n#include <vector>\n\nnamespace ral {\nnamespace operators {\n\nnamespace {\nusing blazingdb::manager::Context;\n} // namespace\n\nbool is_sort(std::string query_part);\n\nvoid process_sort(blazing_frame & input, std::string query_part, Context * queryContext);\n\n} // namespace operators\n} // namespace ral\n\n#endif" (#ifndef) "#ifndef" (identifier) "BLAZINGDB_RAL_ORDERBY_OPERATOR_H" (preproc_def) "#define BLAZINGDB_RAL_ORDERBY_OPERATOR_H\n" (#define) "#define" (identifier) "BLAZINGDB_RAL_ORDERBY_OPERATOR_H" (preproc_include) "#include "DataFrame.h"\n" (#include) "#include" (string_literal) ""DataFrame.h"" (") """ (string_content) "DataFrame.h" (") """ (preproc_include) "#include <blazingdb/manager/Context.h>\n" (#include) "#include" (system_lib_string) "<blazingdb/manager/Context.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 ral {\nnamespace operators {\n\nnamespace {\nusing blazingdb::manager::Context;\n} // namespace\n\nbool is_sort(std::string query_part);\n\nvoid process_sort(blazing_frame & input, std::string query_part, Context * queryContext);\n\n} // namespace operators\n}" (type_identifier) "namespace" (identifier) "ral" (compound_statement) "{\nnamespace operators {\n\nnamespace {\nusing blazingdb::manager::Context;\n} // namespace\n\nbool is_sort(std::string query_part);\n\nvoid process_sort(blazing_frame & input, std::string query_part, Context * queryContext);\n\n} // namespace operators\n}" ({) "{" (function_definition) "namespace operators {\n\nnamespace {\nusing blazingdb::manager::Context;\n} // namespace\n\nbool is_sort(std::string query_part);\n\nvoid process_sort(blazing_frame & input, std::string query_part, Context * queryContext);\n\n}" (type_identifier) "namespace" (identifier) "operators" (compound_statement) "{\n\nnamespace {\nusing blazingdb::manager::Context;\n} // namespace\n\nbool is_sort(std::string query_part);\n\nvoid process_sort(blazing_frame & input, std::string query_part, Context * queryContext);\n\n}" ({) "{" (ERROR) "namespace" (identifier) "namespace" (compound_statement) "{\nusing blazingdb::manager::Context;\n}" ({) "{" (declaration) "using blazingdb::manager::Context;" (type_identifier) "using" (identifier) "blazingdb" (ERROR) "::manager::Context" (:) ":" (:) ":" (identifier) "manager" (:) ":" (:) ":" (identifier) "Context" (;) ";" (}) "}" (comment) "// namespace" (declaration) "bool is_sort(std::string query_part);" (primitive_type) "bool" (function_declarator) "is_sort(std::string query_part)" (identifier) "is_sort" (parameter_list) "(std::string query_part)" (() "(" (parameter_declaration) "std::string query_part" (type_identifier) "std" (ERROR) "::string" (:) ":" (:) ":" (identifier) "string" (identifier) "query_part" ()) ")" (;) ";" (declaration) "void process_sort(blazing_frame & input, std::string query_part, Context * queryContext);" (primitive_type) "void" (function_declarator) "process_sort(blazing_frame & input, std::string query_part, Context * queryContext)" (identifier) "process_sort" (parameter_list) "(blazing_frame & input, std::string query_part, Context * queryContext)" (() "(" (parameter_declaration) "blazing_frame & input" (type_identifier) "blazing_frame" (ERROR) "&" (&) "&" (identifier) "input" (,) "," (parameter_declaration) "std::string query_part" (type_identifier) "std" (ERROR) "::string" (:) ":" (:) ":" (identifier) "string" (identifier) "query_part" (,) "," (parameter_declaration) "Context * queryContext" (type_identifier) "Context" (pointer_declarator) "* queryContext" (*) "*" (identifier) "queryContext" ()) ")" (;) ";" (}) "}" (comment) "// namespace operators" (}) "}" (comment) "// namespace ral" (#endif) "#endif" (comment) "// BLAZINGDB_RAL_ORDERBY_OPERATOR_H"
97
5
{"language": "c", "success": true, "metadata": {"lines": 16, "avg_line_length": 30.19, "nodes": 61, "errors": 0, "source_hash": "f4433758237da9031016ce692187ca4342b3e592f87d4be483de36df69bb93ab", "categorized_nodes": 49}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef BLAZINGDB_RAL_ORDERBY_OPERATOR_H\n#define BLAZINGDB_RAL_ORDERBY_OPERATOR_H\n\n#include \"DataFrame.h\"\n#include <blazingdb/manager/Context.h>\n#include <string>\n#include <vector>\n\nnamespace ral {\nnamespace operators {\n\nnamespace {\nusing blazingdb::manager::Context;\n} // namespace\n\nbool is_sort(std::string query_part);\n\nvoid process_sort(blazing_frame & input, std::string query_part, Context * queryContext);\n\n} // namespace operators\n} // namespace ral\n\n#endif", "parent": null, "children": [1, 2, 3, 6, 9, 12, 15, 18, 60], "start_point": {"row": 0, "column": 0}, "end_point": {"row": 22, "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": "BLAZINGDB_RAL_ORDERBY_OPERATOR_H", "parent": 0, "children": [], "start_point": {"row": 0, "column": 8}, "end_point": {"row": 0, "column": 40}}, {"id": 3, "type": "preproc_def", "text": "#define BLAZINGDB_RAL_ORDERBY_OPERATOR_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": "BLAZINGDB_RAL_ORDERBY_OPERATOR_H", "parent": 3, "children": [], "start_point": {"row": 1, "column": 8}, "end_point": {"row": 1, "column": 40}}, {"id": 6, "type": "preproc_include", "text": "#include \"DataFrame.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": "\"DataFrame.h\"", "parent": 6, "children": [], "start_point": {"row": 3, "column": 9}, "end_point": {"row": 3, "column": 22}}, {"id": 9, "type": "preproc_include", "text": "#include <blazingdb/manager/Context.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": "<blazingdb/manager/Context.h>", "parent": 9, "children": [], "start_point": {"row": 4, "column": 9}, "end_point": {"row": 4, "column": 38}}, {"id": 12, "type": "preproc_include", "text": "#include <string>\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": "<string>", "parent": 12, "children": [], "start_point": {"row": 5, "column": 9}, "end_point": {"row": 5, "column": 17}}, {"id": 15, "type": "preproc_include", "text": "#include <vector>\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": "<vector>", "parent": 15, "children": [], "start_point": {"row": 6, "column": 9}, "end_point": {"row": 6, "column": 17}}, {"id": 18, "type": "function_definition", "text": "namespace ral {\nnamespace operators {\n\nnamespace {\nusing blazingdb::manager::Context;\n} // namespace\n\nbool is_sort(std::string query_part);\n\nvoid process_sort(blazing_frame & input, std::string query_part, Context * queryContext);\n\n} // namespace operators\n}", "parent": 0, "children": [19, 20], "start_point": {"row": 8, "column": 0}, "end_point": {"row": 20, "column": 1}}, {"id": 19, "type": "type_identifier", "text": "namespace", "parent": 18, "children": [], "start_point": {"row": 8, "column": 0}, "end_point": {"row": 8, "column": 9}}, {"id": 20, "type": "identifier", "text": "ral", "parent": 18, "children": [], "start_point": {"row": 8, "column": 10}, "end_point": {"row": 8, "column": 13}}, {"id": 21, "type": "function_definition", "text": "namespace operators {\n\nnamespace {\nusing blazingdb::manager::Context;\n} // namespace\n\nbool is_sort(std::string query_part);\n\nvoid process_sort(blazing_frame & input, std::string query_part, Context * queryContext);\n\n}", "parent": 18, "children": [22, 23], "start_point": {"row": 9, "column": 0}, "end_point": {"row": 19, "column": 1}}, {"id": 22, "type": "type_identifier", "text": "namespace", "parent": 21, "children": [], "start_point": {"row": 9, "column": 0}, "end_point": {"row": 9, "column": 9}}, {"id": 23, "type": "identifier", "text": "operators", "parent": 21, "children": [], "start_point": {"row": 9, "column": 10}, "end_point": {"row": 9, "column": 19}}, {"id": 24, "type": "ERROR", "text": "namespace", "parent": 21, "children": [25], "start_point": {"row": 11, "column": 0}, "end_point": {"row": 11, "column": 9}}, {"id": 25, "type": "identifier", "text": "namespace", "parent": 24, "children": [], "start_point": {"row": 11, "column": 0}, "end_point": {"row": 11, "column": 9}}, {"id": 26, "type": "declaration", "text": "using blazingdb::manager::Context;", "parent": 21, "children": [27, 28, 29], "start_point": {"row": 12, "column": 0}, "end_point": {"row": 12, "column": 34}}, {"id": 27, "type": "type_identifier", "text": "using", "parent": 26, "children": [], "start_point": {"row": 12, "column": 0}, "end_point": {"row": 12, "column": 5}}, {"id": 28, "type": "identifier", "text": "blazingdb", "parent": 26, "children": [], "start_point": {"row": 12, "column": 6}, "end_point": {"row": 12, "column": 15}}, {"id": 29, "type": "ERROR", "text": "::manager::Context", "parent": 26, "children": [30, 31], "start_point": {"row": 12, "column": 15}, "end_point": {"row": 12, "column": 33}}, {"id": 30, "type": "identifier", "text": "manager", "parent": 29, "children": [], "start_point": {"row": 12, "column": 17}, "end_point": {"row": 12, "column": 24}}, {"id": 31, "type": "identifier", "text": "Context", "parent": 29, "children": [], "start_point": {"row": 12, "column": 26}, "end_point": {"row": 12, "column": 33}}, {"id": 32, "type": "declaration", "text": "bool is_sort(std::string query_part);", "parent": 21, "children": [33, 34], "start_point": {"row": 15, "column": 0}, "end_point": {"row": 15, "column": 37}}, {"id": 33, "type": "primitive_type", "text": "bool", "parent": 32, "children": [], "start_point": {"row": 15, "column": 0}, "end_point": {"row": 15, "column": 4}}, {"id": 34, "type": "function_declarator", "text": "is_sort(std::string query_part)", "parent": 32, "children": [35, 36], "start_point": {"row": 15, "column": 5}, "end_point": {"row": 15, "column": 36}}, {"id": 35, "type": "identifier", "text": "is_sort", "parent": 34, "children": [], "start_point": {"row": 15, "column": 5}, "end_point": {"row": 15, "column": 12}}, {"id": 36, "type": "parameter_list", "text": "(std::string query_part)", "parent": 34, "children": [37], "start_point": {"row": 15, "column": 12}, "end_point": {"row": 15, "column": 36}}, {"id": 37, "type": "parameter_declaration", "text": "std::string query_part", "parent": 36, "children": [38, 39, 41], "start_point": {"row": 15, "column": 13}, "end_point": {"row": 15, "column": 35}}, {"id": 38, "type": "type_identifier", "text": "std", "parent": 37, "children": [], "start_point": {"row": 15, "column": 13}, "end_point": {"row": 15, "column": 16}}, {"id": 39, "type": "ERROR", "text": "::string", "parent": 37, "children": [40], "start_point": {"row": 15, "column": 16}, "end_point": {"row": 15, "column": 24}}, {"id": 40, "type": "identifier", "text": "string", "parent": 39, "children": [], "start_point": {"row": 15, "column": 18}, "end_point": {"row": 15, "column": 24}}, {"id": 41, "type": "identifier", "text": "query_part", "parent": 37, "children": [], "start_point": {"row": 15, "column": 25}, "end_point": {"row": 15, "column": 35}}, {"id": 42, "type": "declaration", "text": "void process_sort(blazing_frame & input, std::string query_part, Context * queryContext);", "parent": 21, "children": [43, 44], "start_point": {"row": 17, "column": 0}, "end_point": {"row": 17, "column": 89}}, {"id": 43, "type": "primitive_type", "text": "void", "parent": 42, "children": [], "start_point": {"row": 17, "column": 0}, "end_point": {"row": 17, "column": 4}}, {"id": 44, "type": "function_declarator", "text": "process_sort(blazing_frame & input, std::string query_part, Context * queryContext)", "parent": 42, "children": [45, 46], "start_point": {"row": 17, "column": 5}, "end_point": {"row": 17, "column": 88}}, {"id": 45, "type": "identifier", "text": "process_sort", "parent": 44, "children": [], "start_point": {"row": 17, "column": 5}, "end_point": {"row": 17, "column": 17}}, {"id": 46, "type": "parameter_list", "text": "(blazing_frame & input, std::string query_part, Context * queryContext)", "parent": 44, "children": [47, 50, 55], "start_point": {"row": 17, "column": 17}, "end_point": {"row": 17, "column": 88}}, {"id": 47, "type": "parameter_declaration", "text": "blazing_frame & input", "parent": 46, "children": [48, 49], "start_point": {"row": 17, "column": 18}, "end_point": {"row": 17, "column": 39}}, {"id": 48, "type": "type_identifier", "text": "blazing_frame", "parent": 47, "children": [], "start_point": {"row": 17, "column": 18}, "end_point": {"row": 17, "column": 31}}, {"id": 49, "type": "identifier", "text": "input", "parent": 47, "children": [], "start_point": {"row": 17, "column": 34}, "end_point": {"row": 17, "column": 39}}, {"id": 50, "type": "parameter_declaration", "text": "std::string query_part", "parent": 46, "children": [51, 52, 54], "start_point": {"row": 17, "column": 41}, "end_point": {"row": 17, "column": 63}}, {"id": 51, "type": "type_identifier", "text": "std", "parent": 50, "children": [], "start_point": {"row": 17, "column": 41}, "end_point": {"row": 17, "column": 44}}, {"id": 52, "type": "ERROR", "text": "::string", "parent": 50, "children": [53], "start_point": {"row": 17, "column": 44}, "end_point": {"row": 17, "column": 52}}, {"id": 53, "type": "identifier", "text": "string", "parent": 52, "children": [], "start_point": {"row": 17, "column": 46}, "end_point": {"row": 17, "column": 52}}, {"id": 54, "type": "identifier", "text": "query_part", "parent": 50, "children": [], "start_point": {"row": 17, "column": 53}, "end_point": {"row": 17, "column": 63}}, {"id": 55, "type": "parameter_declaration", "text": "Context * queryContext", "parent": 46, "children": [56, 57], "start_point": {"row": 17, "column": 65}, "end_point": {"row": 17, "column": 87}}, {"id": 56, "type": "type_identifier", "text": "Context", "parent": 55, "children": [], "start_point": {"row": 17, "column": 65}, "end_point": {"row": 17, "column": 72}}, {"id": 57, "type": "pointer_declarator", "text": "* queryContext", "parent": 55, "children": [58, 59], "start_point": {"row": 17, "column": 73}, "end_point": {"row": 17, "column": 87}}, {"id": 58, "type": "*", "text": "*", "parent": 57, "children": [], "start_point": {"row": 17, "column": 73}, "end_point": {"row": 17, "column": 74}}, {"id": 59, "type": "identifier", "text": "queryContext", "parent": 57, "children": [], "start_point": {"row": 17, "column": 75}, "end_point": {"row": 17, "column": 87}}, {"id": 60, "type": "#endif", "text": "#endif", "parent": 0, "children": [], "start_point": {"row": 22, "column": 0}, "end_point": {"row": 22, "column": 6}}]}, "node_categories": {"declarations": {"functions": [18, 21, 34, 44], "variables": [26, 32, 37, 42, 47, 50, 55], "classes": [], "imports": [6, 7, 9, 10, 12, 13, 15, 16], "modules": [], "enums": []}, "statements": {"expressions": [], "assignments": [], "loops": [], "conditionals": [0, 1, 2, 5, 19, 20, 22, 23, 25, 27, 28, 30, 31, 35, 38, 40, 41, 45, 48, 49, 51, 53, 54, 56, 59, 60], "returns": [], "exceptions": []}, "expressions": {"calls": [], "literals": [8, 11, 14, 17], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [{"node_id": 18, "universal_type": "function", "name": "is_sort", "text_snippet": "namespace ral {\nnamespace operators {\n\nnamespace {\nusing blazingdb::manager::Context;\n} // namespac"}, {"node_id": 21, "universal_type": "function", "name": "is_sort", "text_snippet": "namespace operators {\n\nnamespace {\nusing blazingdb::manager::Context;\n} // namespace\n\nbool is_sort("}, {"node_id": 34, "universal_type": "function", "name": "unknown", "text_snippet": "is_sort(std::string query_part)"}, {"node_id": 44, "universal_type": "function", "name": "unknown", "text_snippet": "process_sort(blazing_frame & input, std::string query_part, Context * queryContext)"}], "class_declarations": [], "import_statements": [{"node_id": 6, "text": "#include \"DataFrame.h\"\n"}, {"node_id": 7, "text": "#include"}, {"node_id": 9, "text": "#include <blazingdb/manager/Context.h>\n"}, {"node_id": 10, "text": "#include"}, {"node_id": 12, "text": "#include <string>\n"}, {"node_id": 13, "text": "#include"}, {"node_id": 15, "text": "#include <vector>\n"}, {"node_id": 16, "text": "#include"}]}, "original_source_code": "#ifndef BLAZINGDB_RAL_ORDERBY_OPERATOR_H\n#define BLAZINGDB_RAL_ORDERBY_OPERATOR_H\n\n#include \"DataFrame.h\"\n#include <blazingdb/manager/Context.h>\n#include <string>\n#include <vector>\n\nnamespace ral {\nnamespace operators {\n\nnamespace {\nusing blazingdb::manager::Context;\n} // namespace\n\nbool is_sort(std::string query_part);\n\nvoid process_sort(blazing_frame & input, std::string query_part, Context * queryContext);\n\n} // namespace operators\n} // namespace ral\n\n#endif // BLAZINGDB_RAL_ORDERBY_OPERATOR_H\n"}
80,050
c
/*------------------------------------------------------------------------- * * nbtstrat.c * Strategy map entries for the btree indexed access method * * Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group * Portions Copyright (c) 1994, Regents of the University of California * * * IDENTIFICATION * $Header: /home/hjcvs/OB-CCM-1.0/postgresql/src/backend/access/nbtree/nbtstrat.c,v 1.2 2004/07/05 08:55:22 SuLiang Exp $ * *------------------------------------------------------------------------- */ #include "postgres.h" #include "access/istrat.h" #include "access/nbtree.h" /* * Note: * StrategyNegate, StrategyCommute, and StrategyNegateCommute * assume <, <=, ==, >=, > ordering. */ static StrategyNumber BTNegate[BTMaxStrategyNumber] = { BTGreaterEqualStrategyNumber, BTGreaterStrategyNumber, InvalidStrategy, BTLessStrategyNumber, BTLessEqualStrategyNumber }; static StrategyNumber BTCommute[BTMaxStrategyNumber] = { BTGreaterStrategyNumber, BTGreaterEqualStrategyNumber, InvalidStrategy, BTLessEqualStrategyNumber, BTLessStrategyNumber }; static StrategyNumber BTNegateCommute[BTMaxStrategyNumber] = { BTLessEqualStrategyNumber, BTLessStrategyNumber, InvalidStrategy, BTGreaterStrategyNumber, BTGreaterEqualStrategyNumber }; static uint16 BTLessTermData[] = { /* XXX type clash */ 2, BTLessStrategyNumber, SK_NEGATE, BTLessStrategyNumber, SK_NEGATE | SK_COMMUTE }; static uint16 BTLessEqualTermData[] = { /* XXX type clash */ 2, BTLessEqualStrategyNumber, 0x0, BTLessEqualStrategyNumber, SK_COMMUTE }; static uint16 BTGreaterEqualTermData[] = { /* XXX type clash */ 2, BTGreaterEqualStrategyNumber, 0x0, BTGreaterEqualStrategyNumber, SK_COMMUTE }; static uint16 BTGreaterTermData[] = { /* XXX type clash */ 2, BTGreaterStrategyNumber, SK_NEGATE, BTGreaterStrategyNumber, SK_NEGATE | SK_COMMUTE }; static StrategyTerm BTEqualExpressionData[] = { (StrategyTerm) BTLessTermData, /* XXX */ (StrategyTerm) BTLessEqualTermData, /* XXX */ (StrategyTerm) BTGreaterEqualTermData, /* XXX */ (StrategyTerm) BTGreaterTermData, /* XXX */ NULL }; static StrategyExpression BTEvaluationExpressions[BTMaxStrategyNumber] = { NULL, NULL, (StrategyExpression) BTEqualExpressionData, NULL, NULL }; static StrategyEvaluationData BTEvaluationData = { BTMaxStrategyNumber, (StrategyTransformMap) BTNegate, (StrategyTransformMap) BTCommute, (StrategyTransformMap) BTNegateCommute, BTEvaluationExpressions }; /* ---------------------------------------------------------------- * RelationGetBTStrategy * ---------------------------------------------------------------- */ StrategyNumber _bt_getstrat(Relation rel, AttrNumber attno, RegProcedure proc) { StrategyNumber strat; strat = RelationGetStrategy(rel, attno, &BTEvaluationData, proc); Assert(StrategyNumberIsValid(strat)); return strat; } #ifdef NOT_USED bool _bt_invokestrat(Relation rel, AttrNumber attno, StrategyNumber strat, Datum left, Datum right) { return (RelationInvokeStrategy(rel, &BTEvaluationData, attno, strat, left, right)); } #endif
25.49
118
(translation_unit) "/*-------------------------------------------------------------------------\n *\n * nbtstrat.c\n * Strategy map entries for the btree indexed access method\n *\n * Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group\n * Portions Copyright (c) 1994, Regents of the University of California\n *\n *\n * IDENTIFICATION\n * $Header: /home/hjcvs/OB-CCM-1.0/postgresql/src/backend/access/nbtree/nbtstrat.c,v 1.2 2004/07/05 08:55:22 SuLiang Exp $\n *\n *-------------------------------------------------------------------------\n */\n\n#include "postgres.h"\n\n#include "access/istrat.h"\n#include "access/nbtree.h"\n\n/*\n * Note:\n * StrategyNegate, StrategyCommute, and StrategyNegateCommute\n * assume <, <=, ==, >=, > ordering.\n */\nstatic StrategyNumber BTNegate[BTMaxStrategyNumber] = {\n BTGreaterEqualStrategyNumber,\n BTGreaterStrategyNumber,\n InvalidStrategy,\n BTLessStrategyNumber,\n BTLessEqualStrategyNumber\n};\n\nstatic StrategyNumber BTCommute[BTMaxStrategyNumber] = {\n BTGreaterStrategyNumber,\n BTGreaterEqualStrategyNumber,\n InvalidStrategy,\n BTLessEqualStrategyNumber,\n BTLessStrategyNumber\n};\n\nstatic StrategyNumber BTNegateCommute[BTMaxStrategyNumber] = {\n BTLessEqualStrategyNumber,\n BTLessStrategyNumber,\n InvalidStrategy,\n BTGreaterStrategyNumber,\n BTGreaterEqualStrategyNumber\n};\n\nstatic uint16 BTLessTermData[] = { /* XXX type clash */\n 2,\n BTLessStrategyNumber,\n SK_NEGATE,\n BTLessStrategyNumber,\n SK_NEGATE | SK_COMMUTE\n};\n\nstatic uint16 BTLessEqualTermData[] = { /* XXX type clash */\n 2,\n BTLessEqualStrategyNumber,\n 0x0,\n BTLessEqualStrategyNumber,\n SK_COMMUTE\n};\n\nstatic uint16 BTGreaterEqualTermData[] = { /* XXX type clash */\n 2,\n BTGreaterEqualStrategyNumber,\n 0x0,\n BTGreaterEqualStrategyNumber,\n SK_COMMUTE\n};\n\nstatic uint16 BTGreaterTermData[] = { /* XXX type clash */\n 2,\n BTGreaterStrategyNumber,\n SK_NEGATE,\n BTGreaterStrategyNumber,\n SK_NEGATE | SK_COMMUTE\n};\n\nstatic StrategyTerm BTEqualExpressionData[] = {\n (StrategyTerm) BTLessTermData, /* XXX */\n (StrategyTerm) BTLessEqualTermData, /* XXX */\n (StrategyTerm) BTGreaterEqualTermData, /* XXX */\n (StrategyTerm) BTGreaterTermData, /* XXX */\n NULL\n};\n\nstatic StrategyExpression BTEvaluationExpressions[BTMaxStrategyNumber] = {\n NULL,\n NULL,\n (StrategyExpression) BTEqualExpressionData,\n NULL,\n NULL\n};\n\nstatic StrategyEvaluationData BTEvaluationData = {\n BTMaxStrategyNumber,\n (StrategyTransformMap) BTNegate,\n (StrategyTransformMap) BTCommute,\n (StrategyTransformMap) BTNegateCommute,\n BTEvaluationExpressions\n};\n\n/* ----------------------------------------------------------------\n * RelationGetBTStrategy\n * ----------------------------------------------------------------\n */\n\nStrategyNumber\n_bt_getstrat(Relation rel,\n AttrNumber attno,\n RegProcedure proc)\n{\n StrategyNumber strat;\n\n strat = RelationGetStrategy(rel, attno, &BTEvaluationData, proc);\n\n Assert(StrategyNumberIsValid(strat));\n\n return strat;\n}\n\n#ifdef NOT_USED\n\nbool\n_bt_invokestrat(Relation rel,\n AttrNumber attno,\n StrategyNumber strat,\n Datum left,\n Datum right)\n{\n return (RelationInvokeStrategy(rel, &BTEvaluationData, attno, strat,\n left, right));\n}\n\n#endif\n" (comment) "/*-------------------------------------------------------------------------\n *\n * nbtstrat.c\n * Strategy map entries for the btree indexed access method\n *\n * Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group\n * Portions Copyright (c) 1994, Regents of the University of California\n *\n *\n * IDENTIFICATION\n * $Header: /home/hjcvs/OB-CCM-1.0/postgresql/src/backend/access/nbtree/nbtstrat.c,v 1.2 2004/07/05 08:55:22 SuLiang Exp $\n *\n *-------------------------------------------------------------------------\n */" (preproc_include) "#include "postgres.h"\n" (#include) "#include" (string_literal) ""postgres.h"" (") """ (string_content) "postgres.h" (") """ (preproc_include) "#include "access/istrat.h"\n" (#include) "#include" (string_literal) ""access/istrat.h"" (") """ (string_content) "access/istrat.h" (") """ (preproc_include) "#include "access/nbtree.h"\n" (#include) "#include" (string_literal) ""access/nbtree.h"" (") """ (string_content) "access/nbtree.h" (") """ (comment) "/*\n * Note:\n * StrategyNegate, StrategyCommute, and StrategyNegateCommute\n * assume <, <=, ==, >=, > ordering.\n */" (declaration) "static StrategyNumber BTNegate[BTMaxStrategyNumber] = {\n BTGreaterEqualStrategyNumber,\n BTGreaterStrategyNumber,\n InvalidStrategy,\n BTLessStrategyNumber,\n BTLessEqualStrategyNumber\n};" (storage_class_specifier) "static" (static) "static" (type_identifier) "StrategyNumber" (init_declarator) "BTNegate[BTMaxStrategyNumber] = {\n BTGreaterEqualStrategyNumber,\n BTGreaterStrategyNumber,\n InvalidStrategy,\n BTLessStrategyNumber,\n BTLessEqualStrategyNumber\n}" (array_declarator) "BTNegate[BTMaxStrategyNumber]" (identifier) "BTNegate" ([) "[" (identifier) "BTMaxStrategyNumber" (]) "]" (=) "=" (initializer_list) "{\n BTGreaterEqualStrategyNumber,\n BTGreaterStrategyNumber,\n InvalidStrategy,\n BTLessStrategyNumber,\n BTLessEqualStrategyNumber\n}" ({) "{" (identifier) "BTGreaterEqualStrategyNumber" (,) "," (identifier) "BTGreaterStrategyNumber" (,) "," (identifier) "InvalidStrategy" (,) "," (identifier) "BTLessStrategyNumber" (,) "," (identifier) "BTLessEqualStrategyNumber" (}) "}" (;) ";" (declaration) "static StrategyNumber BTCommute[BTMaxStrategyNumber] = {\n BTGreaterStrategyNumber,\n BTGreaterEqualStrategyNumber,\n InvalidStrategy,\n BTLessEqualStrategyNumber,\n BTLessStrategyNumber\n};" (storage_class_specifier) "static" (static) "static" (type_identifier) "StrategyNumber" (init_declarator) "BTCommute[BTMaxStrategyNumber] = {\n BTGreaterStrategyNumber,\n BTGreaterEqualStrategyNumber,\n InvalidStrategy,\n BTLessEqualStrategyNumber,\n BTLessStrategyNumber\n}" (array_declarator) "BTCommute[BTMaxStrategyNumber]" (identifier) "BTCommute" ([) "[" (identifier) "BTMaxStrategyNumber" (]) "]" (=) "=" (initializer_list) "{\n BTGreaterStrategyNumber,\n BTGreaterEqualStrategyNumber,\n InvalidStrategy,\n BTLessEqualStrategyNumber,\n BTLessStrategyNumber\n}" ({) "{" (identifier) "BTGreaterStrategyNumber" (,) "," (identifier) "BTGreaterEqualStrategyNumber" (,) "," (identifier) "InvalidStrategy" (,) "," (identifier) "BTLessEqualStrategyNumber" (,) "," (identifier) "BTLessStrategyNumber" (}) "}" (;) ";" (declaration) "static StrategyNumber BTNegateCommute[BTMaxStrategyNumber] = {\n BTLessEqualStrategyNumber,\n BTLessStrategyNumber,\n InvalidStrategy,\n BTGreaterStrategyNumber,\n BTGreaterEqualStrategyNumber\n};" (storage_class_specifier) "static" (static) "static" (type_identifier) "StrategyNumber" (init_declarator) "BTNegateCommute[BTMaxStrategyNumber] = {\n BTLessEqualStrategyNumber,\n BTLessStrategyNumber,\n InvalidStrategy,\n BTGreaterStrategyNumber,\n BTGreaterEqualStrategyNumber\n}" (array_declarator) "BTNegateCommute[BTMaxStrategyNumber]" (identifier) "BTNegateCommute" ([) "[" (identifier) "BTMaxStrategyNumber" (]) "]" (=) "=" (initializer_list) "{\n BTLessEqualStrategyNumber,\n BTLessStrategyNumber,\n InvalidStrategy,\n BTGreaterStrategyNumber,\n BTGreaterEqualStrategyNumber\n}" ({) "{" (identifier) "BTLessEqualStrategyNumber" (,) "," (identifier) "BTLessStrategyNumber" (,) "," (identifier) "InvalidStrategy" (,) "," (identifier) "BTGreaterStrategyNumber" (,) "," (identifier) "BTGreaterEqualStrategyNumber" (}) "}" (;) ";" (declaration) "static uint16 BTLessTermData[] = { /* XXX type clash */\n 2,\n BTLessStrategyNumber,\n SK_NEGATE,\n BTLessStrategyNumber,\n SK_NEGATE | SK_COMMUTE\n};" (storage_class_specifier) "static" (static) "static" (type_identifier) "uint16" (init_declarator) "BTLessTermData[] = { /* XXX type clash */\n 2,\n BTLessStrategyNumber,\n SK_NEGATE,\n BTLessStrategyNumber,\n SK_NEGATE | SK_COMMUTE\n}" (array_declarator) "BTLessTermData[]" (identifier) "BTLessTermData" ([) "[" (]) "]" (=) "=" (initializer_list) "{ /* XXX type clash */\n 2,\n BTLessStrategyNumber,\n SK_NEGATE,\n BTLessStrategyNumber,\n SK_NEGATE | SK_COMMUTE\n}" ({) "{" (comment) "/* XXX type clash */" (number_literal) "2" (,) "," (identifier) "BTLessStrategyNumber" (,) "," (identifier) "SK_NEGATE" (,) "," (identifier) "BTLessStrategyNumber" (,) "," (binary_expression) "SK_NEGATE | SK_COMMUTE" (identifier) "SK_NEGATE" (|) "|" (identifier) "SK_COMMUTE" (}) "}" (;) ";" (declaration) "static uint16 BTLessEqualTermData[] = { /* XXX type clash */\n 2,\n BTLessEqualStrategyNumber,\n 0x0,\n BTLessEqualStrategyNumber,\n SK_COMMUTE\n};" (storage_class_specifier) "static" (static) "static" (type_identifier) "uint16" (init_declarator) "BTLessEqualTermData[] = { /* XXX type clash */\n 2,\n BTLessEqualStrategyNumber,\n 0x0,\n BTLessEqualStrategyNumber,\n SK_COMMUTE\n}" (array_declarator) "BTLessEqualTermData[]" (identifier) "BTLessEqualTermData" ([) "[" (]) "]" (=) "=" (initializer_list) "{ /* XXX type clash */\n 2,\n BTLessEqualStrategyNumber,\n 0x0,\n BTLessEqualStrategyNumber,\n SK_COMMUTE\n}" ({) "{" (comment) "/* XXX type clash */" (number_literal) "2" (,) "," (identifier) "BTLessEqualStrategyNumber" (,) "," (number_literal) "0x0" (,) "," (identifier) "BTLessEqualStrategyNumber" (,) "," (identifier) "SK_COMMUTE" (}) "}" (;) ";" (declaration) "static uint16 BTGreaterEqualTermData[] = { /* XXX type clash */\n 2,\n BTGreaterEqualStrategyNumber,\n 0x0,\n BTGreaterEqualStrategyNumber,\n SK_COMMUTE\n};" (storage_class_specifier) "static" (static) "static" (type_identifier) "uint16" (init_declarator) "BTGreaterEqualTermData[] = { /* XXX type clash */\n 2,\n BTGreaterEqualStrategyNumber,\n 0x0,\n BTGreaterEqualStrategyNumber,\n SK_COMMUTE\n}" (array_declarator) "BTGreaterEqualTermData[]" (identifier) "BTGreaterEqualTermData" ([) "[" (]) "]" (=) "=" (initializer_list) "{ /* XXX type clash */\n 2,\n BTGreaterEqualStrategyNumber,\n 0x0,\n BTGreaterEqualStrategyNumber,\n SK_COMMUTE\n}" ({) "{" (comment) "/* XXX type clash */" (number_literal) "2" (,) "," (identifier) "BTGreaterEqualStrategyNumber" (,) "," (number_literal) "0x0" (,) "," (identifier) "BTGreaterEqualStrategyNumber" (,) "," (identifier) "SK_COMMUTE" (}) "}" (;) ";" (declaration) "static uint16 BTGreaterTermData[] = { /* XXX type clash */\n 2,\n BTGreaterStrategyNumber,\n SK_NEGATE,\n BTGreaterStrategyNumber,\n SK_NEGATE | SK_COMMUTE\n};" (storage_class_specifier) "static" (static) "static" (type_identifier) "uint16" (init_declarator) "BTGreaterTermData[] = { /* XXX type clash */\n 2,\n BTGreaterStrategyNumber,\n SK_NEGATE,\n BTGreaterStrategyNumber,\n SK_NEGATE | SK_COMMUTE\n}" (array_declarator) "BTGreaterTermData[]" (identifier) "BTGreaterTermData" ([) "[" (]) "]" (=) "=" (initializer_list) "{ /* XXX type clash */\n 2,\n BTGreaterStrategyNumber,\n SK_NEGATE,\n BTGreaterStrategyNumber,\n SK_NEGATE | SK_COMMUTE\n}" ({) "{" (comment) "/* XXX type clash */" (number_literal) "2" (,) "," (identifier) "BTGreaterStrategyNumber" (,) "," (identifier) "SK_NEGATE" (,) "," (identifier) "BTGreaterStrategyNumber" (,) "," (binary_expression) "SK_NEGATE | SK_COMMUTE" (identifier) "SK_NEGATE" (|) "|" (identifier) "SK_COMMUTE" (}) "}" (;) ";" (declaration) "static StrategyTerm BTEqualExpressionData[] = {\n (StrategyTerm) BTLessTermData, /* XXX */\n (StrategyTerm) BTLessEqualTermData, /* XXX */\n (StrategyTerm) BTGreaterEqualTermData, /* XXX */\n (StrategyTerm) BTGreaterTermData, /* XXX */\n NULL\n};" (storage_class_specifier) "static" (static) "static" (type_identifier) "StrategyTerm" (init_declarator) "BTEqualExpressionData[] = {\n (StrategyTerm) BTLessTermData, /* XXX */\n (StrategyTerm) BTLessEqualTermData, /* XXX */\n (StrategyTerm) BTGreaterEqualTermData, /* XXX */\n (StrategyTerm) BTGreaterTermData, /* XXX */\n NULL\n}" (array_declarator) "BTEqualExpressionData[]" (identifier) "BTEqualExpressionData" ([) "[" (]) "]" (=) "=" (initializer_list) "{\n (StrategyTerm) BTLessTermData, /* XXX */\n (StrategyTerm) BTLessEqualTermData, /* XXX */\n (StrategyTerm) BTGreaterEqualTermData, /* XXX */\n (StrategyTerm) BTGreaterTermData, /* XXX */\n NULL\n}" ({) "{" (cast_expression) "(StrategyTerm) BTLessTermData" (() "(" (type_descriptor) "StrategyTerm" (type_identifier) "StrategyTerm" ()) ")" (identifier) "BTLessTermData" (,) "," (comment) "/* XXX */" (cast_expression) "(StrategyTerm) BTLessEqualTermData" (() "(" (type_descriptor) "StrategyTerm" (type_identifier) "StrategyTerm" ()) ")" (identifier) "BTLessEqualTermData" (,) "," (comment) "/* XXX */" (cast_expression) "(StrategyTerm) BTGreaterEqualTermData" (() "(" (type_descriptor) "StrategyTerm" (type_identifier) "StrategyTerm" ()) ")" (identifier) "BTGreaterEqualTermData" (,) "," (comment) "/* XXX */" (cast_expression) "(StrategyTerm) BTGreaterTermData" (() "(" (type_descriptor) "StrategyTerm" (type_identifier) "StrategyTerm" ()) ")" (identifier) "BTGreaterTermData" (,) "," (comment) "/* XXX */" (null) "NULL" (NULL) "NULL" (}) "}" (;) ";" (declaration) "static StrategyExpression BTEvaluationExpressions[BTMaxStrategyNumber] = {\n NULL,\n NULL,\n (StrategyExpression) BTEqualExpressionData,\n NULL,\n NULL\n};" (storage_class_specifier) "static" (static) "static" (type_identifier) "StrategyExpression" (init_declarator) "BTEvaluationExpressions[BTMaxStrategyNumber] = {\n NULL,\n NULL,\n (StrategyExpression) BTEqualExpressionData,\n NULL,\n NULL\n}" (array_declarator) "BTEvaluationExpressions[BTMaxStrategyNumber]" (identifier) "BTEvaluationExpressions" ([) "[" (identifier) "BTMaxStrategyNumber" (]) "]" (=) "=" (initializer_list) "{\n NULL,\n NULL,\n (StrategyExpression) BTEqualExpressionData,\n NULL,\n NULL\n}" ({) "{" (null) "NULL" (NULL) "NULL" (,) "," (null) "NULL" (NULL) "NULL" (,) "," (cast_expression) "(StrategyExpression) BTEqualExpressionData" (() "(" (type_descriptor) "StrategyExpression" (type_identifier) "StrategyExpression" ()) ")" (identifier) "BTEqualExpressionData" (,) "," (null) "NULL" (NULL) "NULL" (,) "," (null) "NULL" (NULL) "NULL" (}) "}" (;) ";" (declaration) "static StrategyEvaluationData BTEvaluationData = {\n BTMaxStrategyNumber,\n (StrategyTransformMap) BTNegate,\n (StrategyTransformMap) BTCommute,\n (StrategyTransformMap) BTNegateCommute,\n BTEvaluationExpressions\n};" (storage_class_specifier) "static" (static) "static" (type_identifier) "StrategyEvaluationData" (init_declarator) "BTEvaluationData = {\n BTMaxStrategyNumber,\n (StrategyTransformMap) BTNegate,\n (StrategyTransformMap) BTCommute,\n (StrategyTransformMap) BTNegateCommute,\n BTEvaluationExpressions\n}" (identifier) "BTEvaluationData" (=) "=" (initializer_list) "{\n BTMaxStrategyNumber,\n (StrategyTransformMap) BTNegate,\n (StrategyTransformMap) BTCommute,\n (StrategyTransformMap) BTNegateCommute,\n BTEvaluationExpressions\n}" ({) "{" (identifier) "BTMaxStrategyNumber" (,) "," (cast_expression) "(StrategyTransformMap) BTNegate" (() "(" (type_descriptor) "StrategyTransformMap" (type_identifier) "StrategyTransformMap" ()) ")" (identifier) "BTNegate" (,) "," (cast_expression) "(StrategyTransformMap) BTCommute" (() "(" (type_descriptor) "StrategyTransformMap" (type_identifier) "StrategyTransformMap" ()) ")" (identifier) "BTCommute" (,) "," (cast_expression) "(StrategyTransformMap) BTNegateCommute" (() "(" (type_descriptor) "StrategyTransformMap" (type_identifier) "StrategyTransformMap" ()) ")" (identifier) "BTNegateCommute" (,) "," (identifier) "BTEvaluationExpressions" (}) "}" (;) ";" (comment) "/* ----------------------------------------------------------------\n * RelationGetBTStrategy\n * ----------------------------------------------------------------\n */" (function_definition) "StrategyNumber\n_bt_getstrat(Relation rel,\n AttrNumber attno,\n RegProcedure proc)\n{\n StrategyNumber strat;\n\n strat = RelationGetStrategy(rel, attno, &BTEvaluationData, proc);\n\n Assert(StrategyNumberIsValid(strat));\n\n return strat;\n}" (type_identifier) "StrategyNumber" (function_declarator) "_bt_getstrat(Relation rel,\n AttrNumber attno,\n RegProcedure proc)" (identifier) "_bt_getstrat" (parameter_list) "(Relation rel,\n AttrNumber attno,\n RegProcedure proc)" (() "(" (parameter_declaration) "Relation rel" (type_identifier) "Relation" (identifier) "rel" (,) "," (parameter_declaration) "AttrNumber attno" (type_identifier) "AttrNumber" (identifier) "attno" (,) "," (parameter_declaration) "RegProcedure proc" (type_identifier) "RegProcedure" (identifier) "proc" ()) ")" (compound_statement) "{\n StrategyNumber strat;\n\n strat = RelationGetStrategy(rel, attno, &BTEvaluationData, proc);\n\n Assert(StrategyNumberIsValid(strat));\n\n return strat;\n}" ({) "{" (declaration) "StrategyNumber strat;" (type_identifier) "StrategyNumber" (identifier) "strat" (;) ";" (expression_statement) "strat = RelationGetStrategy(rel, attno, &BTEvaluationData, proc);" (assignment_expression) "strat = RelationGetStrategy(rel, attno, &BTEvaluationData, proc)" (identifier) "strat" (=) "=" (call_expression) "RelationGetStrategy(rel, attno, &BTEvaluationData, proc)" (identifier) "RelationGetStrategy" (argument_list) "(rel, attno, &BTEvaluationData, proc)" (() "(" (identifier) "rel" (,) "," (identifier) "attno" (,) "," (pointer_expression) "&BTEvaluationData" (&) "&" (identifier) "BTEvaluationData" (,) "," (identifier) "proc" ()) ")" (;) ";" (expression_statement) "Assert(StrategyNumberIsValid(strat));" (call_expression) "Assert(StrategyNumberIsValid(strat))" (identifier) "Assert" (argument_list) "(StrategyNumberIsValid(strat))" (() "(" (call_expression) "StrategyNumberIsValid(strat)" (identifier) "StrategyNumberIsValid" (argument_list) "(strat)" (() "(" (identifier) "strat" ()) ")" ()) ")" (;) ";" (return_statement) "return strat;" (return) "return" (identifier) "strat" (;) ";" (}) "}" (preproc_ifdef) "#ifdef NOT_USED\n\nbool\n_bt_invokestrat(Relation rel,\n AttrNumber attno,\n StrategyNumber strat,\n Datum left,\n Datum right)\n{\n return (RelationInvokeStrategy(rel, &BTEvaluationData, attno, strat,\n left, right));\n}\n\n#endif" (#ifdef) "#ifdef" (identifier) "NOT_USED" (function_definition) "bool\n_bt_invokestrat(Relation rel,\n AttrNumber attno,\n StrategyNumber strat,\n Datum left,\n Datum right)\n{\n return (RelationInvokeStrategy(rel, &BTEvaluationData, attno, strat,\n left, right));\n}" (primitive_type) "bool" (function_declarator) "_bt_invokestrat(Relation rel,\n AttrNumber attno,\n StrategyNumber strat,\n Datum left,\n Datum right)" (identifier) "_bt_invokestrat" (parameter_list) "(Relation rel,\n AttrNumber attno,\n StrategyNumber strat,\n Datum left,\n Datum right)" (() "(" (parameter_declaration) "Relation rel" (type_identifier) "Relation" (identifier) "rel" (,) "," (parameter_declaration) "AttrNumber attno" (type_identifier) "AttrNumber" (identifier) "attno" (,) "," (parameter_declaration) "StrategyNumber strat" (type_identifier) "StrategyNumber" (identifier) "strat" (,) "," (parameter_declaration) "Datum left" (type_identifier) "Datum" (identifier) "left" (,) "," (parameter_declaration) "Datum right" (type_identifier) "Datum" (identifier) "right" ()) ")" (compound_statement) "{\n return (RelationInvokeStrategy(rel, &BTEvaluationData, attno, strat,\n left, right));\n}" ({) "{" (return_statement) "return (RelationInvokeStrategy(rel, &BTEvaluationData, attno, strat,\n left, right));" (return) "return" (parenthesized_expression) "(RelationInvokeStrategy(rel, &BTEvaluationData, attno, strat,\n left, right))" (() "(" (call_expression) "RelationInvokeStrategy(rel, &BTEvaluationData, attno, strat,\n left, right)" (identifier) "RelationInvokeStrategy" (argument_list) "(rel, &BTEvaluationData, attno, strat,\n left, right)" (() "(" (identifier) "rel" (,) "," (pointer_expression) "&BTEvaluationData" (&) "&" (identifier) "BTEvaluationData" (,) "," (identifier) "attno" (,) "," (identifier) "strat" (,) "," (identifier) "left" (,) "," (identifier) "right" ()) ")" ()) ")" (;) ";" (}) "}" (#endif) "#endif"
430
0
{"language": "c", "success": true, "metadata": {"lines": 118, "avg_line_length": 25.49, "nodes": 238, "errors": 0, "source_hash": "37be2cdbf02f688fd3f00244b76d6fde7e102decbf4eb897bb5ef4fe87735cc0", "categorized_nodes": 173}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#include \"postgres.h\"\n", "parent": null, "children": [1, 2], "start_point": {"row": 15, "column": 0}, "end_point": {"row": 16, "column": 0}}, {"id": 1, "type": "#include", "text": "#include", "parent": 0, "children": [], "start_point": {"row": 15, "column": 0}, "end_point": {"row": 15, "column": 8}}, {"id": 2, "type": "string_literal", "text": "\"postgres.h\"", "parent": 0, "children": [], "start_point": {"row": 15, "column": 9}, "end_point": {"row": 15, "column": 21}}, {"id": 3, "type": "preproc_include", "text": "#include \"access/istrat.h\"\n", "parent": null, "children": [4, 5], "start_point": {"row": 17, "column": 0}, "end_point": {"row": 18, "column": 0}}, {"id": 4, "type": "#include", "text": "#include", "parent": 3, "children": [], "start_point": {"row": 17, "column": 0}, "end_point": {"row": 17, "column": 8}}, {"id": 5, "type": "string_literal", "text": "\"access/istrat.h\"", "parent": 3, "children": [], "start_point": {"row": 17, "column": 9}, "end_point": {"row": 17, "column": 26}}, {"id": 6, "type": "preproc_include", "text": "#include \"access/nbtree.h\"\n", "parent": null, "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": "\"access/nbtree.h\"", "parent": 6, "children": [], "start_point": {"row": 18, "column": 9}, "end_point": {"row": 18, "column": 26}}, {"id": 9, "type": "declaration", "text": "static StrategyNumber BTNegate[BTMaxStrategyNumber] = {\n\tBTGreaterEqualStrategyNumber,\n\tBTGreaterStrategyNumber,\n\tInvalidStrategy,\n\tBTLessStrategyNumber,\n\tBTLessEqualStrategyNumber\n};", "parent": null, "children": [10, 11], "start_point": {"row": 25, "column": 0}, "end_point": {"row": 31, "column": 2}}, {"id": 10, "type": "type_identifier", "text": "StrategyNumber", "parent": 9, "children": [], "start_point": {"row": 25, "column": 7}, "end_point": {"row": 25, "column": 21}}, {"id": 11, "type": "init_declarator", "text": "BTNegate[BTMaxStrategyNumber] = {\n\tBTGreaterEqualStrategyNumber,\n\tBTGreaterStrategyNumber,\n\tInvalidStrategy,\n\tBTLessStrategyNumber,\n\tBTLessEqualStrategyNumber\n}", "parent": 9, "children": [12, 15, 16], "start_point": {"row": 25, "column": 22}, "end_point": {"row": 31, "column": 1}}, {"id": 12, "type": "array_declarator", "text": "BTNegate[BTMaxStrategyNumber]", "parent": 11, "children": [13, 14], "start_point": {"row": 25, "column": 22}, "end_point": {"row": 25, "column": 51}}, {"id": 13, "type": "identifier", "text": "BTNegate", "parent": 12, "children": [], "start_point": {"row": 25, "column": 22}, "end_point": {"row": 25, "column": 30}}, {"id": 14, "type": "identifier", "text": "BTMaxStrategyNumber", "parent": 12, "children": [], "start_point": {"row": 25, "column": 31}, "end_point": {"row": 25, "column": 50}}, {"id": 15, "type": "=", "text": "=", "parent": 11, "children": [], "start_point": {"row": 25, "column": 52}, "end_point": {"row": 25, "column": 53}}, {"id": 16, "type": "initializer_list", "text": "{\n\tBTGreaterEqualStrategyNumber,\n\tBTGreaterStrategyNumber,\n\tInvalidStrategy,\n\tBTLessStrategyNumber,\n\tBTLessEqualStrategyNumber\n}", "parent": 11, "children": [17, 18, 19, 20, 21], "start_point": {"row": 25, "column": 54}, "end_point": {"row": 31, "column": 1}}, {"id": 17, "type": "identifier", "text": "BTGreaterEqualStrategyNumber", "parent": 16, "children": [], "start_point": {"row": 26, "column": 1}, "end_point": {"row": 26, "column": 29}}, {"id": 18, "type": "identifier", "text": "BTGreaterStrategyNumber", "parent": 16, "children": [], "start_point": {"row": 27, "column": 1}, "end_point": {"row": 27, "column": 24}}, {"id": 19, "type": "identifier", "text": "InvalidStrategy", "parent": 16, "children": [], "start_point": {"row": 28, "column": 1}, "end_point": {"row": 28, "column": 16}}, {"id": 20, "type": "identifier", "text": "BTLessStrategyNumber", "parent": 16, "children": [], "start_point": {"row": 29, "column": 1}, "end_point": {"row": 29, "column": 21}}, {"id": 21, "type": "identifier", "text": "BTLessEqualStrategyNumber", "parent": 16, "children": [], "start_point": {"row": 30, "column": 1}, "end_point": {"row": 30, "column": 26}}, {"id": 22, "type": "declaration", "text": "static StrategyNumber BTCommute[BTMaxStrategyNumber] = {\n\tBTGreaterStrategyNumber,\n\tBTGreaterEqualStrategyNumber,\n\tInvalidStrategy,\n\tBTLessEqualStrategyNumber,\n\tBTLessStrategyNumber\n};", "parent": null, "children": [23, 24], "start_point": {"row": 33, "column": 0}, "end_point": {"row": 39, "column": 2}}, {"id": 23, "type": "type_identifier", "text": "StrategyNumber", "parent": 22, "children": [], "start_point": {"row": 33, "column": 7}, "end_point": {"row": 33, "column": 21}}, {"id": 24, "type": "init_declarator", "text": "BTCommute[BTMaxStrategyNumber] = {\n\tBTGreaterStrategyNumber,\n\tBTGreaterEqualStrategyNumber,\n\tInvalidStrategy,\n\tBTLessEqualStrategyNumber,\n\tBTLessStrategyNumber\n}", "parent": 22, "children": [25, 28, 29], "start_point": {"row": 33, "column": 22}, "end_point": {"row": 39, "column": 1}}, {"id": 25, "type": "array_declarator", "text": "BTCommute[BTMaxStrategyNumber]", "parent": 24, "children": [26, 27], "start_point": {"row": 33, "column": 22}, "end_point": {"row": 33, "column": 52}}, {"id": 26, "type": "identifier", "text": "BTCommute", "parent": 25, "children": [], "start_point": {"row": 33, "column": 22}, "end_point": {"row": 33, "column": 31}}, {"id": 27, "type": "identifier", "text": "BTMaxStrategyNumber", "parent": 25, "children": [], "start_point": {"row": 33, "column": 32}, "end_point": {"row": 33, "column": 51}}, {"id": 28, "type": "=", "text": "=", "parent": 24, "children": [], "start_point": {"row": 33, "column": 53}, "end_point": {"row": 33, "column": 54}}, {"id": 29, "type": "initializer_list", "text": "{\n\tBTGreaterStrategyNumber,\n\tBTGreaterEqualStrategyNumber,\n\tInvalidStrategy,\n\tBTLessEqualStrategyNumber,\n\tBTLessStrategyNumber\n}", "parent": 24, "children": [30, 31, 32, 33, 34], "start_point": {"row": 33, "column": 55}, "end_point": {"row": 39, "column": 1}}, {"id": 30, "type": "identifier", "text": "BTGreaterStrategyNumber", "parent": 29, "children": [], "start_point": {"row": 34, "column": 1}, "end_point": {"row": 34, "column": 24}}, {"id": 31, "type": "identifier", "text": "BTGreaterEqualStrategyNumber", "parent": 29, "children": [], "start_point": {"row": 35, "column": 1}, "end_point": {"row": 35, "column": 29}}, {"id": 32, "type": "identifier", "text": "InvalidStrategy", "parent": 29, "children": [], "start_point": {"row": 36, "column": 1}, "end_point": {"row": 36, "column": 16}}, {"id": 33, "type": "identifier", "text": "BTLessEqualStrategyNumber", "parent": 29, "children": [], "start_point": {"row": 37, "column": 1}, "end_point": {"row": 37, "column": 26}}, {"id": 34, "type": "identifier", "text": "BTLessStrategyNumber", "parent": 29, "children": [], "start_point": {"row": 38, "column": 1}, "end_point": {"row": 38, "column": 21}}, {"id": 35, "type": "declaration", "text": "static StrategyNumber BTNegateCommute[BTMaxStrategyNumber] = {\n\tBTLessEqualStrategyNumber,\n\tBTLessStrategyNumber,\n\tInvalidStrategy,\n\tBTGreaterStrategyNumber,\n\tBTGreaterEqualStrategyNumber\n};", "parent": null, "children": [36, 37], "start_point": {"row": 41, "column": 0}, "end_point": {"row": 47, "column": 2}}, {"id": 36, "type": "type_identifier", "text": "StrategyNumber", "parent": 35, "children": [], "start_point": {"row": 41, "column": 7}, "end_point": {"row": 41, "column": 21}}, {"id": 37, "type": "init_declarator", "text": "BTNegateCommute[BTMaxStrategyNumber] = {\n\tBTLessEqualStrategyNumber,\n\tBTLessStrategyNumber,\n\tInvalidStrategy,\n\tBTGreaterStrategyNumber,\n\tBTGreaterEqualStrategyNumber\n}", "parent": 35, "children": [38, 41, 42], "start_point": {"row": 41, "column": 22}, "end_point": {"row": 47, "column": 1}}, {"id": 38, "type": "array_declarator", "text": "BTNegateCommute[BTMaxStrategyNumber]", "parent": 37, "children": [39, 40], "start_point": {"row": 41, "column": 22}, "end_point": {"row": 41, "column": 58}}, {"id": 39, "type": "identifier", "text": "BTNegateCommute", "parent": 38, "children": [], "start_point": {"row": 41, "column": 22}, "end_point": {"row": 41, "column": 37}}, {"id": 40, "type": "identifier", "text": "BTMaxStrategyNumber", "parent": 38, "children": [], "start_point": {"row": 41, "column": 38}, "end_point": {"row": 41, "column": 57}}, {"id": 41, "type": "=", "text": "=", "parent": 37, "children": [], "start_point": {"row": 41, "column": 59}, "end_point": {"row": 41, "column": 60}}, {"id": 42, "type": "initializer_list", "text": "{\n\tBTLessEqualStrategyNumber,\n\tBTLessStrategyNumber,\n\tInvalidStrategy,\n\tBTGreaterStrategyNumber,\n\tBTGreaterEqualStrategyNumber\n}", "parent": 37, "children": [43, 44, 45, 46, 47], "start_point": {"row": 41, "column": 61}, "end_point": {"row": 47, "column": 1}}, {"id": 43, "type": "identifier", "text": "BTLessEqualStrategyNumber", "parent": 42, "children": [], "start_point": {"row": 42, "column": 1}, "end_point": {"row": 42, "column": 26}}, {"id": 44, "type": "identifier", "text": "BTLessStrategyNumber", "parent": 42, "children": [], "start_point": {"row": 43, "column": 1}, "end_point": {"row": 43, "column": 21}}, {"id": 45, "type": "identifier", "text": "InvalidStrategy", "parent": 42, "children": [], "start_point": {"row": 44, "column": 1}, "end_point": {"row": 44, "column": 16}}, {"id": 46, "type": "identifier", "text": "BTGreaterStrategyNumber", "parent": 42, "children": [], "start_point": {"row": 45, "column": 1}, "end_point": {"row": 45, "column": 24}}, {"id": 47, "type": "identifier", "text": "BTGreaterEqualStrategyNumber", "parent": 42, "children": [], "start_point": {"row": 46, "column": 1}, "end_point": {"row": 46, "column": 29}}, {"id": 48, "type": "declaration", "text": "static uint16 BTLessTermData[] = {\t\t/* XXX type clash */\n\t2,\n\tBTLessStrategyNumber,\n\tSK_NEGATE,\n\tBTLessStrategyNumber,\n\tSK_NEGATE | SK_COMMUTE\n};", "parent": null, "children": [49, 50], "start_point": {"row": 49, "column": 0}, "end_point": {"row": 55, "column": 2}}, {"id": 49, "type": "type_identifier", "text": "uint16", "parent": 48, "children": [], "start_point": {"row": 49, "column": 7}, "end_point": {"row": 49, "column": 13}}, {"id": 50, "type": "init_declarator", "text": "BTLessTermData[] = {\t\t/* XXX type clash */\n\t2,\n\tBTLessStrategyNumber,\n\tSK_NEGATE,\n\tBTLessStrategyNumber,\n\tSK_NEGATE | SK_COMMUTE\n}", "parent": 48, "children": [51, 53, 54], "start_point": {"row": 49, "column": 14}, "end_point": {"row": 55, "column": 1}}, {"id": 51, "type": "array_declarator", "text": "BTLessTermData[]", "parent": 50, "children": [52], "start_point": {"row": 49, "column": 14}, "end_point": {"row": 49, "column": 30}}, {"id": 52, "type": "identifier", "text": "BTLessTermData", "parent": 51, "children": [], "start_point": {"row": 49, "column": 14}, "end_point": {"row": 49, "column": 28}}, {"id": 53, "type": "=", "text": "=", "parent": 50, "children": [], "start_point": {"row": 49, "column": 31}, "end_point": {"row": 49, "column": 32}}, {"id": 54, "type": "initializer_list", "text": "{\t\t/* XXX type clash */\n\t2,\n\tBTLessStrategyNumber,\n\tSK_NEGATE,\n\tBTLessStrategyNumber,\n\tSK_NEGATE | SK_COMMUTE\n}", "parent": 50, "children": [55, 56, 57, 58, 59], "start_point": {"row": 49, "column": 33}, "end_point": {"row": 55, "column": 1}}, {"id": 55, "type": "number_literal", "text": "2", "parent": 54, "children": [], "start_point": {"row": 50, "column": 1}, "end_point": {"row": 50, "column": 2}}, {"id": 56, "type": "identifier", "text": "BTLessStrategyNumber", "parent": 54, "children": [], "start_point": {"row": 51, "column": 1}, "end_point": {"row": 51, "column": 21}}, {"id": 57, "type": "identifier", "text": "SK_NEGATE", "parent": 54, "children": [], "start_point": {"row": 52, "column": 1}, "end_point": {"row": 52, "column": 10}}, {"id": 58, "type": "identifier", "text": "BTLessStrategyNumber", "parent": 54, "children": [], "start_point": {"row": 53, "column": 1}, "end_point": {"row": 53, "column": 21}}, {"id": 59, "type": "binary_expression", "text": "SK_NEGATE | SK_COMMUTE", "parent": 54, "children": [60, 61], "start_point": {"row": 54, "column": 1}, "end_point": {"row": 54, "column": 23}}, {"id": 60, "type": "identifier", "text": "SK_NEGATE", "parent": 59, "children": [], "start_point": {"row": 54, "column": 1}, "end_point": {"row": 54, "column": 10}}, {"id": 61, "type": "identifier", "text": "SK_COMMUTE", "parent": 59, "children": [], "start_point": {"row": 54, "column": 13}, "end_point": {"row": 54, "column": 23}}, {"id": 62, "type": "declaration", "text": "static uint16 BTLessEqualTermData[] = { /* XXX type clash */\n\t2,\n\tBTLessEqualStrategyNumber,\n\t0x0,\n\tBTLessEqualStrategyNumber,\n\tSK_COMMUTE\n};", "parent": null, "children": [63, 64], "start_point": {"row": 57, "column": 0}, "end_point": {"row": 63, "column": 2}}, {"id": 63, "type": "type_identifier", "text": "uint16", "parent": 62, "children": [], "start_point": {"row": 57, "column": 7}, "end_point": {"row": 57, "column": 13}}, {"id": 64, "type": "init_declarator", "text": "BTLessEqualTermData[] = { /* XXX type clash */\n\t2,\n\tBTLessEqualStrategyNumber,\n\t0x0,\n\tBTLessEqualStrategyNumber,\n\tSK_COMMUTE\n}", "parent": 62, "children": [65, 67, 68], "start_point": {"row": 57, "column": 14}, "end_point": {"row": 63, "column": 1}}, {"id": 65, "type": "array_declarator", "text": "BTLessEqualTermData[]", "parent": 64, "children": [66], "start_point": {"row": 57, "column": 14}, "end_point": {"row": 57, "column": 35}}, {"id": 66, "type": "identifier", "text": "BTLessEqualTermData", "parent": 65, "children": [], "start_point": {"row": 57, "column": 14}, "end_point": {"row": 57, "column": 33}}, {"id": 67, "type": "=", "text": "=", "parent": 64, "children": [], "start_point": {"row": 57, "column": 36}, "end_point": {"row": 57, "column": 37}}, {"id": 68, "type": "initializer_list", "text": "{ /* XXX type clash */\n\t2,\n\tBTLessEqualStrategyNumber,\n\t0x0,\n\tBTLessEqualStrategyNumber,\n\tSK_COMMUTE\n}", "parent": 64, "children": [69, 70, 71, 72, 73], "start_point": {"row": 57, "column": 38}, "end_point": {"row": 63, "column": 1}}, {"id": 69, "type": "number_literal", "text": "2", "parent": 68, "children": [], "start_point": {"row": 58, "column": 1}, "end_point": {"row": 58, "column": 2}}, {"id": 70, "type": "identifier", "text": "BTLessEqualStrategyNumber", "parent": 68, "children": [], "start_point": {"row": 59, "column": 1}, "end_point": {"row": 59, "column": 26}}, {"id": 71, "type": "number_literal", "text": "0x0", "parent": 68, "children": [], "start_point": {"row": 60, "column": 1}, "end_point": {"row": 60, "column": 4}}, {"id": 72, "type": "identifier", "text": "BTLessEqualStrategyNumber", "parent": 68, "children": [], "start_point": {"row": 61, "column": 1}, "end_point": {"row": 61, "column": 26}}, {"id": 73, "type": "identifier", "text": "SK_COMMUTE", "parent": 68, "children": [], "start_point": {"row": 62, "column": 1}, "end_point": {"row": 62, "column": 11}}, {"id": 74, "type": "declaration", "text": "static uint16 BTGreaterEqualTermData[] = {\t\t/* XXX type clash */\n\t2,\n\tBTGreaterEqualStrategyNumber,\n\t0x0,\n\tBTGreaterEqualStrategyNumber,\n\tSK_COMMUTE\n};", "parent": null, "children": [75, 76], "start_point": {"row": 65, "column": 0}, "end_point": {"row": 71, "column": 2}}, {"id": 75, "type": "type_identifier", "text": "uint16", "parent": 74, "children": [], "start_point": {"row": 65, "column": 7}, "end_point": {"row": 65, "column": 13}}, {"id": 76, "type": "init_declarator", "text": "BTGreaterEqualTermData[] = {\t\t/* XXX type clash */\n\t2,\n\tBTGreaterEqualStrategyNumber,\n\t0x0,\n\tBTGreaterEqualStrategyNumber,\n\tSK_COMMUTE\n}", "parent": 74, "children": [77, 79, 80], "start_point": {"row": 65, "column": 14}, "end_point": {"row": 71, "column": 1}}, {"id": 77, "type": "array_declarator", "text": "BTGreaterEqualTermData[]", "parent": 76, "children": [78], "start_point": {"row": 65, "column": 14}, "end_point": {"row": 65, "column": 38}}, {"id": 78, "type": "identifier", "text": "BTGreaterEqualTermData", "parent": 77, "children": [], "start_point": {"row": 65, "column": 14}, "end_point": {"row": 65, "column": 36}}, {"id": 79, "type": "=", "text": "=", "parent": 76, "children": [], "start_point": {"row": 65, "column": 39}, "end_point": {"row": 65, "column": 40}}, {"id": 80, "type": "initializer_list", "text": "{\t\t/* XXX type clash */\n\t2,\n\tBTGreaterEqualStrategyNumber,\n\t0x0,\n\tBTGreaterEqualStrategyNumber,\n\tSK_COMMUTE\n}", "parent": 76, "children": [81, 82, 83, 84, 85], "start_point": {"row": 65, "column": 41}, "end_point": {"row": 71, "column": 1}}, {"id": 81, "type": "number_literal", "text": "2", "parent": 80, "children": [], "start_point": {"row": 66, "column": 1}, "end_point": {"row": 66, "column": 2}}, {"id": 82, "type": "identifier", "text": "BTGreaterEqualStrategyNumber", "parent": 80, "children": [], "start_point": {"row": 67, "column": 1}, "end_point": {"row": 67, "column": 29}}, {"id": 83, "type": "number_literal", "text": "0x0", "parent": 80, "children": [], "start_point": {"row": 68, "column": 1}, "end_point": {"row": 68, "column": 4}}, {"id": 84, "type": "identifier", "text": "BTGreaterEqualStrategyNumber", "parent": 80, "children": [], "start_point": {"row": 69, "column": 1}, "end_point": {"row": 69, "column": 29}}, {"id": 85, "type": "identifier", "text": "SK_COMMUTE", "parent": 80, "children": [], "start_point": {"row": 70, "column": 1}, "end_point": {"row": 70, "column": 11}}, {"id": 86, "type": "declaration", "text": "static uint16 BTGreaterTermData[] = {\t/* XXX type clash */\n\t2,\n\tBTGreaterStrategyNumber,\n\tSK_NEGATE,\n\tBTGreaterStrategyNumber,\n\tSK_NEGATE | SK_COMMUTE\n};", "parent": null, "children": [87, 88], "start_point": {"row": 73, "column": 0}, "end_point": {"row": 79, "column": 2}}, {"id": 87, "type": "type_identifier", "text": "uint16", "parent": 86, "children": [], "start_point": {"row": 73, "column": 7}, "end_point": {"row": 73, "column": 13}}, {"id": 88, "type": "init_declarator", "text": "BTGreaterTermData[] = {\t/* XXX type clash */\n\t2,\n\tBTGreaterStrategyNumber,\n\tSK_NEGATE,\n\tBTGreaterStrategyNumber,\n\tSK_NEGATE | SK_COMMUTE\n}", "parent": 86, "children": [89, 91, 92], "start_point": {"row": 73, "column": 14}, "end_point": {"row": 79, "column": 1}}, {"id": 89, "type": "array_declarator", "text": "BTGreaterTermData[]", "parent": 88, "children": [90], "start_point": {"row": 73, "column": 14}, "end_point": {"row": 73, "column": 33}}, {"id": 90, "type": "identifier", "text": "BTGreaterTermData", "parent": 89, "children": [], "start_point": {"row": 73, "column": 14}, "end_point": {"row": 73, "column": 31}}, {"id": 91, "type": "=", "text": "=", "parent": 88, "children": [], "start_point": {"row": 73, "column": 34}, "end_point": {"row": 73, "column": 35}}, {"id": 92, "type": "initializer_list", "text": "{\t/* XXX type clash */\n\t2,\n\tBTGreaterStrategyNumber,\n\tSK_NEGATE,\n\tBTGreaterStrategyNumber,\n\tSK_NEGATE | SK_COMMUTE\n}", "parent": 88, "children": [93, 94, 95, 96, 97], "start_point": {"row": 73, "column": 36}, "end_point": {"row": 79, "column": 1}}, {"id": 93, "type": "number_literal", "text": "2", "parent": 92, "children": [], "start_point": {"row": 74, "column": 1}, "end_point": {"row": 74, "column": 2}}, {"id": 94, "type": "identifier", "text": "BTGreaterStrategyNumber", "parent": 92, "children": [], "start_point": {"row": 75, "column": 1}, "end_point": {"row": 75, "column": 24}}, {"id": 95, "type": "identifier", "text": "SK_NEGATE", "parent": 92, "children": [], "start_point": {"row": 76, "column": 1}, "end_point": {"row": 76, "column": 10}}, {"id": 96, "type": "identifier", "text": "BTGreaterStrategyNumber", "parent": 92, "children": [], "start_point": {"row": 77, "column": 1}, "end_point": {"row": 77, "column": 24}}, {"id": 97, "type": "binary_expression", "text": "SK_NEGATE | SK_COMMUTE", "parent": 92, "children": [98, 99], "start_point": {"row": 78, "column": 1}, "end_point": {"row": 78, "column": 23}}, {"id": 98, "type": "identifier", "text": "SK_NEGATE", "parent": 97, "children": [], "start_point": {"row": 78, "column": 1}, "end_point": {"row": 78, "column": 10}}, {"id": 99, "type": "identifier", "text": "SK_COMMUTE", "parent": 97, "children": [], "start_point": {"row": 78, "column": 13}, "end_point": {"row": 78, "column": 23}}, {"id": 100, "type": "declaration", "text": "static StrategyTerm BTEqualExpressionData[] = {\n\t(StrategyTerm) BTLessTermData,\t\t/* XXX */\n\t(StrategyTerm) BTLessEqualTermData, /* XXX */\n\t(StrategyTerm) BTGreaterEqualTermData,\t\t/* XXX */\n\t(StrategyTerm) BTGreaterTermData,\t/* XXX */\n\tNULL\n};", "parent": null, "children": [101, 102], "start_point": {"row": 81, "column": 0}, "end_point": {"row": 87, "column": 2}}, {"id": 101, "type": "type_identifier", "text": "StrategyTerm", "parent": 100, "children": [], "start_point": {"row": 81, "column": 7}, "end_point": {"row": 81, "column": 19}}, {"id": 102, "type": "init_declarator", "text": "BTEqualExpressionData[] = {\n\t(StrategyTerm) BTLessTermData,\t\t/* XXX */\n\t(StrategyTerm) BTLessEqualTermData, /* XXX */\n\t(StrategyTerm) BTGreaterEqualTermData,\t\t/* XXX */\n\t(StrategyTerm) BTGreaterTermData,\t/* XXX */\n\tNULL\n}", "parent": 100, "children": [103, 105, 106], "start_point": {"row": 81, "column": 20}, "end_point": {"row": 87, "column": 1}}, {"id": 103, "type": "array_declarator", "text": "BTEqualExpressionData[]", "parent": 102, "children": [104], "start_point": {"row": 81, "column": 20}, "end_point": {"row": 81, "column": 43}}, {"id": 104, "type": "identifier", "text": "BTEqualExpressionData", "parent": 103, "children": [], "start_point": {"row": 81, "column": 20}, "end_point": {"row": 81, "column": 41}}, {"id": 105, "type": "=", "text": "=", "parent": 102, "children": [], "start_point": {"row": 81, "column": 44}, "end_point": {"row": 81, "column": 45}}, {"id": 106, "type": "initializer_list", "text": "{\n\t(StrategyTerm) BTLessTermData,\t\t/* XXX */\n\t(StrategyTerm) BTLessEqualTermData, /* XXX */\n\t(StrategyTerm) BTGreaterEqualTermData,\t\t/* XXX */\n\t(StrategyTerm) BTGreaterTermData,\t/* XXX */\n\tNULL\n}", "parent": 102, "children": [107, 111, 115, 119, 123], "start_point": {"row": 81, "column": 46}, "end_point": {"row": 87, "column": 1}}, {"id": 107, "type": "cast_expression", "text": "(StrategyTerm) BTLessTermData", "parent": 106, "children": [108, 110], "start_point": {"row": 82, "column": 1}, "end_point": {"row": 82, "column": 30}}, {"id": 108, "type": "type_descriptor", "text": "StrategyTerm", "parent": 107, "children": [109], "start_point": {"row": 82, "column": 2}, "end_point": {"row": 82, "column": 14}}, {"id": 109, "type": "type_identifier", "text": "StrategyTerm", "parent": 108, "children": [], "start_point": {"row": 82, "column": 2}, "end_point": {"row": 82, "column": 14}}, {"id": 110, "type": "identifier", "text": "BTLessTermData", "parent": 107, "children": [], "start_point": {"row": 82, "column": 16}, "end_point": {"row": 82, "column": 30}}, {"id": 111, "type": "cast_expression", "text": "(StrategyTerm) BTLessEqualTermData", "parent": 106, "children": [112, 114], "start_point": {"row": 83, "column": 1}, "end_point": {"row": 83, "column": 35}}, {"id": 112, "type": "type_descriptor", "text": "StrategyTerm", "parent": 111, "children": [113], "start_point": {"row": 83, "column": 2}, "end_point": {"row": 83, "column": 14}}, {"id": 113, "type": "type_identifier", "text": "StrategyTerm", "parent": 112, "children": [], "start_point": {"row": 83, "column": 2}, "end_point": {"row": 83, "column": 14}}, {"id": 114, "type": "identifier", "text": "BTLessEqualTermData", "parent": 111, "children": [], "start_point": {"row": 83, "column": 16}, "end_point": {"row": 83, "column": 35}}, {"id": 115, "type": "cast_expression", "text": "(StrategyTerm) BTGreaterEqualTermData", "parent": 106, "children": [116, 118], "start_point": {"row": 84, "column": 1}, "end_point": {"row": 84, "column": 38}}, {"id": 116, "type": "type_descriptor", "text": "StrategyTerm", "parent": 115, "children": [117], "start_point": {"row": 84, "column": 2}, "end_point": {"row": 84, "column": 14}}, {"id": 117, "type": "type_identifier", "text": "StrategyTerm", "parent": 116, "children": [], "start_point": {"row": 84, "column": 2}, "end_point": {"row": 84, "column": 14}}, {"id": 118, "type": "identifier", "text": "BTGreaterEqualTermData", "parent": 115, "children": [], "start_point": {"row": 84, "column": 16}, "end_point": {"row": 84, "column": 38}}, {"id": 119, "type": "cast_expression", "text": "(StrategyTerm) BTGreaterTermData", "parent": 106, "children": [120, 122], "start_point": {"row": 85, "column": 1}, "end_point": {"row": 85, "column": 33}}, {"id": 120, "type": "type_descriptor", "text": "StrategyTerm", "parent": 119, "children": [121], "start_point": {"row": 85, "column": 2}, "end_point": {"row": 85, "column": 14}}, {"id": 121, "type": "type_identifier", "text": "StrategyTerm", "parent": 120, "children": [], "start_point": {"row": 85, "column": 2}, "end_point": {"row": 85, "column": 14}}, {"id": 122, "type": "identifier", "text": "BTGreaterTermData", "parent": 119, "children": [], "start_point": {"row": 85, "column": 16}, "end_point": {"row": 85, "column": 33}}, {"id": 123, "type": "null", "text": "NULL", "parent": 106, "children": [124], "start_point": {"row": 86, "column": 1}, "end_point": {"row": 86, "column": 5}}, {"id": 124, "type": "NULL", "text": "NULL", "parent": 123, "children": [], "start_point": {"row": 86, "column": 1}, "end_point": {"row": 86, "column": 5}}, {"id": 125, "type": "declaration", "text": "static StrategyExpression BTEvaluationExpressions[BTMaxStrategyNumber] = {\n\tNULL,\n\tNULL,\n\t(StrategyExpression) BTEqualExpressionData,\n\tNULL,\n\tNULL\n};", "parent": null, "children": [126, 127], "start_point": {"row": 89, "column": 0}, "end_point": {"row": 95, "column": 2}}, {"id": 126, "type": "type_identifier", "text": "StrategyExpression", "parent": 125, "children": [], "start_point": {"row": 89, "column": 7}, "end_point": {"row": 89, "column": 25}}, {"id": 127, "type": "init_declarator", "text": "BTEvaluationExpressions[BTMaxStrategyNumber] = {\n\tNULL,\n\tNULL,\n\t(StrategyExpression) BTEqualExpressionData,\n\tNULL,\n\tNULL\n}", "parent": 125, "children": [128, 131, 132], "start_point": {"row": 89, "column": 26}, "end_point": {"row": 95, "column": 1}}, {"id": 128, "type": "array_declarator", "text": "BTEvaluationExpressions[BTMaxStrategyNumber]", "parent": 127, "children": [129, 130], "start_point": {"row": 89, "column": 26}, "end_point": {"row": 89, "column": 70}}, {"id": 129, "type": "identifier", "text": "BTEvaluationExpressions", "parent": 128, "children": [], "start_point": {"row": 89, "column": 26}, "end_point": {"row": 89, "column": 49}}, {"id": 130, "type": "identifier", "text": "BTMaxStrategyNumber", "parent": 128, "children": [], "start_point": {"row": 89, "column": 50}, "end_point": {"row": 89, "column": 69}}, {"id": 131, "type": "=", "text": "=", "parent": 127, "children": [], "start_point": {"row": 89, "column": 71}, "end_point": {"row": 89, "column": 72}}, {"id": 132, "type": "initializer_list", "text": "{\n\tNULL,\n\tNULL,\n\t(StrategyExpression) BTEqualExpressionData,\n\tNULL,\n\tNULL\n}", "parent": 127, "children": [133, 135, 137, 141, 143], "start_point": {"row": 89, "column": 73}, "end_point": {"row": 95, "column": 1}}, {"id": 133, "type": "null", "text": "NULL", "parent": 132, "children": [134], "start_point": {"row": 90, "column": 1}, "end_point": {"row": 90, "column": 5}}, {"id": 134, "type": "NULL", "text": "NULL", "parent": 133, "children": [], "start_point": {"row": 90, "column": 1}, "end_point": {"row": 90, "column": 5}}, {"id": 135, "type": "null", "text": "NULL", "parent": 132, "children": [136], "start_point": {"row": 91, "column": 1}, "end_point": {"row": 91, "column": 5}}, {"id": 136, "type": "NULL", "text": "NULL", "parent": 135, "children": [], "start_point": {"row": 91, "column": 1}, "end_point": {"row": 91, "column": 5}}, {"id": 137, "type": "cast_expression", "text": "(StrategyExpression) BTEqualExpressionData", "parent": 132, "children": [138, 140], "start_point": {"row": 92, "column": 1}, "end_point": {"row": 92, "column": 43}}, {"id": 138, "type": "type_descriptor", "text": "StrategyExpression", "parent": 137, "children": [139], "start_point": {"row": 92, "column": 2}, "end_point": {"row": 92, "column": 20}}, {"id": 139, "type": "type_identifier", "text": "StrategyExpression", "parent": 138, "children": [], "start_point": {"row": 92, "column": 2}, "end_point": {"row": 92, "column": 20}}, {"id": 140, "type": "identifier", "text": "BTEqualExpressionData", "parent": 137, "children": [], "start_point": {"row": 92, "column": 22}, "end_point": {"row": 92, "column": 43}}, {"id": 141, "type": "null", "text": "NULL", "parent": 132, "children": [142], "start_point": {"row": 93, "column": 1}, "end_point": {"row": 93, "column": 5}}, {"id": 142, "type": "NULL", "text": "NULL", "parent": 141, "children": [], "start_point": {"row": 93, "column": 1}, "end_point": {"row": 93, "column": 5}}, {"id": 143, "type": "null", "text": "NULL", "parent": 132, "children": [144], "start_point": {"row": 94, "column": 1}, "end_point": {"row": 94, "column": 5}}, {"id": 144, "type": "NULL", "text": "NULL", "parent": 143, "children": [], "start_point": {"row": 94, "column": 1}, "end_point": {"row": 94, "column": 5}}, {"id": 145, "type": "declaration", "text": "static StrategyEvaluationData BTEvaluationData = {\n\tBTMaxStrategyNumber,\n\t(StrategyTransformMap) BTNegate,\n\t(StrategyTransformMap) BTCommute,\n\t(StrategyTransformMap) BTNegateCommute,\n\tBTEvaluationExpressions\n};", "parent": null, "children": [146, 147], "start_point": {"row": 97, "column": 0}, "end_point": {"row": 103, "column": 2}}, {"id": 146, "type": "type_identifier", "text": "StrategyEvaluationData", "parent": 145, "children": [], "start_point": {"row": 97, "column": 7}, "end_point": {"row": 97, "column": 29}}, {"id": 147, "type": "init_declarator", "text": "BTEvaluationData = {\n\tBTMaxStrategyNumber,\n\t(StrategyTransformMap) BTNegate,\n\t(StrategyTransformMap) BTCommute,\n\t(StrategyTransformMap) BTNegateCommute,\n\tBTEvaluationExpressions\n}", "parent": 145, "children": [148, 149, 150], "start_point": {"row": 97, "column": 30}, "end_point": {"row": 103, "column": 1}}, {"id": 148, "type": "identifier", "text": "BTEvaluationData", "parent": 147, "children": [], "start_point": {"row": 97, "column": 30}, "end_point": {"row": 97, "column": 46}}, {"id": 149, "type": "=", "text": "=", "parent": 147, "children": [], "start_point": {"row": 97, "column": 47}, "end_point": {"row": 97, "column": 48}}, {"id": 150, "type": "initializer_list", "text": "{\n\tBTMaxStrategyNumber,\n\t(StrategyTransformMap) BTNegate,\n\t(StrategyTransformMap) BTCommute,\n\t(StrategyTransformMap) BTNegateCommute,\n\tBTEvaluationExpressions\n}", "parent": 147, "children": [151, 152, 156, 160, 164], "start_point": {"row": 97, "column": 49}, "end_point": {"row": 103, "column": 1}}, {"id": 151, "type": "identifier", "text": "BTMaxStrategyNumber", "parent": 150, "children": [], "start_point": {"row": 98, "column": 1}, "end_point": {"row": 98, "column": 20}}, {"id": 152, "type": "cast_expression", "text": "(StrategyTransformMap) BTNegate", "parent": 150, "children": [153, 155], "start_point": {"row": 99, "column": 1}, "end_point": {"row": 99, "column": 32}}, {"id": 153, "type": "type_descriptor", "text": "StrategyTransformMap", "parent": 152, "children": [154], "start_point": {"row": 99, "column": 2}, "end_point": {"row": 99, "column": 22}}, {"id": 154, "type": "type_identifier", "text": "StrategyTransformMap", "parent": 153, "children": [], "start_point": {"row": 99, "column": 2}, "end_point": {"row": 99, "column": 22}}, {"id": 155, "type": "identifier", "text": "BTNegate", "parent": 152, "children": [], "start_point": {"row": 99, "column": 24}, "end_point": {"row": 99, "column": 32}}, {"id": 156, "type": "cast_expression", "text": "(StrategyTransformMap) BTCommute", "parent": 150, "children": [157, 159], "start_point": {"row": 100, "column": 1}, "end_point": {"row": 100, "column": 33}}, {"id": 157, "type": "type_descriptor", "text": "StrategyTransformMap", "parent": 156, "children": [158], "start_point": {"row": 100, "column": 2}, "end_point": {"row": 100, "column": 22}}, {"id": 158, "type": "type_identifier", "text": "StrategyTransformMap", "parent": 157, "children": [], "start_point": {"row": 100, "column": 2}, "end_point": {"row": 100, "column": 22}}, {"id": 159, "type": "identifier", "text": "BTCommute", "parent": 156, "children": [], "start_point": {"row": 100, "column": 24}, "end_point": {"row": 100, "column": 33}}, {"id": 160, "type": "cast_expression", "text": "(StrategyTransformMap) BTNegateCommute", "parent": 150, "children": [161, 163], "start_point": {"row": 101, "column": 1}, "end_point": {"row": 101, "column": 39}}, {"id": 161, "type": "type_descriptor", "text": "StrategyTransformMap", "parent": 160, "children": [162], "start_point": {"row": 101, "column": 2}, "end_point": {"row": 101, "column": 22}}, {"id": 162, "type": "type_identifier", "text": "StrategyTransformMap", "parent": 161, "children": [], "start_point": {"row": 101, "column": 2}, "end_point": {"row": 101, "column": 22}}, {"id": 163, "type": "identifier", "text": "BTNegateCommute", "parent": 160, "children": [], "start_point": {"row": 101, "column": 24}, "end_point": {"row": 101, "column": 39}}, {"id": 164, "type": "identifier", "text": "BTEvaluationExpressions", "parent": 150, "children": [], "start_point": {"row": 102, "column": 1}, "end_point": {"row": 102, "column": 24}}, {"id": 165, "type": "function_definition", "text": "StrategyNumber\n_bt_getstrat(Relation rel,\n\t\t\t AttrNumber attno,\n\t\t\t RegProcedure proc)\n{\n\tStrategyNumber strat;\n\n\tstrat = RelationGetStrategy(rel, attno, &BTEvaluationData, proc);\n\n\tAssert(StrategyNumberIsValid(strat));\n\n\treturn strat;\n}", "parent": null, "children": [166, 167], "start_point": {"row": 110, "column": 0}, "end_point": {"row": 122, "column": 1}}, {"id": 166, "type": "type_identifier", "text": "StrategyNumber", "parent": 165, "children": [], "start_point": {"row": 110, "column": 0}, "end_point": {"row": 110, "column": 14}}, {"id": 167, "type": "function_declarator", "text": "_bt_getstrat(Relation rel,\n\t\t\t AttrNumber attno,\n\t\t\t RegProcedure proc)", "parent": 165, "children": [168, 169], "start_point": {"row": 111, "column": 0}, "end_point": {"row": 113, "column": 22}}, {"id": 168, "type": "identifier", "text": "_bt_getstrat", "parent": 167, "children": [], "start_point": {"row": 111, "column": 0}, "end_point": {"row": 111, "column": 12}}, {"id": 169, "type": "parameter_list", "text": "(Relation rel,\n\t\t\t AttrNumber attno,\n\t\t\t RegProcedure proc)", "parent": 167, "children": [170, 173, 176], "start_point": {"row": 111, "column": 12}, "end_point": {"row": 113, "column": 22}}, {"id": 170, "type": "parameter_declaration", "text": "Relation rel", "parent": 169, "children": [171, 172], "start_point": {"row": 111, "column": 13}, "end_point": {"row": 111, "column": 25}}, {"id": 171, "type": "type_identifier", "text": "Relation", "parent": 170, "children": [], "start_point": {"row": 111, "column": 13}, "end_point": {"row": 111, "column": 21}}, {"id": 172, "type": "identifier", "text": "rel", "parent": 170, "children": [], "start_point": {"row": 111, "column": 22}, "end_point": {"row": 111, "column": 25}}, {"id": 173, "type": "parameter_declaration", "text": "AttrNumber attno", "parent": 169, "children": [174, 175], "start_point": {"row": 112, "column": 4}, "end_point": {"row": 112, "column": 20}}, {"id": 174, "type": "type_identifier", "text": "AttrNumber", "parent": 173, "children": [], "start_point": {"row": 112, "column": 4}, "end_point": {"row": 112, "column": 14}}, {"id": 175, "type": "identifier", "text": "attno", "parent": 173, "children": [], "start_point": {"row": 112, "column": 15}, "end_point": {"row": 112, "column": 20}}, {"id": 176, "type": "parameter_declaration", "text": "RegProcedure proc", "parent": 169, "children": [177, 178], "start_point": {"row": 113, "column": 4}, "end_point": {"row": 113, "column": 21}}, {"id": 177, "type": "type_identifier", "text": "RegProcedure", "parent": 176, "children": [], "start_point": {"row": 113, "column": 4}, "end_point": {"row": 113, "column": 16}}, {"id": 178, "type": "identifier", "text": "proc", "parent": 176, "children": [], "start_point": {"row": 113, "column": 17}, "end_point": {"row": 113, "column": 21}}, {"id": 179, "type": "declaration", "text": "StrategyNumber strat;", "parent": 165, "children": [180, 181], "start_point": {"row": 115, "column": 1}, "end_point": {"row": 115, "column": 22}}, {"id": 180, "type": "type_identifier", "text": "StrategyNumber", "parent": 179, "children": [], "start_point": {"row": 115, "column": 1}, "end_point": {"row": 115, "column": 15}}, {"id": 181, "type": "identifier", "text": "strat", "parent": 179, "children": [], "start_point": {"row": 115, "column": 16}, "end_point": {"row": 115, "column": 21}}, {"id": 182, "type": "assignment_expression", "text": "strat = RelationGetStrategy(rel, attno, &BTEvaluationData, proc)", "parent": 165, "children": [183, 184, 185], "start_point": {"row": 117, "column": 1}, "end_point": {"row": 117, "column": 65}}, {"id": 183, "type": "identifier", "text": "strat", "parent": 182, "children": [], "start_point": {"row": 117, "column": 1}, "end_point": {"row": 117, "column": 6}}, {"id": 184, "type": "=", "text": "=", "parent": 182, "children": [], "start_point": {"row": 117, "column": 7}, "end_point": {"row": 117, "column": 8}}, {"id": 185, "type": "call_expression", "text": "RelationGetStrategy(rel, attno, &BTEvaluationData, proc)", "parent": 182, "children": [186, 187], "start_point": {"row": 117, "column": 9}, "end_point": {"row": 117, "column": 65}}, {"id": 186, "type": "identifier", "text": "RelationGetStrategy", "parent": 185, "children": [], "start_point": {"row": 117, "column": 9}, "end_point": {"row": 117, "column": 28}}, {"id": 187, "type": "argument_list", "text": "(rel, attno, &BTEvaluationData, proc)", "parent": 185, "children": [188, 189, 190, 192], "start_point": {"row": 117, "column": 28}, "end_point": {"row": 117, "column": 65}}, {"id": 188, "type": "identifier", "text": "rel", "parent": 187, "children": [], "start_point": {"row": 117, "column": 29}, "end_point": {"row": 117, "column": 32}}, {"id": 189, "type": "identifier", "text": "attno", "parent": 187, "children": [], "start_point": {"row": 117, "column": 34}, "end_point": {"row": 117, "column": 39}}, {"id": 190, "type": "pointer_expression", "text": "&BTEvaluationData", "parent": 187, "children": [191], "start_point": {"row": 117, "column": 41}, "end_point": {"row": 117, "column": 58}}, {"id": 191, "type": "identifier", "text": "BTEvaluationData", "parent": 190, "children": [], "start_point": {"row": 117, "column": 42}, "end_point": {"row": 117, "column": 58}}, {"id": 192, "type": "identifier", "text": "proc", "parent": 187, "children": [], "start_point": {"row": 117, "column": 60}, "end_point": {"row": 117, "column": 64}}, {"id": 193, "type": "call_expression", "text": "Assert(StrategyNumberIsValid(strat))", "parent": 165, "children": [194, 195], "start_point": {"row": 119, "column": 1}, "end_point": {"row": 119, "column": 37}}, {"id": 194, "type": "identifier", "text": "Assert", "parent": 193, "children": [], "start_point": {"row": 119, "column": 1}, "end_point": {"row": 119, "column": 7}}, {"id": 195, "type": "argument_list", "text": "(StrategyNumberIsValid(strat))", "parent": 193, "children": [196], "start_point": {"row": 119, "column": 7}, "end_point": {"row": 119, "column": 37}}, {"id": 196, "type": "call_expression", "text": "StrategyNumberIsValid(strat)", "parent": 195, "children": [197, 198], "start_point": {"row": 119, "column": 8}, "end_point": {"row": 119, "column": 36}}, {"id": 197, "type": "identifier", "text": "StrategyNumberIsValid", "parent": 196, "children": [], "start_point": {"row": 119, "column": 8}, "end_point": {"row": 119, "column": 29}}, {"id": 198, "type": "argument_list", "text": "(strat)", "parent": 196, "children": [199], "start_point": {"row": 119, "column": 29}, "end_point": {"row": 119, "column": 36}}, {"id": 199, "type": "identifier", "text": "strat", "parent": 198, "children": [], "start_point": {"row": 119, "column": 30}, "end_point": {"row": 119, "column": 35}}, {"id": 200, "type": "return_statement", "text": "return strat;", "parent": 165, "children": [201], "start_point": {"row": 121, "column": 1}, "end_point": {"row": 121, "column": 14}}, {"id": 201, "type": "identifier", "text": "strat", "parent": 200, "children": [], "start_point": {"row": 121, "column": 8}, "end_point": {"row": 121, "column": 13}}, {"id": 202, "type": "preproc_ifdef", "text": "#ifdef NOT_USED\n\nbool\n_bt_invokestrat(Relation rel,\n\t\t\t\tAttrNumber attno,\n\t\t\t\tStrategyNumber strat,\n\t\t\t\tDatum left,\n\t\t\t\tDatum right)\n{\n\treturn (RelationInvokeStrategy(rel, &BTEvaluationData, attno, strat,\n\t\t\t\t\t\t\t\t left, right));\n}\n\n#endif", "parent": null, "children": [203, 204, 205, 237], "start_point": {"row": 124, "column": 0}, "end_point": {"row": 137, "column": 6}}, {"id": 203, "type": "#ifdef", "text": "#ifdef", "parent": 202, "children": [], "start_point": {"row": 124, "column": 0}, "end_point": {"row": 124, "column": 6}}, {"id": 204, "type": "identifier", "text": "NOT_USED", "parent": 202, "children": [], "start_point": {"row": 124, "column": 7}, "end_point": {"row": 124, "column": 15}}, {"id": 205, "type": "function_definition", "text": "bool\n_bt_invokestrat(Relation rel,\n\t\t\t\tAttrNumber attno,\n\t\t\t\tStrategyNumber strat,\n\t\t\t\tDatum left,\n\t\t\t\tDatum right)\n{\n\treturn (RelationInvokeStrategy(rel, &BTEvaluationData, attno, strat,\n\t\t\t\t\t\t\t\t left, right));\n}", "parent": 202, "children": [206, 207], "start_point": {"row": 126, "column": 0}, "end_point": {"row": 135, "column": 1}}, {"id": 206, "type": "primitive_type", "text": "bool", "parent": 205, "children": [], "start_point": {"row": 126, "column": 0}, "end_point": {"row": 126, "column": 4}}, {"id": 207, "type": "function_declarator", "text": "_bt_invokestrat(Relation rel,\n\t\t\t\tAttrNumber attno,\n\t\t\t\tStrategyNumber strat,\n\t\t\t\tDatum left,\n\t\t\t\tDatum right)", "parent": 205, "children": [208, 209], "start_point": {"row": 127, "column": 0}, "end_point": {"row": 131, "column": 16}}, {"id": 208, "type": "identifier", "text": "_bt_invokestrat", "parent": 207, "children": [], "start_point": {"row": 127, "column": 0}, "end_point": {"row": 127, "column": 15}}, {"id": 209, "type": "parameter_list", "text": "(Relation rel,\n\t\t\t\tAttrNumber attno,\n\t\t\t\tStrategyNumber strat,\n\t\t\t\tDatum left,\n\t\t\t\tDatum right)", "parent": 207, "children": [210, 213, 216, 219, 222], "start_point": {"row": 127, "column": 15}, "end_point": {"row": 131, "column": 16}}, {"id": 210, "type": "parameter_declaration", "text": "Relation rel", "parent": 209, "children": [211, 212], "start_point": {"row": 127, "column": 16}, "end_point": {"row": 127, "column": 28}}, {"id": 211, "type": "type_identifier", "text": "Relation", "parent": 210, "children": [], "start_point": {"row": 127, "column": 16}, "end_point": {"row": 127, "column": 24}}, {"id": 212, "type": "identifier", "text": "rel", "parent": 210, "children": [], "start_point": {"row": 127, "column": 25}, "end_point": {"row": 127, "column": 28}}, {"id": 213, "type": "parameter_declaration", "text": "AttrNumber attno", "parent": 209, "children": [214, 215], "start_point": {"row": 128, "column": 4}, "end_point": {"row": 128, "column": 20}}, {"id": 214, "type": "type_identifier", "text": "AttrNumber", "parent": 213, "children": [], "start_point": {"row": 128, "column": 4}, "end_point": {"row": 128, "column": 14}}, {"id": 215, "type": "identifier", "text": "attno", "parent": 213, "children": [], "start_point": {"row": 128, "column": 15}, "end_point": {"row": 128, "column": 20}}, {"id": 216, "type": "parameter_declaration", "text": "StrategyNumber strat", "parent": 209, "children": [217, 218], "start_point": {"row": 129, "column": 4}, "end_point": {"row": 129, "column": 24}}, {"id": 217, "type": "type_identifier", "text": "StrategyNumber", "parent": 216, "children": [], "start_point": {"row": 129, "column": 4}, "end_point": {"row": 129, "column": 18}}, {"id": 218, "type": "identifier", "text": "strat", "parent": 216, "children": [], "start_point": {"row": 129, "column": 19}, "end_point": {"row": 129, "column": 24}}, {"id": 219, "type": "parameter_declaration", "text": "Datum left", "parent": 209, "children": [220, 221], "start_point": {"row": 130, "column": 4}, "end_point": {"row": 130, "column": 14}}, {"id": 220, "type": "type_identifier", "text": "Datum", "parent": 219, "children": [], "start_point": {"row": 130, "column": 4}, "end_point": {"row": 130, "column": 9}}, {"id": 221, "type": "identifier", "text": "left", "parent": 219, "children": [], "start_point": {"row": 130, "column": 10}, "end_point": {"row": 130, "column": 14}}, {"id": 222, "type": "parameter_declaration", "text": "Datum right", "parent": 209, "children": [223, 224], "start_point": {"row": 131, "column": 4}, "end_point": {"row": 131, "column": 15}}, {"id": 223, "type": "type_identifier", "text": "Datum", "parent": 222, "children": [], "start_point": {"row": 131, "column": 4}, "end_point": {"row": 131, "column": 9}}, {"id": 224, "type": "identifier", "text": "right", "parent": 222, "children": [], "start_point": {"row": 131, "column": 10}, "end_point": {"row": 131, "column": 15}}, {"id": 225, "type": "return_statement", "text": "return (RelationInvokeStrategy(rel, &BTEvaluationData, attno, strat,\n\t\t\t\t\t\t\t\t left, right));", "parent": 205, "children": [226], "start_point": {"row": 133, "column": 1}, "end_point": {"row": 134, "column": 25}}, {"id": 226, "type": "parenthesized_expression", "text": "(RelationInvokeStrategy(rel, &BTEvaluationData, attno, strat,\n\t\t\t\t\t\t\t\t left, right))", "parent": 225, "children": [227], "start_point": {"row": 133, "column": 8}, "end_point": {"row": 134, "column": 24}}, {"id": 227, "type": "call_expression", "text": "RelationInvokeStrategy(rel, &BTEvaluationData, attno, strat,\n\t\t\t\t\t\t\t\t left, right)", "parent": 226, "children": [228, 229], "start_point": {"row": 133, "column": 9}, "end_point": {"row": 134, "column": 23}}, {"id": 228, "type": "identifier", "text": "RelationInvokeStrategy", "parent": 227, "children": [], "start_point": {"row": 133, "column": 9}, "end_point": {"row": 133, "column": 31}}, {"id": 229, "type": "argument_list", "text": "(rel, &BTEvaluationData, attno, strat,\n\t\t\t\t\t\t\t\t left, right)", "parent": 227, "children": [230, 231, 233, 234, 235, 236], "start_point": {"row": 133, "column": 31}, "end_point": {"row": 134, "column": 23}}, {"id": 230, "type": "identifier", "text": "rel", "parent": 229, "children": [], "start_point": {"row": 133, "column": 32}, "end_point": {"row": 133, "column": 35}}, {"id": 231, "type": "pointer_expression", "text": "&BTEvaluationData", "parent": 229, "children": [232], "start_point": {"row": 133, "column": 37}, "end_point": {"row": 133, "column": 54}}, {"id": 232, "type": "identifier", "text": "BTEvaluationData", "parent": 231, "children": [], "start_point": {"row": 133, "column": 38}, "end_point": {"row": 133, "column": 54}}, {"id": 233, "type": "identifier", "text": "attno", "parent": 229, "children": [], "start_point": {"row": 133, "column": 56}, "end_point": {"row": 133, "column": 61}}, {"id": 234, "type": "identifier", "text": "strat", "parent": 229, "children": [], "start_point": {"row": 133, "column": 63}, "end_point": {"row": 133, "column": 68}}, {"id": 235, "type": "identifier", "text": "left", "parent": 229, "children": [], "start_point": {"row": 134, "column": 11}, "end_point": {"row": 134, "column": 15}}, {"id": 236, "type": "identifier", "text": "right", "parent": 229, "children": [], "start_point": {"row": 134, "column": 17}, "end_point": {"row": 134, "column": 22}}, {"id": 237, "type": "#endif", "text": "#endif", "parent": 202, "children": [], "start_point": {"row": 137, "column": 0}, "end_point": {"row": 137, "column": 6}}]}, "node_categories": {"declarations": {"functions": [165, 167, 205, 207], "variables": [9, 22, 35, 48, 62, 74, 86, 100, 125, 145, 170, 173, 176, 179, 210, 213, 216, 219, 222], "classes": [], "imports": [0, 1, 3, 4, 6, 7], "modules": [], "enums": []}, "statements": {"expressions": [59, 97, 107, 111, 115, 119, 137, 152, 156, 160, 185, 190, 193, 196, 226, 227, 231], "assignments": [182], "loops": [], "conditionals": [10, 13, 14, 17, 18, 19, 20, 21, 23, 26, 27, 30, 31, 32, 33, 34, 36, 39, 40, 43, 44, 45, 46, 47, 49, 52, 56, 57, 58, 60, 61, 63, 66, 70, 72, 73, 75, 78, 82, 84, 85, 87, 90, 94, 95, 96, 98, 99, 101, 104, 109, 110, 113, 114, 117, 118, 121, 122, 126, 129, 130, 139, 140, 146, 148, 151, 154, 155, 158, 159, 162, 163, 164, 166, 168, 171, 172, 174, 175, 177, 178, 180, 181, 183, 186, 188, 189, 191, 192, 194, 197, 199, 201, 202, 203, 204, 208, 211, 212, 214, 215, 217, 218, 220, 221, 223, 224, 228, 230, 232, 233, 234, 235, 236, 237], "returns": [200, 225], "exceptions": []}, "expressions": {"calls": [], "literals": [2, 5, 8, 55, 69, 71, 81, 83, 93], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [{"node_id": 165, "universal_type": "function", "name": "unknown", "text_snippet": "StrategyNumber\n_bt_getstrat(Relation rel,\n\t\t\t AttrNumber attno,\n\t\t\t RegProcedure proc)\n{\n\tStrategyNu"}, {"node_id": 167, "universal_type": "function", "name": "unknown", "text_snippet": "_bt_getstrat(Relation rel,\n\t\t\t AttrNumber attno,\n\t\t\t RegProcedure proc)"}, {"node_id": 205, "universal_type": "function", "name": "_bt_invokestrat", "text_snippet": "bool\n_bt_invokestrat(Relation rel,\n\t\t\t\tAttrNumber attno,\n\t\t\t\tStrategyNumber strat,\n\t\t\t\tDatum left,\n\t"}, {"node_id": 207, "universal_type": "function", "name": "unknown", "text_snippet": "_bt_invokestrat(Relation rel,\n\t\t\t\tAttrNumber attno,\n\t\t\t\tStrategyNumber strat,\n\t\t\t\tDatum left,\n\t\t\t\tDa"}], "class_declarations": [], "import_statements": [{"node_id": 0, "text": "#include \"postgres.h\"\n"}, {"node_id": 1, "text": "#include"}, {"node_id": 3, "text": "#include \"access/istrat.h\"\n"}, {"node_id": 4, "text": "#include"}, {"node_id": 6, "text": "#include \"access/nbtree.h\"\n"}, {"node_id": 7, "text": "#include"}]}, "original_source_code": "/*-------------------------------------------------------------------------\n *\n * nbtstrat.c\n *\t Strategy map entries for the btree indexed access method\n *\n * Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group\n * Portions Copyright (c) 1994, Regents of the University of California\n *\n *\n * IDENTIFICATION\n *\t $Header: /home/hjcvs/OB-CCM-1.0/postgresql/src/backend/access/nbtree/nbtstrat.c,v 1.2 2004/07/05 08:55:22 SuLiang Exp $\n *\n *-------------------------------------------------------------------------\n */\n\n#include \"postgres.h\"\n\n#include \"access/istrat.h\"\n#include \"access/nbtree.h\"\n\n/*\n * Note:\n *\t\tStrategyNegate, StrategyCommute, and StrategyNegateCommute\n *\t\tassume <, <=, ==, >=, > ordering.\n */\nstatic StrategyNumber BTNegate[BTMaxStrategyNumber] = {\n\tBTGreaterEqualStrategyNumber,\n\tBTGreaterStrategyNumber,\n\tInvalidStrategy,\n\tBTLessStrategyNumber,\n\tBTLessEqualStrategyNumber\n};\n\nstatic StrategyNumber BTCommute[BTMaxStrategyNumber] = {\n\tBTGreaterStrategyNumber,\n\tBTGreaterEqualStrategyNumber,\n\tInvalidStrategy,\n\tBTLessEqualStrategyNumber,\n\tBTLessStrategyNumber\n};\n\nstatic StrategyNumber BTNegateCommute[BTMaxStrategyNumber] = {\n\tBTLessEqualStrategyNumber,\n\tBTLessStrategyNumber,\n\tInvalidStrategy,\n\tBTGreaterStrategyNumber,\n\tBTGreaterEqualStrategyNumber\n};\n\nstatic uint16 BTLessTermData[] = {\t\t/* XXX type clash */\n\t2,\n\tBTLessStrategyNumber,\n\tSK_NEGATE,\n\tBTLessStrategyNumber,\n\tSK_NEGATE | SK_COMMUTE\n};\n\nstatic uint16 BTLessEqualTermData[] = { /* XXX type clash */\n\t2,\n\tBTLessEqualStrategyNumber,\n\t0x0,\n\tBTLessEqualStrategyNumber,\n\tSK_COMMUTE\n};\n\nstatic uint16 BTGreaterEqualTermData[] = {\t\t/* XXX type clash */\n\t2,\n\tBTGreaterEqualStrategyNumber,\n\t0x0,\n\tBTGreaterEqualStrategyNumber,\n\tSK_COMMUTE\n};\n\nstatic uint16 BTGreaterTermData[] = {\t/* XXX type clash */\n\t2,\n\tBTGreaterStrategyNumber,\n\tSK_NEGATE,\n\tBTGreaterStrategyNumber,\n\tSK_NEGATE | SK_COMMUTE\n};\n\nstatic StrategyTerm BTEqualExpressionData[] = {\n\t(StrategyTerm) BTLessTermData,\t\t/* XXX */\n\t(StrategyTerm) BTLessEqualTermData, /* XXX */\n\t(StrategyTerm) BTGreaterEqualTermData,\t\t/* XXX */\n\t(StrategyTerm) BTGreaterTermData,\t/* XXX */\n\tNULL\n};\n\nstatic StrategyExpression BTEvaluationExpressions[BTMaxStrategyNumber] = {\n\tNULL,\n\tNULL,\n\t(StrategyExpression) BTEqualExpressionData,\n\tNULL,\n\tNULL\n};\n\nstatic StrategyEvaluationData BTEvaluationData = {\n\tBTMaxStrategyNumber,\n\t(StrategyTransformMap) BTNegate,\n\t(StrategyTransformMap) BTCommute,\n\t(StrategyTransformMap) BTNegateCommute,\n\tBTEvaluationExpressions\n};\n\n/* ----------------------------------------------------------------\n *\t\tRelationGetBTStrategy\n * ----------------------------------------------------------------\n */\n\nStrategyNumber\n_bt_getstrat(Relation rel,\n\t\t\t AttrNumber attno,\n\t\t\t RegProcedure proc)\n{\n\tStrategyNumber strat;\n\n\tstrat = RelationGetStrategy(rel, attno, &BTEvaluationData, proc);\n\n\tAssert(StrategyNumberIsValid(strat));\n\n\treturn strat;\n}\n\n#ifdef NOT_USED\n\nbool\n_bt_invokestrat(Relation rel,\n\t\t\t\tAttrNumber attno,\n\t\t\t\tStrategyNumber strat,\n\t\t\t\tDatum left,\n\t\t\t\tDatum right)\n{\n\treturn (RelationInvokeStrategy(rel, &BTEvaluationData, attno, strat,\n\t\t\t\t\t\t\t\t left, right));\n}\n\n#endif\n"}
80,051
c
#include <pthread.h> #include <stdio.h> #include <unistd.h> #include <thread_pool.h> pthread_key_t key; void tls_cleanup(void *args) { UNUSED_PARAM(args); fprintf(stderr, "tls_cleanup()\n"); } void *func(void *args) { UNUSED_PARAM(args); int i = 0; int j = 0; pthread_setspecific(key, &i); usleep(1000 * 1000); printf("func(): %p\n", pthread_getspecific(key)); pthread_setspecific(key, &j); usleep(1000 * 1000); printf("func(): %p\n", pthread_getspecific(key)); return NULL; } void _test() { pthread_t t; pthread_key_create(&key, tls_cleanup); pthread_create(&t, NULL, func, NULL); pthread_join(t, NULL); } int main() { _test(); return 0; }
16.54
41
(translation_unit) "#include <pthread.h>\n#include <stdio.h>\n#include <unistd.h>\n#include <thread_pool.h>\n\n\npthread_key_t key;\n\n\nvoid tls_cleanup(void *args)\n{\n UNUSED_PARAM(args);\n\n fprintf(stderr, "tls_cleanup()\n");\n}\n\n\nvoid *func(void *args)\n{\n UNUSED_PARAM(args);\n\n int i = 0;\n int j = 0;\n\n pthread_setspecific(key, &i);\n\n usleep(1000 * 1000);\n\n printf("func(): %p\n", pthread_getspecific(key));\n\n pthread_setspecific(key, &j);\n\n usleep(1000 * 1000);\n\n\n printf("func(): %p\n", pthread_getspecific(key));\n\n return NULL;\n}\n\n\nvoid _test()\n{\n pthread_t t;\n\n pthread_key_create(&key, tls_cleanup);\n pthread_create(&t, NULL, func, NULL);\n pthread_join(t, NULL);\n}\n\n\nint main()\n{\n _test();\n\n return 0;\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 <unistd.h>\n" (#include) "#include" (system_lib_string) "<unistd.h>" (preproc_include) "#include <thread_pool.h>\n" (#include) "#include" (system_lib_string) "<thread_pool.h>" (declaration) "pthread_key_t key;" (type_identifier) "pthread_key_t" (identifier) "key" (;) ";" (function_definition) "void tls_cleanup(void *args)\n{\n UNUSED_PARAM(args);\n\n fprintf(stderr, "tls_cleanup()\n");\n}" (primitive_type) "void" (function_declarator) "tls_cleanup(void *args)" (identifier) "tls_cleanup" (parameter_list) "(void *args)" (() "(" (parameter_declaration) "void *args" (primitive_type) "void" (pointer_declarator) "*args" (*) "*" (identifier) "args" ()) ")" (compound_statement) "{\n UNUSED_PARAM(args);\n\n fprintf(stderr, "tls_cleanup()\n");\n}" ({) "{" (expression_statement) "UNUSED_PARAM(args);" (call_expression) "UNUSED_PARAM(args)" (identifier) "UNUSED_PARAM" (argument_list) "(args)" (() "(" (identifier) "args" ()) ")" (;) ";" (expression_statement) "fprintf(stderr, "tls_cleanup()\n");" (call_expression) "fprintf(stderr, "tls_cleanup()\n")" (identifier) "fprintf" (argument_list) "(stderr, "tls_cleanup()\n")" (() "(" (identifier) "stderr" (,) "," (string_literal) ""tls_cleanup()\n"" (") """ (string_content) "tls_cleanup()" (escape_sequence) "\n" (") """ ()) ")" (;) ";" (}) "}" (function_definition) "void *func(void *args)\n{\n UNUSED_PARAM(args);\n\n int i = 0;\n int j = 0;\n\n pthread_setspecific(key, &i);\n\n usleep(1000 * 1000);\n\n printf("func(): %p\n", pthread_getspecific(key));\n\n pthread_setspecific(key, &j);\n\n usleep(1000 * 1000);\n\n\n printf("func(): %p\n", pthread_getspecific(key));\n\n return NULL;\n}" (primitive_type) "void" (pointer_declarator) "*func(void *args)" (*) "*" (function_declarator) "func(void *args)" (identifier) "func" (parameter_list) "(void *args)" (() "(" (parameter_declaration) "void *args" (primitive_type) "void" (pointer_declarator) "*args" (*) "*" (identifier) "args" ()) ")" (compound_statement) "{\n UNUSED_PARAM(args);\n\n int i = 0;\n int j = 0;\n\n pthread_setspecific(key, &i);\n\n usleep(1000 * 1000);\n\n printf("func(): %p\n", pthread_getspecific(key));\n\n pthread_setspecific(key, &j);\n\n usleep(1000 * 1000);\n\n\n printf("func(): %p\n", pthread_getspecific(key));\n\n return NULL;\n}" ({) "{" (expression_statement) "UNUSED_PARAM(args);" (call_expression) "UNUSED_PARAM(args)" (identifier) "UNUSED_PARAM" (argument_list) "(args)" (() "(" (identifier) "args" ()) ")" (;) ";" (declaration) "int i = 0;" (primitive_type) "int" (init_declarator) "i = 0" (identifier) "i" (=) "=" (number_literal) "0" (;) ";" (declaration) "int j = 0;" (primitive_type) "int" (init_declarator) "j = 0" (identifier) "j" (=) "=" (number_literal) "0" (;) ";" (expression_statement) "pthread_setspecific(key, &i);" (call_expression) "pthread_setspecific(key, &i)" (identifier) "pthread_setspecific" (argument_list) "(key, &i)" (() "(" (identifier) "key" (,) "," (pointer_expression) "&i" (&) "&" (identifier) "i" ()) ")" (;) ";" (expression_statement) "usleep(1000 * 1000);" (call_expression) "usleep(1000 * 1000)" (identifier) "usleep" (argument_list) "(1000 * 1000)" (() "(" (binary_expression) "1000 * 1000" (number_literal) "1000" (*) "*" (number_literal) "1000" ()) ")" (;) ";" (expression_statement) "printf("func(): %p\n", pthread_getspecific(key));" (call_expression) "printf("func(): %p\n", pthread_getspecific(key))" (identifier) "printf" (argument_list) "("func(): %p\n", pthread_getspecific(key))" (() "(" (string_literal) ""func(): %p\n"" (") """ (string_content) "func(): %p" (escape_sequence) "\n" (") """ (,) "," (call_expression) "pthread_getspecific(key)" (identifier) "pthread_getspecific" (argument_list) "(key)" (() "(" (identifier) "key" ()) ")" ()) ")" (;) ";" (expression_statement) "pthread_setspecific(key, &j);" (call_expression) "pthread_setspecific(key, &j)" (identifier) "pthread_setspecific" (argument_list) "(key, &j)" (() "(" (identifier) "key" (,) "," (pointer_expression) "&j" (&) "&" (identifier) "j" ()) ")" (;) ";" (expression_statement) "usleep(1000 * 1000);" (call_expression) "usleep(1000 * 1000)" (identifier) "usleep" (argument_list) "(1000 * 1000)" (() "(" (binary_expression) "1000 * 1000" (number_literal) "1000" (*) "*" (number_literal) "1000" ()) ")" (;) ";" (expression_statement) "printf("func(): %p\n", pthread_getspecific(key));" (call_expression) "printf("func(): %p\n", pthread_getspecific(key))" (identifier) "printf" (argument_list) "("func(): %p\n", pthread_getspecific(key))" (() "(" (string_literal) ""func(): %p\n"" (") """ (string_content) "func(): %p" (escape_sequence) "\n" (") """ (,) "," (call_expression) "pthread_getspecific(key)" (identifier) "pthread_getspecific" (argument_list) "(key)" (() "(" (identifier) "key" ()) ")" ()) ")" (;) ";" (return_statement) "return NULL;" (return) "return" (null) "NULL" (NULL) "NULL" (;) ";" (}) "}" (function_definition) "void _test()\n{\n pthread_t t;\n\n pthread_key_create(&key, tls_cleanup);\n pthread_create(&t, NULL, func, NULL);\n pthread_join(t, NULL);\n}" (primitive_type) "void" (function_declarator) "_test()" (identifier) "_test" (parameter_list) "()" (() "(" ()) ")" (compound_statement) "{\n pthread_t t;\n\n pthread_key_create(&key, tls_cleanup);\n pthread_create(&t, NULL, func, NULL);\n pthread_join(t, NULL);\n}" ({) "{" (declaration) "pthread_t t;" (type_identifier) "pthread_t" (identifier) "t" (;) ";" (expression_statement) "pthread_key_create(&key, tls_cleanup);" (call_expression) "pthread_key_create(&key, tls_cleanup)" (identifier) "pthread_key_create" (argument_list) "(&key, tls_cleanup)" (() "(" (pointer_expression) "&key" (&) "&" (identifier) "key" (,) "," (identifier) "tls_cleanup" ()) ")" (;) ";" (expression_statement) "pthread_create(&t, NULL, func, NULL);" (call_expression) "pthread_create(&t, NULL, func, NULL)" (identifier) "pthread_create" (argument_list) "(&t, NULL, func, NULL)" (() "(" (pointer_expression) "&t" (&) "&" (identifier) "t" (,) "," (null) "NULL" (NULL) "NULL" (,) "," (identifier) "func" (,) "," (null) "NULL" (NULL) "NULL" ()) ")" (;) ";" (expression_statement) "pthread_join(t, NULL);" (call_expression) "pthread_join(t, NULL)" (identifier) "pthread_join" (argument_list) "(t, NULL)" (() "(" (identifier) "t" (,) "," (null) "NULL" (NULL) "NULL" ()) ")" (;) ";" (}) "}" (function_definition) "int main()\n{\n _test();\n\n return 0;\n}" (primitive_type) "int" (function_declarator) "main()" (identifier) "main" (parameter_list) "()" (() "(" ()) ")" (compound_statement) "{\n _test();\n\n return 0;\n}" ({) "{" (expression_statement) "_test();" (call_expression) "_test()" (identifier) "_test" (argument_list) "()" (() "(" ()) ")" (;) ";" (return_statement) "return 0;" (return) "return" (number_literal) "0" (;) ";" (}) "}"
258
0
{"language": "c", "success": true, "metadata": {"lines": 41, "avg_line_length": 16.54, "nodes": 150, "errors": 0, "source_hash": "9c32db8b9b8dedcea92c7d364228f7fb2628bad7317226978d04fab4bbd66fd7", "categorized_nodes": 100}, "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 <unistd.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": "<unistd.h>", "parent": 6, "children": [], "start_point": {"row": 2, "column": 9}, "end_point": {"row": 2, "column": 19}}, {"id": 9, "type": "preproc_include", "text": "#include <thread_pool.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": "<thread_pool.h>", "parent": 9, "children": [], "start_point": {"row": 3, "column": 9}, "end_point": {"row": 3, "column": 24}}, {"id": 12, "type": "declaration", "text": "pthread_key_t key;", "parent": null, "children": [13, 14], "start_point": {"row": 6, "column": 0}, "end_point": {"row": 6, "column": 18}}, {"id": 13, "type": "type_identifier", "text": "pthread_key_t", "parent": 12, "children": [], "start_point": {"row": 6, "column": 0}, "end_point": {"row": 6, "column": 13}}, {"id": 14, "type": "identifier", "text": "key", "parent": 12, "children": [], "start_point": {"row": 6, "column": 14}, "end_point": {"row": 6, "column": 17}}, {"id": 15, "type": "function_definition", "text": "void tls_cleanup(void *args)\n{\n UNUSED_PARAM(args);\n\n fprintf(stderr, \"tls_cleanup()\\n\");\n}", "parent": null, "children": [16, 17], "start_point": {"row": 9, "column": 0}, "end_point": {"row": 14, "column": 1}}, {"id": 16, "type": "primitive_type", "text": "void", "parent": 15, "children": [], "start_point": {"row": 9, "column": 0}, "end_point": {"row": 9, "column": 4}}, {"id": 17, "type": "function_declarator", "text": "tls_cleanup(void *args)", "parent": 15, "children": [18, 19], "start_point": {"row": 9, "column": 5}, "end_point": {"row": 9, "column": 28}}, {"id": 18, "type": "identifier", "text": "tls_cleanup", "parent": 17, "children": [], "start_point": {"row": 9, "column": 5}, "end_point": {"row": 9, "column": 16}}, {"id": 19, "type": "parameter_list", "text": "(void *args)", "parent": 17, "children": [20], "start_point": {"row": 9, "column": 16}, "end_point": {"row": 9, "column": 28}}, {"id": 20, "type": "parameter_declaration", "text": "void *args", "parent": 19, "children": [21, 22], "start_point": {"row": 9, "column": 17}, "end_point": {"row": 9, "column": 27}}, {"id": 21, "type": "primitive_type", "text": "void", "parent": 20, "children": [], "start_point": {"row": 9, "column": 17}, "end_point": {"row": 9, "column": 21}}, {"id": 22, "type": "pointer_declarator", "text": "*args", "parent": 20, "children": [23, 24], "start_point": {"row": 9, "column": 22}, "end_point": {"row": 9, "column": 27}}, {"id": 23, "type": "*", "text": "*", "parent": 22, "children": [], "start_point": {"row": 9, "column": 22}, "end_point": {"row": 9, "column": 23}}, {"id": 24, "type": "identifier", "text": "args", "parent": 22, "children": [], "start_point": {"row": 9, "column": 23}, "end_point": {"row": 9, "column": 27}}, {"id": 25, "type": "call_expression", "text": "UNUSED_PARAM(args)", "parent": 15, "children": [26, 27], "start_point": {"row": 11, "column": 4}, "end_point": {"row": 11, "column": 22}}, {"id": 26, "type": "identifier", "text": "UNUSED_PARAM", "parent": 25, "children": [], "start_point": {"row": 11, "column": 4}, "end_point": {"row": 11, "column": 16}}, {"id": 27, "type": "argument_list", "text": "(args)", "parent": 25, "children": [28], "start_point": {"row": 11, "column": 16}, "end_point": {"row": 11, "column": 22}}, {"id": 28, "type": "identifier", "text": "args", "parent": 27, "children": [], "start_point": {"row": 11, "column": 17}, "end_point": {"row": 11, "column": 21}}, {"id": 29, "type": "call_expression", "text": "fprintf(stderr, \"tls_cleanup()\\n\")", "parent": 15, "children": [30, 31], "start_point": {"row": 13, "column": 4}, "end_point": {"row": 13, "column": 38}}, {"id": 30, "type": "identifier", "text": "fprintf", "parent": 29, "children": [], "start_point": {"row": 13, "column": 4}, "end_point": {"row": 13, "column": 11}}, {"id": 31, "type": "argument_list", "text": "(stderr, \"tls_cleanup()\\n\")", "parent": 29, "children": [32, 33], "start_point": {"row": 13, "column": 11}, "end_point": {"row": 13, "column": 38}}, {"id": 32, "type": "identifier", "text": "stderr", "parent": 31, "children": [], "start_point": {"row": 13, "column": 12}, "end_point": {"row": 13, "column": 18}}, {"id": 33, "type": "string_literal", "text": "\"tls_cleanup()\\n\"", "parent": 31, "children": [34], "start_point": {"row": 13, "column": 20}, "end_point": {"row": 13, "column": 37}}, {"id": 34, "type": "escape_sequence", "text": "\\n", "parent": 33, "children": [], "start_point": {"row": 13, "column": 34}, "end_point": {"row": 13, "column": 36}}, {"id": 35, "type": "function_definition", "text": "void *func(void *args)\n{\n UNUSED_PARAM(args);\n\n int i = 0;\n int j = 0;\n\n pthread_setspecific(key, &i);\n\n usleep(1000 * 1000);\n\n printf(\"func(): %p\\n\", pthread_getspecific(key));\n\n pthread_setspecific(key, &j);\n\n usleep(1000 * 1000);\n\n\n printf(\"func(): %p\\n\", pthread_getspecific(key));\n\n return NULL;\n}", "parent": null, "children": [36, 37], "start_point": {"row": 17, "column": 0}, "end_point": {"row": 38, "column": 1}}, {"id": 36, "type": "primitive_type", "text": "void", "parent": 35, "children": [], "start_point": {"row": 17, "column": 0}, "end_point": {"row": 17, "column": 4}}, {"id": 37, "type": "pointer_declarator", "text": "*func(void *args)", "parent": 35, "children": [38, 39], "start_point": {"row": 17, "column": 5}, "end_point": {"row": 17, "column": 22}}, {"id": 38, "type": "*", "text": "*", "parent": 37, "children": [], "start_point": {"row": 17, "column": 5}, "end_point": {"row": 17, "column": 6}}, {"id": 39, "type": "function_declarator", "text": "func(void *args)", "parent": 37, "children": [40, 41], "start_point": {"row": 17, "column": 6}, "end_point": {"row": 17, "column": 22}}, {"id": 40, "type": "identifier", "text": "func", "parent": 39, "children": [], "start_point": {"row": 17, "column": 6}, "end_point": {"row": 17, "column": 10}}, {"id": 41, "type": "parameter_list", "text": "(void *args)", "parent": 39, "children": [42], "start_point": {"row": 17, "column": 10}, "end_point": {"row": 17, "column": 22}}, {"id": 42, "type": "parameter_declaration", "text": "void *args", "parent": 41, "children": [43, 44], "start_point": {"row": 17, "column": 11}, "end_point": {"row": 17, "column": 21}}, {"id": 43, "type": "primitive_type", "text": "void", "parent": 42, "children": [], "start_point": {"row": 17, "column": 11}, "end_point": {"row": 17, "column": 15}}, {"id": 44, "type": "pointer_declarator", "text": "*args", "parent": 42, "children": [45, 46], "start_point": {"row": 17, "column": 16}, "end_point": {"row": 17, "column": 21}}, {"id": 45, "type": "*", "text": "*", "parent": 44, "children": [], "start_point": {"row": 17, "column": 16}, "end_point": {"row": 17, "column": 17}}, {"id": 46, "type": "identifier", "text": "args", "parent": 44, "children": [], "start_point": {"row": 17, "column": 17}, "end_point": {"row": 17, "column": 21}}, {"id": 47, "type": "call_expression", "text": "UNUSED_PARAM(args)", "parent": 35, "children": [48, 49], "start_point": {"row": 19, "column": 4}, "end_point": {"row": 19, "column": 22}}, {"id": 48, "type": "identifier", "text": "UNUSED_PARAM", "parent": 47, "children": [], "start_point": {"row": 19, "column": 4}, "end_point": {"row": 19, "column": 16}}, {"id": 49, "type": "argument_list", "text": "(args)", "parent": 47, "children": [50], "start_point": {"row": 19, "column": 16}, "end_point": {"row": 19, "column": 22}}, {"id": 50, "type": "identifier", "text": "args", "parent": 49, "children": [], "start_point": {"row": 19, "column": 17}, "end_point": {"row": 19, "column": 21}}, {"id": 51, "type": "declaration", "text": "int i = 0;", "parent": 35, "children": [52, 53], "start_point": {"row": 21, "column": 4}, "end_point": {"row": 21, "column": 14}}, {"id": 52, "type": "primitive_type", "text": "int", "parent": 51, "children": [], "start_point": {"row": 21, "column": 4}, "end_point": {"row": 21, "column": 7}}, {"id": 53, "type": "init_declarator", "text": "i = 0", "parent": 51, "children": [54, 55, 56], "start_point": {"row": 21, "column": 8}, "end_point": {"row": 21, "column": 13}}, {"id": 54, "type": "identifier", "text": "i", "parent": 53, "children": [], "start_point": {"row": 21, "column": 8}, "end_point": {"row": 21, "column": 9}}, {"id": 55, "type": "=", "text": "=", "parent": 53, "children": [], "start_point": {"row": 21, "column": 10}, "end_point": {"row": 21, "column": 11}}, {"id": 56, "type": "number_literal", "text": "0", "parent": 53, "children": [], "start_point": {"row": 21, "column": 12}, "end_point": {"row": 21, "column": 13}}, {"id": 57, "type": "declaration", "text": "int j = 0;", "parent": 35, "children": [58, 59], "start_point": {"row": 22, "column": 4}, "end_point": {"row": 22, "column": 14}}, {"id": 58, "type": "primitive_type", "text": "int", "parent": 57, "children": [], "start_point": {"row": 22, "column": 4}, "end_point": {"row": 22, "column": 7}}, {"id": 59, "type": "init_declarator", "text": "j = 0", "parent": 57, "children": [60, 61, 62], "start_point": {"row": 22, "column": 8}, "end_point": {"row": 22, "column": 13}}, {"id": 60, "type": "identifier", "text": "j", "parent": 59, "children": [], "start_point": {"row": 22, "column": 8}, "end_point": {"row": 22, "column": 9}}, {"id": 61, "type": "=", "text": "=", "parent": 59, "children": [], "start_point": {"row": 22, "column": 10}, "end_point": {"row": 22, "column": 11}}, {"id": 62, "type": "number_literal", "text": "0", "parent": 59, "children": [], "start_point": {"row": 22, "column": 12}, "end_point": {"row": 22, "column": 13}}, {"id": 63, "type": "call_expression", "text": "pthread_setspecific(key, &i)", "parent": 35, "children": [64, 65], "start_point": {"row": 24, "column": 4}, "end_point": {"row": 24, "column": 32}}, {"id": 64, "type": "identifier", "text": "pthread_setspecific", "parent": 63, "children": [], "start_point": {"row": 24, "column": 4}, "end_point": {"row": 24, "column": 23}}, {"id": 65, "type": "argument_list", "text": "(key, &i)", "parent": 63, "children": [66, 67], "start_point": {"row": 24, "column": 23}, "end_point": {"row": 24, "column": 32}}, {"id": 66, "type": "identifier", "text": "key", "parent": 65, "children": [], "start_point": {"row": 24, "column": 24}, "end_point": {"row": 24, "column": 27}}, {"id": 67, "type": "pointer_expression", "text": "&i", "parent": 65, "children": [68], "start_point": {"row": 24, "column": 29}, "end_point": {"row": 24, "column": 31}}, {"id": 68, "type": "identifier", "text": "i", "parent": 67, "children": [], "start_point": {"row": 24, "column": 30}, "end_point": {"row": 24, "column": 31}}, {"id": 69, "type": "call_expression", "text": "usleep(1000 * 1000)", "parent": 35, "children": [70, 71], "start_point": {"row": 26, "column": 4}, "end_point": {"row": 26, "column": 23}}, {"id": 70, "type": "identifier", "text": "usleep", "parent": 69, "children": [], "start_point": {"row": 26, "column": 4}, "end_point": {"row": 26, "column": 10}}, {"id": 71, "type": "argument_list", "text": "(1000 * 1000)", "parent": 69, "children": [72], "start_point": {"row": 26, "column": 10}, "end_point": {"row": 26, "column": 23}}, {"id": 72, "type": "binary_expression", "text": "1000 * 1000", "parent": 71, "children": [73, 74, 75], "start_point": {"row": 26, "column": 11}, "end_point": {"row": 26, "column": 22}}, {"id": 73, "type": "number_literal", "text": "1000", "parent": 72, "children": [], "start_point": {"row": 26, "column": 11}, "end_point": {"row": 26, "column": 15}}, {"id": 74, "type": "*", "text": "*", "parent": 72, "children": [], "start_point": {"row": 26, "column": 16}, "end_point": {"row": 26, "column": 17}}, {"id": 75, "type": "number_literal", "text": "1000", "parent": 72, "children": [], "start_point": {"row": 26, "column": 18}, "end_point": {"row": 26, "column": 22}}, {"id": 76, "type": "call_expression", "text": "printf(\"func(): %p\\n\", pthread_getspecific(key))", "parent": 35, "children": [77, 78], "start_point": {"row": 28, "column": 4}, "end_point": {"row": 28, "column": 52}}, {"id": 77, "type": "identifier", "text": "printf", "parent": 76, "children": [], "start_point": {"row": 28, "column": 4}, "end_point": {"row": 28, "column": 10}}, {"id": 78, "type": "argument_list", "text": "(\"func(): %p\\n\", pthread_getspecific(key))", "parent": 76, "children": [79, 81], "start_point": {"row": 28, "column": 10}, "end_point": {"row": 28, "column": 52}}, {"id": 79, "type": "string_literal", "text": "\"func(): %p\\n\"", "parent": 78, "children": [80], "start_point": {"row": 28, "column": 11}, "end_point": {"row": 28, "column": 25}}, {"id": 80, "type": "escape_sequence", "text": "\\n", "parent": 79, "children": [], "start_point": {"row": 28, "column": 22}, "end_point": {"row": 28, "column": 24}}, {"id": 81, "type": "call_expression", "text": "pthread_getspecific(key)", "parent": 78, "children": [82, 83], "start_point": {"row": 28, "column": 27}, "end_point": {"row": 28, "column": 51}}, {"id": 82, "type": "identifier", "text": "pthread_getspecific", "parent": 81, "children": [], "start_point": {"row": 28, "column": 27}, "end_point": {"row": 28, "column": 46}}, {"id": 83, "type": "argument_list", "text": "(key)", "parent": 81, "children": [84], "start_point": {"row": 28, "column": 46}, "end_point": {"row": 28, "column": 51}}, {"id": 84, "type": "identifier", "text": "key", "parent": 83, "children": [], "start_point": {"row": 28, "column": 47}, "end_point": {"row": 28, "column": 50}}, {"id": 85, "type": "call_expression", "text": "pthread_setspecific(key, &j)", "parent": 35, "children": [86, 87], "start_point": {"row": 30, "column": 4}, "end_point": {"row": 30, "column": 32}}, {"id": 86, "type": "identifier", "text": "pthread_setspecific", "parent": 85, "children": [], "start_point": {"row": 30, "column": 4}, "end_point": {"row": 30, "column": 23}}, {"id": 87, "type": "argument_list", "text": "(key, &j)", "parent": 85, "children": [88, 89], "start_point": {"row": 30, "column": 23}, "end_point": {"row": 30, "column": 32}}, {"id": 88, "type": "identifier", "text": "key", "parent": 87, "children": [], "start_point": {"row": 30, "column": 24}, "end_point": {"row": 30, "column": 27}}, {"id": 89, "type": "pointer_expression", "text": "&j", "parent": 87, "children": [90], "start_point": {"row": 30, "column": 29}, "end_point": {"row": 30, "column": 31}}, {"id": 90, "type": "identifier", "text": "j", "parent": 89, "children": [], "start_point": {"row": 30, "column": 30}, "end_point": {"row": 30, "column": 31}}, {"id": 91, "type": "call_expression", "text": "usleep(1000 * 1000)", "parent": 35, "children": [92, 93], "start_point": {"row": 32, "column": 4}, "end_point": {"row": 32, "column": 23}}, {"id": 92, "type": "identifier", "text": "usleep", "parent": 91, "children": [], "start_point": {"row": 32, "column": 4}, "end_point": {"row": 32, "column": 10}}, {"id": 93, "type": "argument_list", "text": "(1000 * 1000)", "parent": 91, "children": [94], "start_point": {"row": 32, "column": 10}, "end_point": {"row": 32, "column": 23}}, {"id": 94, "type": "binary_expression", "text": "1000 * 1000", "parent": 93, "children": [95, 96, 97], "start_point": {"row": 32, "column": 11}, "end_point": {"row": 32, "column": 22}}, {"id": 95, "type": "number_literal", "text": "1000", "parent": 94, "children": [], "start_point": {"row": 32, "column": 11}, "end_point": {"row": 32, "column": 15}}, {"id": 96, "type": "*", "text": "*", "parent": 94, "children": [], "start_point": {"row": 32, "column": 16}, "end_point": {"row": 32, "column": 17}}, {"id": 97, "type": "number_literal", "text": "1000", "parent": 94, "children": [], "start_point": {"row": 32, "column": 18}, "end_point": {"row": 32, "column": 22}}, {"id": 98, "type": "call_expression", "text": "printf(\"func(): %p\\n\", pthread_getspecific(key))", "parent": 35, "children": [99, 100], "start_point": {"row": 35, "column": 4}, "end_point": {"row": 35, "column": 52}}, {"id": 99, "type": "identifier", "text": "printf", "parent": 98, "children": [], "start_point": {"row": 35, "column": 4}, "end_point": {"row": 35, "column": 10}}, {"id": 100, "type": "argument_list", "text": "(\"func(): %p\\n\", pthread_getspecific(key))", "parent": 98, "children": [101, 103], "start_point": {"row": 35, "column": 10}, "end_point": {"row": 35, "column": 52}}, {"id": 101, "type": "string_literal", "text": "\"func(): %p\\n\"", "parent": 100, "children": [102], "start_point": {"row": 35, "column": 11}, "end_point": {"row": 35, "column": 25}}, {"id": 102, "type": "escape_sequence", "text": "\\n", "parent": 101, "children": [], "start_point": {"row": 35, "column": 22}, "end_point": {"row": 35, "column": 24}}, {"id": 103, "type": "call_expression", "text": "pthread_getspecific(key)", "parent": 100, "children": [104, 105], "start_point": {"row": 35, "column": 27}, "end_point": {"row": 35, "column": 51}}, {"id": 104, "type": "identifier", "text": "pthread_getspecific", "parent": 103, "children": [], "start_point": {"row": 35, "column": 27}, "end_point": {"row": 35, "column": 46}}, {"id": 105, "type": "argument_list", "text": "(key)", "parent": 103, "children": [106], "start_point": {"row": 35, "column": 46}, "end_point": {"row": 35, "column": 51}}, {"id": 106, "type": "identifier", "text": "key", "parent": 105, "children": [], "start_point": {"row": 35, "column": 47}, "end_point": {"row": 35, "column": 50}}, {"id": 107, "type": "return_statement", "text": "return NULL;", "parent": 35, "children": [108], "start_point": {"row": 37, "column": 4}, "end_point": {"row": 37, "column": 16}}, {"id": 108, "type": "null", "text": "NULL", "parent": 107, "children": [109], "start_point": {"row": 37, "column": 11}, "end_point": {"row": 37, "column": 15}}, {"id": 109, "type": "NULL", "text": "NULL", "parent": 108, "children": [], "start_point": {"row": 37, "column": 11}, "end_point": {"row": 37, "column": 15}}, {"id": 110, "type": "function_definition", "text": "void _test()\n{\n pthread_t t;\n\n pthread_key_create(&key, tls_cleanup);\n pthread_create(&t, NULL, func, NULL);\n pthread_join(t, NULL);\n}", "parent": null, "children": [111, 112], "start_point": {"row": 41, "column": 0}, "end_point": {"row": 48, "column": 1}}, {"id": 111, "type": "primitive_type", "text": "void", "parent": 110, "children": [], "start_point": {"row": 41, "column": 0}, "end_point": {"row": 41, "column": 4}}, {"id": 112, "type": "function_declarator", "text": "_test()", "parent": 110, "children": [113, 114], "start_point": {"row": 41, "column": 5}, "end_point": {"row": 41, "column": 12}}, {"id": 113, "type": "identifier", "text": "_test", "parent": 112, "children": [], "start_point": {"row": 41, "column": 5}, "end_point": {"row": 41, "column": 10}}, {"id": 114, "type": "parameter_list", "text": "()", "parent": 112, "children": [], "start_point": {"row": 41, "column": 10}, "end_point": {"row": 41, "column": 12}}, {"id": 115, "type": "declaration", "text": "pthread_t t;", "parent": 110, "children": [116, 117], "start_point": {"row": 43, "column": 4}, "end_point": {"row": 43, "column": 16}}, {"id": 116, "type": "type_identifier", "text": "pthread_t", "parent": 115, "children": [], "start_point": {"row": 43, "column": 4}, "end_point": {"row": 43, "column": 13}}, {"id": 117, "type": "identifier", "text": "t", "parent": 115, "children": [], "start_point": {"row": 43, "column": 14}, "end_point": {"row": 43, "column": 15}}, {"id": 118, "type": "call_expression", "text": "pthread_key_create(&key, tls_cleanup)", "parent": 110, "children": [119, 120], "start_point": {"row": 45, "column": 4}, "end_point": {"row": 45, "column": 41}}, {"id": 119, "type": "identifier", "text": "pthread_key_create", "parent": 118, "children": [], "start_point": {"row": 45, "column": 4}, "end_point": {"row": 45, "column": 22}}, {"id": 120, "type": "argument_list", "text": "(&key, tls_cleanup)", "parent": 118, "children": [121, 123], "start_point": {"row": 45, "column": 22}, "end_point": {"row": 45, "column": 41}}, {"id": 121, "type": "pointer_expression", "text": "&key", "parent": 120, "children": [122], "start_point": {"row": 45, "column": 23}, "end_point": {"row": 45, "column": 27}}, {"id": 122, "type": "identifier", "text": "key", "parent": 121, "children": [], "start_point": {"row": 45, "column": 24}, "end_point": {"row": 45, "column": 27}}, {"id": 123, "type": "identifier", "text": "tls_cleanup", "parent": 120, "children": [], "start_point": {"row": 45, "column": 29}, "end_point": {"row": 45, "column": 40}}, {"id": 124, "type": "call_expression", "text": "pthread_create(&t, NULL, func, NULL)", "parent": 110, "children": [125, 126], "start_point": {"row": 46, "column": 4}, "end_point": {"row": 46, "column": 40}}, {"id": 125, "type": "identifier", "text": "pthread_create", "parent": 124, "children": [], "start_point": {"row": 46, "column": 4}, "end_point": {"row": 46, "column": 18}}, {"id": 126, "type": "argument_list", "text": "(&t, NULL, func, NULL)", "parent": 124, "children": [127, 129, 131, 132], "start_point": {"row": 46, "column": 18}, "end_point": {"row": 46, "column": 40}}, {"id": 127, "type": "pointer_expression", "text": "&t", "parent": 126, "children": [128], "start_point": {"row": 46, "column": 19}, "end_point": {"row": 46, "column": 21}}, {"id": 128, "type": "identifier", "text": "t", "parent": 127, "children": [], "start_point": {"row": 46, "column": 20}, "end_point": {"row": 46, "column": 21}}, {"id": 129, "type": "null", "text": "NULL", "parent": 126, "children": [130], "start_point": {"row": 46, "column": 23}, "end_point": {"row": 46, "column": 27}}, {"id": 130, "type": "NULL", "text": "NULL", "parent": 129, "children": [], "start_point": {"row": 46, "column": 23}, "end_point": {"row": 46, "column": 27}}, {"id": 131, "type": "identifier", "text": "func", "parent": 126, "children": [], "start_point": {"row": 46, "column": 29}, "end_point": {"row": 46, "column": 33}}, {"id": 132, "type": "null", "text": "NULL", "parent": 126, "children": [133], "start_point": {"row": 46, "column": 35}, "end_point": {"row": 46, "column": 39}}, {"id": 133, "type": "NULL", "text": "NULL", "parent": 132, "children": [], "start_point": {"row": 46, "column": 35}, "end_point": {"row": 46, "column": 39}}, {"id": 134, "type": "call_expression", "text": "pthread_join(t, NULL)", "parent": 110, "children": [135, 136], "start_point": {"row": 47, "column": 4}, "end_point": {"row": 47, "column": 25}}, {"id": 135, "type": "identifier", "text": "pthread_join", "parent": 134, "children": [], "start_point": {"row": 47, "column": 4}, "end_point": {"row": 47, "column": 16}}, {"id": 136, "type": "argument_list", "text": "(t, NULL)", "parent": 134, "children": [137, 138], "start_point": {"row": 47, "column": 16}, "end_point": {"row": 47, "column": 25}}, {"id": 137, "type": "identifier", "text": "t", "parent": 136, "children": [], "start_point": {"row": 47, "column": 17}, "end_point": {"row": 47, "column": 18}}, {"id": 138, "type": "null", "text": "NULL", "parent": 136, "children": [139], "start_point": {"row": 47, "column": 20}, "end_point": {"row": 47, "column": 24}}, {"id": 139, "type": "NULL", "text": "NULL", "parent": 138, "children": [], "start_point": {"row": 47, "column": 20}, "end_point": {"row": 47, "column": 24}}, {"id": 140, "type": "function_definition", "text": "int main()\n{\n _test();\n\n return 0;\n}", "parent": null, "children": [141, 142], "start_point": {"row": 51, "column": 0}, "end_point": {"row": 56, "column": 1}}, {"id": 141, "type": "primitive_type", "text": "int", "parent": 140, "children": [], "start_point": {"row": 51, "column": 0}, "end_point": {"row": 51, "column": 3}}, {"id": 142, "type": "function_declarator", "text": "main()", "parent": 140, "children": [143, 144], "start_point": {"row": 51, "column": 4}, "end_point": {"row": 51, "column": 10}}, {"id": 143, "type": "identifier", "text": "main", "parent": 142, "children": [], "start_point": {"row": 51, "column": 4}, "end_point": {"row": 51, "column": 8}}, {"id": 144, "type": "parameter_list", "text": "()", "parent": 142, "children": [], "start_point": {"row": 51, "column": 8}, "end_point": {"row": 51, "column": 10}}, {"id": 145, "type": "call_expression", "text": "_test()", "parent": 140, "children": [146, 147], "start_point": {"row": 53, "column": 4}, "end_point": {"row": 53, "column": 11}}, {"id": 146, "type": "identifier", "text": "_test", "parent": 145, "children": [], "start_point": {"row": 53, "column": 4}, "end_point": {"row": 53, "column": 9}}, {"id": 147, "type": "argument_list", "text": "()", "parent": 145, "children": [], "start_point": {"row": 53, "column": 9}, "end_point": {"row": 53, "column": 11}}, {"id": 148, "type": "return_statement", "text": "return 0;", "parent": 140, "children": [149], "start_point": {"row": 55, "column": 4}, "end_point": {"row": 55, "column": 13}}, {"id": 149, "type": "number_literal", "text": "0", "parent": 148, "children": [], "start_point": {"row": 55, "column": 11}, "end_point": {"row": 55, "column": 12}}]}, "node_categories": {"declarations": {"functions": [15, 17, 35, 39, 110, 112, 140, 142], "variables": [12, 20, 42, 51, 57, 115], "classes": [], "imports": [0, 1, 3, 4, 6, 7, 9, 10], "modules": [], "enums": []}, "statements": {"expressions": [25, 29, 47, 63, 67, 69, 72, 76, 81, 85, 89, 91, 94, 98, 103, 118, 121, 124, 127, 134, 145], "assignments": [], "loops": [], "conditionals": [13, 14, 18, 24, 26, 28, 30, 32, 40, 46, 48, 50, 54, 60, 64, 66, 68, 70, 77, 82, 84, 86, 88, 90, 92, 99, 104, 106, 113, 116, 117, 119, 122, 123, 125, 128, 131, 135, 137, 143, 146], "returns": [107, 148], "exceptions": []}, "expressions": {"calls": [], "literals": [2, 5, 8, 11, 33, 56, 62, 73, 75, 79, 95, 97, 101, 149], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [{"node_id": 15, "universal_type": "function", "name": "tls_cleanup", "text_snippet": "void tls_cleanup(void *args)\n{\n UNUSED_PARAM(args);\n\n fprintf(stderr, \"tls_cleanup()\\n\");\n}"}, {"node_id": 17, "universal_type": "function", "name": "unknown", "text_snippet": "tls_cleanup(void *args)"}, {"node_id": 35, "universal_type": "function", "name": "*func", "text_snippet": "void *func(void *args)\n{\n UNUSED_PARAM(args);\n\n int i = 0;\n int j = 0;\n\n pthread_setspec"}, {"node_id": 39, "universal_type": "function", "name": "unknown", "text_snippet": "func(void *args)"}, {"node_id": 110, "universal_type": "function", "name": "_test", "text_snippet": "void _test()\n{\n pthread_t t;\n\n pthread_key_create(&key, tls_cleanup);\n pthread_create(&t, N"}, {"node_id": 112, "universal_type": "function", "name": "unknown", "text_snippet": "_test()"}, {"node_id": 140, "universal_type": "function", "name": "main", "text_snippet": "int main()\n{\n _test();\n\n return 0;\n}"}, {"node_id": 142, "universal_type": "function", "name": "unknown", "text_snippet": "main()"}], "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 <unistd.h>\n"}, {"node_id": 7, "text": "#include"}, {"node_id": 9, "text": "#include <thread_pool.h>\n"}, {"node_id": 10, "text": "#include"}]}, "original_source_code": "#include <pthread.h>\n#include <stdio.h>\n#include <unistd.h>\n#include <thread_pool.h>\n\n\npthread_key_t key;\n\n\nvoid tls_cleanup(void *args)\n{\n UNUSED_PARAM(args);\n\n fprintf(stderr, \"tls_cleanup()\\n\");\n}\n\n\nvoid *func(void *args)\n{\n UNUSED_PARAM(args);\n\n int i = 0;\n int j = 0;\n\n pthread_setspecific(key, &i);\n\n usleep(1000 * 1000);\n\n printf(\"func(): %p\\n\", pthread_getspecific(key));\n\n pthread_setspecific(key, &j);\n\n usleep(1000 * 1000);\n\n\n printf(\"func(): %p\\n\", pthread_getspecific(key));\n\n return NULL;\n}\n\n\nvoid _test()\n{\n pthread_t t;\n\n pthread_key_create(&key, tls_cleanup);\n pthread_create(&t, NULL, func, NULL);\n pthread_join(t, NULL);\n}\n\n\nint main()\n{\n _test();\n\n return 0;\n}"}
80,052
c
// Copyright 2013 Viewfinder. All rights reserved. // Author: <NAME> #ifndef VIEWFINDER_JNI_NATIVE_APP_STATE_H #define VIEWFINDER_JNI_NATIVE_APP_STATE_H #include "AppState.h" #include "JNIUtils.h" class NativeAppState : public AppState { public: NativeAppState(const string& base_dir, int server_port, JNIEnv* env, jobject app_state); virtual ~NativeAppState(); virtual InitAction GetInitAction(); virtual bool Init(InitAction init_action); virtual void RunMaintenance(InitAction init_action); virtual void SetupViewpointTransition(int64_t viewpoint_id, const DBHandle& updates); virtual bool CloudStorageEnabled(); virtual void DeleteAsset(const string& key); virtual void ProcessPhotoDuplicateQueue(); virtual void LoadViewfinderImages(int64_t photo_id, const DBHandle& db, Callback<void (bool)> completion); virtual int TimeZoneOffset(WallTime t) const; virtual SubscriptionManager* subscription_manager() const { return NULL; } virtual string timezone() const; JNIEnv* jni_env() const { return GetJNIEnv(jvm_); } ScopedLocalRef<jobject> app_state(JNIEnv* env) const { return ScopedLocalRef<jobject>(env, env->NewLocalRef(weak_app_state_)); } ScopedLocalRef<jobject> app_state() const { JNIEnv* env = jni_env(); return ScopedLocalRef<jobject>(env, env->NewLocalRef(weak_app_state_)); } protected: virtual DayTableEnv* NewDayTableEnv(); virtual bool MaybeMigrate(ProgressUpdateBlock progress_update); private: JavaVM* const jvm_; jweak weak_app_state_; }; #endif // VIEWFINDER_JNI_NATIVE_APP_STATE_H
39.08
40
(translation_unit) "// Copyright 2013 Viewfinder. All rights reserved.\n// Author: <NAME>\n\n#ifndef VIEWFINDER_JNI_NATIVE_APP_STATE_H\n#define VIEWFINDER_JNI_NATIVE_APP_STATE_H\n\n#include "AppState.h"\n#include "JNIUtils.h"\n\nclass NativeAppState : public AppState {\n public:\n NativeAppState(const string& base_dir, int server_port, JNIEnv* env, jobject app_state);\n virtual ~NativeAppState();\n\n virtual InitAction GetInitAction();\n virtual bool Init(InitAction init_action);\n virtual void RunMaintenance(InitAction init_action);\n\n virtual void SetupViewpointTransition(int64_t viewpoint_id, const DBHandle& updates);\n virtual bool CloudStorageEnabled();\n virtual void DeleteAsset(const string& key);\n virtual void ProcessPhotoDuplicateQueue();\n virtual void LoadViewfinderImages(int64_t photo_id, const DBHandle& db,\n Callback<void (bool)> completion);\n virtual int TimeZoneOffset(WallTime t) const;\n\n virtual SubscriptionManager* subscription_manager() const { return NULL; }\n\n virtual string timezone() const;\n\n JNIEnv* jni_env() const {\n return GetJNIEnv(jvm_);\n }\n\n ScopedLocalRef<jobject> app_state(JNIEnv* env) const {\n return ScopedLocalRef<jobject>(env, env->NewLocalRef(weak_app_state_));\n }\n\n ScopedLocalRef<jobject> app_state() const {\n JNIEnv* env = jni_env();\n return ScopedLocalRef<jobject>(env, env->NewLocalRef(weak_app_state_));\n }\n\n protected:\n virtual DayTableEnv* NewDayTableEnv();\n virtual bool MaybeMigrate(ProgressUpdateBlock progress_update);\n\n private:\n JavaVM* const jvm_;\n jweak weak_app_state_;\n};\n\n#endif // VIEWFINDER_JNI_NATIVE_APP_STATE_H\n" (comment) "// Copyright 2013 Viewfinder. All rights reserved." (comment) "// Author: <NAME>" (preproc_ifdef) "#ifndef VIEWFINDER_JNI_NATIVE_APP_STATE_H\n#define VIEWFINDER_JNI_NATIVE_APP_STATE_H\n\n#include "AppState.h"\n#include "JNIUtils.h"\n\nclass NativeAppState : public AppState {\n public:\n NativeAppState(const string& base_dir, int server_port, JNIEnv* env, jobject app_state);\n virtual ~NativeAppState();\n\n virtual InitAction GetInitAction();\n virtual bool Init(InitAction init_action);\n virtual void RunMaintenance(InitAction init_action);\n\n virtual void SetupViewpointTransition(int64_t viewpoint_id, const DBHandle& updates);\n virtual bool CloudStorageEnabled();\n virtual void DeleteAsset(const string& key);\n virtual void ProcessPhotoDuplicateQueue();\n virtual void LoadViewfinderImages(int64_t photo_id, const DBHandle& db,\n Callback<void (bool)> completion);\n virtual int TimeZoneOffset(WallTime t) const;\n\n virtual SubscriptionManager* subscription_manager() const { return NULL; }\n\n virtual string timezone() const;\n\n JNIEnv* jni_env() const {\n return GetJNIEnv(jvm_);\n }\n\n ScopedLocalRef<jobject> app_state(JNIEnv* env) const {\n return ScopedLocalRef<jobject>(env, env->NewLocalRef(weak_app_state_));\n }\n\n ScopedLocalRef<jobject> app_state() const {\n JNIEnv* env = jni_env();\n return ScopedLocalRef<jobject>(env, env->NewLocalRef(weak_app_state_));\n }\n\n protected:\n virtual DayTableEnv* NewDayTableEnv();\n virtual bool MaybeMigrate(ProgressUpdateBlock progress_update);\n\n private:\n JavaVM* const jvm_;\n jweak weak_app_state_;\n};\n\n#endif" (#ifndef) "#ifndef" (identifier) "VIEWFINDER_JNI_NATIVE_APP_STATE_H" (preproc_def) "#define VIEWFINDER_JNI_NATIVE_APP_STATE_H\n" (#define) "#define" (identifier) "VIEWFINDER_JNI_NATIVE_APP_STATE_H" (preproc_include) "#include "AppState.h"\n" (#include) "#include" (string_literal) ""AppState.h"" (") """ (string_content) "AppState.h" (") """ (preproc_include) "#include "JNIUtils.h"\n" (#include) "#include" (string_literal) ""JNIUtils.h"" (") """ (string_content) "JNIUtils.h" (") """ (function_definition) "class NativeAppState : public AppState {\n public:\n NativeAppState(const string& base_dir, int server_port, JNIEnv* env, jobject app_state);\n virtual ~NativeAppState();\n\n virtual InitAction GetInitAction();\n virtual bool Init(InitAction init_action);\n virtual void RunMaintenance(InitAction init_action);\n\n virtual void SetupViewpointTransition(int64_t viewpoint_id, const DBHandle& updates);\n virtual bool CloudStorageEnabled();\n virtual void DeleteAsset(const string& key);\n virtual void ProcessPhotoDuplicateQueue();\n virtual void LoadViewfinderImages(int64_t photo_id, const DBHandle& db,\n Callback<void (bool)> completion);\n virtual int TimeZoneOffset(WallTime t) const;\n\n virtual SubscriptionManager* subscription_manager() const { return NULL; }\n\n virtual string timezone() const;\n\n JNIEnv* jni_env() const {\n return GetJNIEnv(jvm_);\n }" (type_identifier) "class" (identifier) "NativeAppState" (ERROR) ": public AppState" (:) ":" (identifier) "public" (identifier) "AppState" (compound_statement) "{\n public:\n NativeAppState(const string& base_dir, int server_port, JNIEnv* env, jobject app_state);\n virtual ~NativeAppState();\n\n virtual InitAction GetInitAction();\n virtual bool Init(InitAction init_action);\n virtual void RunMaintenance(InitAction init_action);\n\n virtual void SetupViewpointTransition(int64_t viewpoint_id, const DBHandle& updates);\n virtual bool CloudStorageEnabled();\n virtual void DeleteAsset(const string& key);\n virtual void ProcessPhotoDuplicateQueue();\n virtual void LoadViewfinderImages(int64_t photo_id, const DBHandle& db,\n Callback<void (bool)> completion);\n virtual int TimeZoneOffset(WallTime t) const;\n\n virtual SubscriptionManager* subscription_manager() const { return NULL; }\n\n virtual string timezone() const;\n\n JNIEnv* jni_env() const {\n return GetJNIEnv(jvm_);\n }" ({) "{" (labeled_statement) "public:\n NativeAppState(const string& base_dir, int server_port, JNIEnv* env, jobject app_state);" (statement_identifier) "public" (:) ":" (expression_statement) "NativeAppState(const string& base_dir, int server_port, JNIEnv* env, jobject app_state);" (comma_expression) "NativeAppState(const string& base_dir, int server_port, JNIEnv* env, jobject" (binary_expression) "NativeAppState(const string& base_dir" (identifier) "NativeAppState" (ERROR) "(const string" (() "(" (type_descriptor) "const string" (type_qualifier) "const" (const) "const" (type_identifier) "string" (&) "&" (identifier) "base_dir" (,) "," (ERROR) "int" (identifier) "int" (comma_expression) "server_port, JNIEnv* env, jobject" (identifier) "server_port" (,) "," (comma_expression) "JNIEnv* env, jobject" (binary_expression) "JNIEnv* env" (identifier) "JNIEnv" (*) "*" (identifier) "env" (,) "," (identifier) "jobject" (ERROR) "app_state)" (identifier) "app_state" ()) ")" (;) ";" (declaration) "virtual ~NativeAppState();" (type_identifier) "virtual" (ERROR) "~" (~) "~" (function_declarator) "NativeAppState()" (identifier) "NativeAppState" (parameter_list) "()" (() "(" ()) ")" (;) ";" (declaration) "virtual InitAction GetInitAction();" (type_identifier) "virtual" (ERROR) "InitAction" (identifier) "InitAction" (function_declarator) "GetInitAction()" (identifier) "GetInitAction" (parameter_list) "()" (() "(" ()) ")" (;) ";" (declaration) "virtual bool Init(InitAction init_action);" (type_identifier) "virtual" (ERROR) "bool" (identifier) "bool" (function_declarator) "Init(InitAction init_action)" (identifier) "Init" (parameter_list) "(InitAction init_action)" (() "(" (parameter_declaration) "InitAction init_action" (type_identifier) "InitAction" (identifier) "init_action" ()) ")" (;) ";" (declaration) "virtual void RunMaintenance(InitAction init_action);" (type_identifier) "virtual" (ERROR) "void" (identifier) "void" (function_declarator) "RunMaintenance(InitAction init_action)" (identifier) "RunMaintenance" (parameter_list) "(InitAction init_action)" (() "(" (parameter_declaration) "InitAction init_action" (type_identifier) "InitAction" (identifier) "init_action" ()) ")" (;) ";" (declaration) "virtual void SetupViewpointTransition(int64_t viewpoint_id, const DBHandle& updates);" (type_identifier) "virtual" (ERROR) "void" (identifier) "void" (function_declarator) "SetupViewpointTransition(int64_t viewpoint_id, const DBHandle& updates)" (identifier) "SetupViewpointTransition" (parameter_list) "(int64_t viewpoint_id, const DBHandle& updates)" (() "(" (parameter_declaration) "int64_t viewpoint_id" (primitive_type) "int64_t" (identifier) "viewpoint_id" (,) "," (parameter_declaration) "const DBHandle& updates" (type_qualifier) "const" (const) "const" (type_identifier) "DBHandle" (ERROR) "&" (&) "&" (identifier) "updates" ()) ")" (;) ";" (declaration) "virtual bool CloudStorageEnabled();" (type_identifier) "virtual" (ERROR) "bool" (identifier) "bool" (function_declarator) "CloudStorageEnabled()" (identifier) "CloudStorageEnabled" (parameter_list) "()" (() "(" ()) ")" (;) ";" (declaration) "virtual void DeleteAsset(const string& key);" (type_identifier) "virtual" (ERROR) "void" (identifier) "void" (function_declarator) "DeleteAsset(const string& key)" (identifier) "DeleteAsset" (parameter_list) "(const string& key)" (() "(" (parameter_declaration) "const string& key" (type_qualifier) "const" (const) "const" (type_identifier) "string" (ERROR) "&" (&) "&" (identifier) "key" ()) ")" (;) ";" (declaration) "virtual void ProcessPhotoDuplicateQueue();" (type_identifier) "virtual" (ERROR) "void" (identifier) "void" (function_declarator) "ProcessPhotoDuplicateQueue()" (identifier) "ProcessPhotoDuplicateQueue" (parameter_list) "()" (() "(" ()) ")" (;) ";" (declaration) "virtual void LoadViewfinderImages(int64_t photo_id, const DBHandle& db,\n Callback<void (bool)> completion);" (type_identifier) "virtual" (ERROR) "void" (identifier) "void" (function_declarator) "LoadViewfinderImages(int64_t photo_id, const DBHandle& db,\n Callback<void (bool)> completion)" (identifier) "LoadViewfinderImages" (parameter_list) "(int64_t photo_id, const DBHandle& db,\n Callback<void (bool)> completion)" (() "(" (parameter_declaration) "int64_t photo_id" (primitive_type) "int64_t" (identifier) "photo_id" (,) "," (parameter_declaration) "const DBHandle& db" (type_qualifier) "const" (const) "const" (type_identifier) "DBHandle" (ERROR) "&" (&) "&" (identifier) "db" (,) "," (parameter_declaration) "Callback<void (bool)> completion" (macro_type_specifier) "Callback<void (bool)" (identifier) "Callback" (ERROR) "<void" (<) "<" (primitive_type) "void" (() "(" (type_descriptor) "bool" (primitive_type) "bool" ()) ")" (ERROR) ">" (>) ">" (identifier) "completion" ()) ")" (;) ";" (ERROR) "virtual int TimeZoneOffset(WallTime t) const" (type_identifier) "virtual" (ERROR) "int" (identifier) "int" (function_declarator) "TimeZoneOffset(WallTime t) const" (identifier) "TimeZoneOffset" (parameter_list) "(WallTime t)" (() "(" (parameter_declaration) "WallTime t" (type_identifier) "WallTime" (identifier) "t" ()) ")" (identifier) "const" (expression_statement) ";" (;) ";" (function_definition) "virtual SubscriptionManager* subscription_manager() const { return NULL; }" (type_identifier) "virtual" (ERROR) "SubscriptionManager" (identifier) "SubscriptionManager" (pointer_declarator) "* subscription_manager() const" (*) "*" (function_declarator) "subscription_manager() const" (identifier) "subscription_manager" (parameter_list) "()" (() "(" ()) ")" (identifier) "const" (compound_statement) "{ return NULL; }" ({) "{" (return_statement) "return NULL;" (return) "return" (null) "NULL" (NULL) "NULL" (;) ";" (}) "}" (ERROR) "virtual string timezone() const;\n\n JNIEnv* jni_env() const {\n return GetJNIEnv(jvm_);" (type_identifier) "virtual" (ERROR) "string" (identifier) "string" (function_declarator) "timezone()" (identifier) "timezone" (parameter_list) "()" (() "(" ()) ")" (declaration) "const;\n\n JNIEnv* jni_env() const {\n return GetJNIEnv(jvm_);" (type_qualifier) "const" (const) "const" (ERROR) ";" (;) ";" (type_identifier) "JNIEnv" (ERROR) "* jni_env() const {\n return" (pointer_declarator) "* jni_env() const" (*) "*" (function_declarator) "jni_env() const" (identifier) "jni_env" (parameter_list) "()" (() "(" ()) ")" (identifier) "const" ({) "{" (return) "return" (function_declarator) "GetJNIEnv(jvm_)" (identifier) "GetJNIEnv" (parameter_list) "(jvm_)" (() "(" (parameter_declaration) "jvm_" (type_identifier) "jvm_" ()) ")" (;) ";" (}) "}" (ERROR) "ScopedLocalRef<jobject> app_state(JNIEnv* env) const" (binary_expression) "ScopedLocalRef<jobject> app_state(JNIEnv* env)" (binary_expression) "ScopedLocalRef<jobject" (identifier) "ScopedLocalRef" (<) "<" (identifier) "jobject" (>) ">" (call_expression) "app_state(JNIEnv* env)" (identifier) "app_state" (argument_list) "(JNIEnv* env)" (() "(" (binary_expression) "JNIEnv* env" (identifier) "JNIEnv" (*) "*" (identifier) "env" ()) ")" (identifier) "const" (compound_statement) "{\n return ScopedLocalRef<jobject>(env, env->NewLocalRef(weak_app_state_));\n }" ({) "{" (return_statement) "return ScopedLocalRef<jobject>(env, env->NewLocalRef(weak_app_state_));" (return) "return" (binary_expression) "ScopedLocalRef<jobject>(env, env->NewLocalRef(weak_app_state_))" (binary_expression) "ScopedLocalRef<jobject" (identifier) "ScopedLocalRef" (<) "<" (identifier) "jobject" (>) ">" (parenthesized_expression) "(env, env->NewLocalRef(weak_app_state_))" (() "(" (comma_expression) "env, env->NewLocalRef(weak_app_state_)" (identifier) "env" (,) "," (call_expression) "env->NewLocalRef(weak_app_state_)" (field_expression) "env->NewLocalRef" (identifier) "env" (->) "->" (field_identifier) "NewLocalRef" (argument_list) "(weak_app_state_)" (() "(" (identifier) "weak_app_state_" ()) ")" ()) ")" (;) ";" (}) "}" (ERROR) "ScopedLocalRef<jobject> app_state() const" (binary_expression) "ScopedLocalRef<jobject> app_state()" (binary_expression) "ScopedLocalRef<jobject" (identifier) "ScopedLocalRef" (<) "<" (identifier) "jobject" (>) ">" (call_expression) "app_state()" (identifier) "app_state" (argument_list) "()" (() "(" ()) ")" (identifier) "const" (compound_statement) "{\n JNIEnv* env = jni_env();\n return ScopedLocalRef<jobject>(env, env->NewLocalRef(weak_app_state_));\n }" ({) "{" (declaration) "JNIEnv* env = jni_env();" (type_identifier) "JNIEnv" (init_declarator) "* env = jni_env()" (pointer_declarator) "* env" (*) "*" (identifier) "env" (=) "=" (call_expression) "jni_env()" (identifier) "jni_env" (argument_list) "()" (() "(" ()) ")" (;) ";" (return_statement) "return ScopedLocalRef<jobject>(env, env->NewLocalRef(weak_app_state_));" (return) "return" (binary_expression) "ScopedLocalRef<jobject>(env, env->NewLocalRef(weak_app_state_))" (binary_expression) "ScopedLocalRef<jobject" (identifier) "ScopedLocalRef" (<) "<" (identifier) "jobject" (>) ">" (parenthesized_expression) "(env, env->NewLocalRef(weak_app_state_))" (() "(" (comma_expression) "env, env->NewLocalRef(weak_app_state_)" (identifier) "env" (,) "," (call_expression) "env->NewLocalRef(weak_app_state_)" (field_expression) "env->NewLocalRef" (identifier) "env" (->) "->" (field_identifier) "NewLocalRef" (argument_list) "(weak_app_state_)" (() "(" (identifier) "weak_app_state_" ()) ")" ()) ")" (;) ";" (}) "}" (labeled_statement) "protected:\n virtual DayTableEnv" (statement_identifier) "protected" (:) ":" (declaration) "virtual DayTableEnv" (type_identifier) "virtual" (identifier) "DayTableEnv" (;) "" (expression_statement) "* NewDayTableEnv();" (pointer_expression) "* NewDayTableEnv()" (*) "*" (call_expression) "NewDayTableEnv()" (identifier) "NewDayTableEnv" (argument_list) "()" (() "(" ()) ")" (;) ";" (declaration) "virtual bool MaybeMigrate(ProgressUpdateBlock progress_update);" (type_identifier) "virtual" (ERROR) "bool" (identifier) "bool" (function_declarator) "MaybeMigrate(ProgressUpdateBlock progress_update)" (identifier) "MaybeMigrate" (parameter_list) "(ProgressUpdateBlock progress_update)" (() "(" (parameter_declaration) "ProgressUpdateBlock progress_update" (type_identifier) "ProgressUpdateBlock" (identifier) "progress_update" ()) ")" (;) ";" (labeled_statement) "private:\n JavaVM* const jvm_;" (statement_identifier) "private" (:) ":" (declaration) "JavaVM* const jvm_;" (type_identifier) "JavaVM" (pointer_declarator) "* const jvm_" (*) "*" (type_qualifier) "const" (const) "const" (identifier) "jvm_" (;) ";" (declaration) "jweak weak_app_state_;" (type_identifier) "jweak" (identifier) "weak_app_state_" (;) ";" (ERROR) "}" (}) "}" (expression_statement) ";" (;) ";" (#endif) "#endif" (comment) "// VIEWFINDER_JNI_NATIVE_APP_STATE_H"
418
29
{"language": "c", "success": true, "metadata": {"lines": 40, "avg_line_length": 39.08, "nodes": 268, "errors": 0, "source_hash": "7a0cfa4afeef6d3d974e270f3377ff3661ce543f03990dceb790e201c96d4e95", "categorized_nodes": 186}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef VIEWFINDER_JNI_NATIVE_APP_STATE_H\n#define VIEWFINDER_JNI_NATIVE_APP_STATE_H\n\n#include \"AppState.h\"\n#include \"JNIUtils.h\"\n\nclass NativeAppState : public AppState {\n public:\n NativeAppState(const string& base_dir, int server_port, JNIEnv* env, jobject app_state);\n virtual ~NativeAppState();\n\n virtual InitAction GetInitAction();\n virtual bool Init(InitAction init_action);\n virtual void RunMaintenance(InitAction init_action);\n\n virtual void SetupViewpointTransition(int64_t viewpoint_id, const DBHandle& updates);\n virtual bool CloudStorageEnabled();\n virtual void DeleteAsset(const string& key);\n virtual void ProcessPhotoDuplicateQueue();\n virtual void LoadViewfinderImages(int64_t photo_id, const DBHandle& db,\n Callback<void (bool)> completion);\n virtual int TimeZoneOffset(WallTime t) const;\n\n virtual SubscriptionManager* subscription_manager() const { return NULL; }\n\n virtual string timezone() const;\n\n JNIEnv* jni_env() const {\n return GetJNIEnv(jvm_);\n }\n\n ScopedLocalRef<jobject> app_state(JNIEnv* env) const {\n return ScopedLocalRef<jobject>(env, env->NewLocalRef(weak_app_state_));\n }\n\n ScopedLocalRef<jobject> app_state() const {\n JNIEnv* env = jni_env();\n return ScopedLocalRef<jobject>(env, env->NewLocalRef(weak_app_state_));\n }\n\n protected:\n virtual DayTableEnv* NewDayTableEnv();\n virtual bool MaybeMigrate(ProgressUpdateBlock progress_update);\n\n private:\n JavaVM* const jvm_;\n jweak weak_app_state_;\n};\n\n#endif", "parent": null, "children": [1, 2, 3, 6, 9, 12, 173, 203, 239, 248, 258, 264, 267], "start_point": {"row": 3, "column": 0}, "end_point": {"row": 52, "column": 6}}, {"id": 1, "type": "#ifndef", "text": "#ifndef", "parent": 0, "children": [], "start_point": {"row": 3, "column": 0}, "end_point": {"row": 3, "column": 7}}, {"id": 2, "type": "identifier", "text": "VIEWFINDER_JNI_NATIVE_APP_STATE_H", "parent": 0, "children": [], "start_point": {"row": 3, "column": 8}, "end_point": {"row": 3, "column": 41}}, {"id": 3, "type": "preproc_def", "text": "#define VIEWFINDER_JNI_NATIVE_APP_STATE_H\n", "parent": 0, "children": [4, 5], "start_point": {"row": 4, "column": 0}, "end_point": {"row": 5, "column": 0}}, {"id": 4, "type": "#define", "text": "#define", "parent": 3, "children": [], "start_point": {"row": 4, "column": 0}, "end_point": {"row": 4, "column": 7}}, {"id": 5, "type": "identifier", "text": "VIEWFINDER_JNI_NATIVE_APP_STATE_H", "parent": 3, "children": [], "start_point": {"row": 4, "column": 8}, "end_point": {"row": 4, "column": 41}}, {"id": 6, "type": "preproc_include", "text": "#include \"AppState.h\"\n", "parent": 0, "children": [7, 8], "start_point": {"row": 6, "column": 0}, "end_point": {"row": 7, "column": 0}}, {"id": 7, "type": "#include", "text": "#include", "parent": 6, "children": [], "start_point": {"row": 6, "column": 0}, "end_point": {"row": 6, "column": 8}}, {"id": 8, "type": "string_literal", "text": "\"AppState.h\"", "parent": 6, "children": [], "start_point": {"row": 6, "column": 9}, "end_point": {"row": 6, "column": 21}}, {"id": 9, "type": "preproc_include", "text": "#include \"JNIUtils.h\"\n", "parent": 0, "children": [10, 11], "start_point": {"row": 7, "column": 0}, "end_point": {"row": 8, "column": 0}}, {"id": 10, "type": "#include", "text": "#include", "parent": 9, "children": [], "start_point": {"row": 7, "column": 0}, "end_point": {"row": 7, "column": 8}}, {"id": 11, "type": "string_literal", "text": "\"JNIUtils.h\"", "parent": 9, "children": [], "start_point": {"row": 7, "column": 9}, "end_point": {"row": 7, "column": 21}}, {"id": 12, "type": "function_definition", "text": "class NativeAppState : public AppState {\n public:\n NativeAppState(const string& base_dir, int server_port, JNIEnv* env, jobject app_state);\n virtual ~NativeAppState();\n\n virtual InitAction GetInitAction();\n virtual bool Init(InitAction init_action);\n virtual void RunMaintenance(InitAction init_action);\n\n virtual void SetupViewpointTransition(int64_t viewpoint_id, const DBHandle& updates);\n virtual bool CloudStorageEnabled();\n virtual void DeleteAsset(const string& key);\n virtual void ProcessPhotoDuplicateQueue();\n virtual void LoadViewfinderImages(int64_t photo_id, const DBHandle& db,\n Callback<void (bool)> completion);\n virtual int TimeZoneOffset(WallTime t) const;\n\n virtual SubscriptionManager* subscription_manager() const { return NULL; }\n\n virtual string timezone() const;\n\n JNIEnv* jni_env() const {\n return GetJNIEnv(jvm_);\n }", "parent": 0, "children": [13, 14], "start_point": {"row": 9, "column": 0}, "end_point": {"row": 32, "column": 3}}, {"id": 13, "type": "identifier", "text": "NativeAppState", "parent": 12, "children": [], "start_point": {"row": 9, "column": 6}, "end_point": {"row": 9, "column": 20}}, {"id": 14, "type": "ERROR", "text": ": public AppState", "parent": 12, "children": [15], "start_point": {"row": 9, "column": 21}, "end_point": {"row": 9, "column": 38}}, {"id": 15, "type": "identifier", "text": "AppState", "parent": 14, "children": [], "start_point": {"row": 9, "column": 30}, "end_point": {"row": 9, "column": 38}}, {"id": 16, "type": "labeled_statement", "text": "public:\n NativeAppState(const string& base_dir, int server_port, JNIEnv* env, jobject app_state);", "parent": 12, "children": [], "start_point": {"row": 10, "column": 1}, "end_point": {"row": 11, "column": 90}}, {"id": 17, "type": "comma_expression", "text": "NativeAppState(const string& base_dir, int server_port, JNIEnv* env, jobject", "parent": 16, "children": [18, 24, 26], "start_point": {"row": 11, "column": 2}, "end_point": {"row": 11, "column": 78}}, {"id": 18, "type": "binary_expression", "text": "NativeAppState(const string& base_dir", "parent": 17, "children": [19, 20, 23], "start_point": {"row": 11, "column": 2}, "end_point": {"row": 11, "column": 39}}, {"id": 19, "type": "identifier", "text": "NativeAppState", "parent": 18, "children": [], "start_point": {"row": 11, "column": 2}, "end_point": {"row": 11, "column": 16}}, {"id": 20, "type": "ERROR", "text": "(const string", "parent": 18, "children": [21], "start_point": {"row": 11, "column": 16}, "end_point": {"row": 11, "column": 29}}, {"id": 21, "type": "type_descriptor", "text": "const string", "parent": 20, "children": [22], "start_point": {"row": 11, "column": 17}, "end_point": {"row": 11, "column": 29}}, {"id": 22, "type": "type_identifier", "text": "string", "parent": 21, "children": [], "start_point": {"row": 11, "column": 23}, "end_point": {"row": 11, "column": 29}}, {"id": 23, "type": "identifier", "text": "base_dir", "parent": 18, "children": [], "start_point": {"row": 11, "column": 31}, "end_point": {"row": 11, "column": 39}}, {"id": 24, "type": "ERROR", "text": "int", "parent": 17, "children": [25], "start_point": {"row": 11, "column": 41}, "end_point": {"row": 11, "column": 44}}, {"id": 25, "type": "identifier", "text": "int", "parent": 24, "children": [], "start_point": {"row": 11, "column": 41}, "end_point": {"row": 11, "column": 44}}, {"id": 26, "type": "comma_expression", "text": "server_port, JNIEnv* env, jobject", "parent": 17, "children": [27, 28], "start_point": {"row": 11, "column": 45}, "end_point": {"row": 11, "column": 78}}, {"id": 27, "type": "identifier", "text": "server_port", "parent": 26, "children": [], "start_point": {"row": 11, "column": 45}, "end_point": {"row": 11, "column": 56}}, {"id": 28, "type": "comma_expression", "text": "JNIEnv* env, jobject", "parent": 26, "children": [29, 33], "start_point": {"row": 11, "column": 58}, "end_point": {"row": 11, "column": 78}}, {"id": 29, "type": "binary_expression", "text": "JNIEnv* env", "parent": 28, "children": [30, 31, 32], "start_point": {"row": 11, "column": 58}, "end_point": {"row": 11, "column": 69}}, {"id": 30, "type": "identifier", "text": "JNIEnv", "parent": 29, "children": [], "start_point": {"row": 11, "column": 58}, "end_point": {"row": 11, "column": 64}}, {"id": 31, "type": "*", "text": "*", "parent": 29, "children": [], "start_point": {"row": 11, "column": 64}, "end_point": {"row": 11, "column": 65}}, {"id": 32, "type": "identifier", "text": "env", "parent": 29, "children": [], "start_point": {"row": 11, "column": 66}, "end_point": {"row": 11, "column": 69}}, {"id": 33, "type": "identifier", "text": "jobject", "parent": 28, "children": [], "start_point": {"row": 11, "column": 71}, "end_point": {"row": 11, "column": 78}}, {"id": 34, "type": "ERROR", "text": "app_state)", "parent": 16, "children": [35], "start_point": {"row": 11, "column": 79}, "end_point": {"row": 11, "column": 89}}, {"id": 35, "type": "identifier", "text": "app_state", "parent": 34, "children": [], "start_point": {"row": 11, "column": 79}, "end_point": {"row": 11, "column": 88}}, {"id": 36, "type": "declaration", "text": "virtual ~NativeAppState();", "parent": 12, "children": [37, 38, 40], "start_point": {"row": 12, "column": 2}, "end_point": {"row": 12, "column": 28}}, {"id": 37, "type": "type_identifier", "text": "virtual", "parent": 36, "children": [], "start_point": {"row": 12, "column": 2}, "end_point": {"row": 12, "column": 9}}, {"id": 38, "type": "ERROR", "text": "~", "parent": 36, "children": [39], "start_point": {"row": 12, "column": 10}, "end_point": {"row": 12, "column": 11}}, {"id": 39, "type": "~", "text": "~", "parent": 38, "children": [], "start_point": {"row": 12, "column": 10}, "end_point": {"row": 12, "column": 11}}, {"id": 40, "type": "function_declarator", "text": "NativeAppState()", "parent": 36, "children": [41, 42], "start_point": {"row": 12, "column": 11}, "end_point": {"row": 12, "column": 27}}, {"id": 41, "type": "identifier", "text": "NativeAppState", "parent": 40, "children": [], "start_point": {"row": 12, "column": 11}, "end_point": {"row": 12, "column": 25}}, {"id": 42, "type": "parameter_list", "text": "()", "parent": 40, "children": [], "start_point": {"row": 12, "column": 25}, "end_point": {"row": 12, "column": 27}}, {"id": 43, "type": "declaration", "text": "virtual InitAction GetInitAction();", "parent": 12, "children": [44, 45, 47], "start_point": {"row": 14, "column": 2}, "end_point": {"row": 14, "column": 37}}, {"id": 44, "type": "type_identifier", "text": "virtual", "parent": 43, "children": [], "start_point": {"row": 14, "column": 2}, "end_point": {"row": 14, "column": 9}}, {"id": 45, "type": "ERROR", "text": "InitAction", "parent": 43, "children": [46], "start_point": {"row": 14, "column": 10}, "end_point": {"row": 14, "column": 20}}, {"id": 46, "type": "identifier", "text": "InitAction", "parent": 45, "children": [], "start_point": {"row": 14, "column": 10}, "end_point": {"row": 14, "column": 20}}, {"id": 47, "type": "function_declarator", "text": "GetInitAction()", "parent": 43, "children": [48, 49], "start_point": {"row": 14, "column": 21}, "end_point": {"row": 14, "column": 36}}, {"id": 48, "type": "identifier", "text": "GetInitAction", "parent": 47, "children": [], "start_point": {"row": 14, "column": 21}, "end_point": {"row": 14, "column": 34}}, {"id": 49, "type": "parameter_list", "text": "()", "parent": 47, "children": [], "start_point": {"row": 14, "column": 34}, "end_point": {"row": 14, "column": 36}}, {"id": 50, "type": "declaration", "text": "virtual bool Init(InitAction init_action);", "parent": 12, "children": [51, 52, 54], "start_point": {"row": 15, "column": 2}, "end_point": {"row": 15, "column": 44}}, {"id": 51, "type": "type_identifier", "text": "virtual", "parent": 50, "children": [], "start_point": {"row": 15, "column": 2}, "end_point": {"row": 15, "column": 9}}, {"id": 52, "type": "ERROR", "text": "bool", "parent": 50, "children": [53], "start_point": {"row": 15, "column": 10}, "end_point": {"row": 15, "column": 14}}, {"id": 53, "type": "identifier", "text": "bool", "parent": 52, "children": [], "start_point": {"row": 15, "column": 10}, "end_point": {"row": 15, "column": 14}}, {"id": 54, "type": "function_declarator", "text": "Init(InitAction init_action)", "parent": 50, "children": [55, 56], "start_point": {"row": 15, "column": 15}, "end_point": {"row": 15, "column": 43}}, {"id": 55, "type": "identifier", "text": "Init", "parent": 54, "children": [], "start_point": {"row": 15, "column": 15}, "end_point": {"row": 15, "column": 19}}, {"id": 56, "type": "parameter_list", "text": "(InitAction init_action)", "parent": 54, "children": [57], "start_point": {"row": 15, "column": 19}, "end_point": {"row": 15, "column": 43}}, {"id": 57, "type": "parameter_declaration", "text": "InitAction init_action", "parent": 56, "children": [58, 59], "start_point": {"row": 15, "column": 20}, "end_point": {"row": 15, "column": 42}}, {"id": 58, "type": "type_identifier", "text": "InitAction", "parent": 57, "children": [], "start_point": {"row": 15, "column": 20}, "end_point": {"row": 15, "column": 30}}, {"id": 59, "type": "identifier", "text": "init_action", "parent": 57, "children": [], "start_point": {"row": 15, "column": 31}, "end_point": {"row": 15, "column": 42}}, {"id": 60, "type": "declaration", "text": "virtual void RunMaintenance(InitAction init_action);", "parent": 12, "children": [61, 62, 64], "start_point": {"row": 16, "column": 2}, "end_point": {"row": 16, "column": 54}}, {"id": 61, "type": "type_identifier", "text": "virtual", "parent": 60, "children": [], "start_point": {"row": 16, "column": 2}, "end_point": {"row": 16, "column": 9}}, {"id": 62, "type": "ERROR", "text": "void", "parent": 60, "children": [63], "start_point": {"row": 16, "column": 10}, "end_point": {"row": 16, "column": 14}}, {"id": 63, "type": "identifier", "text": "void", "parent": 62, "children": [], "start_point": {"row": 16, "column": 10}, "end_point": {"row": 16, "column": 14}}, {"id": 64, "type": "function_declarator", "text": "RunMaintenance(InitAction init_action)", "parent": 60, "children": [65, 66], "start_point": {"row": 16, "column": 15}, "end_point": {"row": 16, "column": 53}}, {"id": 65, "type": "identifier", "text": "RunMaintenance", "parent": 64, "children": [], "start_point": {"row": 16, "column": 15}, "end_point": {"row": 16, "column": 29}}, {"id": 66, "type": "parameter_list", "text": "(InitAction init_action)", "parent": 64, "children": [67], "start_point": {"row": 16, "column": 29}, "end_point": {"row": 16, "column": 53}}, {"id": 67, "type": "parameter_declaration", "text": "InitAction init_action", "parent": 66, "children": [68, 69], "start_point": {"row": 16, "column": 30}, "end_point": {"row": 16, "column": 52}}, {"id": 68, "type": "type_identifier", "text": "InitAction", "parent": 67, "children": [], "start_point": {"row": 16, "column": 30}, "end_point": {"row": 16, "column": 40}}, {"id": 69, "type": "identifier", "text": "init_action", "parent": 67, "children": [], "start_point": {"row": 16, "column": 41}, "end_point": {"row": 16, "column": 52}}, {"id": 70, "type": "declaration", "text": "virtual void SetupViewpointTransition(int64_t viewpoint_id, const DBHandle& updates);", "parent": 12, "children": [71, 72, 74], "start_point": {"row": 18, "column": 2}, "end_point": {"row": 18, "column": 87}}, {"id": 71, "type": "type_identifier", "text": "virtual", "parent": 70, "children": [], "start_point": {"row": 18, "column": 2}, "end_point": {"row": 18, "column": 9}}, {"id": 72, "type": "ERROR", "text": "void", "parent": 70, "children": [73], "start_point": {"row": 18, "column": 10}, "end_point": {"row": 18, "column": 14}}, {"id": 73, "type": "identifier", "text": "void", "parent": 72, "children": [], "start_point": {"row": 18, "column": 10}, "end_point": {"row": 18, "column": 14}}, {"id": 74, "type": "function_declarator", "text": "SetupViewpointTransition(int64_t viewpoint_id, const DBHandle& updates)", "parent": 70, "children": [75, 76], "start_point": {"row": 18, "column": 15}, "end_point": {"row": 18, "column": 86}}, {"id": 75, "type": "identifier", "text": "SetupViewpointTransition", "parent": 74, "children": [], "start_point": {"row": 18, "column": 15}, "end_point": {"row": 18, "column": 39}}, {"id": 76, "type": "parameter_list", "text": "(int64_t viewpoint_id, const DBHandle& updates)", "parent": 74, "children": [77, 80], "start_point": {"row": 18, "column": 39}, "end_point": {"row": 18, "column": 86}}, {"id": 77, "type": "parameter_declaration", "text": "int64_t viewpoint_id", "parent": 76, "children": [78, 79], "start_point": {"row": 18, "column": 40}, "end_point": {"row": 18, "column": 60}}, {"id": 78, "type": "primitive_type", "text": "int64_t", "parent": 77, "children": [], "start_point": {"row": 18, "column": 40}, "end_point": {"row": 18, "column": 47}}, {"id": 79, "type": "identifier", "text": "viewpoint_id", "parent": 77, "children": [], "start_point": {"row": 18, "column": 48}, "end_point": {"row": 18, "column": 60}}, {"id": 80, "type": "parameter_declaration", "text": "const DBHandle& updates", "parent": 76, "children": [81, 82], "start_point": {"row": 18, "column": 62}, "end_point": {"row": 18, "column": 85}}, {"id": 81, "type": "type_identifier", "text": "DBHandle", "parent": 80, "children": [], "start_point": {"row": 18, "column": 68}, "end_point": {"row": 18, "column": 76}}, {"id": 82, "type": "identifier", "text": "updates", "parent": 80, "children": [], "start_point": {"row": 18, "column": 78}, "end_point": {"row": 18, "column": 85}}, {"id": 83, "type": "declaration", "text": "virtual bool CloudStorageEnabled();", "parent": 12, "children": [84, 85, 87], "start_point": {"row": 19, "column": 2}, "end_point": {"row": 19, "column": 37}}, {"id": 84, "type": "type_identifier", "text": "virtual", "parent": 83, "children": [], "start_point": {"row": 19, "column": 2}, "end_point": {"row": 19, "column": 9}}, {"id": 85, "type": "ERROR", "text": "bool", "parent": 83, "children": [86], "start_point": {"row": 19, "column": 10}, "end_point": {"row": 19, "column": 14}}, {"id": 86, "type": "identifier", "text": "bool", "parent": 85, "children": [], "start_point": {"row": 19, "column": 10}, "end_point": {"row": 19, "column": 14}}, {"id": 87, "type": "function_declarator", "text": "CloudStorageEnabled()", "parent": 83, "children": [88, 89], "start_point": {"row": 19, "column": 15}, "end_point": {"row": 19, "column": 36}}, {"id": 88, "type": "identifier", "text": "CloudStorageEnabled", "parent": 87, "children": [], "start_point": {"row": 19, "column": 15}, "end_point": {"row": 19, "column": 34}}, {"id": 89, "type": "parameter_list", "text": "()", "parent": 87, "children": [], "start_point": {"row": 19, "column": 34}, "end_point": {"row": 19, "column": 36}}, {"id": 90, "type": "declaration", "text": "virtual void DeleteAsset(const string& key);", "parent": 12, "children": [91, 92, 94], "start_point": {"row": 20, "column": 2}, "end_point": {"row": 20, "column": 46}}, {"id": 91, "type": "type_identifier", "text": "virtual", "parent": 90, "children": [], "start_point": {"row": 20, "column": 2}, "end_point": {"row": 20, "column": 9}}, {"id": 92, "type": "ERROR", "text": "void", "parent": 90, "children": [93], "start_point": {"row": 20, "column": 10}, "end_point": {"row": 20, "column": 14}}, {"id": 93, "type": "identifier", "text": "void", "parent": 92, "children": [], "start_point": {"row": 20, "column": 10}, "end_point": {"row": 20, "column": 14}}, {"id": 94, "type": "function_declarator", "text": "DeleteAsset(const string& key)", "parent": 90, "children": [95, 96], "start_point": {"row": 20, "column": 15}, "end_point": {"row": 20, "column": 45}}, {"id": 95, "type": "identifier", "text": "DeleteAsset", "parent": 94, "children": [], "start_point": {"row": 20, "column": 15}, "end_point": {"row": 20, "column": 26}}, {"id": 96, "type": "parameter_list", "text": "(const string& key)", "parent": 94, "children": [97], "start_point": {"row": 20, "column": 26}, "end_point": {"row": 20, "column": 45}}, {"id": 97, "type": "parameter_declaration", "text": "const string& key", "parent": 96, "children": [98, 99], "start_point": {"row": 20, "column": 27}, "end_point": {"row": 20, "column": 44}}, {"id": 98, "type": "type_identifier", "text": "string", "parent": 97, "children": [], "start_point": {"row": 20, "column": 33}, "end_point": {"row": 20, "column": 39}}, {"id": 99, "type": "identifier", "text": "key", "parent": 97, "children": [], "start_point": {"row": 20, "column": 41}, "end_point": {"row": 20, "column": 44}}, {"id": 100, "type": "declaration", "text": "virtual void ProcessPhotoDuplicateQueue();", "parent": 12, "children": [101, 102, 104], "start_point": {"row": 21, "column": 2}, "end_point": {"row": 21, "column": 44}}, {"id": 101, "type": "type_identifier", "text": "virtual", "parent": 100, "children": [], "start_point": {"row": 21, "column": 2}, "end_point": {"row": 21, "column": 9}}, {"id": 102, "type": "ERROR", "text": "void", "parent": 100, "children": [103], "start_point": {"row": 21, "column": 10}, "end_point": {"row": 21, "column": 14}}, {"id": 103, "type": "identifier", "text": "void", "parent": 102, "children": [], "start_point": {"row": 21, "column": 10}, "end_point": {"row": 21, "column": 14}}, {"id": 104, "type": "function_declarator", "text": "ProcessPhotoDuplicateQueue()", "parent": 100, "children": [105, 106], "start_point": {"row": 21, "column": 15}, "end_point": {"row": 21, "column": 43}}, {"id": 105, "type": "identifier", "text": "ProcessPhotoDuplicateQueue", "parent": 104, "children": [], "start_point": {"row": 21, "column": 15}, "end_point": {"row": 21, "column": 41}}, {"id": 106, "type": "parameter_list", "text": "()", "parent": 104, "children": [], "start_point": {"row": 21, "column": 41}, "end_point": {"row": 21, "column": 43}}, {"id": 107, "type": "declaration", "text": "virtual void LoadViewfinderImages(int64_t photo_id, const DBHandle& db,\n Callback<void (bool)> completion);", "parent": 12, "children": [108, 109, 111], "start_point": {"row": 22, "column": 2}, "end_point": {"row": 23, "column": 70}}, {"id": 108, "type": "type_identifier", "text": "virtual", "parent": 107, "children": [], "start_point": {"row": 22, "column": 2}, "end_point": {"row": 22, "column": 9}}, {"id": 109, "type": "ERROR", "text": "void", "parent": 107, "children": [110], "start_point": {"row": 22, "column": 10}, "end_point": {"row": 22, "column": 14}}, {"id": 110, "type": "identifier", "text": "void", "parent": 109, "children": [], "start_point": {"row": 22, "column": 10}, "end_point": {"row": 22, "column": 14}}, {"id": 111, "type": "function_declarator", "text": "LoadViewfinderImages(int64_t photo_id, const DBHandle& db,\n Callback<void (bool)> completion)", "parent": 107, "children": [112, 113], "start_point": {"row": 22, "column": 15}, "end_point": {"row": 23, "column": 69}}, {"id": 112, "type": "identifier", "text": "LoadViewfinderImages", "parent": 111, "children": [], "start_point": {"row": 22, "column": 15}, "end_point": {"row": 22, "column": 35}}, {"id": 113, "type": "parameter_list", "text": "(int64_t photo_id, const DBHandle& db,\n Callback<void (bool)> completion)", "parent": 111, "children": [114, 117, 120], "start_point": {"row": 22, "column": 35}, "end_point": {"row": 23, "column": 69}}, {"id": 114, "type": "parameter_declaration", "text": "int64_t photo_id", "parent": 113, "children": [115, 116], "start_point": {"row": 22, "column": 36}, "end_point": {"row": 22, "column": 52}}, {"id": 115, "type": "primitive_type", "text": "int64_t", "parent": 114, "children": [], "start_point": {"row": 22, "column": 36}, "end_point": {"row": 22, "column": 43}}, {"id": 116, "type": "identifier", "text": "photo_id", "parent": 114, "children": [], "start_point": {"row": 22, "column": 44}, "end_point": {"row": 22, "column": 52}}, {"id": 117, "type": "parameter_declaration", "text": "const DBHandle& db", "parent": 113, "children": [118, 119], "start_point": {"row": 22, "column": 54}, "end_point": {"row": 22, "column": 72}}, {"id": 118, "type": "type_identifier", "text": "DBHandle", "parent": 117, "children": [], "start_point": {"row": 22, "column": 60}, "end_point": {"row": 22, "column": 68}}, {"id": 119, "type": "identifier", "text": "db", "parent": 117, "children": [], "start_point": {"row": 22, "column": 70}, "end_point": {"row": 22, "column": 72}}, {"id": 120, "type": "parameter_declaration", "text": "Callback<void (bool)> completion", "parent": 113, "children": [121, 128, 130], "start_point": {"row": 23, "column": 36}, "end_point": {"row": 23, "column": 68}}, {"id": 121, "type": "macro_type_specifier", "text": "Callback<void (bool)", "parent": 120, "children": [122, 123, 126], "start_point": {"row": 23, "column": 36}, "end_point": {"row": 23, "column": 56}}, {"id": 122, "type": "identifier", "text": "Callback", "parent": 121, "children": [], "start_point": {"row": 23, "column": 36}, "end_point": {"row": 23, "column": 44}}, {"id": 123, "type": "ERROR", "text": "<void", "parent": 121, "children": [124, 125], "start_point": {"row": 23, "column": 44}, "end_point": {"row": 23, "column": 49}}, {"id": 124, "type": "<", "text": "<", "parent": 123, "children": [], "start_point": {"row": 23, "column": 44}, "end_point": {"row": 23, "column": 45}}, {"id": 125, "type": "primitive_type", "text": "void", "parent": 123, "children": [], "start_point": {"row": 23, "column": 45}, "end_point": {"row": 23, "column": 49}}, {"id": 126, "type": "type_descriptor", "text": "bool", "parent": 121, "children": [127], "start_point": {"row": 23, "column": 51}, "end_point": {"row": 23, "column": 55}}, {"id": 127, "type": "primitive_type", "text": "bool", "parent": 126, "children": [], "start_point": {"row": 23, "column": 51}, "end_point": {"row": 23, "column": 55}}, {"id": 128, "type": "ERROR", "text": ">", "parent": 120, "children": [129], "start_point": {"row": 23, "column": 56}, "end_point": {"row": 23, "column": 57}}, {"id": 129, "type": ">", "text": ">", "parent": 128, "children": [], "start_point": {"row": 23, "column": 56}, "end_point": {"row": 23, "column": 57}}, {"id": 130, "type": "identifier", "text": "completion", "parent": 120, "children": [], "start_point": {"row": 23, "column": 58}, "end_point": {"row": 23, "column": 68}}, {"id": 131, "type": "ERROR", "text": "virtual int TimeZoneOffset(WallTime t) const", "parent": 12, "children": [132, 133, 135], "start_point": {"row": 24, "column": 2}, "end_point": {"row": 24, "column": 46}}, {"id": 132, "type": "type_identifier", "text": "virtual", "parent": 131, "children": [], "start_point": {"row": 24, "column": 2}, "end_point": {"row": 24, "column": 9}}, {"id": 133, "type": "ERROR", "text": "int", "parent": 131, "children": [134], "start_point": {"row": 24, "column": 10}, "end_point": {"row": 24, "column": 13}}, {"id": 134, "type": "identifier", "text": "int", "parent": 133, "children": [], "start_point": {"row": 24, "column": 10}, "end_point": {"row": 24, "column": 13}}, {"id": 135, "type": "function_declarator", "text": "TimeZoneOffset(WallTime t) const", "parent": 131, "children": [136, 137], "start_point": {"row": 24, "column": 14}, "end_point": {"row": 24, "column": 46}}, {"id": 136, "type": "identifier", "text": "TimeZoneOffset", "parent": 135, "children": [], "start_point": {"row": 24, "column": 14}, "end_point": {"row": 24, "column": 28}}, {"id": 137, "type": "parameter_list", "text": "(WallTime t)", "parent": 135, "children": [138], "start_point": {"row": 24, "column": 28}, "end_point": {"row": 24, "column": 40}}, {"id": 138, "type": "parameter_declaration", "text": "WallTime t", "parent": 137, "children": [139, 140], "start_point": {"row": 24, "column": 29}, "end_point": {"row": 24, "column": 39}}, {"id": 139, "type": "type_identifier", "text": "WallTime", "parent": 138, "children": [], "start_point": {"row": 24, "column": 29}, "end_point": {"row": 24, "column": 37}}, {"id": 140, "type": "identifier", "text": "t", "parent": 138, "children": [], "start_point": {"row": 24, "column": 38}, "end_point": {"row": 24, "column": 39}}, {"id": 141, "type": "function_definition", "text": "virtual SubscriptionManager* subscription_manager() const { return NULL; }", "parent": 12, "children": [142, 143, 145], "start_point": {"row": 26, "column": 2}, "end_point": {"row": 26, "column": 76}}, {"id": 142, "type": "type_identifier", "text": "virtual", "parent": 141, "children": [], "start_point": {"row": 26, "column": 2}, "end_point": {"row": 26, "column": 9}}, {"id": 143, "type": "ERROR", "text": "SubscriptionManager", "parent": 141, "children": [144], "start_point": {"row": 26, "column": 10}, "end_point": {"row": 26, "column": 29}}, {"id": 144, "type": "identifier", "text": "SubscriptionManager", "parent": 143, "children": [], "start_point": {"row": 26, "column": 10}, "end_point": {"row": 26, "column": 29}}, {"id": 145, "type": "pointer_declarator", "text": "* subscription_manager() const", "parent": 141, "children": [146, 147], "start_point": {"row": 26, "column": 29}, "end_point": {"row": 26, "column": 59}}, {"id": 146, "type": "*", "text": "*", "parent": 145, "children": [], "start_point": {"row": 26, "column": 29}, "end_point": {"row": 26, "column": 30}}, {"id": 147, "type": "function_declarator", "text": "subscription_manager() const", "parent": 145, "children": [148, 149], "start_point": {"row": 26, "column": 31}, "end_point": {"row": 26, "column": 59}}, {"id": 148, "type": "identifier", "text": "subscription_manager", "parent": 147, "children": [], "start_point": {"row": 26, "column": 31}, "end_point": {"row": 26, "column": 51}}, {"id": 149, "type": "parameter_list", "text": "()", "parent": 147, "children": [], "start_point": {"row": 26, "column": 51}, "end_point": {"row": 26, "column": 53}}, {"id": 150, "type": "return_statement", "text": "return NULL;", "parent": 141, "children": [151], "start_point": {"row": 26, "column": 62}, "end_point": {"row": 26, "column": 74}}, {"id": 151, "type": "null", "text": "NULL", "parent": 150, "children": [152], "start_point": {"row": 26, "column": 69}, "end_point": {"row": 26, "column": 73}}, {"id": 152, "type": "NULL", "text": "NULL", "parent": 151, "children": [], "start_point": {"row": 26, "column": 69}, "end_point": {"row": 26, "column": 73}}, {"id": 153, "type": "ERROR", "text": "virtual string timezone() const;\n\n JNIEnv* jni_env() const {\n return GetJNIEnv(jvm_);", "parent": 12, "children": [154, 155, 157, 160], "start_point": {"row": 28, "column": 2}, "end_point": {"row": 31, "column": 27}}, {"id": 154, "type": "type_identifier", "text": "virtual", "parent": 153, "children": [], "start_point": {"row": 28, "column": 2}, "end_point": {"row": 28, "column": 9}}, {"id": 155, "type": "ERROR", "text": "string", "parent": 153, "children": [156], "start_point": {"row": 28, "column": 10}, "end_point": {"row": 28, "column": 16}}, {"id": 156, "type": "identifier", "text": "string", "parent": 155, "children": [], "start_point": {"row": 28, "column": 10}, "end_point": {"row": 28, "column": 16}}, {"id": 157, "type": "function_declarator", "text": "timezone()", "parent": 153, "children": [158, 159], "start_point": {"row": 28, "column": 17}, "end_point": {"row": 28, "column": 27}}, {"id": 158, "type": "identifier", "text": "timezone", "parent": 157, "children": [], "start_point": {"row": 28, "column": 17}, "end_point": {"row": 28, "column": 25}}, {"id": 159, "type": "parameter_list", "text": "()", "parent": 157, "children": [], "start_point": {"row": 28, "column": 25}, "end_point": {"row": 28, "column": 27}}, {"id": 160, "type": "declaration", "text": "const;\n\n JNIEnv* jni_env() const {\n return GetJNIEnv(jvm_);", "parent": 153, "children": [161, 162, 168], "start_point": {"row": 28, "column": 28}, "end_point": {"row": 31, "column": 27}}, {"id": 161, "type": "type_identifier", "text": "JNIEnv", "parent": 160, "children": [], "start_point": {"row": 30, "column": 2}, "end_point": {"row": 30, "column": 8}}, {"id": 162, "type": "ERROR", "text": "* jni_env() const {\n return", "parent": 160, "children": [163], "start_point": {"row": 30, "column": 8}, "end_point": {"row": 31, "column": 10}}, {"id": 163, "type": "pointer_declarator", "text": "* jni_env() const", "parent": 162, "children": [164, 165], "start_point": {"row": 30, "column": 8}, "end_point": {"row": 30, "column": 25}}, {"id": 164, "type": "*", "text": "*", "parent": 163, "children": [], "start_point": {"row": 30, "column": 8}, "end_point": {"row": 30, "column": 9}}, {"id": 165, "type": "function_declarator", "text": "jni_env() const", "parent": 163, "children": [166, 167], "start_point": {"row": 30, "column": 10}, "end_point": {"row": 30, "column": 25}}, {"id": 166, "type": "identifier", "text": "jni_env", "parent": 165, "children": [], "start_point": {"row": 30, "column": 10}, "end_point": {"row": 30, "column": 17}}, {"id": 167, "type": "parameter_list", "text": "()", "parent": 165, "children": [], "start_point": {"row": 30, "column": 17}, "end_point": {"row": 30, "column": 19}}, {"id": 168, "type": "function_declarator", "text": "GetJNIEnv(jvm_)", "parent": 160, "children": [169, 170], "start_point": {"row": 31, "column": 11}, "end_point": {"row": 31, "column": 26}}, {"id": 169, "type": "identifier", "text": "GetJNIEnv", "parent": 168, "children": [], "start_point": {"row": 31, "column": 11}, "end_point": {"row": 31, "column": 20}}, {"id": 170, "type": "parameter_list", "text": "(jvm_)", "parent": 168, "children": [171], "start_point": {"row": 31, "column": 20}, "end_point": {"row": 31, "column": 26}}, {"id": 171, "type": "parameter_declaration", "text": "jvm_", "parent": 170, "children": [172], "start_point": {"row": 31, "column": 21}, "end_point": {"row": 31, "column": 25}}, {"id": 172, "type": "type_identifier", "text": "jvm_", "parent": 171, "children": [], "start_point": {"row": 31, "column": 21}, "end_point": {"row": 31, "column": 25}}, {"id": 173, "type": "ERROR", "text": "ScopedLocalRef<jobject> app_state(JNIEnv* env) const", "parent": 0, "children": [174], "start_point": {"row": 34, "column": 2}, "end_point": {"row": 34, "column": 54}}, {"id": 174, "type": "binary_expression", "text": "ScopedLocalRef<jobject> app_state(JNIEnv* env)", "parent": 173, "children": [175, 179, 180], "start_point": {"row": 34, "column": 2}, "end_point": {"row": 34, "column": 48}}, {"id": 175, "type": "binary_expression", "text": "ScopedLocalRef<jobject", "parent": 174, "children": [176, 177, 178], "start_point": {"row": 34, "column": 2}, "end_point": {"row": 34, "column": 24}}, {"id": 176, "type": "identifier", "text": "ScopedLocalRef", "parent": 175, "children": [], "start_point": {"row": 34, "column": 2}, "end_point": {"row": 34, "column": 16}}, {"id": 177, "type": "<", "text": "<", "parent": 175, "children": [], "start_point": {"row": 34, "column": 16}, "end_point": {"row": 34, "column": 17}}, {"id": 178, "type": "identifier", "text": "jobject", "parent": 175, "children": [], "start_point": {"row": 34, "column": 17}, "end_point": {"row": 34, "column": 24}}, {"id": 179, "type": ">", "text": ">", "parent": 174, "children": [], "start_point": {"row": 34, "column": 24}, "end_point": {"row": 34, "column": 25}}, {"id": 180, "type": "call_expression", "text": "app_state(JNIEnv* env)", "parent": 174, "children": [181, 182], "start_point": {"row": 34, "column": 26}, "end_point": {"row": 34, "column": 48}}, {"id": 181, "type": "identifier", "text": "app_state", "parent": 180, "children": [], "start_point": {"row": 34, "column": 26}, "end_point": {"row": 34, "column": 35}}, {"id": 182, "type": "argument_list", "text": "(JNIEnv* env)", "parent": 180, "children": [183], "start_point": {"row": 34, "column": 35}, "end_point": {"row": 34, "column": 48}}, {"id": 183, "type": "binary_expression", "text": "JNIEnv* env", "parent": 182, "children": [184, 185, 186], "start_point": {"row": 34, "column": 36}, "end_point": {"row": 34, "column": 47}}, {"id": 184, "type": "identifier", "text": "JNIEnv", "parent": 183, "children": [], "start_point": {"row": 34, "column": 36}, "end_point": {"row": 34, "column": 42}}, {"id": 185, "type": "*", "text": "*", "parent": 183, "children": [], "start_point": {"row": 34, "column": 42}, "end_point": {"row": 34, "column": 43}}, {"id": 186, "type": "identifier", "text": "env", "parent": 183, "children": [], "start_point": {"row": 34, "column": 44}, "end_point": {"row": 34, "column": 47}}, {"id": 187, "type": "return_statement", "text": "return ScopedLocalRef<jobject>(env, env->NewLocalRef(weak_app_state_));", "parent": 0, "children": [188], "start_point": {"row": 35, "column": 4}, "end_point": {"row": 35, "column": 75}}, {"id": 188, "type": "binary_expression", "text": "ScopedLocalRef<jobject>(env, env->NewLocalRef(weak_app_state_))", "parent": 187, "children": [189, 193, 194], "start_point": {"row": 35, "column": 11}, "end_point": {"row": 35, "column": 74}}, {"id": 189, "type": "binary_expression", "text": "ScopedLocalRef<jobject", "parent": 188, "children": [190, 191, 192], "start_point": {"row": 35, "column": 11}, "end_point": {"row": 35, "column": 33}}, {"id": 190, "type": "identifier", "text": "ScopedLocalRef", "parent": 189, "children": [], "start_point": {"row": 35, "column": 11}, "end_point": {"row": 35, "column": 25}}, {"id": 191, "type": "<", "text": "<", "parent": 189, "children": [], "start_point": {"row": 35, "column": 25}, "end_point": {"row": 35, "column": 26}}, {"id": 192, "type": "identifier", "text": "jobject", "parent": 189, "children": [], "start_point": {"row": 35, "column": 26}, "end_point": {"row": 35, "column": 33}}, {"id": 193, "type": ">", "text": ">", "parent": 188, "children": [], "start_point": {"row": 35, "column": 33}, "end_point": {"row": 35, "column": 34}}, {"id": 194, "type": "parenthesized_expression", "text": "(env, env->NewLocalRef(weak_app_state_))", "parent": 188, "children": [195], "start_point": {"row": 35, "column": 34}, "end_point": {"row": 35, "column": 74}}, {"id": 195, "type": "comma_expression", "text": "env, env->NewLocalRef(weak_app_state_)", "parent": 194, "children": [196, 197], "start_point": {"row": 35, "column": 35}, "end_point": {"row": 35, "column": 73}}, {"id": 196, "type": "identifier", "text": "env", "parent": 195, "children": [], "start_point": {"row": 35, "column": 35}, "end_point": {"row": 35, "column": 38}}, {"id": 197, "type": "call_expression", "text": "env->NewLocalRef(weak_app_state_)", "parent": 195, "children": [198, 201], "start_point": {"row": 35, "column": 40}, "end_point": {"row": 35, "column": 73}}, {"id": 198, "type": "field_expression", "text": "env->NewLocalRef", "parent": 197, "children": [199, 200], "start_point": {"row": 35, "column": 40}, "end_point": {"row": 35, "column": 56}}, {"id": 199, "type": "identifier", "text": "env", "parent": 198, "children": [], "start_point": {"row": 35, "column": 40}, "end_point": {"row": 35, "column": 43}}, {"id": 200, "type": "field_identifier", "text": "NewLocalRef", "parent": 198, "children": [], "start_point": {"row": 35, "column": 45}, "end_point": {"row": 35, "column": 56}}, {"id": 201, "type": "argument_list", "text": "(weak_app_state_)", "parent": 197, "children": [202], "start_point": {"row": 35, "column": 56}, "end_point": {"row": 35, "column": 73}}, {"id": 202, "type": "identifier", "text": "weak_app_state_", "parent": 201, "children": [], "start_point": {"row": 35, "column": 57}, "end_point": {"row": 35, "column": 72}}, {"id": 203, "type": "ERROR", "text": "ScopedLocalRef<jobject> app_state() const", "parent": 0, "children": [204], "start_point": {"row": 38, "column": 2}, "end_point": {"row": 38, "column": 43}}, {"id": 204, "type": "binary_expression", "text": "ScopedLocalRef<jobject> app_state()", "parent": 203, "children": [205, 209, 210], "start_point": {"row": 38, "column": 2}, "end_point": {"row": 38, "column": 37}}, {"id": 205, "type": "binary_expression", "text": "ScopedLocalRef<jobject", "parent": 204, "children": [206, 207, 208], "start_point": {"row": 38, "column": 2}, "end_point": {"row": 38, "column": 24}}, {"id": 206, "type": "identifier", "text": "ScopedLocalRef", "parent": 205, "children": [], "start_point": {"row": 38, "column": 2}, "end_point": {"row": 38, "column": 16}}, {"id": 207, "type": "<", "text": "<", "parent": 205, "children": [], "start_point": {"row": 38, "column": 16}, "end_point": {"row": 38, "column": 17}}, {"id": 208, "type": "identifier", "text": "jobject", "parent": 205, "children": [], "start_point": {"row": 38, "column": 17}, "end_point": {"row": 38, "column": 24}}, {"id": 209, "type": ">", "text": ">", "parent": 204, "children": [], "start_point": {"row": 38, "column": 24}, "end_point": {"row": 38, "column": 25}}, {"id": 210, "type": "call_expression", "text": "app_state()", "parent": 204, "children": [211, 212], "start_point": {"row": 38, "column": 26}, "end_point": {"row": 38, "column": 37}}, {"id": 211, "type": "identifier", "text": "app_state", "parent": 210, "children": [], "start_point": {"row": 38, "column": 26}, "end_point": {"row": 38, "column": 35}}, {"id": 212, "type": "argument_list", "text": "()", "parent": 210, "children": [], "start_point": {"row": 38, "column": 35}, "end_point": {"row": 38, "column": 37}}, {"id": 213, "type": "declaration", "text": "JNIEnv* env = jni_env();", "parent": 0, "children": [214, 215], "start_point": {"row": 39, "column": 4}, "end_point": {"row": 39, "column": 28}}, {"id": 214, "type": "type_identifier", "text": "JNIEnv", "parent": 213, "children": [], "start_point": {"row": 39, "column": 4}, "end_point": {"row": 39, "column": 10}}, {"id": 215, "type": "init_declarator", "text": "* env = jni_env()", "parent": 213, "children": [216, 219, 220], "start_point": {"row": 39, "column": 10}, "end_point": {"row": 39, "column": 27}}, {"id": 216, "type": "pointer_declarator", "text": "* env", "parent": 215, "children": [217, 218], "start_point": {"row": 39, "column": 10}, "end_point": {"row": 39, "column": 15}}, {"id": 217, "type": "*", "text": "*", "parent": 216, "children": [], "start_point": {"row": 39, "column": 10}, "end_point": {"row": 39, "column": 11}}, {"id": 218, "type": "identifier", "text": "env", "parent": 216, "children": [], "start_point": {"row": 39, "column": 12}, "end_point": {"row": 39, "column": 15}}, {"id": 219, "type": "=", "text": "=", "parent": 215, "children": [], "start_point": {"row": 39, "column": 16}, "end_point": {"row": 39, "column": 17}}, {"id": 220, "type": "call_expression", "text": "jni_env()", "parent": 215, "children": [221, 222], "start_point": {"row": 39, "column": 18}, "end_point": {"row": 39, "column": 27}}, {"id": 221, "type": "identifier", "text": "jni_env", "parent": 220, "children": [], "start_point": {"row": 39, "column": 18}, "end_point": {"row": 39, "column": 25}}, {"id": 222, "type": "argument_list", "text": "()", "parent": 220, "children": [], "start_point": {"row": 39, "column": 25}, "end_point": {"row": 39, "column": 27}}, {"id": 223, "type": "return_statement", "text": "return ScopedLocalRef<jobject>(env, env->NewLocalRef(weak_app_state_));", "parent": 0, "children": [224], "start_point": {"row": 40, "column": 4}, "end_point": {"row": 40, "column": 75}}, {"id": 224, "type": "binary_expression", "text": "ScopedLocalRef<jobject>(env, env->NewLocalRef(weak_app_state_))", "parent": 223, "children": [225, 229, 230], "start_point": {"row": 40, "column": 11}, "end_point": {"row": 40, "column": 74}}, {"id": 225, "type": "binary_expression", "text": "ScopedLocalRef<jobject", "parent": 224, "children": [226, 227, 228], "start_point": {"row": 40, "column": 11}, "end_point": {"row": 40, "column": 33}}, {"id": 226, "type": "identifier", "text": "ScopedLocalRef", "parent": 225, "children": [], "start_point": {"row": 40, "column": 11}, "end_point": {"row": 40, "column": 25}}, {"id": 227, "type": "<", "text": "<", "parent": 225, "children": [], "start_point": {"row": 40, "column": 25}, "end_point": {"row": 40, "column": 26}}, {"id": 228, "type": "identifier", "text": "jobject", "parent": 225, "children": [], "start_point": {"row": 40, "column": 26}, "end_point": {"row": 40, "column": 33}}, {"id": 229, "type": ">", "text": ">", "parent": 224, "children": [], "start_point": {"row": 40, "column": 33}, "end_point": {"row": 40, "column": 34}}, {"id": 230, "type": "parenthesized_expression", "text": "(env, env->NewLocalRef(weak_app_state_))", "parent": 224, "children": [231], "start_point": {"row": 40, "column": 34}, "end_point": {"row": 40, "column": 74}}, {"id": 231, "type": "comma_expression", "text": "env, env->NewLocalRef(weak_app_state_)", "parent": 230, "children": [232, 233], "start_point": {"row": 40, "column": 35}, "end_point": {"row": 40, "column": 73}}, {"id": 232, "type": "identifier", "text": "env", "parent": 231, "children": [], "start_point": {"row": 40, "column": 35}, "end_point": {"row": 40, "column": 38}}, {"id": 233, "type": "call_expression", "text": "env->NewLocalRef(weak_app_state_)", "parent": 231, "children": [234, 237], "start_point": {"row": 40, "column": 40}, "end_point": {"row": 40, "column": 73}}, {"id": 234, "type": "field_expression", "text": "env->NewLocalRef", "parent": 233, "children": [235, 236], "start_point": {"row": 40, "column": 40}, "end_point": {"row": 40, "column": 56}}, {"id": 235, "type": "identifier", "text": "env", "parent": 234, "children": [], "start_point": {"row": 40, "column": 40}, "end_point": {"row": 40, "column": 43}}, {"id": 236, "type": "field_identifier", "text": "NewLocalRef", "parent": 234, "children": [], "start_point": {"row": 40, "column": 45}, "end_point": {"row": 40, "column": 56}}, {"id": 237, "type": "argument_list", "text": "(weak_app_state_)", "parent": 233, "children": [238], "start_point": {"row": 40, "column": 56}, "end_point": {"row": 40, "column": 73}}, {"id": 238, "type": "identifier", "text": "weak_app_state_", "parent": 237, "children": [], "start_point": {"row": 40, "column": 57}, "end_point": {"row": 40, "column": 72}}, {"id": 239, "type": "labeled_statement", "text": "protected:\n virtual DayTableEnv", "parent": 0, "children": [240], "start_point": {"row": 43, "column": 1}, "end_point": {"row": 44, "column": 21}}, {"id": 240, "type": "declaration", "text": "virtual DayTableEnv", "parent": 239, "children": [241, 242], "start_point": {"row": 44, "column": 2}, "end_point": {"row": 44, "column": 21}}, {"id": 241, "type": "type_identifier", "text": "virtual", "parent": 240, "children": [], "start_point": {"row": 44, "column": 2}, "end_point": {"row": 44, "column": 9}}, {"id": 242, "type": "identifier", "text": "DayTableEnv", "parent": 240, "children": [], "start_point": {"row": 44, "column": 10}, "end_point": {"row": 44, "column": 21}}, {"id": 243, "type": "pointer_expression", "text": "* NewDayTableEnv()", "parent": 0, "children": [244, 245], "start_point": {"row": 44, "column": 21}, "end_point": {"row": 44, "column": 39}}, {"id": 244, "type": "*", "text": "*", "parent": 243, "children": [], "start_point": {"row": 44, "column": 21}, "end_point": {"row": 44, "column": 22}}, {"id": 245, "type": "call_expression", "text": "NewDayTableEnv()", "parent": 243, "children": [246, 247], "start_point": {"row": 44, "column": 23}, "end_point": {"row": 44, "column": 39}}, {"id": 246, "type": "identifier", "text": "NewDayTableEnv", "parent": 245, "children": [], "start_point": {"row": 44, "column": 23}, "end_point": {"row": 44, "column": 37}}, {"id": 247, "type": "argument_list", "text": "()", "parent": 245, "children": [], "start_point": {"row": 44, "column": 37}, "end_point": {"row": 44, "column": 39}}, {"id": 248, "type": "declaration", "text": "virtual bool MaybeMigrate(ProgressUpdateBlock progress_update);", "parent": 0, "children": [249, 250, 252], "start_point": {"row": 45, "column": 2}, "end_point": {"row": 45, "column": 65}}, {"id": 249, "type": "type_identifier", "text": "virtual", "parent": 248, "children": [], "start_point": {"row": 45, "column": 2}, "end_point": {"row": 45, "column": 9}}, {"id": 250, "type": "ERROR", "text": "bool", "parent": 248, "children": [251], "start_point": {"row": 45, "column": 10}, "end_point": {"row": 45, "column": 14}}, {"id": 251, "type": "identifier", "text": "bool", "parent": 250, "children": [], "start_point": {"row": 45, "column": 10}, "end_point": {"row": 45, "column": 14}}, {"id": 252, "type": "function_declarator", "text": "MaybeMigrate(ProgressUpdateBlock progress_update)", "parent": 248, "children": [253, 254], "start_point": {"row": 45, "column": 15}, "end_point": {"row": 45, "column": 64}}, {"id": 253, "type": "identifier", "text": "MaybeMigrate", "parent": 252, "children": [], "start_point": {"row": 45, "column": 15}, "end_point": {"row": 45, "column": 27}}, {"id": 254, "type": "parameter_list", "text": "(ProgressUpdateBlock progress_update)", "parent": 252, "children": [255], "start_point": {"row": 45, "column": 27}, "end_point": {"row": 45, "column": 64}}, {"id": 255, "type": "parameter_declaration", "text": "ProgressUpdateBlock progress_update", "parent": 254, "children": [256, 257], "start_point": {"row": 45, "column": 28}, "end_point": {"row": 45, "column": 63}}, {"id": 256, "type": "type_identifier", "text": "ProgressUpdateBlock", "parent": 255, "children": [], "start_point": {"row": 45, "column": 28}, "end_point": {"row": 45, "column": 47}}, {"id": 257, "type": "identifier", "text": "progress_update", "parent": 255, "children": [], "start_point": {"row": 45, "column": 48}, "end_point": {"row": 45, "column": 63}}, {"id": 258, "type": "labeled_statement", "text": "private:\n JavaVM* const jvm_;", "parent": 0, "children": [259], "start_point": {"row": 47, "column": 1}, "end_point": {"row": 48, "column": 21}}, {"id": 259, "type": "declaration", "text": "JavaVM* const jvm_;", "parent": 258, "children": [260, 261], "start_point": {"row": 48, "column": 2}, "end_point": {"row": 48, "column": 21}}, {"id": 260, "type": "type_identifier", "text": "JavaVM", "parent": 259, "children": [], "start_point": {"row": 48, "column": 2}, "end_point": {"row": 48, "column": 8}}, {"id": 261, "type": "pointer_declarator", "text": "* const jvm_", "parent": 259, "children": [262, 263], "start_point": {"row": 48, "column": 8}, "end_point": {"row": 48, "column": 20}}, {"id": 262, "type": "*", "text": "*", "parent": 261, "children": [], "start_point": {"row": 48, "column": 8}, "end_point": {"row": 48, "column": 9}}, {"id": 263, "type": "identifier", "text": "jvm_", "parent": 261, "children": [], "start_point": {"row": 48, "column": 16}, "end_point": {"row": 48, "column": 20}}, {"id": 264, "type": "declaration", "text": "jweak weak_app_state_;", "parent": 0, "children": [265, 266], "start_point": {"row": 49, "column": 2}, "end_point": {"row": 49, "column": 24}}, {"id": 265, "type": "type_identifier", "text": "jweak", "parent": 264, "children": [], "start_point": {"row": 49, "column": 2}, "end_point": {"row": 49, "column": 7}}, {"id": 266, "type": "identifier", "text": "weak_app_state_", "parent": 264, "children": [], "start_point": {"row": 49, "column": 8}, "end_point": {"row": 49, "column": 23}}, {"id": 267, "type": "#endif", "text": "#endif", "parent": 0, "children": [], "start_point": {"row": 52, "column": 0}, "end_point": {"row": 52, "column": 6}}]}, "node_categories": {"declarations": {"functions": [12, 40, 47, 54, 64, 74, 87, 94, 104, 111, 135, 141, 147, 157, 165, 168, 252], "variables": [36, 43, 50, 57, 60, 67, 70, 77, 80, 83, 90, 97, 100, 107, 114, 117, 120, 138, 160, 171, 213, 240, 248, 255, 259, 264], "classes": [], "imports": [6, 7, 9, 10], "modules": [], "enums": []}, "statements": {"expressions": [17, 18, 26, 28, 29, 174, 175, 180, 183, 188, 189, 194, 195, 197, 198, 204, 205, 210, 220, 224, 225, 230, 231, 233, 234, 243, 245], "assignments": [], "loops": [], "conditionals": [0, 1, 2, 5, 13, 15, 19, 22, 23, 25, 27, 30, 32, 33, 35, 37, 41, 44, 46, 48, 51, 53, 55, 58, 59, 61, 63, 65, 68, 69, 71, 73, 75, 79, 81, 82, 84, 86, 88, 91, 93, 95, 98, 99, 101, 103, 105, 108, 110, 112, 116, 118, 119, 121, 122, 130, 132, 134, 136, 139, 140, 142, 144, 148, 154, 156, 158, 161, 166, 169, 172, 176, 178, 181, 184, 186, 190, 192, 196, 199, 200, 202, 206, 208, 211, 214, 218, 221, 226, 228, 232, 235, 236, 238, 241, 242, 246, 249, 251, 253, 256, 257, 260, 263, 265, 266, 267], "returns": [150, 187, 223], "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": "NativeAppState", "text_snippet": "class NativeAppState : public AppState {\n public:\n NativeAppState(const string& base_dir, int serve"}, {"node_id": 40, "universal_type": "function", "name": "unknown", "text_snippet": "NativeAppState()"}, {"node_id": 47, "universal_type": "function", "name": "unknown", "text_snippet": "GetInitAction()"}, {"node_id": 54, "universal_type": "function", "name": "unknown", "text_snippet": "Init(InitAction init_action)"}, {"node_id": 64, "universal_type": "function", "name": "unknown", "text_snippet": "RunMaintenance(InitAction init_action)"}, {"node_id": 74, "universal_type": "function", "name": "unknown", "text_snippet": "SetupViewpointTransition(int64_t viewpoint_id, const DBHandle& updates)"}, {"node_id": 87, "universal_type": "function", "name": "unknown", "text_snippet": "CloudStorageEnabled()"}, {"node_id": 94, "universal_type": "function", "name": "unknown", "text_snippet": "DeleteAsset(const string& key)"}, {"node_id": 104, "universal_type": "function", "name": "unknown", "text_snippet": "ProcessPhotoDuplicateQueue()"}, {"node_id": 111, "universal_type": "function", "name": "unknown", "text_snippet": "LoadViewfinderImages(int64_t photo_id, const DBHandle& db,\n Callb"}, {"node_id": 135, "universal_type": "function", "name": "unknown", "text_snippet": "TimeZoneOffset(WallTime t) const"}, {"node_id": 141, "universal_type": "function", "name": "unknown", "text_snippet": "virtual SubscriptionManager* subscription_manager() const { return NULL; }"}, {"node_id": 147, "universal_type": "function", "name": "unknown", "text_snippet": "subscription_manager() const"}, {"node_id": 157, "universal_type": "function", "name": "unknown", "text_snippet": "timezone()"}, {"node_id": 165, "universal_type": "function", "name": "unknown", "text_snippet": "jni_env() const"}, {"node_id": 168, "universal_type": "function", "name": "unknown", "text_snippet": "GetJNIEnv(jvm_)"}, {"node_id": 252, "universal_type": "function", "name": "unknown", "text_snippet": "MaybeMigrate(ProgressUpdateBlock progress_update)"}], "class_declarations": [], "import_statements": [{"node_id": 6, "text": "#include \"AppState.h\"\n"}, {"node_id": 7, "text": "#include"}, {"node_id": 9, "text": "#include \"JNIUtils.h\"\n"}, {"node_id": 10, "text": "#include"}]}, "original_source_code": "// Copyright 2013 Viewfinder. All rights reserved.\n// Author: <NAME>\n\n#ifndef VIEWFINDER_JNI_NATIVE_APP_STATE_H\n#define VIEWFINDER_JNI_NATIVE_APP_STATE_H\n\n#include \"AppState.h\"\n#include \"JNIUtils.h\"\n\nclass NativeAppState : public AppState {\n public:\n NativeAppState(const string& base_dir, int server_port, JNIEnv* env, jobject app_state);\n virtual ~NativeAppState();\n\n virtual InitAction GetInitAction();\n virtual bool Init(InitAction init_action);\n virtual void RunMaintenance(InitAction init_action);\n\n virtual void SetupViewpointTransition(int64_t viewpoint_id, const DBHandle& updates);\n virtual bool CloudStorageEnabled();\n virtual void DeleteAsset(const string& key);\n virtual void ProcessPhotoDuplicateQueue();\n virtual void LoadViewfinderImages(int64_t photo_id, const DBHandle& db,\n Callback<void (bool)> completion);\n virtual int TimeZoneOffset(WallTime t) const;\n\n virtual SubscriptionManager* subscription_manager() const { return NULL; }\n\n virtual string timezone() const;\n\n JNIEnv* jni_env() const {\n return GetJNIEnv(jvm_);\n }\n\n ScopedLocalRef<jobject> app_state(JNIEnv* env) const {\n return ScopedLocalRef<jobject>(env, env->NewLocalRef(weak_app_state_));\n }\n\n ScopedLocalRef<jobject> app_state() const {\n JNIEnv* env = jni_env();\n return ScopedLocalRef<jobject>(env, env->NewLocalRef(weak_app_state_));\n }\n\n protected:\n virtual DayTableEnv* NewDayTableEnv();\n virtual bool MaybeMigrate(ProgressUpdateBlock progress_update);\n\n private:\n JavaVM* const jvm_;\n jweak weak_app_state_;\n};\n\n#endif // VIEWFINDER_JNI_NATIVE_APP_STATE_H\n"}
80,053
c
/* Generated by RuntimeBrowser Image: /System/Library/PrivateFrameworks/CoreWiFi.framework/Versions/A/CoreWiFi */ @interface CoreWiFiClient : CoreWiFiMAC { unsigned long long createTime; unsigned long long deauthReason; BOOL isAssociated; BOOL isWOWSleep; unsigned long long joinTime; unsigned long long leftTime; } @property (nonatomic, readwrite) unsigned long long createTime; @property (nonatomic, readwrite) unsigned long long deauthReason; @property (nonatomic, readwrite) BOOL isAssociated; @property (nonatomic, readwrite) BOOL isWOWSleep; @property (nonatomic, readwrite) unsigned long long joinTime; @property (nonatomic, readwrite) unsigned long long leftTime; - (unsigned long long)createTime; - (void)dealloc; - (unsigned long long)deauthReason; - (id)debugDescription; - (id)description; - (id)initWithMAC:(id)arg1 interfaceName:(id)arg2 channel:(long long)arg3 ies:(id)arg4; - (id)initWithSkeleton:(id)arg1; - (BOOL)isAssociated; - (BOOL)isWOWSleep; - (unsigned long long)joinTime; - (unsigned long long)leftTime; - (void)setCreateTime:(unsigned long long)arg1; - (void)setDeauthReason:(unsigned long long)arg1; - (void)setIsAssociated:(BOOL)arg1; - (void)setIsWOWSleep:(BOOL)arg1; - (void)setJoinTime:(unsigned long long)arg1; - (void)setLeftTime:(unsigned long long)arg1; - (id)skeleton; @end
36.33
36
(translation_unit) "/* Generated by RuntimeBrowser\n Image: /System/Library/PrivateFrameworks/CoreWiFi.framework/Versions/A/CoreWiFi\n */\n\n@interface CoreWiFiClient : CoreWiFiMAC {\n unsigned long long createTime;\n unsigned long long deauthReason;\n BOOL isAssociated;\n BOOL isWOWSleep;\n unsigned long long joinTime;\n unsigned long long leftTime;\n}\n\n@property (nonatomic, readwrite) unsigned long long createTime;\n@property (nonatomic, readwrite) unsigned long long deauthReason;\n@property (nonatomic, readwrite) BOOL isAssociated;\n@property (nonatomic, readwrite) BOOL isWOWSleep;\n@property (nonatomic, readwrite) unsigned long long joinTime;\n@property (nonatomic, readwrite) unsigned long long leftTime;\n\n- (unsigned long long)createTime;\n- (void)dealloc;\n- (unsigned long long)deauthReason;\n- (id)debugDescription;\n- (id)description;\n- (id)initWithMAC:(id)arg1 interfaceName:(id)arg2 channel:(long long)arg3 ies:(id)arg4;\n- (id)initWithSkeleton:(id)arg1;\n- (BOOL)isAssociated;\n- (BOOL)isWOWSleep;\n- (unsigned long long)joinTime;\n- (unsigned long long)leftTime;\n- (void)setCreateTime:(unsigned long long)arg1;\n- (void)setDeauthReason:(unsigned long long)arg1;\n- (void)setIsAssociated:(BOOL)arg1;\n- (void)setIsWOWSleep:(BOOL)arg1;\n- (void)setJoinTime:(unsigned long long)arg1;\n- (void)setLeftTime:(unsigned long long)arg1;\n- (id)skeleton;\n\n@end\n" (comment) "/* Generated by RuntimeBrowser\n Image: /System/Library/PrivateFrameworks/CoreWiFi.framework/Versions/A/CoreWiFi\n */" (ERROR) "@" (ERROR) "@" (function_definition) "interface CoreWiFiClient : CoreWiFiMAC {\n unsigned long long createTime;\n unsigned long long deauthReason;\n BOOL isAssociated;\n BOOL isWOWSleep;\n unsigned long long joinTime;\n unsigned long long leftTime;\n}" (type_identifier) "interface" (identifier) "CoreWiFiClient" (ERROR) ": CoreWiFiMAC" (:) ":" (identifier) "CoreWiFiMAC" (compound_statement) "{\n unsigned long long createTime;\n unsigned long long deauthReason;\n BOOL isAssociated;\n BOOL isWOWSleep;\n unsigned long long joinTime;\n unsigned long long leftTime;\n}" ({) "{" (declaration) "unsigned long long createTime;" (sized_type_specifier) "unsigned long long" (unsigned) "unsigned" (long) "long" (long) "long" (identifier) "createTime" (;) ";" (declaration) "unsigned long long deauthReason;" (sized_type_specifier) "unsigned long long" (unsigned) "unsigned" (long) "long" (long) "long" (identifier) "deauthReason" (;) ";" (declaration) "BOOL isAssociated;" (type_identifier) "BOOL" (identifier) "isAssociated" (;) ";" (declaration) "BOOL isWOWSleep;" (type_identifier) "BOOL" (identifier) "isWOWSleep" (;) ";" (declaration) "unsigned long long joinTime;" (sized_type_specifier) "unsigned long long" (unsigned) "unsigned" (long) "long" (long) "long" (identifier) "joinTime" (;) ";" (declaration) "unsigned long long leftTime;" (sized_type_specifier) "unsigned long long" (unsigned) "unsigned" (long) "long" (long) "long" (identifier) "leftTime" (;) ";" (}) "}" (ERROR) "@property (nonatomic, readwrite) unsigned" (ERROR) "@" (call_expression) "property (nonatomic, readwrite)" (identifier) "property" (argument_list) "(nonatomic, readwrite)" (() "(" (identifier) "nonatomic" (,) "," (identifier) "readwrite" ()) ")" (identifier) "unsigned" (declaration) "long long createTime;" (sized_type_specifier) "long long" (long) "long" (long) "long" (identifier) "createTime" (;) ";" (ERROR) "@property (nonatomic, readwrite) unsigned" (ERROR) "@" (call_expression) "property (nonatomic, readwrite)" (identifier) "property" (argument_list) "(nonatomic, readwrite)" (() "(" (identifier) "nonatomic" (,) "," (identifier) "readwrite" ()) ")" (identifier) "unsigned" (declaration) "long long deauthReason;" (sized_type_specifier) "long long" (long) "long" (long) "long" (identifier) "deauthReason" (;) ";" (ERROR) "@property (nonatomic, readwrite) BOOL" (ERROR) "@" (call_expression) "property (nonatomic, readwrite)" (identifier) "property" (argument_list) "(nonatomic, readwrite)" (() "(" (identifier) "nonatomic" (,) "," (identifier) "readwrite" ()) ")" (identifier) "BOOL" (expression_statement) "isAssociated;" (identifier) "isAssociated" (;) ";" (ERROR) "@property (nonatomic, readwrite) BOOL" (ERROR) "@" (call_expression) "property (nonatomic, readwrite)" (identifier) "property" (argument_list) "(nonatomic, readwrite)" (() "(" (identifier) "nonatomic" (,) "," (identifier) "readwrite" ()) ")" (identifier) "BOOL" (expression_statement) "isWOWSleep;" (identifier) "isWOWSleep" (;) ";" (ERROR) "@property (nonatomic, readwrite) unsigned" (ERROR) "@" (call_expression) "property (nonatomic, readwrite)" (identifier) "property" (argument_list) "(nonatomic, readwrite)" (() "(" (identifier) "nonatomic" (,) "," (identifier) "readwrite" ()) ")" (identifier) "unsigned" (declaration) "long long joinTime;" (sized_type_specifier) "long long" (long) "long" (long) "long" (identifier) "joinTime" (;) ";" (ERROR) "@property (nonatomic, readwrite) unsigned" (ERROR) "@" (call_expression) "property (nonatomic, readwrite)" (identifier) "property" (argument_list) "(nonatomic, readwrite)" (() "(" (identifier) "nonatomic" (,) "," (identifier) "readwrite" ()) ")" (identifier) "unsigned" (declaration) "long long leftTime;" (sized_type_specifier) "long long" (long) "long" (long) "long" (identifier) "leftTime" (;) ";" (expression_statement) "- (unsigned long long)createTime;" (unary_expression) "- (unsigned long long)createTime" (-) "-" (cast_expression) "(unsigned long long)createTime" (() "(" (type_descriptor) "unsigned long long" (sized_type_specifier) "unsigned long long" (unsigned) "unsigned" (long) "long" (long) "long" ()) ")" (identifier) "createTime" (;) ";" (expression_statement) "- (void)dealloc;" (unary_expression) "- (void)dealloc" (-) "-" (cast_expression) "(void)dealloc" (() "(" (type_descriptor) "void" (primitive_type) "void" ()) ")" (identifier) "dealloc" (;) ";" (expression_statement) "- (unsigned long long)deauthReason;" (unary_expression) "- (unsigned long long)deauthReason" (-) "-" (cast_expression) "(unsigned long long)deauthReason" (() "(" (type_descriptor) "unsigned long long" (sized_type_specifier) "unsigned long long" (unsigned) "unsigned" (long) "long" (long) "long" ()) ")" (identifier) "deauthReason" (;) ";" (expression_statement) "- (id)debugDescription;" (unary_expression) "- (id)debugDescription" (-) "-" (cast_expression) "(id)debugDescription" (() "(" (type_descriptor) "id" (type_identifier) "id" ()) ")" (identifier) "debugDescription" (;) ";" (expression_statement) "- (id)description;" (unary_expression) "- (id)description" (-) "-" (cast_expression) "(id)description" (() "(" (type_descriptor) "id" (type_identifier) "id" ()) ")" (identifier) "description" (;) ";" (ERROR) "- (id)initWithMAC:(id)arg1 interfaceName:(id)arg2 channel:(" (unary_expression) "- (id)initWithMAC" (-) "-" (cast_expression) "(id)initWithMAC" (() "(" (type_descriptor) "id" (type_identifier) "id" ()) ")" (identifier) "initWithMAC" (:) ":" (() "(" (identifier) "id" ()) ")" (type_identifier) "arg1" (identifier) "interfaceName" (:) ":" (() "(" (identifier) "id" ()) ")" (identifier) "arg2" (identifier) "channel" (:) ":" (() "(" (declaration) "long long)arg3 ies:(id)arg4;" (sized_type_specifier) "long long)arg3" (long) "long" (long) "long" (ERROR) ")" ()) ")" (type_identifier) "arg3" (ERROR) "ies:(id)" (identifier) "ies" (:) ":" (() "(" (identifier) "id" ()) ")" (identifier) "arg4" (;) ";" (expression_statement) "- (id)initWithSkeleton:(id)arg1;" (unary_expression) "- (id)initWithSkeleton" (-) "-" (cast_expression) "(id)initWithSkeleton" (() "(" (type_descriptor) "id" (type_identifier) "id" ()) ")" (identifier) "initWithSkeleton" (ERROR) ":(id)arg1" (:) ":" (() "(" (identifier) "id" ()) ")" (identifier) "arg1" (;) ";" (expression_statement) "- (BOOL)isAssociated;" (unary_expression) "- (BOOL)isAssociated" (-) "-" (cast_expression) "(BOOL)isAssociated" (() "(" (type_descriptor) "BOOL" (type_identifier) "BOOL" ()) ")" (identifier) "isAssociated" (;) ";" (expression_statement) "- (BOOL)isWOWSleep;" (unary_expression) "- (BOOL)isWOWSleep" (-) "-" (cast_expression) "(BOOL)isWOWSleep" (() "(" (type_descriptor) "BOOL" (type_identifier) "BOOL" ()) ")" (identifier) "isWOWSleep" (;) ";" (expression_statement) "- (unsigned long long)joinTime;" (unary_expression) "- (unsigned long long)joinTime" (-) "-" (cast_expression) "(unsigned long long)joinTime" (() "(" (type_descriptor) "unsigned long long" (sized_type_specifier) "unsigned long long" (unsigned) "unsigned" (long) "long" (long) "long" ()) ")" (identifier) "joinTime" (;) ";" (expression_statement) "- (unsigned long long)leftTime;" (unary_expression) "- (unsigned long long)leftTime" (-) "-" (cast_expression) "(unsigned long long)leftTime" (() "(" (type_descriptor) "unsigned long long" (sized_type_specifier) "unsigned long long" (unsigned) "unsigned" (long) "long" (long) "long" ()) ")" (identifier) "leftTime" (;) ";" (ERROR) "- (void)setCreateTime:(" (unary_expression) "- (void)setCreateTime" (-) "-" (cast_expression) "(void)setCreateTime" (() "(" (type_descriptor) "void" (primitive_type) "void" ()) ")" (identifier) "setCreateTime" (:) ":" (() "(" (declaration) "unsigned long long)arg1;" (sized_type_specifier) "unsigned long long" (unsigned) "unsigned" (long) "long" (long) "long" (ERROR) ")" ()) ")" (identifier) "arg1" (;) ";" (ERROR) "- (void)setDeauthReason:(" (unary_expression) "- (void)setDeauthReason" (-) "-" (cast_expression) "(void)setDeauthReason" (() "(" (type_descriptor) "void" (primitive_type) "void" ()) ")" (identifier) "setDeauthReason" (:) ":" (() "(" (declaration) "unsigned long long)arg1;" (sized_type_specifier) "unsigned long long" (unsigned) "unsigned" (long) "long" (long) "long" (ERROR) ")" ()) ")" (identifier) "arg1" (;) ";" (expression_statement) "- (void)setIsAssociated:(BOOL)arg1;" (unary_expression) "- (void)setIsAssociated" (-) "-" (cast_expression) "(void)setIsAssociated" (() "(" (type_descriptor) "void" (primitive_type) "void" ()) ")" (identifier) "setIsAssociated" (ERROR) ":(BOOL)arg1" (:) ":" (() "(" (identifier) "BOOL" ()) ")" (identifier) "arg1" (;) ";" (expression_statement) "- (void)setIsWOWSleep:(BOOL)arg1;" (unary_expression) "- (void)setIsWOWSleep" (-) "-" (cast_expression) "(void)setIsWOWSleep" (() "(" (type_descriptor) "void" (primitive_type) "void" ()) ")" (identifier) "setIsWOWSleep" (ERROR) ":(BOOL)arg1" (:) ":" (() "(" (identifier) "BOOL" ()) ")" (identifier) "arg1" (;) ";" (ERROR) "- (void)setJoinTime:(" (unary_expression) "- (void)setJoinTime" (-) "-" (cast_expression) "(void)setJoinTime" (() "(" (type_descriptor) "void" (primitive_type) "void" ()) ")" (identifier) "setJoinTime" (:) ":" (() "(" (declaration) "unsigned long long)arg1;" (sized_type_specifier) "unsigned long long" (unsigned) "unsigned" (long) "long" (long) "long" (ERROR) ")" ()) ")" (identifier) "arg1" (;) ";" (ERROR) "- (void)setLeftTime:(" (unary_expression) "- (void)setLeftTime" (-) "-" (cast_expression) "(void)setLeftTime" (() "(" (type_descriptor) "void" (primitive_type) "void" ()) ")" (identifier) "setLeftTime" (:) ":" (() "(" (declaration) "unsigned long long)arg1;" (sized_type_specifier) "unsigned long long" (unsigned) "unsigned" (long) "long" (long) "long" (ERROR) ")" ()) ")" (identifier) "arg1" (;) ";" (expression_statement) "- (id)skeleton;" (unary_expression) "- (id)skeleton" (-) "-" (cast_expression) "(id)skeleton" (() "(" (type_descriptor) "id" (type_identifier) "id" ()) ")" (identifier) "skeleton" (;) ";" (ERROR) "@" (ERROR) "@" (expression_statement) "end" (identifier) "end" (;) ""
428
31
{"language": "c", "success": true, "metadata": {"lines": 36, "avg_line_length": 36.33, "nodes": 282, "errors": 0, "source_hash": "d673e79bb85f18aa44ba6e9009559d4145eab2169e17540295423af4f81989e9", "categorized_nodes": 161}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "ERROR", "text": "@", "parent": null, "children": [1], "start_point": {"row": 4, "column": 0}, "end_point": {"row": 4, "column": 1}}, {"id": 1, "type": "ERROR", "text": "@", "parent": 0, "children": [], "start_point": {"row": 4, "column": 0}, "end_point": {"row": 4, "column": 1}}, {"id": 2, "type": "function_definition", "text": "interface CoreWiFiClient : CoreWiFiMAC {\n unsigned long long createTime;\n unsigned long long deauthReason;\n BOOL isAssociated;\n BOOL isWOWSleep;\n unsigned long long joinTime;\n unsigned long long leftTime;\n}", "parent": null, "children": [3, 4, 5], "start_point": {"row": 4, "column": 1}, "end_point": {"row": 11, "column": 1}}, {"id": 3, "type": "type_identifier", "text": "interface", "parent": 2, "children": [], "start_point": {"row": 4, "column": 1}, "end_point": {"row": 4, "column": 10}}, {"id": 4, "type": "identifier", "text": "CoreWiFiClient", "parent": 2, "children": [], "start_point": {"row": 4, "column": 11}, "end_point": {"row": 4, "column": 25}}, {"id": 5, "type": "ERROR", "text": ": CoreWiFiMAC", "parent": 2, "children": [6], "start_point": {"row": 4, "column": 26}, "end_point": {"row": 4, "column": 39}}, {"id": 6, "type": "identifier", "text": "CoreWiFiMAC", "parent": 5, "children": [], "start_point": {"row": 4, "column": 28}, "end_point": {"row": 4, "column": 39}}, {"id": 7, "type": "declaration", "text": "unsigned long long createTime;", "parent": 2, "children": [8, 12], "start_point": {"row": 5, "column": 4}, "end_point": {"row": 5, "column": 35}}, {"id": 8, "type": "sized_type_specifier", "text": "unsigned long long", "parent": 7, "children": [9, 10, 11], "start_point": {"row": 5, "column": 4}, "end_point": {"row": 5, "column": 22}}, {"id": 9, "type": "unsigned", "text": "unsigned", "parent": 8, "children": [], "start_point": {"row": 5, "column": 4}, "end_point": {"row": 5, "column": 12}}, {"id": 10, "type": "long", "text": "long", "parent": 8, "children": [], "start_point": {"row": 5, "column": 13}, "end_point": {"row": 5, "column": 17}}, {"id": 11, "type": "long", "text": "long", "parent": 8, "children": [], "start_point": {"row": 5, "column": 18}, "end_point": {"row": 5, "column": 22}}, {"id": 12, "type": "identifier", "text": "createTime", "parent": 7, "children": [], "start_point": {"row": 5, "column": 24}, "end_point": {"row": 5, "column": 34}}, {"id": 13, "type": "declaration", "text": "unsigned long long deauthReason;", "parent": 2, "children": [14, 18], "start_point": {"row": 6, "column": 4}, "end_point": {"row": 6, "column": 37}}, {"id": 14, "type": "sized_type_specifier", "text": "unsigned long long", "parent": 13, "children": [15, 16, 17], "start_point": {"row": 6, "column": 4}, "end_point": {"row": 6, "column": 22}}, {"id": 15, "type": "unsigned", "text": "unsigned", "parent": 14, "children": [], "start_point": {"row": 6, "column": 4}, "end_point": {"row": 6, "column": 12}}, {"id": 16, "type": "long", "text": "long", "parent": 14, "children": [], "start_point": {"row": 6, "column": 13}, "end_point": {"row": 6, "column": 17}}, {"id": 17, "type": "long", "text": "long", "parent": 14, "children": [], "start_point": {"row": 6, "column": 18}, "end_point": {"row": 6, "column": 22}}, {"id": 18, "type": "identifier", "text": "deauthReason", "parent": 13, "children": [], "start_point": {"row": 6, "column": 24}, "end_point": {"row": 6, "column": 36}}, {"id": 19, "type": "declaration", "text": "BOOL isAssociated;", "parent": 2, "children": [20, 21], "start_point": {"row": 7, "column": 4}, "end_point": {"row": 7, "column": 23}}, {"id": 20, "type": "type_identifier", "text": "BOOL", "parent": 19, "children": [], "start_point": {"row": 7, "column": 4}, "end_point": {"row": 7, "column": 8}}, {"id": 21, "type": "identifier", "text": "isAssociated", "parent": 19, "children": [], "start_point": {"row": 7, "column": 10}, "end_point": {"row": 7, "column": 22}}, {"id": 22, "type": "declaration", "text": "BOOL isWOWSleep;", "parent": 2, "children": [23, 24], "start_point": {"row": 8, "column": 4}, "end_point": {"row": 8, "column": 21}}, {"id": 23, "type": "type_identifier", "text": "BOOL", "parent": 22, "children": [], "start_point": {"row": 8, "column": 4}, "end_point": {"row": 8, "column": 8}}, {"id": 24, "type": "identifier", "text": "isWOWSleep", "parent": 22, "children": [], "start_point": {"row": 8, "column": 10}, "end_point": {"row": 8, "column": 20}}, {"id": 25, "type": "declaration", "text": "unsigned long long joinTime;", "parent": 2, "children": [26, 30], "start_point": {"row": 9, "column": 4}, "end_point": {"row": 9, "column": 33}}, {"id": 26, "type": "sized_type_specifier", "text": "unsigned long long", "parent": 25, "children": [27, 28, 29], "start_point": {"row": 9, "column": 4}, "end_point": {"row": 9, "column": 22}}, {"id": 27, "type": "unsigned", "text": "unsigned", "parent": 26, "children": [], "start_point": {"row": 9, "column": 4}, "end_point": {"row": 9, "column": 12}}, {"id": 28, "type": "long", "text": "long", "parent": 26, "children": [], "start_point": {"row": 9, "column": 13}, "end_point": {"row": 9, "column": 17}}, {"id": 29, "type": "long", "text": "long", "parent": 26, "children": [], "start_point": {"row": 9, "column": 18}, "end_point": {"row": 9, "column": 22}}, {"id": 30, "type": "identifier", "text": "joinTime", "parent": 25, "children": [], "start_point": {"row": 9, "column": 24}, "end_point": {"row": 9, "column": 32}}, {"id": 31, "type": "declaration", "text": "unsigned long long leftTime;", "parent": 2, "children": [32, 36], "start_point": {"row": 10, "column": 4}, "end_point": {"row": 10, "column": 33}}, {"id": 32, "type": "sized_type_specifier", "text": "unsigned long long", "parent": 31, "children": [33, 34, 35], "start_point": {"row": 10, "column": 4}, "end_point": {"row": 10, "column": 22}}, {"id": 33, "type": "unsigned", "text": "unsigned", "parent": 32, "children": [], "start_point": {"row": 10, "column": 4}, "end_point": {"row": 10, "column": 12}}, {"id": 34, "type": "long", "text": "long", "parent": 32, "children": [], "start_point": {"row": 10, "column": 13}, "end_point": {"row": 10, "column": 17}}, {"id": 35, "type": "long", "text": "long", "parent": 32, "children": [], "start_point": {"row": 10, "column": 18}, "end_point": {"row": 10, "column": 22}}, {"id": 36, "type": "identifier", "text": "leftTime", "parent": 31, "children": [], "start_point": {"row": 10, "column": 24}, "end_point": {"row": 10, "column": 32}}, {"id": 37, "type": "ERROR", "text": "@property (nonatomic, readwrite) unsigned", "parent": null, "children": [38, 39, 44], "start_point": {"row": 13, "column": 0}, "end_point": {"row": 13, "column": 41}}, {"id": 38, "type": "ERROR", "text": "@", "parent": 37, "children": [], "start_point": {"row": 13, "column": 0}, "end_point": {"row": 13, "column": 1}}, {"id": 39, "type": "call_expression", "text": "property (nonatomic, readwrite)", "parent": 37, "children": [40, 41], "start_point": {"row": 13, "column": 1}, "end_point": {"row": 13, "column": 32}}, {"id": 40, "type": "identifier", "text": "property", "parent": 39, "children": [], "start_point": {"row": 13, "column": 1}, "end_point": {"row": 13, "column": 9}}, {"id": 41, "type": "argument_list", "text": "(nonatomic, readwrite)", "parent": 39, "children": [42, 43], "start_point": {"row": 13, "column": 10}, "end_point": {"row": 13, "column": 32}}, {"id": 42, "type": "identifier", "text": "nonatomic", "parent": 41, "children": [], "start_point": {"row": 13, "column": 11}, "end_point": {"row": 13, "column": 20}}, {"id": 43, "type": "identifier", "text": "readwrite", "parent": 41, "children": [], "start_point": {"row": 13, "column": 22}, "end_point": {"row": 13, "column": 31}}, {"id": 44, "type": "identifier", "text": "unsigned", "parent": 37, "children": [], "start_point": {"row": 13, "column": 33}, "end_point": {"row": 13, "column": 41}}, {"id": 45, "type": "declaration", "text": "long long createTime;", "parent": null, "children": [46, 49], "start_point": {"row": 13, "column": 42}, "end_point": {"row": 13, "column": 63}}, {"id": 46, "type": "sized_type_specifier", "text": "long long", "parent": 45, "children": [47, 48], "start_point": {"row": 13, "column": 42}, "end_point": {"row": 13, "column": 51}}, {"id": 47, "type": "long", "text": "long", "parent": 46, "children": [], "start_point": {"row": 13, "column": 42}, "end_point": {"row": 13, "column": 46}}, {"id": 48, "type": "long", "text": "long", "parent": 46, "children": [], "start_point": {"row": 13, "column": 47}, "end_point": {"row": 13, "column": 51}}, {"id": 49, "type": "identifier", "text": "createTime", "parent": 45, "children": [], "start_point": {"row": 13, "column": 52}, "end_point": {"row": 13, "column": 62}}, {"id": 50, "type": "ERROR", "text": "@property (nonatomic, readwrite) unsigned", "parent": null, "children": [51, 52, 57], "start_point": {"row": 14, "column": 0}, "end_point": {"row": 14, "column": 41}}, {"id": 51, "type": "ERROR", "text": "@", "parent": 50, "children": [], "start_point": {"row": 14, "column": 0}, "end_point": {"row": 14, "column": 1}}, {"id": 52, "type": "call_expression", "text": "property (nonatomic, readwrite)", "parent": 50, "children": [53, 54], "start_point": {"row": 14, "column": 1}, "end_point": {"row": 14, "column": 32}}, {"id": 53, "type": "identifier", "text": "property", "parent": 52, "children": [], "start_point": {"row": 14, "column": 1}, "end_point": {"row": 14, "column": 9}}, {"id": 54, "type": "argument_list", "text": "(nonatomic, readwrite)", "parent": 52, "children": [55, 56], "start_point": {"row": 14, "column": 10}, "end_point": {"row": 14, "column": 32}}, {"id": 55, "type": "identifier", "text": "nonatomic", "parent": 54, "children": [], "start_point": {"row": 14, "column": 11}, "end_point": {"row": 14, "column": 20}}, {"id": 56, "type": "identifier", "text": "readwrite", "parent": 54, "children": [], "start_point": {"row": 14, "column": 22}, "end_point": {"row": 14, "column": 31}}, {"id": 57, "type": "identifier", "text": "unsigned", "parent": 50, "children": [], "start_point": {"row": 14, "column": 33}, "end_point": {"row": 14, "column": 41}}, {"id": 58, "type": "declaration", "text": "long long deauthReason;", "parent": null, "children": [59, 62], "start_point": {"row": 14, "column": 42}, "end_point": {"row": 14, "column": 65}}, {"id": 59, "type": "sized_type_specifier", "text": "long long", "parent": 58, "children": [60, 61], "start_point": {"row": 14, "column": 42}, "end_point": {"row": 14, "column": 51}}, {"id": 60, "type": "long", "text": "long", "parent": 59, "children": [], "start_point": {"row": 14, "column": 42}, "end_point": {"row": 14, "column": 46}}, {"id": 61, "type": "long", "text": "long", "parent": 59, "children": [], "start_point": {"row": 14, "column": 47}, "end_point": {"row": 14, "column": 51}}, {"id": 62, "type": "identifier", "text": "deauthReason", "parent": 58, "children": [], "start_point": {"row": 14, "column": 52}, "end_point": {"row": 14, "column": 64}}, {"id": 63, "type": "ERROR", "text": "@property (nonatomic, readwrite) BOOL", "parent": null, "children": [64, 65, 70], "start_point": {"row": 15, "column": 0}, "end_point": {"row": 15, "column": 37}}, {"id": 64, "type": "ERROR", "text": "@", "parent": 63, "children": [], "start_point": {"row": 15, "column": 0}, "end_point": {"row": 15, "column": 1}}, {"id": 65, "type": "call_expression", "text": "property (nonatomic, readwrite)", "parent": 63, "children": [66, 67], "start_point": {"row": 15, "column": 1}, "end_point": {"row": 15, "column": 32}}, {"id": 66, "type": "identifier", "text": "property", "parent": 65, "children": [], "start_point": {"row": 15, "column": 1}, "end_point": {"row": 15, "column": 9}}, {"id": 67, "type": "argument_list", "text": "(nonatomic, readwrite)", "parent": 65, "children": [68, 69], "start_point": {"row": 15, "column": 10}, "end_point": {"row": 15, "column": 32}}, {"id": 68, "type": "identifier", "text": "nonatomic", "parent": 67, "children": [], "start_point": {"row": 15, "column": 11}, "end_point": {"row": 15, "column": 20}}, {"id": 69, "type": "identifier", "text": "readwrite", "parent": 67, "children": [], "start_point": {"row": 15, "column": 22}, "end_point": {"row": 15, "column": 31}}, {"id": 70, "type": "identifier", "text": "BOOL", "parent": 63, "children": [], "start_point": {"row": 15, "column": 33}, "end_point": {"row": 15, "column": 37}}, {"id": 71, "type": "identifier", "text": "isAssociated", "parent": null, "children": [], "start_point": {"row": 15, "column": 38}, "end_point": {"row": 15, "column": 50}}, {"id": 72, "type": "ERROR", "text": "@property (nonatomic, readwrite) BOOL", "parent": null, "children": [73, 74, 79], "start_point": {"row": 16, "column": 0}, "end_point": {"row": 16, "column": 37}}, {"id": 73, "type": "ERROR", "text": "@", "parent": 72, "children": [], "start_point": {"row": 16, "column": 0}, "end_point": {"row": 16, "column": 1}}, {"id": 74, "type": "call_expression", "text": "property (nonatomic, readwrite)", "parent": 72, "children": [75, 76], "start_point": {"row": 16, "column": 1}, "end_point": {"row": 16, "column": 32}}, {"id": 75, "type": "identifier", "text": "property", "parent": 74, "children": [], "start_point": {"row": 16, "column": 1}, "end_point": {"row": 16, "column": 9}}, {"id": 76, "type": "argument_list", "text": "(nonatomic, readwrite)", "parent": 74, "children": [77, 78], "start_point": {"row": 16, "column": 10}, "end_point": {"row": 16, "column": 32}}, {"id": 77, "type": "identifier", "text": "nonatomic", "parent": 76, "children": [], "start_point": {"row": 16, "column": 11}, "end_point": {"row": 16, "column": 20}}, {"id": 78, "type": "identifier", "text": "readwrite", "parent": 76, "children": [], "start_point": {"row": 16, "column": 22}, "end_point": {"row": 16, "column": 31}}, {"id": 79, "type": "identifier", "text": "BOOL", "parent": 72, "children": [], "start_point": {"row": 16, "column": 33}, "end_point": {"row": 16, "column": 37}}, {"id": 80, "type": "identifier", "text": "isWOWSleep", "parent": null, "children": [], "start_point": {"row": 16, "column": 38}, "end_point": {"row": 16, "column": 48}}, {"id": 81, "type": "ERROR", "text": "@property (nonatomic, readwrite) unsigned", "parent": null, "children": [82, 83, 88], "start_point": {"row": 17, "column": 0}, "end_point": {"row": 17, "column": 41}}, {"id": 82, "type": "ERROR", "text": "@", "parent": 81, "children": [], "start_point": {"row": 17, "column": 0}, "end_point": {"row": 17, "column": 1}}, {"id": 83, "type": "call_expression", "text": "property (nonatomic, readwrite)", "parent": 81, "children": [84, 85], "start_point": {"row": 17, "column": 1}, "end_point": {"row": 17, "column": 32}}, {"id": 84, "type": "identifier", "text": "property", "parent": 83, "children": [], "start_point": {"row": 17, "column": 1}, "end_point": {"row": 17, "column": 9}}, {"id": 85, "type": "argument_list", "text": "(nonatomic, readwrite)", "parent": 83, "children": [86, 87], "start_point": {"row": 17, "column": 10}, "end_point": {"row": 17, "column": 32}}, {"id": 86, "type": "identifier", "text": "nonatomic", "parent": 85, "children": [], "start_point": {"row": 17, "column": 11}, "end_point": {"row": 17, "column": 20}}, {"id": 87, "type": "identifier", "text": "readwrite", "parent": 85, "children": [], "start_point": {"row": 17, "column": 22}, "end_point": {"row": 17, "column": 31}}, {"id": 88, "type": "identifier", "text": "unsigned", "parent": 81, "children": [], "start_point": {"row": 17, "column": 33}, "end_point": {"row": 17, "column": 41}}, {"id": 89, "type": "declaration", "text": "long long joinTime;", "parent": null, "children": [90, 93], "start_point": {"row": 17, "column": 42}, "end_point": {"row": 17, "column": 61}}, {"id": 90, "type": "sized_type_specifier", "text": "long long", "parent": 89, "children": [91, 92], "start_point": {"row": 17, "column": 42}, "end_point": {"row": 17, "column": 51}}, {"id": 91, "type": "long", "text": "long", "parent": 90, "children": [], "start_point": {"row": 17, "column": 42}, "end_point": {"row": 17, "column": 46}}, {"id": 92, "type": "long", "text": "long", "parent": 90, "children": [], "start_point": {"row": 17, "column": 47}, "end_point": {"row": 17, "column": 51}}, {"id": 93, "type": "identifier", "text": "joinTime", "parent": 89, "children": [], "start_point": {"row": 17, "column": 52}, "end_point": {"row": 17, "column": 60}}, {"id": 94, "type": "ERROR", "text": "@property (nonatomic, readwrite) unsigned", "parent": null, "children": [95, 96, 101], "start_point": {"row": 18, "column": 0}, "end_point": {"row": 18, "column": 41}}, {"id": 95, "type": "ERROR", "text": "@", "parent": 94, "children": [], "start_point": {"row": 18, "column": 0}, "end_point": {"row": 18, "column": 1}}, {"id": 96, "type": "call_expression", "text": "property (nonatomic, readwrite)", "parent": 94, "children": [97, 98], "start_point": {"row": 18, "column": 1}, "end_point": {"row": 18, "column": 32}}, {"id": 97, "type": "identifier", "text": "property", "parent": 96, "children": [], "start_point": {"row": 18, "column": 1}, "end_point": {"row": 18, "column": 9}}, {"id": 98, "type": "argument_list", "text": "(nonatomic, readwrite)", "parent": 96, "children": [99, 100], "start_point": {"row": 18, "column": 10}, "end_point": {"row": 18, "column": 32}}, {"id": 99, "type": "identifier", "text": "nonatomic", "parent": 98, "children": [], "start_point": {"row": 18, "column": 11}, "end_point": {"row": 18, "column": 20}}, {"id": 100, "type": "identifier", "text": "readwrite", "parent": 98, "children": [], "start_point": {"row": 18, "column": 22}, "end_point": {"row": 18, "column": 31}}, {"id": 101, "type": "identifier", "text": "unsigned", "parent": 94, "children": [], "start_point": {"row": 18, "column": 33}, "end_point": {"row": 18, "column": 41}}, {"id": 102, "type": "declaration", "text": "long long leftTime;", "parent": null, "children": [103, 106], "start_point": {"row": 18, "column": 42}, "end_point": {"row": 18, "column": 61}}, {"id": 103, "type": "sized_type_specifier", "text": "long long", "parent": 102, "children": [104, 105], "start_point": {"row": 18, "column": 42}, "end_point": {"row": 18, "column": 51}}, {"id": 104, "type": "long", "text": "long", "parent": 103, "children": [], "start_point": {"row": 18, "column": 42}, "end_point": {"row": 18, "column": 46}}, {"id": 105, "type": "long", "text": "long", "parent": 103, "children": [], "start_point": {"row": 18, "column": 47}, "end_point": {"row": 18, "column": 51}}, {"id": 106, "type": "identifier", "text": "leftTime", "parent": 102, "children": [], "start_point": {"row": 18, "column": 52}, "end_point": {"row": 18, "column": 60}}, {"id": 107, "type": "unary_expression", "text": "- (unsigned long long)createTime", "parent": null, "children": [108, 109], "start_point": {"row": 20, "column": 0}, "end_point": {"row": 20, "column": 32}}, {"id": 108, "type": "-", "text": "-", "parent": 107, "children": [], "start_point": {"row": 20, "column": 0}, "end_point": {"row": 20, "column": 1}}, {"id": 109, "type": "cast_expression", "text": "(unsigned long long)createTime", "parent": 107, "children": [110, 115], "start_point": {"row": 20, "column": 2}, "end_point": {"row": 20, "column": 32}}, {"id": 110, "type": "type_descriptor", "text": "unsigned long long", "parent": 109, "children": [111], "start_point": {"row": 20, "column": 3}, "end_point": {"row": 20, "column": 21}}, {"id": 111, "type": "sized_type_specifier", "text": "unsigned long long", "parent": 110, "children": [112, 113, 114], "start_point": {"row": 20, "column": 3}, "end_point": {"row": 20, "column": 21}}, {"id": 112, "type": "unsigned", "text": "unsigned", "parent": 111, "children": [], "start_point": {"row": 20, "column": 3}, "end_point": {"row": 20, "column": 11}}, {"id": 113, "type": "long", "text": "long", "parent": 111, "children": [], "start_point": {"row": 20, "column": 12}, "end_point": {"row": 20, "column": 16}}, {"id": 114, "type": "long", "text": "long", "parent": 111, "children": [], "start_point": {"row": 20, "column": 17}, "end_point": {"row": 20, "column": 21}}, {"id": 115, "type": "identifier", "text": "createTime", "parent": 109, "children": [], "start_point": {"row": 20, "column": 22}, "end_point": {"row": 20, "column": 32}}, {"id": 116, "type": "unary_expression", "text": "- (void)dealloc", "parent": null, "children": [117, 118], "start_point": {"row": 21, "column": 0}, "end_point": {"row": 21, "column": 15}}, {"id": 117, "type": "-", "text": "-", "parent": 116, "children": [], "start_point": {"row": 21, "column": 0}, "end_point": {"row": 21, "column": 1}}, {"id": 118, "type": "cast_expression", "text": "(void)dealloc", "parent": 116, "children": [119, 121], "start_point": {"row": 21, "column": 2}, "end_point": {"row": 21, "column": 15}}, {"id": 119, "type": "type_descriptor", "text": "void", "parent": 118, "children": [120], "start_point": {"row": 21, "column": 3}, "end_point": {"row": 21, "column": 7}}, {"id": 120, "type": "primitive_type", "text": "void", "parent": 119, "children": [], "start_point": {"row": 21, "column": 3}, "end_point": {"row": 21, "column": 7}}, {"id": 121, "type": "identifier", "text": "dealloc", "parent": 118, "children": [], "start_point": {"row": 21, "column": 8}, "end_point": {"row": 21, "column": 15}}, {"id": 122, "type": "unary_expression", "text": "- (unsigned long long)deauthReason", "parent": null, "children": [123, 124], "start_point": {"row": 22, "column": 0}, "end_point": {"row": 22, "column": 34}}, {"id": 123, "type": "-", "text": "-", "parent": 122, "children": [], "start_point": {"row": 22, "column": 0}, "end_point": {"row": 22, "column": 1}}, {"id": 124, "type": "cast_expression", "text": "(unsigned long long)deauthReason", "parent": 122, "children": [125, 130], "start_point": {"row": 22, "column": 2}, "end_point": {"row": 22, "column": 34}}, {"id": 125, "type": "type_descriptor", "text": "unsigned long long", "parent": 124, "children": [126], "start_point": {"row": 22, "column": 3}, "end_point": {"row": 22, "column": 21}}, {"id": 126, "type": "sized_type_specifier", "text": "unsigned long long", "parent": 125, "children": [127, 128, 129], "start_point": {"row": 22, "column": 3}, "end_point": {"row": 22, "column": 21}}, {"id": 127, "type": "unsigned", "text": "unsigned", "parent": 126, "children": [], "start_point": {"row": 22, "column": 3}, "end_point": {"row": 22, "column": 11}}, {"id": 128, "type": "long", "text": "long", "parent": 126, "children": [], "start_point": {"row": 22, "column": 12}, "end_point": {"row": 22, "column": 16}}, {"id": 129, "type": "long", "text": "long", "parent": 126, "children": [], "start_point": {"row": 22, "column": 17}, "end_point": {"row": 22, "column": 21}}, {"id": 130, "type": "identifier", "text": "deauthReason", "parent": 124, "children": [], "start_point": {"row": 22, "column": 22}, "end_point": {"row": 22, "column": 34}}, {"id": 131, "type": "unary_expression", "text": "- (id)debugDescription", "parent": null, "children": [132, 133], "start_point": {"row": 23, "column": 0}, "end_point": {"row": 23, "column": 22}}, {"id": 132, "type": "-", "text": "-", "parent": 131, "children": [], "start_point": {"row": 23, "column": 0}, "end_point": {"row": 23, "column": 1}}, {"id": 133, "type": "cast_expression", "text": "(id)debugDescription", "parent": 131, "children": [134, 136], "start_point": {"row": 23, "column": 2}, "end_point": {"row": 23, "column": 22}}, {"id": 134, "type": "type_descriptor", "text": "id", "parent": 133, "children": [135], "start_point": {"row": 23, "column": 3}, "end_point": {"row": 23, "column": 5}}, {"id": 135, "type": "type_identifier", "text": "id", "parent": 134, "children": [], "start_point": {"row": 23, "column": 3}, "end_point": {"row": 23, "column": 5}}, {"id": 136, "type": "identifier", "text": "debugDescription", "parent": 133, "children": [], "start_point": {"row": 23, "column": 6}, "end_point": {"row": 23, "column": 22}}, {"id": 137, "type": "unary_expression", "text": "- (id)description", "parent": null, "children": [138, 139], "start_point": {"row": 24, "column": 0}, "end_point": {"row": 24, "column": 17}}, {"id": 138, "type": "-", "text": "-", "parent": 137, "children": [], "start_point": {"row": 24, "column": 0}, "end_point": {"row": 24, "column": 1}}, {"id": 139, "type": "cast_expression", "text": "(id)description", "parent": 137, "children": [140, 142], "start_point": {"row": 24, "column": 2}, "end_point": {"row": 24, "column": 17}}, {"id": 140, "type": "type_descriptor", "text": "id", "parent": 139, "children": [141], "start_point": {"row": 24, "column": 3}, "end_point": {"row": 24, "column": 5}}, {"id": 141, "type": "type_identifier", "text": "id", "parent": 140, "children": [], "start_point": {"row": 24, "column": 3}, "end_point": {"row": 24, "column": 5}}, {"id": 142, "type": "identifier", "text": "description", "parent": 139, "children": [], "start_point": {"row": 24, "column": 6}, "end_point": {"row": 24, "column": 17}}, {"id": 143, "type": "ERROR", "text": "- (id)initWithMAC:(id)arg1 interfaceName:(id)arg2 channel:(", "parent": null, "children": [144, 150, 151, 152, 153, 154, 155], "start_point": {"row": 25, "column": 0}, "end_point": {"row": 25, "column": 59}}, {"id": 144, "type": "unary_expression", "text": "- (id)initWithMAC", "parent": 143, "children": [145, 146], "start_point": {"row": 25, "column": 0}, "end_point": {"row": 25, "column": 17}}, {"id": 145, "type": "-", "text": "-", "parent": 144, "children": [], "start_point": {"row": 25, "column": 0}, "end_point": {"row": 25, "column": 1}}, {"id": 146, "type": "cast_expression", "text": "(id)initWithMAC", "parent": 144, "children": [147, 149], "start_point": {"row": 25, "column": 2}, "end_point": {"row": 25, "column": 17}}, {"id": 147, "type": "type_descriptor", "text": "id", "parent": 146, "children": [148], "start_point": {"row": 25, "column": 3}, "end_point": {"row": 25, "column": 5}}, {"id": 148, "type": "type_identifier", "text": "id", "parent": 147, "children": [], "start_point": {"row": 25, "column": 3}, "end_point": {"row": 25, "column": 5}}, {"id": 149, "type": "identifier", "text": "initWithMAC", "parent": 146, "children": [], "start_point": {"row": 25, "column": 6}, "end_point": {"row": 25, "column": 17}}, {"id": 150, "type": "identifier", "text": "id", "parent": 143, "children": [], "start_point": {"row": 25, "column": 19}, "end_point": {"row": 25, "column": 21}}, {"id": 151, "type": "type_identifier", "text": "arg1", "parent": 143, "children": [], "start_point": {"row": 25, "column": 22}, "end_point": {"row": 25, "column": 26}}, {"id": 152, "type": "identifier", "text": "interfaceName", "parent": 143, "children": [], "start_point": {"row": 25, "column": 27}, "end_point": {"row": 25, "column": 40}}, {"id": 153, "type": "identifier", "text": "id", "parent": 143, "children": [], "start_point": {"row": 25, "column": 42}, "end_point": {"row": 25, "column": 44}}, {"id": 154, "type": "identifier", "text": "arg2", "parent": 143, "children": [], "start_point": {"row": 25, "column": 45}, "end_point": {"row": 25, "column": 49}}, {"id": 155, "type": "identifier", "text": "channel", "parent": 143, "children": [], "start_point": {"row": 25, "column": 50}, "end_point": {"row": 25, "column": 57}}, {"id": 156, "type": "declaration", "text": "long long)arg3 ies:(id)arg4;", "parent": null, "children": [157, 161, 164], "start_point": {"row": 25, "column": 59}, "end_point": {"row": 25, "column": 87}}, {"id": 157, "type": "sized_type_specifier", "text": "long long)arg3", "parent": 156, "children": [158, 159, 160], "start_point": {"row": 25, "column": 59}, "end_point": {"row": 25, "column": 73}}, {"id": 158, "type": "long", "text": "long", "parent": 157, "children": [], "start_point": {"row": 25, "column": 59}, "end_point": {"row": 25, "column": 63}}, {"id": 159, "type": "long", "text": "long", "parent": 157, "children": [], "start_point": {"row": 25, "column": 64}, "end_point": {"row": 25, "column": 68}}, {"id": 160, "type": "type_identifier", "text": "arg3", "parent": 157, "children": [], "start_point": {"row": 25, "column": 69}, "end_point": {"row": 25, "column": 73}}, {"id": 161, "type": "ERROR", "text": "ies:(id)", "parent": 156, "children": [162, 163], "start_point": {"row": 25, "column": 74}, "end_point": {"row": 25, "column": 82}}, {"id": 162, "type": "identifier", "text": "ies", "parent": 161, "children": [], "start_point": {"row": 25, "column": 74}, "end_point": {"row": 25, "column": 77}}, {"id": 163, "type": "identifier", "text": "id", "parent": 161, "children": [], "start_point": {"row": 25, "column": 79}, "end_point": {"row": 25, "column": 81}}, {"id": 164, "type": "identifier", "text": "arg4", "parent": 156, "children": [], "start_point": {"row": 25, "column": 82}, "end_point": {"row": 25, "column": 86}}, {"id": 165, "type": "unary_expression", "text": "- (id)initWithSkeleton", "parent": null, "children": [166, 167], "start_point": {"row": 26, "column": 0}, "end_point": {"row": 26, "column": 22}}, {"id": 166, "type": "-", "text": "-", "parent": 165, "children": [], "start_point": {"row": 26, "column": 0}, "end_point": {"row": 26, "column": 1}}, {"id": 167, "type": "cast_expression", "text": "(id)initWithSkeleton", "parent": 165, "children": [168, 170], "start_point": {"row": 26, "column": 2}, "end_point": {"row": 26, "column": 22}}, {"id": 168, "type": "type_descriptor", "text": "id", "parent": 167, "children": [169], "start_point": {"row": 26, "column": 3}, "end_point": {"row": 26, "column": 5}}, {"id": 169, "type": "type_identifier", "text": "id", "parent": 168, "children": [], "start_point": {"row": 26, "column": 3}, "end_point": {"row": 26, "column": 5}}, {"id": 170, "type": "identifier", "text": "initWithSkeleton", "parent": 167, "children": [], "start_point": {"row": 26, "column": 6}, "end_point": {"row": 26, "column": 22}}, {"id": 171, "type": "ERROR", "text": ":(id)arg1", "parent": null, "children": [172, 173], "start_point": {"row": 26, "column": 22}, "end_point": {"row": 26, "column": 31}}, {"id": 172, "type": "identifier", "text": "id", "parent": 171, "children": [], "start_point": {"row": 26, "column": 24}, "end_point": {"row": 26, "column": 26}}, {"id": 173, "type": "identifier", "text": "arg1", "parent": 171, "children": [], "start_point": {"row": 26, "column": 27}, "end_point": {"row": 26, "column": 31}}, {"id": 174, "type": "unary_expression", "text": "- (BOOL)isAssociated", "parent": null, "children": [175, 176], "start_point": {"row": 27, "column": 0}, "end_point": {"row": 27, "column": 20}}, {"id": 175, "type": "-", "text": "-", "parent": 174, "children": [], "start_point": {"row": 27, "column": 0}, "end_point": {"row": 27, "column": 1}}, {"id": 176, "type": "cast_expression", "text": "(BOOL)isAssociated", "parent": 174, "children": [177, 179], "start_point": {"row": 27, "column": 2}, "end_point": {"row": 27, "column": 20}}, {"id": 177, "type": "type_descriptor", "text": "BOOL", "parent": 176, "children": [178], "start_point": {"row": 27, "column": 3}, "end_point": {"row": 27, "column": 7}}, {"id": 178, "type": "type_identifier", "text": "BOOL", "parent": 177, "children": [], "start_point": {"row": 27, "column": 3}, "end_point": {"row": 27, "column": 7}}, {"id": 179, "type": "identifier", "text": "isAssociated", "parent": 176, "children": [], "start_point": {"row": 27, "column": 8}, "end_point": {"row": 27, "column": 20}}, {"id": 180, "type": "unary_expression", "text": "- (BOOL)isWOWSleep", "parent": null, "children": [181, 182], "start_point": {"row": 28, "column": 0}, "end_point": {"row": 28, "column": 18}}, {"id": 181, "type": "-", "text": "-", "parent": 180, "children": [], "start_point": {"row": 28, "column": 0}, "end_point": {"row": 28, "column": 1}}, {"id": 182, "type": "cast_expression", "text": "(BOOL)isWOWSleep", "parent": 180, "children": [183, 185], "start_point": {"row": 28, "column": 2}, "end_point": {"row": 28, "column": 18}}, {"id": 183, "type": "type_descriptor", "text": "BOOL", "parent": 182, "children": [184], "start_point": {"row": 28, "column": 3}, "end_point": {"row": 28, "column": 7}}, {"id": 184, "type": "type_identifier", "text": "BOOL", "parent": 183, "children": [], "start_point": {"row": 28, "column": 3}, "end_point": {"row": 28, "column": 7}}, {"id": 185, "type": "identifier", "text": "isWOWSleep", "parent": 182, "children": [], "start_point": {"row": 28, "column": 8}, "end_point": {"row": 28, "column": 18}}, {"id": 186, "type": "unary_expression", "text": "- (unsigned long long)joinTime", "parent": null, "children": [187, 188], "start_point": {"row": 29, "column": 0}, "end_point": {"row": 29, "column": 30}}, {"id": 187, "type": "-", "text": "-", "parent": 186, "children": [], "start_point": {"row": 29, "column": 0}, "end_point": {"row": 29, "column": 1}}, {"id": 188, "type": "cast_expression", "text": "(unsigned long long)joinTime", "parent": 186, "children": [189, 194], "start_point": {"row": 29, "column": 2}, "end_point": {"row": 29, "column": 30}}, {"id": 189, "type": "type_descriptor", "text": "unsigned long long", "parent": 188, "children": [190], "start_point": {"row": 29, "column": 3}, "end_point": {"row": 29, "column": 21}}, {"id": 190, "type": "sized_type_specifier", "text": "unsigned long long", "parent": 189, "children": [191, 192, 193], "start_point": {"row": 29, "column": 3}, "end_point": {"row": 29, "column": 21}}, {"id": 191, "type": "unsigned", "text": "unsigned", "parent": 190, "children": [], "start_point": {"row": 29, "column": 3}, "end_point": {"row": 29, "column": 11}}, {"id": 192, "type": "long", "text": "long", "parent": 190, "children": [], "start_point": {"row": 29, "column": 12}, "end_point": {"row": 29, "column": 16}}, {"id": 193, "type": "long", "text": "long", "parent": 190, "children": [], "start_point": {"row": 29, "column": 17}, "end_point": {"row": 29, "column": 21}}, {"id": 194, "type": "identifier", "text": "joinTime", "parent": 188, "children": [], "start_point": {"row": 29, "column": 22}, "end_point": {"row": 29, "column": 30}}, {"id": 195, "type": "unary_expression", "text": "- (unsigned long long)leftTime", "parent": null, "children": [196, 197], "start_point": {"row": 30, "column": 0}, "end_point": {"row": 30, "column": 30}}, {"id": 196, "type": "-", "text": "-", "parent": 195, "children": [], "start_point": {"row": 30, "column": 0}, "end_point": {"row": 30, "column": 1}}, {"id": 197, "type": "cast_expression", "text": "(unsigned long long)leftTime", "parent": 195, "children": [198, 203], "start_point": {"row": 30, "column": 2}, "end_point": {"row": 30, "column": 30}}, {"id": 198, "type": "type_descriptor", "text": "unsigned long long", "parent": 197, "children": [199], "start_point": {"row": 30, "column": 3}, "end_point": {"row": 30, "column": 21}}, {"id": 199, "type": "sized_type_specifier", "text": "unsigned long long", "parent": 198, "children": [200, 201, 202], "start_point": {"row": 30, "column": 3}, "end_point": {"row": 30, "column": 21}}, {"id": 200, "type": "unsigned", "text": "unsigned", "parent": 199, "children": [], "start_point": {"row": 30, "column": 3}, "end_point": {"row": 30, "column": 11}}, {"id": 201, "type": "long", "text": "long", "parent": 199, "children": [], "start_point": {"row": 30, "column": 12}, "end_point": {"row": 30, "column": 16}}, {"id": 202, "type": "long", "text": "long", "parent": 199, "children": [], "start_point": {"row": 30, "column": 17}, "end_point": {"row": 30, "column": 21}}, {"id": 203, "type": "identifier", "text": "leftTime", "parent": 197, "children": [], "start_point": {"row": 30, "column": 22}, "end_point": {"row": 30, "column": 30}}, {"id": 204, "type": "ERROR", "text": "- (void)setCreateTime:(", "parent": null, "children": [205], "start_point": {"row": 31, "column": 0}, "end_point": {"row": 31, "column": 23}}, {"id": 205, "type": "unary_expression", "text": "- (void)setCreateTime", "parent": 204, "children": [206, 207], "start_point": {"row": 31, "column": 0}, "end_point": {"row": 31, "column": 21}}, {"id": 206, "type": "-", "text": "-", "parent": 205, "children": [], "start_point": {"row": 31, "column": 0}, "end_point": {"row": 31, "column": 1}}, {"id": 207, "type": "cast_expression", "text": "(void)setCreateTime", "parent": 205, "children": [208, 210], "start_point": {"row": 31, "column": 2}, "end_point": {"row": 31, "column": 21}}, {"id": 208, "type": "type_descriptor", "text": "void", "parent": 207, "children": [209], "start_point": {"row": 31, "column": 3}, "end_point": {"row": 31, "column": 7}}, {"id": 209, "type": "primitive_type", "text": "void", "parent": 208, "children": [], "start_point": {"row": 31, "column": 3}, "end_point": {"row": 31, "column": 7}}, {"id": 210, "type": "identifier", "text": "setCreateTime", "parent": 207, "children": [], "start_point": {"row": 31, "column": 8}, "end_point": {"row": 31, "column": 21}}, {"id": 211, "type": "declaration", "text": "unsigned long long)arg1;", "parent": null, "children": [212, 216], "start_point": {"row": 31, "column": 23}, "end_point": {"row": 31, "column": 47}}, {"id": 212, "type": "sized_type_specifier", "text": "unsigned long long", "parent": 211, "children": [213, 214, 215], "start_point": {"row": 31, "column": 23}, "end_point": {"row": 31, "column": 41}}, {"id": 213, "type": "unsigned", "text": "unsigned", "parent": 212, "children": [], "start_point": {"row": 31, "column": 23}, "end_point": {"row": 31, "column": 31}}, {"id": 214, "type": "long", "text": "long", "parent": 212, "children": [], "start_point": {"row": 31, "column": 32}, "end_point": {"row": 31, "column": 36}}, {"id": 215, "type": "long", "text": "long", "parent": 212, "children": [], "start_point": {"row": 31, "column": 37}, "end_point": {"row": 31, "column": 41}}, {"id": 216, "type": "identifier", "text": "arg1", "parent": 211, "children": [], "start_point": {"row": 31, "column": 42}, "end_point": {"row": 31, "column": 46}}, {"id": 217, "type": "ERROR", "text": "- (void)setDeauthReason:(", "parent": null, "children": [218], "start_point": {"row": 32, "column": 0}, "end_point": {"row": 32, "column": 25}}, {"id": 218, "type": "unary_expression", "text": "- (void)setDeauthReason", "parent": 217, "children": [219, 220], "start_point": {"row": 32, "column": 0}, "end_point": {"row": 32, "column": 23}}, {"id": 219, "type": "-", "text": "-", "parent": 218, "children": [], "start_point": {"row": 32, "column": 0}, "end_point": {"row": 32, "column": 1}}, {"id": 220, "type": "cast_expression", "text": "(void)setDeauthReason", "parent": 218, "children": [221, 223], "start_point": {"row": 32, "column": 2}, "end_point": {"row": 32, "column": 23}}, {"id": 221, "type": "type_descriptor", "text": "void", "parent": 220, "children": [222], "start_point": {"row": 32, "column": 3}, "end_point": {"row": 32, "column": 7}}, {"id": 222, "type": "primitive_type", "text": "void", "parent": 221, "children": [], "start_point": {"row": 32, "column": 3}, "end_point": {"row": 32, "column": 7}}, {"id": 223, "type": "identifier", "text": "setDeauthReason", "parent": 220, "children": [], "start_point": {"row": 32, "column": 8}, "end_point": {"row": 32, "column": 23}}, {"id": 224, "type": "declaration", "text": "unsigned long long)arg1;", "parent": null, "children": [225, 229], "start_point": {"row": 32, "column": 25}, "end_point": {"row": 32, "column": 49}}, {"id": 225, "type": "sized_type_specifier", "text": "unsigned long long", "parent": 224, "children": [226, 227, 228], "start_point": {"row": 32, "column": 25}, "end_point": {"row": 32, "column": 43}}, {"id": 226, "type": "unsigned", "text": "unsigned", "parent": 225, "children": [], "start_point": {"row": 32, "column": 25}, "end_point": {"row": 32, "column": 33}}, {"id": 227, "type": "long", "text": "long", "parent": 225, "children": [], "start_point": {"row": 32, "column": 34}, "end_point": {"row": 32, "column": 38}}, {"id": 228, "type": "long", "text": "long", "parent": 225, "children": [], "start_point": {"row": 32, "column": 39}, "end_point": {"row": 32, "column": 43}}, {"id": 229, "type": "identifier", "text": "arg1", "parent": 224, "children": [], "start_point": {"row": 32, "column": 44}, "end_point": {"row": 32, "column": 48}}, {"id": 230, "type": "unary_expression", "text": "- (void)setIsAssociated", "parent": null, "children": [231, 232], "start_point": {"row": 33, "column": 0}, "end_point": {"row": 33, "column": 23}}, {"id": 231, "type": "-", "text": "-", "parent": 230, "children": [], "start_point": {"row": 33, "column": 0}, "end_point": {"row": 33, "column": 1}}, {"id": 232, "type": "cast_expression", "text": "(void)setIsAssociated", "parent": 230, "children": [233, 235], "start_point": {"row": 33, "column": 2}, "end_point": {"row": 33, "column": 23}}, {"id": 233, "type": "type_descriptor", "text": "void", "parent": 232, "children": [234], "start_point": {"row": 33, "column": 3}, "end_point": {"row": 33, "column": 7}}, {"id": 234, "type": "primitive_type", "text": "void", "parent": 233, "children": [], "start_point": {"row": 33, "column": 3}, "end_point": {"row": 33, "column": 7}}, {"id": 235, "type": "identifier", "text": "setIsAssociated", "parent": 232, "children": [], "start_point": {"row": 33, "column": 8}, "end_point": {"row": 33, "column": 23}}, {"id": 236, "type": "ERROR", "text": ":(BOOL)arg1", "parent": null, "children": [237, 238], "start_point": {"row": 33, "column": 23}, "end_point": {"row": 33, "column": 34}}, {"id": 237, "type": "identifier", "text": "BOOL", "parent": 236, "children": [], "start_point": {"row": 33, "column": 25}, "end_point": {"row": 33, "column": 29}}, {"id": 238, "type": "identifier", "text": "arg1", "parent": 236, "children": [], "start_point": {"row": 33, "column": 30}, "end_point": {"row": 33, "column": 34}}, {"id": 239, "type": "unary_expression", "text": "- (void)setIsWOWSleep", "parent": null, "children": [240, 241], "start_point": {"row": 34, "column": 0}, "end_point": {"row": 34, "column": 21}}, {"id": 240, "type": "-", "text": "-", "parent": 239, "children": [], "start_point": {"row": 34, "column": 0}, "end_point": {"row": 34, "column": 1}}, {"id": 241, "type": "cast_expression", "text": "(void)setIsWOWSleep", "parent": 239, "children": [242, 244], "start_point": {"row": 34, "column": 2}, "end_point": {"row": 34, "column": 21}}, {"id": 242, "type": "type_descriptor", "text": "void", "parent": 241, "children": [243], "start_point": {"row": 34, "column": 3}, "end_point": {"row": 34, "column": 7}}, {"id": 243, "type": "primitive_type", "text": "void", "parent": 242, "children": [], "start_point": {"row": 34, "column": 3}, "end_point": {"row": 34, "column": 7}}, {"id": 244, "type": "identifier", "text": "setIsWOWSleep", "parent": 241, "children": [], "start_point": {"row": 34, "column": 8}, "end_point": {"row": 34, "column": 21}}, {"id": 245, "type": "ERROR", "text": ":(BOOL)arg1", "parent": null, "children": [246, 247], "start_point": {"row": 34, "column": 21}, "end_point": {"row": 34, "column": 32}}, {"id": 246, "type": "identifier", "text": "BOOL", "parent": 245, "children": [], "start_point": {"row": 34, "column": 23}, "end_point": {"row": 34, "column": 27}}, {"id": 247, "type": "identifier", "text": "arg1", "parent": 245, "children": [], "start_point": {"row": 34, "column": 28}, "end_point": {"row": 34, "column": 32}}, {"id": 248, "type": "ERROR", "text": "- (void)setJoinTime:(", "parent": null, "children": [249], "start_point": {"row": 35, "column": 0}, "end_point": {"row": 35, "column": 21}}, {"id": 249, "type": "unary_expression", "text": "- (void)setJoinTime", "parent": 248, "children": [250, 251], "start_point": {"row": 35, "column": 0}, "end_point": {"row": 35, "column": 19}}, {"id": 250, "type": "-", "text": "-", "parent": 249, "children": [], "start_point": {"row": 35, "column": 0}, "end_point": {"row": 35, "column": 1}}, {"id": 251, "type": "cast_expression", "text": "(void)setJoinTime", "parent": 249, "children": [252, 254], "start_point": {"row": 35, "column": 2}, "end_point": {"row": 35, "column": 19}}, {"id": 252, "type": "type_descriptor", "text": "void", "parent": 251, "children": [253], "start_point": {"row": 35, "column": 3}, "end_point": {"row": 35, "column": 7}}, {"id": 253, "type": "primitive_type", "text": "void", "parent": 252, "children": [], "start_point": {"row": 35, "column": 3}, "end_point": {"row": 35, "column": 7}}, {"id": 254, "type": "identifier", "text": "setJoinTime", "parent": 251, "children": [], "start_point": {"row": 35, "column": 8}, "end_point": {"row": 35, "column": 19}}, {"id": 255, "type": "declaration", "text": "unsigned long long)arg1;", "parent": null, "children": [256, 260], "start_point": {"row": 35, "column": 21}, "end_point": {"row": 35, "column": 45}}, {"id": 256, "type": "sized_type_specifier", "text": "unsigned long long", "parent": 255, "children": [257, 258, 259], "start_point": {"row": 35, "column": 21}, "end_point": {"row": 35, "column": 39}}, {"id": 257, "type": "unsigned", "text": "unsigned", "parent": 256, "children": [], "start_point": {"row": 35, "column": 21}, "end_point": {"row": 35, "column": 29}}, {"id": 258, "type": "long", "text": "long", "parent": 256, "children": [], "start_point": {"row": 35, "column": 30}, "end_point": {"row": 35, "column": 34}}, {"id": 259, "type": "long", "text": "long", "parent": 256, "children": [], "start_point": {"row": 35, "column": 35}, "end_point": {"row": 35, "column": 39}}, {"id": 260, "type": "identifier", "text": "arg1", "parent": 255, "children": [], "start_point": {"row": 35, "column": 40}, "end_point": {"row": 35, "column": 44}}, {"id": 261, "type": "ERROR", "text": "- (void)setLeftTime:(", "parent": null, "children": [262], "start_point": {"row": 36, "column": 0}, "end_point": {"row": 36, "column": 21}}, {"id": 262, "type": "unary_expression", "text": "- (void)setLeftTime", "parent": 261, "children": [263, 264], "start_point": {"row": 36, "column": 0}, "end_point": {"row": 36, "column": 19}}, {"id": 263, "type": "-", "text": "-", "parent": 262, "children": [], "start_point": {"row": 36, "column": 0}, "end_point": {"row": 36, "column": 1}}, {"id": 264, "type": "cast_expression", "text": "(void)setLeftTime", "parent": 262, "children": [265, 267], "start_point": {"row": 36, "column": 2}, "end_point": {"row": 36, "column": 19}}, {"id": 265, "type": "type_descriptor", "text": "void", "parent": 264, "children": [266], "start_point": {"row": 36, "column": 3}, "end_point": {"row": 36, "column": 7}}, {"id": 266, "type": "primitive_type", "text": "void", "parent": 265, "children": [], "start_point": {"row": 36, "column": 3}, "end_point": {"row": 36, "column": 7}}, {"id": 267, "type": "identifier", "text": "setLeftTime", "parent": 264, "children": [], "start_point": {"row": 36, "column": 8}, "end_point": {"row": 36, "column": 19}}, {"id": 268, "type": "declaration", "text": "unsigned long long)arg1;", "parent": null, "children": [269, 273], "start_point": {"row": 36, "column": 21}, "end_point": {"row": 36, "column": 45}}, {"id": 269, "type": "sized_type_specifier", "text": "unsigned long long", "parent": 268, "children": [270, 271, 272], "start_point": {"row": 36, "column": 21}, "end_point": {"row": 36, "column": 39}}, {"id": 270, "type": "unsigned", "text": "unsigned", "parent": 269, "children": [], "start_point": {"row": 36, "column": 21}, "end_point": {"row": 36, "column": 29}}, {"id": 271, "type": "long", "text": "long", "parent": 269, "children": [], "start_point": {"row": 36, "column": 30}, "end_point": {"row": 36, "column": 34}}, {"id": 272, "type": "long", "text": "long", "parent": 269, "children": [], "start_point": {"row": 36, "column": 35}, "end_point": {"row": 36, "column": 39}}, {"id": 273, "type": "identifier", "text": "arg1", "parent": 268, "children": [], "start_point": {"row": 36, "column": 40}, "end_point": {"row": 36, "column": 44}}, {"id": 274, "type": "unary_expression", "text": "- (id)skeleton", "parent": null, "children": [275, 276], "start_point": {"row": 37, "column": 0}, "end_point": {"row": 37, "column": 14}}, {"id": 275, "type": "-", "text": "-", "parent": 274, "children": [], "start_point": {"row": 37, "column": 0}, "end_point": {"row": 37, "column": 1}}, {"id": 276, "type": "cast_expression", "text": "(id)skeleton", "parent": 274, "children": [277, 279], "start_point": {"row": 37, "column": 2}, "end_point": {"row": 37, "column": 14}}, {"id": 277, "type": "type_descriptor", "text": "id", "parent": 276, "children": [278], "start_point": {"row": 37, "column": 3}, "end_point": {"row": 37, "column": 5}}, {"id": 278, "type": "type_identifier", "text": "id", "parent": 277, "children": [], "start_point": {"row": 37, "column": 3}, "end_point": {"row": 37, "column": 5}}, {"id": 279, "type": "identifier", "text": "skeleton", "parent": 276, "children": [], "start_point": {"row": 37, "column": 6}, "end_point": {"row": 37, "column": 14}}, {"id": 280, "type": "ERROR", "text": "@", "parent": null, "children": [281], "start_point": {"row": 39, "column": 0}, "end_point": {"row": 39, "column": 1}}, {"id": 281, "type": "ERROR", "text": "@", "parent": 280, "children": [], "start_point": {"row": 39, "column": 0}, "end_point": {"row": 39, "column": 1}}]}, "node_categories": {"declarations": {"functions": [2], "variables": [7, 13, 19, 22, 25, 31, 45, 58, 89, 102, 156, 211, 224, 255, 268], "classes": [], "imports": [], "modules": [], "enums": []}, "statements": {"expressions": [39, 52, 65, 74, 83, 96, 107, 109, 116, 118, 122, 124, 131, 133, 137, 139, 144, 146, 165, 167, 174, 176, 180, 182, 186, 188, 195, 197, 205, 207, 218, 220, 230, 232, 239, 241, 249, 251, 262, 264, 274, 276], "assignments": [], "loops": [], "conditionals": [3, 4, 6, 8, 12, 14, 18, 20, 21, 23, 24, 26, 30, 32, 36, 40, 42, 43, 44, 46, 49, 53, 55, 56, 57, 59, 62, 66, 68, 69, 70, 71, 75, 77, 78, 79, 80, 84, 86, 87, 88, 90, 93, 97, 99, 100, 101, 103, 106, 111, 115, 121, 126, 130, 135, 136, 141, 142, 148, 149, 150, 151, 152, 153, 154, 155, 157, 160, 162, 163, 164, 169, 170, 172, 173, 178, 179, 184, 185, 190, 194, 199, 203, 210, 212, 216, 223, 225, 229, 235, 237, 238, 244, 246, 247, 254, 256, 260, 267, 269, 273, 278, 279], "returns": [], "exceptions": []}, "expressions": {"calls": [], "literals": [], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [{"node_id": 2, "universal_type": "function", "name": "CoreWiFiClient", "text_snippet": "interface CoreWiFiClient : CoreWiFiMAC {\n unsigned long long createTime;\n unsigned long long "}], "class_declarations": [], "import_statements": []}, "original_source_code": "/* Generated by RuntimeBrowser\n Image: /System/Library/PrivateFrameworks/CoreWiFi.framework/Versions/A/CoreWiFi\n */\n\n@interface CoreWiFiClient : CoreWiFiMAC {\n unsigned long long createTime;\n unsigned long long deauthReason;\n BOOL isAssociated;\n BOOL isWOWSleep;\n unsigned long long joinTime;\n unsigned long long leftTime;\n}\n\n@property (nonatomic, readwrite) unsigned long long createTime;\n@property (nonatomic, readwrite) unsigned long long deauthReason;\n@property (nonatomic, readwrite) BOOL isAssociated;\n@property (nonatomic, readwrite) BOOL isWOWSleep;\n@property (nonatomic, readwrite) unsigned long long joinTime;\n@property (nonatomic, readwrite) unsigned long long leftTime;\n\n- (unsigned long long)createTime;\n- (void)dealloc;\n- (unsigned long long)deauthReason;\n- (id)debugDescription;\n- (id)description;\n- (id)initWithMAC:(id)arg1 interfaceName:(id)arg2 channel:(long long)arg3 ies:(id)arg4;\n- (id)initWithSkeleton:(id)arg1;\n- (BOOL)isAssociated;\n- (BOOL)isWOWSleep;\n- (unsigned long long)joinTime;\n- (unsigned long long)leftTime;\n- (void)setCreateTime:(unsigned long long)arg1;\n- (void)setDeauthReason:(unsigned long long)arg1;\n- (void)setIsAssociated:(BOOL)arg1;\n- (void)setIsWOWSleep:(BOOL)arg1;\n- (void)setJoinTime:(unsigned long long)arg1;\n- (void)setLeftTime:(unsigned long long)arg1;\n- (id)skeleton;\n\n@end\n"}
80,054
c
#pragma once #include "ASTVariableNode.h" #include "ASTExpressionNode.h" namespace trent { class ASTFunctionDeclarationNode :public ASTNode { public: ASTFunctionDeclarationNode(); std::string d_function_name; std::vector<NodeRef<ASTVariableNode>> d_parameters; std::vector<NodeRef<ASTNode>> d_body; // **Important: Will be set at runtime by the interpreter. NodeRef<ASTExpressionNode> d_return_value; }; }
26.12
16
(translation_unit) "#pragma once\n#include "ASTVariableNode.h"\n#include "ASTExpressionNode.h"\n\nnamespace trent\n{\n class ASTFunctionDeclarationNode :public ASTNode\n {\n public:\n ASTFunctionDeclarationNode();\n\n std::string d_function_name;\n\n std::vector<NodeRef<ASTVariableNode>> d_parameters;\n std::vector<NodeRef<ASTNode>> d_body;\n\n // **Important: Will be set at runtime by the interpreter.\n NodeRef<ASTExpressionNode> d_return_value;\n };\n}\n" (preproc_call) "#pragma once\n" (preproc_directive) "#pragma" (preproc_arg) "once" (preproc_include) "#include "ASTVariableNode.h"\n" (#include) "#include" (string_literal) ""ASTVariableNode.h"" (") """ (string_content) "ASTVariableNode.h" (") """ (preproc_include) "#include "ASTExpressionNode.h"\n" (#include) "#include" (string_literal) ""ASTExpressionNode.h"" (") """ (string_content) "ASTExpressionNode.h" (") """ (function_definition) "namespace trent\n{\n class ASTFunctionDeclarationNode :public ASTNode\n {\n public:\n ASTFunctionDeclarationNode();\n\n std::string d_function_name;\n\n std::vector<NodeRef<ASTVariableNode>> d_parameters;\n std::vector<NodeRef<ASTNode>> d_body;\n\n // **Important: Will be set at runtime by the interpreter.\n NodeRef<ASTExpressionNode> d_return_value;\n };\n}" (type_identifier) "namespace" (identifier) "trent" (compound_statement) "{\n class ASTFunctionDeclarationNode :public ASTNode\n {\n public:\n ASTFunctionDeclarationNode();\n\n std::string d_function_name;\n\n std::vector<NodeRef<ASTVariableNode>> d_parameters;\n std::vector<NodeRef<ASTNode>> d_body;\n\n // **Important: Will be set at runtime by the interpreter.\n NodeRef<ASTExpressionNode> d_return_value;\n };\n}" ({) "{" (function_definition) "class ASTFunctionDeclarationNode :public ASTNode\n {\n public:\n ASTFunctionDeclarationNode();\n\n std::string d_function_name;\n\n std::vector<NodeRef<ASTVariableNode>> d_parameters;\n std::vector<NodeRef<ASTNode>> d_body;\n\n // **Important: Will be set at runtime by the interpreter.\n NodeRef<ASTExpressionNode> d_return_value;\n }" (type_identifier) "class" (identifier) "ASTFunctionDeclarationNode" (ERROR) ":public ASTNode" (:) ":" (identifier) "public" (identifier) "ASTNode" (compound_statement) "{\n public:\n ASTFunctionDeclarationNode();\n\n std::string d_function_name;\n\n std::vector<NodeRef<ASTVariableNode>> d_parameters;\n std::vector<NodeRef<ASTNode>> d_body;\n\n // **Important: Will be set at runtime by the interpreter.\n NodeRef<ASTExpressionNode> d_return_value;\n }" ({) "{" (labeled_statement) "public:\n ASTFunctionDeclarationNode();" (statement_identifier) "public" (:) ":" (expression_statement) "ASTFunctionDeclarationNode();" (call_expression) "ASTFunctionDeclarationNode()" (identifier) "ASTFunctionDeclarationNode" (argument_list) "()" (() "(" ()) ")" (;) ";" (labeled_statement) "std::string d_function_name;" (statement_identifier) "std" (:) ":" (ERROR) ":" (:) ":" (declaration) "string d_function_name;" (type_identifier) "string" (identifier) "d_function_name" (;) ";" (labeled_statement) "std::vector<NodeRef<ASTVariableNode>> d_parameters;" (statement_identifier) "std" (:) ":" (ERROR) ":" (:) ":" (expression_statement) "vector<NodeRef<ASTVariableNode>> d_parameters;" (binary_expression) "vector<NodeRef<ASTVariableNode>> d_parameters" (binary_expression) "vector<NodeRef" (identifier) "vector" (<) "<" (identifier) "NodeRef" (<) "<" (binary_expression) "ASTVariableNode>> d_parameters" (identifier) "ASTVariableNode" (>>) ">>" (identifier) "d_parameters" (;) ";" (labeled_statement) "std::vector<NodeRef<ASTNode>> d_body;" (statement_identifier) "std" (:) ":" (ERROR) ":" (:) ":" (expression_statement) "vector<NodeRef<ASTNode>> d_body;" (binary_expression) "vector<NodeRef<ASTNode>> d_body" (binary_expression) "vector<NodeRef" (identifier) "vector" (<) "<" (identifier) "NodeRef" (<) "<" (binary_expression) "ASTNode>> d_body" (identifier) "ASTNode" (>>) ">>" (identifier) "d_body" (;) ";" (comment) "// **Important: Will be set at runtime by the interpreter." (expression_statement) "NodeRef<ASTExpressionNode> d_return_value;" (binary_expression) "NodeRef<ASTExpressionNode> d_return_value" (binary_expression) "NodeRef<ASTExpressionNode" (identifier) "NodeRef" (<) "<" (identifier) "ASTExpressionNode" (>) ">" (identifier) "d_return_value" (;) ";" (}) "}" (expression_statement) ";" (;) ";" (}) "}"
97
4
{"language": "c", "success": true, "metadata": {"lines": 16, "avg_line_length": 26.12, "nodes": 56, "errors": 0, "source_hash": "ab07771683180e5cff356da729aa5ae0770267b02d3833c9b9795aec854d5479", "categorized_nodes": 40}, "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 \"ASTVariableNode.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": "\"ASTVariableNode.h\"", "parent": 3, "children": [], "start_point": {"row": 1, "column": 9}, "end_point": {"row": 1, "column": 28}}, {"id": 6, "type": "preproc_include", "text": "#include \"ASTExpressionNode.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": "\"ASTExpressionNode.h\"", "parent": 6, "children": [], "start_point": {"row": 2, "column": 9}, "end_point": {"row": 2, "column": 30}}, {"id": 9, "type": "function_definition", "text": "namespace trent\n{\n\tclass ASTFunctionDeclarationNode :public ASTNode\n\t{\n\tpublic:\n\t\tASTFunctionDeclarationNode();\n\n\t\tstd::string\t\t\t\t\t\t\t\td_function_name;\n\n\t\tstd::vector<NodeRef<ASTVariableNode>>\td_parameters;\n\t\tstd::vector<NodeRef<ASTNode>>\t\t\td_body;\n\n\t\t// **Important: Will be set at runtime by the interpreter.\n\t\tNodeRef<ASTExpressionNode>\t\t\t\td_return_value;\n\t};\n}", "parent": null, "children": [10, 11], "start_point": {"row": 4, "column": 0}, "end_point": {"row": 19, "column": 1}}, {"id": 10, "type": "type_identifier", "text": "namespace", "parent": 9, "children": [], "start_point": {"row": 4, "column": 0}, "end_point": {"row": 4, "column": 9}}, {"id": 11, "type": "identifier", "text": "trent", "parent": 9, "children": [], "start_point": {"row": 4, "column": 10}, "end_point": {"row": 4, "column": 15}}, {"id": 12, "type": "function_definition", "text": "class ASTFunctionDeclarationNode :public ASTNode\n\t{\n\tpublic:\n\t\tASTFunctionDeclarationNode();\n\n\t\tstd::string\t\t\t\t\t\t\t\td_function_name;\n\n\t\tstd::vector<NodeRef<ASTVariableNode>>\td_parameters;\n\t\tstd::vector<NodeRef<ASTNode>>\t\t\td_body;\n\n\t\t// **Important: Will be set at runtime by the interpreter.\n\t\tNodeRef<ASTExpressionNode>\t\t\t\td_return_value;\n\t}", "parent": 9, "children": [13, 14], "start_point": {"row": 6, "column": 1}, "end_point": {"row": 18, "column": 2}}, {"id": 13, "type": "identifier", "text": "ASTFunctionDeclarationNode", "parent": 12, "children": [], "start_point": {"row": 6, "column": 7}, "end_point": {"row": 6, "column": 33}}, {"id": 14, "type": "ERROR", "text": ":public ASTNode", "parent": 12, "children": [15], "start_point": {"row": 6, "column": 34}, "end_point": {"row": 6, "column": 49}}, {"id": 15, "type": "identifier", "text": "ASTNode", "parent": 14, "children": [], "start_point": {"row": 6, "column": 42}, "end_point": {"row": 6, "column": 49}}, {"id": 16, "type": "labeled_statement", "text": "public:\n\t\tASTFunctionDeclarationNode();", "parent": 12, "children": [], "start_point": {"row": 8, "column": 1}, "end_point": {"row": 9, "column": 31}}, {"id": 17, "type": "call_expression", "text": "ASTFunctionDeclarationNode()", "parent": 16, "children": [18, 19], "start_point": {"row": 9, "column": 2}, "end_point": {"row": 9, "column": 30}}, {"id": 18, "type": "identifier", "text": "ASTFunctionDeclarationNode", "parent": 17, "children": [], "start_point": {"row": 9, "column": 2}, "end_point": {"row": 9, "column": 28}}, {"id": 19, "type": "argument_list", "text": "()", "parent": 17, "children": [], "start_point": {"row": 9, "column": 28}, "end_point": {"row": 9, "column": 30}}, {"id": 20, "type": "labeled_statement", "text": "std::string\t\t\t\t\t\t\t\td_function_name;", "parent": 12, "children": [21, 22], "start_point": {"row": 11, "column": 2}, "end_point": {"row": 11, "column": 37}}, {"id": 21, "type": "statement_identifier", "text": "std", "parent": 20, "children": [], "start_point": {"row": 11, "column": 2}, "end_point": {"row": 11, "column": 5}}, {"id": 22, "type": "declaration", "text": "string\t\t\t\t\t\t\t\td_function_name;", "parent": 20, "children": [23, 24], "start_point": {"row": 11, "column": 7}, "end_point": {"row": 11, "column": 37}}, {"id": 23, "type": "type_identifier", "text": "string", "parent": 22, "children": [], "start_point": {"row": 11, "column": 7}, "end_point": {"row": 11, "column": 13}}, {"id": 24, "type": "identifier", "text": "d_function_name", "parent": 22, "children": [], "start_point": {"row": 11, "column": 21}, "end_point": {"row": 11, "column": 36}}, {"id": 25, "type": "labeled_statement", "text": "std::vector<NodeRef<ASTVariableNode>>\td_parameters;", "parent": 12, "children": [26], "start_point": {"row": 13, "column": 2}, "end_point": {"row": 13, "column": 53}}, {"id": 26, "type": "statement_identifier", "text": "std", "parent": 25, "children": [], "start_point": {"row": 13, "column": 2}, "end_point": {"row": 13, "column": 5}}, {"id": 27, "type": "binary_expression", "text": "vector<NodeRef<ASTVariableNode>>\td_parameters", "parent": 25, "children": [28, 32, 33], "start_point": {"row": 13, "column": 7}, "end_point": {"row": 13, "column": 52}}, {"id": 28, "type": "binary_expression", "text": "vector<NodeRef", "parent": 27, "children": [29, 30, 31], "start_point": {"row": 13, "column": 7}, "end_point": {"row": 13, "column": 21}}, {"id": 29, "type": "identifier", "text": "vector", "parent": 28, "children": [], "start_point": {"row": 13, "column": 7}, "end_point": {"row": 13, "column": 13}}, {"id": 30, "type": "<", "text": "<", "parent": 28, "children": [], "start_point": {"row": 13, "column": 13}, "end_point": {"row": 13, "column": 14}}, {"id": 31, "type": "identifier", "text": "NodeRef", "parent": 28, "children": [], "start_point": {"row": 13, "column": 14}, "end_point": {"row": 13, "column": 21}}, {"id": 32, "type": "<", "text": "<", "parent": 27, "children": [], "start_point": {"row": 13, "column": 21}, "end_point": {"row": 13, "column": 22}}, {"id": 33, "type": "binary_expression", "text": "ASTVariableNode>>\td_parameters", "parent": 27, "children": [34, 35, 36], "start_point": {"row": 13, "column": 22}, "end_point": {"row": 13, "column": 52}}, {"id": 34, "type": "identifier", "text": "ASTVariableNode", "parent": 33, "children": [], "start_point": {"row": 13, "column": 22}, "end_point": {"row": 13, "column": 37}}, {"id": 35, "type": ">>", "text": ">>", "parent": 33, "children": [], "start_point": {"row": 13, "column": 37}, "end_point": {"row": 13, "column": 39}}, {"id": 36, "type": "identifier", "text": "d_parameters", "parent": 33, "children": [], "start_point": {"row": 13, "column": 40}, "end_point": {"row": 13, "column": 52}}, {"id": 37, "type": "labeled_statement", "text": "std::vector<NodeRef<ASTNode>>\t\t\td_body;", "parent": 12, "children": [38], "start_point": {"row": 14, "column": 2}, "end_point": {"row": 14, "column": 41}}, {"id": 38, "type": "statement_identifier", "text": "std", "parent": 37, "children": [], "start_point": {"row": 14, "column": 2}, "end_point": {"row": 14, "column": 5}}, {"id": 39, "type": "binary_expression", "text": "vector<NodeRef<ASTNode>>\t\t\td_body", "parent": 37, "children": [40, 44, 45], "start_point": {"row": 14, "column": 7}, "end_point": {"row": 14, "column": 40}}, {"id": 40, "type": "binary_expression", "text": "vector<NodeRef", "parent": 39, "children": [41, 42, 43], "start_point": {"row": 14, "column": 7}, "end_point": {"row": 14, "column": 21}}, {"id": 41, "type": "identifier", "text": "vector", "parent": 40, "children": [], "start_point": {"row": 14, "column": 7}, "end_point": {"row": 14, "column": 13}}, {"id": 42, "type": "<", "text": "<", "parent": 40, "children": [], "start_point": {"row": 14, "column": 13}, "end_point": {"row": 14, "column": 14}}, {"id": 43, "type": "identifier", "text": "NodeRef", "parent": 40, "children": [], "start_point": {"row": 14, "column": 14}, "end_point": {"row": 14, "column": 21}}, {"id": 44, "type": "<", "text": "<", "parent": 39, "children": [], "start_point": {"row": 14, "column": 21}, "end_point": {"row": 14, "column": 22}}, {"id": 45, "type": "binary_expression", "text": "ASTNode>>\t\t\td_body", "parent": 39, "children": [46, 47, 48], "start_point": {"row": 14, "column": 22}, "end_point": {"row": 14, "column": 40}}, {"id": 46, "type": "identifier", "text": "ASTNode", "parent": 45, "children": [], "start_point": {"row": 14, "column": 22}, "end_point": {"row": 14, "column": 29}}, {"id": 47, "type": ">>", "text": ">>", "parent": 45, "children": [], "start_point": {"row": 14, "column": 29}, "end_point": {"row": 14, "column": 31}}, {"id": 48, "type": "identifier", "text": "d_body", "parent": 45, "children": [], "start_point": {"row": 14, "column": 34}, "end_point": {"row": 14, "column": 40}}, {"id": 49, "type": "binary_expression", "text": "NodeRef<ASTExpressionNode>\t\t\t\td_return_value", "parent": 12, "children": [50, 54, 55], "start_point": {"row": 17, "column": 2}, "end_point": {"row": 17, "column": 46}}, {"id": 50, "type": "binary_expression", "text": "NodeRef<ASTExpressionNode", "parent": 49, "children": [51, 52, 53], "start_point": {"row": 17, "column": 2}, "end_point": {"row": 17, "column": 27}}, {"id": 51, "type": "identifier", "text": "NodeRef", "parent": 50, "children": [], "start_point": {"row": 17, "column": 2}, "end_point": {"row": 17, "column": 9}}, {"id": 52, "type": "<", "text": "<", "parent": 50, "children": [], "start_point": {"row": 17, "column": 9}, "end_point": {"row": 17, "column": 10}}, {"id": 53, "type": "identifier", "text": "ASTExpressionNode", "parent": 50, "children": [], "start_point": {"row": 17, "column": 10}, "end_point": {"row": 17, "column": 27}}, {"id": 54, "type": ">", "text": ">", "parent": 49, "children": [], "start_point": {"row": 17, "column": 27}, "end_point": {"row": 17, "column": 28}}, {"id": 55, "type": "identifier", "text": "d_return_value", "parent": 49, "children": [], "start_point": {"row": 17, "column": 32}, "end_point": {"row": 17, "column": 46}}]}, "node_categories": {"declarations": {"functions": [9, 12], "variables": [22], "classes": [], "imports": [3, 4, 6, 7], "modules": [], "enums": []}, "statements": {"expressions": [17, 27, 28, 33, 39, 40, 45, 49, 50], "assignments": [], "loops": [], "conditionals": [10, 11, 13, 15, 18, 21, 23, 24, 26, 29, 31, 34, 36, 38, 41, 43, 46, 48, 51, 53, 55], "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": "ASTFunctionDeclarationNode", "text_snippet": "namespace trent\n{\n\tclass ASTFunctionDeclarationNode :public ASTNode\n\t{\n\tpublic:\n\t\tASTFunctionDeclara"}, {"node_id": 12, "universal_type": "function", "name": "ASTFunctionDeclarationNode", "text_snippet": "class ASTFunctionDeclarationNode :public ASTNode\n\t{\n\tpublic:\n\t\tASTFunctionDeclarationNode();\n\n\t\tstd:"}], "class_declarations": [], "import_statements": [{"node_id": 3, "text": "#include \"ASTVariableNode.h\"\n"}, {"node_id": 4, "text": "#include"}, {"node_id": 6, "text": "#include \"ASTExpressionNode.h\"\n"}, {"node_id": 7, "text": "#include"}]}, "original_source_code": "#pragma once\n#include \"ASTVariableNode.h\"\n#include \"ASTExpressionNode.h\"\n\nnamespace trent\n{\n\tclass ASTFunctionDeclarationNode :public ASTNode\n\t{\n\tpublic:\n\t\tASTFunctionDeclarationNode();\n\n\t\tstd::string\t\t\t\t\t\t\t\td_function_name;\n\n\t\tstd::vector<NodeRef<ASTVariableNode>>\td_parameters;\n\t\tstd::vector<NodeRef<ASTNode>>\t\t\td_body;\n\n\t\t// **Important: Will be set at runtime by the interpreter.\n\t\tNodeRef<ASTExpressionNode>\t\t\t\td_return_value;\n\t};\n}\n"}
80,055
c
version https://git-lfs.github.com/spec/v1 oid sha256:551cae90ca254f04692ba06561aaa63bb8daf50319ab6e85b951e08bbfc51f00 size 8124
42
3
(translation_unit) "version https://git-lfs.github.com/spec/v1\noid sha256:551cae90ca254f04692ba06561aaa63bb8daf50319ab6e85b951e08bbfc51f00\nsize 8124\n" (declaration) "version https://git-lfs.github.com/spec/v1\noid" (type_identifier) "version" (ERROR) "https:" (identifier) "https" (:) ":" (comment) "//git-lfs.github.com/spec/v1" (identifier) "oid" (;) "" (labeled_statement) "sha256:551cae90ca254f04692ba06561aaa63bb8daf50319ab6e85b951e08bbfc51f00\nsize 8124" (statement_identifier) "sha256" (:) ":" (ERROR) "551cae90ca254f04692ba06561aaa63bb8daf50319ab6e85b951e08bbfc51f00\nsize" (number_literal) "551" (type_identifier) "cae90ca254f04692ba06561aaa63bb8daf50319ab6e85b951e08bbfc51f00" (identifier) "size" (expression_statement) "8124" (number_literal) "8124" (;) ""
19
2
{"language": "c", "success": true, "metadata": {"lines": 3, "avg_line_length": 42.0, "nodes": 12, "errors": 0, "source_hash": "8614156f298385db6cbc28add861e80fe0991a694f95ba0bac9adac7be394166", "categorized_nodes": 9}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "declaration", "text": "version https://git-lfs.github.com/spec/v1\noid", "parent": null, "children": [1, 2, 4], "start_point": {"row": 0, "column": 0}, "end_point": {"row": 1, "column": 3}}, {"id": 1, "type": "type_identifier", "text": "version", "parent": 0, "children": [], "start_point": {"row": 0, "column": 0}, "end_point": {"row": 0, "column": 7}}, {"id": 2, "type": "ERROR", "text": "https:", "parent": 0, "children": [3], "start_point": {"row": 0, "column": 8}, "end_point": {"row": 0, "column": 14}}, {"id": 3, "type": "identifier", "text": "https", "parent": 2, "children": [], "start_point": {"row": 0, "column": 8}, "end_point": {"row": 0, "column": 13}}, {"id": 4, "type": "identifier", "text": "oid", "parent": 0, "children": [], "start_point": {"row": 1, "column": 0}, "end_point": {"row": 1, "column": 3}}, {"id": 5, "type": "labeled_statement", "text": "sha256:551cae90ca254f04692ba06561aaa63bb8daf50319ab6e85b951e08bbfc51f00\nsize 8124", "parent": null, "children": [6, 7], "start_point": {"row": 1, "column": 4}, "end_point": {"row": 2, "column": 9}}, {"id": 6, "type": "statement_identifier", "text": "sha256", "parent": 5, "children": [], "start_point": {"row": 1, "column": 4}, "end_point": {"row": 1, "column": 10}}, {"id": 7, "type": "ERROR", "text": "551cae90ca254f04692ba06561aaa63bb8daf50319ab6e85b951e08bbfc51f00\nsize", "parent": 5, "children": [8, 9, 10], "start_point": {"row": 1, "column": 11}, "end_point": {"row": 2, "column": 4}}, {"id": 8, "type": "number_literal", "text": "551", "parent": 7, "children": [], "start_point": {"row": 1, "column": 11}, "end_point": {"row": 1, "column": 14}}, {"id": 9, "type": "type_identifier", "text": "cae90ca254f04692ba06561aaa63bb8daf50319ab6e85b951e08bbfc51f00", "parent": 7, "children": [], "start_point": {"row": 1, "column": 14}, "end_point": {"row": 1, "column": 75}}, {"id": 10, "type": "identifier", "text": "size", "parent": 7, "children": [], "start_point": {"row": 2, "column": 0}, "end_point": {"row": 2, "column": 4}}, {"id": 11, "type": "number_literal", "text": "8124", "parent": 5, "children": [], "start_point": {"row": 2, "column": 5}, "end_point": {"row": 2, "column": 9}}]}, "node_categories": {"declarations": {"functions": [], "variables": [0], "classes": [], "imports": [], "modules": [], "enums": []}, "statements": {"expressions": [], "assignments": [], "loops": [], "conditionals": [1, 3, 4, 6, 9, 10], "returns": [], "exceptions": []}, "expressions": {"calls": [], "literals": [8, 11], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [], "class_declarations": [], "import_statements": []}, "original_source_code": "version https://git-lfs.github.com/spec/v1\noid sha256:551cae90ca254f04692ba06561aaa63bb8daf50319ab6e85b951e08bbfc51f00\nsize 8124\n"}
80,056
c
/* SPDX-License-Identifier: GPL-2.0 */ /* * Shared Memory Communications over RDMA (SMC-R) and RoCE * * Definitions for the SMC module (socket related) * * Copyright IBM Corp. 2016 * * Author(s): <NAME> <<EMAIL>> */ #ifndef __SMC_H #define __SMC_H #include <linux/socket.h> #include <linux/types.h> #include <linux/compiler.h> /* __aligned */ #include <net/sock.h> #include "smc_ib.h" #define SMC_V1 1 /* SMC version V1 */ #define SMC_V2 2 /* SMC version V2 */ #define SMC_RELEASE 0 #define SMCPROTO_SMC 0 /* SMC protocol, IPv4 */ #define SMCPROTO_SMC6 1 /* SMC protocol, IPv6 */ #define SMC_MAX_ISM_DEVS 8 /* max # of proposed non-native ISM * devices */ #define SMC_MAX_HOSTNAME_LEN 32 #define SMC_MAX_EID_LEN 32 extern struct proto smc_proto; extern struct proto smc_proto6; #ifdef ATOMIC64_INIT #define KERNEL_HAS_ATOMIC64 #endif enum smc_state { /* possible states of an SMC socket */ SMC_ACTIVE = 1, SMC_INIT = 2, SMC_CLOSED = 7, SMC_LISTEN = 10, /* normal close */ SMC_PEERCLOSEWAIT1 = 20, SMC_PEERCLOSEWAIT2 = 21, SMC_APPFINCLOSEWAIT = 24, SMC_APPCLOSEWAIT1 = 22, SMC_APPCLOSEWAIT2 = 23, SMC_PEERFINCLOSEWAIT = 25, /* abnormal close */ SMC_PEERABORTWAIT = 26, SMC_PROCESSABORT = 27, }; struct smc_link_group; struct smc_wr_rx_hdr { /* common prefix part of LLC and CDC to demultiplex */ u8 type; } __aligned(1); struct smc_cdc_conn_state_flags { #if defined(__BIG_ENDIAN_BITFIELD) u8 peer_done_writing : 1; /* Sending done indicator */ u8 peer_conn_closed : 1; /* Peer connection closed indicator */ u8 peer_conn_abort : 1; /* Abnormal close indicator */ u8 reserved : 5; #elif defined(__LITTLE_ENDIAN_BITFIELD) u8 reserved : 5; u8 peer_conn_abort : 1; u8 peer_conn_closed : 1; u8 peer_done_writing : 1; #endif }; struct smc_cdc_producer_flags { #if defined(__BIG_ENDIAN_BITFIELD) u8 write_blocked : 1; /* Writing Blocked, no rx buf space */ u8 urg_data_pending : 1; /* Urgent Data Pending */ u8 urg_data_present : 1; /* Urgent Data Present */ u8 cons_curs_upd_req : 1; /* cursor update requested */ u8 failover_validation : 1;/* message replay due to failover */ u8 reserved : 3; #elif defined(__LITTLE_ENDIAN_BITFIELD) u8 reserved : 3; u8 failover_validation : 1; u8 cons_curs_upd_req : 1; u8 urg_data_present : 1; u8 urg_data_pending : 1; u8 write_blocked : 1; #endif }; /* in host byte order */ union smc_host_cursor { /* SMC cursor - an offset in an RMBE */ struct { u16 reserved; u16 wrap; /* window wrap sequence number */ u32 count; /* cursor (= offset) part */ }; #ifdef KERNEL_HAS_ATOMIC64 atomic64_t acurs; /* for atomic processing */ #else u64 acurs; /* for atomic processing */ #endif } __aligned(8); /* in host byte order, except for flag bitfields in network byte order */ struct smc_host_cdc_msg { /* Connection Data Control message */ struct smc_wr_rx_hdr common; /* .type = 0xFE */ u8 len; /* length = 44 */ u16 seqno; /* connection seq # */ u32 token; /* alert_token */ union smc_host_cursor prod; /* producer cursor */ union smc_host_cursor cons; /* consumer cursor, * piggy backed "ack" */ struct smc_cdc_producer_flags prod_flags; /* conn. tx/rx status */ struct smc_cdc_conn_state_flags conn_state_flags; /* peer conn. status*/ u8 reserved[18]; } __aligned(8); enum smc_urg_state { SMC_URG_VALID = 1, /* data present */ SMC_URG_NOTYET = 2, /* data pending */ SMC_URG_READ = 3, /* data was already read */ }; struct smc_connection { struct rb_node alert_node; struct smc_link_group *lgr; /* link group of connection */ struct smc_link *lnk; /* assigned SMC-R link */ u32 alert_token_local; /* unique conn. id */ u8 peer_rmbe_idx; /* from tcp handshake */ int peer_rmbe_size; /* size of peer rx buffer */ atomic_t peer_rmbe_space;/* remaining free bytes in peer * rmbe */ int rtoken_idx; /* idx to peer RMB rkey/addr */ struct smc_buf_desc *sndbuf_desc; /* send buffer descriptor */ struct smc_buf_desc *rmb_desc; /* RMBE descriptor */ int rmbe_size_short;/* compressed notation */ int rmbe_update_limit; /* lower limit for consumer * cursor update */ struct smc_host_cdc_msg local_tx_ctrl; /* host byte order staging * buffer for CDC msg send * .prod cf. TCP snd_nxt * .cons cf. TCP sends ack */ union smc_host_cursor local_tx_ctrl_fin; /* prod crsr - confirmed by peer */ union smc_host_cursor tx_curs_prep; /* tx - prepared data * snd_max..wmem_alloc */ union smc_host_cursor tx_curs_sent; /* tx - sent data * snd_nxt ? */ union smc_host_cursor tx_curs_fin; /* tx - confirmed by peer * snd-wnd-begin ? */ atomic_t sndbuf_space; /* remaining space in sndbuf */ u16 tx_cdc_seq; /* sequence # for CDC send */ u16 tx_cdc_seq_fin; /* sequence # - tx completed */ spinlock_t send_lock; /* protect wr_sends */ struct delayed_work tx_work; /* retry of smc_cdc_msg_send */ u32 tx_off; /* base offset in peer rmb */ struct smc_host_cdc_msg local_rx_ctrl; /* filled during event_handl. * .prod cf. TCP rcv_nxt * .cons cf. TCP snd_una */ union smc_host_cursor rx_curs_confirmed; /* confirmed to peer * source of snd_una ? */ union smc_host_cursor urg_curs; /* points at urgent byte */ enum smc_urg_state urg_state; bool urg_tx_pend; /* urgent data staged */ bool urg_rx_skip_pend; /* indicate urgent oob data * read, but previous regular * data still pending */ char urg_rx_byte; /* urgent byte */ atomic_t bytes_to_rcv; /* arrived data, * not yet received */ atomic_t splice_pending; /* number of spliced bytes * pending processing */ #ifndef KERNEL_HAS_ATOMIC64 spinlock_t acurs_lock; /* protect cursors */ #endif struct work_struct close_work; /* peer sent some closing */ struct work_struct abort_work; /* abort the connection */ struct tasklet_struct rx_tsklet; /* Receiver tasklet for SMC-D */ u8 rx_off; /* receive offset: * 0 for SMC-R, 32 for SMC-D */ u64 peer_token; /* SMC-D token of peer */ u8 killed : 1; /* abnormal termination */ u8 out_of_sync : 1; /* out of sync with peer */ }; struct smc_sock { /* smc sock container */ struct sock sk; struct socket *clcsock; /* internal tcp socket */ void (*clcsk_data_ready)(struct sock *sk); /* original data_ready fct. **/ struct smc_connection conn; /* smc connection */ struct smc_sock *listen_smc; /* listen parent */ struct work_struct connect_work; /* handle non-blocking connect*/ struct work_struct tcp_listen_work;/* handle tcp socket accepts */ struct work_struct smc_listen_work;/* prepare new accept socket */ struct list_head accept_q; /* sockets to be accepted */ spinlock_t accept_q_lock; /* protects accept_q */ bool use_fallback; /* fallback to tcp */ int fallback_rsn; /* reason for fallback */ u32 peer_diagnosis; /* decline reason from peer */ int sockopt_defer_accept; /* sockopt TCP_DEFER_ACCEPT * value */ u8 wait_close_tx_prepared : 1; /* shutdown wr or close * started, waiting for unsent * data to be sent */ u8 connect_nonblock : 1; /* non-blocking connect in * flight */ struct mutex clcsock_release_lock; /* protects clcsock of a listen * socket * */ }; static inline struct smc_sock *smc_sk(const struct sock *sk) { return (struct smc_sock *)sk; } extern struct workqueue_struct *smc_hs_wq; /* wq for handshake work */ extern struct workqueue_struct *smc_close_wq; /* wq for close work */ #define SMC_SYSTEMID_LEN 8 extern u8 local_systemid[SMC_SYSTEMID_LEN]; /* unique system identifier */ #define ntohll(x) be64_to_cpu(x) #define htonll(x) cpu_to_be64(x) /* convert an u32 value into network byte order, store it into a 3 byte field */ static inline void hton24(u8 *net, u32 host) { __be32 t; t = cpu_to_be32(host); memcpy(net, ((u8 *)&t) + 1, 3); } /* convert a received 3 byte field into host byte order*/ static inline u32 ntoh24(u8 *net) { __be32 t = 0; memcpy(((u8 *)&t) + 1, net, 3); return be32_to_cpu(t); } #ifdef CONFIG_XFRM static inline bool using_ipsec(struct smc_sock *smc) { return (smc->clcsock->sk->sk_policy[0] || smc->clcsock->sk->sk_policy[1]) ? true : false; } #else static inline bool using_ipsec(struct smc_sock *smc) { return false; } #endif struct sock *smc_accept_dequeue(struct sock *parent, struct socket *new_sock); void smc_close_non_accepted(struct sock *sk); #endif /* __SMC_H */
31.91
262
(translation_unit) "/* SPDX-License-Identifier: GPL-2.0 */\n/*\n * Shared Memory Communications over RDMA (SMC-R) and RoCE\n *\n * Definitions for the SMC module (socket related)\n *\n * Copyright IBM Corp. 2016\n *\n * Author(s): <NAME> <<EMAIL>>\n */\n#ifndef __SMC_H\n#define __SMC_H\n\n#include <linux/socket.h>\n#include <linux/types.h>\n#include <linux/compiler.h> /* __aligned */\n#include <net/sock.h>\n\n#include "smc_ib.h"\n\n#define SMC_V1 1 /* SMC version V1 */\n#define SMC_V2 2 /* SMC version V2 */\n#define SMC_RELEASE 0\n\n#define SMCPROTO_SMC 0 /* SMC protocol, IPv4 */\n#define SMCPROTO_SMC6 1 /* SMC protocol, IPv6 */\n\n#define SMC_MAX_ISM_DEVS 8 /* max # of proposed non-native ISM\n * devices\n */\n\n#define SMC_MAX_HOSTNAME_LEN 32\n#define SMC_MAX_EID_LEN 32\n\nextern struct proto smc_proto;\nextern struct proto smc_proto6;\n\n#ifdef ATOMIC64_INIT\n#define KERNEL_HAS_ATOMIC64\n#endif\n\nenum smc_state { /* possible states of an SMC socket */\n SMC_ACTIVE = 1,\n SMC_INIT = 2,\n SMC_CLOSED = 7,\n SMC_LISTEN = 10,\n /* normal close */\n SMC_PEERCLOSEWAIT1 = 20,\n SMC_PEERCLOSEWAIT2 = 21,\n SMC_APPFINCLOSEWAIT = 24,\n SMC_APPCLOSEWAIT1 = 22,\n SMC_APPCLOSEWAIT2 = 23,\n SMC_PEERFINCLOSEWAIT = 25,\n /* abnormal close */\n SMC_PEERABORTWAIT = 26,\n SMC_PROCESSABORT = 27,\n};\n\nstruct smc_link_group;\n\nstruct smc_wr_rx_hdr { /* common prefix part of LLC and CDC to demultiplex */\n u8 type;\n} __aligned(1);\n\nstruct smc_cdc_conn_state_flags {\n#if defined(__BIG_ENDIAN_BITFIELD)\n u8 peer_done_writing : 1; /* Sending done indicator */\n u8 peer_conn_closed : 1; /* Peer connection closed indicator */\n u8 peer_conn_abort : 1; /* Abnormal close indicator */\n u8 reserved : 5;\n#elif defined(__LITTLE_ENDIAN_BITFIELD)\n u8 reserved : 5;\n u8 peer_conn_abort : 1;\n u8 peer_conn_closed : 1;\n u8 peer_done_writing : 1;\n#endif\n};\n\nstruct smc_cdc_producer_flags {\n#if defined(__BIG_ENDIAN_BITFIELD)\n u8 write_blocked : 1; /* Writing Blocked, no rx buf space */\n u8 urg_data_pending : 1; /* Urgent Data Pending */\n u8 urg_data_present : 1; /* Urgent Data Present */\n u8 cons_curs_upd_req : 1; /* cursor update requested */\n u8 failover_validation : 1;/* message replay due to failover */\n u8 reserved : 3;\n#elif defined(__LITTLE_ENDIAN_BITFIELD)\n u8 reserved : 3;\n u8 failover_validation : 1;\n u8 cons_curs_upd_req : 1;\n u8 urg_data_present : 1;\n u8 urg_data_pending : 1;\n u8 write_blocked : 1;\n#endif\n};\n\n/* in host byte order */\nunion smc_host_cursor { /* SMC cursor - an offset in an RMBE */\n struct {\n u16 reserved;\n u16 wrap; /* window wrap sequence number */\n u32 count; /* cursor (= offset) part */\n };\n#ifdef KERNEL_HAS_ATOMIC64\n atomic64_t acurs; /* for atomic processing */\n#else\n u64 acurs; /* for atomic processing */\n#endif\n} __aligned(8);\n\n/* in host byte order, except for flag bitfields in network byte order */\nstruct smc_host_cdc_msg { /* Connection Data Control message */\n struct smc_wr_rx_hdr common; /* .type = 0xFE */\n u8 len; /* length = 44 */\n u16 seqno; /* connection seq # */\n u32 token; /* alert_token */\n union smc_host_cursor prod; /* producer cursor */\n union smc_host_cursor cons; /* consumer cursor,\n * piggy backed "ack"\n */\n struct smc_cdc_producer_flags prod_flags; /* conn. tx/rx status */\n struct smc_cdc_conn_state_flags conn_state_flags; /* peer conn. status*/\n u8 reserved[18];\n} __aligned(8);\n\nenum smc_urg_state {\n SMC_URG_VALID = 1, /* data present */\n SMC_URG_NOTYET = 2, /* data pending */\n SMC_URG_READ = 3, /* data was already read */\n};\n\nstruct smc_connection {\n struct rb_node alert_node;\n struct smc_link_group *lgr; /* link group of connection */\n struct smc_link *lnk; /* assigned SMC-R link */\n u32 alert_token_local; /* unique conn. id */\n u8 peer_rmbe_idx; /* from tcp handshake */\n int peer_rmbe_size; /* size of peer rx buffer */\n atomic_t peer_rmbe_space;/* remaining free bytes in peer\n * rmbe\n */\n int rtoken_idx; /* idx to peer RMB rkey/addr */\n\n struct smc_buf_desc *sndbuf_desc; /* send buffer descriptor */\n struct smc_buf_desc *rmb_desc; /* RMBE descriptor */\n int rmbe_size_short;/* compressed notation */\n int rmbe_update_limit;\n /* lower limit for consumer\n * cursor update\n */\n\n struct smc_host_cdc_msg local_tx_ctrl; /* host byte order staging\n * buffer for CDC msg send\n * .prod cf. TCP snd_nxt\n * .cons cf. TCP sends ack\n */\n union smc_host_cursor local_tx_ctrl_fin;\n /* prod crsr - confirmed by peer\n */\n union smc_host_cursor tx_curs_prep; /* tx - prepared data\n * snd_max..wmem_alloc\n */\n union smc_host_cursor tx_curs_sent; /* tx - sent data\n * snd_nxt ?\n */\n union smc_host_cursor tx_curs_fin; /* tx - confirmed by peer\n * snd-wnd-begin ?\n */\n atomic_t sndbuf_space; /* remaining space in sndbuf */\n u16 tx_cdc_seq; /* sequence # for CDC send */\n u16 tx_cdc_seq_fin; /* sequence # - tx completed */\n spinlock_t send_lock; /* protect wr_sends */\n struct delayed_work tx_work; /* retry of smc_cdc_msg_send */\n u32 tx_off; /* base offset in peer rmb */\n\n struct smc_host_cdc_msg local_rx_ctrl; /* filled during event_handl.\n * .prod cf. TCP rcv_nxt\n * .cons cf. TCP snd_una\n */\n union smc_host_cursor rx_curs_confirmed; /* confirmed to peer\n * source of snd_una ?\n */\n union smc_host_cursor urg_curs; /* points at urgent byte */\n enum smc_urg_state urg_state;\n bool urg_tx_pend; /* urgent data staged */\n bool urg_rx_skip_pend;\n /* indicate urgent oob data\n * read, but previous regular\n * data still pending\n */\n char urg_rx_byte; /* urgent byte */\n atomic_t bytes_to_rcv; /* arrived data,\n * not yet received\n */\n atomic_t splice_pending; /* number of spliced bytes\n * pending processing\n */\n#ifndef KERNEL_HAS_ATOMIC64\n spinlock_t acurs_lock; /* protect cursors */\n#endif\n struct work_struct close_work; /* peer sent some closing */\n struct work_struct abort_work; /* abort the connection */\n struct tasklet_struct rx_tsklet; /* Receiver tasklet for SMC-D */\n u8 rx_off; /* receive offset:\n * 0 for SMC-R, 32 for SMC-D\n */\n u64 peer_token; /* SMC-D token of peer */\n u8 killed : 1; /* abnormal termination */\n u8 out_of_sync : 1; /* out of sync with peer */\n};\n\nstruct smc_sock { /* smc sock container */\n struct sock sk;\n struct socket *clcsock; /* internal tcp socket */\n void (*clcsk_data_ready)(struct sock *sk);\n /* original data_ready fct. **/\n struct smc_connection conn; /* smc connection */\n struct smc_sock *listen_smc; /* listen parent */\n struct work_struct connect_work; /* handle non-blocking connect*/\n struct work_struct tcp_listen_work;/* handle tcp socket accepts */\n struct work_struct smc_listen_work;/* prepare new accept socket */\n struct list_head accept_q; /* sockets to be accepted */\n spinlock_t accept_q_lock; /* protects accept_q */\n bool use_fallback; /* fallback to tcp */\n int fallback_rsn; /* reason for fallback */\n u32 peer_diagnosis; /* decline reason from peer */\n int sockopt_defer_accept;\n /* sockopt TCP_DEFER_ACCEPT\n * value\n */\n u8 wait_close_tx_prepared : 1;\n /* shutdown wr or close\n * started, waiting for unsent\n * data to be sent\n */\n u8 connect_nonblock : 1;\n /* non-blocking connect in\n * flight\n */\n struct mutex clcsock_release_lock;\n /* protects clcsock of a listen\n * socket\n * */\n};\n\nstatic inline struct smc_sock *smc_sk(const struct sock *sk)\n{\n return (struct smc_sock *)sk;\n}\n\nextern struct workqueue_struct *smc_hs_wq; /* wq for handshake work */\nextern struct workqueue_struct *smc_close_wq; /* wq for close work */\n\n#define SMC_SYSTEMID_LEN 8\n\nextern u8 local_systemid[SMC_SYSTEMID_LEN]; /* unique system identifier */\n\n#define ntohll(x) be64_to_cpu(x)\n#define htonll(x) cpu_to_be64(x)\n\n/* convert an u32 value into network byte order, store it into a 3 byte field */\nstatic inline void hton24(u8 *net, u32 host)\n{\n __be32 t;\n\n t = cpu_to_be32(host);\n memcpy(net, ((u8 *)&t) + 1, 3);\n}\n\n/* convert a received 3 byte field into host byte order*/\nstatic inline u32 ntoh24(u8 *net)\n{\n __be32 t = 0;\n\n memcpy(((u8 *)&t) + 1, net, 3);\n return be32_to_cpu(t);\n}\n\n#ifdef CONFIG_XFRM\nstatic inline bool using_ipsec(struct smc_sock *smc)\n{\n return (smc->clcsock->sk->sk_policy[0] ||\n smc->clcsock->sk->sk_policy[1]) ? true : false;\n}\n#else\nstatic inline bool using_ipsec(struct smc_sock *smc)\n{\n return false;\n}\n#endif\n\nstruct sock *smc_accept_dequeue(struct sock *parent, struct socket *new_sock);\nvoid smc_close_non_accepted(struct sock *sk);\n\n#endif /* __SMC_H */\n" (comment) "/* SPDX-License-Identifier: GPL-2.0 */" (comment) "/*\n * Shared Memory Communications over RDMA (SMC-R) and RoCE\n *\n * Definitions for the SMC module (socket related)\n *\n * Copyright IBM Corp. 2016\n *\n * Author(s): <NAME> <<EMAIL>>\n */" (preproc_ifdef) "#ifndef __SMC_H\n#define __SMC_H\n\n#include <linux/socket.h>\n#include <linux/types.h>\n#include <linux/compiler.h> /* __aligned */\n#include <net/sock.h>\n\n#include "smc_ib.h"\n\n#define SMC_V1 1 /* SMC version V1 */\n#define SMC_V2 2 /* SMC version V2 */\n#define SMC_RELEASE 0\n\n#define SMCPROTO_SMC 0 /* SMC protocol, IPv4 */\n#define SMCPROTO_SMC6 1 /* SMC protocol, IPv6 */\n\n#define SMC_MAX_ISM_DEVS 8 /* max # of proposed non-native ISM\n * devices\n */\n\n#define SMC_MAX_HOSTNAME_LEN 32\n#define SMC_MAX_EID_LEN 32\n\nextern struct proto smc_proto;\nextern struct proto smc_proto6;\n\n#ifdef ATOMIC64_INIT\n#define KERNEL_HAS_ATOMIC64\n#endif\n\nenum smc_state { /* possible states of an SMC socket */\n SMC_ACTIVE = 1,\n SMC_INIT = 2,\n SMC_CLOSED = 7,\n SMC_LISTEN = 10,\n /* normal close */\n SMC_PEERCLOSEWAIT1 = 20,\n SMC_PEERCLOSEWAIT2 = 21,\n SMC_APPFINCLOSEWAIT = 24,\n SMC_APPCLOSEWAIT1 = 22,\n SMC_APPCLOSEWAIT2 = 23,\n SMC_PEERFINCLOSEWAIT = 25,\n /* abnormal close */\n SMC_PEERABORTWAIT = 26,\n SMC_PROCESSABORT = 27,\n};\n\nstruct smc_link_group;\n\nstruct smc_wr_rx_hdr { /* common prefix part of LLC and CDC to demultiplex */\n u8 type;\n} __aligned(1);\n\nstruct smc_cdc_conn_state_flags {\n#if defined(__BIG_ENDIAN_BITFIELD)\n u8 peer_done_writing : 1; /* Sending done indicator */\n u8 peer_conn_closed : 1; /* Peer connection closed indicator */\n u8 peer_conn_abort : 1; /* Abnormal close indicator */\n u8 reserved : 5;\n#elif defined(__LITTLE_ENDIAN_BITFIELD)\n u8 reserved : 5;\n u8 peer_conn_abort : 1;\n u8 peer_conn_closed : 1;\n u8 peer_done_writing : 1;\n#endif\n};\n\nstruct smc_cdc_producer_flags {\n#if defined(__BIG_ENDIAN_BITFIELD)\n u8 write_blocked : 1; /* Writing Blocked, no rx buf space */\n u8 urg_data_pending : 1; /* Urgent Data Pending */\n u8 urg_data_present : 1; /* Urgent Data Present */\n u8 cons_curs_upd_req : 1; /* cursor update requested */\n u8 failover_validation : 1;/* message replay due to failover */\n u8 reserved : 3;\n#elif defined(__LITTLE_ENDIAN_BITFIELD)\n u8 reserved : 3;\n u8 failover_validation : 1;\n u8 cons_curs_upd_req : 1;\n u8 urg_data_present : 1;\n u8 urg_data_pending : 1;\n u8 write_blocked : 1;\n#endif\n};\n\n/* in host byte order */\nunion smc_host_cursor { /* SMC cursor - an offset in an RMBE */\n struct {\n u16 reserved;\n u16 wrap; /* window wrap sequence number */\n u32 count; /* cursor (= offset) part */\n };\n#ifdef KERNEL_HAS_ATOMIC64\n atomic64_t acurs; /* for atomic processing */\n#else\n u64 acurs; /* for atomic processing */\n#endif\n} __aligned(8);\n\n/* in host byte order, except for flag bitfields in network byte order */\nstruct smc_host_cdc_msg { /* Connection Data Control message */\n struct smc_wr_rx_hdr common; /* .type = 0xFE */\n u8 len; /* length = 44 */\n u16 seqno; /* connection seq # */\n u32 token; /* alert_token */\n union smc_host_cursor prod; /* producer cursor */\n union smc_host_cursor cons; /* consumer cursor,\n * piggy backed "ack"\n */\n struct smc_cdc_producer_flags prod_flags; /* conn. tx/rx status */\n struct smc_cdc_conn_state_flags conn_state_flags; /* peer conn. status*/\n u8 reserved[18];\n} __aligned(8);\n\nenum smc_urg_state {\n SMC_URG_VALID = 1, /* data present */\n SMC_URG_NOTYET = 2, /* data pending */\n SMC_URG_READ = 3, /* data was already read */\n};\n\nstruct smc_connection {\n struct rb_node alert_node;\n struct smc_link_group *lgr; /* link group of connection */\n struct smc_link *lnk; /* assigned SMC-R link */\n u32 alert_token_local; /* unique conn. id */\n u8 peer_rmbe_idx; /* from tcp handshake */\n int peer_rmbe_size; /* size of peer rx buffer */\n atomic_t peer_rmbe_space;/* remaining free bytes in peer\n * rmbe\n */\n int rtoken_idx; /* idx to peer RMB rkey/addr */\n\n struct smc_buf_desc *sndbuf_desc; /* send buffer descriptor */\n struct smc_buf_desc *rmb_desc; /* RMBE descriptor */\n int rmbe_size_short;/* compressed notation */\n int rmbe_update_limit;\n /* lower limit for consumer\n * cursor update\n */\n\n struct smc_host_cdc_msg local_tx_ctrl; /* host byte order staging\n * buffer for CDC msg send\n * .prod cf. TCP snd_nxt\n * .cons cf. TCP sends ack\n */\n union smc_host_cursor local_tx_ctrl_fin;\n /* prod crsr - confirmed by peer\n */\n union smc_host_cursor tx_curs_prep; /* tx - prepared data\n * snd_max..wmem_alloc\n */\n union smc_host_cursor tx_curs_sent; /* tx - sent data\n * snd_nxt ?\n */\n union smc_host_cursor tx_curs_fin; /* tx - confirmed by peer\n * snd-wnd-begin ?\n */\n atomic_t sndbuf_space; /* remaining space in sndbuf */\n u16 tx_cdc_seq; /* sequence # for CDC send */\n u16 tx_cdc_seq_fin; /* sequence # - tx completed */\n spinlock_t send_lock; /* protect wr_sends */\n struct delayed_work tx_work; /* retry of smc_cdc_msg_send */\n u32 tx_off; /* base offset in peer rmb */\n\n struct smc_host_cdc_msg local_rx_ctrl; /* filled during event_handl.\n * .prod cf. TCP rcv_nxt\n * .cons cf. TCP snd_una\n */\n union smc_host_cursor rx_curs_confirmed; /* confirmed to peer\n * source of snd_una ?\n */\n union smc_host_cursor urg_curs; /* points at urgent byte */\n enum smc_urg_state urg_state;\n bool urg_tx_pend; /* urgent data staged */\n bool urg_rx_skip_pend;\n /* indicate urgent oob data\n * read, but previous regular\n * data still pending\n */\n char urg_rx_byte; /* urgent byte */\n atomic_t bytes_to_rcv; /* arrived data,\n * not yet received\n */\n atomic_t splice_pending; /* number of spliced bytes\n * pending processing\n */\n#ifndef KERNEL_HAS_ATOMIC64\n spinlock_t acurs_lock; /* protect cursors */\n#endif\n struct work_struct close_work; /* peer sent some closing */\n struct work_struct abort_work; /* abort the connection */\n struct tasklet_struct rx_tsklet; /* Receiver tasklet for SMC-D */\n u8 rx_off; /* receive offset:\n * 0 for SMC-R, 32 for SMC-D\n */\n u64 peer_token; /* SMC-D token of peer */\n u8 killed : 1; /* abnormal termination */\n u8 out_of_sync : 1; /* out of sync with peer */\n};\n\nstruct smc_sock { /* smc sock container */\n struct sock sk;\n struct socket *clcsock; /* internal tcp socket */\n void (*clcsk_data_ready)(struct sock *sk);\n /* original data_ready fct. **/\n struct smc_connection conn; /* smc connection */\n struct smc_sock *listen_smc; /* listen parent */\n struct work_struct connect_work; /* handle non-blocking connect*/\n struct work_struct tcp_listen_work;/* handle tcp socket accepts */\n struct work_struct smc_listen_work;/* prepare new accept socket */\n struct list_head accept_q; /* sockets to be accepted */\n spinlock_t accept_q_lock; /* protects accept_q */\n bool use_fallback; /* fallback to tcp */\n int fallback_rsn; /* reason for fallback */\n u32 peer_diagnosis; /* decline reason from peer */\n int sockopt_defer_accept;\n /* sockopt TCP_DEFER_ACCEPT\n * value\n */\n u8 wait_close_tx_prepared : 1;\n /* shutdown wr or close\n * started, waiting for unsent\n * data to be sent\n */\n u8 connect_nonblock : 1;\n /* non-blocking connect in\n * flight\n */\n struct mutex clcsock_release_lock;\n /* protects clcsock of a listen\n * socket\n * */\n};\n\nstatic inline struct smc_sock *smc_sk(const struct sock *sk)\n{\n return (struct smc_sock *)sk;\n}\n\nextern struct workqueue_struct *smc_hs_wq; /* wq for handshake work */\nextern struct workqueue_struct *smc_close_wq; /* wq for close work */\n\n#define SMC_SYSTEMID_LEN 8\n\nextern u8 local_systemid[SMC_SYSTEMID_LEN]; /* unique system identifier */\n\n#define ntohll(x) be64_to_cpu(x)\n#define htonll(x) cpu_to_be64(x)\n\n/* convert an u32 value into network byte order, store it into a 3 byte field */\nstatic inline void hton24(u8 *net, u32 host)\n{\n __be32 t;\n\n t = cpu_to_be32(host);\n memcpy(net, ((u8 *)&t) + 1, 3);\n}\n\n/* convert a received 3 byte field into host byte order*/\nstatic inline u32 ntoh24(u8 *net)\n{\n __be32 t = 0;\n\n memcpy(((u8 *)&t) + 1, net, 3);\n return be32_to_cpu(t);\n}\n\n#ifdef CONFIG_XFRM\nstatic inline bool using_ipsec(struct smc_sock *smc)\n{\n return (smc->clcsock->sk->sk_policy[0] ||\n smc->clcsock->sk->sk_policy[1]) ? true : false;\n}\n#else\nstatic inline bool using_ipsec(struct smc_sock *smc)\n{\n return false;\n}\n#endif\n\nstruct sock *smc_accept_dequeue(struct sock *parent, struct socket *new_sock);\nvoid smc_close_non_accepted(struct sock *sk);\n\n#endif" (#ifndef) "#ifndef" (identifier) "__SMC_H" (preproc_def) "#define __SMC_H\n" (#define) "#define" (identifier) "__SMC_H" (preproc_include) "#include <linux/socket.h>\n" (#include) "#include" (system_lib_string) "<linux/socket.h>" (preproc_include) "#include <linux/types.h>\n" (#include) "#include" (system_lib_string) "<linux/types.h>" (preproc_include) "#include <linux/compiler.h> /* __aligned */\n" (#include) "#include" (system_lib_string) "<linux/compiler.h>" (comment) "/* __aligned */" (preproc_include) "#include <net/sock.h>\n" (#include) "#include" (system_lib_string) "<net/sock.h>" (preproc_include) "#include "smc_ib.h"\n" (#include) "#include" (string_literal) ""smc_ib.h"" (") """ (string_content) "smc_ib.h" (") """ (preproc_def) "#define SMC_V1 1 /* SMC version V1 */\n" (#define) "#define" (identifier) "SMC_V1" (preproc_arg) "1 " (comment) "/* SMC version V1 */" (preproc_def) "#define SMC_V2 2 /* SMC version V2 */\n" (#define) "#define" (identifier) "SMC_V2" (preproc_arg) "2 " (comment) "/* SMC version V2 */" (preproc_def) "#define SMC_RELEASE 0\n" (#define) "#define" (identifier) "SMC_RELEASE" (preproc_arg) "0" (preproc_def) "#define SMCPROTO_SMC 0 /* SMC protocol, IPv4 */\n" (#define) "#define" (identifier) "SMCPROTO_SMC" (preproc_arg) "0 " (comment) "/* SMC protocol, IPv4 */" (preproc_def) "#define SMCPROTO_SMC6 1 /* SMC protocol, IPv6 */\n" (#define) "#define" (identifier) "SMCPROTO_SMC6" (preproc_arg) "1 " (comment) "/* SMC protocol, IPv6 */" (preproc_def) "#define SMC_MAX_ISM_DEVS 8 /* max # of proposed non-native ISM\n * devices\n */\n" (#define) "#define" (identifier) "SMC_MAX_ISM_DEVS" (preproc_arg) "8 " (comment) "/* max # of proposed non-native ISM\n * devices\n */" (preproc_def) "#define SMC_MAX_HOSTNAME_LEN 32\n" (#define) "#define" (identifier) "SMC_MAX_HOSTNAME_LEN" (preproc_arg) "32" (preproc_def) "#define SMC_MAX_EID_LEN 32\n" (#define) "#define" (identifier) "SMC_MAX_EID_LEN" (preproc_arg) "32" (declaration) "extern struct proto smc_proto;" (storage_class_specifier) "extern" (extern) "extern" (struct_specifier) "struct proto" (struct) "struct" (type_identifier) "proto" (identifier) "smc_proto" (;) ";" (declaration) "extern struct proto smc_proto6;" (storage_class_specifier) "extern" (extern) "extern" (struct_specifier) "struct proto" (struct) "struct" (type_identifier) "proto" (identifier) "smc_proto6" (;) ";" (preproc_ifdef) "#ifdef ATOMIC64_INIT\n#define KERNEL_HAS_ATOMIC64\n#endif" (#ifdef) "#ifdef" (identifier) "ATOMIC64_INIT" (preproc_def) "#define KERNEL_HAS_ATOMIC64\n" (#define) "#define" (identifier) "KERNEL_HAS_ATOMIC64" (#endif) "#endif" (enum_specifier) "enum smc_state { /* possible states of an SMC socket */\n SMC_ACTIVE = 1,\n SMC_INIT = 2,\n SMC_CLOSED = 7,\n SMC_LISTEN = 10,\n /* normal close */\n SMC_PEERCLOSEWAIT1 = 20,\n SMC_PEERCLOSEWAIT2 = 21,\n SMC_APPFINCLOSEWAIT = 24,\n SMC_APPCLOSEWAIT1 = 22,\n SMC_APPCLOSEWAIT2 = 23,\n SMC_PEERFINCLOSEWAIT = 25,\n /* abnormal close */\n SMC_PEERABORTWAIT = 26,\n SMC_PROCESSABORT = 27,\n}" (enum) "enum" (type_identifier) "smc_state" (enumerator_list) "{ /* possible states of an SMC socket */\n SMC_ACTIVE = 1,\n SMC_INIT = 2,\n SMC_CLOSED = 7,\n SMC_LISTEN = 10,\n /* normal close */\n SMC_PEERCLOSEWAIT1 = 20,\n SMC_PEERCLOSEWAIT2 = 21,\n SMC_APPFINCLOSEWAIT = 24,\n SMC_APPCLOSEWAIT1 = 22,\n SMC_APPCLOSEWAIT2 = 23,\n SMC_PEERFINCLOSEWAIT = 25,\n /* abnormal close */\n SMC_PEERABORTWAIT = 26,\n SMC_PROCESSABORT = 27,\n}" ({) "{" (comment) "/* possible states of an SMC socket */" (enumerator) "SMC_ACTIVE = 1" (identifier) "SMC_ACTIVE" (=) "=" (number_literal) "1" (,) "," (enumerator) "SMC_INIT = 2" (identifier) "SMC_INIT" (=) "=" (number_literal) "2" (,) "," (enumerator) "SMC_CLOSED = 7" (identifier) "SMC_CLOSED" (=) "=" (number_literal) "7" (,) "," (enumerator) "SMC_LISTEN = 10" (identifier) "SMC_LISTEN" (=) "=" (number_literal) "10" (,) "," (comment) "/* normal close */" (enumerator) "SMC_PEERCLOSEWAIT1 = 20" (identifier) "SMC_PEERCLOSEWAIT1" (=) "=" (number_literal) "20" (,) "," (enumerator) "SMC_PEERCLOSEWAIT2 = 21" (identifier) "SMC_PEERCLOSEWAIT2" (=) "=" (number_literal) "21" (,) "," (enumerator) "SMC_APPFINCLOSEWAIT = 24" (identifier) "SMC_APPFINCLOSEWAIT" (=) "=" (number_literal) "24" (,) "," (enumerator) "SMC_APPCLOSEWAIT1 = 22" (identifier) "SMC_APPCLOSEWAIT1" (=) "=" (number_literal) "22" (,) "," (enumerator) "SMC_APPCLOSEWAIT2 = 23" (identifier) "SMC_APPCLOSEWAIT2" (=) "=" (number_literal) "23" (,) "," (enumerator) "SMC_PEERFINCLOSEWAIT = 25" (identifier) "SMC_PEERFINCLOSEWAIT" (=) "=" (number_literal) "25" (,) "," (comment) "/* abnormal close */" (enumerator) "SMC_PEERABORTWAIT = 26" (identifier) "SMC_PEERABORTWAIT" (=) "=" (number_literal) "26" (,) "," (enumerator) "SMC_PROCESSABORT = 27" (identifier) "SMC_PROCESSABORT" (=) "=" (number_literal) "27" (,) "," (}) "}" (;) ";" (struct_specifier) "struct smc_link_group" (struct) "struct" (type_identifier) "smc_link_group" (;) ";" (declaration) "struct smc_wr_rx_hdr { /* common prefix part of LLC and CDC to demultiplex */\n u8 type;\n} __aligned(1);" (struct_specifier) "struct smc_wr_rx_hdr { /* common prefix part of LLC and CDC to demultiplex */\n u8 type;\n}" (struct) "struct" (type_identifier) "smc_wr_rx_hdr" (field_declaration_list) "{ /* common prefix part of LLC and CDC to demultiplex */\n u8 type;\n}" ({) "{" (comment) "/* common prefix part of LLC and CDC to demultiplex */" (field_declaration) "u8 type;" (type_identifier) "u8" (field_identifier) "type" (;) ";" (}) "}" (function_declarator) "__aligned(1)" (identifier) "__aligned" (parameter_list) "(1)" (() "(" (ERROR) "1" (number_literal) "1" ()) ")" (;) ";" (struct_specifier) "struct smc_cdc_conn_state_flags {\n#if defined(__BIG_ENDIAN_BITFIELD)\n u8 peer_done_writing : 1; /* Sending done indicator */\n u8 peer_conn_closed : 1; /* Peer connection closed indicator */\n u8 peer_conn_abort : 1; /* Abnormal close indicator */\n u8 reserved : 5;\n#elif defined(__LITTLE_ENDIAN_BITFIELD)\n u8 reserved : 5;\n u8 peer_conn_abort : 1;\n u8 peer_conn_closed : 1;\n u8 peer_done_writing : 1;\n#endif\n}" (struct) "struct" (type_identifier) "smc_cdc_conn_state_flags" (field_declaration_list) "{\n#if defined(__BIG_ENDIAN_BITFIELD)\n u8 peer_done_writing : 1; /* Sending done indicator */\n u8 peer_conn_closed : 1; /* Peer connection closed indicator */\n u8 peer_conn_abort : 1; /* Abnormal close indicator */\n u8 reserved : 5;\n#elif defined(__LITTLE_ENDIAN_BITFIELD)\n u8 reserved : 5;\n u8 peer_conn_abort : 1;\n u8 peer_conn_closed : 1;\n u8 peer_done_writing : 1;\n#endif\n}" ({) "{" (preproc_if) "#if defined(__BIG_ENDIAN_BITFIELD)\n u8 peer_done_writing : 1; /* Sending done indicator */\n u8 peer_conn_closed : 1; /* Peer connection closed indicator */\n u8 peer_conn_abort : 1; /* Abnormal close indicator */\n u8 reserved : 5;\n#elif defined(__LITTLE_ENDIAN_BITFIELD)\n u8 reserved : 5;\n u8 peer_conn_abort : 1;\n u8 peer_conn_closed : 1;\n u8 peer_done_writing : 1;\n#endif" (#if) "#if" (preproc_defined) "defined(__BIG_ENDIAN_BITFIELD)" (defined) "defined" (() "(" (identifier) "__BIG_ENDIAN_BITFIELD" ()) ")" ( ) "\n" (field_declaration) "u8 peer_done_writing : 1;" (type_identifier) "u8" (field_identifier) "peer_done_writing" (bitfield_clause) ": 1" (:) ":" (number_literal) "1" (;) ";" (comment) "/* Sending done indicator */" (field_declaration) "u8 peer_conn_closed : 1;" (type_identifier) "u8" (field_identifier) "peer_conn_closed" (bitfield_clause) ": 1" (:) ":" (number_literal) "1" (;) ";" (comment) "/* Peer connection closed indicator */" (field_declaration) "u8 peer_conn_abort : 1;" (type_identifier) "u8" (field_identifier) "peer_conn_abort" (bitfield_clause) ": 1" (:) ":" (number_literal) "1" (;) ";" (comment) "/* Abnormal close indicator */" (field_declaration) "u8 reserved : 5;" (type_identifier) "u8" (field_identifier) "reserved" (bitfield_clause) ": 5" (:) ":" (number_literal) "5" (;) ";" (preproc_elif) "#elif defined(__LITTLE_ENDIAN_BITFIELD)\n u8 reserved : 5;\n u8 peer_conn_abort : 1;\n u8 peer_conn_closed : 1;\n u8 peer_done_writing : 1;" (#elif) "#elif" (preproc_defined) "defined(__LITTLE_ENDIAN_BITFIELD)" (defined) "defined" (() "(" (identifier) "__LITTLE_ENDIAN_BITFIELD" ()) ")" ( ) "\n" (field_declaration) "u8 reserved : 5;" (type_identifier) "u8" (field_identifier) "reserved" (bitfield_clause) ": 5" (:) ":" (number_literal) "5" (;) ";" (field_declaration) "u8 peer_conn_abort : 1;" (type_identifier) "u8" (field_identifier) "peer_conn_abort" (bitfield_clause) ": 1" (:) ":" (number_literal) "1" (;) ";" (field_declaration) "u8 peer_conn_closed : 1;" (type_identifier) "u8" (field_identifier) "peer_conn_closed" (bitfield_clause) ": 1" (:) ":" (number_literal) "1" (;) ";" (field_declaration) "u8 peer_done_writing : 1;" (type_identifier) "u8" (field_identifier) "peer_done_writing" (bitfield_clause) ": 1" (:) ":" (number_literal) "1" (;) ";" (#endif) "#endif" (}) "}" (;) ";" (struct_specifier) "struct smc_cdc_producer_flags {\n#if defined(__BIG_ENDIAN_BITFIELD)\n u8 write_blocked : 1; /* Writing Blocked, no rx buf space */\n u8 urg_data_pending : 1; /* Urgent Data Pending */\n u8 urg_data_present : 1; /* Urgent Data Present */\n u8 cons_curs_upd_req : 1; /* cursor update requested */\n u8 failover_validation : 1;/* message replay due to failover */\n u8 reserved : 3;\n#elif defined(__LITTLE_ENDIAN_BITFIELD)\n u8 reserved : 3;\n u8 failover_validation : 1;\n u8 cons_curs_upd_req : 1;\n u8 urg_data_present : 1;\n u8 urg_data_pending : 1;\n u8 write_blocked : 1;\n#endif\n}" (struct) "struct" (type_identifier) "smc_cdc_producer_flags" (field_declaration_list) "{\n#if defined(__BIG_ENDIAN_BITFIELD)\n u8 write_blocked : 1; /* Writing Blocked, no rx buf space */\n u8 urg_data_pending : 1; /* Urgent Data Pending */\n u8 urg_data_present : 1; /* Urgent Data Present */\n u8 cons_curs_upd_req : 1; /* cursor update requested */\n u8 failover_validation : 1;/* message replay due to failover */\n u8 reserved : 3;\n#elif defined(__LITTLE_ENDIAN_BITFIELD)\n u8 reserved : 3;\n u8 failover_validation : 1;\n u8 cons_curs_upd_req : 1;\n u8 urg_data_present : 1;\n u8 urg_data_pending : 1;\n u8 write_blocked : 1;\n#endif\n}" ({) "{" (preproc_if) "#if defined(__BIG_ENDIAN_BITFIELD)\n u8 write_blocked : 1; /* Writing Blocked, no rx buf space */\n u8 urg_data_pending : 1; /* Urgent Data Pending */\n u8 urg_data_present : 1; /* Urgent Data Present */\n u8 cons_curs_upd_req : 1; /* cursor update requested */\n u8 failover_validation : 1;/* message replay due to failover */\n u8 reserved : 3;\n#elif defined(__LITTLE_ENDIAN_BITFIELD)\n u8 reserved : 3;\n u8 failover_validation : 1;\n u8 cons_curs_upd_req : 1;\n u8 urg_data_present : 1;\n u8 urg_data_pending : 1;\n u8 write_blocked : 1;\n#endif" (#if) "#if" (preproc_defined) "defined(__BIG_ENDIAN_BITFIELD)" (defined) "defined" (() "(" (identifier) "__BIG_ENDIAN_BITFIELD" ()) ")" ( ) "\n" (field_declaration) "u8 write_blocked : 1;" (type_identifier) "u8" (field_identifier) "write_blocked" (bitfield_clause) ": 1" (:) ":" (number_literal) "1" (;) ";" (comment) "/* Writing Blocked, no rx buf space */" (field_declaration) "u8 urg_data_pending : 1;" (type_identifier) "u8" (field_identifier) "urg_data_pending" (bitfield_clause) ": 1" (:) ":" (number_literal) "1" (;) ";" (comment) "/* Urgent Data Pending */" (field_declaration) "u8 urg_data_present : 1;" (type_identifier) "u8" (field_identifier) "urg_data_present" (bitfield_clause) ": 1" (:) ":" (number_literal) "1" (;) ";" (comment) "/* Urgent Data Present */" (field_declaration) "u8 cons_curs_upd_req : 1;" (type_identifier) "u8" (field_identifier) "cons_curs_upd_req" (bitfield_clause) ": 1" (:) ":" (number_literal) "1" (;) ";" (comment) "/* cursor update requested */" (field_declaration) "u8 failover_validation : 1;" (type_identifier) "u8" (field_identifier) "failover_validation" (bitfield_clause) ": 1" (:) ":" (number_literal) "1" (;) ";" (comment) "/* message replay due to failover */" (field_declaration) "u8 reserved : 3;" (type_identifier) "u8" (field_identifier) "reserved" (bitfield_clause) ": 3" (:) ":" (number_literal) "3" (;) ";" (preproc_elif) "#elif defined(__LITTLE_ENDIAN_BITFIELD)\n u8 reserved : 3;\n u8 failover_validation : 1;\n u8 cons_curs_upd_req : 1;\n u8 urg_data_present : 1;\n u8 urg_data_pending : 1;\n u8 write_blocked : 1;" (#elif) "#elif" (preproc_defined) "defined(__LITTLE_ENDIAN_BITFIELD)" (defined) "defined" (() "(" (identifier) "__LITTLE_ENDIAN_BITFIELD" ()) ")" ( ) "\n" (field_declaration) "u8 reserved : 3;" (type_identifier) "u8" (field_identifier) "reserved" (bitfield_clause) ": 3" (:) ":" (number_literal) "3" (;) ";" (field_declaration) "u8 failover_validation : 1;" (type_identifier) "u8" (field_identifier) "failover_validation" (bitfield_clause) ": 1" (:) ":" (number_literal) "1" (;) ";" (field_declaration) "u8 cons_curs_upd_req : 1;" (type_identifier) "u8" (field_identifier) "cons_curs_upd_req" (bitfield_clause) ": 1" (:) ":" (number_literal) "1" (;) ";" (field_declaration) "u8 urg_data_present : 1;" (type_identifier) "u8" (field_identifier) "urg_data_present" (bitfield_clause) ": 1" (:) ":" (number_literal) "1" (;) ";" (field_declaration) "u8 urg_data_pending : 1;" (type_identifier) "u8" (field_identifier) "urg_data_pending" (bitfield_clause) ": 1" (:) ":" (number_literal) "1" (;) ";" (field_declaration) "u8 write_blocked : 1;" (type_identifier) "u8" (field_identifier) "write_blocked" (bitfield_clause) ": 1" (:) ":" (number_literal) "1" (;) ";" (#endif) "#endif" (}) "}" (;) ";" (comment) "/* in host byte order */" (declaration) "union smc_host_cursor { /* SMC cursor - an offset in an RMBE */\n struct {\n u16 reserved;\n u16 wrap; /* window wrap sequence number */\n u32 count; /* cursor (= offset) part */\n };\n#ifdef KERNEL_HAS_ATOMIC64\n atomic64_t acurs; /* for atomic processing */\n#else\n u64 acurs; /* for atomic processing */\n#endif\n} __aligned(8);" (union_specifier) "union smc_host_cursor { /* SMC cursor - an offset in an RMBE */\n struct {\n u16 reserved;\n u16 wrap; /* window wrap sequence number */\n u32 count; /* cursor (= offset) part */\n };\n#ifdef KERNEL_HAS_ATOMIC64\n atomic64_t acurs; /* for atomic processing */\n#else\n u64 acurs; /* for atomic processing */\n#endif\n}" (union) "union" (type_identifier) "smc_host_cursor" (field_declaration_list) "{ /* SMC cursor - an offset in an RMBE */\n struct {\n u16 reserved;\n u16 wrap; /* window wrap sequence number */\n u32 count; /* cursor (= offset) part */\n };\n#ifdef KERNEL_HAS_ATOMIC64\n atomic64_t acurs; /* for atomic processing */\n#else\n u64 acurs; /* for atomic processing */\n#endif\n}" ({) "{" (comment) "/* SMC cursor - an offset in an RMBE */" (field_declaration) "struct {\n u16 reserved;\n u16 wrap; /* window wrap sequence number */\n u32 count; /* cursor (= offset) part */\n };" (struct_specifier) "struct {\n u16 reserved;\n u16 wrap; /* window wrap sequence number */\n u32 count; /* cursor (= offset) part */\n }" (struct) "struct" (field_declaration_list) "{\n u16 reserved;\n u16 wrap; /* window wrap sequence number */\n u32 count; /* cursor (= offset) part */\n }" ({) "{" (field_declaration) "u16 reserved;" (type_identifier) "u16" (field_identifier) "reserved" (;) ";" (field_declaration) "u16 wrap;" (type_identifier) "u16" (field_identifier) "wrap" (;) ";" (comment) "/* window wrap sequence number */" (field_declaration) "u32 count;" (type_identifier) "u32" (field_identifier) "count" (;) ";" (comment) "/* cursor (= offset) part */" (}) "}" (;) ";" (preproc_ifdef) "#ifdef KERNEL_HAS_ATOMIC64\n atomic64_t acurs; /* for atomic processing */\n#else\n u64 acurs; /* for atomic processing */\n#endif" (#ifdef) "#ifdef" (identifier) "KERNEL_HAS_ATOMIC64" (field_declaration) "atomic64_t acurs;" (type_identifier) "atomic64_t" (field_identifier) "acurs" (;) ";" (comment) "/* for atomic processing */" (preproc_else) "#else\n u64 acurs;" (#else) "#else" (field_declaration) "u64 acurs;" (type_identifier) "u64" (field_identifier) "acurs" (;) ";" (comment) "/* for atomic processing */" (#endif) "#endif" (}) "}" (function_declarator) "__aligned(8)" (identifier) "__aligned" (parameter_list) "(8)" (() "(" (ERROR) "8" (number_literal) "8" ()) ")" (;) ";" (comment) "/* in host byte order, except for flag bitfields in network byte order */" (declaration) "struct smc_host_cdc_msg { /* Connection Data Control message */\n struct smc_wr_rx_hdr common; /* .type = 0xFE */\n u8 len; /* length = 44 */\n u16 seqno; /* connection seq # */\n u32 token; /* alert_token */\n union smc_host_cursor prod; /* producer cursor */\n union smc_host_cursor cons; /* consumer cursor,\n * piggy backed "ack"\n */\n struct smc_cdc_producer_flags prod_flags; /* conn. tx/rx status */\n struct smc_cdc_conn_state_flags conn_state_flags; /* peer conn. status*/\n u8 reserved[18];\n} __aligned(8);" (struct_specifier) "struct smc_host_cdc_msg { /* Connection Data Control message */\n struct smc_wr_rx_hdr common; /* .type = 0xFE */\n u8 len; /* length = 44 */\n u16 seqno; /* connection seq # */\n u32 token; /* alert_token */\n union smc_host_cursor prod; /* producer cursor */\n union smc_host_cursor cons; /* consumer cursor,\n * piggy backed "ack"\n */\n struct smc_cdc_producer_flags prod_flags; /* conn. tx/rx status */\n struct smc_cdc_conn_state_flags conn_state_flags; /* peer conn. status*/\n u8 reserved[18];\n}" (struct) "struct" (type_identifier) "smc_host_cdc_msg" (field_declaration_list) "{ /* Connection Data Control message */\n struct smc_wr_rx_hdr common; /* .type = 0xFE */\n u8 len; /* length = 44 */\n u16 seqno; /* connection seq # */\n u32 token; /* alert_token */\n union smc_host_cursor prod; /* producer cursor */\n union smc_host_cursor cons; /* consumer cursor,\n * piggy backed "ack"\n */\n struct smc_cdc_producer_flags prod_flags; /* conn. tx/rx status */\n struct smc_cdc_conn_state_flags conn_state_flags; /* peer conn. status*/\n u8 reserved[18];\n}" ({) "{" (comment) "/* Connection Data Control message */" (field_declaration) "struct smc_wr_rx_hdr common;" (struct_specifier) "struct smc_wr_rx_hdr" (struct) "struct" (type_identifier) "smc_wr_rx_hdr" (field_identifier) "common" (;) ";" (comment) "/* .type = 0xFE */" (field_declaration) "u8 len;" (type_identifier) "u8" (field_identifier) "len" (;) ";" (comment) "/* length = 44 */" (field_declaration) "u16 seqno;" (type_identifier) "u16" (field_identifier) "seqno" (;) ";" (comment) "/* connection seq # */" (field_declaration) "u32 token;" (type_identifier) "u32" (field_identifier) "token" (;) ";" (comment) "/* alert_token */" (field_declaration) "union smc_host_cursor prod;" (union_specifier) "union smc_host_cursor" (union) "union" (type_identifier) "smc_host_cursor" (field_identifier) "prod" (;) ";" (comment) "/* producer cursor */" (field_declaration) "union smc_host_cursor cons;" (union_specifier) "union smc_host_cursor" (union) "union" (type_identifier) "smc_host_cursor" (field_identifier) "cons" (;) ";" (comment) "/* consumer cursor,\n * piggy backed "ack"\n */" (field_declaration) "struct smc_cdc_producer_flags prod_flags;" (struct_specifier) "struct smc_cdc_producer_flags" (struct) "struct" (type_identifier) "smc_cdc_producer_flags" (field_identifier) "prod_flags" (;) ";" (comment) "/* conn. tx/rx status */" (field_declaration) "struct smc_cdc_conn_state_flags conn_state_flags;" (struct_specifier) "struct smc_cdc_conn_state_flags" (struct) "struct" (type_identifier) "smc_cdc_conn_state_flags" (field_identifier) "conn_state_flags" (;) ";" (comment) "/* peer conn. status*/" (field_declaration) "u8 reserved[18];" (type_identifier) "u8" (array_declarator) "reserved[18]" (field_identifier) "reserved" ([) "[" (number_literal) "18" (]) "]" (;) ";" (}) "}" (function_declarator) "__aligned(8)" (identifier) "__aligned" (parameter_list) "(8)" (() "(" (ERROR) "8" (number_literal) "8" ()) ")" (;) ";" (enum_specifier) "enum smc_urg_state {\n SMC_URG_VALID = 1, /* data present */\n SMC_URG_NOTYET = 2, /* data pending */\n SMC_URG_READ = 3, /* data was already read */\n}" (enum) "enum" (type_identifier) "smc_urg_state" (enumerator_list) "{\n SMC_URG_VALID = 1, /* data present */\n SMC_URG_NOTYET = 2, /* data pending */\n SMC_URG_READ = 3, /* data was already read */\n}" ({) "{" (enumerator) "SMC_URG_VALID = 1" (identifier) "SMC_URG_VALID" (=) "=" (number_literal) "1" (,) "," (comment) "/* data present */" (enumerator) "SMC_URG_NOTYET = 2" (identifier) "SMC_URG_NOTYET" (=) "=" (number_literal) "2" (,) "," (comment) "/* data pending */" (enumerator) "SMC_URG_READ = 3" (identifier) "SMC_URG_READ" (=) "=" (number_literal) "3" (,) "," (comment) "/* data was already read */" (}) "}" (;) ";" (struct_specifier) "struct smc_connection {\n struct rb_node alert_node;\n struct smc_link_group *lgr; /* link group of connection */\n struct smc_link *lnk; /* assigned SMC-R link */\n u32 alert_token_local; /* unique conn. id */\n u8 peer_rmbe_idx; /* from tcp handshake */\n int peer_rmbe_size; /* size of peer rx buffer */\n atomic_t peer_rmbe_space;/* remaining free bytes in peer\n * rmbe\n */\n int rtoken_idx; /* idx to peer RMB rkey/addr */\n\n struct smc_buf_desc *sndbuf_desc; /* send buffer descriptor */\n struct smc_buf_desc *rmb_desc; /* RMBE descriptor */\n int rmbe_size_short;/* compressed notation */\n int rmbe_update_limit;\n /* lower limit for consumer\n * cursor update\n */\n\n struct smc_host_cdc_msg local_tx_ctrl; /* host byte order staging\n * buffer for CDC msg send\n * .prod cf. TCP snd_nxt\n * .cons cf. TCP sends ack\n */\n union smc_host_cursor local_tx_ctrl_fin;\n /* prod crsr - confirmed by peer\n */\n union smc_host_cursor tx_curs_prep; /* tx - prepared data\n * snd_max..wmem_alloc\n */\n union smc_host_cursor tx_curs_sent; /* tx - sent data\n * snd_nxt ?\n */\n union smc_host_cursor tx_curs_fin; /* tx - confirmed by peer\n * snd-wnd-begin ?\n */\n atomic_t sndbuf_space; /* remaining space in sndbuf */\n u16 tx_cdc_seq; /* sequence # for CDC send */\n u16 tx_cdc_seq_fin; /* sequence # - tx completed */\n spinlock_t send_lock; /* protect wr_sends */\n struct delayed_work tx_work; /* retry of smc_cdc_msg_send */\n u32 tx_off; /* base offset in peer rmb */\n\n struct smc_host_cdc_msg local_rx_ctrl; /* filled during event_handl.\n * .prod cf. TCP rcv_nxt\n * .cons cf. TCP snd_una\n */\n union smc_host_cursor rx_curs_confirmed; /* confirmed to peer\n * source of snd_una ?\n */\n union smc_host_cursor urg_curs; /* points at urgent byte */\n enum smc_urg_state urg_state;\n bool urg_tx_pend; /* urgent data staged */\n bool urg_rx_skip_pend;\n /* indicate urgent oob data\n * read, but previous regular\n * data still pending\n */\n char urg_rx_byte; /* urgent byte */\n atomic_t bytes_to_rcv; /* arrived data,\n * not yet received\n */\n atomic_t splice_pending; /* number of spliced bytes\n * pending processing\n */\n#ifndef KERNEL_HAS_ATOMIC64\n spinlock_t acurs_lock; /* protect cursors */\n#endif\n struct work_struct close_work; /* peer sent some closing */\n struct work_struct abort_work; /* abort the connection */\n struct tasklet_struct rx_tsklet; /* Receiver tasklet for SMC-D */\n u8 rx_off; /* receive offset:\n * 0 for SMC-R, 32 for SMC-D\n */\n u64 peer_token; /* SMC-D token of peer */\n u8 killed : 1; /* abnormal termination */\n u8 out_of_sync : 1; /* out of sync with peer */\n}" (struct) "struct" (type_identifier) "smc_connection" (field_declaration_list) "{\n struct rb_node alert_node;\n struct smc_link_group *lgr; /* link group of connection */\n struct smc_link *lnk; /* assigned SMC-R link */\n u32 alert_token_local; /* unique conn. id */\n u8 peer_rmbe_idx; /* from tcp handshake */\n int peer_rmbe_size; /* size of peer rx buffer */\n atomic_t peer_rmbe_space;/* remaining free bytes in peer\n * rmbe\n */\n int rtoken_idx; /* idx to peer RMB rkey/addr */\n\n struct smc_buf_desc *sndbuf_desc; /* send buffer descriptor */\n struct smc_buf_desc *rmb_desc; /* RMBE descriptor */\n int rmbe_size_short;/* compressed notation */\n int rmbe_update_limit;\n /* lower limit for consumer\n * cursor update\n */\n\n struct smc_host_cdc_msg local_tx_ctrl; /* host byte order staging\n * buffer for CDC msg send\n * .prod cf. TCP snd_nxt\n * .cons cf. TCP sends ack\n */\n union smc_host_cursor local_tx_ctrl_fin;\n /* prod crsr - confirmed by peer\n */\n union smc_host_cursor tx_curs_prep; /* tx - prepared data\n * snd_max..wmem_alloc\n */\n union smc_host_cursor tx_curs_sent; /* tx - sent data\n * snd_nxt ?\n */\n union smc_host_cursor tx_curs_fin; /* tx - confirmed by peer\n * snd-wnd-begin ?\n */\n atomic_t sndbuf_space; /* remaining space in sndbuf */\n u16 tx_cdc_seq; /* sequence # for CDC send */\n u16 tx_cdc_seq_fin; /* sequence # - tx completed */\n spinlock_t send_lock; /* protect wr_sends */\n struct delayed_work tx_work; /* retry of smc_cdc_msg_send */\n u32 tx_off; /* base offset in peer rmb */\n\n struct smc_host_cdc_msg local_rx_ctrl; /* filled during event_handl.\n * .prod cf. TCP rcv_nxt\n * .cons cf. TCP snd_una\n */\n union smc_host_cursor rx_curs_confirmed; /* confirmed to peer\n * source of snd_una ?\n */\n union smc_host_cursor urg_curs; /* points at urgent byte */\n enum smc_urg_state urg_state;\n bool urg_tx_pend; /* urgent data staged */\n bool urg_rx_skip_pend;\n /* indicate urgent oob data\n * read, but previous regular\n * data still pending\n */\n char urg_rx_byte; /* urgent byte */\n atomic_t bytes_to_rcv; /* arrived data,\n * not yet received\n */\n atomic_t splice_pending; /* number of spliced bytes\n * pending processing\n */\n#ifndef KERNEL_HAS_ATOMIC64\n spinlock_t acurs_lock; /* protect cursors */\n#endif\n struct work_struct close_work; /* peer sent some closing */\n struct work_struct abort_work; /* abort the connection */\n struct tasklet_struct rx_tsklet; /* Receiver tasklet for SMC-D */\n u8 rx_off; /* receive offset:\n * 0 for SMC-R, 32 for SMC-D\n */\n u64 peer_token; /* SMC-D token of peer */\n u8 killed : 1; /* abnormal termination */\n u8 out_of_sync : 1; /* out of sync with peer */\n}" ({) "{" (field_declaration) "struct rb_node alert_node;" (struct_specifier) "struct rb_node" (struct) "struct" (type_identifier) "rb_node" (field_identifier) "alert_node" (;) ";" (field_declaration) "struct smc_link_group *lgr;" (struct_specifier) "struct smc_link_group" (struct) "struct" (type_identifier) "smc_link_group" (pointer_declarator) "*lgr" (*) "*" (field_identifier) "lgr" (;) ";" (comment) "/* link group of connection */" (field_declaration) "struct smc_link *lnk;" (struct_specifier) "struct smc_link" (struct) "struct" (type_identifier) "smc_link" (pointer_declarator) "*lnk" (*) "*" (field_identifier) "lnk" (;) ";" (comment) "/* assigned SMC-R link */" (field_declaration) "u32 alert_token_local;" (type_identifier) "u32" (field_identifier) "alert_token_local" (;) ";" (comment) "/* unique conn. id */" (field_declaration) "u8 peer_rmbe_idx;" (type_identifier) "u8" (field_identifier) "peer_rmbe_idx" (;) ";" (comment) "/* from tcp handshake */" (field_declaration) "int peer_rmbe_size;" (primitive_type) "int" (field_identifier) "peer_rmbe_size" (;) ";" (comment) "/* size of peer rx buffer */" (field_declaration) "atomic_t peer_rmbe_space;" (type_identifier) "atomic_t" (field_identifier) "peer_rmbe_space" (;) ";" (comment) "/* remaining free bytes in peer\n * rmbe\n */" (field_declaration) "int rtoken_idx;" (primitive_type) "int" (field_identifier) "rtoken_idx" (;) ";" (comment) "/* idx to peer RMB rkey/addr */" (field_declaration) "struct smc_buf_desc *sndbuf_desc;" (struct_specifier) "struct smc_buf_desc" (struct) "struct" (type_identifier) "smc_buf_desc" (pointer_declarator) "*sndbuf_desc" (*) "*" (field_identifier) "sndbuf_desc" (;) ";" (comment) "/* send buffer descriptor */" (field_declaration) "struct smc_buf_desc *rmb_desc;" (struct_specifier) "struct smc_buf_desc" (struct) "struct" (type_identifier) "smc_buf_desc" (pointer_declarator) "*rmb_desc" (*) "*" (field_identifier) "rmb_desc" (;) ";" (comment) "/* RMBE descriptor */" (field_declaration) "int rmbe_size_short;" (primitive_type) "int" (field_identifier) "rmbe_size_short" (;) ";" (comment) "/* compressed notation */" (field_declaration) "int rmbe_update_limit;" (primitive_type) "int" (field_identifier) "rmbe_update_limit" (;) ";" (comment) "/* lower limit for consumer\n * cursor update\n */" (field_declaration) "struct smc_host_cdc_msg local_tx_ctrl;" (struct_specifier) "struct smc_host_cdc_msg" (struct) "struct" (type_identifier) "smc_host_cdc_msg" (field_identifier) "local_tx_ctrl" (;) ";" (comment) "/* host byte order staging\n * buffer for CDC msg send\n * .prod cf. TCP snd_nxt\n * .cons cf. TCP sends ack\n */" (field_declaration) "union smc_host_cursor local_tx_ctrl_fin;" (union_specifier) "union smc_host_cursor" (union) "union" (type_identifier) "smc_host_cursor" (field_identifier) "local_tx_ctrl_fin" (;) ";" (comment) "/* prod crsr - confirmed by peer\n */" (field_declaration) "union smc_host_cursor tx_curs_prep;" (union_specifier) "union smc_host_cursor" (union) "union" (type_identifier) "smc_host_cursor" (field_identifier) "tx_curs_prep" (;) ";" (comment) "/* tx - prepared data\n * snd_max..wmem_alloc\n */" (field_declaration) "union smc_host_cursor tx_curs_sent;" (union_specifier) "union smc_host_cursor" (union) "union" (type_identifier) "smc_host_cursor" (field_identifier) "tx_curs_sent" (;) ";" (comment) "/* tx - sent data\n * snd_nxt ?\n */" (field_declaration) "union smc_host_cursor tx_curs_fin;" (union_specifier) "union smc_host_cursor" (union) "union" (type_identifier) "smc_host_cursor" (field_identifier) "tx_curs_fin" (;) ";" (comment) "/* tx - confirmed by peer\n * snd-wnd-begin ?\n */" (field_declaration) "atomic_t sndbuf_space;" (type_identifier) "atomic_t" (field_identifier) "sndbuf_space" (;) ";" (comment) "/* remaining space in sndbuf */" (field_declaration) "u16 tx_cdc_seq;" (type_identifier) "u16" (field_identifier) "tx_cdc_seq" (;) ";" (comment) "/* sequence # for CDC send */" (field_declaration) "u16 tx_cdc_seq_fin;" (type_identifier) "u16" (field_identifier) "tx_cdc_seq_fin" (;) ";" (comment) "/* sequence # - tx completed */" (field_declaration) "spinlock_t send_lock;" (type_identifier) "spinlock_t" (field_identifier) "send_lock" (;) ";" (comment) "/* protect wr_sends */" (field_declaration) "struct delayed_work tx_work;" (struct_specifier) "struct delayed_work" (struct) "struct" (type_identifier) "delayed_work" (field_identifier) "tx_work" (;) ";" (comment) "/* retry of smc_cdc_msg_send */" (field_declaration) "u32 tx_off;" (type_identifier) "u32" (field_identifier) "tx_off" (;) ";" (comment) "/* base offset in peer rmb */" (field_declaration) "struct smc_host_cdc_msg local_rx_ctrl;" (struct_specifier) "struct smc_host_cdc_msg" (struct) "struct" (type_identifier) "smc_host_cdc_msg" (field_identifier) "local_rx_ctrl" (;) ";" (comment) "/* filled during event_handl.\n * .prod cf. TCP rcv_nxt\n * .cons cf. TCP snd_una\n */" (field_declaration) "union smc_host_cursor rx_curs_confirmed;" (union_specifier) "union smc_host_cursor" (union) "union" (type_identifier) "smc_host_cursor" (field_identifier) "rx_curs_confirmed" (;) ";" (comment) "/* confirmed to peer\n * source of snd_una ?\n */" (field_declaration) "union smc_host_cursor urg_curs;" (union_specifier) "union smc_host_cursor" (union) "union" (type_identifier) "smc_host_cursor" (field_identifier) "urg_curs" (;) ";" (comment) "/* points at urgent byte */" (field_declaration) "enum smc_urg_state urg_state;" (enum_specifier) "enum smc_urg_state" (enum) "enum" (type_identifier) "smc_urg_state" (field_identifier) "urg_state" (;) ";" (field_declaration) "bool urg_tx_pend;" (primitive_type) "bool" (field_identifier) "urg_tx_pend" (;) ";" (comment) "/* urgent data staged */" (field_declaration) "bool urg_rx_skip_pend;" (primitive_type) "bool" (field_identifier) "urg_rx_skip_pend" (;) ";" (comment) "/* indicate urgent oob data\n * read, but previous regular\n * data still pending\n */" (field_declaration) "char urg_rx_byte;" (primitive_type) "char" (field_identifier) "urg_rx_byte" (;) ";" (comment) "/* urgent byte */" (field_declaration) "atomic_t bytes_to_rcv;" (type_identifier) "atomic_t" (field_identifier) "bytes_to_rcv" (;) ";" (comment) "/* arrived data,\n * not yet received\n */" (field_declaration) "atomic_t splice_pending;" (type_identifier) "atomic_t" (field_identifier) "splice_pending" (;) ";" (comment) "/* number of spliced bytes\n * pending processing\n */" (preproc_ifdef) "#ifndef KERNEL_HAS_ATOMIC64\n spinlock_t acurs_lock; /* protect cursors */\n#endif" (#ifndef) "#ifndef" (identifier) "KERNEL_HAS_ATOMIC64" (field_declaration) "spinlock_t acurs_lock;" (type_identifier) "spinlock_t" (field_identifier) "acurs_lock" (;) ";" (comment) "/* protect cursors */" (#endif) "#endif" (field_declaration) "struct work_struct close_work;" (struct_specifier) "struct work_struct" (struct) "struct" (type_identifier) "work_struct" (field_identifier) "close_work" (;) ";" (comment) "/* peer sent some closing */" (field_declaration) "struct work_struct abort_work;" (struct_specifier) "struct work_struct" (struct) "struct" (type_identifier) "work_struct" (field_identifier) "abort_work" (;) ";" (comment) "/* abort the connection */" (field_declaration) "struct tasklet_struct rx_tsklet;" (struct_specifier) "struct tasklet_struct" (struct) "struct" (type_identifier) "tasklet_struct" (field_identifier) "rx_tsklet" (;) ";" (comment) "/* Receiver tasklet for SMC-D */" (field_declaration) "u8 rx_off;" (type_identifier) "u8" (field_identifier) "rx_off" (;) ";" (comment) "/* receive offset:\n * 0 for SMC-R, 32 for SMC-D\n */" (field_declaration) "u64 peer_token;" (type_identifier) "u64" (field_identifier) "peer_token" (;) ";" (comment) "/* SMC-D token of peer */" (field_declaration) "u8 killed : 1;" (type_identifier) "u8" (field_identifier) "killed" (bitfield_clause) ": 1" (:) ":" (number_literal) "1" (;) ";" (comment) "/* abnormal termination */" (field_declaration) "u8 out_of_sync : 1;" (type_identifier) "u8" (field_identifier) "out_of_sync" (bitfield_clause) ": 1" (:) ":" (number_literal) "1" (;) ";" (comment) "/* out of sync with peer */" (}) "}" (;) ";" (struct_specifier) "struct smc_sock { /* smc sock container */\n struct sock sk;\n struct socket *clcsock; /* internal tcp socket */\n void (*clcsk_data_ready)(struct sock *sk);\n /* original data_ready fct. **/\n struct smc_connection conn; /* smc connection */\n struct smc_sock *listen_smc; /* listen parent */\n struct work_struct connect_work; /* handle non-blocking connect*/\n struct work_struct tcp_listen_work;/* handle tcp socket accepts */\n struct work_struct smc_listen_work;/* prepare new accept socket */\n struct list_head accept_q; /* sockets to be accepted */\n spinlock_t accept_q_lock; /* protects accept_q */\n bool use_fallback; /* fallback to tcp */\n int fallback_rsn; /* reason for fallback */\n u32 peer_diagnosis; /* decline reason from peer */\n int sockopt_defer_accept;\n /* sockopt TCP_DEFER_ACCEPT\n * value\n */\n u8 wait_close_tx_prepared : 1;\n /* shutdown wr or close\n * started, waiting for unsent\n * data to be sent\n */\n u8 connect_nonblock : 1;\n /* non-blocking connect in\n * flight\n */\n struct mutex clcsock_release_lock;\n /* protects clcsock of a listen\n * socket\n * */\n}" (struct) "struct" (type_identifier) "smc_sock" (field_declaration_list) "{ /* smc sock container */\n struct sock sk;\n struct socket *clcsock; /* internal tcp socket */\n void (*clcsk_data_ready)(struct sock *sk);\n /* original data_ready fct. **/\n struct smc_connection conn; /* smc connection */\n struct smc_sock *listen_smc; /* listen parent */\n struct work_struct connect_work; /* handle non-blocking connect*/\n struct work_struct tcp_listen_work;/* handle tcp socket accepts */\n struct work_struct smc_listen_work;/* prepare new accept socket */\n struct list_head accept_q; /* sockets to be accepted */\n spinlock_t accept_q_lock; /* protects accept_q */\n bool use_fallback; /* fallback to tcp */\n int fallback_rsn; /* reason for fallback */\n u32 peer_diagnosis; /* decline reason from peer */\n int sockopt_defer_accept;\n /* sockopt TCP_DEFER_ACCEPT\n * value\n */\n u8 wait_close_tx_prepared : 1;\n /* shutdown wr or close\n * started, waiting for unsent\n * data to be sent\n */\n u8 connect_nonblock : 1;\n /* non-blocking connect in\n * flight\n */\n struct mutex clcsock_release_lock;\n /* protects clcsock of a listen\n * socket\n * */\n}" ({) "{" (comment) "/* smc sock container */" (field_declaration) "struct sock sk;" (struct_specifier) "struct sock" (struct) "struct" (type_identifier) "sock" (field_identifier) "sk" (;) ";" (field_declaration) "struct socket *clcsock;" (struct_specifier) "struct socket" (struct) "struct" (type_identifier) "socket" (pointer_declarator) "*clcsock" (*) "*" (field_identifier) "clcsock" (;) ";" (comment) "/* internal tcp socket */" (field_declaration) "void (*clcsk_data_ready)(struct sock *sk);" (primitive_type) "void" (function_declarator) "(*clcsk_data_ready)(struct sock *sk)" (parenthesized_declarator) "(*clcsk_data_ready)" (() "(" (pointer_declarator) "*clcsk_data_ready" (*) "*" (field_identifier) "clcsk_data_ready" ()) ")" (parameter_list) "(struct sock *sk)" (() "(" (parameter_declaration) "struct sock *sk" (struct_specifier) "struct sock" (struct) "struct" (type_identifier) "sock" (pointer_declarator) "*sk" (*) "*" (identifier) "sk" ()) ")" (;) ";" (comment) "/* original data_ready fct. **/" (field_declaration) "struct smc_connection conn;" (struct_specifier) "struct smc_connection" (struct) "struct" (type_identifier) "smc_connection" (field_identifier) "conn" (;) ";" (comment) "/* smc connection */" (field_declaration) "struct smc_sock *listen_smc;" (struct_specifier) "struct smc_sock" (struct) "struct" (type_identifier) "smc_sock" (pointer_declarator) "*listen_smc" (*) "*" (field_identifier) "listen_smc" (;) ";" (comment) "/* listen parent */" (field_declaration) "struct work_struct connect_work;" (struct_specifier) "struct work_struct" (struct) "struct" (type_identifier) "work_struct" (field_identifier) "connect_work" (;) ";" (comment) "/* handle non-blocking connect*/" (field_declaration) "struct work_struct tcp_listen_work;" (struct_specifier) "struct work_struct" (struct) "struct" (type_identifier) "work_struct" (field_identifier) "tcp_listen_work" (;) ";" (comment) "/* handle tcp socket accepts */" (field_declaration) "struct work_struct smc_listen_work;" (struct_specifier) "struct work_struct" (struct) "struct" (type_identifier) "work_struct" (field_identifier) "smc_listen_work" (;) ";" (comment) "/* prepare new accept socket */" (field_declaration) "struct list_head accept_q;" (struct_specifier) "struct list_head" (struct) "struct" (type_identifier) "list_head" (field_identifier) "accept_q" (;) ";" (comment) "/* sockets to be accepted */" (field_declaration) "spinlock_t accept_q_lock;" (type_identifier) "spinlock_t" (field_identifier) "accept_q_lock" (;) ";" (comment) "/* protects accept_q */" (field_declaration) "bool use_fallback;" (primitive_type) "bool" (field_identifier) "use_fallback" (;) ";" (comment) "/* fallback to tcp */" (field_declaration) "int fallback_rsn;" (primitive_type) "int" (field_identifier) "fallback_rsn" (;) ";" (comment) "/* reason for fallback */" (field_declaration) "u32 peer_diagnosis;" (type_identifier) "u32" (field_identifier) "peer_diagnosis" (;) ";" (comment) "/* decline reason from peer */" (field_declaration) "int sockopt_defer_accept;" (primitive_type) "int" (field_identifier) "sockopt_defer_accept" (;) ";" (comment) "/* sockopt TCP_DEFER_ACCEPT\n * value\n */" (field_declaration) "u8 wait_close_tx_prepared : 1;" (type_identifier) "u8" (field_identifier) "wait_close_tx_prepared" (bitfield_clause) ": 1" (:) ":" (number_literal) "1" (;) ";" (comment) "/* shutdown wr or close\n * started, waiting for unsent\n * data to be sent\n */" (field_declaration) "u8 connect_nonblock : 1;" (type_identifier) "u8" (field_identifier) "connect_nonblock" (bitfield_clause) ": 1" (:) ":" (number_literal) "1" (;) ";" (comment) "/* non-blocking connect in\n * flight\n */" (field_declaration) "struct mutex clcsock_release_lock;" (struct_specifier) "struct mutex" (struct) "struct" (type_identifier) "mutex" (field_identifier) "clcsock_release_lock" (;) ";" (comment) "/* protects clcsock of a listen\n * socket\n * */" (}) "}" (;) ";" (function_definition) "static inline struct smc_sock *smc_sk(const struct sock *sk)\n{\n return (struct smc_sock *)sk;\n}" (storage_class_specifier) "static" (static) "static" (storage_class_specifier) "inline" (inline) "inline" (struct_specifier) "struct smc_sock" (struct) "struct" (type_identifier) "smc_sock" (pointer_declarator) "*smc_sk(const struct sock *sk)" (*) "*" (function_declarator) "smc_sk(const struct sock *sk)" (identifier) "smc_sk" (parameter_list) "(const struct sock *sk)" (() "(" (parameter_declaration) "const struct sock *sk" (type_qualifier) "const" (const) "const" (struct_specifier) "struct sock" (struct) "struct" (type_identifier) "sock" (pointer_declarator) "*sk" (*) "*" (identifier) "sk" ()) ")" (compound_statement) "{\n return (struct smc_sock *)sk;\n}" ({) "{" (return_statement) "return (struct smc_sock *)sk;" (return) "return" (cast_expression) "(struct smc_sock *)sk" (() "(" (type_descriptor) "struct smc_sock *" (struct_specifier) "struct smc_sock" (struct) "struct" (type_identifier) "smc_sock" (abstract_pointer_declarator) "*" (*) "*" ()) ")" (identifier) "sk" (;) ";" (}) "}" (declaration) "extern struct workqueue_struct *smc_hs_wq;" (storage_class_specifier) "extern" (extern) "extern" (struct_specifier) "struct workqueue_struct" (struct) "struct" (type_identifier) "workqueue_struct" (pointer_declarator) "*smc_hs_wq" (*) "*" (identifier) "smc_hs_wq" (;) ";" (comment) "/* wq for handshake work */" (declaration) "extern struct workqueue_struct *smc_close_wq;" (storage_class_specifier) "extern" (extern) "extern" (struct_specifier) "struct workqueue_struct" (struct) "struct" (type_identifier) "workqueue_struct" (pointer_declarator) "*smc_close_wq" (*) "*" (identifier) "smc_close_wq" (;) ";" (comment) "/* wq for close work */" (preproc_def) "#define SMC_SYSTEMID_LEN 8\n" (#define) "#define" (identifier) "SMC_SYSTEMID_LEN" (preproc_arg) "8" (declaration) "extern u8 local_systemid[SMC_SYSTEMID_LEN];" (storage_class_specifier) "extern" (extern) "extern" (type_identifier) "u8" (array_declarator) "local_systemid[SMC_SYSTEMID_LEN]" (identifier) "local_systemid" ([) "[" (identifier) "SMC_SYSTEMID_LEN" (]) "]" (;) ";" (comment) "/* unique system identifier */" (preproc_function_def) "#define ntohll(x) be64_to_cpu(x)\n" (#define) "#define" (identifier) "ntohll" (preproc_params) "(x)" (() "(" (identifier) "x" ()) ")" (preproc_arg) "be64_to_cpu(x)" (preproc_function_def) "#define htonll(x) cpu_to_be64(x)\n" (#define) "#define" (identifier) "htonll" (preproc_params) "(x)" (() "(" (identifier) "x" ()) ")" (preproc_arg) "cpu_to_be64(x)" (comment) "/* convert an u32 value into network byte order, store it into a 3 byte field */" (function_definition) "static inline void hton24(u8 *net, u32 host)\n{\n __be32 t;\n\n t = cpu_to_be32(host);\n memcpy(net, ((u8 *)&t) + 1, 3);\n}" (storage_class_specifier) "static" (static) "static" (storage_class_specifier) "inline" (inline) "inline" (primitive_type) "void" (function_declarator) "hton24(u8 *net, u32 host)" (identifier) "hton24" (parameter_list) "(u8 *net, u32 host)" (() "(" (parameter_declaration) "u8 *net" (type_identifier) "u8" (pointer_declarator) "*net" (*) "*" (identifier) "net" (,) "," (parameter_declaration) "u32 host" (type_identifier) "u32" (identifier) "host" ()) ")" (compound_statement) "{\n __be32 t;\n\n t = cpu_to_be32(host);\n memcpy(net, ((u8 *)&t) + 1, 3);\n}" ({) "{" (declaration) "__be32 t;" (type_identifier) "__be32" (identifier) "t" (;) ";" (expression_statement) "t = cpu_to_be32(host);" (assignment_expression) "t = cpu_to_be32(host)" (identifier) "t" (=) "=" (call_expression) "cpu_to_be32(host)" (identifier) "cpu_to_be32" (argument_list) "(host)" (() "(" (identifier) "host" ()) ")" (;) ";" (expression_statement) "memcpy(net, ((u8 *)&t) + 1, 3);" (call_expression) "memcpy(net, ((u8 *)&t) + 1, 3)" (identifier) "memcpy" (argument_list) "(net, ((u8 *)&t) + 1, 3)" (() "(" (identifier) "net" (,) "," (binary_expression) "((u8 *)&t) + 1" (parenthesized_expression) "((u8 *)&t)" (() "(" (cast_expression) "(u8 *)&t" (() "(" (type_descriptor) "u8 *" (type_identifier) "u8" (abstract_pointer_declarator) "*" (*) "*" ()) ")" (pointer_expression) "&t" (&) "&" (identifier) "t" ()) ")" (+) "+" (number_literal) "1" (,) "," (number_literal) "3" ()) ")" (;) ";" (}) "}" (comment) "/* convert a received 3 byte field into host byte order*/" (function_definition) "static inline u32 ntoh24(u8 *net)\n{\n __be32 t = 0;\n\n memcpy(((u8 *)&t) + 1, net, 3);\n return be32_to_cpu(t);\n}" (storage_class_specifier) "static" (static) "static" (storage_class_specifier) "inline" (inline) "inline" (type_identifier) "u32" (function_declarator) "ntoh24(u8 *net)" (identifier) "ntoh24" (parameter_list) "(u8 *net)" (() "(" (parameter_declaration) "u8 *net" (type_identifier) "u8" (pointer_declarator) "*net" (*) "*" (identifier) "net" ()) ")" (compound_statement) "{\n __be32 t = 0;\n\n memcpy(((u8 *)&t) + 1, net, 3);\n return be32_to_cpu(t);\n}" ({) "{" (declaration) "__be32 t = 0;" (type_identifier) "__be32" (init_declarator) "t = 0" (identifier) "t" (=) "=" (number_literal) "0" (;) ";" (expression_statement) "memcpy(((u8 *)&t) + 1, net, 3);" (call_expression) "memcpy(((u8 *)&t) + 1, net, 3)" (identifier) "memcpy" (argument_list) "(((u8 *)&t) + 1, net, 3)" (() "(" (binary_expression) "((u8 *)&t) + 1" (parenthesized_expression) "((u8 *)&t)" (() "(" (cast_expression) "(u8 *)&t" (() "(" (type_descriptor) "u8 *" (type_identifier) "u8" (abstract_pointer_declarator) "*" (*) "*" ()) ")" (pointer_expression) "&t" (&) "&" (identifier) "t" ()) ")" (+) "+" (number_literal) "1" (,) "," (identifier) "net" (,) "," (number_literal) "3" ()) ")" (;) ";" (return_statement) "return be32_to_cpu(t);" (return) "return" (call_expression) "be32_to_cpu(t)" (identifier) "be32_to_cpu" (argument_list) "(t)" (() "(" (identifier) "t" ()) ")" (;) ";" (}) "}" (preproc_ifdef) "#ifdef CONFIG_XFRM\nstatic inline bool using_ipsec(struct smc_sock *smc)\n{\n return (smc->clcsock->sk->sk_policy[0] ||\n smc->clcsock->sk->sk_policy[1]) ? true : false;\n}\n#else\nstatic inline bool using_ipsec(struct smc_sock *smc)\n{\n return false;\n}\n#endif" (#ifdef) "#ifdef" (identifier) "CONFIG_XFRM" (function_definition) "static inline bool using_ipsec(struct smc_sock *smc)\n{\n return (smc->clcsock->sk->sk_policy[0] ||\n smc->clcsock->sk->sk_policy[1]) ? true : false;\n}" (storage_class_specifier) "static" (static) "static" (storage_class_specifier) "inline" (inline) "inline" (primitive_type) "bool" (function_declarator) "using_ipsec(struct smc_sock *smc)" (identifier) "using_ipsec" (parameter_list) "(struct smc_sock *smc)" (() "(" (parameter_declaration) "struct smc_sock *smc" (struct_specifier) "struct smc_sock" (struct) "struct" (type_identifier) "smc_sock" (pointer_declarator) "*smc" (*) "*" (identifier) "smc" ()) ")" (compound_statement) "{\n return (smc->clcsock->sk->sk_policy[0] ||\n smc->clcsock->sk->sk_policy[1]) ? true : false;\n}" ({) "{" (return_statement) "return (smc->clcsock->sk->sk_policy[0] ||\n smc->clcsock->sk->sk_policy[1]) ? true : false;" (return) "return" (conditional_expression) "(smc->clcsock->sk->sk_policy[0] ||\n smc->clcsock->sk->sk_policy[1]) ? true : false" (parenthesized_expression) "(smc->clcsock->sk->sk_policy[0] ||\n smc->clcsock->sk->sk_policy[1])" (() "(" (binary_expression) "smc->clcsock->sk->sk_policy[0] ||\n smc->clcsock->sk->sk_policy[1]" (subscript_expression) "smc->clcsock->sk->sk_policy[0]" (field_expression) "smc->clcsock->sk->sk_policy" (field_expression) "smc->clcsock->sk" (field_expression) "smc->clcsock" (identifier) "smc" (->) "->" (field_identifier) "clcsock" (->) "->" (field_identifier) "sk" (->) "->" (field_identifier) "sk_policy" ([) "[" (number_literal) "0" (]) "]" (||) "||" (subscript_expression) "smc->clcsock->sk->sk_policy[1]" (field_expression) "smc->clcsock->sk->sk_policy" (field_expression) "smc->clcsock->sk" (field_expression) "smc->clcsock" (identifier) "smc" (->) "->" (field_identifier) "clcsock" (->) "->" (field_identifier) "sk" (->) "->" (field_identifier) "sk_policy" ([) "[" (number_literal) "1" (]) "]" ()) ")" (?) "?" (true) "true" (:) ":" (false) "false" (;) ";" (}) "}" (preproc_else) "#else\nstatic inline bool using_ipsec(struct smc_sock *smc)\n{\n return false;\n}" (#else) "#else" (function_definition) "static inline bool using_ipsec(struct smc_sock *smc)\n{\n return false;\n}" (storage_class_specifier) "static" (static) "static" (storage_class_specifier) "inline" (inline) "inline" (primitive_type) "bool" (function_declarator) "using_ipsec(struct smc_sock *smc)" (identifier) "using_ipsec" (parameter_list) "(struct smc_sock *smc)" (() "(" (parameter_declaration) "struct smc_sock *smc" (struct_specifier) "struct smc_sock" (struct) "struct" (type_identifier) "smc_sock" (pointer_declarator) "*smc" (*) "*" (identifier) "smc" ()) ")" (compound_statement) "{\n return false;\n}" ({) "{" (return_statement) "return false;" (return) "return" (false) "false" (;) ";" (}) "}" (#endif) "#endif" (declaration) "struct sock *smc_accept_dequeue(struct sock *parent, struct socket *new_sock);" (struct_specifier) "struct sock" (struct) "struct" (type_identifier) "sock" (pointer_declarator) "*smc_accept_dequeue(struct sock *parent, struct socket *new_sock)" (*) "*" (function_declarator) "smc_accept_dequeue(struct sock *parent, struct socket *new_sock)" (identifier) "smc_accept_dequeue" (parameter_list) "(struct sock *parent, struct socket *new_sock)" (() "(" (parameter_declaration) "struct sock *parent" (struct_specifier) "struct sock" (struct) "struct" (type_identifier) "sock" (pointer_declarator) "*parent" (*) "*" (identifier) "parent" (,) "," (parameter_declaration) "struct socket *new_sock" (struct_specifier) "struct socket" (struct) "struct" (type_identifier) "socket" (pointer_declarator) "*new_sock" (*) "*" (identifier) "new_sock" ()) ")" (;) ";" (declaration) "void smc_close_non_accepted(struct sock *sk);" (primitive_type) "void" (function_declarator) "smc_close_non_accepted(struct sock *sk)" (identifier) "smc_close_non_accepted" (parameter_list) "(struct sock *sk)" (() "(" (parameter_declaration) "struct sock *sk" (struct_specifier) "struct sock" (struct) "struct" (type_identifier) "sock" (pointer_declarator) "*sk" (*) "*" (identifier) "sk" ()) ")" (;) ";" (#endif) "#endif" (comment) "/* __SMC_H */"
1,286
3
{"language": "c", "success": true, "metadata": {"lines": 262, "avg_line_length": 31.91, "nodes": 883, "errors": 0, "source_hash": "eff9a2e016e19528095afb4d109a316e93d695185662046ea4e4ecaf729a1566", "categorized_nodes": 710}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef __SMC_H\n#define __SMC_H\n\n#include <linux/socket.h>\n#include <linux/types.h>\n#include <linux/compiler.h> /* __aligned */\n#include <net/sock.h>\n\n#include \"smc_ib.h\"\n\n#define SMC_V1\t\t1\t\t/* SMC version V1 */\n#define SMC_V2\t\t2\t\t/* SMC version V2 */\n#define SMC_RELEASE\t0\n\n#define SMCPROTO_SMC\t\t0\t/* SMC protocol, IPv4 */\n#define SMCPROTO_SMC6\t\t1\t/* SMC protocol, IPv6 */\n\n#define SMC_MAX_ISM_DEVS\t8\t/* max # of proposed non-native ISM\n\t\t\t\t\t * devices\n\t\t\t\t\t */\n\n#define SMC_MAX_HOSTNAME_LEN\t32\n#define SMC_MAX_EID_LEN\t\t32\n\nextern struct proto smc_proto;\nextern struct proto smc_proto6;\n\n#ifdef ATOMIC64_INIT\n#define KERNEL_HAS_ATOMIC64\n#endif\n\nenum smc_state {\t\t/* possible states of an SMC socket */\n\tSMC_ACTIVE\t= 1,\n\tSMC_INIT\t= 2,\n\tSMC_CLOSED\t= 7,\n\tSMC_LISTEN\t= 10,\n\t/* normal close */\n\tSMC_PEERCLOSEWAIT1\t= 20,\n\tSMC_PEERCLOSEWAIT2\t= 21,\n\tSMC_APPFINCLOSEWAIT\t= 24,\n\tSMC_APPCLOSEWAIT1\t= 22,\n\tSMC_APPCLOSEWAIT2\t= 23,\n\tSMC_PEERFINCLOSEWAIT\t= 25,\n\t/* abnormal close */\n\tSMC_PEERABORTWAIT\t= 26,\n\tSMC_PROCESSABORT\t= 27,\n};\n\nstruct smc_link_group;\n\nstruct smc_wr_rx_hdr {\t/* common prefix part of LLC and CDC to demultiplex */\n\tu8\t\t\ttype;\n} __aligned(1);\n\nstruct smc_cdc_conn_state_flags {\n#if defined(__BIG_ENDIAN_BITFIELD)\n\tu8\tpeer_done_writing : 1;\t/* Sending done indicator */\n\tu8\tpeer_conn_closed : 1;\t/* Peer connection closed indicator */\n\tu8\tpeer_conn_abort : 1;\t/* Abnormal close indicator */\n\tu8\treserved : 5;\n#elif defined(__LITTLE_ENDIAN_BITFIELD)\n\tu8\treserved : 5;\n\tu8\tpeer_conn_abort : 1;\n\tu8\tpeer_conn_closed : 1;\n\tu8\tpeer_done_writing : 1;\n#endif\n};\n\nstruct smc_cdc_producer_flags {\n#if defined(__BIG_ENDIAN_BITFIELD)\n\tu8\twrite_blocked : 1;\t/* Writing Blocked, no rx buf space */\n\tu8\turg_data_pending : 1;\t/* Urgent Data Pending */\n\tu8\turg_data_present : 1;\t/* Urgent Data Present */\n\tu8\tcons_curs_upd_req : 1;\t/* cursor update requested */\n\tu8\tfailover_validation : 1;/* message replay due to failover */\n\tu8\treserved : 3;\n#elif defined(__LITTLE_ENDIAN_BITFIELD)\n\tu8\treserved : 3;\n\tu8\tfailover_validation : 1;\n\tu8\tcons_curs_upd_req : 1;\n\tu8\turg_data_present : 1;\n\tu8\turg_data_pending : 1;\n\tu8\twrite_blocked : 1;\n#endif\n};\n\n/* in host byte order */\nunion smc_host_cursor {\t/* SMC cursor - an offset in an RMBE */\n\tstruct {\n\t\tu16\treserved;\n\t\tu16\twrap;\t\t/* window wrap sequence number */\n\t\tu32\tcount;\t\t/* cursor (= offset) part */\n\t};\n#ifdef KERNEL_HAS_ATOMIC64\n\tatomic64_t\t\tacurs;\t/* for atomic processing */\n#else\n\tu64\t\t\tacurs;\t/* for atomic processing */\n#endif\n} __aligned(8);\n\n/* in host byte order, except for flag bitfields in network byte order */\nstruct smc_host_cdc_msg {\t\t/* Connection Data Control message */\n\tstruct smc_wr_rx_hdr\t\tcommon; /* .type = 0xFE */\n\tu8\t\t\t\tlen;\t/* length = 44 */\n\tu16\t\t\t\tseqno;\t/* connection seq # */\n\tu32\t\t\t\ttoken;\t/* alert_token */\n\tunion smc_host_cursor\t\tprod;\t\t/* producer cursor */\n\tunion smc_host_cursor\t\tcons;\t\t/* consumer cursor,\n\t\t\t\t\t\t\t * piggy backed \"ack\"\n\t\t\t\t\t\t\t */\n\tstruct smc_cdc_producer_flags\tprod_flags;\t/* conn. tx/rx status */\n\tstruct smc_cdc_conn_state_flags\tconn_state_flags; /* peer conn. status*/\n\tu8\t\t\t\treserved[18];\n} __aligned(8);\n\nenum smc_urg_state {\n\tSMC_URG_VALID\t= 1,\t\t\t/* data present */\n\tSMC_URG_NOTYET\t= 2,\t\t\t/* data pending */\n\tSMC_URG_READ\t= 3,\t\t\t/* data was already read */\n};\n\nstruct smc_connection {\n\tstruct rb_node\t\talert_node;\n\tstruct smc_link_group\t*lgr;\t\t/* link group of connection */\n\tstruct smc_link\t\t*lnk;\t\t/* assigned SMC-R link */\n\tu32\t\t\talert_token_local; /* unique conn. id */\n\tu8\t\t\tpeer_rmbe_idx;\t/* from tcp handshake */\n\tint\t\t\tpeer_rmbe_size;\t/* size of peer rx buffer */\n\tatomic_t\t\tpeer_rmbe_space;/* remaining free bytes in peer\n\t\t\t\t\t\t * rmbe\n\t\t\t\t\t\t */\n\tint\t\t\trtoken_idx;\t/* idx to peer RMB rkey/addr */\n\n\tstruct smc_buf_desc\t*sndbuf_desc;\t/* send buffer descriptor */\n\tstruct smc_buf_desc\t*rmb_desc;\t/* RMBE descriptor */\n\tint\t\t\trmbe_size_short;/* compressed notation */\n\tint\t\t\trmbe_update_limit;\n\t\t\t\t\t\t/* lower limit for consumer\n\t\t\t\t\t\t * cursor update\n\t\t\t\t\t\t */\n\n\tstruct smc_host_cdc_msg\tlocal_tx_ctrl;\t/* host byte order staging\n\t\t\t\t\t\t * buffer for CDC msg send\n\t\t\t\t\t\t * .prod cf. TCP snd_nxt\n\t\t\t\t\t\t * .cons cf. TCP sends ack\n\t\t\t\t\t\t */\n\tunion smc_host_cursor\tlocal_tx_ctrl_fin;\n\t\t\t\t\t\t/* prod crsr - confirmed by peer\n\t\t\t\t\t\t */\n\tunion smc_host_cursor\ttx_curs_prep;\t/* tx - prepared data\n\t\t\t\t\t\t * snd_max..wmem_alloc\n\t\t\t\t\t\t */\n\tunion smc_host_cursor\ttx_curs_sent;\t/* tx - sent data\n\t\t\t\t\t\t * snd_nxt ?\n\t\t\t\t\t\t */\n\tunion smc_host_cursor\ttx_curs_fin;\t/* tx - confirmed by peer\n\t\t\t\t\t\t * snd-wnd-begin ?\n\t\t\t\t\t\t */\n\tatomic_t\t\tsndbuf_space;\t/* remaining space in sndbuf */\n\tu16\t\t\ttx_cdc_seq;\t/* sequence # for CDC send */\n\tu16\t\t\ttx_cdc_seq_fin;\t/* sequence # - tx completed */\n\tspinlock_t\t\tsend_lock;\t/* protect wr_sends */\n\tstruct delayed_work\ttx_work;\t/* retry of smc_cdc_msg_send */\n\tu32\t\t\ttx_off;\t\t/* base offset in peer rmb */\n\n\tstruct smc_host_cdc_msg\tlocal_rx_ctrl;\t/* filled during event_handl.\n\t\t\t\t\t\t * .prod cf. TCP rcv_nxt\n\t\t\t\t\t\t * .cons cf. TCP snd_una\n\t\t\t\t\t\t */\n\tunion smc_host_cursor\trx_curs_confirmed; /* confirmed to peer\n\t\t\t\t\t\t * source of snd_una ?\n\t\t\t\t\t\t */\n\tunion smc_host_cursor\turg_curs;\t/* points at urgent byte */\n\tenum smc_urg_state\turg_state;\n\tbool\t\t\turg_tx_pend;\t/* urgent data staged */\n\tbool\t\t\turg_rx_skip_pend;\n\t\t\t\t\t\t/* indicate urgent oob data\n\t\t\t\t\t\t * read, but previous regular\n\t\t\t\t\t\t * data still pending\n\t\t\t\t\t\t */\n\tchar\t\t\turg_rx_byte;\t/* urgent byte */\n\tatomic_t\t\tbytes_to_rcv;\t/* arrived data,\n\t\t\t\t\t\t * not yet received\n\t\t\t\t\t\t */\n\tatomic_t\t\tsplice_pending;\t/* number of spliced bytes\n\t\t\t\t\t\t * pending processing\n\t\t\t\t\t\t */\n#ifndef KERNEL_HAS_ATOMIC64\n\tspinlock_t\t\tacurs_lock;\t/* protect cursors */\n#endif\n\tstruct work_struct\tclose_work;\t/* peer sent some closing */\n\tstruct work_struct\tabort_work;\t/* abort the connection */\n\tstruct tasklet_struct\trx_tsklet;\t/* Receiver tasklet for SMC-D */\n\tu8\t\t\trx_off;\t\t/* receive offset:\n\t\t\t\t\t\t * 0 for SMC-R, 32 for SMC-D\n\t\t\t\t\t\t */\n\tu64\t\t\tpeer_token;\t/* SMC-D token of peer */\n\tu8\t\t\tkilled : 1;\t/* abnormal termination */\n\tu8\t\t\tout_of_sync : 1; /* out of sync with peer */\n};\n\nstruct smc_sock {\t\t\t\t/* smc sock container */\n\tstruct sock\t\tsk;\n\tstruct socket\t\t*clcsock;\t/* internal tcp socket */\n\tvoid\t\t\t(*clcsk_data_ready)(struct sock *sk);\n\t\t\t\t\t\t/* original data_ready fct. **/\n\tstruct smc_connection\tconn;\t\t/* smc connection */\n\tstruct smc_sock\t\t*listen_smc;\t/* listen parent */\n\tstruct work_struct\tconnect_work;\t/* handle non-blocking connect*/\n\tstruct work_struct\ttcp_listen_work;/* handle tcp socket accepts */\n\tstruct work_struct\tsmc_listen_work;/* prepare new accept socket */\n\tstruct list_head\taccept_q;\t/* sockets to be accepted */\n\tspinlock_t\t\taccept_q_lock;\t/* protects accept_q */\n\tbool\t\t\tuse_fallback;\t/* fallback to tcp */\n\tint\t\t\tfallback_rsn;\t/* reason for fallback */\n\tu32\t\t\tpeer_diagnosis; /* decline reason from peer */\n\tint\t\t\tsockopt_defer_accept;\n\t\t\t\t\t\t/* sockopt TCP_DEFER_ACCEPT\n\t\t\t\t\t\t * value\n\t\t\t\t\t\t */\n\tu8\t\t\twait_close_tx_prepared : 1;\n\t\t\t\t\t\t/* shutdown wr or close\n\t\t\t\t\t\t * started, waiting for unsent\n\t\t\t\t\t\t * data to be sent\n\t\t\t\t\t\t */\n\tu8\t\t\tconnect_nonblock : 1;\n\t\t\t\t\t\t/* non-blocking connect in\n\t\t\t\t\t\t * flight\n\t\t\t\t\t\t */\n\tstruct mutex clcsock_release_lock;\n\t\t\t\t\t\t/* protects clcsock of a listen\n\t\t\t\t\t\t * socket\n\t\t\t\t\t\t * */\n};\n\nstatic inline struct smc_sock *smc_sk(const struct sock *sk)\n{\n\treturn (struct smc_sock *)sk;\n}\n\nextern struct workqueue_struct\t*smc_hs_wq;\t/* wq for handshake work */\nextern struct workqueue_struct\t*smc_close_wq;\t/* wq for close work */\n\n#define SMC_SYSTEMID_LEN\t\t8\n\nextern u8\tlocal_systemid[SMC_SYSTEMID_LEN]; /* unique system identifier */\n\n#define ntohll(x) be64_to_cpu(x)\n#define htonll(x) cpu_to_be64(x)\n\n/* convert an u32 value into network byte order, store it into a 3 byte field */\nstatic inline void hton24(u8 *net, u32 host)\n{\n\t__be32 t;\n\n\tt = cpu_to_be32(host);\n\tmemcpy(net, ((u8 *)&t) + 1, 3);\n}\n\n/* convert a received 3 byte field into host byte order*/\nstatic inline u32 ntoh24(u8 *net)\n{\n\t__be32 t = 0;\n\n\tmemcpy(((u8 *)&t) + 1, net, 3);\n\treturn be32_to_cpu(t);\n}\n\n#ifdef CONFIG_XFRM\nstatic inline bool using_ipsec(struct smc_sock *smc)\n{\n\treturn (smc->clcsock->sk->sk_policy[0] ||\n\t\tsmc->clcsock->sk->sk_policy[1]) ? true : false;\n}\n#else\nstatic inline bool using_ipsec(struct smc_sock *smc)\n{\n\treturn false;\n}\n#endif\n\nstruct sock *smc_accept_dequeue(struct sock *parent, struct socket *new_sock);\nvoid smc_close_non_accepted(struct sock *sk);\n\n#endif", "parent": null, "children": [1, 2, 3, 6, 9, 12, 15, 18, 21, 25, 29, 33, 37, 41, 45, 49, 53, 60, 67, 74, 126, 129, 141, 197, 273, 306, 354, 370, 545, 637, 664, 673, 682, 686, 693, 699, 705, 746, 785, 847, 870, 882], "start_point": {"row": 10, "column": 0}, "end_point": {"row": 294, "column": 6}}, {"id": 1, "type": "#ifndef", "text": "#ifndef", "parent": 0, "children": [], "start_point": {"row": 10, "column": 0}, "end_point": {"row": 10, "column": 7}}, {"id": 2, "type": "identifier", "text": "__SMC_H", "parent": 0, "children": [], "start_point": {"row": 10, "column": 8}, "end_point": {"row": 10, "column": 15}}, {"id": 3, "type": "preproc_def", "text": "#define __SMC_H\n", "parent": 0, "children": [4, 5], "start_point": {"row": 11, "column": 0}, "end_point": {"row": 12, "column": 0}}, {"id": 4, "type": "#define", "text": "#define", "parent": 3, "children": [], "start_point": {"row": 11, "column": 0}, "end_point": {"row": 11, "column": 7}}, {"id": 5, "type": "identifier", "text": "__SMC_H", "parent": 3, "children": [], "start_point": {"row": 11, "column": 8}, "end_point": {"row": 11, "column": 15}}, {"id": 6, "type": "preproc_include", "text": "#include <linux/socket.h>\n", "parent": 0, "children": [7, 8], "start_point": {"row": 13, "column": 0}, "end_point": {"row": 14, "column": 0}}, {"id": 7, "type": "#include", "text": "#include", "parent": 6, "children": [], "start_point": {"row": 13, "column": 0}, "end_point": {"row": 13, "column": 8}}, {"id": 8, "type": "system_lib_string", "text": "<linux/socket.h>", "parent": 6, "children": [], "start_point": {"row": 13, "column": 9}, "end_point": {"row": 13, "column": 25}}, {"id": 9, "type": "preproc_include", "text": "#include <linux/types.h>\n", "parent": 0, "children": [10, 11], "start_point": {"row": 14, "column": 0}, "end_point": {"row": 15, "column": 0}}, {"id": 10, "type": "#include", "text": "#include", "parent": 9, "children": [], "start_point": {"row": 14, "column": 0}, "end_point": {"row": 14, "column": 8}}, {"id": 11, "type": "system_lib_string", "text": "<linux/types.h>", "parent": 9, "children": [], "start_point": {"row": 14, "column": 9}, "end_point": {"row": 14, "column": 24}}, {"id": 12, "type": "preproc_include", "text": "#include <linux/compiler.h> /* __aligned */\n", "parent": 0, "children": [13, 14], "start_point": {"row": 15, "column": 0}, "end_point": {"row": 16, "column": 0}}, {"id": 13, "type": "#include", "text": "#include", "parent": 12, "children": [], "start_point": {"row": 15, "column": 0}, "end_point": {"row": 15, "column": 8}}, {"id": 14, "type": "system_lib_string", "text": "<linux/compiler.h>", "parent": 12, "children": [], "start_point": {"row": 15, "column": 9}, "end_point": {"row": 15, "column": 27}}, {"id": 15, "type": "preproc_include", "text": "#include <net/sock.h>\n", "parent": 0, "children": [16, 17], "start_point": {"row": 16, "column": 0}, "end_point": {"row": 17, "column": 0}}, {"id": 16, "type": "#include", "text": "#include", "parent": 15, "children": [], "start_point": {"row": 16, "column": 0}, "end_point": {"row": 16, "column": 8}}, {"id": 17, "type": "system_lib_string", "text": "<net/sock.h>", "parent": 15, "children": [], "start_point": {"row": 16, "column": 9}, "end_point": {"row": 16, "column": 21}}, {"id": 18, "type": "preproc_include", "text": "#include \"smc_ib.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": "\"smc_ib.h\"", "parent": 18, "children": [], "start_point": {"row": 18, "column": 9}, "end_point": {"row": 18, "column": 19}}, {"id": 21, "type": "preproc_def", "text": "#define SMC_V1\t\t1\t\t/* SMC version V1 */\n", "parent": 0, "children": [22, 23, 24], "start_point": {"row": 20, "column": 0}, "end_point": {"row": 21, "column": 0}}, {"id": 22, "type": "#define", "text": "#define", "parent": 21, "children": [], "start_point": {"row": 20, "column": 0}, "end_point": {"row": 20, "column": 7}}, {"id": 23, "type": "identifier", "text": "SMC_V1", "parent": 21, "children": [], "start_point": {"row": 20, "column": 8}, "end_point": {"row": 20, "column": 14}}, {"id": 24, "type": "preproc_arg", "text": "1\t\t", "parent": 21, "children": [], "start_point": {"row": 20, "column": 16}, "end_point": {"row": 20, "column": 19}}, {"id": 25, "type": "preproc_def", "text": "#define SMC_V2\t\t2\t\t/* SMC version V2 */\n", "parent": 0, "children": [26, 27, 28], "start_point": {"row": 21, "column": 0}, "end_point": {"row": 22, "column": 0}}, {"id": 26, "type": "#define", "text": "#define", "parent": 25, "children": [], "start_point": {"row": 21, "column": 0}, "end_point": {"row": 21, "column": 7}}, {"id": 27, "type": "identifier", "text": "SMC_V2", "parent": 25, "children": [], "start_point": {"row": 21, "column": 8}, "end_point": {"row": 21, "column": 14}}, {"id": 28, "type": "preproc_arg", "text": "2\t\t", "parent": 25, "children": [], "start_point": {"row": 21, "column": 16}, "end_point": {"row": 21, "column": 19}}, {"id": 29, "type": "preproc_def", "text": "#define SMC_RELEASE\t0\n", "parent": 0, "children": [30, 31, 32], "start_point": {"row": 22, "column": 0}, "end_point": {"row": 23, "column": 0}}, {"id": 30, "type": "#define", "text": "#define", "parent": 29, "children": [], "start_point": {"row": 22, "column": 0}, "end_point": {"row": 22, "column": 7}}, {"id": 31, "type": "identifier", "text": "SMC_RELEASE", "parent": 29, "children": [], "start_point": {"row": 22, "column": 8}, "end_point": {"row": 22, "column": 19}}, {"id": 32, "type": "preproc_arg", "text": "0", "parent": 29, "children": [], "start_point": {"row": 22, "column": 20}, "end_point": {"row": 22, "column": 21}}, {"id": 33, "type": "preproc_def", "text": "#define SMCPROTO_SMC\t\t0\t/* SMC protocol, IPv4 */\n", "parent": 0, "children": [34, 35, 36], "start_point": {"row": 24, "column": 0}, "end_point": {"row": 25, "column": 0}}, {"id": 34, "type": "#define", "text": "#define", "parent": 33, "children": [], "start_point": {"row": 24, "column": 0}, "end_point": {"row": 24, "column": 7}}, {"id": 35, "type": "identifier", "text": "SMCPROTO_SMC", "parent": 33, "children": [], "start_point": {"row": 24, "column": 8}, "end_point": {"row": 24, "column": 20}}, {"id": 36, "type": "preproc_arg", "text": "0\t", "parent": 33, "children": [], "start_point": {"row": 24, "column": 22}, "end_point": {"row": 24, "column": 24}}, {"id": 37, "type": "preproc_def", "text": "#define SMCPROTO_SMC6\t\t1\t/* SMC protocol, IPv6 */\n", "parent": 0, "children": [38, 39, 40], "start_point": {"row": 25, "column": 0}, "end_point": {"row": 26, "column": 0}}, {"id": 38, "type": "#define", "text": "#define", "parent": 37, "children": [], "start_point": {"row": 25, "column": 0}, "end_point": {"row": 25, "column": 7}}, {"id": 39, "type": "identifier", "text": "SMCPROTO_SMC6", "parent": 37, "children": [], "start_point": {"row": 25, "column": 8}, "end_point": {"row": 25, "column": 21}}, {"id": 40, "type": "preproc_arg", "text": "1\t", "parent": 37, "children": [], "start_point": {"row": 25, "column": 23}, "end_point": {"row": 25, "column": 25}}, {"id": 41, "type": "preproc_def", "text": "#define SMC_MAX_ISM_DEVS\t8\t/* max # of proposed non-native ISM\n\t\t\t\t\t * devices\n\t\t\t\t\t */\n", "parent": 0, "children": [42, 43, 44], "start_point": {"row": 27, "column": 0}, "end_point": {"row": 30, "column": 0}}, {"id": 42, "type": "#define", "text": "#define", "parent": 41, "children": [], "start_point": {"row": 27, "column": 0}, "end_point": {"row": 27, "column": 7}}, {"id": 43, "type": "identifier", "text": "SMC_MAX_ISM_DEVS", "parent": 41, "children": [], "start_point": {"row": 27, "column": 8}, "end_point": {"row": 27, "column": 24}}, {"id": 44, "type": "preproc_arg", "text": "8\t", "parent": 41, "children": [], "start_point": {"row": 27, "column": 25}, "end_point": {"row": 27, "column": 27}}, {"id": 45, "type": "preproc_def", "text": "#define SMC_MAX_HOSTNAME_LEN\t32\n", "parent": 0, "children": [46, 47, 48], "start_point": {"row": 31, "column": 0}, "end_point": {"row": 32, "column": 0}}, {"id": 46, "type": "#define", "text": "#define", "parent": 45, "children": [], "start_point": {"row": 31, "column": 0}, "end_point": {"row": 31, "column": 7}}, {"id": 47, "type": "identifier", "text": "SMC_MAX_HOSTNAME_LEN", "parent": 45, "children": [], "start_point": {"row": 31, "column": 8}, "end_point": {"row": 31, "column": 28}}, {"id": 48, "type": "preproc_arg", "text": "32", "parent": 45, "children": [], "start_point": {"row": 31, "column": 29}, "end_point": {"row": 31, "column": 31}}, {"id": 49, "type": "preproc_def", "text": "#define SMC_MAX_EID_LEN\t\t32\n", "parent": 0, "children": [50, 51, 52], "start_point": {"row": 32, "column": 0}, "end_point": {"row": 33, "column": 0}}, {"id": 50, "type": "#define", "text": "#define", "parent": 49, "children": [], "start_point": {"row": 32, "column": 0}, "end_point": {"row": 32, "column": 7}}, {"id": 51, "type": "identifier", "text": "SMC_MAX_EID_LEN", "parent": 49, "children": [], "start_point": {"row": 32, "column": 8}, "end_point": {"row": 32, "column": 23}}, {"id": 52, "type": "preproc_arg", "text": "32", "parent": 49, "children": [], "start_point": {"row": 32, "column": 25}, "end_point": {"row": 32, "column": 27}}, {"id": 53, "type": "declaration", "text": "extern struct proto smc_proto;", "parent": 0, "children": [54, 56, 59], "start_point": {"row": 34, "column": 0}, "end_point": {"row": 34, "column": 30}}, {"id": 54, "type": "storage_class_specifier", "text": "extern", "parent": 53, "children": [55], "start_point": {"row": 34, "column": 0}, "end_point": {"row": 34, "column": 6}}, {"id": 55, "type": "extern", "text": "extern", "parent": 54, "children": [], "start_point": {"row": 34, "column": 0}, "end_point": {"row": 34, "column": 6}}, {"id": 56, "type": "struct_specifier", "text": "struct proto", "parent": 53, "children": [57, 58], "start_point": {"row": 34, "column": 7}, "end_point": {"row": 34, "column": 19}}, {"id": 57, "type": "struct", "text": "struct", "parent": 56, "children": [], "start_point": {"row": 34, "column": 7}, "end_point": {"row": 34, "column": 13}}, {"id": 58, "type": "type_identifier", "text": "proto", "parent": 56, "children": [], "start_point": {"row": 34, "column": 14}, "end_point": {"row": 34, "column": 19}}, {"id": 59, "type": "identifier", "text": "smc_proto", "parent": 53, "children": [], "start_point": {"row": 34, "column": 20}, "end_point": {"row": 34, "column": 29}}, {"id": 60, "type": "declaration", "text": "extern struct proto smc_proto6;", "parent": 0, "children": [61, 63, 66], "start_point": {"row": 35, "column": 0}, "end_point": {"row": 35, "column": 31}}, {"id": 61, "type": "storage_class_specifier", "text": "extern", "parent": 60, "children": [62], "start_point": {"row": 35, "column": 0}, "end_point": {"row": 35, "column": 6}}, {"id": 62, "type": "extern", "text": "extern", "parent": 61, "children": [], "start_point": {"row": 35, "column": 0}, "end_point": {"row": 35, "column": 6}}, {"id": 63, "type": "struct_specifier", "text": "struct proto", "parent": 60, "children": [64, 65], "start_point": {"row": 35, "column": 7}, "end_point": {"row": 35, "column": 19}}, {"id": 64, "type": "struct", "text": "struct", "parent": 63, "children": [], "start_point": {"row": 35, "column": 7}, "end_point": {"row": 35, "column": 13}}, {"id": 65, "type": "type_identifier", "text": "proto", "parent": 63, "children": [], "start_point": {"row": 35, "column": 14}, "end_point": {"row": 35, "column": 19}}, {"id": 66, "type": "identifier", "text": "smc_proto6", "parent": 60, "children": [], "start_point": {"row": 35, "column": 20}, "end_point": {"row": 35, "column": 30}}, {"id": 67, "type": "preproc_ifdef", "text": "#ifdef ATOMIC64_INIT\n#define KERNEL_HAS_ATOMIC64\n#endif", "parent": 0, "children": [68, 69, 70, 73], "start_point": {"row": 37, "column": 0}, "end_point": {"row": 39, "column": 6}}, {"id": 68, "type": "#ifdef", "text": "#ifdef", "parent": 67, "children": [], "start_point": {"row": 37, "column": 0}, "end_point": {"row": 37, "column": 6}}, {"id": 69, "type": "identifier", "text": "ATOMIC64_INIT", "parent": 67, "children": [], "start_point": {"row": 37, "column": 7}, "end_point": {"row": 37, "column": 20}}, {"id": 70, "type": "preproc_def", "text": "#define KERNEL_HAS_ATOMIC64\n", "parent": 67, "children": [71, 72], "start_point": {"row": 38, "column": 0}, "end_point": {"row": 39, "column": 0}}, {"id": 71, "type": "#define", "text": "#define", "parent": 70, "children": [], "start_point": {"row": 38, "column": 0}, "end_point": {"row": 38, "column": 7}}, {"id": 72, "type": "identifier", "text": "KERNEL_HAS_ATOMIC64", "parent": 70, "children": [], "start_point": {"row": 38, "column": 8}, "end_point": {"row": 38, "column": 27}}, {"id": 73, "type": "#endif", "text": "#endif", "parent": 67, "children": [], "start_point": {"row": 39, "column": 0}, "end_point": {"row": 39, "column": 6}}, {"id": 74, "type": "enum_specifier", "text": "enum smc_state {\t\t/* possible states of an SMC socket */\n\tSMC_ACTIVE\t= 1,\n\tSMC_INIT\t= 2,\n\tSMC_CLOSED\t= 7,\n\tSMC_LISTEN\t= 10,\n\t/* normal close */\n\tSMC_PEERCLOSEWAIT1\t= 20,\n\tSMC_PEERCLOSEWAIT2\t= 21,\n\tSMC_APPFINCLOSEWAIT\t= 24,\n\tSMC_APPCLOSEWAIT1\t= 22,\n\tSMC_APPCLOSEWAIT2\t= 23,\n\tSMC_PEERFINCLOSEWAIT\t= 25,\n\t/* abnormal close */\n\tSMC_PEERABORTWAIT\t= 26,\n\tSMC_PROCESSABORT\t= 27,\n}", "parent": 0, "children": [75, 76, 77], "start_point": {"row": 41, "column": 0}, "end_point": {"row": 56, "column": 1}}, {"id": 75, "type": "enum", "text": "enum", "parent": 74, "children": [], "start_point": {"row": 41, "column": 0}, "end_point": {"row": 41, "column": 4}}, {"id": 76, "type": "type_identifier", "text": "smc_state", "parent": 74, "children": [], "start_point": {"row": 41, "column": 5}, "end_point": {"row": 41, "column": 14}}, {"id": 77, "type": "enumerator_list", "text": "{\t\t/* possible states of an SMC socket */\n\tSMC_ACTIVE\t= 1,\n\tSMC_INIT\t= 2,\n\tSMC_CLOSED\t= 7,\n\tSMC_LISTEN\t= 10,\n\t/* normal close */\n\tSMC_PEERCLOSEWAIT1\t= 20,\n\tSMC_PEERCLOSEWAIT2\t= 21,\n\tSMC_APPFINCLOSEWAIT\t= 24,\n\tSMC_APPCLOSEWAIT1\t= 22,\n\tSMC_APPCLOSEWAIT2\t= 23,\n\tSMC_PEERFINCLOSEWAIT\t= 25,\n\t/* abnormal close */\n\tSMC_PEERABORTWAIT\t= 26,\n\tSMC_PROCESSABORT\t= 27,\n}", "parent": 74, "children": [78, 82, 86, 90, 94, 98, 102, 106, 110, 114, 118, 122], "start_point": {"row": 41, "column": 15}, "end_point": {"row": 56, "column": 1}}, {"id": 78, "type": "enumerator", "text": "SMC_ACTIVE\t= 1", "parent": 77, "children": [79, 80, 81], "start_point": {"row": 42, "column": 1}, "end_point": {"row": 42, "column": 15}}, {"id": 79, "type": "identifier", "text": "SMC_ACTIVE", "parent": 78, "children": [], "start_point": {"row": 42, "column": 1}, "end_point": {"row": 42, "column": 11}}, {"id": 80, "type": "=", "text": "=", "parent": 78, "children": [], "start_point": {"row": 42, "column": 12}, "end_point": {"row": 42, "column": 13}}, {"id": 81, "type": "number_literal", "text": "1", "parent": 78, "children": [], "start_point": {"row": 42, "column": 14}, "end_point": {"row": 42, "column": 15}}, {"id": 82, "type": "enumerator", "text": "SMC_INIT\t= 2", "parent": 77, "children": [83, 84, 85], "start_point": {"row": 43, "column": 1}, "end_point": {"row": 43, "column": 13}}, {"id": 83, "type": "identifier", "text": "SMC_INIT", "parent": 82, "children": [], "start_point": {"row": 43, "column": 1}, "end_point": {"row": 43, "column": 9}}, {"id": 84, "type": "=", "text": "=", "parent": 82, "children": [], "start_point": {"row": 43, "column": 10}, "end_point": {"row": 43, "column": 11}}, {"id": 85, "type": "number_literal", "text": "2", "parent": 82, "children": [], "start_point": {"row": 43, "column": 12}, "end_point": {"row": 43, "column": 13}}, {"id": 86, "type": "enumerator", "text": "SMC_CLOSED\t= 7", "parent": 77, "children": [87, 88, 89], "start_point": {"row": 44, "column": 1}, "end_point": {"row": 44, "column": 15}}, {"id": 87, "type": "identifier", "text": "SMC_CLOSED", "parent": 86, "children": [], "start_point": {"row": 44, "column": 1}, "end_point": {"row": 44, "column": 11}}, {"id": 88, "type": "=", "text": "=", "parent": 86, "children": [], "start_point": {"row": 44, "column": 12}, "end_point": {"row": 44, "column": 13}}, {"id": 89, "type": "number_literal", "text": "7", "parent": 86, "children": [], "start_point": {"row": 44, "column": 14}, "end_point": {"row": 44, "column": 15}}, {"id": 90, "type": "enumerator", "text": "SMC_LISTEN\t= 10", "parent": 77, "children": [91, 92, 93], "start_point": {"row": 45, "column": 1}, "end_point": {"row": 45, "column": 16}}, {"id": 91, "type": "identifier", "text": "SMC_LISTEN", "parent": 90, "children": [], "start_point": {"row": 45, "column": 1}, "end_point": {"row": 45, "column": 11}}, {"id": 92, "type": "=", "text": "=", "parent": 90, "children": [], "start_point": {"row": 45, "column": 12}, "end_point": {"row": 45, "column": 13}}, {"id": 93, "type": "number_literal", "text": "10", "parent": 90, "children": [], "start_point": {"row": 45, "column": 14}, "end_point": {"row": 45, "column": 16}}, {"id": 94, "type": "enumerator", "text": "SMC_PEERCLOSEWAIT1\t= 20", "parent": 77, "children": [95, 96, 97], "start_point": {"row": 47, "column": 1}, "end_point": {"row": 47, "column": 24}}, {"id": 95, "type": "identifier", "text": "SMC_PEERCLOSEWAIT1", "parent": 94, "children": [], "start_point": {"row": 47, "column": 1}, "end_point": {"row": 47, "column": 19}}, {"id": 96, "type": "=", "text": "=", "parent": 94, "children": [], "start_point": {"row": 47, "column": 20}, "end_point": {"row": 47, "column": 21}}, {"id": 97, "type": "number_literal", "text": "20", "parent": 94, "children": [], "start_point": {"row": 47, "column": 22}, "end_point": {"row": 47, "column": 24}}, {"id": 98, "type": "enumerator", "text": "SMC_PEERCLOSEWAIT2\t= 21", "parent": 77, "children": [99, 100, 101], "start_point": {"row": 48, "column": 1}, "end_point": {"row": 48, "column": 24}}, {"id": 99, "type": "identifier", "text": "SMC_PEERCLOSEWAIT2", "parent": 98, "children": [], "start_point": {"row": 48, "column": 1}, "end_point": {"row": 48, "column": 19}}, {"id": 100, "type": "=", "text": "=", "parent": 98, "children": [], "start_point": {"row": 48, "column": 20}, "end_point": {"row": 48, "column": 21}}, {"id": 101, "type": "number_literal", "text": "21", "parent": 98, "children": [], "start_point": {"row": 48, "column": 22}, "end_point": {"row": 48, "column": 24}}, {"id": 102, "type": "enumerator", "text": "SMC_APPFINCLOSEWAIT\t= 24", "parent": 77, "children": [103, 104, 105], "start_point": {"row": 49, "column": 1}, "end_point": {"row": 49, "column": 25}}, {"id": 103, "type": "identifier", "text": "SMC_APPFINCLOSEWAIT", "parent": 102, "children": [], "start_point": {"row": 49, "column": 1}, "end_point": {"row": 49, "column": 20}}, {"id": 104, "type": "=", "text": "=", "parent": 102, "children": [], "start_point": {"row": 49, "column": 21}, "end_point": {"row": 49, "column": 22}}, {"id": 105, "type": "number_literal", "text": "24", "parent": 102, "children": [], "start_point": {"row": 49, "column": 23}, "end_point": {"row": 49, "column": 25}}, {"id": 106, "type": "enumerator", "text": "SMC_APPCLOSEWAIT1\t= 22", "parent": 77, "children": [107, 108, 109], "start_point": {"row": 50, "column": 1}, "end_point": {"row": 50, "column": 23}}, {"id": 107, "type": "identifier", "text": "SMC_APPCLOSEWAIT1", "parent": 106, "children": [], "start_point": {"row": 50, "column": 1}, "end_point": {"row": 50, "column": 18}}, {"id": 108, "type": "=", "text": "=", "parent": 106, "children": [], "start_point": {"row": 50, "column": 19}, "end_point": {"row": 50, "column": 20}}, {"id": 109, "type": "number_literal", "text": "22", "parent": 106, "children": [], "start_point": {"row": 50, "column": 21}, "end_point": {"row": 50, "column": 23}}, {"id": 110, "type": "enumerator", "text": "SMC_APPCLOSEWAIT2\t= 23", "parent": 77, "children": [111, 112, 113], "start_point": {"row": 51, "column": 1}, "end_point": {"row": 51, "column": 23}}, {"id": 111, "type": "identifier", "text": "SMC_APPCLOSEWAIT2", "parent": 110, "children": [], "start_point": {"row": 51, "column": 1}, "end_point": {"row": 51, "column": 18}}, {"id": 112, "type": "=", "text": "=", "parent": 110, "children": [], "start_point": {"row": 51, "column": 19}, "end_point": {"row": 51, "column": 20}}, {"id": 113, "type": "number_literal", "text": "23", "parent": 110, "children": [], "start_point": {"row": 51, "column": 21}, "end_point": {"row": 51, "column": 23}}, {"id": 114, "type": "enumerator", "text": "SMC_PEERFINCLOSEWAIT\t= 25", "parent": 77, "children": [115, 116, 117], "start_point": {"row": 52, "column": 1}, "end_point": {"row": 52, "column": 26}}, {"id": 115, "type": "identifier", "text": "SMC_PEERFINCLOSEWAIT", "parent": 114, "children": [], "start_point": {"row": 52, "column": 1}, "end_point": {"row": 52, "column": 21}}, {"id": 116, "type": "=", "text": "=", "parent": 114, "children": [], "start_point": {"row": 52, "column": 22}, "end_point": {"row": 52, "column": 23}}, {"id": 117, "type": "number_literal", "text": "25", "parent": 114, "children": [], "start_point": {"row": 52, "column": 24}, "end_point": {"row": 52, "column": 26}}, {"id": 118, "type": "enumerator", "text": "SMC_PEERABORTWAIT\t= 26", "parent": 77, "children": [119, 120, 121], "start_point": {"row": 54, "column": 1}, "end_point": {"row": 54, "column": 23}}, {"id": 119, "type": "identifier", "text": "SMC_PEERABORTWAIT", "parent": 118, "children": [], "start_point": {"row": 54, "column": 1}, "end_point": {"row": 54, "column": 18}}, {"id": 120, "type": "=", "text": "=", "parent": 118, "children": [], "start_point": {"row": 54, "column": 19}, "end_point": {"row": 54, "column": 20}}, {"id": 121, "type": "number_literal", "text": "26", "parent": 118, "children": [], "start_point": {"row": 54, "column": 21}, "end_point": {"row": 54, "column": 23}}, {"id": 122, "type": "enumerator", "text": "SMC_PROCESSABORT\t= 27", "parent": 77, "children": [123, 124, 125], "start_point": {"row": 55, "column": 1}, "end_point": {"row": 55, "column": 22}}, {"id": 123, "type": "identifier", "text": "SMC_PROCESSABORT", "parent": 122, "children": [], "start_point": {"row": 55, "column": 1}, "end_point": {"row": 55, "column": 17}}, {"id": 124, "type": "=", "text": "=", "parent": 122, "children": [], "start_point": {"row": 55, "column": 18}, "end_point": {"row": 55, "column": 19}}, {"id": 125, "type": "number_literal", "text": "27", "parent": 122, "children": [], "start_point": {"row": 55, "column": 20}, "end_point": {"row": 55, "column": 22}}, {"id": 126, "type": "struct_specifier", "text": "struct smc_link_group", "parent": 0, "children": [127, 128], "start_point": {"row": 58, "column": 0}, "end_point": {"row": 58, "column": 21}}, {"id": 127, "type": "struct", "text": "struct", "parent": 126, "children": [], "start_point": {"row": 58, "column": 0}, "end_point": {"row": 58, "column": 6}}, {"id": 128, "type": "type_identifier", "text": "smc_link_group", "parent": 126, "children": [], "start_point": {"row": 58, "column": 7}, "end_point": {"row": 58, "column": 21}}, {"id": 129, "type": "declaration", "text": "struct smc_wr_rx_hdr {\t/* common prefix part of LLC and CDC to demultiplex */\n\tu8\t\t\ttype;\n} __aligned(1);", "parent": 0, "children": [130, 136], "start_point": {"row": 60, "column": 0}, "end_point": {"row": 62, "column": 15}}, {"id": 130, "type": "struct_specifier", "text": "struct smc_wr_rx_hdr {\t/* common prefix part of LLC and CDC to demultiplex */\n\tu8\t\t\ttype;\n}", "parent": 129, "children": [131, 132], "start_point": {"row": 60, "column": 0}, "end_point": {"row": 62, "column": 1}}, {"id": 131, "type": "struct", "text": "struct", "parent": 130, "children": [], "start_point": {"row": 60, "column": 0}, "end_point": {"row": 60, "column": 6}}, {"id": 132, "type": "type_identifier", "text": "smc_wr_rx_hdr", "parent": 130, "children": [], "start_point": {"row": 60, "column": 7}, "end_point": {"row": 60, "column": 20}}, {"id": 133, "type": "field_declaration", "text": "u8\t\t\ttype;", "parent": 130, "children": [134, 135], "start_point": {"row": 61, "column": 1}, "end_point": {"row": 61, "column": 11}}, {"id": 134, "type": "type_identifier", "text": "u8", "parent": 133, "children": [], "start_point": {"row": 61, "column": 1}, "end_point": {"row": 61, "column": 3}}, {"id": 135, "type": "field_identifier", "text": "type", "parent": 133, "children": [], "start_point": {"row": 61, "column": 6}, "end_point": {"row": 61, "column": 10}}, {"id": 136, "type": "function_declarator", "text": "__aligned(1)", "parent": 129, "children": [137, 138], "start_point": {"row": 62, "column": 2}, "end_point": {"row": 62, "column": 14}}, {"id": 137, "type": "identifier", "text": "__aligned", "parent": 136, "children": [], "start_point": {"row": 62, "column": 2}, "end_point": {"row": 62, "column": 11}}, {"id": 138, "type": "parameter_list", "text": "(1)", "parent": 136, "children": [139], "start_point": {"row": 62, "column": 11}, "end_point": {"row": 62, "column": 14}}, {"id": 139, "type": "ERROR", "text": "1", "parent": 138, "children": [140], "start_point": {"row": 62, "column": 12}, "end_point": {"row": 62, "column": 13}}, {"id": 140, "type": "number_literal", "text": "1", "parent": 139, "children": [], "start_point": {"row": 62, "column": 12}, "end_point": {"row": 62, "column": 13}}, {"id": 141, "type": "struct_specifier", "text": "struct smc_cdc_conn_state_flags {\n#if defined(__BIG_ENDIAN_BITFIELD)\n\tu8\tpeer_done_writing : 1;\t/* Sending done indicator */\n\tu8\tpeer_conn_closed : 1;\t/* Peer connection closed indicator */\n\tu8\tpeer_conn_abort : 1;\t/* Abnormal close indicator */\n\tu8\treserved : 5;\n#elif defined(__LITTLE_ENDIAN_BITFIELD)\n\tu8\treserved : 5;\n\tu8\tpeer_conn_abort : 1;\n\tu8\tpeer_conn_closed : 1;\n\tu8\tpeer_done_writing : 1;\n#endif\n}", "parent": 0, "children": [142, 143], "start_point": {"row": 64, "column": 0}, "end_point": {"row": 76, "column": 1}}, {"id": 142, "type": "struct", "text": "struct", "parent": 141, "children": [], "start_point": {"row": 64, "column": 0}, "end_point": {"row": 64, "column": 6}}, {"id": 143, "type": "type_identifier", "text": "smc_cdc_conn_state_flags", "parent": 141, "children": [], "start_point": {"row": 64, "column": 7}, "end_point": {"row": 64, "column": 31}}, {"id": 144, "type": "preproc_if", "text": "#if defined(__BIG_ENDIAN_BITFIELD)\n\tu8\tpeer_done_writing : 1;\t/* Sending done indicator */\n\tu8\tpeer_conn_closed : 1;\t/* Peer connection closed indicator */\n\tu8\tpeer_conn_abort : 1;\t/* Abnormal close indicator */\n\tu8\treserved : 5;\n#elif defined(__LITTLE_ENDIAN_BITFIELD)\n\tu8\treserved : 5;\n\tu8\tpeer_conn_abort : 1;\n\tu8\tpeer_conn_closed : 1;\n\tu8\tpeer_done_writing : 1;\n#endif", "parent": 141, "children": [145, 146, 149, 150, 155, 160, 165, 170, 196], "start_point": {"row": 65, "column": 0}, "end_point": {"row": 75, "column": 6}}, {"id": 145, "type": "#if", "text": "#if", "parent": 144, "children": [], "start_point": {"row": 65, "column": 0}, "end_point": {"row": 65, "column": 3}}, {"id": 146, "type": "preproc_defined", "text": "defined(__BIG_ENDIAN_BITFIELD)", "parent": 144, "children": [147, 148], "start_point": {"row": 65, "column": 4}, "end_point": {"row": 65, "column": 34}}, {"id": 147, "type": "defined", "text": "defined", "parent": 146, "children": [], "start_point": {"row": 65, "column": 4}, "end_point": {"row": 65, "column": 11}}, {"id": 148, "type": "identifier", "text": "__BIG_ENDIAN_BITFIELD", "parent": 146, "children": [], "start_point": {"row": 65, "column": 12}, "end_point": {"row": 65, "column": 33}}, {"id": 149, "type": "\n", "text": "\n", "parent": 144, "children": [], "start_point": {"row": 65, "column": 34}, "end_point": {"row": 66, "column": 0}}, {"id": 150, "type": "field_declaration", "text": "u8\tpeer_done_writing : 1;", "parent": 144, "children": [151, 152, 153], "start_point": {"row": 66, "column": 1}, "end_point": {"row": 66, "column": 26}}, {"id": 151, "type": "type_identifier", "text": "u8", "parent": 150, "children": [], "start_point": {"row": 66, "column": 1}, "end_point": {"row": 66, "column": 3}}, {"id": 152, "type": "field_identifier", "text": "peer_done_writing", "parent": 150, "children": [], "start_point": {"row": 66, "column": 4}, "end_point": {"row": 66, "column": 21}}, {"id": 153, "type": "bitfield_clause", "text": ": 1", "parent": 150, "children": [154], "start_point": {"row": 66, "column": 22}, "end_point": {"row": 66, "column": 25}}, {"id": 154, "type": "number_literal", "text": "1", "parent": 153, "children": [], "start_point": {"row": 66, "column": 24}, "end_point": {"row": 66, "column": 25}}, {"id": 155, "type": "field_declaration", "text": "u8\tpeer_conn_closed : 1;", "parent": 144, "children": [156, 157, 158], "start_point": {"row": 67, "column": 1}, "end_point": {"row": 67, "column": 25}}, {"id": 156, "type": "type_identifier", "text": "u8", "parent": 155, "children": [], "start_point": {"row": 67, "column": 1}, "end_point": {"row": 67, "column": 3}}, {"id": 157, "type": "field_identifier", "text": "peer_conn_closed", "parent": 155, "children": [], "start_point": {"row": 67, "column": 4}, "end_point": {"row": 67, "column": 20}}, {"id": 158, "type": "bitfield_clause", "text": ": 1", "parent": 155, "children": [159], "start_point": {"row": 67, "column": 21}, "end_point": {"row": 67, "column": 24}}, {"id": 159, "type": "number_literal", "text": "1", "parent": 158, "children": [], "start_point": {"row": 67, "column": 23}, "end_point": {"row": 67, "column": 24}}, {"id": 160, "type": "field_declaration", "text": "u8\tpeer_conn_abort : 1;", "parent": 144, "children": [161, 162, 163], "start_point": {"row": 68, "column": 1}, "end_point": {"row": 68, "column": 24}}, {"id": 161, "type": "type_identifier", "text": "u8", "parent": 160, "children": [], "start_point": {"row": 68, "column": 1}, "end_point": {"row": 68, "column": 3}}, {"id": 162, "type": "field_identifier", "text": "peer_conn_abort", "parent": 160, "children": [], "start_point": {"row": 68, "column": 4}, "end_point": {"row": 68, "column": 19}}, {"id": 163, "type": "bitfield_clause", "text": ": 1", "parent": 160, "children": [164], "start_point": {"row": 68, "column": 20}, "end_point": {"row": 68, "column": 23}}, {"id": 164, "type": "number_literal", "text": "1", "parent": 163, "children": [], "start_point": {"row": 68, "column": 22}, "end_point": {"row": 68, "column": 23}}, {"id": 165, "type": "field_declaration", "text": "u8\treserved : 5;", "parent": 144, "children": [166, 167, 168], "start_point": {"row": 69, "column": 1}, "end_point": {"row": 69, "column": 17}}, {"id": 166, "type": "type_identifier", "text": "u8", "parent": 165, "children": [], "start_point": {"row": 69, "column": 1}, "end_point": {"row": 69, "column": 3}}, {"id": 167, "type": "field_identifier", "text": "reserved", "parent": 165, "children": [], "start_point": {"row": 69, "column": 4}, "end_point": {"row": 69, "column": 12}}, {"id": 168, "type": "bitfield_clause", "text": ": 5", "parent": 165, "children": [169], "start_point": {"row": 69, "column": 13}, "end_point": {"row": 69, "column": 16}}, {"id": 169, "type": "number_literal", "text": "5", "parent": 168, "children": [], "start_point": {"row": 69, "column": 15}, "end_point": {"row": 69, "column": 16}}, {"id": 170, "type": "preproc_elif", "text": "#elif defined(__LITTLE_ENDIAN_BITFIELD)\n\tu8\treserved : 5;\n\tu8\tpeer_conn_abort : 1;\n\tu8\tpeer_conn_closed : 1;\n\tu8\tpeer_done_writing : 1;", "parent": 144, "children": [171, 172, 175, 176, 181, 186, 191], "start_point": {"row": 70, "column": 0}, "end_point": {"row": 74, "column": 26}}, {"id": 171, "type": "#elif", "text": "#elif", "parent": 170, "children": [], "start_point": {"row": 70, "column": 0}, "end_point": {"row": 70, "column": 5}}, {"id": 172, "type": "preproc_defined", "text": "defined(__LITTLE_ENDIAN_BITFIELD)", "parent": 170, "children": [173, 174], "start_point": {"row": 70, "column": 6}, "end_point": {"row": 70, "column": 39}}, {"id": 173, "type": "defined", "text": "defined", "parent": 172, "children": [], "start_point": {"row": 70, "column": 6}, "end_point": {"row": 70, "column": 13}}, {"id": 174, "type": "identifier", "text": "__LITTLE_ENDIAN_BITFIELD", "parent": 172, "children": [], "start_point": {"row": 70, "column": 14}, "end_point": {"row": 70, "column": 38}}, {"id": 175, "type": "\n", "text": "\n", "parent": 170, "children": [], "start_point": {"row": 70, "column": 39}, "end_point": {"row": 71, "column": 0}}, {"id": 176, "type": "field_declaration", "text": "u8\treserved : 5;", "parent": 170, "children": [177, 178, 179], "start_point": {"row": 71, "column": 1}, "end_point": {"row": 71, "column": 17}}, {"id": 177, "type": "type_identifier", "text": "u8", "parent": 176, "children": [], "start_point": {"row": 71, "column": 1}, "end_point": {"row": 71, "column": 3}}, {"id": 178, "type": "field_identifier", "text": "reserved", "parent": 176, "children": [], "start_point": {"row": 71, "column": 4}, "end_point": {"row": 71, "column": 12}}, {"id": 179, "type": "bitfield_clause", "text": ": 5", "parent": 176, "children": [180], "start_point": {"row": 71, "column": 13}, "end_point": {"row": 71, "column": 16}}, {"id": 180, "type": "number_literal", "text": "5", "parent": 179, "children": [], "start_point": {"row": 71, "column": 15}, "end_point": {"row": 71, "column": 16}}, {"id": 181, "type": "field_declaration", "text": "u8\tpeer_conn_abort : 1;", "parent": 170, "children": [182, 183, 184], "start_point": {"row": 72, "column": 1}, "end_point": {"row": 72, "column": 24}}, {"id": 182, "type": "type_identifier", "text": "u8", "parent": 181, "children": [], "start_point": {"row": 72, "column": 1}, "end_point": {"row": 72, "column": 3}}, {"id": 183, "type": "field_identifier", "text": "peer_conn_abort", "parent": 181, "children": [], "start_point": {"row": 72, "column": 4}, "end_point": {"row": 72, "column": 19}}, {"id": 184, "type": "bitfield_clause", "text": ": 1", "parent": 181, "children": [185], "start_point": {"row": 72, "column": 20}, "end_point": {"row": 72, "column": 23}}, {"id": 185, "type": "number_literal", "text": "1", "parent": 184, "children": [], "start_point": {"row": 72, "column": 22}, "end_point": {"row": 72, "column": 23}}, {"id": 186, "type": "field_declaration", "text": "u8\tpeer_conn_closed : 1;", "parent": 170, "children": [187, 188, 189], "start_point": {"row": 73, "column": 1}, "end_point": {"row": 73, "column": 25}}, {"id": 187, "type": "type_identifier", "text": "u8", "parent": 186, "children": [], "start_point": {"row": 73, "column": 1}, "end_point": {"row": 73, "column": 3}}, {"id": 188, "type": "field_identifier", "text": "peer_conn_closed", "parent": 186, "children": [], "start_point": {"row": 73, "column": 4}, "end_point": {"row": 73, "column": 20}}, {"id": 189, "type": "bitfield_clause", "text": ": 1", "parent": 186, "children": [190], "start_point": {"row": 73, "column": 21}, "end_point": {"row": 73, "column": 24}}, {"id": 190, "type": "number_literal", "text": "1", "parent": 189, "children": [], "start_point": {"row": 73, "column": 23}, "end_point": {"row": 73, "column": 24}}, {"id": 191, "type": "field_declaration", "text": "u8\tpeer_done_writing : 1;", "parent": 170, "children": [192, 193, 194], "start_point": {"row": 74, "column": 1}, "end_point": {"row": 74, "column": 26}}, {"id": 192, "type": "type_identifier", "text": "u8", "parent": 191, "children": [], "start_point": {"row": 74, "column": 1}, "end_point": {"row": 74, "column": 3}}, {"id": 193, "type": "field_identifier", "text": "peer_done_writing", "parent": 191, "children": [], "start_point": {"row": 74, "column": 4}, "end_point": {"row": 74, "column": 21}}, {"id": 194, "type": "bitfield_clause", "text": ": 1", "parent": 191, "children": [195], "start_point": {"row": 74, "column": 22}, "end_point": {"row": 74, "column": 25}}, {"id": 195, "type": "number_literal", "text": "1", "parent": 194, "children": [], "start_point": {"row": 74, "column": 24}, "end_point": {"row": 74, "column": 25}}, {"id": 196, "type": "#endif", "text": "#endif", "parent": 144, "children": [], "start_point": {"row": 75, "column": 0}, "end_point": {"row": 75, "column": 6}}, {"id": 197, "type": "struct_specifier", "text": "struct smc_cdc_producer_flags {\n#if defined(__BIG_ENDIAN_BITFIELD)\n\tu8\twrite_blocked : 1;\t/* Writing Blocked, no rx buf space */\n\tu8\turg_data_pending : 1;\t/* Urgent Data Pending */\n\tu8\turg_data_present : 1;\t/* Urgent Data Present */\n\tu8\tcons_curs_upd_req : 1;\t/* cursor update requested */\n\tu8\tfailover_validation : 1;/* message replay due to failover */\n\tu8\treserved : 3;\n#elif defined(__LITTLE_ENDIAN_BITFIELD)\n\tu8\treserved : 3;\n\tu8\tfailover_validation : 1;\n\tu8\tcons_curs_upd_req : 1;\n\tu8\turg_data_present : 1;\n\tu8\turg_data_pending : 1;\n\tu8\twrite_blocked : 1;\n#endif\n}", "parent": 0, "children": [198, 199], "start_point": {"row": 78, "column": 0}, "end_point": {"row": 94, "column": 1}}, {"id": 198, "type": "struct", "text": "struct", "parent": 197, "children": [], "start_point": {"row": 78, "column": 0}, "end_point": {"row": 78, "column": 6}}, {"id": 199, "type": "type_identifier", "text": "smc_cdc_producer_flags", "parent": 197, "children": [], "start_point": {"row": 78, "column": 7}, "end_point": {"row": 78, "column": 29}}, {"id": 200, "type": "preproc_if", "text": "#if defined(__BIG_ENDIAN_BITFIELD)\n\tu8\twrite_blocked : 1;\t/* Writing Blocked, no rx buf space */\n\tu8\turg_data_pending : 1;\t/* Urgent Data Pending */\n\tu8\turg_data_present : 1;\t/* Urgent Data Present */\n\tu8\tcons_curs_upd_req : 1;\t/* cursor update requested */\n\tu8\tfailover_validation : 1;/* message replay due to failover */\n\tu8\treserved : 3;\n#elif defined(__LITTLE_ENDIAN_BITFIELD)\n\tu8\treserved : 3;\n\tu8\tfailover_validation : 1;\n\tu8\tcons_curs_upd_req : 1;\n\tu8\turg_data_present : 1;\n\tu8\turg_data_pending : 1;\n\tu8\twrite_blocked : 1;\n#endif", "parent": 197, "children": [201, 202, 205, 206, 211, 216, 221, 226, 231, 236, 272], "start_point": {"row": 79, "column": 0}, "end_point": {"row": 93, "column": 6}}, {"id": 201, "type": "#if", "text": "#if", "parent": 200, "children": [], "start_point": {"row": 79, "column": 0}, "end_point": {"row": 79, "column": 3}}, {"id": 202, "type": "preproc_defined", "text": "defined(__BIG_ENDIAN_BITFIELD)", "parent": 200, "children": [203, 204], "start_point": {"row": 79, "column": 4}, "end_point": {"row": 79, "column": 34}}, {"id": 203, "type": "defined", "text": "defined", "parent": 202, "children": [], "start_point": {"row": 79, "column": 4}, "end_point": {"row": 79, "column": 11}}, {"id": 204, "type": "identifier", "text": "__BIG_ENDIAN_BITFIELD", "parent": 202, "children": [], "start_point": {"row": 79, "column": 12}, "end_point": {"row": 79, "column": 33}}, {"id": 205, "type": "\n", "text": "\n", "parent": 200, "children": [], "start_point": {"row": 79, "column": 34}, "end_point": {"row": 80, "column": 0}}, {"id": 206, "type": "field_declaration", "text": "u8\twrite_blocked : 1;", "parent": 200, "children": [207, 208, 209], "start_point": {"row": 80, "column": 1}, "end_point": {"row": 80, "column": 22}}, {"id": 207, "type": "type_identifier", "text": "u8", "parent": 206, "children": [], "start_point": {"row": 80, "column": 1}, "end_point": {"row": 80, "column": 3}}, {"id": 208, "type": "field_identifier", "text": "write_blocked", "parent": 206, "children": [], "start_point": {"row": 80, "column": 4}, "end_point": {"row": 80, "column": 17}}, {"id": 209, "type": "bitfield_clause", "text": ": 1", "parent": 206, "children": [210], "start_point": {"row": 80, "column": 18}, "end_point": {"row": 80, "column": 21}}, {"id": 210, "type": "number_literal", "text": "1", "parent": 209, "children": [], "start_point": {"row": 80, "column": 20}, "end_point": {"row": 80, "column": 21}}, {"id": 211, "type": "field_declaration", "text": "u8\turg_data_pending : 1;", "parent": 200, "children": [212, 213, 214], "start_point": {"row": 81, "column": 1}, "end_point": {"row": 81, "column": 25}}, {"id": 212, "type": "type_identifier", "text": "u8", "parent": 211, "children": [], "start_point": {"row": 81, "column": 1}, "end_point": {"row": 81, "column": 3}}, {"id": 213, "type": "field_identifier", "text": "urg_data_pending", "parent": 211, "children": [], "start_point": {"row": 81, "column": 4}, "end_point": {"row": 81, "column": 20}}, {"id": 214, "type": "bitfield_clause", "text": ": 1", "parent": 211, "children": [215], "start_point": {"row": 81, "column": 21}, "end_point": {"row": 81, "column": 24}}, {"id": 215, "type": "number_literal", "text": "1", "parent": 214, "children": [], "start_point": {"row": 81, "column": 23}, "end_point": {"row": 81, "column": 24}}, {"id": 216, "type": "field_declaration", "text": "u8\turg_data_present : 1;", "parent": 200, "children": [217, 218, 219], "start_point": {"row": 82, "column": 1}, "end_point": {"row": 82, "column": 25}}, {"id": 217, "type": "type_identifier", "text": "u8", "parent": 216, "children": [], "start_point": {"row": 82, "column": 1}, "end_point": {"row": 82, "column": 3}}, {"id": 218, "type": "field_identifier", "text": "urg_data_present", "parent": 216, "children": [], "start_point": {"row": 82, "column": 4}, "end_point": {"row": 82, "column": 20}}, {"id": 219, "type": "bitfield_clause", "text": ": 1", "parent": 216, "children": [220], "start_point": {"row": 82, "column": 21}, "end_point": {"row": 82, "column": 24}}, {"id": 220, "type": "number_literal", "text": "1", "parent": 219, "children": [], "start_point": {"row": 82, "column": 23}, "end_point": {"row": 82, "column": 24}}, {"id": 221, "type": "field_declaration", "text": "u8\tcons_curs_upd_req : 1;", "parent": 200, "children": [222, 223, 224], "start_point": {"row": 83, "column": 1}, "end_point": {"row": 83, "column": 26}}, {"id": 222, "type": "type_identifier", "text": "u8", "parent": 221, "children": [], "start_point": {"row": 83, "column": 1}, "end_point": {"row": 83, "column": 3}}, {"id": 223, "type": "field_identifier", "text": "cons_curs_upd_req", "parent": 221, "children": [], "start_point": {"row": 83, "column": 4}, "end_point": {"row": 83, "column": 21}}, {"id": 224, "type": "bitfield_clause", "text": ": 1", "parent": 221, "children": [225], "start_point": {"row": 83, "column": 22}, "end_point": {"row": 83, "column": 25}}, {"id": 225, "type": "number_literal", "text": "1", "parent": 224, "children": [], "start_point": {"row": 83, "column": 24}, "end_point": {"row": 83, "column": 25}}, {"id": 226, "type": "field_declaration", "text": "u8\tfailover_validation : 1;", "parent": 200, "children": [227, 228, 229], "start_point": {"row": 84, "column": 1}, "end_point": {"row": 84, "column": 28}}, {"id": 227, "type": "type_identifier", "text": "u8", "parent": 226, "children": [], "start_point": {"row": 84, "column": 1}, "end_point": {"row": 84, "column": 3}}, {"id": 228, "type": "field_identifier", "text": "failover_validation", "parent": 226, "children": [], "start_point": {"row": 84, "column": 4}, "end_point": {"row": 84, "column": 23}}, {"id": 229, "type": "bitfield_clause", "text": ": 1", "parent": 226, "children": [230], "start_point": {"row": 84, "column": 24}, "end_point": {"row": 84, "column": 27}}, {"id": 230, "type": "number_literal", "text": "1", "parent": 229, "children": [], "start_point": {"row": 84, "column": 26}, "end_point": {"row": 84, "column": 27}}, {"id": 231, "type": "field_declaration", "text": "u8\treserved : 3;", "parent": 200, "children": [232, 233, 234], "start_point": {"row": 85, "column": 1}, "end_point": {"row": 85, "column": 17}}, {"id": 232, "type": "type_identifier", "text": "u8", "parent": 231, "children": [], "start_point": {"row": 85, "column": 1}, "end_point": {"row": 85, "column": 3}}, {"id": 233, "type": "field_identifier", "text": "reserved", "parent": 231, "children": [], "start_point": {"row": 85, "column": 4}, "end_point": {"row": 85, "column": 12}}, {"id": 234, "type": "bitfield_clause", "text": ": 3", "parent": 231, "children": [235], "start_point": {"row": 85, "column": 13}, "end_point": {"row": 85, "column": 16}}, {"id": 235, "type": "number_literal", "text": "3", "parent": 234, "children": [], "start_point": {"row": 85, "column": 15}, "end_point": {"row": 85, "column": 16}}, {"id": 236, "type": "preproc_elif", "text": "#elif defined(__LITTLE_ENDIAN_BITFIELD)\n\tu8\treserved : 3;\n\tu8\tfailover_validation : 1;\n\tu8\tcons_curs_upd_req : 1;\n\tu8\turg_data_present : 1;\n\tu8\turg_data_pending : 1;\n\tu8\twrite_blocked : 1;", "parent": 200, "children": [237, 238, 241, 242, 247, 252, 257, 262, 267], "start_point": {"row": 86, "column": 0}, "end_point": {"row": 92, "column": 22}}, {"id": 237, "type": "#elif", "text": "#elif", "parent": 236, "children": [], "start_point": {"row": 86, "column": 0}, "end_point": {"row": 86, "column": 5}}, {"id": 238, "type": "preproc_defined", "text": "defined(__LITTLE_ENDIAN_BITFIELD)", "parent": 236, "children": [239, 240], "start_point": {"row": 86, "column": 6}, "end_point": {"row": 86, "column": 39}}, {"id": 239, "type": "defined", "text": "defined", "parent": 238, "children": [], "start_point": {"row": 86, "column": 6}, "end_point": {"row": 86, "column": 13}}, {"id": 240, "type": "identifier", "text": "__LITTLE_ENDIAN_BITFIELD", "parent": 238, "children": [], "start_point": {"row": 86, "column": 14}, "end_point": {"row": 86, "column": 38}}, {"id": 241, "type": "\n", "text": "\n", "parent": 236, "children": [], "start_point": {"row": 86, "column": 39}, "end_point": {"row": 87, "column": 0}}, {"id": 242, "type": "field_declaration", "text": "u8\treserved : 3;", "parent": 236, "children": [243, 244, 245], "start_point": {"row": 87, "column": 1}, "end_point": {"row": 87, "column": 17}}, {"id": 243, "type": "type_identifier", "text": "u8", "parent": 242, "children": [], "start_point": {"row": 87, "column": 1}, "end_point": {"row": 87, "column": 3}}, {"id": 244, "type": "field_identifier", "text": "reserved", "parent": 242, "children": [], "start_point": {"row": 87, "column": 4}, "end_point": {"row": 87, "column": 12}}, {"id": 245, "type": "bitfield_clause", "text": ": 3", "parent": 242, "children": [246], "start_point": {"row": 87, "column": 13}, "end_point": {"row": 87, "column": 16}}, {"id": 246, "type": "number_literal", "text": "3", "parent": 245, "children": [], "start_point": {"row": 87, "column": 15}, "end_point": {"row": 87, "column": 16}}, {"id": 247, "type": "field_declaration", "text": "u8\tfailover_validation : 1;", "parent": 236, "children": [248, 249, 250], "start_point": {"row": 88, "column": 1}, "end_point": {"row": 88, "column": 28}}, {"id": 248, "type": "type_identifier", "text": "u8", "parent": 247, "children": [], "start_point": {"row": 88, "column": 1}, "end_point": {"row": 88, "column": 3}}, {"id": 249, "type": "field_identifier", "text": "failover_validation", "parent": 247, "children": [], "start_point": {"row": 88, "column": 4}, "end_point": {"row": 88, "column": 23}}, {"id": 250, "type": "bitfield_clause", "text": ": 1", "parent": 247, "children": [251], "start_point": {"row": 88, "column": 24}, "end_point": {"row": 88, "column": 27}}, {"id": 251, "type": "number_literal", "text": "1", "parent": 250, "children": [], "start_point": {"row": 88, "column": 26}, "end_point": {"row": 88, "column": 27}}, {"id": 252, "type": "field_declaration", "text": "u8\tcons_curs_upd_req : 1;", "parent": 236, "children": [253, 254, 255], "start_point": {"row": 89, "column": 1}, "end_point": {"row": 89, "column": 26}}, {"id": 253, "type": "type_identifier", "text": "u8", "parent": 252, "children": [], "start_point": {"row": 89, "column": 1}, "end_point": {"row": 89, "column": 3}}, {"id": 254, "type": "field_identifier", "text": "cons_curs_upd_req", "parent": 252, "children": [], "start_point": {"row": 89, "column": 4}, "end_point": {"row": 89, "column": 21}}, {"id": 255, "type": "bitfield_clause", "text": ": 1", "parent": 252, "children": [256], "start_point": {"row": 89, "column": 22}, "end_point": {"row": 89, "column": 25}}, {"id": 256, "type": "number_literal", "text": "1", "parent": 255, "children": [], "start_point": {"row": 89, "column": 24}, "end_point": {"row": 89, "column": 25}}, {"id": 257, "type": "field_declaration", "text": "u8\turg_data_present : 1;", "parent": 236, "children": [258, 259, 260], "start_point": {"row": 90, "column": 1}, "end_point": {"row": 90, "column": 25}}, {"id": 258, "type": "type_identifier", "text": "u8", "parent": 257, "children": [], "start_point": {"row": 90, "column": 1}, "end_point": {"row": 90, "column": 3}}, {"id": 259, "type": "field_identifier", "text": "urg_data_present", "parent": 257, "children": [], "start_point": {"row": 90, "column": 4}, "end_point": {"row": 90, "column": 20}}, {"id": 260, "type": "bitfield_clause", "text": ": 1", "parent": 257, "children": [261], "start_point": {"row": 90, "column": 21}, "end_point": {"row": 90, "column": 24}}, {"id": 261, "type": "number_literal", "text": "1", "parent": 260, "children": [], "start_point": {"row": 90, "column": 23}, "end_point": {"row": 90, "column": 24}}, {"id": 262, "type": "field_declaration", "text": "u8\turg_data_pending : 1;", "parent": 236, "children": [263, 264, 265], "start_point": {"row": 91, "column": 1}, "end_point": {"row": 91, "column": 25}}, {"id": 263, "type": "type_identifier", "text": "u8", "parent": 262, "children": [], "start_point": {"row": 91, "column": 1}, "end_point": {"row": 91, "column": 3}}, {"id": 264, "type": "field_identifier", "text": "urg_data_pending", "parent": 262, "children": [], "start_point": {"row": 91, "column": 4}, "end_point": {"row": 91, "column": 20}}, {"id": 265, "type": "bitfield_clause", "text": ": 1", "parent": 262, "children": [266], "start_point": {"row": 91, "column": 21}, "end_point": {"row": 91, "column": 24}}, {"id": 266, "type": "number_literal", "text": "1", "parent": 265, "children": [], "start_point": {"row": 91, "column": 23}, "end_point": {"row": 91, "column": 24}}, {"id": 267, "type": "field_declaration", "text": "u8\twrite_blocked : 1;", "parent": 236, "children": [268, 269, 270], "start_point": {"row": 92, "column": 1}, "end_point": {"row": 92, "column": 22}}, {"id": 268, "type": "type_identifier", "text": "u8", "parent": 267, "children": [], "start_point": {"row": 92, "column": 1}, "end_point": {"row": 92, "column": 3}}, {"id": 269, "type": "field_identifier", "text": "write_blocked", "parent": 267, "children": [], "start_point": {"row": 92, "column": 4}, "end_point": {"row": 92, "column": 17}}, {"id": 270, "type": "bitfield_clause", "text": ": 1", "parent": 267, "children": [271], "start_point": {"row": 92, "column": 18}, "end_point": {"row": 92, "column": 21}}, {"id": 271, "type": "number_literal", "text": "1", "parent": 270, "children": [], "start_point": {"row": 92, "column": 20}, "end_point": {"row": 92, "column": 21}}, {"id": 272, "type": "#endif", "text": "#endif", "parent": 200, "children": [], "start_point": {"row": 93, "column": 0}, "end_point": {"row": 93, "column": 6}}, {"id": 273, "type": "declaration", "text": "union smc_host_cursor {\t/* SMC cursor - an offset in an RMBE */\n\tstruct {\n\t\tu16\treserved;\n\t\tu16\twrap;\t\t/* window wrap sequence number */\n\t\tu32\tcount;\t\t/* cursor (= offset) part */\n\t};\n#ifdef KERNEL_HAS_ATOMIC64\n\tatomic64_t\t\tacurs;\t/* for atomic processing */\n#else\n\tu64\t\t\tacurs;\t/* for atomic processing */\n#endif\n} __aligned(8);", "parent": 0, "children": [274, 301], "start_point": {"row": 97, "column": 0}, "end_point": {"row": 108, "column": 15}}, {"id": 274, "type": "union_specifier", "text": "union smc_host_cursor {\t/* SMC cursor - an offset in an RMBE */\n\tstruct {\n\t\tu16\treserved;\n\t\tu16\twrap;\t\t/* window wrap sequence number */\n\t\tu32\tcount;\t\t/* cursor (= offset) part */\n\t};\n#ifdef KERNEL_HAS_ATOMIC64\n\tatomic64_t\t\tacurs;\t/* for atomic processing */\n#else\n\tu64\t\t\tacurs;\t/* for atomic processing */\n#endif\n}", "parent": 273, "children": [275, 276], "start_point": {"row": 97, "column": 0}, "end_point": {"row": 108, "column": 1}}, {"id": 275, "type": "union", "text": "union", "parent": 274, "children": [], "start_point": {"row": 97, "column": 0}, "end_point": {"row": 97, "column": 5}}, {"id": 276, "type": "type_identifier", "text": "smc_host_cursor", "parent": 274, "children": [], "start_point": {"row": 97, "column": 6}, "end_point": {"row": 97, "column": 21}}, {"id": 277, "type": "field_declaration", "text": "struct {\n\t\tu16\treserved;\n\t\tu16\twrap;\t\t/* window wrap sequence number */\n\t\tu32\tcount;\t\t/* cursor (= offset) part */\n\t};", "parent": 274, "children": [278], "start_point": {"row": 98, "column": 1}, "end_point": {"row": 102, "column": 3}}, {"id": 278, "type": "struct_specifier", "text": "struct {\n\t\tu16\treserved;\n\t\tu16\twrap;\t\t/* window wrap sequence number */\n\t\tu32\tcount;\t\t/* cursor (= offset) part */\n\t}", "parent": 277, "children": [279], "start_point": {"row": 98, "column": 1}, "end_point": {"row": 102, "column": 2}}, {"id": 279, "type": "struct", "text": "struct", "parent": 278, "children": [], "start_point": {"row": 98, "column": 1}, "end_point": {"row": 98, "column": 7}}, {"id": 280, "type": "field_declaration", "text": "u16\treserved;", "parent": 278, "children": [281, 282], "start_point": {"row": 99, "column": 2}, "end_point": {"row": 99, "column": 15}}, {"id": 281, "type": "type_identifier", "text": "u16", "parent": 280, "children": [], "start_point": {"row": 99, "column": 2}, "end_point": {"row": 99, "column": 5}}, {"id": 282, "type": "field_identifier", "text": "reserved", "parent": 280, "children": [], "start_point": {"row": 99, "column": 6}, "end_point": {"row": 99, "column": 14}}, {"id": 283, "type": "field_declaration", "text": "u16\twrap;", "parent": 278, "children": [284, 285], "start_point": {"row": 100, "column": 2}, "end_point": {"row": 100, "column": 11}}, {"id": 284, "type": "type_identifier", "text": "u16", "parent": 283, "children": [], "start_point": {"row": 100, "column": 2}, "end_point": {"row": 100, "column": 5}}, {"id": 285, "type": "field_identifier", "text": "wrap", "parent": 283, "children": [], "start_point": {"row": 100, "column": 6}, "end_point": {"row": 100, "column": 10}}, {"id": 286, "type": "field_declaration", "text": "u32\tcount;", "parent": 278, "children": [287, 288], "start_point": {"row": 101, "column": 2}, "end_point": {"row": 101, "column": 12}}, {"id": 287, "type": "type_identifier", "text": "u32", "parent": 286, "children": [], "start_point": {"row": 101, "column": 2}, "end_point": {"row": 101, "column": 5}}, {"id": 288, "type": "field_identifier", "text": "count", "parent": 286, "children": [], "start_point": {"row": 101, "column": 6}, "end_point": {"row": 101, "column": 11}}, {"id": 289, "type": "preproc_ifdef", "text": "#ifdef KERNEL_HAS_ATOMIC64\n\tatomic64_t\t\tacurs;\t/* for atomic processing */\n#else\n\tu64\t\t\tacurs;\t/* for atomic processing */\n#endif", "parent": 274, "children": [290, 291, 292, 295, 300], "start_point": {"row": 103, "column": 0}, "end_point": {"row": 107, "column": 6}}, {"id": 290, "type": "#ifdef", "text": "#ifdef", "parent": 289, "children": [], "start_point": {"row": 103, "column": 0}, "end_point": {"row": 103, "column": 6}}, {"id": 291, "type": "identifier", "text": "KERNEL_HAS_ATOMIC64", "parent": 289, "children": [], "start_point": {"row": 103, "column": 7}, "end_point": {"row": 103, "column": 26}}, {"id": 292, "type": "field_declaration", "text": "atomic64_t\t\tacurs;", "parent": 289, "children": [293, 294], "start_point": {"row": 104, "column": 1}, "end_point": {"row": 104, "column": 19}}, {"id": 293, "type": "type_identifier", "text": "atomic64_t", "parent": 292, "children": [], "start_point": {"row": 104, "column": 1}, "end_point": {"row": 104, "column": 11}}, {"id": 294, "type": "field_identifier", "text": "acurs", "parent": 292, "children": [], "start_point": {"row": 104, "column": 13}, "end_point": {"row": 104, "column": 18}}, {"id": 295, "type": "preproc_else", "text": "#else\n\tu64\t\t\tacurs;", "parent": 289, "children": [296, 297], "start_point": {"row": 105, "column": 0}, "end_point": {"row": 106, "column": 13}}, {"id": 296, "type": "#else", "text": "#else", "parent": 295, "children": [], "start_point": {"row": 105, "column": 0}, "end_point": {"row": 105, "column": 5}}, {"id": 297, "type": "field_declaration", "text": "u64\t\t\tacurs;", "parent": 295, "children": [298, 299], "start_point": {"row": 106, "column": 1}, "end_point": {"row": 106, "column": 13}}, {"id": 298, "type": "type_identifier", "text": "u64", "parent": 297, "children": [], "start_point": {"row": 106, "column": 1}, "end_point": {"row": 106, "column": 4}}, {"id": 299, "type": "field_identifier", "text": "acurs", "parent": 297, "children": [], "start_point": {"row": 106, "column": 7}, "end_point": {"row": 106, "column": 12}}, {"id": 300, "type": "#endif", "text": "#endif", "parent": 289, "children": [], "start_point": {"row": 107, "column": 0}, "end_point": {"row": 107, "column": 6}}, {"id": 301, "type": "function_declarator", "text": "__aligned(8)", "parent": 273, "children": [302, 303], "start_point": {"row": 108, "column": 2}, "end_point": {"row": 108, "column": 14}}, {"id": 302, "type": "identifier", "text": "__aligned", "parent": 301, "children": [], "start_point": {"row": 108, "column": 2}, "end_point": {"row": 108, "column": 11}}, {"id": 303, "type": "parameter_list", "text": "(8)", "parent": 301, "children": [304], "start_point": {"row": 108, "column": 11}, "end_point": {"row": 108, "column": 14}}, {"id": 304, "type": "ERROR", "text": "8", "parent": 303, "children": [305], "start_point": {"row": 108, "column": 12}, "end_point": {"row": 108, "column": 13}}, {"id": 305, "type": "number_literal", "text": "8", "parent": 304, "children": [], "start_point": {"row": 108, "column": 12}, "end_point": {"row": 108, "column": 13}}, {"id": 306, "type": "declaration", "text": "struct smc_host_cdc_msg {\t\t/* Connection Data Control message */\n\tstruct smc_wr_rx_hdr\t\tcommon; /* .type = 0xFE */\n\tu8\t\t\t\tlen;\t/* length = 44 */\n\tu16\t\t\t\tseqno;\t/* connection seq # */\n\tu32\t\t\t\ttoken;\t/* alert_token */\n\tunion smc_host_cursor\t\tprod;\t\t/* producer cursor */\n\tunion smc_host_cursor\t\tcons;\t\t/* consumer cursor,\n\t\t\t\t\t\t\t * piggy backed \"ack\"\n\t\t\t\t\t\t\t */\n\tstruct smc_cdc_producer_flags\tprod_flags;\t/* conn. tx/rx status */\n\tstruct smc_cdc_conn_state_flags\tconn_state_flags; /* peer conn. status*/\n\tu8\t\t\t\treserved[18];\n} __aligned(8);", "parent": 0, "children": [307, 349], "start_point": {"row": 111, "column": 0}, "end_point": {"row": 123, "column": 15}}, {"id": 307, "type": "struct_specifier", "text": "struct smc_host_cdc_msg {\t\t/* Connection Data Control message */\n\tstruct smc_wr_rx_hdr\t\tcommon; /* .type = 0xFE */\n\tu8\t\t\t\tlen;\t/* length = 44 */\n\tu16\t\t\t\tseqno;\t/* connection seq # */\n\tu32\t\t\t\ttoken;\t/* alert_token */\n\tunion smc_host_cursor\t\tprod;\t\t/* producer cursor */\n\tunion smc_host_cursor\t\tcons;\t\t/* consumer cursor,\n\t\t\t\t\t\t\t * piggy backed \"ack\"\n\t\t\t\t\t\t\t */\n\tstruct smc_cdc_producer_flags\tprod_flags;\t/* conn. tx/rx status */\n\tstruct smc_cdc_conn_state_flags\tconn_state_flags; /* peer conn. status*/\n\tu8\t\t\t\treserved[18];\n}", "parent": 306, "children": [308, 309], "start_point": {"row": 111, "column": 0}, "end_point": {"row": 123, "column": 1}}, {"id": 308, "type": "struct", "text": "struct", "parent": 307, "children": [], "start_point": {"row": 111, "column": 0}, "end_point": {"row": 111, "column": 6}}, {"id": 309, "type": "type_identifier", "text": "smc_host_cdc_msg", "parent": 307, "children": [], "start_point": {"row": 111, "column": 7}, "end_point": {"row": 111, "column": 23}}, {"id": 310, "type": "field_declaration", "text": "struct smc_wr_rx_hdr\t\tcommon;", "parent": 307, "children": [311, 314], "start_point": {"row": 112, "column": 1}, "end_point": {"row": 112, "column": 30}}, {"id": 311, "type": "struct_specifier", "text": "struct smc_wr_rx_hdr", "parent": 310, "children": [312, 313], "start_point": {"row": 112, "column": 1}, "end_point": {"row": 112, "column": 21}}, {"id": 312, "type": "struct", "text": "struct", "parent": 311, "children": [], "start_point": {"row": 112, "column": 1}, "end_point": {"row": 112, "column": 7}}, {"id": 313, "type": "type_identifier", "text": "smc_wr_rx_hdr", "parent": 311, "children": [], "start_point": {"row": 112, "column": 8}, "end_point": {"row": 112, "column": 21}}, {"id": 314, "type": "field_identifier", "text": "common", "parent": 310, "children": [], "start_point": {"row": 112, "column": 23}, "end_point": {"row": 112, "column": 29}}, {"id": 315, "type": "field_declaration", "text": "u8\t\t\t\tlen;", "parent": 307, "children": [316, 317], "start_point": {"row": 113, "column": 1}, "end_point": {"row": 113, "column": 11}}, {"id": 316, "type": "type_identifier", "text": "u8", "parent": 315, "children": [], "start_point": {"row": 113, "column": 1}, "end_point": {"row": 113, "column": 3}}, {"id": 317, "type": "field_identifier", "text": "len", "parent": 315, "children": [], "start_point": {"row": 113, "column": 7}, "end_point": {"row": 113, "column": 10}}, {"id": 318, "type": "field_declaration", "text": "u16\t\t\t\tseqno;", "parent": 307, "children": [319, 320], "start_point": {"row": 114, "column": 1}, "end_point": {"row": 114, "column": 14}}, {"id": 319, "type": "type_identifier", "text": "u16", "parent": 318, "children": [], "start_point": {"row": 114, "column": 1}, "end_point": {"row": 114, "column": 4}}, {"id": 320, "type": "field_identifier", "text": "seqno", "parent": 318, "children": [], "start_point": {"row": 114, "column": 8}, "end_point": {"row": 114, "column": 13}}, {"id": 321, "type": "field_declaration", "text": "u32\t\t\t\ttoken;", "parent": 307, "children": [322, 323], "start_point": {"row": 115, "column": 1}, "end_point": {"row": 115, "column": 14}}, {"id": 322, "type": "type_identifier", "text": "u32", "parent": 321, "children": [], "start_point": {"row": 115, "column": 1}, "end_point": {"row": 115, "column": 4}}, {"id": 323, "type": "field_identifier", "text": "token", "parent": 321, "children": [], "start_point": {"row": 115, "column": 8}, "end_point": {"row": 115, "column": 13}}, {"id": 324, "type": "field_declaration", "text": "union smc_host_cursor\t\tprod;", "parent": 307, "children": [325, 328], "start_point": {"row": 116, "column": 1}, "end_point": {"row": 116, "column": 29}}, {"id": 325, "type": "union_specifier", "text": "union smc_host_cursor", "parent": 324, "children": [326, 327], "start_point": {"row": 116, "column": 1}, "end_point": {"row": 116, "column": 22}}, {"id": 326, "type": "union", "text": "union", "parent": 325, "children": [], "start_point": {"row": 116, "column": 1}, "end_point": {"row": 116, "column": 6}}, {"id": 327, "type": "type_identifier", "text": "smc_host_cursor", "parent": 325, "children": [], "start_point": {"row": 116, "column": 7}, "end_point": {"row": 116, "column": 22}}, {"id": 328, "type": "field_identifier", "text": "prod", "parent": 324, "children": [], "start_point": {"row": 116, "column": 24}, "end_point": {"row": 116, "column": 28}}, {"id": 329, "type": "field_declaration", "text": "union smc_host_cursor\t\tcons;", "parent": 307, "children": [330, 333], "start_point": {"row": 117, "column": 1}, "end_point": {"row": 117, "column": 29}}, {"id": 330, "type": "union_specifier", "text": "union smc_host_cursor", "parent": 329, "children": [331, 332], "start_point": {"row": 117, "column": 1}, "end_point": {"row": 117, "column": 22}}, {"id": 331, "type": "union", "text": "union", "parent": 330, "children": [], "start_point": {"row": 117, "column": 1}, "end_point": {"row": 117, "column": 6}}, {"id": 332, "type": "type_identifier", "text": "smc_host_cursor", "parent": 330, "children": [], "start_point": {"row": 117, "column": 7}, "end_point": {"row": 117, "column": 22}}, {"id": 333, "type": "field_identifier", "text": "cons", "parent": 329, "children": [], "start_point": {"row": 117, "column": 24}, "end_point": {"row": 117, "column": 28}}, {"id": 334, "type": "field_declaration", "text": "struct smc_cdc_producer_flags\tprod_flags;", "parent": 307, "children": [335, 338], "start_point": {"row": 120, "column": 1}, "end_point": {"row": 120, "column": 42}}, {"id": 335, "type": "struct_specifier", "text": "struct smc_cdc_producer_flags", "parent": 334, "children": [336, 337], "start_point": {"row": 120, "column": 1}, "end_point": {"row": 120, "column": 30}}, {"id": 336, "type": "struct", "text": "struct", "parent": 335, "children": [], "start_point": {"row": 120, "column": 1}, "end_point": {"row": 120, "column": 7}}, {"id": 337, "type": "type_identifier", "text": "smc_cdc_producer_flags", "parent": 335, "children": [], "start_point": {"row": 120, "column": 8}, "end_point": {"row": 120, "column": 30}}, {"id": 338, "type": "field_identifier", "text": "prod_flags", "parent": 334, "children": [], "start_point": {"row": 120, "column": 31}, "end_point": {"row": 120, "column": 41}}, {"id": 339, "type": "field_declaration", "text": "struct smc_cdc_conn_state_flags\tconn_state_flags;", "parent": 307, "children": [340, 343], "start_point": {"row": 121, "column": 1}, "end_point": {"row": 121, "column": 50}}, {"id": 340, "type": "struct_specifier", "text": "struct smc_cdc_conn_state_flags", "parent": 339, "children": [341, 342], "start_point": {"row": 121, "column": 1}, "end_point": {"row": 121, "column": 32}}, {"id": 341, "type": "struct", "text": "struct", "parent": 340, "children": [], "start_point": {"row": 121, "column": 1}, "end_point": {"row": 121, "column": 7}}, {"id": 342, "type": "type_identifier", "text": "smc_cdc_conn_state_flags", "parent": 340, "children": [], "start_point": {"row": 121, "column": 8}, "end_point": {"row": 121, "column": 32}}, {"id": 343, "type": "field_identifier", "text": "conn_state_flags", "parent": 339, "children": [], "start_point": {"row": 121, "column": 33}, "end_point": {"row": 121, "column": 49}}, {"id": 344, "type": "field_declaration", "text": "u8\t\t\t\treserved[18];", "parent": 307, "children": [345, 346], "start_point": {"row": 122, "column": 1}, "end_point": {"row": 122, "column": 20}}, {"id": 345, "type": "type_identifier", "text": "u8", "parent": 344, "children": [], "start_point": {"row": 122, "column": 1}, "end_point": {"row": 122, "column": 3}}, {"id": 346, "type": "array_declarator", "text": "reserved[18]", "parent": 344, "children": [347, 348], "start_point": {"row": 122, "column": 7}, "end_point": {"row": 122, "column": 19}}, {"id": 347, "type": "field_identifier", "text": "reserved", "parent": 346, "children": [], "start_point": {"row": 122, "column": 7}, "end_point": {"row": 122, "column": 15}}, {"id": 348, "type": "number_literal", "text": "18", "parent": 346, "children": [], "start_point": {"row": 122, "column": 16}, "end_point": {"row": 122, "column": 18}}, {"id": 349, "type": "function_declarator", "text": "__aligned(8)", "parent": 306, "children": [350, 351], "start_point": {"row": 123, "column": 2}, "end_point": {"row": 123, "column": 14}}, {"id": 350, "type": "identifier", "text": "__aligned", "parent": 349, "children": [], "start_point": {"row": 123, "column": 2}, "end_point": {"row": 123, "column": 11}}, {"id": 351, "type": "parameter_list", "text": "(8)", "parent": 349, "children": [352], "start_point": {"row": 123, "column": 11}, "end_point": {"row": 123, "column": 14}}, {"id": 352, "type": "ERROR", "text": "8", "parent": 351, "children": [353], "start_point": {"row": 123, "column": 12}, "end_point": {"row": 123, "column": 13}}, {"id": 353, "type": "number_literal", "text": "8", "parent": 352, "children": [], "start_point": {"row": 123, "column": 12}, "end_point": {"row": 123, "column": 13}}, {"id": 354, "type": "enum_specifier", "text": "enum smc_urg_state {\n\tSMC_URG_VALID\t= 1,\t\t\t/* data present */\n\tSMC_URG_NOTYET\t= 2,\t\t\t/* data pending */\n\tSMC_URG_READ\t= 3,\t\t\t/* data was already read */\n}", "parent": 0, "children": [355, 356, 357], "start_point": {"row": 125, "column": 0}, "end_point": {"row": 129, "column": 1}}, {"id": 355, "type": "enum", "text": "enum", "parent": 354, "children": [], "start_point": {"row": 125, "column": 0}, "end_point": {"row": 125, "column": 4}}, {"id": 356, "type": "type_identifier", "text": "smc_urg_state", "parent": 354, "children": [], "start_point": {"row": 125, "column": 5}, "end_point": {"row": 125, "column": 18}}, {"id": 357, "type": "enumerator_list", "text": "{\n\tSMC_URG_VALID\t= 1,\t\t\t/* data present */\n\tSMC_URG_NOTYET\t= 2,\t\t\t/* data pending */\n\tSMC_URG_READ\t= 3,\t\t\t/* data was already read */\n}", "parent": 354, "children": [358, 362, 366], "start_point": {"row": 125, "column": 19}, "end_point": {"row": 129, "column": 1}}, {"id": 358, "type": "enumerator", "text": "SMC_URG_VALID\t= 1", "parent": 357, "children": [359, 360, 361], "start_point": {"row": 126, "column": 1}, "end_point": {"row": 126, "column": 18}}, {"id": 359, "type": "identifier", "text": "SMC_URG_VALID", "parent": 358, "children": [], "start_point": {"row": 126, "column": 1}, "end_point": {"row": 126, "column": 14}}, {"id": 360, "type": "=", "text": "=", "parent": 358, "children": [], "start_point": {"row": 126, "column": 15}, "end_point": {"row": 126, "column": 16}}, {"id": 361, "type": "number_literal", "text": "1", "parent": 358, "children": [], "start_point": {"row": 126, "column": 17}, "end_point": {"row": 126, "column": 18}}, {"id": 362, "type": "enumerator", "text": "SMC_URG_NOTYET\t= 2", "parent": 357, "children": [363, 364, 365], "start_point": {"row": 127, "column": 1}, "end_point": {"row": 127, "column": 19}}, {"id": 363, "type": "identifier", "text": "SMC_URG_NOTYET", "parent": 362, "children": [], "start_point": {"row": 127, "column": 1}, "end_point": {"row": 127, "column": 15}}, {"id": 364, "type": "=", "text": "=", "parent": 362, "children": [], "start_point": {"row": 127, "column": 16}, "end_point": {"row": 127, "column": 17}}, {"id": 365, "type": "number_literal", "text": "2", "parent": 362, "children": [], "start_point": {"row": 127, "column": 18}, "end_point": {"row": 127, "column": 19}}, {"id": 366, "type": "enumerator", "text": "SMC_URG_READ\t= 3", "parent": 357, "children": [367, 368, 369], "start_point": {"row": 128, "column": 1}, "end_point": {"row": 128, "column": 17}}, {"id": 367, "type": "identifier", "text": "SMC_URG_READ", "parent": 366, "children": [], "start_point": {"row": 128, "column": 1}, "end_point": {"row": 128, "column": 13}}, {"id": 368, "type": "=", "text": "=", "parent": 366, "children": [], "start_point": {"row": 128, "column": 14}, "end_point": {"row": 128, "column": 15}}, {"id": 369, "type": "number_literal", "text": "3", "parent": 366, "children": [], "start_point": {"row": 128, "column": 16}, "end_point": {"row": 128, "column": 17}}, {"id": 370, "type": "struct_specifier", "text": "struct smc_connection {\n\tstruct rb_node\t\talert_node;\n\tstruct smc_link_group\t*lgr;\t\t/* link group of connection */\n\tstruct smc_link\t\t*lnk;\t\t/* assigned SMC-R link */\n\tu32\t\t\talert_token_local; /* unique conn. id */\n\tu8\t\t\tpeer_rmbe_idx;\t/* from tcp handshake */\n\tint\t\t\tpeer_rmbe_size;\t/* size of peer rx buffer */\n\tatomic_t\t\tpeer_rmbe_space;/* remaining free bytes in peer\n\t\t\t\t\t\t * rmbe\n\t\t\t\t\t\t */\n\tint\t\t\trtoken_idx;\t/* idx to peer RMB rkey/addr */\n\n\tstruct smc_buf_desc\t*sndbuf_desc;\t/* send buffer descriptor */\n\tstruct smc_buf_desc\t*rmb_desc;\t/* RMBE descriptor */\n\tint\t\t\trmbe_size_short;/* compressed notation */\n\tint\t\t\trmbe_update_limit;\n\t\t\t\t\t\t/* lower limit for consumer\n\t\t\t\t\t\t * cursor update\n\t\t\t\t\t\t */\n\n\tstruct smc_host_cdc_msg\tlocal_tx_ctrl;\t/* host byte order staging\n\t\t\t\t\t\t * buffer for CDC msg send\n\t\t\t\t\t\t * .prod cf. TCP snd_nxt\n\t\t\t\t\t\t * .cons cf. TCP sends ack\n\t\t\t\t\t\t */\n\tunion smc_host_cursor\tlocal_tx_ctrl_fin;\n\t\t\t\t\t\t/* prod crsr - confirmed by peer\n\t\t\t\t\t\t */\n\tunion smc_host_cursor\ttx_curs_prep;\t/* tx - prepared data\n\t\t\t\t\t\t * snd_max..wmem_alloc\n\t\t\t\t\t\t */\n\tunion smc_host_cursor\ttx_curs_sent;\t/* tx - sent data\n\t\t\t\t\t\t * snd_nxt ?\n\t\t\t\t\t\t */\n\tunion smc_host_cursor\ttx_curs_fin;\t/* tx - confirmed by peer\n\t\t\t\t\t\t * snd-wnd-begin ?\n\t\t\t\t\t\t */\n\tatomic_t\t\tsndbuf_space;\t/* remaining space in sndbuf */\n\tu16\t\t\ttx_cdc_seq;\t/* sequence # for CDC send */\n\tu16\t\t\ttx_cdc_seq_fin;\t/* sequence # - tx completed */\n\tspinlock_t\t\tsend_lock;\t/* protect wr_sends */\n\tstruct delayed_work\ttx_work;\t/* retry of smc_cdc_msg_send */\n\tu32\t\t\ttx_off;\t\t/* base offset in peer rmb */\n\n\tstruct smc_host_cdc_msg\tlocal_rx_ctrl;\t/* filled during event_handl.\n\t\t\t\t\t\t * .prod cf. TCP rcv_nxt\n\t\t\t\t\t\t * .cons cf. TCP snd_una\n\t\t\t\t\t\t */\n\tunion smc_host_cursor\trx_curs_confirmed; /* confirmed to peer\n\t\t\t\t\t\t * source of snd_una ?\n\t\t\t\t\t\t */\n\tunion smc_host_cursor\turg_curs;\t/* points at urgent byte */\n\tenum smc_urg_state\turg_state;\n\tbool\t\t\turg_tx_pend;\t/* urgent data staged */\n\tbool\t\t\turg_rx_skip_pend;\n\t\t\t\t\t\t/* indicate urgent oob data\n\t\t\t\t\t\t * read, but previous regular\n\t\t\t\t\t\t * data still pending\n\t\t\t\t\t\t */\n\tchar\t\t\turg_rx_byte;\t/* urgent byte */\n\tatomic_t\t\tbytes_to_rcv;\t/* arrived data,\n\t\t\t\t\t\t * not yet received\n\t\t\t\t\t\t */\n\tatomic_t\t\tsplice_pending;\t/* number of spliced bytes\n\t\t\t\t\t\t * pending processing\n\t\t\t\t\t\t */\n#ifndef KERNEL_HAS_ATOMIC64\n\tspinlock_t\t\tacurs_lock;\t/* protect cursors */\n#endif\n\tstruct work_struct\tclose_work;\t/* peer sent some closing */\n\tstruct work_struct\tabort_work;\t/* abort the connection */\n\tstruct tasklet_struct\trx_tsklet;\t/* Receiver tasklet for SMC-D */\n\tu8\t\t\trx_off;\t\t/* receive offset:\n\t\t\t\t\t\t * 0 for SMC-R, 32 for SMC-D\n\t\t\t\t\t\t */\n\tu64\t\t\tpeer_token;\t/* SMC-D token of peer */\n\tu8\t\t\tkilled : 1;\t/* abnormal termination */\n\tu8\t\t\tout_of_sync : 1; /* out of sync with peer */\n}", "parent": 0, "children": [371, 372], "start_point": {"row": 131, "column": 0}, "end_point": {"row": 209, "column": 1}}, {"id": 371, "type": "struct", "text": "struct", "parent": 370, "children": [], "start_point": {"row": 131, "column": 0}, "end_point": {"row": 131, "column": 6}}, {"id": 372, "type": "type_identifier", "text": "smc_connection", "parent": 370, "children": [], "start_point": {"row": 131, "column": 7}, "end_point": {"row": 131, "column": 21}}, {"id": 373, "type": "field_declaration", "text": "struct rb_node\t\talert_node;", "parent": 370, "children": [374, 377], "start_point": {"row": 132, "column": 1}, "end_point": {"row": 132, "column": 28}}, {"id": 374, "type": "struct_specifier", "text": "struct rb_node", "parent": 373, "children": [375, 376], "start_point": {"row": 132, "column": 1}, "end_point": {"row": 132, "column": 15}}, {"id": 375, "type": "struct", "text": "struct", "parent": 374, "children": [], "start_point": {"row": 132, "column": 1}, "end_point": {"row": 132, "column": 7}}, {"id": 376, "type": "type_identifier", "text": "rb_node", "parent": 374, "children": [], "start_point": {"row": 132, "column": 8}, "end_point": {"row": 132, "column": 15}}, {"id": 377, "type": "field_identifier", "text": "alert_node", "parent": 373, "children": [], "start_point": {"row": 132, "column": 17}, "end_point": {"row": 132, "column": 27}}, {"id": 378, "type": "field_declaration", "text": "struct smc_link_group\t*lgr;", "parent": 370, "children": [379, 382], "start_point": {"row": 133, "column": 1}, "end_point": {"row": 133, "column": 28}}, {"id": 379, "type": "struct_specifier", "text": "struct smc_link_group", "parent": 378, "children": [380, 381], "start_point": {"row": 133, "column": 1}, "end_point": {"row": 133, "column": 22}}, {"id": 380, "type": "struct", "text": "struct", "parent": 379, "children": [], "start_point": {"row": 133, "column": 1}, "end_point": {"row": 133, "column": 7}}, {"id": 381, "type": "type_identifier", "text": "smc_link_group", "parent": 379, "children": [], "start_point": {"row": 133, "column": 8}, "end_point": {"row": 133, "column": 22}}, {"id": 382, "type": "pointer_declarator", "text": "*lgr", "parent": 378, "children": [383, 384], "start_point": {"row": 133, "column": 23}, "end_point": {"row": 133, "column": 27}}, {"id": 383, "type": "*", "text": "*", "parent": 382, "children": [], "start_point": {"row": 133, "column": 23}, "end_point": {"row": 133, "column": 24}}, {"id": 384, "type": "field_identifier", "text": "lgr", "parent": 382, "children": [], "start_point": {"row": 133, "column": 24}, "end_point": {"row": 133, "column": 27}}, {"id": 385, "type": "field_declaration", "text": "struct smc_link\t\t*lnk;", "parent": 370, "children": [386, 389], "start_point": {"row": 134, "column": 1}, "end_point": {"row": 134, "column": 23}}, {"id": 386, "type": "struct_specifier", "text": "struct smc_link", "parent": 385, "children": [387, 388], "start_point": {"row": 134, "column": 1}, "end_point": {"row": 134, "column": 16}}, {"id": 387, "type": "struct", "text": "struct", "parent": 386, "children": [], "start_point": {"row": 134, "column": 1}, "end_point": {"row": 134, "column": 7}}, {"id": 388, "type": "type_identifier", "text": "smc_link", "parent": 386, "children": [], "start_point": {"row": 134, "column": 8}, "end_point": {"row": 134, "column": 16}}, {"id": 389, "type": "pointer_declarator", "text": "*lnk", "parent": 385, "children": [390, 391], "start_point": {"row": 134, "column": 18}, "end_point": {"row": 134, "column": 22}}, {"id": 390, "type": "*", "text": "*", "parent": 389, "children": [], "start_point": {"row": 134, "column": 18}, "end_point": {"row": 134, "column": 19}}, {"id": 391, "type": "field_identifier", "text": "lnk", "parent": 389, "children": [], "start_point": {"row": 134, "column": 19}, "end_point": {"row": 134, "column": 22}}, {"id": 392, "type": "field_declaration", "text": "u32\t\t\talert_token_local;", "parent": 370, "children": [393, 394], "start_point": {"row": 135, "column": 1}, "end_point": {"row": 135, "column": 25}}, {"id": 393, "type": "type_identifier", "text": "u32", "parent": 392, "children": [], "start_point": {"row": 135, "column": 1}, "end_point": {"row": 135, "column": 4}}, {"id": 394, "type": "field_identifier", "text": "alert_token_local", "parent": 392, "children": [], "start_point": {"row": 135, "column": 7}, "end_point": {"row": 135, "column": 24}}, {"id": 395, "type": "field_declaration", "text": "u8\t\t\tpeer_rmbe_idx;", "parent": 370, "children": [396, 397], "start_point": {"row": 136, "column": 1}, "end_point": {"row": 136, "column": 20}}, {"id": 396, "type": "type_identifier", "text": "u8", "parent": 395, "children": [], "start_point": {"row": 136, "column": 1}, "end_point": {"row": 136, "column": 3}}, {"id": 397, "type": "field_identifier", "text": "peer_rmbe_idx", "parent": 395, "children": [], "start_point": {"row": 136, "column": 6}, "end_point": {"row": 136, "column": 19}}, {"id": 398, "type": "field_declaration", "text": "int\t\t\tpeer_rmbe_size;", "parent": 370, "children": [399, 400], "start_point": {"row": 137, "column": 1}, "end_point": {"row": 137, "column": 22}}, {"id": 399, "type": "primitive_type", "text": "int", "parent": 398, "children": [], "start_point": {"row": 137, "column": 1}, "end_point": {"row": 137, "column": 4}}, {"id": 400, "type": "field_identifier", "text": "peer_rmbe_size", "parent": 398, "children": [], "start_point": {"row": 137, "column": 7}, "end_point": {"row": 137, "column": 21}}, {"id": 401, "type": "field_declaration", "text": "atomic_t\t\tpeer_rmbe_space;", "parent": 370, "children": [402, 403], "start_point": {"row": 138, "column": 1}, "end_point": {"row": 138, "column": 27}}, {"id": 402, "type": "type_identifier", "text": "atomic_t", "parent": 401, "children": [], "start_point": {"row": 138, "column": 1}, "end_point": {"row": 138, "column": 9}}, {"id": 403, "type": "field_identifier", "text": "peer_rmbe_space", "parent": 401, "children": [], "start_point": {"row": 138, "column": 11}, "end_point": {"row": 138, "column": 26}}, {"id": 404, "type": "field_declaration", "text": "int\t\t\trtoken_idx;", "parent": 370, "children": [405, 406], "start_point": {"row": 141, "column": 1}, "end_point": {"row": 141, "column": 18}}, {"id": 405, "type": "primitive_type", "text": "int", "parent": 404, "children": [], "start_point": {"row": 141, "column": 1}, "end_point": {"row": 141, "column": 4}}, {"id": 406, "type": "field_identifier", "text": "rtoken_idx", "parent": 404, "children": [], "start_point": {"row": 141, "column": 7}, "end_point": {"row": 141, "column": 17}}, {"id": 407, "type": "field_declaration", "text": "struct smc_buf_desc\t*sndbuf_desc;", "parent": 370, "children": [408, 411], "start_point": {"row": 143, "column": 1}, "end_point": {"row": 143, "column": 34}}, {"id": 408, "type": "struct_specifier", "text": "struct smc_buf_desc", "parent": 407, "children": [409, 410], "start_point": {"row": 143, "column": 1}, "end_point": {"row": 143, "column": 20}}, {"id": 409, "type": "struct", "text": "struct", "parent": 408, "children": [], "start_point": {"row": 143, "column": 1}, "end_point": {"row": 143, "column": 7}}, {"id": 410, "type": "type_identifier", "text": "smc_buf_desc", "parent": 408, "children": [], "start_point": {"row": 143, "column": 8}, "end_point": {"row": 143, "column": 20}}, {"id": 411, "type": "pointer_declarator", "text": "*sndbuf_desc", "parent": 407, "children": [412, 413], "start_point": {"row": 143, "column": 21}, "end_point": {"row": 143, "column": 33}}, {"id": 412, "type": "*", "text": "*", "parent": 411, "children": [], "start_point": {"row": 143, "column": 21}, "end_point": {"row": 143, "column": 22}}, {"id": 413, "type": "field_identifier", "text": "sndbuf_desc", "parent": 411, "children": [], "start_point": {"row": 143, "column": 22}, "end_point": {"row": 143, "column": 33}}, {"id": 414, "type": "field_declaration", "text": "struct smc_buf_desc\t*rmb_desc;", "parent": 370, "children": [415, 418], "start_point": {"row": 144, "column": 1}, "end_point": {"row": 144, "column": 31}}, {"id": 415, "type": "struct_specifier", "text": "struct smc_buf_desc", "parent": 414, "children": [416, 417], "start_point": {"row": 144, "column": 1}, "end_point": {"row": 144, "column": 20}}, {"id": 416, "type": "struct", "text": "struct", "parent": 415, "children": [], "start_point": {"row": 144, "column": 1}, "end_point": {"row": 144, "column": 7}}, {"id": 417, "type": "type_identifier", "text": "smc_buf_desc", "parent": 415, "children": [], "start_point": {"row": 144, "column": 8}, "end_point": {"row": 144, "column": 20}}, {"id": 418, "type": "pointer_declarator", "text": "*rmb_desc", "parent": 414, "children": [419, 420], "start_point": {"row": 144, "column": 21}, "end_point": {"row": 144, "column": 30}}, {"id": 419, "type": "*", "text": "*", "parent": 418, "children": [], "start_point": {"row": 144, "column": 21}, "end_point": {"row": 144, "column": 22}}, {"id": 420, "type": "field_identifier", "text": "rmb_desc", "parent": 418, "children": [], "start_point": {"row": 144, "column": 22}, "end_point": {"row": 144, "column": 30}}, {"id": 421, "type": "field_declaration", "text": "int\t\t\trmbe_size_short;", "parent": 370, "children": [422, 423], "start_point": {"row": 145, "column": 1}, "end_point": {"row": 145, "column": 23}}, {"id": 422, "type": "primitive_type", "text": "int", "parent": 421, "children": [], "start_point": {"row": 145, "column": 1}, "end_point": {"row": 145, "column": 4}}, {"id": 423, "type": "field_identifier", "text": "rmbe_size_short", "parent": 421, "children": [], "start_point": {"row": 145, "column": 7}, "end_point": {"row": 145, "column": 22}}, {"id": 424, "type": "field_declaration", "text": "int\t\t\trmbe_update_limit;", "parent": 370, "children": [425, 426], "start_point": {"row": 146, "column": 1}, "end_point": {"row": 146, "column": 25}}, {"id": 425, "type": "primitive_type", "text": "int", "parent": 424, "children": [], "start_point": {"row": 146, "column": 1}, "end_point": {"row": 146, "column": 4}}, {"id": 426, "type": "field_identifier", "text": "rmbe_update_limit", "parent": 424, "children": [], "start_point": {"row": 146, "column": 7}, "end_point": {"row": 146, "column": 24}}, {"id": 427, "type": "field_declaration", "text": "struct smc_host_cdc_msg\tlocal_tx_ctrl;", "parent": 370, "children": [428, 431], "start_point": {"row": 151, "column": 1}, "end_point": {"row": 151, "column": 39}}, {"id": 428, "type": "struct_specifier", "text": "struct smc_host_cdc_msg", "parent": 427, "children": [429, 430], "start_point": {"row": 151, "column": 1}, "end_point": {"row": 151, "column": 24}}, {"id": 429, "type": "struct", "text": "struct", "parent": 428, "children": [], "start_point": {"row": 151, "column": 1}, "end_point": {"row": 151, "column": 7}}, {"id": 430, "type": "type_identifier", "text": "smc_host_cdc_msg", "parent": 428, "children": [], "start_point": {"row": 151, "column": 8}, "end_point": {"row": 151, "column": 24}}, {"id": 431, "type": "field_identifier", "text": "local_tx_ctrl", "parent": 427, "children": [], "start_point": {"row": 151, "column": 25}, "end_point": {"row": 151, "column": 38}}, {"id": 432, "type": "field_declaration", "text": "union smc_host_cursor\tlocal_tx_ctrl_fin;", "parent": 370, "children": [433, 436], "start_point": {"row": 156, "column": 1}, "end_point": {"row": 156, "column": 41}}, {"id": 433, "type": "union_specifier", "text": "union smc_host_cursor", "parent": 432, "children": [434, 435], "start_point": {"row": 156, "column": 1}, "end_point": {"row": 156, "column": 22}}, {"id": 434, "type": "union", "text": "union", "parent": 433, "children": [], "start_point": {"row": 156, "column": 1}, "end_point": {"row": 156, "column": 6}}, {"id": 435, "type": "type_identifier", "text": "smc_host_cursor", "parent": 433, "children": [], "start_point": {"row": 156, "column": 7}, "end_point": {"row": 156, "column": 22}}, {"id": 436, "type": "field_identifier", "text": "local_tx_ctrl_fin", "parent": 432, "children": [], "start_point": {"row": 156, "column": 23}, "end_point": {"row": 156, "column": 40}}, {"id": 437, "type": "field_declaration", "text": "union smc_host_cursor\ttx_curs_prep;", "parent": 370, "children": [438, 441], "start_point": {"row": 159, "column": 1}, "end_point": {"row": 159, "column": 36}}, {"id": 438, "type": "union_specifier", "text": "union smc_host_cursor", "parent": 437, "children": [439, 440], "start_point": {"row": 159, "column": 1}, "end_point": {"row": 159, "column": 22}}, {"id": 439, "type": "union", "text": "union", "parent": 438, "children": [], "start_point": {"row": 159, "column": 1}, "end_point": {"row": 159, "column": 6}}, {"id": 440, "type": "type_identifier", "text": "smc_host_cursor", "parent": 438, "children": [], "start_point": {"row": 159, "column": 7}, "end_point": {"row": 159, "column": 22}}, {"id": 441, "type": "field_identifier", "text": "tx_curs_prep", "parent": 437, "children": [], "start_point": {"row": 159, "column": 23}, "end_point": {"row": 159, "column": 35}}, {"id": 442, "type": "field_declaration", "text": "union smc_host_cursor\ttx_curs_sent;", "parent": 370, "children": [443, 446], "start_point": {"row": 162, "column": 1}, "end_point": {"row": 162, "column": 36}}, {"id": 443, "type": "union_specifier", "text": "union smc_host_cursor", "parent": 442, "children": [444, 445], "start_point": {"row": 162, "column": 1}, "end_point": {"row": 162, "column": 22}}, {"id": 444, "type": "union", "text": "union", "parent": 443, "children": [], "start_point": {"row": 162, "column": 1}, "end_point": {"row": 162, "column": 6}}, {"id": 445, "type": "type_identifier", "text": "smc_host_cursor", "parent": 443, "children": [], "start_point": {"row": 162, "column": 7}, "end_point": {"row": 162, "column": 22}}, {"id": 446, "type": "field_identifier", "text": "tx_curs_sent", "parent": 442, "children": [], "start_point": {"row": 162, "column": 23}, "end_point": {"row": 162, "column": 35}}, {"id": 447, "type": "field_declaration", "text": "union smc_host_cursor\ttx_curs_fin;", "parent": 370, "children": [448, 451], "start_point": {"row": 165, "column": 1}, "end_point": {"row": 165, "column": 35}}, {"id": 448, "type": "union_specifier", "text": "union smc_host_cursor", "parent": 447, "children": [449, 450], "start_point": {"row": 165, "column": 1}, "end_point": {"row": 165, "column": 22}}, {"id": 449, "type": "union", "text": "union", "parent": 448, "children": [], "start_point": {"row": 165, "column": 1}, "end_point": {"row": 165, "column": 6}}, {"id": 450, "type": "type_identifier", "text": "smc_host_cursor", "parent": 448, "children": [], "start_point": {"row": 165, "column": 7}, "end_point": {"row": 165, "column": 22}}, {"id": 451, "type": "field_identifier", "text": "tx_curs_fin", "parent": 447, "children": [], "start_point": {"row": 165, "column": 23}, "end_point": {"row": 165, "column": 34}}, {"id": 452, "type": "field_declaration", "text": "atomic_t\t\tsndbuf_space;", "parent": 370, "children": [453, 454], "start_point": {"row": 168, "column": 1}, "end_point": {"row": 168, "column": 24}}, {"id": 453, "type": "type_identifier", "text": "atomic_t", "parent": 452, "children": [], "start_point": {"row": 168, "column": 1}, "end_point": {"row": 168, "column": 9}}, {"id": 454, "type": "field_identifier", "text": "sndbuf_space", "parent": 452, "children": [], "start_point": {"row": 168, "column": 11}, "end_point": {"row": 168, "column": 23}}, {"id": 455, "type": "field_declaration", "text": "u16\t\t\ttx_cdc_seq;", "parent": 370, "children": [456, 457], "start_point": {"row": 169, "column": 1}, "end_point": {"row": 169, "column": 18}}, {"id": 456, "type": "type_identifier", "text": "u16", "parent": 455, "children": [], "start_point": {"row": 169, "column": 1}, "end_point": {"row": 169, "column": 4}}, {"id": 457, "type": "field_identifier", "text": "tx_cdc_seq", "parent": 455, "children": [], "start_point": {"row": 169, "column": 7}, "end_point": {"row": 169, "column": 17}}, {"id": 458, "type": "field_declaration", "text": "u16\t\t\ttx_cdc_seq_fin;", "parent": 370, "children": [459, 460], "start_point": {"row": 170, "column": 1}, "end_point": {"row": 170, "column": 22}}, {"id": 459, "type": "type_identifier", "text": "u16", "parent": 458, "children": [], "start_point": {"row": 170, "column": 1}, "end_point": {"row": 170, "column": 4}}, {"id": 460, "type": "field_identifier", "text": "tx_cdc_seq_fin", "parent": 458, "children": [], "start_point": {"row": 170, "column": 7}, "end_point": {"row": 170, "column": 21}}, {"id": 461, "type": "field_declaration", "text": "spinlock_t\t\tsend_lock;", "parent": 370, "children": [462, 463], "start_point": {"row": 171, "column": 1}, "end_point": {"row": 171, "column": 23}}, {"id": 462, "type": "type_identifier", "text": "spinlock_t", "parent": 461, "children": [], "start_point": {"row": 171, "column": 1}, "end_point": {"row": 171, "column": 11}}, {"id": 463, "type": "field_identifier", "text": "send_lock", "parent": 461, "children": [], "start_point": {"row": 171, "column": 13}, "end_point": {"row": 171, "column": 22}}, {"id": 464, "type": "field_declaration", "text": "struct delayed_work\ttx_work;", "parent": 370, "children": [465, 468], "start_point": {"row": 172, "column": 1}, "end_point": {"row": 172, "column": 29}}, {"id": 465, "type": "struct_specifier", "text": "struct delayed_work", "parent": 464, "children": [466, 467], "start_point": {"row": 172, "column": 1}, "end_point": {"row": 172, "column": 20}}, {"id": 466, "type": "struct", "text": "struct", "parent": 465, "children": [], "start_point": {"row": 172, "column": 1}, "end_point": {"row": 172, "column": 7}}, {"id": 467, "type": "type_identifier", "text": "delayed_work", "parent": 465, "children": [], "start_point": {"row": 172, "column": 8}, "end_point": {"row": 172, "column": 20}}, {"id": 468, "type": "field_identifier", "text": "tx_work", "parent": 464, "children": [], "start_point": {"row": 172, "column": 21}, "end_point": {"row": 172, "column": 28}}, {"id": 469, "type": "field_declaration", "text": "u32\t\t\ttx_off;", "parent": 370, "children": [470, 471], "start_point": {"row": 173, "column": 1}, "end_point": {"row": 173, "column": 14}}, {"id": 470, "type": "type_identifier", "text": "u32", "parent": 469, "children": [], "start_point": {"row": 173, "column": 1}, "end_point": {"row": 173, "column": 4}}, {"id": 471, "type": "field_identifier", "text": "tx_off", "parent": 469, "children": [], "start_point": {"row": 173, "column": 7}, "end_point": {"row": 173, "column": 13}}, {"id": 472, "type": "field_declaration", "text": "struct smc_host_cdc_msg\tlocal_rx_ctrl;", "parent": 370, "children": [473, 476], "start_point": {"row": 175, "column": 1}, "end_point": {"row": 175, "column": 39}}, {"id": 473, "type": "struct_specifier", "text": "struct smc_host_cdc_msg", "parent": 472, "children": [474, 475], "start_point": {"row": 175, "column": 1}, "end_point": {"row": 175, "column": 24}}, {"id": 474, "type": "struct", "text": "struct", "parent": 473, "children": [], "start_point": {"row": 175, "column": 1}, "end_point": {"row": 175, "column": 7}}, {"id": 475, "type": "type_identifier", "text": "smc_host_cdc_msg", "parent": 473, "children": [], "start_point": {"row": 175, "column": 8}, "end_point": {"row": 175, "column": 24}}, {"id": 476, "type": "field_identifier", "text": "local_rx_ctrl", "parent": 472, "children": [], "start_point": {"row": 175, "column": 25}, "end_point": {"row": 175, "column": 38}}, {"id": 477, "type": "field_declaration", "text": "union smc_host_cursor\trx_curs_confirmed;", "parent": 370, "children": [478, 481], "start_point": {"row": 179, "column": 1}, "end_point": {"row": 179, "column": 41}}, {"id": 478, "type": "union_specifier", "text": "union smc_host_cursor", "parent": 477, "children": [479, 480], "start_point": {"row": 179, "column": 1}, "end_point": {"row": 179, "column": 22}}, {"id": 479, "type": "union", "text": "union", "parent": 478, "children": [], "start_point": {"row": 179, "column": 1}, "end_point": {"row": 179, "column": 6}}, {"id": 480, "type": "type_identifier", "text": "smc_host_cursor", "parent": 478, "children": [], "start_point": {"row": 179, "column": 7}, "end_point": {"row": 179, "column": 22}}, {"id": 481, "type": "field_identifier", "text": "rx_curs_confirmed", "parent": 477, "children": [], "start_point": {"row": 179, "column": 23}, "end_point": {"row": 179, "column": 40}}, {"id": 482, "type": "field_declaration", "text": "union smc_host_cursor\turg_curs;", "parent": 370, "children": [483, 486], "start_point": {"row": 182, "column": 1}, "end_point": {"row": 182, "column": 32}}, {"id": 483, "type": "union_specifier", "text": "union smc_host_cursor", "parent": 482, "children": [484, 485], "start_point": {"row": 182, "column": 1}, "end_point": {"row": 182, "column": 22}}, {"id": 484, "type": "union", "text": "union", "parent": 483, "children": [], "start_point": {"row": 182, "column": 1}, "end_point": {"row": 182, "column": 6}}, {"id": 485, "type": "type_identifier", "text": "smc_host_cursor", "parent": 483, "children": [], "start_point": {"row": 182, "column": 7}, "end_point": {"row": 182, "column": 22}}, {"id": 486, "type": "field_identifier", "text": "urg_curs", "parent": 482, "children": [], "start_point": {"row": 182, "column": 23}, "end_point": {"row": 182, "column": 31}}, {"id": 487, "type": "field_declaration", "text": "enum smc_urg_state\turg_state;", "parent": 370, "children": [488, 491], "start_point": {"row": 183, "column": 1}, "end_point": {"row": 183, "column": 30}}, {"id": 488, "type": "enum_specifier", "text": "enum smc_urg_state", "parent": 487, "children": [489, 490], "start_point": {"row": 183, "column": 1}, "end_point": {"row": 183, "column": 19}}, {"id": 489, "type": "enum", "text": "enum", "parent": 488, "children": [], "start_point": {"row": 183, "column": 1}, "end_point": {"row": 183, "column": 5}}, {"id": 490, "type": "type_identifier", "text": "smc_urg_state", "parent": 488, "children": [], "start_point": {"row": 183, "column": 6}, "end_point": {"row": 183, "column": 19}}, {"id": 491, "type": "field_identifier", "text": "urg_state", "parent": 487, "children": [], "start_point": {"row": 183, "column": 20}, "end_point": {"row": 183, "column": 29}}, {"id": 492, "type": "field_declaration", "text": "bool\t\t\turg_tx_pend;", "parent": 370, "children": [493, 494], "start_point": {"row": 184, "column": 1}, "end_point": {"row": 184, "column": 20}}, {"id": 493, "type": "primitive_type", "text": "bool", "parent": 492, "children": [], "start_point": {"row": 184, "column": 1}, "end_point": {"row": 184, "column": 5}}, {"id": 494, "type": "field_identifier", "text": "urg_tx_pend", "parent": 492, "children": [], "start_point": {"row": 184, "column": 8}, "end_point": {"row": 184, "column": 19}}, {"id": 495, "type": "field_declaration", "text": "bool\t\t\turg_rx_skip_pend;", "parent": 370, "children": [496, 497], "start_point": {"row": 185, "column": 1}, "end_point": {"row": 185, "column": 25}}, {"id": 496, "type": "primitive_type", "text": "bool", "parent": 495, "children": [], "start_point": {"row": 185, "column": 1}, "end_point": {"row": 185, "column": 5}}, {"id": 497, "type": "field_identifier", "text": "urg_rx_skip_pend", "parent": 495, "children": [], "start_point": {"row": 185, "column": 8}, "end_point": {"row": 185, "column": 24}}, {"id": 498, "type": "field_declaration", "text": "char\t\t\turg_rx_byte;", "parent": 370, "children": [499, 500], "start_point": {"row": 190, "column": 1}, "end_point": {"row": 190, "column": 20}}, {"id": 499, "type": "primitive_type", "text": "char", "parent": 498, "children": [], "start_point": {"row": 190, "column": 1}, "end_point": {"row": 190, "column": 5}}, {"id": 500, "type": "field_identifier", "text": "urg_rx_byte", "parent": 498, "children": [], "start_point": {"row": 190, "column": 8}, "end_point": {"row": 190, "column": 19}}, {"id": 501, "type": "field_declaration", "text": "atomic_t\t\tbytes_to_rcv;", "parent": 370, "children": [502, 503], "start_point": {"row": 191, "column": 1}, "end_point": {"row": 191, "column": 24}}, {"id": 502, "type": "type_identifier", "text": "atomic_t", "parent": 501, "children": [], "start_point": {"row": 191, "column": 1}, "end_point": {"row": 191, "column": 9}}, {"id": 503, "type": "field_identifier", "text": "bytes_to_rcv", "parent": 501, "children": [], "start_point": {"row": 191, "column": 11}, "end_point": {"row": 191, "column": 23}}, {"id": 504, "type": "field_declaration", "text": "atomic_t\t\tsplice_pending;", "parent": 370, "children": [505, 506], "start_point": {"row": 194, "column": 1}, "end_point": {"row": 194, "column": 26}}, {"id": 505, "type": "type_identifier", "text": "atomic_t", "parent": 504, "children": [], "start_point": {"row": 194, "column": 1}, "end_point": {"row": 194, "column": 9}}, {"id": 506, "type": "field_identifier", "text": "splice_pending", "parent": 504, "children": [], "start_point": {"row": 194, "column": 11}, "end_point": {"row": 194, "column": 25}}, {"id": 507, "type": "preproc_ifdef", "text": "#ifndef KERNEL_HAS_ATOMIC64\n\tspinlock_t\t\tacurs_lock;\t/* protect cursors */\n#endif", "parent": 370, "children": [508, 509, 510, 513], "start_point": {"row": 197, "column": 0}, "end_point": {"row": 199, "column": 6}}, {"id": 508, "type": "#ifndef", "text": "#ifndef", "parent": 507, "children": [], "start_point": {"row": 197, "column": 0}, "end_point": {"row": 197, "column": 7}}, {"id": 509, "type": "identifier", "text": "KERNEL_HAS_ATOMIC64", "parent": 507, "children": [], "start_point": {"row": 197, "column": 8}, "end_point": {"row": 197, "column": 27}}, {"id": 510, "type": "field_declaration", "text": "spinlock_t\t\tacurs_lock;", "parent": 507, "children": [511, 512], "start_point": {"row": 198, "column": 1}, "end_point": {"row": 198, "column": 24}}, {"id": 511, "type": "type_identifier", "text": "spinlock_t", "parent": 510, "children": [], "start_point": {"row": 198, "column": 1}, "end_point": {"row": 198, "column": 11}}, {"id": 512, "type": "field_identifier", "text": "acurs_lock", "parent": 510, "children": [], "start_point": {"row": 198, "column": 13}, "end_point": {"row": 198, "column": 23}}, {"id": 513, "type": "#endif", "text": "#endif", "parent": 507, "children": [], "start_point": {"row": 199, "column": 0}, "end_point": {"row": 199, "column": 6}}, {"id": 514, "type": "field_declaration", "text": "struct work_struct\tclose_work;", "parent": 370, "children": [515, 518], "start_point": {"row": 200, "column": 1}, "end_point": {"row": 200, "column": 31}}, {"id": 515, "type": "struct_specifier", "text": "struct work_struct", "parent": 514, "children": [516, 517], "start_point": {"row": 200, "column": 1}, "end_point": {"row": 200, "column": 19}}, {"id": 516, "type": "struct", "text": "struct", "parent": 515, "children": [], "start_point": {"row": 200, "column": 1}, "end_point": {"row": 200, "column": 7}}, {"id": 517, "type": "type_identifier", "text": "work_struct", "parent": 515, "children": [], "start_point": {"row": 200, "column": 8}, "end_point": {"row": 200, "column": 19}}, {"id": 518, "type": "field_identifier", "text": "close_work", "parent": 514, "children": [], "start_point": {"row": 200, "column": 20}, "end_point": {"row": 200, "column": 30}}, {"id": 519, "type": "field_declaration", "text": "struct work_struct\tabort_work;", "parent": 370, "children": [520, 523], "start_point": {"row": 201, "column": 1}, "end_point": {"row": 201, "column": 31}}, {"id": 520, "type": "struct_specifier", "text": "struct work_struct", "parent": 519, "children": [521, 522], "start_point": {"row": 201, "column": 1}, "end_point": {"row": 201, "column": 19}}, {"id": 521, "type": "struct", "text": "struct", "parent": 520, "children": [], "start_point": {"row": 201, "column": 1}, "end_point": {"row": 201, "column": 7}}, {"id": 522, "type": "type_identifier", "text": "work_struct", "parent": 520, "children": [], "start_point": {"row": 201, "column": 8}, "end_point": {"row": 201, "column": 19}}, {"id": 523, "type": "field_identifier", "text": "abort_work", "parent": 519, "children": [], "start_point": {"row": 201, "column": 20}, "end_point": {"row": 201, "column": 30}}, {"id": 524, "type": "field_declaration", "text": "struct tasklet_struct\trx_tsklet;", "parent": 370, "children": [525, 528], "start_point": {"row": 202, "column": 1}, "end_point": {"row": 202, "column": 33}}, {"id": 525, "type": "struct_specifier", "text": "struct tasklet_struct", "parent": 524, "children": [526, 527], "start_point": {"row": 202, "column": 1}, "end_point": {"row": 202, "column": 22}}, {"id": 526, "type": "struct", "text": "struct", "parent": 525, "children": [], "start_point": {"row": 202, "column": 1}, "end_point": {"row": 202, "column": 7}}, {"id": 527, "type": "type_identifier", "text": "tasklet_struct", "parent": 525, "children": [], "start_point": {"row": 202, "column": 8}, "end_point": {"row": 202, "column": 22}}, {"id": 528, "type": "field_identifier", "text": "rx_tsklet", "parent": 524, "children": [], "start_point": {"row": 202, "column": 23}, "end_point": {"row": 202, "column": 32}}, {"id": 529, "type": "field_declaration", "text": "u8\t\t\trx_off;", "parent": 370, "children": [530, 531], "start_point": {"row": 203, "column": 1}, "end_point": {"row": 203, "column": 13}}, {"id": 530, "type": "type_identifier", "text": "u8", "parent": 529, "children": [], "start_point": {"row": 203, "column": 1}, "end_point": {"row": 203, "column": 3}}, {"id": 531, "type": "field_identifier", "text": "rx_off", "parent": 529, "children": [], "start_point": {"row": 203, "column": 6}, "end_point": {"row": 203, "column": 12}}, {"id": 532, "type": "field_declaration", "text": "u64\t\t\tpeer_token;", "parent": 370, "children": [533, 534], "start_point": {"row": 206, "column": 1}, "end_point": {"row": 206, "column": 18}}, {"id": 533, "type": "type_identifier", "text": "u64", "parent": 532, "children": [], "start_point": {"row": 206, "column": 1}, "end_point": {"row": 206, "column": 4}}, {"id": 534, "type": "field_identifier", "text": "peer_token", "parent": 532, "children": [], "start_point": {"row": 206, "column": 7}, "end_point": {"row": 206, "column": 17}}, {"id": 535, "type": "field_declaration", "text": "u8\t\t\tkilled : 1;", "parent": 370, "children": [536, 537, 538], "start_point": {"row": 207, "column": 1}, "end_point": {"row": 207, "column": 17}}, {"id": 536, "type": "type_identifier", "text": "u8", "parent": 535, "children": [], "start_point": {"row": 207, "column": 1}, "end_point": {"row": 207, "column": 3}}, {"id": 537, "type": "field_identifier", "text": "killed", "parent": 535, "children": [], "start_point": {"row": 207, "column": 6}, "end_point": {"row": 207, "column": 12}}, {"id": 538, "type": "bitfield_clause", "text": ": 1", "parent": 535, "children": [539], "start_point": {"row": 207, "column": 13}, "end_point": {"row": 207, "column": 16}}, {"id": 539, "type": "number_literal", "text": "1", "parent": 538, "children": [], "start_point": {"row": 207, "column": 15}, "end_point": {"row": 207, "column": 16}}, {"id": 540, "type": "field_declaration", "text": "u8\t\t\tout_of_sync : 1;", "parent": 370, "children": [541, 542, 543], "start_point": {"row": 208, "column": 1}, "end_point": {"row": 208, "column": 22}}, {"id": 541, "type": "type_identifier", "text": "u8", "parent": 540, "children": [], "start_point": {"row": 208, "column": 1}, "end_point": {"row": 208, "column": 3}}, {"id": 542, "type": "field_identifier", "text": "out_of_sync", "parent": 540, "children": [], "start_point": {"row": 208, "column": 6}, "end_point": {"row": 208, "column": 17}}, {"id": 543, "type": "bitfield_clause", "text": ": 1", "parent": 540, "children": [544], "start_point": {"row": 208, "column": 18}, "end_point": {"row": 208, "column": 21}}, {"id": 544, "type": "number_literal", "text": "1", "parent": 543, "children": [], "start_point": {"row": 208, "column": 20}, "end_point": {"row": 208, "column": 21}}, {"id": 545, "type": "struct_specifier", "text": "struct smc_sock {\t\t\t\t/* smc sock container */\n\tstruct sock\t\tsk;\n\tstruct socket\t\t*clcsock;\t/* internal tcp socket */\n\tvoid\t\t\t(*clcsk_data_ready)(struct sock *sk);\n\t\t\t\t\t\t/* original data_ready fct. **/\n\tstruct smc_connection\tconn;\t\t/* smc connection */\n\tstruct smc_sock\t\t*listen_smc;\t/* listen parent */\n\tstruct work_struct\tconnect_work;\t/* handle non-blocking connect*/\n\tstruct work_struct\ttcp_listen_work;/* handle tcp socket accepts */\n\tstruct work_struct\tsmc_listen_work;/* prepare new accept socket */\n\tstruct list_head\taccept_q;\t/* sockets to be accepted */\n\tspinlock_t\t\taccept_q_lock;\t/* protects accept_q */\n\tbool\t\t\tuse_fallback;\t/* fallback to tcp */\n\tint\t\t\tfallback_rsn;\t/* reason for fallback */\n\tu32\t\t\tpeer_diagnosis; /* decline reason from peer */\n\tint\t\t\tsockopt_defer_accept;\n\t\t\t\t\t\t/* sockopt TCP_DEFER_ACCEPT\n\t\t\t\t\t\t * value\n\t\t\t\t\t\t */\n\tu8\t\t\twait_close_tx_prepared : 1;\n\t\t\t\t\t\t/* shutdown wr or close\n\t\t\t\t\t\t * started, waiting for unsent\n\t\t\t\t\t\t * data to be sent\n\t\t\t\t\t\t */\n\tu8\t\t\tconnect_nonblock : 1;\n\t\t\t\t\t\t/* non-blocking connect in\n\t\t\t\t\t\t * flight\n\t\t\t\t\t\t */\n\tstruct mutex clcsock_release_lock;\n\t\t\t\t\t\t/* protects clcsock of a listen\n\t\t\t\t\t\t * socket\n\t\t\t\t\t\t * */\n}", "parent": 0, "children": [546, 547], "start_point": {"row": 211, "column": 0}, "end_point": {"row": 243, "column": 1}}, {"id": 546, "type": "struct", "text": "struct", "parent": 545, "children": [], "start_point": {"row": 211, "column": 0}, "end_point": {"row": 211, "column": 6}}, {"id": 547, "type": "type_identifier", "text": "smc_sock", "parent": 545, "children": [], "start_point": {"row": 211, "column": 7}, "end_point": {"row": 211, "column": 15}}, {"id": 548, "type": "field_declaration", "text": "struct sock\t\tsk;", "parent": 545, "children": [549, 552], "start_point": {"row": 212, "column": 1}, "end_point": {"row": 212, "column": 17}}, {"id": 549, "type": "struct_specifier", "text": "struct sock", "parent": 548, "children": [550, 551], "start_point": {"row": 212, "column": 1}, "end_point": {"row": 212, "column": 12}}, {"id": 550, "type": "struct", "text": "struct", "parent": 549, "children": [], "start_point": {"row": 212, "column": 1}, "end_point": {"row": 212, "column": 7}}, {"id": 551, "type": "type_identifier", "text": "sock", "parent": 549, "children": [], "start_point": {"row": 212, "column": 8}, "end_point": {"row": 212, "column": 12}}, {"id": 552, "type": "field_identifier", "text": "sk", "parent": 548, "children": [], "start_point": {"row": 212, "column": 14}, "end_point": {"row": 212, "column": 16}}, {"id": 553, "type": "field_declaration", "text": "struct socket\t\t*clcsock;", "parent": 545, "children": [554, 557], "start_point": {"row": 213, "column": 1}, "end_point": {"row": 213, "column": 25}}, {"id": 554, "type": "struct_specifier", "text": "struct socket", "parent": 553, "children": [555, 556], "start_point": {"row": 213, "column": 1}, "end_point": {"row": 213, "column": 14}}, {"id": 555, "type": "struct", "text": "struct", "parent": 554, "children": [], "start_point": {"row": 213, "column": 1}, "end_point": {"row": 213, "column": 7}}, {"id": 556, "type": "type_identifier", "text": "socket", "parent": 554, "children": [], "start_point": {"row": 213, "column": 8}, "end_point": {"row": 213, "column": 14}}, {"id": 557, "type": "pointer_declarator", "text": "*clcsock", "parent": 553, "children": [558, 559], "start_point": {"row": 213, "column": 16}, "end_point": {"row": 213, "column": 24}}, {"id": 558, "type": "*", "text": "*", "parent": 557, "children": [], "start_point": {"row": 213, "column": 16}, "end_point": {"row": 213, "column": 17}}, {"id": 559, "type": "field_identifier", "text": "clcsock", "parent": 557, "children": [], "start_point": {"row": 213, "column": 17}, "end_point": {"row": 213, "column": 24}}, {"id": 560, "type": "field_declaration", "text": "void\t\t\t(*clcsk_data_ready)(struct sock *sk);", "parent": 545, "children": [561, 562], "start_point": {"row": 214, "column": 1}, "end_point": {"row": 214, "column": 45}}, {"id": 561, "type": "primitive_type", "text": "void", "parent": 560, "children": [], "start_point": {"row": 214, "column": 1}, "end_point": {"row": 214, "column": 5}}, {"id": 562, "type": "function_declarator", "text": "(*clcsk_data_ready)(struct sock *sk)", "parent": 560, "children": [563, 567], "start_point": {"row": 214, "column": 8}, "end_point": {"row": 214, "column": 44}}, {"id": 563, "type": "parenthesized_declarator", "text": "(*clcsk_data_ready)", "parent": 562, "children": [564], "start_point": {"row": 214, "column": 8}, "end_point": {"row": 214, "column": 27}}, {"id": 564, "type": "pointer_declarator", "text": "*clcsk_data_ready", "parent": 563, "children": [565, 566], "start_point": {"row": 214, "column": 9}, "end_point": {"row": 214, "column": 26}}, {"id": 565, "type": "*", "text": "*", "parent": 564, "children": [], "start_point": {"row": 214, "column": 9}, "end_point": {"row": 214, "column": 10}}, {"id": 566, "type": "field_identifier", "text": "clcsk_data_ready", "parent": 564, "children": [], "start_point": {"row": 214, "column": 10}, "end_point": {"row": 214, "column": 26}}, {"id": 567, "type": "parameter_list", "text": "(struct sock *sk)", "parent": 562, "children": [568], "start_point": {"row": 214, "column": 27}, "end_point": {"row": 214, "column": 44}}, {"id": 568, "type": "parameter_declaration", "text": "struct sock *sk", "parent": 567, "children": [569, 572], "start_point": {"row": 214, "column": 28}, "end_point": {"row": 214, "column": 43}}, {"id": 569, "type": "struct_specifier", "text": "struct sock", "parent": 568, "children": [570, 571], "start_point": {"row": 214, "column": 28}, "end_point": {"row": 214, "column": 39}}, {"id": 570, "type": "struct", "text": "struct", "parent": 569, "children": [], "start_point": {"row": 214, "column": 28}, "end_point": {"row": 214, "column": 34}}, {"id": 571, "type": "type_identifier", "text": "sock", "parent": 569, "children": [], "start_point": {"row": 214, "column": 35}, "end_point": {"row": 214, "column": 39}}, {"id": 572, "type": "pointer_declarator", "text": "*sk", "parent": 568, "children": [573, 574], "start_point": {"row": 214, "column": 40}, "end_point": {"row": 214, "column": 43}}, {"id": 573, "type": "*", "text": "*", "parent": 572, "children": [], "start_point": {"row": 214, "column": 40}, "end_point": {"row": 214, "column": 41}}, {"id": 574, "type": "identifier", "text": "sk", "parent": 572, "children": [], "start_point": {"row": 214, "column": 41}, "end_point": {"row": 214, "column": 43}}, {"id": 575, "type": "field_declaration", "text": "struct smc_connection\tconn;", "parent": 545, "children": [576, 579], "start_point": {"row": 216, "column": 1}, "end_point": {"row": 216, "column": 28}}, {"id": 576, "type": "struct_specifier", "text": "struct smc_connection", "parent": 575, "children": [577, 578], "start_point": {"row": 216, "column": 1}, "end_point": {"row": 216, "column": 22}}, {"id": 577, "type": "struct", "text": "struct", "parent": 576, "children": [], "start_point": {"row": 216, "column": 1}, "end_point": {"row": 216, "column": 7}}, {"id": 578, "type": "type_identifier", "text": "smc_connection", "parent": 576, "children": [], "start_point": {"row": 216, "column": 8}, "end_point": {"row": 216, "column": 22}}, {"id": 579, "type": "field_identifier", "text": "conn", "parent": 575, "children": [], "start_point": {"row": 216, "column": 23}, "end_point": {"row": 216, "column": 27}}, {"id": 580, "type": "field_declaration", "text": "struct smc_sock\t\t*listen_smc;", "parent": 545, "children": [581, 584], "start_point": {"row": 217, "column": 1}, "end_point": {"row": 217, "column": 30}}, {"id": 581, "type": "struct_specifier", "text": "struct smc_sock", "parent": 580, "children": [582, 583], "start_point": {"row": 217, "column": 1}, "end_point": {"row": 217, "column": 16}}, {"id": 582, "type": "struct", "text": "struct", "parent": 581, "children": [], "start_point": {"row": 217, "column": 1}, "end_point": {"row": 217, "column": 7}}, {"id": 583, "type": "type_identifier", "text": "smc_sock", "parent": 581, "children": [], "start_point": {"row": 217, "column": 8}, "end_point": {"row": 217, "column": 16}}, {"id": 584, "type": "pointer_declarator", "text": "*listen_smc", "parent": 580, "children": [585, 586], "start_point": {"row": 217, "column": 18}, "end_point": {"row": 217, "column": 29}}, {"id": 585, "type": "*", "text": "*", "parent": 584, "children": [], "start_point": {"row": 217, "column": 18}, "end_point": {"row": 217, "column": 19}}, {"id": 586, "type": "field_identifier", "text": "listen_smc", "parent": 584, "children": [], "start_point": {"row": 217, "column": 19}, "end_point": {"row": 217, "column": 29}}, {"id": 587, "type": "field_declaration", "text": "struct work_struct\tconnect_work;", "parent": 545, "children": [588, 591], "start_point": {"row": 218, "column": 1}, "end_point": {"row": 218, "column": 33}}, {"id": 588, "type": "struct_specifier", "text": "struct work_struct", "parent": 587, "children": [589, 590], "start_point": {"row": 218, "column": 1}, "end_point": {"row": 218, "column": 19}}, {"id": 589, "type": "struct", "text": "struct", "parent": 588, "children": [], "start_point": {"row": 218, "column": 1}, "end_point": {"row": 218, "column": 7}}, {"id": 590, "type": "type_identifier", "text": "work_struct", "parent": 588, "children": [], "start_point": {"row": 218, "column": 8}, "end_point": {"row": 218, "column": 19}}, {"id": 591, "type": "field_identifier", "text": "connect_work", "parent": 587, "children": [], "start_point": {"row": 218, "column": 20}, "end_point": {"row": 218, "column": 32}}, {"id": 592, "type": "field_declaration", "text": "struct work_struct\ttcp_listen_work;", "parent": 545, "children": [593, 596], "start_point": {"row": 219, "column": 1}, "end_point": {"row": 219, "column": 36}}, {"id": 593, "type": "struct_specifier", "text": "struct work_struct", "parent": 592, "children": [594, 595], "start_point": {"row": 219, "column": 1}, "end_point": {"row": 219, "column": 19}}, {"id": 594, "type": "struct", "text": "struct", "parent": 593, "children": [], "start_point": {"row": 219, "column": 1}, "end_point": {"row": 219, "column": 7}}, {"id": 595, "type": "type_identifier", "text": "work_struct", "parent": 593, "children": [], "start_point": {"row": 219, "column": 8}, "end_point": {"row": 219, "column": 19}}, {"id": 596, "type": "field_identifier", "text": "tcp_listen_work", "parent": 592, "children": [], "start_point": {"row": 219, "column": 20}, "end_point": {"row": 219, "column": 35}}, {"id": 597, "type": "field_declaration", "text": "struct work_struct\tsmc_listen_work;", "parent": 545, "children": [598, 601], "start_point": {"row": 220, "column": 1}, "end_point": {"row": 220, "column": 36}}, {"id": 598, "type": "struct_specifier", "text": "struct work_struct", "parent": 597, "children": [599, 600], "start_point": {"row": 220, "column": 1}, "end_point": {"row": 220, "column": 19}}, {"id": 599, "type": "struct", "text": "struct", "parent": 598, "children": [], "start_point": {"row": 220, "column": 1}, "end_point": {"row": 220, "column": 7}}, {"id": 600, "type": "type_identifier", "text": "work_struct", "parent": 598, "children": [], "start_point": {"row": 220, "column": 8}, "end_point": {"row": 220, "column": 19}}, {"id": 601, "type": "field_identifier", "text": "smc_listen_work", "parent": 597, "children": [], "start_point": {"row": 220, "column": 20}, "end_point": {"row": 220, "column": 35}}, {"id": 602, "type": "field_declaration", "text": "struct list_head\taccept_q;", "parent": 545, "children": [603, 606], "start_point": {"row": 221, "column": 1}, "end_point": {"row": 221, "column": 27}}, {"id": 603, "type": "struct_specifier", "text": "struct list_head", "parent": 602, "children": [604, 605], "start_point": {"row": 221, "column": 1}, "end_point": {"row": 221, "column": 17}}, {"id": 604, "type": "struct", "text": "struct", "parent": 603, "children": [], "start_point": {"row": 221, "column": 1}, "end_point": {"row": 221, "column": 7}}, {"id": 605, "type": "type_identifier", "text": "list_head", "parent": 603, "children": [], "start_point": {"row": 221, "column": 8}, "end_point": {"row": 221, "column": 17}}, {"id": 606, "type": "field_identifier", "text": "accept_q", "parent": 602, "children": [], "start_point": {"row": 221, "column": 18}, "end_point": {"row": 221, "column": 26}}, {"id": 607, "type": "field_declaration", "text": "spinlock_t\t\taccept_q_lock;", "parent": 545, "children": [608, 609], "start_point": {"row": 222, "column": 1}, "end_point": {"row": 222, "column": 27}}, {"id": 608, "type": "type_identifier", "text": "spinlock_t", "parent": 607, "children": [], "start_point": {"row": 222, "column": 1}, "end_point": {"row": 222, "column": 11}}, {"id": 609, "type": "field_identifier", "text": "accept_q_lock", "parent": 607, "children": [], "start_point": {"row": 222, "column": 13}, "end_point": {"row": 222, "column": 26}}, {"id": 610, "type": "field_declaration", "text": "bool\t\t\tuse_fallback;", "parent": 545, "children": [611, 612], "start_point": {"row": 223, "column": 1}, "end_point": {"row": 223, "column": 21}}, {"id": 611, "type": "primitive_type", "text": "bool", "parent": 610, "children": [], "start_point": {"row": 223, "column": 1}, "end_point": {"row": 223, "column": 5}}, {"id": 612, "type": "field_identifier", "text": "use_fallback", "parent": 610, "children": [], "start_point": {"row": 223, "column": 8}, "end_point": {"row": 223, "column": 20}}, {"id": 613, "type": "field_declaration", "text": "int\t\t\tfallback_rsn;", "parent": 545, "children": [614, 615], "start_point": {"row": 224, "column": 1}, "end_point": {"row": 224, "column": 20}}, {"id": 614, "type": "primitive_type", "text": "int", "parent": 613, "children": [], "start_point": {"row": 224, "column": 1}, "end_point": {"row": 224, "column": 4}}, {"id": 615, "type": "field_identifier", "text": "fallback_rsn", "parent": 613, "children": [], "start_point": {"row": 224, "column": 7}, "end_point": {"row": 224, "column": 19}}, {"id": 616, "type": "field_declaration", "text": "u32\t\t\tpeer_diagnosis;", "parent": 545, "children": [617, 618], "start_point": {"row": 225, "column": 1}, "end_point": {"row": 225, "column": 22}}, {"id": 617, "type": "type_identifier", "text": "u32", "parent": 616, "children": [], "start_point": {"row": 225, "column": 1}, "end_point": {"row": 225, "column": 4}}, {"id": 618, "type": "field_identifier", "text": "peer_diagnosis", "parent": 616, "children": [], "start_point": {"row": 225, "column": 7}, "end_point": {"row": 225, "column": 21}}, {"id": 619, "type": "field_declaration", "text": "int\t\t\tsockopt_defer_accept;", "parent": 545, "children": [620, 621], "start_point": {"row": 226, "column": 1}, "end_point": {"row": 226, "column": 28}}, {"id": 620, "type": "primitive_type", "text": "int", "parent": 619, "children": [], "start_point": {"row": 226, "column": 1}, "end_point": {"row": 226, "column": 4}}, {"id": 621, "type": "field_identifier", "text": "sockopt_defer_accept", "parent": 619, "children": [], "start_point": {"row": 226, "column": 7}, "end_point": {"row": 226, "column": 27}}, {"id": 622, "type": "field_declaration", "text": "u8\t\t\twait_close_tx_prepared : 1;", "parent": 545, "children": [623, 624, 625], "start_point": {"row": 230, "column": 1}, "end_point": {"row": 230, "column": 33}}, {"id": 623, "type": "type_identifier", "text": "u8", "parent": 622, "children": [], "start_point": {"row": 230, "column": 1}, "end_point": {"row": 230, "column": 3}}, {"id": 624, "type": "field_identifier", "text": "wait_close_tx_prepared", "parent": 622, "children": [], "start_point": {"row": 230, "column": 6}, "end_point": {"row": 230, "column": 28}}, {"id": 625, "type": "bitfield_clause", "text": ": 1", "parent": 622, "children": [626], "start_point": {"row": 230, "column": 29}, "end_point": {"row": 230, "column": 32}}, {"id": 626, "type": "number_literal", "text": "1", "parent": 625, "children": [], "start_point": {"row": 230, "column": 31}, "end_point": {"row": 230, "column": 32}}, {"id": 627, "type": "field_declaration", "text": "u8\t\t\tconnect_nonblock : 1;", "parent": 545, "children": [628, 629, 630], "start_point": {"row": 235, "column": 1}, "end_point": {"row": 235, "column": 27}}, {"id": 628, "type": "type_identifier", "text": "u8", "parent": 627, "children": [], "start_point": {"row": 235, "column": 1}, "end_point": {"row": 235, "column": 3}}, {"id": 629, "type": "field_identifier", "text": "connect_nonblock", "parent": 627, "children": [], "start_point": {"row": 235, "column": 6}, "end_point": {"row": 235, "column": 22}}, {"id": 630, "type": "bitfield_clause", "text": ": 1", "parent": 627, "children": [631], "start_point": {"row": 235, "column": 23}, "end_point": {"row": 235, "column": 26}}, {"id": 631, "type": "number_literal", "text": "1", "parent": 630, "children": [], "start_point": {"row": 235, "column": 25}, "end_point": {"row": 235, "column": 26}}, {"id": 632, "type": "field_declaration", "text": "struct mutex clcsock_release_lock;", "parent": 545, "children": [633, 636], "start_point": {"row": 239, "column": 1}, "end_point": {"row": 239, "column": 46}}, {"id": 633, "type": "struct_specifier", "text": "struct mutex", "parent": 632, "children": [634, 635], "start_point": {"row": 239, "column": 1}, "end_point": {"row": 239, "column": 13}}, {"id": 634, "type": "struct", "text": "struct", "parent": 633, "children": [], "start_point": {"row": 239, "column": 1}, "end_point": {"row": 239, "column": 7}}, {"id": 635, "type": "type_identifier", "text": "mutex", "parent": 633, "children": [], "start_point": {"row": 239, "column": 8}, "end_point": {"row": 239, "column": 13}}, {"id": 636, "type": "field_identifier", "text": "clcsock_release_lock", "parent": 632, "children": [], "start_point": {"row": 239, "column": 25}, "end_point": {"row": 239, "column": 45}}, {"id": 637, "type": "function_definition", "text": "static inline struct smc_sock *smc_sk(const struct sock *sk)\n{\n\treturn (struct smc_sock *)sk;\n}", "parent": 0, "children": [638, 640, 643], "start_point": {"row": 245, "column": 0}, "end_point": {"row": 248, "column": 1}}, {"id": 638, "type": "storage_class_specifier", "text": "inline", "parent": 637, "children": [639], "start_point": {"row": 245, "column": 7}, "end_point": {"row": 245, "column": 13}}, {"id": 639, "type": "inline", "text": "inline", "parent": 638, "children": [], "start_point": {"row": 245, "column": 7}, "end_point": {"row": 245, "column": 13}}, {"id": 640, "type": "struct_specifier", "text": "struct smc_sock", "parent": 637, "children": [641, 642], "start_point": {"row": 245, "column": 14}, "end_point": {"row": 245, "column": 29}}, {"id": 641, "type": "struct", "text": "struct", "parent": 640, "children": [], "start_point": {"row": 245, "column": 14}, "end_point": {"row": 245, "column": 20}}, {"id": 642, "type": "type_identifier", "text": "smc_sock", "parent": 640, "children": [], "start_point": {"row": 245, "column": 21}, "end_point": {"row": 245, "column": 29}}, {"id": 643, "type": "pointer_declarator", "text": "*smc_sk(const struct sock *sk)", "parent": 637, "children": [644, 645], "start_point": {"row": 245, "column": 30}, "end_point": {"row": 245, "column": 60}}, {"id": 644, "type": "*", "text": "*", "parent": 643, "children": [], "start_point": {"row": 245, "column": 30}, "end_point": {"row": 245, "column": 31}}, {"id": 645, "type": "function_declarator", "text": "smc_sk(const struct sock *sk)", "parent": 643, "children": [646, 647], "start_point": {"row": 245, "column": 31}, "end_point": {"row": 245, "column": 60}}, {"id": 646, "type": "identifier", "text": "smc_sk", "parent": 645, "children": [], "start_point": {"row": 245, "column": 31}, "end_point": {"row": 245, "column": 37}}, {"id": 647, "type": "parameter_list", "text": "(const struct sock *sk)", "parent": 645, "children": [648], "start_point": {"row": 245, "column": 37}, "end_point": {"row": 245, "column": 60}}, {"id": 648, "type": "parameter_declaration", "text": "const struct sock *sk", "parent": 647, "children": [649, 652], "start_point": {"row": 245, "column": 38}, "end_point": {"row": 245, "column": 59}}, {"id": 649, "type": "struct_specifier", "text": "struct sock", "parent": 648, "children": [650, 651], "start_point": {"row": 245, "column": 44}, "end_point": {"row": 245, "column": 55}}, {"id": 650, "type": "struct", "text": "struct", "parent": 649, "children": [], "start_point": {"row": 245, "column": 44}, "end_point": {"row": 245, "column": 50}}, {"id": 651, "type": "type_identifier", "text": "sock", "parent": 649, "children": [], "start_point": {"row": 245, "column": 51}, "end_point": {"row": 245, "column": 55}}, {"id": 652, "type": "pointer_declarator", "text": "*sk", "parent": 648, "children": [653, 654], "start_point": {"row": 245, "column": 56}, "end_point": {"row": 245, "column": 59}}, {"id": 653, "type": "*", "text": "*", "parent": 652, "children": [], "start_point": {"row": 245, "column": 56}, "end_point": {"row": 245, "column": 57}}, {"id": 654, "type": "identifier", "text": "sk", "parent": 652, "children": [], "start_point": {"row": 245, "column": 57}, "end_point": {"row": 245, "column": 59}}, {"id": 655, "type": "return_statement", "text": "return (struct smc_sock *)sk;", "parent": 637, "children": [656], "start_point": {"row": 247, "column": 1}, "end_point": {"row": 247, "column": 30}}, {"id": 656, "type": "cast_expression", "text": "(struct smc_sock *)sk", "parent": 655, "children": [657, 663], "start_point": {"row": 247, "column": 8}, "end_point": {"row": 247, "column": 29}}, {"id": 657, "type": "type_descriptor", "text": "struct smc_sock *", "parent": 656, "children": [658, 661], "start_point": {"row": 247, "column": 9}, "end_point": {"row": 247, "column": 26}}, {"id": 658, "type": "struct_specifier", "text": "struct smc_sock", "parent": 657, "children": [659, 660], "start_point": {"row": 247, "column": 9}, "end_point": {"row": 247, "column": 24}}, {"id": 659, "type": "struct", "text": "struct", "parent": 658, "children": [], "start_point": {"row": 247, "column": 9}, "end_point": {"row": 247, "column": 15}}, {"id": 660, "type": "type_identifier", "text": "smc_sock", "parent": 658, "children": [], "start_point": {"row": 247, "column": 16}, "end_point": {"row": 247, "column": 24}}, {"id": 661, "type": "abstract_pointer_declarator", "text": "*", "parent": 657, "children": [662], "start_point": {"row": 247, "column": 25}, "end_point": {"row": 247, "column": 26}}, {"id": 662, "type": "*", "text": "*", "parent": 661, "children": [], "start_point": {"row": 247, "column": 25}, "end_point": {"row": 247, "column": 26}}, {"id": 663, "type": "identifier", "text": "sk", "parent": 656, "children": [], "start_point": {"row": 247, "column": 27}, "end_point": {"row": 247, "column": 29}}, {"id": 664, "type": "declaration", "text": "extern struct workqueue_struct\t*smc_hs_wq;", "parent": 0, "children": [665, 667, 670], "start_point": {"row": 250, "column": 0}, "end_point": {"row": 250, "column": 42}}, {"id": 665, "type": "storage_class_specifier", "text": "extern", "parent": 664, "children": [666], "start_point": {"row": 250, "column": 0}, "end_point": {"row": 250, "column": 6}}, {"id": 666, "type": "extern", "text": "extern", "parent": 665, "children": [], "start_point": {"row": 250, "column": 0}, "end_point": {"row": 250, "column": 6}}, {"id": 667, "type": "struct_specifier", "text": "struct workqueue_struct", "parent": 664, "children": [668, 669], "start_point": {"row": 250, "column": 7}, "end_point": {"row": 250, "column": 30}}, {"id": 668, "type": "struct", "text": "struct", "parent": 667, "children": [], "start_point": {"row": 250, "column": 7}, "end_point": {"row": 250, "column": 13}}, {"id": 669, "type": "type_identifier", "text": "workqueue_struct", "parent": 667, "children": [], "start_point": {"row": 250, "column": 14}, "end_point": {"row": 250, "column": 30}}, {"id": 670, "type": "pointer_declarator", "text": "*smc_hs_wq", "parent": 664, "children": [671, 672], "start_point": {"row": 250, "column": 31}, "end_point": {"row": 250, "column": 41}}, {"id": 671, "type": "*", "text": "*", "parent": 670, "children": [], "start_point": {"row": 250, "column": 31}, "end_point": {"row": 250, "column": 32}}, {"id": 672, "type": "identifier", "text": "smc_hs_wq", "parent": 670, "children": [], "start_point": {"row": 250, "column": 32}, "end_point": {"row": 250, "column": 41}}, {"id": 673, "type": "declaration", "text": "extern struct workqueue_struct\t*smc_close_wq;", "parent": 0, "children": [674, 676, 679], "start_point": {"row": 251, "column": 0}, "end_point": {"row": 251, "column": 45}}, {"id": 674, "type": "storage_class_specifier", "text": "extern", "parent": 673, "children": [675], "start_point": {"row": 251, "column": 0}, "end_point": {"row": 251, "column": 6}}, {"id": 675, "type": "extern", "text": "extern", "parent": 674, "children": [], "start_point": {"row": 251, "column": 0}, "end_point": {"row": 251, "column": 6}}, {"id": 676, "type": "struct_specifier", "text": "struct workqueue_struct", "parent": 673, "children": [677, 678], "start_point": {"row": 251, "column": 7}, "end_point": {"row": 251, "column": 30}}, {"id": 677, "type": "struct", "text": "struct", "parent": 676, "children": [], "start_point": {"row": 251, "column": 7}, "end_point": {"row": 251, "column": 13}}, {"id": 678, "type": "type_identifier", "text": "workqueue_struct", "parent": 676, "children": [], "start_point": {"row": 251, "column": 14}, "end_point": {"row": 251, "column": 30}}, {"id": 679, "type": "pointer_declarator", "text": "*smc_close_wq", "parent": 673, "children": [680, 681], "start_point": {"row": 251, "column": 31}, "end_point": {"row": 251, "column": 44}}, {"id": 680, "type": "*", "text": "*", "parent": 679, "children": [], "start_point": {"row": 251, "column": 31}, "end_point": {"row": 251, "column": 32}}, {"id": 681, "type": "identifier", "text": "smc_close_wq", "parent": 679, "children": [], "start_point": {"row": 251, "column": 32}, "end_point": {"row": 251, "column": 44}}, {"id": 682, "type": "preproc_def", "text": "#define SMC_SYSTEMID_LEN\t\t8\n", "parent": 0, "children": [683, 684, 685], "start_point": {"row": 253, "column": 0}, "end_point": {"row": 254, "column": 0}}, {"id": 683, "type": "#define", "text": "#define", "parent": 682, "children": [], "start_point": {"row": 253, "column": 0}, "end_point": {"row": 253, "column": 7}}, {"id": 684, "type": "identifier", "text": "SMC_SYSTEMID_LEN", "parent": 682, "children": [], "start_point": {"row": 253, "column": 8}, "end_point": {"row": 253, "column": 24}}, {"id": 685, "type": "preproc_arg", "text": "8", "parent": 682, "children": [], "start_point": {"row": 253, "column": 26}, "end_point": {"row": 253, "column": 27}}, {"id": 686, "type": "declaration", "text": "extern u8\tlocal_systemid[SMC_SYSTEMID_LEN];", "parent": 0, "children": [687, 689, 690], "start_point": {"row": 255, "column": 0}, "end_point": {"row": 255, "column": 43}}, {"id": 687, "type": "storage_class_specifier", "text": "extern", "parent": 686, "children": [688], "start_point": {"row": 255, "column": 0}, "end_point": {"row": 255, "column": 6}}, {"id": 688, "type": "extern", "text": "extern", "parent": 687, "children": [], "start_point": {"row": 255, "column": 0}, "end_point": {"row": 255, "column": 6}}, {"id": 689, "type": "type_identifier", "text": "u8", "parent": 686, "children": [], "start_point": {"row": 255, "column": 7}, "end_point": {"row": 255, "column": 9}}, {"id": 690, "type": "array_declarator", "text": "local_systemid[SMC_SYSTEMID_LEN]", "parent": 686, "children": [691, 692], "start_point": {"row": 255, "column": 10}, "end_point": {"row": 255, "column": 42}}, {"id": 691, "type": "identifier", "text": "local_systemid", "parent": 690, "children": [], "start_point": {"row": 255, "column": 10}, "end_point": {"row": 255, "column": 24}}, {"id": 692, "type": "identifier", "text": "SMC_SYSTEMID_LEN", "parent": 690, "children": [], "start_point": {"row": 255, "column": 25}, "end_point": {"row": 255, "column": 41}}, {"id": 693, "type": "preproc_function_def", "text": "#define ntohll(x) be64_to_cpu(x)\n", "parent": 0, "children": [694, 695, 696, 698], "start_point": {"row": 257, "column": 0}, "end_point": {"row": 258, "column": 0}}, {"id": 694, "type": "#define", "text": "#define", "parent": 693, "children": [], "start_point": {"row": 257, "column": 0}, "end_point": {"row": 257, "column": 7}}, {"id": 695, "type": "identifier", "text": "ntohll", "parent": 693, "children": [], "start_point": {"row": 257, "column": 8}, "end_point": {"row": 257, "column": 14}}, {"id": 696, "type": "preproc_params", "text": "(x)", "parent": 693, "children": [697], "start_point": {"row": 257, "column": 14}, "end_point": {"row": 257, "column": 17}}, {"id": 697, "type": "identifier", "text": "x", "parent": 696, "children": [], "start_point": {"row": 257, "column": 15}, "end_point": {"row": 257, "column": 16}}, {"id": 698, "type": "preproc_arg", "text": "be64_to_cpu(x)", "parent": 693, "children": [], "start_point": {"row": 257, "column": 18}, "end_point": {"row": 257, "column": 32}}, {"id": 699, "type": "preproc_function_def", "text": "#define htonll(x) cpu_to_be64(x)\n", "parent": 0, "children": [700, 701, 702, 704], "start_point": {"row": 258, "column": 0}, "end_point": {"row": 259, "column": 0}}, {"id": 700, "type": "#define", "text": "#define", "parent": 699, "children": [], "start_point": {"row": 258, "column": 0}, "end_point": {"row": 258, "column": 7}}, {"id": 701, "type": "identifier", "text": "htonll", "parent": 699, "children": [], "start_point": {"row": 258, "column": 8}, "end_point": {"row": 258, "column": 14}}, {"id": 702, "type": "preproc_params", "text": "(x)", "parent": 699, "children": [703], "start_point": {"row": 258, "column": 14}, "end_point": {"row": 258, "column": 17}}, {"id": 703, "type": "identifier", "text": "x", "parent": 702, "children": [], "start_point": {"row": 258, "column": 15}, "end_point": {"row": 258, "column": 16}}, {"id": 704, "type": "preproc_arg", "text": "cpu_to_be64(x)", "parent": 699, "children": [], "start_point": {"row": 258, "column": 18}, "end_point": {"row": 258, "column": 32}}, {"id": 705, "type": "function_definition", "text": "static inline void hton24(u8 *net, u32 host)\n{\n\t__be32 t;\n\n\tt = cpu_to_be32(host);\n\tmemcpy(net, ((u8 *)&t) + 1, 3);\n}", "parent": 0, "children": [706, 708, 709], "start_point": {"row": 261, "column": 0}, "end_point": {"row": 267, "column": 1}}, {"id": 706, "type": "storage_class_specifier", "text": "inline", "parent": 705, "children": [707], "start_point": {"row": 261, "column": 7}, "end_point": {"row": 261, "column": 13}}, {"id": 707, "type": "inline", "text": "inline", "parent": 706, "children": [], "start_point": {"row": 261, "column": 7}, "end_point": {"row": 261, "column": 13}}, {"id": 708, "type": "primitive_type", "text": "void", "parent": 705, "children": [], "start_point": {"row": 261, "column": 14}, "end_point": {"row": 261, "column": 18}}, {"id": 709, "type": "function_declarator", "text": "hton24(u8 *net, u32 host)", "parent": 705, "children": [710, 711], "start_point": {"row": 261, "column": 19}, "end_point": {"row": 261, "column": 44}}, {"id": 710, "type": "identifier", "text": "hton24", "parent": 709, "children": [], "start_point": {"row": 261, "column": 19}, "end_point": {"row": 261, "column": 25}}, {"id": 711, "type": "parameter_list", "text": "(u8 *net, u32 host)", "parent": 709, "children": [712, 717], "start_point": {"row": 261, "column": 25}, "end_point": {"row": 261, "column": 44}}, {"id": 712, "type": "parameter_declaration", "text": "u8 *net", "parent": 711, "children": [713, 714], "start_point": {"row": 261, "column": 26}, "end_point": {"row": 261, "column": 33}}, {"id": 713, "type": "type_identifier", "text": "u8", "parent": 712, "children": [], "start_point": {"row": 261, "column": 26}, "end_point": {"row": 261, "column": 28}}, {"id": 714, "type": "pointer_declarator", "text": "*net", "parent": 712, "children": [715, 716], "start_point": {"row": 261, "column": 29}, "end_point": {"row": 261, "column": 33}}, {"id": 715, "type": "*", "text": "*", "parent": 714, "children": [], "start_point": {"row": 261, "column": 29}, "end_point": {"row": 261, "column": 30}}, {"id": 716, "type": "identifier", "text": "net", "parent": 714, "children": [], "start_point": {"row": 261, "column": 30}, "end_point": {"row": 261, "column": 33}}, {"id": 717, "type": "parameter_declaration", "text": "u32 host", "parent": 711, "children": [718, 719], "start_point": {"row": 261, "column": 35}, "end_point": {"row": 261, "column": 43}}, {"id": 718, "type": "type_identifier", "text": "u32", "parent": 717, "children": [], "start_point": {"row": 261, "column": 35}, "end_point": {"row": 261, "column": 38}}, {"id": 719, "type": "identifier", "text": "host", "parent": 717, "children": [], "start_point": {"row": 261, "column": 39}, "end_point": {"row": 261, "column": 43}}, {"id": 720, "type": "declaration", "text": "__be32 t;", "parent": 705, "children": [721, 722], "start_point": {"row": 263, "column": 1}, "end_point": {"row": 263, "column": 10}}, {"id": 721, "type": "type_identifier", "text": "__be32", "parent": 720, "children": [], "start_point": {"row": 263, "column": 1}, "end_point": {"row": 263, "column": 7}}, {"id": 722, "type": "identifier", "text": "t", "parent": 720, "children": [], "start_point": {"row": 263, "column": 8}, "end_point": {"row": 263, "column": 9}}, {"id": 723, "type": "assignment_expression", "text": "t = cpu_to_be32(host)", "parent": 705, "children": [724, 725, 726], "start_point": {"row": 265, "column": 1}, "end_point": {"row": 265, "column": 22}}, {"id": 724, "type": "identifier", "text": "t", "parent": 723, "children": [], "start_point": {"row": 265, "column": 1}, "end_point": {"row": 265, "column": 2}}, {"id": 725, "type": "=", "text": "=", "parent": 723, "children": [], "start_point": {"row": 265, "column": 3}, "end_point": {"row": 265, "column": 4}}, {"id": 726, "type": "call_expression", "text": "cpu_to_be32(host)", "parent": 723, "children": [727, 728], "start_point": {"row": 265, "column": 5}, "end_point": {"row": 265, "column": 22}}, {"id": 727, "type": "identifier", "text": "cpu_to_be32", "parent": 726, "children": [], "start_point": {"row": 265, "column": 5}, "end_point": {"row": 265, "column": 16}}, {"id": 728, "type": "argument_list", "text": "(host)", "parent": 726, "children": [729], "start_point": {"row": 265, "column": 16}, "end_point": {"row": 265, "column": 22}}, {"id": 729, "type": "identifier", "text": "host", "parent": 728, "children": [], "start_point": {"row": 265, "column": 17}, "end_point": {"row": 265, "column": 21}}, {"id": 730, "type": "call_expression", "text": "memcpy(net, ((u8 *)&t) + 1, 3)", "parent": 705, "children": [731, 732], "start_point": {"row": 266, "column": 1}, "end_point": {"row": 266, "column": 31}}, {"id": 731, "type": "identifier", "text": "memcpy", "parent": 730, "children": [], "start_point": {"row": 266, "column": 1}, "end_point": {"row": 266, "column": 7}}, {"id": 732, "type": "argument_list", "text": "(net, ((u8 *)&t) + 1, 3)", "parent": 730, "children": [733, 734, 745], "start_point": {"row": 266, "column": 7}, "end_point": {"row": 266, "column": 31}}, {"id": 733, "type": "identifier", "text": "net", "parent": 732, "children": [], "start_point": {"row": 266, "column": 8}, "end_point": {"row": 266, "column": 11}}, {"id": 734, "type": "binary_expression", "text": "((u8 *)&t) + 1", "parent": 732, "children": [735, 743, 744], "start_point": {"row": 266, "column": 13}, "end_point": {"row": 266, "column": 27}}, {"id": 735, "type": "parenthesized_expression", "text": "((u8 *)&t)", "parent": 734, "children": [736], "start_point": {"row": 266, "column": 13}, "end_point": {"row": 266, "column": 23}}, {"id": 736, "type": "cast_expression", "text": "(u8 *)&t", "parent": 735, "children": [737, 741], "start_point": {"row": 266, "column": 14}, "end_point": {"row": 266, "column": 22}}, {"id": 737, "type": "type_descriptor", "text": "u8 *", "parent": 736, "children": [738, 739], "start_point": {"row": 266, "column": 15}, "end_point": {"row": 266, "column": 19}}, {"id": 738, "type": "type_identifier", "text": "u8", "parent": 737, "children": [], "start_point": {"row": 266, "column": 15}, "end_point": {"row": 266, "column": 17}}, {"id": 739, "type": "abstract_pointer_declarator", "text": "*", "parent": 737, "children": [740], "start_point": {"row": 266, "column": 18}, "end_point": {"row": 266, "column": 19}}, {"id": 740, "type": "*", "text": "*", "parent": 739, "children": [], "start_point": {"row": 266, "column": 18}, "end_point": {"row": 266, "column": 19}}, {"id": 741, "type": "pointer_expression", "text": "&t", "parent": 736, "children": [742], "start_point": {"row": 266, "column": 20}, "end_point": {"row": 266, "column": 22}}, {"id": 742, "type": "identifier", "text": "t", "parent": 741, "children": [], "start_point": {"row": 266, "column": 21}, "end_point": {"row": 266, "column": 22}}, {"id": 743, "type": "+", "text": "+", "parent": 734, "children": [], "start_point": {"row": 266, "column": 24}, "end_point": {"row": 266, "column": 25}}, {"id": 744, "type": "number_literal", "text": "1", "parent": 734, "children": [], "start_point": {"row": 266, "column": 26}, "end_point": {"row": 266, "column": 27}}, {"id": 745, "type": "number_literal", "text": "3", "parent": 732, "children": [], "start_point": {"row": 266, "column": 29}, "end_point": {"row": 266, "column": 30}}, {"id": 746, "type": "function_definition", "text": "static inline u32 ntoh24(u8 *net)\n{\n\t__be32 t = 0;\n\n\tmemcpy(((u8 *)&t) + 1, net, 3);\n\treturn be32_to_cpu(t);\n}", "parent": 0, "children": [747, 749, 750], "start_point": {"row": 270, "column": 0}, "end_point": {"row": 276, "column": 1}}, {"id": 747, "type": "storage_class_specifier", "text": "inline", "parent": 746, "children": [748], "start_point": {"row": 270, "column": 7}, "end_point": {"row": 270, "column": 13}}, {"id": 748, "type": "inline", "text": "inline", "parent": 747, "children": [], "start_point": {"row": 270, "column": 7}, "end_point": {"row": 270, "column": 13}}, {"id": 749, "type": "type_identifier", "text": "u32", "parent": 746, "children": [], "start_point": {"row": 270, "column": 14}, "end_point": {"row": 270, "column": 17}}, {"id": 750, "type": "function_declarator", "text": "ntoh24(u8 *net)", "parent": 746, "children": [751, 752], "start_point": {"row": 270, "column": 18}, "end_point": {"row": 270, "column": 33}}, {"id": 751, "type": "identifier", "text": "ntoh24", "parent": 750, "children": [], "start_point": {"row": 270, "column": 18}, "end_point": {"row": 270, "column": 24}}, {"id": 752, "type": "parameter_list", "text": "(u8 *net)", "parent": 750, "children": [753], "start_point": {"row": 270, "column": 24}, "end_point": {"row": 270, "column": 33}}, {"id": 753, "type": "parameter_declaration", "text": "u8 *net", "parent": 752, "children": [754, 755], "start_point": {"row": 270, "column": 25}, "end_point": {"row": 270, "column": 32}}, {"id": 754, "type": "type_identifier", "text": "u8", "parent": 753, "children": [], "start_point": {"row": 270, "column": 25}, "end_point": {"row": 270, "column": 27}}, {"id": 755, "type": "pointer_declarator", "text": "*net", "parent": 753, "children": [756, 757], "start_point": {"row": 270, "column": 28}, "end_point": {"row": 270, "column": 32}}, {"id": 756, "type": "*", "text": "*", "parent": 755, "children": [], "start_point": {"row": 270, "column": 28}, "end_point": {"row": 270, "column": 29}}, {"id": 757, "type": "identifier", "text": "net", "parent": 755, "children": [], "start_point": {"row": 270, "column": 29}, "end_point": {"row": 270, "column": 32}}, {"id": 758, "type": "declaration", "text": "__be32 t = 0;", "parent": 746, "children": [759, 760], "start_point": {"row": 272, "column": 1}, "end_point": {"row": 272, "column": 14}}, {"id": 759, "type": "type_identifier", "text": "__be32", "parent": 758, "children": [], "start_point": {"row": 272, "column": 1}, "end_point": {"row": 272, "column": 7}}, {"id": 760, "type": "init_declarator", "text": "t = 0", "parent": 758, "children": [761, 762, 763], "start_point": {"row": 272, "column": 8}, "end_point": {"row": 272, "column": 13}}, {"id": 761, "type": "identifier", "text": "t", "parent": 760, "children": [], "start_point": {"row": 272, "column": 8}, "end_point": {"row": 272, "column": 9}}, {"id": 762, "type": "=", "text": "=", "parent": 760, "children": [], "start_point": {"row": 272, "column": 10}, "end_point": {"row": 272, "column": 11}}, {"id": 763, "type": "number_literal", "text": "0", "parent": 760, "children": [], "start_point": {"row": 272, "column": 12}, "end_point": {"row": 272, "column": 13}}, {"id": 764, "type": "call_expression", "text": "memcpy(((u8 *)&t) + 1, net, 3)", "parent": 746, "children": [765, 766], "start_point": {"row": 274, "column": 1}, "end_point": {"row": 274, "column": 31}}, {"id": 765, "type": "identifier", "text": "memcpy", "parent": 764, "children": [], "start_point": {"row": 274, "column": 1}, "end_point": {"row": 274, "column": 7}}, {"id": 766, "type": "argument_list", "text": "(((u8 *)&t) + 1, net, 3)", "parent": 764, "children": [767, 778, 779], "start_point": {"row": 274, "column": 7}, "end_point": {"row": 274, "column": 31}}, {"id": 767, "type": "binary_expression", "text": "((u8 *)&t) + 1", "parent": 766, "children": [768, 776, 777], "start_point": {"row": 274, "column": 8}, "end_point": {"row": 274, "column": 22}}, {"id": 768, "type": "parenthesized_expression", "text": "((u8 *)&t)", "parent": 767, "children": [769], "start_point": {"row": 274, "column": 8}, "end_point": {"row": 274, "column": 18}}, {"id": 769, "type": "cast_expression", "text": "(u8 *)&t", "parent": 768, "children": [770, 774], "start_point": {"row": 274, "column": 9}, "end_point": {"row": 274, "column": 17}}, {"id": 770, "type": "type_descriptor", "text": "u8 *", "parent": 769, "children": [771, 772], "start_point": {"row": 274, "column": 10}, "end_point": {"row": 274, "column": 14}}, {"id": 771, "type": "type_identifier", "text": "u8", "parent": 770, "children": [], "start_point": {"row": 274, "column": 10}, "end_point": {"row": 274, "column": 12}}, {"id": 772, "type": "abstract_pointer_declarator", "text": "*", "parent": 770, "children": [773], "start_point": {"row": 274, "column": 13}, "end_point": {"row": 274, "column": 14}}, {"id": 773, "type": "*", "text": "*", "parent": 772, "children": [], "start_point": {"row": 274, "column": 13}, "end_point": {"row": 274, "column": 14}}, {"id": 774, "type": "pointer_expression", "text": "&t", "parent": 769, "children": [775], "start_point": {"row": 274, "column": 15}, "end_point": {"row": 274, "column": 17}}, {"id": 775, "type": "identifier", "text": "t", "parent": 774, "children": [], "start_point": {"row": 274, "column": 16}, "end_point": {"row": 274, "column": 17}}, {"id": 776, "type": "+", "text": "+", "parent": 767, "children": [], "start_point": {"row": 274, "column": 19}, "end_point": {"row": 274, "column": 20}}, {"id": 777, "type": "number_literal", "text": "1", "parent": 767, "children": [], "start_point": {"row": 274, "column": 21}, "end_point": {"row": 274, "column": 22}}, {"id": 778, "type": "identifier", "text": "net", "parent": 766, "children": [], "start_point": {"row": 274, "column": 24}, "end_point": {"row": 274, "column": 27}}, {"id": 779, "type": "number_literal", "text": "3", "parent": 766, "children": [], "start_point": {"row": 274, "column": 29}, "end_point": {"row": 274, "column": 30}}, {"id": 780, "type": "return_statement", "text": "return be32_to_cpu(t);", "parent": 746, "children": [781], "start_point": {"row": 275, "column": 1}, "end_point": {"row": 275, "column": 23}}, {"id": 781, "type": "call_expression", "text": "be32_to_cpu(t)", "parent": 780, "children": [782, 783], "start_point": {"row": 275, "column": 8}, "end_point": {"row": 275, "column": 22}}, {"id": 782, "type": "identifier", "text": "be32_to_cpu", "parent": 781, "children": [], "start_point": {"row": 275, "column": 8}, "end_point": {"row": 275, "column": 19}}, {"id": 783, "type": "argument_list", "text": "(t)", "parent": 781, "children": [784], "start_point": {"row": 275, "column": 19}, "end_point": {"row": 275, "column": 22}}, {"id": 784, "type": "identifier", "text": "t", "parent": 783, "children": [], "start_point": {"row": 275, "column": 20}, "end_point": {"row": 275, "column": 21}}, {"id": 785, "type": "preproc_ifdef", "text": "#ifdef CONFIG_XFRM\nstatic inline bool using_ipsec(struct smc_sock *smc)\n{\n\treturn (smc->clcsock->sk->sk_policy[0] ||\n\t\tsmc->clcsock->sk->sk_policy[1]) ? true : false;\n}\n#else\nstatic inline bool using_ipsec(struct smc_sock *smc)\n{\n\treturn false;\n}\n#endif", "parent": 0, "children": [786, 787, 788, 828, 846], "start_point": {"row": 278, "column": 0}, "end_point": {"row": 289, "column": 6}}, {"id": 786, "type": "#ifdef", "text": "#ifdef", "parent": 785, "children": [], "start_point": {"row": 278, "column": 0}, "end_point": {"row": 278, "column": 6}}, {"id": 787, "type": "identifier", "text": "CONFIG_XFRM", "parent": 785, "children": [], "start_point": {"row": 278, "column": 7}, "end_point": {"row": 278, "column": 18}}, {"id": 788, "type": "function_definition", "text": "static inline bool using_ipsec(struct smc_sock *smc)\n{\n\treturn (smc->clcsock->sk->sk_policy[0] ||\n\t\tsmc->clcsock->sk->sk_policy[1]) ? true : false;\n}", "parent": 785, "children": [789, 791, 792], "start_point": {"row": 279, "column": 0}, "end_point": {"row": 283, "column": 1}}, {"id": 789, "type": "storage_class_specifier", "text": "inline", "parent": 788, "children": [790], "start_point": {"row": 279, "column": 7}, "end_point": {"row": 279, "column": 13}}, {"id": 790, "type": "inline", "text": "inline", "parent": 789, "children": [], "start_point": {"row": 279, "column": 7}, "end_point": {"row": 279, "column": 13}}, {"id": 791, "type": "primitive_type", "text": "bool", "parent": 788, "children": [], "start_point": {"row": 279, "column": 14}, "end_point": {"row": 279, "column": 18}}, {"id": 792, "type": "function_declarator", "text": "using_ipsec(struct smc_sock *smc)", "parent": 788, "children": [793, 794], "start_point": {"row": 279, "column": 19}, "end_point": {"row": 279, "column": 52}}, {"id": 793, "type": "identifier", "text": "using_ipsec", "parent": 792, "children": [], "start_point": {"row": 279, "column": 19}, "end_point": {"row": 279, "column": 30}}, {"id": 794, "type": "parameter_list", "text": "(struct smc_sock *smc)", "parent": 792, "children": [795], "start_point": {"row": 279, "column": 30}, "end_point": {"row": 279, "column": 52}}, {"id": 795, "type": "parameter_declaration", "text": "struct smc_sock *smc", "parent": 794, "children": [796, 799], "start_point": {"row": 279, "column": 31}, "end_point": {"row": 279, "column": 51}}, {"id": 796, "type": "struct_specifier", "text": "struct smc_sock", "parent": 795, "children": [797, 798], "start_point": {"row": 279, "column": 31}, "end_point": {"row": 279, "column": 46}}, {"id": 797, "type": "struct", "text": "struct", "parent": 796, "children": [], "start_point": {"row": 279, "column": 31}, "end_point": {"row": 279, "column": 37}}, {"id": 798, "type": "type_identifier", "text": "smc_sock", "parent": 796, "children": [], "start_point": {"row": 279, "column": 38}, "end_point": {"row": 279, "column": 46}}, {"id": 799, "type": "pointer_declarator", "text": "*smc", "parent": 795, "children": [800, 801], "start_point": {"row": 279, "column": 47}, "end_point": {"row": 279, "column": 51}}, {"id": 800, "type": "*", "text": "*", "parent": 799, "children": [], "start_point": {"row": 279, "column": 47}, "end_point": {"row": 279, "column": 48}}, {"id": 801, "type": "identifier", "text": "smc", "parent": 799, "children": [], "start_point": {"row": 279, "column": 48}, "end_point": {"row": 279, "column": 51}}, {"id": 802, "type": "return_statement", "text": "return (smc->clcsock->sk->sk_policy[0] ||\n\t\tsmc->clcsock->sk->sk_policy[1]) ? true : false;", "parent": 788, "children": [803], "start_point": {"row": 281, "column": 1}, "end_point": {"row": 282, "column": 49}}, {"id": 803, "type": "conditional_expression", "text": "(smc->clcsock->sk->sk_policy[0] ||\n\t\tsmc->clcsock->sk->sk_policy[1]) ? true : false", "parent": 802, "children": [804, 825, 826, 827], "start_point": {"row": 281, "column": 8}, "end_point": {"row": 282, "column": 48}}, {"id": 804, "type": "parenthesized_expression", "text": "(smc->clcsock->sk->sk_policy[0] ||\n\t\tsmc->clcsock->sk->sk_policy[1])", "parent": 803, "children": [805], "start_point": {"row": 281, "column": 8}, "end_point": {"row": 282, "column": 33}}, {"id": 805, "type": "binary_expression", "text": "smc->clcsock->sk->sk_policy[0] ||\n\t\tsmc->clcsock->sk->sk_policy[1]", "parent": 804, "children": [806, 815, 816], "start_point": {"row": 281, "column": 9}, "end_point": {"row": 282, "column": 32}}, {"id": 806, "type": "subscript_expression", "text": "smc->clcsock->sk->sk_policy[0]", "parent": 805, "children": [807, 814], "start_point": {"row": 281, "column": 9}, "end_point": {"row": 281, "column": 39}}, {"id": 807, "type": "field_expression", "text": "smc->clcsock->sk->sk_policy", "parent": 806, "children": [808, 813], "start_point": {"row": 281, "column": 9}, "end_point": {"row": 281, "column": 36}}, {"id": 808, "type": "field_expression", "text": "smc->clcsock->sk", "parent": 807, "children": [809, 812], "start_point": {"row": 281, "column": 9}, "end_point": {"row": 281, "column": 25}}, {"id": 809, "type": "field_expression", "text": "smc->clcsock", "parent": 808, "children": [810, 811], "start_point": {"row": 281, "column": 9}, "end_point": {"row": 281, "column": 21}}, {"id": 810, "type": "identifier", "text": "smc", "parent": 809, "children": [], "start_point": {"row": 281, "column": 9}, "end_point": {"row": 281, "column": 12}}, {"id": 811, "type": "field_identifier", "text": "clcsock", "parent": 809, "children": [], "start_point": {"row": 281, "column": 14}, "end_point": {"row": 281, "column": 21}}, {"id": 812, "type": "field_identifier", "text": "sk", "parent": 808, "children": [], "start_point": {"row": 281, "column": 23}, "end_point": {"row": 281, "column": 25}}, {"id": 813, "type": "field_identifier", "text": "sk_policy", "parent": 807, "children": [], "start_point": {"row": 281, "column": 27}, "end_point": {"row": 281, "column": 36}}, {"id": 814, "type": "number_literal", "text": "0", "parent": 806, "children": [], "start_point": {"row": 281, "column": 37}, "end_point": {"row": 281, "column": 38}}, {"id": 815, "type": "||", "text": "||", "parent": 805, "children": [], "start_point": {"row": 281, "column": 40}, "end_point": {"row": 281, "column": 42}}, {"id": 816, "type": "subscript_expression", "text": "smc->clcsock->sk->sk_policy[1]", "parent": 805, "children": [817, 824], "start_point": {"row": 282, "column": 2}, "end_point": {"row": 282, "column": 32}}, {"id": 817, "type": "field_expression", "text": "smc->clcsock->sk->sk_policy", "parent": 816, "children": [818, 823], "start_point": {"row": 282, "column": 2}, "end_point": {"row": 282, "column": 29}}, {"id": 818, "type": "field_expression", "text": "smc->clcsock->sk", "parent": 817, "children": [819, 822], "start_point": {"row": 282, "column": 2}, "end_point": {"row": 282, "column": 18}}, {"id": 819, "type": "field_expression", "text": "smc->clcsock", "parent": 818, "children": [820, 821], "start_point": {"row": 282, "column": 2}, "end_point": {"row": 282, "column": 14}}, {"id": 820, "type": "identifier", "text": "smc", "parent": 819, "children": [], "start_point": {"row": 282, "column": 2}, "end_point": {"row": 282, "column": 5}}, {"id": 821, "type": "field_identifier", "text": "clcsock", "parent": 819, "children": [], "start_point": {"row": 282, "column": 7}, "end_point": {"row": 282, "column": 14}}, {"id": 822, "type": "field_identifier", "text": "sk", "parent": 818, "children": [], "start_point": {"row": 282, "column": 16}, "end_point": {"row": 282, "column": 18}}, {"id": 823, "type": "field_identifier", "text": "sk_policy", "parent": 817, "children": [], "start_point": {"row": 282, "column": 20}, "end_point": {"row": 282, "column": 29}}, {"id": 824, "type": "number_literal", "text": "1", "parent": 816, "children": [], "start_point": {"row": 282, "column": 30}, "end_point": {"row": 282, "column": 31}}, {"id": 825, "type": "?", "text": "?", "parent": 803, "children": [], "start_point": {"row": 282, "column": 34}, "end_point": {"row": 282, "column": 35}}, {"id": 826, "type": "true", "text": "true", "parent": 803, "children": [], "start_point": {"row": 282, "column": 36}, "end_point": {"row": 282, "column": 40}}, {"id": 827, "type": "false", "text": "false", "parent": 803, "children": [], "start_point": {"row": 282, "column": 43}, "end_point": {"row": 282, "column": 48}}, {"id": 828, "type": "preproc_else", "text": "#else\nstatic inline bool using_ipsec(struct smc_sock *smc)\n{\n\treturn false;\n}", "parent": 785, "children": [829, 830], "start_point": {"row": 284, "column": 0}, "end_point": {"row": 288, "column": 1}}, {"id": 829, "type": "#else", "text": "#else", "parent": 828, "children": [], "start_point": {"row": 284, "column": 0}, "end_point": {"row": 284, "column": 5}}, {"id": 830, "type": "function_definition", "text": "static inline bool using_ipsec(struct smc_sock *smc)\n{\n\treturn false;\n}", "parent": 828, "children": [831, 833, 834], "start_point": {"row": 285, "column": 0}, "end_point": {"row": 288, "column": 1}}, {"id": 831, "type": "storage_class_specifier", "text": "inline", "parent": 830, "children": [832], "start_point": {"row": 285, "column": 7}, "end_point": {"row": 285, "column": 13}}, {"id": 832, "type": "inline", "text": "inline", "parent": 831, "children": [], "start_point": {"row": 285, "column": 7}, "end_point": {"row": 285, "column": 13}}, {"id": 833, "type": "primitive_type", "text": "bool", "parent": 830, "children": [], "start_point": {"row": 285, "column": 14}, "end_point": {"row": 285, "column": 18}}, {"id": 834, "type": "function_declarator", "text": "using_ipsec(struct smc_sock *smc)", "parent": 830, "children": [835, 836], "start_point": {"row": 285, "column": 19}, "end_point": {"row": 285, "column": 52}}, {"id": 835, "type": "identifier", "text": "using_ipsec", "parent": 834, "children": [], "start_point": {"row": 285, "column": 19}, "end_point": {"row": 285, "column": 30}}, {"id": 836, "type": "parameter_list", "text": "(struct smc_sock *smc)", "parent": 834, "children": [837], "start_point": {"row": 285, "column": 30}, "end_point": {"row": 285, "column": 52}}, {"id": 837, "type": "parameter_declaration", "text": "struct smc_sock *smc", "parent": 836, "children": [838, 841], "start_point": {"row": 285, "column": 31}, "end_point": {"row": 285, "column": 51}}, {"id": 838, "type": "struct_specifier", "text": "struct smc_sock", "parent": 837, "children": [839, 840], "start_point": {"row": 285, "column": 31}, "end_point": {"row": 285, "column": 46}}, {"id": 839, "type": "struct", "text": "struct", "parent": 838, "children": [], "start_point": {"row": 285, "column": 31}, "end_point": {"row": 285, "column": 37}}, {"id": 840, "type": "type_identifier", "text": "smc_sock", "parent": 838, "children": [], "start_point": {"row": 285, "column": 38}, "end_point": {"row": 285, "column": 46}}, {"id": 841, "type": "pointer_declarator", "text": "*smc", "parent": 837, "children": [842, 843], "start_point": {"row": 285, "column": 47}, "end_point": {"row": 285, "column": 51}}, {"id": 842, "type": "*", "text": "*", "parent": 841, "children": [], "start_point": {"row": 285, "column": 47}, "end_point": {"row": 285, "column": 48}}, {"id": 843, "type": "identifier", "text": "smc", "parent": 841, "children": [], "start_point": {"row": 285, "column": 48}, "end_point": {"row": 285, "column": 51}}, {"id": 844, "type": "return_statement", "text": "return false;", "parent": 830, "children": [845], "start_point": {"row": 287, "column": 1}, "end_point": {"row": 287, "column": 14}}, {"id": 845, "type": "false", "text": "false", "parent": 844, "children": [], "start_point": {"row": 287, "column": 8}, "end_point": {"row": 287, "column": 13}}, {"id": 846, "type": "#endif", "text": "#endif", "parent": 785, "children": [], "start_point": {"row": 289, "column": 0}, "end_point": {"row": 289, "column": 6}}, {"id": 847, "type": "declaration", "text": "struct sock *smc_accept_dequeue(struct sock *parent, struct socket *new_sock);", "parent": 0, "children": [848, 851], "start_point": {"row": 291, "column": 0}, "end_point": {"row": 291, "column": 78}}, {"id": 848, "type": "struct_specifier", "text": "struct sock", "parent": 847, "children": [849, 850], "start_point": {"row": 291, "column": 0}, "end_point": {"row": 291, "column": 11}}, {"id": 849, "type": "struct", "text": "struct", "parent": 848, "children": [], "start_point": {"row": 291, "column": 0}, "end_point": {"row": 291, "column": 6}}, {"id": 850, "type": "type_identifier", "text": "sock", "parent": 848, "children": [], "start_point": {"row": 291, "column": 7}, "end_point": {"row": 291, "column": 11}}, {"id": 851, "type": "pointer_declarator", "text": "*smc_accept_dequeue(struct sock *parent, struct socket *new_sock)", "parent": 847, "children": [852, 853], "start_point": {"row": 291, "column": 12}, "end_point": {"row": 291, "column": 77}}, {"id": 852, "type": "*", "text": "*", "parent": 851, "children": [], "start_point": {"row": 291, "column": 12}, "end_point": {"row": 291, "column": 13}}, {"id": 853, "type": "function_declarator", "text": "smc_accept_dequeue(struct sock *parent, struct socket *new_sock)", "parent": 851, "children": [854, 855], "start_point": {"row": 291, "column": 13}, "end_point": {"row": 291, "column": 77}}, {"id": 854, "type": "identifier", "text": "smc_accept_dequeue", "parent": 853, "children": [], "start_point": {"row": 291, "column": 13}, "end_point": {"row": 291, "column": 31}}, {"id": 855, "type": "parameter_list", "text": "(struct sock *parent, struct socket *new_sock)", "parent": 853, "children": [856, 863], "start_point": {"row": 291, "column": 31}, "end_point": {"row": 291, "column": 77}}, {"id": 856, "type": "parameter_declaration", "text": "struct sock *parent", "parent": 855, "children": [857, 860], "start_point": {"row": 291, "column": 32}, "end_point": {"row": 291, "column": 51}}, {"id": 857, "type": "struct_specifier", "text": "struct sock", "parent": 856, "children": [858, 859], "start_point": {"row": 291, "column": 32}, "end_point": {"row": 291, "column": 43}}, {"id": 858, "type": "struct", "text": "struct", "parent": 857, "children": [], "start_point": {"row": 291, "column": 32}, "end_point": {"row": 291, "column": 38}}, {"id": 859, "type": "type_identifier", "text": "sock", "parent": 857, "children": [], "start_point": {"row": 291, "column": 39}, "end_point": {"row": 291, "column": 43}}, {"id": 860, "type": "pointer_declarator", "text": "*parent", "parent": 856, "children": [861, 862], "start_point": {"row": 291, "column": 44}, "end_point": {"row": 291, "column": 51}}, {"id": 861, "type": "*", "text": "*", "parent": 860, "children": [], "start_point": {"row": 291, "column": 44}, "end_point": {"row": 291, "column": 45}}, {"id": 862, "type": "identifier", "text": "parent", "parent": 860, "children": [], "start_point": {"row": 291, "column": 45}, "end_point": {"row": 291, "column": 51}}, {"id": 863, "type": "parameter_declaration", "text": "struct socket *new_sock", "parent": 855, "children": [864, 867], "start_point": {"row": 291, "column": 53}, "end_point": {"row": 291, "column": 76}}, {"id": 864, "type": "struct_specifier", "text": "struct socket", "parent": 863, "children": [865, 866], "start_point": {"row": 291, "column": 53}, "end_point": {"row": 291, "column": 66}}, {"id": 865, "type": "struct", "text": "struct", "parent": 864, "children": [], "start_point": {"row": 291, "column": 53}, "end_point": {"row": 291, "column": 59}}, {"id": 866, "type": "type_identifier", "text": "socket", "parent": 864, "children": [], "start_point": {"row": 291, "column": 60}, "end_point": {"row": 291, "column": 66}}, {"id": 867, "type": "pointer_declarator", "text": "*new_sock", "parent": 863, "children": [868, 869], "start_point": {"row": 291, "column": 67}, "end_point": {"row": 291, "column": 76}}, {"id": 868, "type": "*", "text": "*", "parent": 867, "children": [], "start_point": {"row": 291, "column": 67}, "end_point": {"row": 291, "column": 68}}, {"id": 869, "type": "identifier", "text": "new_sock", "parent": 867, "children": [], "start_point": {"row": 291, "column": 68}, "end_point": {"row": 291, "column": 76}}, {"id": 870, "type": "declaration", "text": "void smc_close_non_accepted(struct sock *sk);", "parent": 0, "children": [871, 872], "start_point": {"row": 292, "column": 0}, "end_point": {"row": 292, "column": 45}}, {"id": 871, "type": "primitive_type", "text": "void", "parent": 870, "children": [], "start_point": {"row": 292, "column": 0}, "end_point": {"row": 292, "column": 4}}, {"id": 872, "type": "function_declarator", "text": "smc_close_non_accepted(struct sock *sk)", "parent": 870, "children": [873, 874], "start_point": {"row": 292, "column": 5}, "end_point": {"row": 292, "column": 44}}, {"id": 873, "type": "identifier", "text": "smc_close_non_accepted", "parent": 872, "children": [], "start_point": {"row": 292, "column": 5}, "end_point": {"row": 292, "column": 27}}, {"id": 874, "type": "parameter_list", "text": "(struct sock *sk)", "parent": 872, "children": [875], "start_point": {"row": 292, "column": 27}, "end_point": {"row": 292, "column": 44}}, {"id": 875, "type": "parameter_declaration", "text": "struct sock *sk", "parent": 874, "children": [876, 879], "start_point": {"row": 292, "column": 28}, "end_point": {"row": 292, "column": 43}}, {"id": 876, "type": "struct_specifier", "text": "struct sock", "parent": 875, "children": [877, 878], "start_point": {"row": 292, "column": 28}, "end_point": {"row": 292, "column": 39}}, {"id": 877, "type": "struct", "text": "struct", "parent": 876, "children": [], "start_point": {"row": 292, "column": 28}, "end_point": {"row": 292, "column": 34}}, {"id": 878, "type": "type_identifier", "text": "sock", "parent": 876, "children": [], "start_point": {"row": 292, "column": 35}, "end_point": {"row": 292, "column": 39}}, {"id": 879, "type": "pointer_declarator", "text": "*sk", "parent": 875, "children": [880, 881], "start_point": {"row": 292, "column": 40}, "end_point": {"row": 292, "column": 43}}, {"id": 880, "type": "*", "text": "*", "parent": 879, "children": [], "start_point": {"row": 292, "column": 40}, "end_point": {"row": 292, "column": 41}}, {"id": 881, "type": "identifier", "text": "sk", "parent": 879, "children": [], "start_point": {"row": 292, "column": 41}, "end_point": {"row": 292, "column": 43}}, {"id": 882, "type": "#endif", "text": "#endif", "parent": 0, "children": [], "start_point": {"row": 294, "column": 0}, "end_point": {"row": 294, "column": 6}}]}, "node_categories": {"declarations": {"functions": [136, 301, 349, 562, 637, 645, 693, 699, 705, 709, 746, 750, 788, 792, 830, 834, 853, 872], "variables": [53, 60, 129, 133, 150, 155, 160, 165, 176, 181, 186, 191, 206, 211, 216, 221, 226, 231, 242, 247, 252, 257, 262, 267, 273, 277, 280, 283, 286, 292, 297, 306, 310, 315, 318, 321, 324, 329, 334, 339, 344, 373, 378, 385, 392, 395, 398, 401, 404, 407, 414, 421, 424, 427, 432, 437, 442, 447, 452, 455, 458, 461, 464, 469, 472, 477, 482, 487, 492, 495, 498, 501, 504, 510, 514, 519, 524, 529, 532, 535, 540, 548, 553, 560, 568, 575, 580, 587, 592, 597, 602, 607, 610, 613, 616, 619, 622, 627, 632, 648, 664, 673, 686, 712, 717, 720, 753, 758, 795, 837, 847, 856, 863, 870, 875], "classes": [54, 56, 57, 61, 63, 64, 126, 127, 130, 131, 141, 142, 197, 198, 274, 275, 278, 279, 307, 308, 311, 312, 325, 326, 330, 331, 335, 336, 340, 341, 370, 371, 374, 375, 379, 380, 386, 387, 408, 409, 415, 416, 428, 429, 433, 434, 438, 439, 443, 444, 448, 449, 465, 466, 473, 474, 478, 479, 483, 484, 515, 516, 520, 521, 525, 526, 545, 546, 549, 550, 554, 555, 569, 570, 576, 577, 581, 582, 588, 589, 593, 594, 598, 599, 603, 604, 633, 634, 638, 640, 641, 649, 650, 658, 659, 665, 667, 668, 674, 676, 677, 687, 706, 747, 789, 796, 797, 831, 838, 839, 848, 849, 857, 858, 864, 865, 876, 877], "imports": [6, 7, 9, 10, 12, 13, 15, 16, 18, 19], "modules": [], "enums": [74, 75, 77, 78, 82, 86, 90, 94, 98, 102, 106, 110, 114, 118, 122, 354, 355, 357, 358, 362, 366, 488, 489]}, "statements": {"expressions": [656, 726, 730, 734, 735, 736, 741, 764, 767, 768, 769, 774, 781, 804, 805, 806, 807, 808, 809, 816, 817, 818, 819], "assignments": [723], "loops": [], "conditionals": [0, 1, 2, 5, 23, 27, 31, 35, 39, 43, 47, 51, 58, 59, 65, 66, 67, 68, 69, 72, 73, 76, 79, 83, 87, 91, 95, 99, 103, 107, 111, 115, 119, 123, 128, 132, 134, 135, 137, 143, 144, 145, 148, 151, 152, 156, 157, 161, 162, 166, 167, 170, 171, 174, 177, 178, 182, 183, 187, 188, 192, 193, 196, 199, 200, 201, 204, 207, 208, 212, 213, 217, 218, 222, 223, 227, 228, 232, 233, 236, 237, 240, 243, 244, 248, 249, 253, 254, 258, 259, 263, 264, 268, 269, 272, 276, 281, 282, 284, 285, 287, 288, 289, 290, 291, 293, 294, 298, 299, 300, 302, 309, 313, 314, 316, 317, 319, 320, 322, 323, 327, 328, 332, 333, 337, 338, 342, 343, 345, 347, 350, 356, 359, 363, 367, 372, 376, 377, 381, 384, 388, 391, 393, 394, 396, 397, 400, 402, 403, 406, 410, 413, 417, 420, 423, 426, 430, 431, 435, 436, 440, 441, 445, 446, 450, 451, 453, 454, 456, 457, 459, 460, 462, 463, 467, 468, 470, 471, 475, 476, 480, 481, 485, 486, 490, 491, 494, 497, 500, 502, 503, 505, 506, 507, 508, 509, 511, 512, 513, 517, 518, 522, 523, 527, 528, 530, 531, 533, 534, 536, 537, 541, 542, 547, 551, 552, 556, 559, 566, 571, 574, 578, 579, 583, 586, 590, 591, 595, 596, 600, 601, 605, 606, 608, 609, 612, 615, 617, 618, 621, 623, 624, 628, 629, 635, 636, 642, 646, 651, 654, 660, 663, 669, 672, 678, 681, 684, 689, 691, 692, 695, 697, 701, 703, 710, 713, 716, 718, 719, 721, 722, 724, 727, 729, 731, 733, 738, 742, 749, 751, 754, 757, 759, 761, 765, 771, 775, 778, 782, 784, 785, 786, 787, 793, 798, 801, 803, 810, 811, 812, 813, 820, 821, 822, 823, 835, 840, 843, 846, 850, 854, 859, 862, 866, 869, 873, 878, 881, 882], "returns": [655, 780, 802, 844], "exceptions": []}, "expressions": {"calls": [], "literals": [8, 11, 14, 17, 20, 81, 85, 89, 93, 97, 101, 105, 109, 113, 117, 121, 125, 140, 154, 159, 164, 169, 180, 185, 190, 195, 210, 215, 220, 225, 230, 235, 246, 251, 256, 261, 266, 271, 305, 348, 353, 361, 365, 369, 539, 544, 626, 631, 744, 745, 763, 777, 779, 814, 824], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": [153, 158, 163, 168, 179, 184, 189, 194, 209, 214, 219, 224, 229, 234, 245, 250, 255, 260, 265, 270, 538, 543, 625, 630]}}, "cross_language_map": {"function_declarations": [{"node_id": 136, "universal_type": "function", "name": "unknown", "text_snippet": "__aligned(1)"}, {"node_id": 301, "universal_type": "function", "name": "unknown", "text_snippet": "__aligned(8)"}, {"node_id": 349, "universal_type": "function", "name": "unknown", "text_snippet": "__aligned(8)"}, {"node_id": 562, "universal_type": "function", "name": "unknown", "text_snippet": "(*clcsk_data_ready)(struct sock *sk)"}, {"node_id": 637, "universal_type": "function", "name": "smc_sock", "text_snippet": "static inline struct smc_sock *smc_sk(const struct sock *sk)\n{\n\treturn (struct smc_sock *)sk;\n}"}, {"node_id": 645, "universal_type": "function", "name": "sock", "text_snippet": "smc_sk(const struct sock *sk)"}, {"node_id": 693, "universal_type": "function", "name": "unknown", "text_snippet": "#define ntohll(x) be64_to_cpu(x)\n"}, {"node_id": 699, "universal_type": "function", "name": "unknown", "text_snippet": "#define htonll(x) cpu_to_be64(x)\n"}, {"node_id": 705, "universal_type": "function", "name": "hton24", "text_snippet": "static inline void hton24(u8 *net, u32 host)\n{\n\t__be32 t;\n\n\tt = cpu_to_be32(host);\n\tmemcpy(net, ((u8"}, {"node_id": 709, "universal_type": "function", "name": "unknown", "text_snippet": "hton24(u8 *net, u32 host)"}, {"node_id": 746, "universal_type": "function", "name": "unknown", "text_snippet": "static inline u32 ntoh24(u8 *net)\n{\n\t__be32 t = 0;\n\n\tmemcpy(((u8 *)&t) + 1, net, 3);\n\treturn be32_to"}, {"node_id": 750, "universal_type": "function", "name": "unknown", "text_snippet": "ntoh24(u8 *net)"}, {"node_id": 788, "universal_type": "function", "name": "using_ipsec", "text_snippet": "static inline bool using_ipsec(struct smc_sock *smc)\n{\n\treturn (smc->clcsock->sk->sk_policy[0] ||\n\t\t"}, {"node_id": 792, "universal_type": "function", "name": "unknown", "text_snippet": "using_ipsec(struct smc_sock *smc)"}, {"node_id": 830, "universal_type": "function", "name": "using_ipsec", "text_snippet": "static inline bool using_ipsec(struct smc_sock *smc)\n{\n\treturn false;\n}"}, {"node_id": 834, "universal_type": "function", "name": "unknown", "text_snippet": "using_ipsec(struct smc_sock *smc)"}, {"node_id": 853, "universal_type": "function", "name": "socket", "text_snippet": "smc_accept_dequeue(struct sock *parent, struct socket *new_sock)"}, {"node_id": 872, "universal_type": "function", "name": "unknown", "text_snippet": "smc_close_non_accepted(struct sock *sk)"}], "class_declarations": [{"node_id": 54, "universal_type": "class", "name": "unknown", "text_snippet": "extern"}, {"node_id": 56, "universal_type": "class", "name": "proto", "text_snippet": "struct proto"}, {"node_id": 57, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 61, "universal_type": "class", "name": "unknown", "text_snippet": "extern"}, {"node_id": 63, "universal_type": "class", "name": "proto", "text_snippet": "struct proto"}, {"node_id": 64, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 126, "universal_type": "class", "name": "smc_link_group", "text_snippet": "struct smc_link_group"}, {"node_id": 127, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 130, "universal_type": "class", "name": "smc_wr_rx_hdr", "text_snippet": "struct smc_wr_rx_hdr {\t/* common prefix part of LLC and CDC to demultiplex */\n\tu8\t\t\ttype;\n}"}, {"node_id": 131, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 141, "universal_type": "class", "name": "smc_cdc_conn_state_flags", "text_snippet": "struct smc_cdc_conn_state_flags {\n#if defined(__BIG_ENDIAN_BITFIELD)\n\tu8\tpeer_done_writing : 1;\t/* S"}, {"node_id": 142, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 197, "universal_type": "class", "name": "smc_cdc_producer_flags", "text_snippet": "struct smc_cdc_producer_flags {\n#if defined(__BIG_ENDIAN_BITFIELD)\n\tu8\twrite_blocked : 1;\t/* Writing"}, {"node_id": 198, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 274, "universal_type": "class", "name": "smc_host_cursor", "text_snippet": "union smc_host_cursor {\t/* SMC cursor - an offset in an RMBE */\n\tstruct {\n\t\tu16\treserved;\n\t\tu16\twrap"}, {"node_id": 275, "universal_type": "class", "name": "unknown", "text_snippet": "union"}, {"node_id": 278, "universal_type": "class", "name": "{", "text_snippet": "struct {\n\t\tu16\treserved;\n\t\tu16\twrap;\t\t/* window wrap sequence number */\n\t\tu32\tcount;\t\t/* cursor (= o"}, {"node_id": 279, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 307, "universal_type": "class", "name": "smc_host_cdc_msg", "text_snippet": "struct smc_host_cdc_msg {\t\t/* Connection Data Control message */\n\tstruct smc_wr_rx_hdr\t\tcommon; /* ."}, {"node_id": 308, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 311, "universal_type": "class", "name": "smc_wr_rx_hdr", "text_snippet": "struct smc_wr_rx_hdr"}, {"node_id": 312, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 325, "universal_type": "class", "name": "smc_host_cursor", "text_snippet": "union smc_host_cursor"}, {"node_id": 326, "universal_type": "class", "name": "unknown", "text_snippet": "union"}, {"node_id": 330, "universal_type": "class", "name": "smc_host_cursor", "text_snippet": "union smc_host_cursor"}, {"node_id": 331, "universal_type": "class", "name": "unknown", "text_snippet": "union"}, {"node_id": 335, "universal_type": "class", "name": "smc_cdc_producer_flags", "text_snippet": "struct smc_cdc_producer_flags"}, {"node_id": 336, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 340, "universal_type": "class", "name": "smc_cdc_conn_state_flags", "text_snippet": "struct smc_cdc_conn_state_flags"}, {"node_id": 341, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 370, "universal_type": "class", "name": "smc_connection", "text_snippet": "struct smc_connection {\n\tstruct rb_node\t\talert_node;\n\tstruct smc_link_group\t*lgr;\t\t/* link group of "}, {"node_id": 371, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 374, "universal_type": "class", "name": "rb_node", "text_snippet": "struct rb_node"}, {"node_id": 375, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 379, "universal_type": "class", "name": "smc_link_group", "text_snippet": "struct smc_link_group"}, {"node_id": 380, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 386, "universal_type": "class", "name": "smc_link", "text_snippet": "struct smc_link"}, {"node_id": 387, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 408, "universal_type": "class", "name": "smc_buf_desc", "text_snippet": "struct smc_buf_desc"}, {"node_id": 409, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 415, "universal_type": "class", "name": "smc_buf_desc", "text_snippet": "struct smc_buf_desc"}, {"node_id": 416, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 428, "universal_type": "class", "name": "smc_host_cdc_msg", "text_snippet": "struct smc_host_cdc_msg"}, {"node_id": 429, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 433, "universal_type": "class", "name": "smc_host_cursor", "text_snippet": "union smc_host_cursor"}, {"node_id": 434, "universal_type": "class", "name": "unknown", "text_snippet": "union"}, {"node_id": 438, "universal_type": "class", "name": "smc_host_cursor", "text_snippet": "union smc_host_cursor"}, {"node_id": 439, "universal_type": "class", "name": "unknown", "text_snippet": "union"}, {"node_id": 443, "universal_type": "class", "name": "smc_host_cursor", "text_snippet": "union smc_host_cursor"}, {"node_id": 444, "universal_type": "class", "name": "unknown", "text_snippet": "union"}, {"node_id": 448, "universal_type": "class", "name": "smc_host_cursor", "text_snippet": "union smc_host_cursor"}, {"node_id": 449, "universal_type": "class", "name": "unknown", "text_snippet": "union"}, {"node_id": 465, "universal_type": "class", "name": "delayed_work", "text_snippet": "struct delayed_work"}, {"node_id": 466, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 473, "universal_type": "class", "name": "smc_host_cdc_msg", "text_snippet": "struct smc_host_cdc_msg"}, {"node_id": 474, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 478, "universal_type": "class", "name": "smc_host_cursor", "text_snippet": "union smc_host_cursor"}, {"node_id": 479, "universal_type": "class", "name": "unknown", "text_snippet": "union"}, {"node_id": 483, "universal_type": "class", "name": "smc_host_cursor", "text_snippet": "union smc_host_cursor"}, {"node_id": 484, "universal_type": "class", "name": "unknown", "text_snippet": "union"}, {"node_id": 515, "universal_type": "class", "name": "work_struct", "text_snippet": "struct work_struct"}, {"node_id": 516, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 520, "universal_type": "class", "name": "work_struct", "text_snippet": "struct work_struct"}, {"node_id": 521, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 525, "universal_type": "class", "name": "tasklet_struct", "text_snippet": "struct tasklet_struct"}, {"node_id": 526, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 545, "universal_type": "class", "name": "smc_sock", "text_snippet": "struct smc_sock {\t\t\t\t/* smc sock container */\n\tstruct sock\t\tsk;\n\tstruct socket\t\t*clcsock;\t/* interna"}, {"node_id": 546, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 549, "universal_type": "class", "name": "sock", "text_snippet": "struct sock"}, {"node_id": 550, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 554, "universal_type": "class", "name": "socket", "text_snippet": "struct socket"}, {"node_id": 555, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 569, "universal_type": "class", "name": "sock", "text_snippet": "struct sock"}, {"node_id": 570, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 576, "universal_type": "class", "name": "smc_connection", "text_snippet": "struct smc_connection"}, {"node_id": 577, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 581, "universal_type": "class", "name": "smc_sock", "text_snippet": "struct smc_sock"}, {"node_id": 582, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 588, "universal_type": "class", "name": "work_struct", "text_snippet": "struct work_struct"}, {"node_id": 589, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 593, "universal_type": "class", "name": "work_struct", "text_snippet": "struct work_struct"}, {"node_id": 594, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 598, "universal_type": "class", "name": "work_struct", "text_snippet": "struct work_struct"}, {"node_id": 599, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 603, "universal_type": "class", "name": "list_head", "text_snippet": "struct list_head"}, {"node_id": 604, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 633, "universal_type": "class", "name": "mutex", "text_snippet": "struct mutex"}, {"node_id": 634, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 638, "universal_type": "class", "name": "unknown", "text_snippet": "inline"}, {"node_id": 640, "universal_type": "class", "name": "smc_sock", "text_snippet": "struct smc_sock"}, {"node_id": 641, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 649, "universal_type": "class", "name": "sock", "text_snippet": "struct sock"}, {"node_id": 650, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 658, "universal_type": "class", "name": "smc_sock", "text_snippet": "struct smc_sock"}, {"node_id": 659, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 665, "universal_type": "class", "name": "unknown", "text_snippet": "extern"}, {"node_id": 667, "universal_type": "class", "name": "workqueue_struct", "text_snippet": "struct workqueue_struct"}, {"node_id": 668, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 674, "universal_type": "class", "name": "unknown", "text_snippet": "extern"}, {"node_id": 676, "universal_type": "class", "name": "workqueue_struct", "text_snippet": "struct workqueue_struct"}, {"node_id": 677, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 687, "universal_type": "class", "name": "unknown", "text_snippet": "extern"}, {"node_id": 706, "universal_type": "class", "name": "unknown", "text_snippet": "inline"}, {"node_id": 747, "universal_type": "class", "name": "unknown", "text_snippet": "inline"}, {"node_id": 789, "universal_type": "class", "name": "unknown", "text_snippet": "inline"}, {"node_id": 796, "universal_type": "class", "name": "smc_sock", "text_snippet": "struct smc_sock"}, {"node_id": 797, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 831, "universal_type": "class", "name": "unknown", "text_snippet": "inline"}, {"node_id": 838, "universal_type": "class", "name": "smc_sock", "text_snippet": "struct smc_sock"}, {"node_id": 839, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 848, "universal_type": "class", "name": "sock", "text_snippet": "struct sock"}, {"node_id": 849, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 857, "universal_type": "class", "name": "sock", "text_snippet": "struct sock"}, {"node_id": 858, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 864, "universal_type": "class", "name": "socket", "text_snippet": "struct socket"}, {"node_id": 865, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 876, "universal_type": "class", "name": "sock", "text_snippet": "struct sock"}, {"node_id": 877, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}], "import_statements": [{"node_id": 6, "text": "#include <linux/socket.h>\n"}, {"node_id": 7, "text": "#include"}, {"node_id": 9, "text": "#include <linux/types.h>\n"}, {"node_id": 10, "text": "#include"}, {"node_id": 12, "text": "#include <linux/compiler.h> /* __aligned */\n"}, {"node_id": 13, "text": "#include"}, {"node_id": 15, "text": "#include <net/sock.h>\n"}, {"node_id": 16, "text": "#include"}, {"node_id": 18, "text": "#include \"smc_ib.h\"\n"}, {"node_id": 19, "text": "#include"}]}, "original_source_code": "/* SPDX-License-Identifier: GPL-2.0 */\n/*\n * Shared Memory Communications over RDMA (SMC-R) and RoCE\n *\n * Definitions for the SMC module (socket related)\n *\n * Copyright IBM Corp. 2016\n *\n * Author(s): <NAME> <<EMAIL>>\n */\n#ifndef __SMC_H\n#define __SMC_H\n\n#include <linux/socket.h>\n#include <linux/types.h>\n#include <linux/compiler.h> /* __aligned */\n#include <net/sock.h>\n\n#include \"smc_ib.h\"\n\n#define SMC_V1\t\t1\t\t/* SMC version V1 */\n#define SMC_V2\t\t2\t\t/* SMC version V2 */\n#define SMC_RELEASE\t0\n\n#define SMCPROTO_SMC\t\t0\t/* SMC protocol, IPv4 */\n#define SMCPROTO_SMC6\t\t1\t/* SMC protocol, IPv6 */\n\n#define SMC_MAX_ISM_DEVS\t8\t/* max # of proposed non-native ISM\n\t\t\t\t\t * devices\n\t\t\t\t\t */\n\n#define SMC_MAX_HOSTNAME_LEN\t32\n#define SMC_MAX_EID_LEN\t\t32\n\nextern struct proto smc_proto;\nextern struct proto smc_proto6;\n\n#ifdef ATOMIC64_INIT\n#define KERNEL_HAS_ATOMIC64\n#endif\n\nenum smc_state {\t\t/* possible states of an SMC socket */\n\tSMC_ACTIVE\t= 1,\n\tSMC_INIT\t= 2,\n\tSMC_CLOSED\t= 7,\n\tSMC_LISTEN\t= 10,\n\t/* normal close */\n\tSMC_PEERCLOSEWAIT1\t= 20,\n\tSMC_PEERCLOSEWAIT2\t= 21,\n\tSMC_APPFINCLOSEWAIT\t= 24,\n\tSMC_APPCLOSEWAIT1\t= 22,\n\tSMC_APPCLOSEWAIT2\t= 23,\n\tSMC_PEERFINCLOSEWAIT\t= 25,\n\t/* abnormal close */\n\tSMC_PEERABORTWAIT\t= 26,\n\tSMC_PROCESSABORT\t= 27,\n};\n\nstruct smc_link_group;\n\nstruct smc_wr_rx_hdr {\t/* common prefix part of LLC and CDC to demultiplex */\n\tu8\t\t\ttype;\n} __aligned(1);\n\nstruct smc_cdc_conn_state_flags {\n#if defined(__BIG_ENDIAN_BITFIELD)\n\tu8\tpeer_done_writing : 1;\t/* Sending done indicator */\n\tu8\tpeer_conn_closed : 1;\t/* Peer connection closed indicator */\n\tu8\tpeer_conn_abort : 1;\t/* Abnormal close indicator */\n\tu8\treserved : 5;\n#elif defined(__LITTLE_ENDIAN_BITFIELD)\n\tu8\treserved : 5;\n\tu8\tpeer_conn_abort : 1;\n\tu8\tpeer_conn_closed : 1;\n\tu8\tpeer_done_writing : 1;\n#endif\n};\n\nstruct smc_cdc_producer_flags {\n#if defined(__BIG_ENDIAN_BITFIELD)\n\tu8\twrite_blocked : 1;\t/* Writing Blocked, no rx buf space */\n\tu8\turg_data_pending : 1;\t/* Urgent Data Pending */\n\tu8\turg_data_present : 1;\t/* Urgent Data Present */\n\tu8\tcons_curs_upd_req : 1;\t/* cursor update requested */\n\tu8\tfailover_validation : 1;/* message replay due to failover */\n\tu8\treserved : 3;\n#elif defined(__LITTLE_ENDIAN_BITFIELD)\n\tu8\treserved : 3;\n\tu8\tfailover_validation : 1;\n\tu8\tcons_curs_upd_req : 1;\n\tu8\turg_data_present : 1;\n\tu8\turg_data_pending : 1;\n\tu8\twrite_blocked : 1;\n#endif\n};\n\n/* in host byte order */\nunion smc_host_cursor {\t/* SMC cursor - an offset in an RMBE */\n\tstruct {\n\t\tu16\treserved;\n\t\tu16\twrap;\t\t/* window wrap sequence number */\n\t\tu32\tcount;\t\t/* cursor (= offset) part */\n\t};\n#ifdef KERNEL_HAS_ATOMIC64\n\tatomic64_t\t\tacurs;\t/* for atomic processing */\n#else\n\tu64\t\t\tacurs;\t/* for atomic processing */\n#endif\n} __aligned(8);\n\n/* in host byte order, except for flag bitfields in network byte order */\nstruct smc_host_cdc_msg {\t\t/* Connection Data Control message */\n\tstruct smc_wr_rx_hdr\t\tcommon; /* .type = 0xFE */\n\tu8\t\t\t\tlen;\t/* length = 44 */\n\tu16\t\t\t\tseqno;\t/* connection seq # */\n\tu32\t\t\t\ttoken;\t/* alert_token */\n\tunion smc_host_cursor\t\tprod;\t\t/* producer cursor */\n\tunion smc_host_cursor\t\tcons;\t\t/* consumer cursor,\n\t\t\t\t\t\t\t * piggy backed \"ack\"\n\t\t\t\t\t\t\t */\n\tstruct smc_cdc_producer_flags\tprod_flags;\t/* conn. tx/rx status */\n\tstruct smc_cdc_conn_state_flags\tconn_state_flags; /* peer conn. status*/\n\tu8\t\t\t\treserved[18];\n} __aligned(8);\n\nenum smc_urg_state {\n\tSMC_URG_VALID\t= 1,\t\t\t/* data present */\n\tSMC_URG_NOTYET\t= 2,\t\t\t/* data pending */\n\tSMC_URG_READ\t= 3,\t\t\t/* data was already read */\n};\n\nstruct smc_connection {\n\tstruct rb_node\t\talert_node;\n\tstruct smc_link_group\t*lgr;\t\t/* link group of connection */\n\tstruct smc_link\t\t*lnk;\t\t/* assigned SMC-R link */\n\tu32\t\t\talert_token_local; /* unique conn. id */\n\tu8\t\t\tpeer_rmbe_idx;\t/* from tcp handshake */\n\tint\t\t\tpeer_rmbe_size;\t/* size of peer rx buffer */\n\tatomic_t\t\tpeer_rmbe_space;/* remaining free bytes in peer\n\t\t\t\t\t\t * rmbe\n\t\t\t\t\t\t */\n\tint\t\t\trtoken_idx;\t/* idx to peer RMB rkey/addr */\n\n\tstruct smc_buf_desc\t*sndbuf_desc;\t/* send buffer descriptor */\n\tstruct smc_buf_desc\t*rmb_desc;\t/* RMBE descriptor */\n\tint\t\t\trmbe_size_short;/* compressed notation */\n\tint\t\t\trmbe_update_limit;\n\t\t\t\t\t\t/* lower limit for consumer\n\t\t\t\t\t\t * cursor update\n\t\t\t\t\t\t */\n\n\tstruct smc_host_cdc_msg\tlocal_tx_ctrl;\t/* host byte order staging\n\t\t\t\t\t\t * buffer for CDC msg send\n\t\t\t\t\t\t * .prod cf. TCP snd_nxt\n\t\t\t\t\t\t * .cons cf. TCP sends ack\n\t\t\t\t\t\t */\n\tunion smc_host_cursor\tlocal_tx_ctrl_fin;\n\t\t\t\t\t\t/* prod crsr - confirmed by peer\n\t\t\t\t\t\t */\n\tunion smc_host_cursor\ttx_curs_prep;\t/* tx - prepared data\n\t\t\t\t\t\t * snd_max..wmem_alloc\n\t\t\t\t\t\t */\n\tunion smc_host_cursor\ttx_curs_sent;\t/* tx - sent data\n\t\t\t\t\t\t * snd_nxt ?\n\t\t\t\t\t\t */\n\tunion smc_host_cursor\ttx_curs_fin;\t/* tx - confirmed by peer\n\t\t\t\t\t\t * snd-wnd-begin ?\n\t\t\t\t\t\t */\n\tatomic_t\t\tsndbuf_space;\t/* remaining space in sndbuf */\n\tu16\t\t\ttx_cdc_seq;\t/* sequence # for CDC send */\n\tu16\t\t\ttx_cdc_seq_fin;\t/* sequence # - tx completed */\n\tspinlock_t\t\tsend_lock;\t/* protect wr_sends */\n\tstruct delayed_work\ttx_work;\t/* retry of smc_cdc_msg_send */\n\tu32\t\t\ttx_off;\t\t/* base offset in peer rmb */\n\n\tstruct smc_host_cdc_msg\tlocal_rx_ctrl;\t/* filled during event_handl.\n\t\t\t\t\t\t * .prod cf. TCP rcv_nxt\n\t\t\t\t\t\t * .cons cf. TCP snd_una\n\t\t\t\t\t\t */\n\tunion smc_host_cursor\trx_curs_confirmed; /* confirmed to peer\n\t\t\t\t\t\t * source of snd_una ?\n\t\t\t\t\t\t */\n\tunion smc_host_cursor\turg_curs;\t/* points at urgent byte */\n\tenum smc_urg_state\turg_state;\n\tbool\t\t\turg_tx_pend;\t/* urgent data staged */\n\tbool\t\t\turg_rx_skip_pend;\n\t\t\t\t\t\t/* indicate urgent oob data\n\t\t\t\t\t\t * read, but previous regular\n\t\t\t\t\t\t * data still pending\n\t\t\t\t\t\t */\n\tchar\t\t\turg_rx_byte;\t/* urgent byte */\n\tatomic_t\t\tbytes_to_rcv;\t/* arrived data,\n\t\t\t\t\t\t * not yet received\n\t\t\t\t\t\t */\n\tatomic_t\t\tsplice_pending;\t/* number of spliced bytes\n\t\t\t\t\t\t * pending processing\n\t\t\t\t\t\t */\n#ifndef KERNEL_HAS_ATOMIC64\n\tspinlock_t\t\tacurs_lock;\t/* protect cursors */\n#endif\n\tstruct work_struct\tclose_work;\t/* peer sent some closing */\n\tstruct work_struct\tabort_work;\t/* abort the connection */\n\tstruct tasklet_struct\trx_tsklet;\t/* Receiver tasklet for SMC-D */\n\tu8\t\t\trx_off;\t\t/* receive offset:\n\t\t\t\t\t\t * 0 for SMC-R, 32 for SMC-D\n\t\t\t\t\t\t */\n\tu64\t\t\tpeer_token;\t/* SMC-D token of peer */\n\tu8\t\t\tkilled : 1;\t/* abnormal termination */\n\tu8\t\t\tout_of_sync : 1; /* out of sync with peer */\n};\n\nstruct smc_sock {\t\t\t\t/* smc sock container */\n\tstruct sock\t\tsk;\n\tstruct socket\t\t*clcsock;\t/* internal tcp socket */\n\tvoid\t\t\t(*clcsk_data_ready)(struct sock *sk);\n\t\t\t\t\t\t/* original data_ready fct. **/\n\tstruct smc_connection\tconn;\t\t/* smc connection */\n\tstruct smc_sock\t\t*listen_smc;\t/* listen parent */\n\tstruct work_struct\tconnect_work;\t/* handle non-blocking connect*/\n\tstruct work_struct\ttcp_listen_work;/* handle tcp socket accepts */\n\tstruct work_struct\tsmc_listen_work;/* prepare new accept socket */\n\tstruct list_head\taccept_q;\t/* sockets to be accepted */\n\tspinlock_t\t\taccept_q_lock;\t/* protects accept_q */\n\tbool\t\t\tuse_fallback;\t/* fallback to tcp */\n\tint\t\t\tfallback_rsn;\t/* reason for fallback */\n\tu32\t\t\tpeer_diagnosis; /* decline reason from peer */\n\tint\t\t\tsockopt_defer_accept;\n\t\t\t\t\t\t/* sockopt TCP_DEFER_ACCEPT\n\t\t\t\t\t\t * value\n\t\t\t\t\t\t */\n\tu8\t\t\twait_close_tx_prepared : 1;\n\t\t\t\t\t\t/* shutdown wr or close\n\t\t\t\t\t\t * started, waiting for unsent\n\t\t\t\t\t\t * data to be sent\n\t\t\t\t\t\t */\n\tu8\t\t\tconnect_nonblock : 1;\n\t\t\t\t\t\t/* non-blocking connect in\n\t\t\t\t\t\t * flight\n\t\t\t\t\t\t */\n\tstruct mutex clcsock_release_lock;\n\t\t\t\t\t\t/* protects clcsock of a listen\n\t\t\t\t\t\t * socket\n\t\t\t\t\t\t * */\n};\n\nstatic inline struct smc_sock *smc_sk(const struct sock *sk)\n{\n\treturn (struct smc_sock *)sk;\n}\n\nextern struct workqueue_struct\t*smc_hs_wq;\t/* wq for handshake work */\nextern struct workqueue_struct\t*smc_close_wq;\t/* wq for close work */\n\n#define SMC_SYSTEMID_LEN\t\t8\n\nextern u8\tlocal_systemid[SMC_SYSTEMID_LEN]; /* unique system identifier */\n\n#define ntohll(x) be64_to_cpu(x)\n#define htonll(x) cpu_to_be64(x)\n\n/* convert an u32 value into network byte order, store it into a 3 byte field */\nstatic inline void hton24(u8 *net, u32 host)\n{\n\t__be32 t;\n\n\tt = cpu_to_be32(host);\n\tmemcpy(net, ((u8 *)&t) + 1, 3);\n}\n\n/* convert a received 3 byte field into host byte order*/\nstatic inline u32 ntoh24(u8 *net)\n{\n\t__be32 t = 0;\n\n\tmemcpy(((u8 *)&t) + 1, net, 3);\n\treturn be32_to_cpu(t);\n}\n\n#ifdef CONFIG_XFRM\nstatic inline bool using_ipsec(struct smc_sock *smc)\n{\n\treturn (smc->clcsock->sk->sk_policy[0] ||\n\t\tsmc->clcsock->sk->sk_policy[1]) ? true : false;\n}\n#else\nstatic inline bool using_ipsec(struct smc_sock *smc)\n{\n\treturn false;\n}\n#endif\n\nstruct sock *smc_accept_dequeue(struct sock *parent, struct socket *new_sock);\nvoid smc_close_non_accepted(struct sock *sk);\n\n#endif\t/* __SMC_H */\n"}
80,057
c
#pragma once #include <windows.h> namespace framework { namespace Threading { class CIntraProcessLock { public: CIntraProcessLock() { InitializeCriticalSection(&m_cs); } ~CIntraProcessLock() { DeleteCriticalSection(&m_cs); } inline bool Lock() { return TryEnterCriticalSection(&m_cs) > 0 ? true : false; } inline void Unlock() { return LeaveCriticalSection(&m_cs); } private: CRITICAL_SECTION m_cs; }; class CNoLock { public: inline bool Lock() { return true; } inline void Unlock() { return; } }; } }
13.38
42
(translation_unit) "#pragma once\n\n#include <windows.h>\n\nnamespace framework\n{\n namespace Threading\n {\n class CIntraProcessLock\n {\n public:\n CIntraProcessLock()\n {\n InitializeCriticalSection(&m_cs);\n }\n\n ~CIntraProcessLock()\n {\n DeleteCriticalSection(&m_cs);\n }\n\n inline bool Lock()\n {\n return TryEnterCriticalSection(&m_cs) > 0 ? true : false;\n }\n\n inline void Unlock()\n {\n return LeaveCriticalSection(&m_cs);\n }\n\n private:\n CRITICAL_SECTION m_cs;\n };\n\n class CNoLock\n {\n public:\n inline bool Lock()\n {\n return true;\n }\n\n inline void Unlock()\n {\n return;\n }\n };\n }\n}" (preproc_call) "#pragma once\n" (preproc_directive) "#pragma" (preproc_arg) "once" (preproc_include) "#include <windows.h>\n" (#include) "#include" (system_lib_string) "<windows.h>" (function_definition) "namespace framework\n{\n namespace Threading\n {\n class CIntraProcessLock\n {\n public:\n CIntraProcessLock()\n {\n InitializeCriticalSection(&m_cs);\n }\n\n ~CIntraProcessLock()\n {\n DeleteCriticalSection(&m_cs);\n }\n\n inline bool Lock()\n {\n return TryEnterCriticalSection(&m_cs) > 0 ? true : false;\n }\n\n inline void Unlock()\n {\n return LeaveCriticalSection(&m_cs);\n }\n\n private:\n CRITICAL_SECTION m_cs;\n };\n\n class CNoLock\n {\n public:\n inline bool Lock()\n {\n return true;\n }\n\n inline void Unlock()\n {\n return;\n }\n };\n }\n}" (type_identifier) "namespace" (identifier) "framework" (compound_statement) "{\n namespace Threading\n {\n class CIntraProcessLock\n {\n public:\n CIntraProcessLock()\n {\n InitializeCriticalSection(&m_cs);\n }\n\n ~CIntraProcessLock()\n {\n DeleteCriticalSection(&m_cs);\n }\n\n inline bool Lock()\n {\n return TryEnterCriticalSection(&m_cs) > 0 ? true : false;\n }\n\n inline void Unlock()\n {\n return LeaveCriticalSection(&m_cs);\n }\n\n private:\n CRITICAL_SECTION m_cs;\n };\n\n class CNoLock\n {\n public:\n inline bool Lock()\n {\n return true;\n }\n\n inline void Unlock()\n {\n return;\n }\n };\n }\n}" ({) "{" (function_definition) "namespace Threading\n {\n class CIntraProcessLock\n {\n public:\n CIntraProcessLock()\n {\n InitializeCriticalSection(&m_cs);\n }\n\n ~CIntraProcessLock()\n {\n DeleteCriticalSection(&m_cs);\n }\n\n inline bool Lock()\n {\n return TryEnterCriticalSection(&m_cs) > 0 ? true : false;\n }\n\n inline void Unlock()\n {\n return LeaveCriticalSection(&m_cs);\n }\n\n private:\n CRITICAL_SECTION m_cs;\n };\n\n class CNoLock\n {\n public:\n inline bool Lock()\n {\n return true;\n }\n\n inline void Unlock()\n {\n return;\n }\n };\n }" (type_identifier) "namespace" (identifier) "Threading" (compound_statement) "{\n class CIntraProcessLock\n {\n public:\n CIntraProcessLock()\n {\n InitializeCriticalSection(&m_cs);\n }\n\n ~CIntraProcessLock()\n {\n DeleteCriticalSection(&m_cs);\n }\n\n inline bool Lock()\n {\n return TryEnterCriticalSection(&m_cs) > 0 ? true : false;\n }\n\n inline void Unlock()\n {\n return LeaveCriticalSection(&m_cs);\n }\n\n private:\n CRITICAL_SECTION m_cs;\n };\n\n class CNoLock\n {\n public:\n inline bool Lock()\n {\n return true;\n }\n\n inline void Unlock()\n {\n return;\n }\n };\n }" ({) "{" (function_definition) "class CIntraProcessLock\n {\n public:\n CIntraProcessLock()\n {\n InitializeCriticalSection(&m_cs);\n }\n\n ~CIntraProcessLock()\n {\n DeleteCriticalSection(&m_cs);\n }\n\n inline bool Lock()\n {\n return TryEnterCriticalSection(&m_cs) > 0 ? true : false;\n }\n\n inline void Unlock()\n {\n return LeaveCriticalSection(&m_cs);\n }\n\n private:\n CRITICAL_SECTION m_cs;\n }" (type_identifier) "class" (identifier) "CIntraProcessLock" (compound_statement) "{\n public:\n CIntraProcessLock()\n {\n InitializeCriticalSection(&m_cs);\n }\n\n ~CIntraProcessLock()\n {\n DeleteCriticalSection(&m_cs);\n }\n\n inline bool Lock()\n {\n return TryEnterCriticalSection(&m_cs) > 0 ? true : false;\n }\n\n inline void Unlock()\n {\n return LeaveCriticalSection(&m_cs);\n }\n\n private:\n CRITICAL_SECTION m_cs;\n }" ({) "{" (labeled_statement) "public:\n CIntraProcessLock()" (statement_identifier) "public" (:) ":" (expression_statement) "CIntraProcessLock()" (call_expression) "CIntraProcessLock()" (identifier) "CIntraProcessLock" (argument_list) "()" (() "(" ()) ")" (;) "" (compound_statement) "{\n InitializeCriticalSection(&m_cs);\n }" ({) "{" (expression_statement) "InitializeCriticalSection(&m_cs);" (call_expression) "InitializeCriticalSection(&m_cs)" (identifier) "InitializeCriticalSection" (argument_list) "(&m_cs)" (() "(" (pointer_expression) "&m_cs" (&) "&" (identifier) "m_cs" ()) ")" (;) ";" (}) "}" (expression_statement) "~CIntraProcessLock()" (unary_expression) "~CIntraProcessLock()" (~) "~" (call_expression) "CIntraProcessLock()" (identifier) "CIntraProcessLock" (argument_list) "()" (() "(" ()) ")" (;) "" (compound_statement) "{\n DeleteCriticalSection(&m_cs);\n }" ({) "{" (expression_statement) "DeleteCriticalSection(&m_cs);" (call_expression) "DeleteCriticalSection(&m_cs)" (identifier) "DeleteCriticalSection" (argument_list) "(&m_cs)" (() "(" (pointer_expression) "&m_cs" (&) "&" (identifier) "m_cs" ()) ")" (;) ";" (}) "}" (function_definition) "inline bool Lock()\n {\n return TryEnterCriticalSection(&m_cs) > 0 ? true : false;\n }" (storage_class_specifier) "inline" (inline) "inline" (primitive_type) "bool" (function_declarator) "Lock()" (identifier) "Lock" (parameter_list) "()" (() "(" ()) ")" (compound_statement) "{\n return TryEnterCriticalSection(&m_cs) > 0 ? true : false;\n }" ({) "{" (return_statement) "return TryEnterCriticalSection(&m_cs) > 0 ? true : false;" (return) "return" (conditional_expression) "TryEnterCriticalSection(&m_cs) > 0 ? true : false" (binary_expression) "TryEnterCriticalSection(&m_cs) > 0" (call_expression) "TryEnterCriticalSection(&m_cs)" (identifier) "TryEnterCriticalSection" (argument_list) "(&m_cs)" (() "(" (pointer_expression) "&m_cs" (&) "&" (identifier) "m_cs" ()) ")" (>) ">" (number_literal) "0" (?) "?" (true) "true" (:) ":" (false) "false" (;) ";" (}) "}" (function_definition) "inline void Unlock()\n {\n return LeaveCriticalSection(&m_cs);\n }" (storage_class_specifier) "inline" (inline) "inline" (primitive_type) "void" (function_declarator) "Unlock()" (identifier) "Unlock" (parameter_list) "()" (() "(" ()) ")" (compound_statement) "{\n return LeaveCriticalSection(&m_cs);\n }" ({) "{" (return_statement) "return LeaveCriticalSection(&m_cs);" (return) "return" (call_expression) "LeaveCriticalSection(&m_cs)" (identifier) "LeaveCriticalSection" (argument_list) "(&m_cs)" (() "(" (pointer_expression) "&m_cs" (&) "&" (identifier) "m_cs" ()) ")" (;) ";" (}) "}" (labeled_statement) "private:\n CRITICAL_SECTION m_cs;" (statement_identifier) "private" (:) ":" (declaration) "CRITICAL_SECTION m_cs;" (type_identifier) "CRITICAL_SECTION" (identifier) "m_cs" (;) ";" (}) "}" (expression_statement) ";" (;) ";" (function_definition) "class CNoLock\n {\n public:\n inline bool Lock()\n {\n return true;\n }\n\n inline void Unlock()\n {\n return;\n }\n }" (type_identifier) "class" (identifier) "CNoLock" (compound_statement) "{\n public:\n inline bool Lock()\n {\n return true;\n }\n\n inline void Unlock()\n {\n return;\n }\n }" ({) "{" (labeled_statement) "public:\n inline bool Lock()\n {\n return true;\n }" (statement_identifier) "public" (:) ":" (ERROR) "inline bool Lock()" (storage_class_specifier) "inline" (inline) "inline" (primitive_type) "bool" (function_declarator) "Lock()" (identifier) "Lock" (parameter_list) "()" (() "(" ()) ")" (compound_statement) "{\n return true;\n }" ({) "{" (return_statement) "return true;" (return) "return" (true) "true" (;) ";" (}) "}" (function_definition) "inline void Unlock()\n {\n return;\n }" (storage_class_specifier) "inline" (inline) "inline" (primitive_type) "void" (function_declarator) "Unlock()" (identifier) "Unlock" (parameter_list) "()" (() "(" ()) ")" (compound_statement) "{\n return;\n }" ({) "{" (return_statement) "return;" (return) "return" (;) ";" (}) "}" (}) "}" (expression_statement) ";" (;) ";" (}) "}" (}) "}"
175
1
{"language": "c", "success": true, "metadata": {"lines": 42, "avg_line_length": 13.38, "nodes": 90, "errors": 0, "source_hash": "37cd0f0966166d60ff58f3217dbec6df0f670accdeb312d55daa038bd8f848aa", "categorized_nodes": 60}, "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 <windows.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": "<windows.h>", "parent": 3, "children": [], "start_point": {"row": 2, "column": 9}, "end_point": {"row": 2, "column": 20}}, {"id": 6, "type": "function_definition", "text": "namespace framework\n{\n\tnamespace Threading\n\t{\n\t\tclass CIntraProcessLock\n\t\t{\n\t\tpublic:\n\t\t\tCIntraProcessLock()\n\t\t\t{\n\t\t\t\tInitializeCriticalSection(&m_cs);\n\t\t\t}\n\n\t\t\t~CIntraProcessLock()\n\t\t\t{\n\t\t\t\tDeleteCriticalSection(&m_cs);\n\t\t\t}\n\n\t\t\tinline bool Lock()\n\t\t\t{\n\t\t\t\treturn TryEnterCriticalSection(&m_cs) > 0 ? true : false;\n\t\t\t}\n\n\t\t\tinline void Unlock()\n\t\t\t{\n\t\t\t\treturn LeaveCriticalSection(&m_cs);\n\t\t\t}\n\n\t\tprivate:\n\t\t\tCRITICAL_SECTION m_cs;\n\t\t};\n\n\t\tclass CNoLock\n\t\t{\n\t\tpublic:\n\t\t\tinline bool Lock()\n\t\t\t{\n\t\t\t\treturn true;\n\t\t\t}\n\n\t\t\tinline void Unlock()\n\t\t\t{\n\t\t\t\treturn;\n\t\t\t}\n\t\t};\n\t}\n}", "parent": null, "children": [7, 8], "start_point": {"row": 4, "column": 0}, "end_point": {"row": 49, "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": "framework", "parent": 6, "children": [], "start_point": {"row": 4, "column": 10}, "end_point": {"row": 4, "column": 19}}, {"id": 9, "type": "function_definition", "text": "namespace Threading\n\t{\n\t\tclass CIntraProcessLock\n\t\t{\n\t\tpublic:\n\t\t\tCIntraProcessLock()\n\t\t\t{\n\t\t\t\tInitializeCriticalSection(&m_cs);\n\t\t\t}\n\n\t\t\t~CIntraProcessLock()\n\t\t\t{\n\t\t\t\tDeleteCriticalSection(&m_cs);\n\t\t\t}\n\n\t\t\tinline bool Lock()\n\t\t\t{\n\t\t\t\treturn TryEnterCriticalSection(&m_cs) > 0 ? true : false;\n\t\t\t}\n\n\t\t\tinline void Unlock()\n\t\t\t{\n\t\t\t\treturn LeaveCriticalSection(&m_cs);\n\t\t\t}\n\n\t\tprivate:\n\t\t\tCRITICAL_SECTION m_cs;\n\t\t};\n\n\t\tclass CNoLock\n\t\t{\n\t\tpublic:\n\t\t\tinline bool Lock()\n\t\t\t{\n\t\t\t\treturn true;\n\t\t\t}\n\n\t\t\tinline void Unlock()\n\t\t\t{\n\t\t\t\treturn;\n\t\t\t}\n\t\t};\n\t}", "parent": 6, "children": [10, 11], "start_point": {"row": 6, "column": 1}, "end_point": {"row": 48, "column": 2}}, {"id": 10, "type": "type_identifier", "text": "namespace", "parent": 9, "children": [], "start_point": {"row": 6, "column": 1}, "end_point": {"row": 6, "column": 10}}, {"id": 11, "type": "identifier", "text": "Threading", "parent": 9, "children": [], "start_point": {"row": 6, "column": 11}, "end_point": {"row": 6, "column": 20}}, {"id": 12, "type": "function_definition", "text": "class CIntraProcessLock\n\t\t{\n\t\tpublic:\n\t\t\tCIntraProcessLock()\n\t\t\t{\n\t\t\t\tInitializeCriticalSection(&m_cs);\n\t\t\t}\n\n\t\t\t~CIntraProcessLock()\n\t\t\t{\n\t\t\t\tDeleteCriticalSection(&m_cs);\n\t\t\t}\n\n\t\t\tinline bool Lock()\n\t\t\t{\n\t\t\t\treturn TryEnterCriticalSection(&m_cs) > 0 ? true : false;\n\t\t\t}\n\n\t\t\tinline void Unlock()\n\t\t\t{\n\t\t\t\treturn LeaveCriticalSection(&m_cs);\n\t\t\t}\n\n\t\tprivate:\n\t\t\tCRITICAL_SECTION m_cs;\n\t\t}", "parent": 9, "children": [13], "start_point": {"row": 8, "column": 2}, "end_point": {"row": 33, "column": 3}}, {"id": 13, "type": "identifier", "text": "CIntraProcessLock", "parent": 12, "children": [], "start_point": {"row": 8, "column": 8}, "end_point": {"row": 8, "column": 25}}, {"id": 14, "type": "labeled_statement", "text": "public:\n\t\t\tCIntraProcessLock()", "parent": 12, "children": [], "start_point": {"row": 10, "column": 2}, "end_point": {"row": 11, "column": 22}}, {"id": 15, "type": "call_expression", "text": "CIntraProcessLock()", "parent": 14, "children": [16, 17], "start_point": {"row": 11, "column": 3}, "end_point": {"row": 11, "column": 22}}, {"id": 16, "type": "identifier", "text": "CIntraProcessLock", "parent": 15, "children": [], "start_point": {"row": 11, "column": 3}, "end_point": {"row": 11, "column": 20}}, {"id": 17, "type": "argument_list", "text": "()", "parent": 15, "children": [], "start_point": {"row": 11, "column": 20}, "end_point": {"row": 11, "column": 22}}, {"id": 18, "type": "call_expression", "text": "InitializeCriticalSection(&m_cs)", "parent": 12, "children": [19, 20], "start_point": {"row": 13, "column": 4}, "end_point": {"row": 13, "column": 36}}, {"id": 19, "type": "identifier", "text": "InitializeCriticalSection", "parent": 18, "children": [], "start_point": {"row": 13, "column": 4}, "end_point": {"row": 13, "column": 29}}, {"id": 20, "type": "argument_list", "text": "(&m_cs)", "parent": 18, "children": [21], "start_point": {"row": 13, "column": 29}, "end_point": {"row": 13, "column": 36}}, {"id": 21, "type": "pointer_expression", "text": "&m_cs", "parent": 20, "children": [22], "start_point": {"row": 13, "column": 30}, "end_point": {"row": 13, "column": 35}}, {"id": 22, "type": "identifier", "text": "m_cs", "parent": 21, "children": [], "start_point": {"row": 13, "column": 31}, "end_point": {"row": 13, "column": 35}}, {"id": 23, "type": "unary_expression", "text": "~CIntraProcessLock()", "parent": 12, "children": [24, 25], "start_point": {"row": 16, "column": 3}, "end_point": {"row": 16, "column": 23}}, {"id": 24, "type": "~", "text": "~", "parent": 23, "children": [], "start_point": {"row": 16, "column": 3}, "end_point": {"row": 16, "column": 4}}, {"id": 25, "type": "call_expression", "text": "CIntraProcessLock()", "parent": 23, "children": [26, 27], "start_point": {"row": 16, "column": 4}, "end_point": {"row": 16, "column": 23}}, {"id": 26, "type": "identifier", "text": "CIntraProcessLock", "parent": 25, "children": [], "start_point": {"row": 16, "column": 4}, "end_point": {"row": 16, "column": 21}}, {"id": 27, "type": "argument_list", "text": "()", "parent": 25, "children": [], "start_point": {"row": 16, "column": 21}, "end_point": {"row": 16, "column": 23}}, {"id": 28, "type": "call_expression", "text": "DeleteCriticalSection(&m_cs)", "parent": 12, "children": [29, 30], "start_point": {"row": 18, "column": 4}, "end_point": {"row": 18, "column": 32}}, {"id": 29, "type": "identifier", "text": "DeleteCriticalSection", "parent": 28, "children": [], "start_point": {"row": 18, "column": 4}, "end_point": {"row": 18, "column": 25}}, {"id": 30, "type": "argument_list", "text": "(&m_cs)", "parent": 28, "children": [31], "start_point": {"row": 18, "column": 25}, "end_point": {"row": 18, "column": 32}}, {"id": 31, "type": "pointer_expression", "text": "&m_cs", "parent": 30, "children": [32], "start_point": {"row": 18, "column": 26}, "end_point": {"row": 18, "column": 31}}, {"id": 32, "type": "identifier", "text": "m_cs", "parent": 31, "children": [], "start_point": {"row": 18, "column": 27}, "end_point": {"row": 18, "column": 31}}, {"id": 33, "type": "function_definition", "text": "inline bool Lock()\n\t\t\t{\n\t\t\t\treturn TryEnterCriticalSection(&m_cs) > 0 ? true : false;\n\t\t\t}", "parent": 12, "children": [34, 36, 37], "start_point": {"row": 21, "column": 3}, "end_point": {"row": 24, "column": 4}}, {"id": 34, "type": "storage_class_specifier", "text": "inline", "parent": 33, "children": [35], "start_point": {"row": 21, "column": 3}, "end_point": {"row": 21, "column": 9}}, {"id": 35, "type": "inline", "text": "inline", "parent": 34, "children": [], "start_point": {"row": 21, "column": 3}, "end_point": {"row": 21, "column": 9}}, {"id": 36, "type": "primitive_type", "text": "bool", "parent": 33, "children": [], "start_point": {"row": 21, "column": 10}, "end_point": {"row": 21, "column": 14}}, {"id": 37, "type": "function_declarator", "text": "Lock()", "parent": 33, "children": [38, 39], "start_point": {"row": 21, "column": 15}, "end_point": {"row": 21, "column": 21}}, {"id": 38, "type": "identifier", "text": "Lock", "parent": 37, "children": [], "start_point": {"row": 21, "column": 15}, "end_point": {"row": 21, "column": 19}}, {"id": 39, "type": "parameter_list", "text": "()", "parent": 37, "children": [], "start_point": {"row": 21, "column": 19}, "end_point": {"row": 21, "column": 21}}, {"id": 40, "type": "return_statement", "text": "return TryEnterCriticalSection(&m_cs) > 0 ? true : false;", "parent": 33, "children": [41], "start_point": {"row": 23, "column": 4}, "end_point": {"row": 23, "column": 61}}, {"id": 41, "type": "conditional_expression", "text": "TryEnterCriticalSection(&m_cs) > 0 ? true : false", "parent": 40, "children": [42, 50, 51, 52], "start_point": {"row": 23, "column": 11}, "end_point": {"row": 23, "column": 60}}, {"id": 42, "type": "binary_expression", "text": "TryEnterCriticalSection(&m_cs) > 0", "parent": 41, "children": [43, 48, 49], "start_point": {"row": 23, "column": 11}, "end_point": {"row": 23, "column": 45}}, {"id": 43, "type": "call_expression", "text": "TryEnterCriticalSection(&m_cs)", "parent": 42, "children": [44, 45], "start_point": {"row": 23, "column": 11}, "end_point": {"row": 23, "column": 41}}, {"id": 44, "type": "identifier", "text": "TryEnterCriticalSection", "parent": 43, "children": [], "start_point": {"row": 23, "column": 11}, "end_point": {"row": 23, "column": 34}}, {"id": 45, "type": "argument_list", "text": "(&m_cs)", "parent": 43, "children": [46], "start_point": {"row": 23, "column": 34}, "end_point": {"row": 23, "column": 41}}, {"id": 46, "type": "pointer_expression", "text": "&m_cs", "parent": 45, "children": [47], "start_point": {"row": 23, "column": 35}, "end_point": {"row": 23, "column": 40}}, {"id": 47, "type": "identifier", "text": "m_cs", "parent": 46, "children": [], "start_point": {"row": 23, "column": 36}, "end_point": {"row": 23, "column": 40}}, {"id": 48, "type": ">", "text": ">", "parent": 42, "children": [], "start_point": {"row": 23, "column": 42}, "end_point": {"row": 23, "column": 43}}, {"id": 49, "type": "number_literal", "text": "0", "parent": 42, "children": [], "start_point": {"row": 23, "column": 44}, "end_point": {"row": 23, "column": 45}}, {"id": 50, "type": "?", "text": "?", "parent": 41, "children": [], "start_point": {"row": 23, "column": 46}, "end_point": {"row": 23, "column": 47}}, {"id": 51, "type": "true", "text": "true", "parent": 41, "children": [], "start_point": {"row": 23, "column": 48}, "end_point": {"row": 23, "column": 52}}, {"id": 52, "type": "false", "text": "false", "parent": 41, "children": [], "start_point": {"row": 23, "column": 55}, "end_point": {"row": 23, "column": 60}}, {"id": 53, "type": "function_definition", "text": "inline void Unlock()\n\t\t\t{\n\t\t\t\treturn LeaveCriticalSection(&m_cs);\n\t\t\t}", "parent": 12, "children": [54, 56, 57], "start_point": {"row": 26, "column": 3}, "end_point": {"row": 29, "column": 4}}, {"id": 54, "type": "storage_class_specifier", "text": "inline", "parent": 53, "children": [55], "start_point": {"row": 26, "column": 3}, "end_point": {"row": 26, "column": 9}}, {"id": 55, "type": "inline", "text": "inline", "parent": 54, "children": [], "start_point": {"row": 26, "column": 3}, "end_point": {"row": 26, "column": 9}}, {"id": 56, "type": "primitive_type", "text": "void", "parent": 53, "children": [], "start_point": {"row": 26, "column": 10}, "end_point": {"row": 26, "column": 14}}, {"id": 57, "type": "function_declarator", "text": "Unlock()", "parent": 53, "children": [58, 59], "start_point": {"row": 26, "column": 15}, "end_point": {"row": 26, "column": 23}}, {"id": 58, "type": "identifier", "text": "Unlock", "parent": 57, "children": [], "start_point": {"row": 26, "column": 15}, "end_point": {"row": 26, "column": 21}}, {"id": 59, "type": "parameter_list", "text": "()", "parent": 57, "children": [], "start_point": {"row": 26, "column": 21}, "end_point": {"row": 26, "column": 23}}, {"id": 60, "type": "return_statement", "text": "return LeaveCriticalSection(&m_cs);", "parent": 53, "children": [61], "start_point": {"row": 28, "column": 4}, "end_point": {"row": 28, "column": 39}}, {"id": 61, "type": "call_expression", "text": "LeaveCriticalSection(&m_cs)", "parent": 60, "children": [62, 63], "start_point": {"row": 28, "column": 11}, "end_point": {"row": 28, "column": 38}}, {"id": 62, "type": "identifier", "text": "LeaveCriticalSection", "parent": 61, "children": [], "start_point": {"row": 28, "column": 11}, "end_point": {"row": 28, "column": 31}}, {"id": 63, "type": "argument_list", "text": "(&m_cs)", "parent": 61, "children": [64], "start_point": {"row": 28, "column": 31}, "end_point": {"row": 28, "column": 38}}, {"id": 64, "type": "pointer_expression", "text": "&m_cs", "parent": 63, "children": [65], "start_point": {"row": 28, "column": 32}, "end_point": {"row": 28, "column": 37}}, {"id": 65, "type": "identifier", "text": "m_cs", "parent": 64, "children": [], "start_point": {"row": 28, "column": 33}, "end_point": {"row": 28, "column": 37}}, {"id": 66, "type": "labeled_statement", "text": "private:\n\t\t\tCRITICAL_SECTION m_cs;", "parent": 12, "children": [67], "start_point": {"row": 31, "column": 2}, "end_point": {"row": 32, "column": 25}}, {"id": 67, "type": "declaration", "text": "CRITICAL_SECTION m_cs;", "parent": 66, "children": [68, 69], "start_point": {"row": 32, "column": 3}, "end_point": {"row": 32, "column": 25}}, {"id": 68, "type": "type_identifier", "text": "CRITICAL_SECTION", "parent": 67, "children": [], "start_point": {"row": 32, "column": 3}, "end_point": {"row": 32, "column": 19}}, {"id": 69, "type": "identifier", "text": "m_cs", "parent": 67, "children": [], "start_point": {"row": 32, "column": 20}, "end_point": {"row": 32, "column": 24}}, {"id": 70, "type": "function_definition", "text": "class CNoLock\n\t\t{\n\t\tpublic:\n\t\t\tinline bool Lock()\n\t\t\t{\n\t\t\t\treturn true;\n\t\t\t}\n\n\t\t\tinline void Unlock()\n\t\t\t{\n\t\t\t\treturn;\n\t\t\t}\n\t\t}", "parent": 9, "children": [71], "start_point": {"row": 35, "column": 2}, "end_point": {"row": 47, "column": 3}}, {"id": 71, "type": "identifier", "text": "CNoLock", "parent": 70, "children": [], "start_point": {"row": 35, "column": 8}, "end_point": {"row": 35, "column": 15}}, {"id": 72, "type": "labeled_statement", "text": "public:\n\t\t\tinline bool Lock()\n\t\t\t{\n\t\t\t\treturn true;\n\t\t\t}", "parent": 70, "children": [73], "start_point": {"row": 37, "column": 2}, "end_point": {"row": 41, "column": 4}}, {"id": 73, "type": "ERROR", "text": "inline bool Lock()", "parent": 72, "children": [74, 76, 77], "start_point": {"row": 38, "column": 3}, "end_point": {"row": 38, "column": 21}}, {"id": 74, "type": "storage_class_specifier", "text": "inline", "parent": 73, "children": [75], "start_point": {"row": 38, "column": 3}, "end_point": {"row": 38, "column": 9}}, {"id": 75, "type": "inline", "text": "inline", "parent": 74, "children": [], "start_point": {"row": 38, "column": 3}, "end_point": {"row": 38, "column": 9}}, {"id": 76, "type": "primitive_type", "text": "bool", "parent": 73, "children": [], "start_point": {"row": 38, "column": 10}, "end_point": {"row": 38, "column": 14}}, {"id": 77, "type": "function_declarator", "text": "Lock()", "parent": 73, "children": [78, 79], "start_point": {"row": 38, "column": 15}, "end_point": {"row": 38, "column": 21}}, {"id": 78, "type": "identifier", "text": "Lock", "parent": 77, "children": [], "start_point": {"row": 38, "column": 15}, "end_point": {"row": 38, "column": 19}}, {"id": 79, "type": "parameter_list", "text": "()", "parent": 77, "children": [], "start_point": {"row": 38, "column": 19}, "end_point": {"row": 38, "column": 21}}, {"id": 80, "type": "return_statement", "text": "return true;", "parent": 72, "children": [81], "start_point": {"row": 40, "column": 4}, "end_point": {"row": 40, "column": 16}}, {"id": 81, "type": "true", "text": "true", "parent": 80, "children": [], "start_point": {"row": 40, "column": 11}, "end_point": {"row": 40, "column": 15}}, {"id": 82, "type": "function_definition", "text": "inline void Unlock()\n\t\t\t{\n\t\t\t\treturn;\n\t\t\t}", "parent": 70, "children": [83, 85, 86], "start_point": {"row": 43, "column": 3}, "end_point": {"row": 46, "column": 4}}, {"id": 83, "type": "storage_class_specifier", "text": "inline", "parent": 82, "children": [84], "start_point": {"row": 43, "column": 3}, "end_point": {"row": 43, "column": 9}}, {"id": 84, "type": "inline", "text": "inline", "parent": 83, "children": [], "start_point": {"row": 43, "column": 3}, "end_point": {"row": 43, "column": 9}}, {"id": 85, "type": "primitive_type", "text": "void", "parent": 82, "children": [], "start_point": {"row": 43, "column": 10}, "end_point": {"row": 43, "column": 14}}, {"id": 86, "type": "function_declarator", "text": "Unlock()", "parent": 82, "children": [87, 88], "start_point": {"row": 43, "column": 15}, "end_point": {"row": 43, "column": 23}}, {"id": 87, "type": "identifier", "text": "Unlock", "parent": 86, "children": [], "start_point": {"row": 43, "column": 15}, "end_point": {"row": 43, "column": 21}}, {"id": 88, "type": "parameter_list", "text": "()", "parent": 86, "children": [], "start_point": {"row": 43, "column": 21}, "end_point": {"row": 43, "column": 23}}, {"id": 89, "type": "return_statement", "text": "return;", "parent": 82, "children": [], "start_point": {"row": 45, "column": 4}, "end_point": {"row": 45, "column": 11}}]}, "node_categories": {"declarations": {"functions": [6, 9, 12, 33, 37, 53, 57, 70, 77, 82, 86], "variables": [67], "classes": [34, 54, 74, 83], "imports": [3, 4], "modules": [], "enums": []}, "statements": {"expressions": [15, 18, 21, 23, 25, 28, 31, 42, 43, 46, 61, 64], "assignments": [], "loops": [], "conditionals": [7, 8, 10, 11, 13, 16, 19, 22, 26, 29, 32, 38, 41, 44, 47, 58, 62, 65, 68, 69, 71, 78, 87], "returns": [40, 60, 80, 89], "exceptions": []}, "expressions": {"calls": [0], "literals": [5, 49], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [{"node_id": 6, "universal_type": "function", "name": "CIntraProcessLock", "text_snippet": "namespace framework\n{\n\tnamespace Threading\n\t{\n\t\tclass CIntraProcessLock\n\t\t{\n\t\tpublic:\n\t\t\tCIntraProce"}, {"node_id": 9, "universal_type": "function", "name": "CIntraProcessLock", "text_snippet": "namespace Threading\n\t{\n\t\tclass CIntraProcessLock\n\t\t{\n\t\tpublic:\n\t\t\tCIntraProcessLock()\n\t\t\t{\n\t\t\t\tIniti"}, {"node_id": 12, "universal_type": "function", "name": "CIntraProcessLock", "text_snippet": "class CIntraProcessLock\n\t\t{\n\t\tpublic:\n\t\t\tCIntraProcessLock()\n\t\t\t{\n\t\t\t\tInitializeCriticalSection(&m_c"}, {"node_id": 33, "universal_type": "function", "name": "Lock", "text_snippet": "inline bool Lock()\n\t\t\t{\n\t\t\t\treturn TryEnterCriticalSection(&m_cs) > 0 ? true : false;\n\t\t\t}"}, {"node_id": 37, "universal_type": "function", "name": "unknown", "text_snippet": "Lock()"}, {"node_id": 53, "universal_type": "function", "name": "Unlock", "text_snippet": "inline void Unlock()\n\t\t\t{\n\t\t\t\treturn LeaveCriticalSection(&m_cs);\n\t\t\t}"}, {"node_id": 57, "universal_type": "function", "name": "unknown", "text_snippet": "Unlock()"}, {"node_id": 70, "universal_type": "function", "name": "CNoLock", "text_snippet": "class CNoLock\n\t\t{\n\t\tpublic:\n\t\t\tinline bool Lock()\n\t\t\t{\n\t\t\t\treturn true;\n\t\t\t}\n\n\t\t\tinline void Unlock("}, {"node_id": 77, "universal_type": "function", "name": "unknown", "text_snippet": "Lock()"}, {"node_id": 82, "universal_type": "function", "name": "Unlock", "text_snippet": "inline void Unlock()\n\t\t\t{\n\t\t\t\treturn;\n\t\t\t}"}, {"node_id": 86, "universal_type": "function", "name": "unknown", "text_snippet": "Unlock()"}], "class_declarations": [{"node_id": 34, "universal_type": "class", "name": "unknown", "text_snippet": "inline"}, {"node_id": 54, "universal_type": "class", "name": "unknown", "text_snippet": "inline"}, {"node_id": 74, "universal_type": "class", "name": "unknown", "text_snippet": "inline"}, {"node_id": 83, "universal_type": "class", "name": "unknown", "text_snippet": "inline"}], "import_statements": [{"node_id": 3, "text": "#include <windows.h>\n"}, {"node_id": 4, "text": "#include"}]}, "original_source_code": "#pragma once\n\n#include <windows.h>\n\nnamespace framework\n{\n\tnamespace Threading\n\t{\n\t\tclass CIntraProcessLock\n\t\t{\n\t\tpublic:\n\t\t\tCIntraProcessLock()\n\t\t\t{\n\t\t\t\tInitializeCriticalSection(&m_cs);\n\t\t\t}\n\n\t\t\t~CIntraProcessLock()\n\t\t\t{\n\t\t\t\tDeleteCriticalSection(&m_cs);\n\t\t\t}\n\n\t\t\tinline bool Lock()\n\t\t\t{\n\t\t\t\treturn TryEnterCriticalSection(&m_cs) > 0 ? true : false;\n\t\t\t}\n\n\t\t\tinline void Unlock()\n\t\t\t{\n\t\t\t\treturn LeaveCriticalSection(&m_cs);\n\t\t\t}\n\n\t\tprivate:\n\t\t\tCRITICAL_SECTION m_cs;\n\t\t};\n\n\t\tclass CNoLock\n\t\t{\n\t\tpublic:\n\t\t\tinline bool Lock()\n\t\t\t{\n\t\t\t\treturn true;\n\t\t\t}\n\n\t\t\tinline void Unlock()\n\t\t\t{\n\t\t\t\treturn;\n\t\t\t}\n\t\t};\n\t}\n}"}
80,058
c
#include <stdio.h> #include <stdlib.h> #include "meta_dfo.h" typedef struct { char name[32]; int value; int partition; } dfo_test; typedef struct { char name[32]; } dfo_combo_mode_test; typedef struct { char name[32]; int modeCount; dfo_combo_mode_test* modeArray; } dfo_combo_test; int g_dfoCount = 0; dfo_test* g_dfoArray = NULL; int g_curIndex = 0; int g_comboCount = 0; dfo_combo_test* g_comboArray = NULL; int g_curCombo = 0; int g_curComboMode = 0; static void dfo_callback(void* buf, unsigned int size) { if (buf == NULL) { printf("callback buffer is NULL\n"); return; } FT_DFO_CNF* cnf = (FT_DFO_CNF*)buf; DFO_OP op = cnf->op; if (op == DFO_OP_READ_COUNT) { g_dfoCount = cnf->result.read_count_cnf.count; printf("DfoBoot count: (%d)\n", g_dfoCount); if (g_dfoCount > 0) { if (g_dfoArray) { free(g_dfoArray); g_dfoArray = NULL; } g_dfoArray = (dfo_test*)malloc(sizeof(dfo_test)*g_dfoCount); } } else if (op == DFO_OP_READ) { printf("Read(%d) name: (%s) value: (%d) partition: (%d)\n", g_curIndex, cnf->result.read_cnf.name, cnf->result.read_cnf.value, cnf->result.read_cnf.partition); strcpy(g_dfoArray[g_curIndex].name, cnf->result.read_cnf.name); g_dfoArray[g_curIndex].value = cnf->result.read_cnf.value; g_dfoArray[g_curIndex].partition = cnf->result.read_cnf.partition; } else if (op == DFO_OP_WRITE) { printf("Write result: (%d)\n", cnf->status); } else if (op == DFO_OP_COMBO_COUNT) { g_comboCount = cnf->result.combo_count_cnf.count; printf("Combo count: (%d)\n", g_comboCount); if (g_comboCount > 0) { if (g_comboArray) { free(g_comboArray); g_comboArray = NULL; } g_comboArray = (dfo_combo_test*)malloc(sizeof(dfo_combo_test)*g_comboCount); } } else if (op == DFO_OP_COMBO_READ) { printf("Combo Read(%d) name: (%s) mode count: (%d)\n", g_curCombo, cnf->result.combo_read_cnf.name, cnf->result.combo_read_cnf.modeCount); strcpy(g_comboArray[g_curCombo].name, cnf->result.combo_read_cnf.name); g_comboArray[g_curCombo].modeCount = cnf->result.combo_read_cnf.modeCount; g_comboArray[g_curCombo].modeArray = (dfo_combo_mode_test*)malloc(sizeof(dfo_combo_mode_test)*g_comboArray[g_curCombo].modeCount); } else if (op == DFO_OP_COMBO_MODE) { printf("Combo(%d) Mode(%d) name: (%s)\n", g_curCombo, g_curComboMode, cnf->result.combo_mode_cnf.name); strcpy(g_comboArray[g_curCombo].modeArray[g_curComboMode].name, cnf->result.combo_mode_cnf.name); } else if (op == DFO_OP_COMBO_UPDATE) { } else { printf("Wrong DFO OP: (%d)\n", op); } } int main(int argc, const char** argv) { META_Dfo_SetCallback(dfo_callback); META_Dfo_Init(); // test read count { FT_DFO_REQ req; memset(&req, 0, sizeof(FT_DFO_REQ)); req.header.id = FT_DFO_REQ_ID; req.op = DFO_OP_READ_COUNT; META_Dfo_OP(&req); } // test read dfo { FT_DFO_REQ req; memset(&req, 0, sizeof(FT_DFO_REQ)); req.header.id = FT_DFO_REQ_ID; req.op = DFO_OP_READ; int i = 0; for (; i < g_dfoCount; i++) { req.cmd.read_req.index = i; g_curIndex = i; META_Dfo_OP(&req); } } // test write dfo { FT_DFO_REQ req; memset(&req, 0, sizeof(FT_DFO_REQ)); req.header.id = FT_DFO_REQ_ID; req.op = DFO_OP_WRITE; int i = 0; for (; i < g_dfoCount; i++) { printf("META Dfo write: (%s, %d)\n", g_dfoArray[i].name, 2); strcpy(req.cmd.write_req.name, g_dfoArray[i].name); req.cmd.write_req.partition = g_dfoArray[i].partition; if (g_dfoArray[i].partition == 0) req.cmd.write_req.value = 6; else req.cmd.write_req.value = 16; if (i == g_dfoCount - 1) { req.cmd.write_req.save = 1; } else { req.cmd.write_req.save = 0; } META_Dfo_OP(&req); } } // test read dfo combo count { FT_DFO_REQ req; memset(&req, 0, sizeof(FT_DFO_REQ)); req.header.id = FT_DFO_REQ_ID; req.op = DFO_OP_COMBO_COUNT; META_Dfo_OP(&req); } // test read dfo combo { FT_DFO_REQ req; memset(&req, 0, sizeof(FT_DFO_REQ)); req.header.id = FT_DFO_REQ_ID; req.op = DFO_OP_COMBO_READ; int i = 0; for (; i < g_comboCount; i++) { req.cmd.combo_read_req.index = i; g_curCombo = i; META_Dfo_OP(&req); // test read dfo combo mode FT_DFO_REQ req2; memset(&req2, 0, sizeof(FT_DFO_REQ)); req2.header.id = FT_DFO_REQ_ID; req2.op = DFO_OP_COMBO_MODE; int j = 0; for (; j < g_comboArray[g_curCombo].modeCount; j++) { req2.cmd.combo_mode_req.index = i; req2.cmd.combo_mode_req.modeIndex = j; g_curComboMode = j; META_Dfo_OP(&req2); } } } // test write dfo combo { } META_Dfo_Deinit(); META_Dfo_SetCallback(NULL); // TODO: free memory return 0; }
26.81
208
(translation_unit) "#include <stdio.h>\n#include <stdlib.h>\n#include "meta_dfo.h"\n\ntypedef struct\n{\n char name[32];\n int value;\n int partition;\n} dfo_test;\n\ntypedef struct\n{\n char name[32]; \n} dfo_combo_mode_test;\n\ntypedef struct\n{\n char name[32];\n int modeCount;\n dfo_combo_mode_test* modeArray;\n} dfo_combo_test;\n\nint g_dfoCount = 0;\ndfo_test* g_dfoArray = NULL;\nint g_curIndex = 0;\n\nint g_comboCount = 0;\ndfo_combo_test* g_comboArray = NULL;\nint g_curCombo = 0;\nint g_curComboMode = 0;\n\nstatic void dfo_callback(void* buf, unsigned int size)\n{\n if (buf == NULL)\n {\n printf("callback buffer is NULL\n");\n return;\n }\n \n FT_DFO_CNF* cnf = (FT_DFO_CNF*)buf;\n \n DFO_OP op = cnf->op;\n \n if (op == DFO_OP_READ_COUNT)\n {\n g_dfoCount = cnf->result.read_count_cnf.count;\n printf("DfoBoot count: (%d)\n", g_dfoCount);\n \n if (g_dfoCount > 0)\n {\n if (g_dfoArray)\n {\n free(g_dfoArray);\n g_dfoArray = NULL;\n }\n g_dfoArray = (dfo_test*)malloc(sizeof(dfo_test)*g_dfoCount);\n }\n }\n else if (op == DFO_OP_READ)\n {\n printf("Read(%d) name: (%s) value: (%d) partition: (%d)\n", g_curIndex,\n cnf->result.read_cnf.name, cnf->result.read_cnf.value, cnf->result.read_cnf.partition);\n strcpy(g_dfoArray[g_curIndex].name, cnf->result.read_cnf.name);\n g_dfoArray[g_curIndex].value = cnf->result.read_cnf.value;\n g_dfoArray[g_curIndex].partition = cnf->result.read_cnf.partition;\n }\n else if (op == DFO_OP_WRITE)\n {\n printf("Write result: (%d)\n", cnf->status);\n }\n else if (op == DFO_OP_COMBO_COUNT)\n {\n g_comboCount = cnf->result.combo_count_cnf.count;\n printf("Combo count: (%d)\n", g_comboCount);\n \n if (g_comboCount > 0)\n {\n if (g_comboArray)\n {\n free(g_comboArray);\n g_comboArray = NULL;\n }\n g_comboArray = (dfo_combo_test*)malloc(sizeof(dfo_combo_test)*g_comboCount);\n }\n }\n else if (op == DFO_OP_COMBO_READ)\n {\n printf("Combo Read(%d) name: (%s) mode count: (%d)\n", g_curCombo,\n cnf->result.combo_read_cnf.name, cnf->result.combo_read_cnf.modeCount);\n strcpy(g_comboArray[g_curCombo].name, cnf->result.combo_read_cnf.name);\n g_comboArray[g_curCombo].modeCount = cnf->result.combo_read_cnf.modeCount;\n g_comboArray[g_curCombo].modeArray = (dfo_combo_mode_test*)malloc(sizeof(dfo_combo_mode_test)*g_comboArray[g_curCombo].modeCount);\n }\n else if (op == DFO_OP_COMBO_MODE)\n {\n printf("Combo(%d) Mode(%d) name: (%s)\n", g_curCombo, g_curComboMode, cnf->result.combo_mode_cnf.name);\n strcpy(g_comboArray[g_curCombo].modeArray[g_curComboMode].name, cnf->result.combo_mode_cnf.name);\n }\n else if (op == DFO_OP_COMBO_UPDATE)\n {\n }\n else\n {\n printf("Wrong DFO OP: (%d)\n", op);\n }\n}\n\nint main(int argc, const char** argv)\n{\n META_Dfo_SetCallback(dfo_callback);\n META_Dfo_Init();\n \n // test read count\n {\n FT_DFO_REQ req;\n memset(&req, 0, sizeof(FT_DFO_REQ));\n req.header.id = FT_DFO_REQ_ID;\n req.op = DFO_OP_READ_COUNT;\n META_Dfo_OP(&req);\n }\n \n // test read dfo\n {\n FT_DFO_REQ req;\n memset(&req, 0, sizeof(FT_DFO_REQ));\n req.header.id = FT_DFO_REQ_ID;\n req.op = DFO_OP_READ;\n \n int i = 0;\n for (; i < g_dfoCount; i++)\n {\n req.cmd.read_req.index = i;\n g_curIndex = i;\n META_Dfo_OP(&req);\n }\n }\n\n // test write dfo\n {\n FT_DFO_REQ req;\n memset(&req, 0, sizeof(FT_DFO_REQ));\n req.header.id = FT_DFO_REQ_ID;\n req.op = DFO_OP_WRITE;\n\n int i = 0;\n for (; i < g_dfoCount; i++)\n {\n printf("META Dfo write: (%s, %d)\n", g_dfoArray[i].name, 2);\n strcpy(req.cmd.write_req.name, g_dfoArray[i].name);\n req.cmd.write_req.partition = g_dfoArray[i].partition;\n if (g_dfoArray[i].partition == 0)\n req.cmd.write_req.value = 6;\n else\n req.cmd.write_req.value = 16;\n if (i == g_dfoCount - 1)\n {\n req.cmd.write_req.save = 1;\n }\n else\n {\n req.cmd.write_req.save = 0;\n }\n META_Dfo_OP(&req);\n }\n }\n \n // test read dfo combo count\n {\n FT_DFO_REQ req;\n memset(&req, 0, sizeof(FT_DFO_REQ));\n req.header.id = FT_DFO_REQ_ID;\n req.op = DFO_OP_COMBO_COUNT;\n META_Dfo_OP(&req);\n }\n \n // test read dfo combo\n {\n FT_DFO_REQ req;\n memset(&req, 0, sizeof(FT_DFO_REQ));\n req.header.id = FT_DFO_REQ_ID;\n req.op = DFO_OP_COMBO_READ;\n \n int i = 0;\n for (; i < g_comboCount; i++)\n {\n req.cmd.combo_read_req.index = i;\n g_curCombo = i;\n META_Dfo_OP(&req);\n \n // test read dfo combo mode\n FT_DFO_REQ req2;\n memset(&req2, 0, sizeof(FT_DFO_REQ));\n req2.header.id = FT_DFO_REQ_ID;\n req2.op = DFO_OP_COMBO_MODE;\n \n int j = 0;\n for (; j < g_comboArray[g_curCombo].modeCount; j++)\n {\n req2.cmd.combo_mode_req.index = i;\n req2.cmd.combo_mode_req.modeIndex = j;\n g_curComboMode = j;\n META_Dfo_OP(&req2);\n }\n }\n }\n \n // test write dfo combo\n {\n }\n\n META_Dfo_Deinit();\n META_Dfo_SetCallback(NULL);\n \n // TODO: free memory\n \n return 0;\n}\n" (preproc_include) "#include <stdio.h>\n" (#include) "#include" (system_lib_string) "<stdio.h>" (preproc_include) "#include <stdlib.h>\n" (#include) "#include" (system_lib_string) "<stdlib.h>" (preproc_include) "#include "meta_dfo.h"\n" (#include) "#include" (string_literal) ""meta_dfo.h"" (") """ (string_content) "meta_dfo.h" (") """ (type_definition) "typedef struct\n{\n char name[32];\n int value;\n int partition;\n} dfo_test;" (typedef) "typedef" (struct_specifier) "struct\n{\n char name[32];\n int value;\n int partition;\n}" (struct) "struct" (field_declaration_list) "{\n char name[32];\n int value;\n int partition;\n}" ({) "{" (field_declaration) "char name[32];" (primitive_type) "char" (array_declarator) "name[32]" (field_identifier) "name" ([) "[" (number_literal) "32" (]) "]" (;) ";" (field_declaration) "int value;" (primitive_type) "int" (field_identifier) "value" (;) ";" (field_declaration) "int partition;" (primitive_type) "int" (field_identifier) "partition" (;) ";" (}) "}" (type_identifier) "dfo_test" (;) ";" (type_definition) "typedef struct\n{\n char name[32]; \n} dfo_combo_mode_test;" (typedef) "typedef" (struct_specifier) "struct\n{\n char name[32]; \n}" (struct) "struct" (field_declaration_list) "{\n char name[32]; \n}" ({) "{" (field_declaration) "char name[32];" (primitive_type) "char" (array_declarator) "name[32]" (field_identifier) "name" ([) "[" (number_literal) "32" (]) "]" (;) ";" (}) "}" (type_identifier) "dfo_combo_mode_test" (;) ";" (type_definition) "typedef struct\n{\n char name[32];\n int modeCount;\n dfo_combo_mode_test* modeArray;\n} dfo_combo_test;" (typedef) "typedef" (struct_specifier) "struct\n{\n char name[32];\n int modeCount;\n dfo_combo_mode_test* modeArray;\n}" (struct) "struct" (field_declaration_list) "{\n char name[32];\n int modeCount;\n dfo_combo_mode_test* modeArray;\n}" ({) "{" (field_declaration) "char name[32];" (primitive_type) "char" (array_declarator) "name[32]" (field_identifier) "name" ([) "[" (number_literal) "32" (]) "]" (;) ";" (field_declaration) "int modeCount;" (primitive_type) "int" (field_identifier) "modeCount" (;) ";" (field_declaration) "dfo_combo_mode_test* modeArray;" (type_identifier) "dfo_combo_mode_test" (pointer_declarator) "* modeArray" (*) "*" (field_identifier) "modeArray" (;) ";" (}) "}" (type_identifier) "dfo_combo_test" (;) ";" (declaration) "int g_dfoCount = 0;" (primitive_type) "int" (init_declarator) "g_dfoCount = 0" (identifier) "g_dfoCount" (=) "=" (number_literal) "0" (;) ";" (declaration) "dfo_test* g_dfoArray = NULL;" (type_identifier) "dfo_test" (init_declarator) "* g_dfoArray = NULL" (pointer_declarator) "* g_dfoArray" (*) "*" (identifier) "g_dfoArray" (=) "=" (null) "NULL" (NULL) "NULL" (;) ";" (declaration) "int g_curIndex = 0;" (primitive_type) "int" (init_declarator) "g_curIndex = 0" (identifier) "g_curIndex" (=) "=" (number_literal) "0" (;) ";" (declaration) "int g_comboCount = 0;" (primitive_type) "int" (init_declarator) "g_comboCount = 0" (identifier) "g_comboCount" (=) "=" (number_literal) "0" (;) ";" (declaration) "dfo_combo_test* g_comboArray = NULL;" (type_identifier) "dfo_combo_test" (init_declarator) "* g_comboArray = NULL" (pointer_declarator) "* g_comboArray" (*) "*" (identifier) "g_comboArray" (=) "=" (null) "NULL" (NULL) "NULL" (;) ";" (declaration) "int g_curCombo = 0;" (primitive_type) "int" (init_declarator) "g_curCombo = 0" (identifier) "g_curCombo" (=) "=" (number_literal) "0" (;) ";" (declaration) "int g_curComboMode = 0;" (primitive_type) "int" (init_declarator) "g_curComboMode = 0" (identifier) "g_curComboMode" (=) "=" (number_literal) "0" (;) ";" (function_definition) "static void dfo_callback(void* buf, unsigned int size)\n{\n if (buf == NULL)\n {\n printf("callback buffer is NULL\n");\n return;\n }\n \n FT_DFO_CNF* cnf = (FT_DFO_CNF*)buf;\n \n DFO_OP op = cnf->op;\n \n if (op == DFO_OP_READ_COUNT)\n {\n g_dfoCount = cnf->result.read_count_cnf.count;\n printf("DfoBoot count: (%d)\n", g_dfoCount);\n \n if (g_dfoCount > 0)\n {\n if (g_dfoArray)\n {\n free(g_dfoArray);\n g_dfoArray = NULL;\n }\n g_dfoArray = (dfo_test*)malloc(sizeof(dfo_test)*g_dfoCount);\n }\n }\n else if (op == DFO_OP_READ)\n {\n printf("Read(%d) name: (%s) value: (%d) partition: (%d)\n", g_curIndex,\n cnf->result.read_cnf.name, cnf->result.read_cnf.value, cnf->result.read_cnf.partition);\n strcpy(g_dfoArray[g_curIndex].name, cnf->result.read_cnf.name);\n g_dfoArray[g_curIndex].value = cnf->result.read_cnf.value;\n g_dfoArray[g_curIndex].partition = cnf->result.read_cnf.partition;\n }\n else if (op == DFO_OP_WRITE)\n {\n printf("Write result: (%d)\n", cnf->status);\n }\n else if (op == DFO_OP_COMBO_COUNT)\n {\n g_comboCount = cnf->result.combo_count_cnf.count;\n printf("Combo count: (%d)\n", g_comboCount);\n \n if (g_comboCount > 0)\n {\n if (g_comboArray)\n {\n free(g_comboArray);\n g_comboArray = NULL;\n }\n g_comboArray = (dfo_combo_test*)malloc(sizeof(dfo_combo_test)*g_comboCount);\n }\n }\n else if (op == DFO_OP_COMBO_READ)\n {\n printf("Combo Read(%d) name: (%s) mode count: (%d)\n", g_curCombo,\n cnf->result.combo_read_cnf.name, cnf->result.combo_read_cnf.modeCount);\n strcpy(g_comboArray[g_curCombo].name, cnf->result.combo_read_cnf.name);\n g_comboArray[g_curCombo].modeCount = cnf->result.combo_read_cnf.modeCount;\n g_comboArray[g_curCombo].modeArray = (dfo_combo_mode_test*)malloc(sizeof(dfo_combo_mode_test)*g_comboArray[g_curCombo].modeCount);\n }\n else if (op == DFO_OP_COMBO_MODE)\n {\n printf("Combo(%d) Mode(%d) name: (%s)\n", g_curCombo, g_curComboMode, cnf->result.combo_mode_cnf.name);\n strcpy(g_comboArray[g_curCombo].modeArray[g_curComboMode].name, cnf->result.combo_mode_cnf.name);\n }\n else if (op == DFO_OP_COMBO_UPDATE)\n {\n }\n else\n {\n printf("Wrong DFO OP: (%d)\n", op);\n }\n}" (storage_class_specifier) "static" (static) "static" (primitive_type) "void" (function_declarator) "dfo_callback(void* buf, unsigned int size)" (identifier) "dfo_callback" (parameter_list) "(void* buf, unsigned int size)" (() "(" (parameter_declaration) "void* buf" (primitive_type) "void" (pointer_declarator) "* buf" (*) "*" (identifier) "buf" (,) "," (parameter_declaration) "unsigned int size" (sized_type_specifier) "unsigned int" (unsigned) "unsigned" (primitive_type) "int" (identifier) "size" ()) ")" (compound_statement) "{\n if (buf == NULL)\n {\n printf("callback buffer is NULL\n");\n return;\n }\n \n FT_DFO_CNF* cnf = (FT_DFO_CNF*)buf;\n \n DFO_OP op = cnf->op;\n \n if (op == DFO_OP_READ_COUNT)\n {\n g_dfoCount = cnf->result.read_count_cnf.count;\n printf("DfoBoot count: (%d)\n", g_dfoCount);\n \n if (g_dfoCount > 0)\n {\n if (g_dfoArray)\n {\n free(g_dfoArray);\n g_dfoArray = NULL;\n }\n g_dfoArray = (dfo_test*)malloc(sizeof(dfo_test)*g_dfoCount);\n }\n }\n else if (op == DFO_OP_READ)\n {\n printf("Read(%d) name: (%s) value: (%d) partition: (%d)\n", g_curIndex,\n cnf->result.read_cnf.name, cnf->result.read_cnf.value, cnf->result.read_cnf.partition);\n strcpy(g_dfoArray[g_curIndex].name, cnf->result.read_cnf.name);\n g_dfoArray[g_curIndex].value = cnf->result.read_cnf.value;\n g_dfoArray[g_curIndex].partition = cnf->result.read_cnf.partition;\n }\n else if (op == DFO_OP_WRITE)\n {\n printf("Write result: (%d)\n", cnf->status);\n }\n else if (op == DFO_OP_COMBO_COUNT)\n {\n g_comboCount = cnf->result.combo_count_cnf.count;\n printf("Combo count: (%d)\n", g_comboCount);\n \n if (g_comboCount > 0)\n {\n if (g_comboArray)\n {\n free(g_comboArray);\n g_comboArray = NULL;\n }\n g_comboArray = (dfo_combo_test*)malloc(sizeof(dfo_combo_test)*g_comboCount);\n }\n }\n else if (op == DFO_OP_COMBO_READ)\n {\n printf("Combo Read(%d) name: (%s) mode count: (%d)\n", g_curCombo,\n cnf->result.combo_read_cnf.name, cnf->result.combo_read_cnf.modeCount);\n strcpy(g_comboArray[g_curCombo].name, cnf->result.combo_read_cnf.name);\n g_comboArray[g_curCombo].modeCount = cnf->result.combo_read_cnf.modeCount;\n g_comboArray[g_curCombo].modeArray = (dfo_combo_mode_test*)malloc(sizeof(dfo_combo_mode_test)*g_comboArray[g_curCombo].modeCount);\n }\n else if (op == DFO_OP_COMBO_MODE)\n {\n printf("Combo(%d) Mode(%d) name: (%s)\n", g_curCombo, g_curComboMode, cnf->result.combo_mode_cnf.name);\n strcpy(g_comboArray[g_curCombo].modeArray[g_curComboMode].name, cnf->result.combo_mode_cnf.name);\n }\n else if (op == DFO_OP_COMBO_UPDATE)\n {\n }\n else\n {\n printf("Wrong DFO OP: (%d)\n", op);\n }\n}" ({) "{" (if_statement) "if (buf == NULL)\n {\n printf("callback buffer is NULL\n");\n return;\n }" (if) "if" (parenthesized_expression) "(buf == NULL)" (() "(" (binary_expression) "buf == NULL" (identifier) "buf" (==) "==" (null) "NULL" (NULL) "NULL" ()) ")" (compound_statement) "{\n printf("callback buffer is NULL\n");\n return;\n }" ({) "{" (expression_statement) "printf("callback buffer is NULL\n");" (call_expression) "printf("callback buffer is NULL\n")" (identifier) "printf" (argument_list) "("callback buffer is NULL\n")" (() "(" (string_literal) ""callback buffer is NULL\n"" (") """ (string_content) "callback buffer is NULL" (escape_sequence) "\n" (") """ ()) ")" (;) ";" (return_statement) "return;" (return) "return" (;) ";" (}) "}" (declaration) "FT_DFO_CNF* cnf = (FT_DFO_CNF*)buf;" (type_identifier) "FT_DFO_CNF" (init_declarator) "* cnf = (FT_DFO_CNF*)buf" (pointer_declarator) "* cnf" (*) "*" (identifier) "cnf" (=) "=" (cast_expression) "(FT_DFO_CNF*)buf" (() "(" (type_descriptor) "FT_DFO_CNF*" (type_identifier) "FT_DFO_CNF" (abstract_pointer_declarator) "*" (*) "*" ()) ")" (identifier) "buf" (;) ";" (declaration) "DFO_OP op = cnf->op;" (type_identifier) "DFO_OP" (init_declarator) "op = cnf->op" (identifier) "op" (=) "=" (field_expression) "cnf->op" (identifier) "cnf" (->) "->" (field_identifier) "op" (;) ";" (if_statement) "if (op == DFO_OP_READ_COUNT)\n {\n g_dfoCount = cnf->result.read_count_cnf.count;\n printf("DfoBoot count: (%d)\n", g_dfoCount);\n \n if (g_dfoCount > 0)\n {\n if (g_dfoArray)\n {\n free(g_dfoArray);\n g_dfoArray = NULL;\n }\n g_dfoArray = (dfo_test*)malloc(sizeof(dfo_test)*g_dfoCount);\n }\n }\n else if (op == DFO_OP_READ)\n {\n printf("Read(%d) name: (%s) value: (%d) partition: (%d)\n", g_curIndex,\n cnf->result.read_cnf.name, cnf->result.read_cnf.value, cnf->result.read_cnf.partition);\n strcpy(g_dfoArray[g_curIndex].name, cnf->result.read_cnf.name);\n g_dfoArray[g_curIndex].value = cnf->result.read_cnf.value;\n g_dfoArray[g_curIndex].partition = cnf->result.read_cnf.partition;\n }\n else if (op == DFO_OP_WRITE)\n {\n printf("Write result: (%d)\n", cnf->status);\n }\n else if (op == DFO_OP_COMBO_COUNT)\n {\n g_comboCount = cnf->result.combo_count_cnf.count;\n printf("Combo count: (%d)\n", g_comboCount);\n \n if (g_comboCount > 0)\n {\n if (g_comboArray)\n {\n free(g_comboArray);\n g_comboArray = NULL;\n }\n g_comboArray = (dfo_combo_test*)malloc(sizeof(dfo_combo_test)*g_comboCount);\n }\n }\n else if (op == DFO_OP_COMBO_READ)\n {\n printf("Combo Read(%d) name: (%s) mode count: (%d)\n", g_curCombo,\n cnf->result.combo_read_cnf.name, cnf->result.combo_read_cnf.modeCount);\n strcpy(g_comboArray[g_curCombo].name, cnf->result.combo_read_cnf.name);\n g_comboArray[g_curCombo].modeCount = cnf->result.combo_read_cnf.modeCount;\n g_comboArray[g_curCombo].modeArray = (dfo_combo_mode_test*)malloc(sizeof(dfo_combo_mode_test)*g_comboArray[g_curCombo].modeCount);\n }\n else if (op == DFO_OP_COMBO_MODE)\n {\n printf("Combo(%d) Mode(%d) name: (%s)\n", g_curCombo, g_curComboMode, cnf->result.combo_mode_cnf.name);\n strcpy(g_comboArray[g_curCombo].modeArray[g_curComboMode].name, cnf->result.combo_mode_cnf.name);\n }\n else if (op == DFO_OP_COMBO_UPDATE)\n {\n }\n else\n {\n printf("Wrong DFO OP: (%d)\n", op);\n }" (if) "if" (parenthesized_expression) "(op == DFO_OP_READ_COUNT)" (() "(" (binary_expression) "op == DFO_OP_READ_COUNT" (identifier) "op" (==) "==" (identifier) "DFO_OP_READ_COUNT" ()) ")" (compound_statement) "{\n g_dfoCount = cnf->result.read_count_cnf.count;\n printf("DfoBoot count: (%d)\n", g_dfoCount);\n \n if (g_dfoCount > 0)\n {\n if (g_dfoArray)\n {\n free(g_dfoArray);\n g_dfoArray = NULL;\n }\n g_dfoArray = (dfo_test*)malloc(sizeof(dfo_test)*g_dfoCount);\n }\n }" ({) "{" (expression_statement) "g_dfoCount = cnf->result.read_count_cnf.count;" (assignment_expression) "g_dfoCount = cnf->result.read_count_cnf.count" (identifier) "g_dfoCount" (=) "=" (field_expression) "cnf->result.read_count_cnf.count" (field_expression) "cnf->result.read_count_cnf" (field_expression) "cnf->result" (identifier) "cnf" (->) "->" (field_identifier) "result" (.) "." (field_identifier) "read_count_cnf" (.) "." (field_identifier) "count" (;) ";" (expression_statement) "printf("DfoBoot count: (%d)\n", g_dfoCount);" (call_expression) "printf("DfoBoot count: (%d)\n", g_dfoCount)" (identifier) "printf" (argument_list) "("DfoBoot count: (%d)\n", g_dfoCount)" (() "(" (string_literal) ""DfoBoot count: (%d)\n"" (") """ (string_content) "DfoBoot count: (%d)" (escape_sequence) "\n" (") """ (,) "," (identifier) "g_dfoCount" ()) ")" (;) ";" (if_statement) "if (g_dfoCount > 0)\n {\n if (g_dfoArray)\n {\n free(g_dfoArray);\n g_dfoArray = NULL;\n }\n g_dfoArray = (dfo_test*)malloc(sizeof(dfo_test)*g_dfoCount);\n }" (if) "if" (parenthesized_expression) "(g_dfoCount > 0)" (() "(" (binary_expression) "g_dfoCount > 0" (identifier) "g_dfoCount" (>) ">" (number_literal) "0" ()) ")" (compound_statement) "{\n if (g_dfoArray)\n {\n free(g_dfoArray);\n g_dfoArray = NULL;\n }\n g_dfoArray = (dfo_test*)malloc(sizeof(dfo_test)*g_dfoCount);\n }" ({) "{" (if_statement) "if (g_dfoArray)\n {\n free(g_dfoArray);\n g_dfoArray = NULL;\n }" (if) "if" (parenthesized_expression) "(g_dfoArray)" (() "(" (identifier) "g_dfoArray" ()) ")" (compound_statement) "{\n free(g_dfoArray);\n g_dfoArray = NULL;\n }" ({) "{" (expression_statement) "free(g_dfoArray);" (call_expression) "free(g_dfoArray)" (identifier) "free" (argument_list) "(g_dfoArray)" (() "(" (identifier) "g_dfoArray" ()) ")" (;) ";" (expression_statement) "g_dfoArray = NULL;" (assignment_expression) "g_dfoArray = NULL" (identifier) "g_dfoArray" (=) "=" (null) "NULL" (NULL) "NULL" (;) ";" (}) "}" (expression_statement) "g_dfoArray = (dfo_test*)malloc(sizeof(dfo_test)*g_dfoCount);" (assignment_expression) "g_dfoArray = (dfo_test*)malloc(sizeof(dfo_test)*g_dfoCount)" (identifier) "g_dfoArray" (=) "=" (cast_expression) "(dfo_test*)malloc(sizeof(dfo_test)*g_dfoCount)" (() "(" (type_descriptor) "dfo_test*" (type_identifier) "dfo_test" (abstract_pointer_declarator) "*" (*) "*" ()) ")" (call_expression) "malloc(sizeof(dfo_test)*g_dfoCount)" (identifier) "malloc" (argument_list) "(sizeof(dfo_test)*g_dfoCount)" (() "(" (binary_expression) "sizeof(dfo_test)*g_dfoCount" (sizeof_expression) "sizeof(dfo_test)" (sizeof) "sizeof" (parenthesized_expression) "(dfo_test)" (() "(" (identifier) "dfo_test" ()) ")" (*) "*" (identifier) "g_dfoCount" ()) ")" (;) ";" (}) "}" (}) "}" (else_clause) "else if (op == DFO_OP_READ)\n {\n printf("Read(%d) name: (%s) value: (%d) partition: (%d)\n", g_curIndex,\n cnf->result.read_cnf.name, cnf->result.read_cnf.value, cnf->result.read_cnf.partition);\n strcpy(g_dfoArray[g_curIndex].name, cnf->result.read_cnf.name);\n g_dfoArray[g_curIndex].value = cnf->result.read_cnf.value;\n g_dfoArray[g_curIndex].partition = cnf->result.read_cnf.partition;\n }\n else if (op == DFO_OP_WRITE)\n {\n printf("Write result: (%d)\n", cnf->status);\n }\n else if (op == DFO_OP_COMBO_COUNT)\n {\n g_comboCount = cnf->result.combo_count_cnf.count;\n printf("Combo count: (%d)\n", g_comboCount);\n \n if (g_comboCount > 0)\n {\n if (g_comboArray)\n {\n free(g_comboArray);\n g_comboArray = NULL;\n }\n g_comboArray = (dfo_combo_test*)malloc(sizeof(dfo_combo_test)*g_comboCount);\n }\n }\n else if (op == DFO_OP_COMBO_READ)\n {\n printf("Combo Read(%d) name: (%s) mode count: (%d)\n", g_curCombo,\n cnf->result.combo_read_cnf.name, cnf->result.combo_read_cnf.modeCount);\n strcpy(g_comboArray[g_curCombo].name, cnf->result.combo_read_cnf.name);\n g_comboArray[g_curCombo].modeCount = cnf->result.combo_read_cnf.modeCount;\n g_comboArray[g_curCombo].modeArray = (dfo_combo_mode_test*)malloc(sizeof(dfo_combo_mode_test)*g_comboArray[g_curCombo].modeCount);\n }\n else if (op == DFO_OP_COMBO_MODE)\n {\n printf("Combo(%d) Mode(%d) name: (%s)\n", g_curCombo, g_curComboMode, cnf->result.combo_mode_cnf.name);\n strcpy(g_comboArray[g_curCombo].modeArray[g_curComboMode].name, cnf->result.combo_mode_cnf.name);\n }\n else if (op == DFO_OP_COMBO_UPDATE)\n {\n }\n else\n {\n printf("Wrong DFO OP: (%d)\n", op);\n }" (else) "else" (if_statement) "if (op == DFO_OP_READ)\n {\n printf("Read(%d) name: (%s) value: (%d) partition: (%d)\n", g_curIndex,\n cnf->result.read_cnf.name, cnf->result.read_cnf.value, cnf->result.read_cnf.partition);\n strcpy(g_dfoArray[g_curIndex].name, cnf->result.read_cnf.name);\n g_dfoArray[g_curIndex].value = cnf->result.read_cnf.value;\n g_dfoArray[g_curIndex].partition = cnf->result.read_cnf.partition;\n }\n else if (op == DFO_OP_WRITE)\n {\n printf("Write result: (%d)\n", cnf->status);\n }\n else if (op == DFO_OP_COMBO_COUNT)\n {\n g_comboCount = cnf->result.combo_count_cnf.count;\n printf("Combo count: (%d)\n", g_comboCount);\n \n if (g_comboCount > 0)\n {\n if (g_comboArray)\n {\n free(g_comboArray);\n g_comboArray = NULL;\n }\n g_comboArray = (dfo_combo_test*)malloc(sizeof(dfo_combo_test)*g_comboCount);\n }\n }\n else if (op == DFO_OP_COMBO_READ)\n {\n printf("Combo Read(%d) name: (%s) mode count: (%d)\n", g_curCombo,\n cnf->result.combo_read_cnf.name, cnf->result.combo_read_cnf.modeCount);\n strcpy(g_comboArray[g_curCombo].name, cnf->result.combo_read_cnf.name);\n g_comboArray[g_curCombo].modeCount = cnf->result.combo_read_cnf.modeCount;\n g_comboArray[g_curCombo].modeArray = (dfo_combo_mode_test*)malloc(sizeof(dfo_combo_mode_test)*g_comboArray[g_curCombo].modeCount);\n }\n else if (op == DFO_OP_COMBO_MODE)\n {\n printf("Combo(%d) Mode(%d) name: (%s)\n", g_curCombo, g_curComboMode, cnf->result.combo_mode_cnf.name);\n strcpy(g_comboArray[g_curCombo].modeArray[g_curComboMode].name, cnf->result.combo_mode_cnf.name);\n }\n else if (op == DFO_OP_COMBO_UPDATE)\n {\n }\n else\n {\n printf("Wrong DFO OP: (%d)\n", op);\n }" (if) "if" (parenthesized_expression) "(op == DFO_OP_READ)" (() "(" (binary_expression) "op == DFO_OP_READ" (identifier) "op" (==) "==" (identifier) "DFO_OP_READ" ()) ")" (compound_statement) "{\n printf("Read(%d) name: (%s) value: (%d) partition: (%d)\n", g_curIndex,\n cnf->result.read_cnf.name, cnf->result.read_cnf.value, cnf->result.read_cnf.partition);\n strcpy(g_dfoArray[g_curIndex].name, cnf->result.read_cnf.name);\n g_dfoArray[g_curIndex].value = cnf->result.read_cnf.value;\n g_dfoArray[g_curIndex].partition = cnf->result.read_cnf.partition;\n }" ({) "{" (expression_statement) "printf("Read(%d) name: (%s) value: (%d) partition: (%d)\n", g_curIndex,\n cnf->result.read_cnf.name, cnf->result.read_cnf.value, cnf->result.read_cnf.partition);" (call_expression) "printf("Read(%d) name: (%s) value: (%d) partition: (%d)\n", g_curIndex,\n cnf->result.read_cnf.name, cnf->result.read_cnf.value, cnf->result.read_cnf.partition)" (identifier) "printf" (argument_list) "("Read(%d) name: (%s) value: (%d) partition: (%d)\n", g_curIndex,\n cnf->result.read_cnf.name, cnf->result.read_cnf.value, cnf->result.read_cnf.partition)" (() "(" (string_literal) ""Read(%d) name: (%s) value: (%d) partition: (%d)\n"" (") """ (string_content) "Read(%d) name: (%s) value: (%d) partition: (%d)" (escape_sequence) "\n" (") """ (,) "," (identifier) "g_curIndex" (,) "," (field_expression) "cnf->result.read_cnf.name" (field_expression) "cnf->result.read_cnf" (field_expression) "cnf->result" (identifier) "cnf" (->) "->" (field_identifier) "result" (.) "." (field_identifier) "read_cnf" (.) "." (field_identifier) "name" (,) "," (field_expression) "cnf->result.read_cnf.value" (field_expression) "cnf->result.read_cnf" (field_expression) "cnf->result" (identifier) "cnf" (->) "->" (field_identifier) "result" (.) "." (field_identifier) "read_cnf" (.) "." (field_identifier) "value" (,) "," (field_expression) "cnf->result.read_cnf.partition" (field_expression) "cnf->result.read_cnf" (field_expression) "cnf->result" (identifier) "cnf" (->) "->" (field_identifier) "result" (.) "." (field_identifier) "read_cnf" (.) "." (field_identifier) "partition" ()) ")" (;) ";" (expression_statement) "strcpy(g_dfoArray[g_curIndex].name, cnf->result.read_cnf.name);" (call_expression) "strcpy(g_dfoArray[g_curIndex].name, cnf->result.read_cnf.name)" (identifier) "strcpy" (argument_list) "(g_dfoArray[g_curIndex].name, cnf->result.read_cnf.name)" (() "(" (field_expression) "g_dfoArray[g_curIndex].name" (subscript_expression) "g_dfoArray[g_curIndex]" (identifier) "g_dfoArray" ([) "[" (identifier) "g_curIndex" (]) "]" (.) "." (field_identifier) "name" (,) "," (field_expression) "cnf->result.read_cnf.name" (field_expression) "cnf->result.read_cnf" (field_expression) "cnf->result" (identifier) "cnf" (->) "->" (field_identifier) "result" (.) "." (field_identifier) "read_cnf" (.) "." (field_identifier) "name" ()) ")" (;) ";" (expression_statement) "g_dfoArray[g_curIndex].value = cnf->result.read_cnf.value;" (assignment_expression) "g_dfoArray[g_curIndex].value = cnf->result.read_cnf.value" (field_expression) "g_dfoArray[g_curIndex].value" (subscript_expression) "g_dfoArray[g_curIndex]" (identifier) "g_dfoArray" ([) "[" (identifier) "g_curIndex" (]) "]" (.) "." (field_identifier) "value" (=) "=" (field_expression) "cnf->result.read_cnf.value" (field_expression) "cnf->result.read_cnf" (field_expression) "cnf->result" (identifier) "cnf" (->) "->" (field_identifier) "result" (.) "." (field_identifier) "read_cnf" (.) "." (field_identifier) "value" (;) ";" (expression_statement) "g_dfoArray[g_curIndex].partition = cnf->result.read_cnf.partition;" (assignment_expression) "g_dfoArray[g_curIndex].partition = cnf->result.read_cnf.partition" (field_expression) "g_dfoArray[g_curIndex].partition" (subscript_expression) "g_dfoArray[g_curIndex]" (identifier) "g_dfoArray" ([) "[" (identifier) "g_curIndex" (]) "]" (.) "." (field_identifier) "partition" (=) "=" (field_expression) "cnf->result.read_cnf.partition" (field_expression) "cnf->result.read_cnf" (field_expression) "cnf->result" (identifier) "cnf" (->) "->" (field_identifier) "result" (.) "." (field_identifier) "read_cnf" (.) "." (field_identifier) "partition" (;) ";" (}) "}" (else_clause) "else if (op == DFO_OP_WRITE)\n {\n printf("Write result: (%d)\n", cnf->status);\n }\n else if (op == DFO_OP_COMBO_COUNT)\n {\n g_comboCount = cnf->result.combo_count_cnf.count;\n printf("Combo count: (%d)\n", g_comboCount);\n \n if (g_comboCount > 0)\n {\n if (g_comboArray)\n {\n free(g_comboArray);\n g_comboArray = NULL;\n }\n g_comboArray = (dfo_combo_test*)malloc(sizeof(dfo_combo_test)*g_comboCount);\n }\n }\n else if (op == DFO_OP_COMBO_READ)\n {\n printf("Combo Read(%d) name: (%s) mode count: (%d)\n", g_curCombo,\n cnf->result.combo_read_cnf.name, cnf->result.combo_read_cnf.modeCount);\n strcpy(g_comboArray[g_curCombo].name, cnf->result.combo_read_cnf.name);\n g_comboArray[g_curCombo].modeCount = cnf->result.combo_read_cnf.modeCount;\n g_comboArray[g_curCombo].modeArray = (dfo_combo_mode_test*)malloc(sizeof(dfo_combo_mode_test)*g_comboArray[g_curCombo].modeCount);\n }\n else if (op == DFO_OP_COMBO_MODE)\n {\n printf("Combo(%d) Mode(%d) name: (%s)\n", g_curCombo, g_curComboMode, cnf->result.combo_mode_cnf.name);\n strcpy(g_comboArray[g_curCombo].modeArray[g_curComboMode].name, cnf->result.combo_mode_cnf.name);\n }\n else if (op == DFO_OP_COMBO_UPDATE)\n {\n }\n else\n {\n printf("Wrong DFO OP: (%d)\n", op);\n }" (else) "else" (if_statement) "if (op == DFO_OP_WRITE)\n {\n printf("Write result: (%d)\n", cnf->status);\n }\n else if (op == DFO_OP_COMBO_COUNT)\n {\n g_comboCount = cnf->result.combo_count_cnf.count;\n printf("Combo count: (%d)\n", g_comboCount);\n \n if (g_comboCount > 0)\n {\n if (g_comboArray)\n {\n free(g_comboArray);\n g_comboArray = NULL;\n }\n g_comboArray = (dfo_combo_test*)malloc(sizeof(dfo_combo_test)*g_comboCount);\n }\n }\n else if (op == DFO_OP_COMBO_READ)\n {\n printf("Combo Read(%d) name: (%s) mode count: (%d)\n", g_curCombo,\n cnf->result.combo_read_cnf.name, cnf->result.combo_read_cnf.modeCount);\n strcpy(g_comboArray[g_curCombo].name, cnf->result.combo_read_cnf.name);\n g_comboArray[g_curCombo].modeCount = cnf->result.combo_read_cnf.modeCount;\n g_comboArray[g_curCombo].modeArray = (dfo_combo_mode_test*)malloc(sizeof(dfo_combo_mode_test)*g_comboArray[g_curCombo].modeCount);\n }\n else if (op == DFO_OP_COMBO_MODE)\n {\n printf("Combo(%d) Mode(%d) name: (%s)\n", g_curCombo, g_curComboMode, cnf->result.combo_mode_cnf.name);\n strcpy(g_comboArray[g_curCombo].modeArray[g_curComboMode].name, cnf->result.combo_mode_cnf.name);\n }\n else if (op == DFO_OP_COMBO_UPDATE)\n {\n }\n else\n {\n printf("Wrong DFO OP: (%d)\n", op);\n }" (if) "if" (parenthesized_expression) "(op == DFO_OP_WRITE)" (() "(" (binary_expression) "op == DFO_OP_WRITE" (identifier) "op" (==) "==" (identifier) "DFO_OP_WRITE" ()) ")" (compound_statement) "{\n printf("Write result: (%d)\n", cnf->status);\n }" ({) "{" (expression_statement) "printf("Write result: (%d)\n", cnf->status);" (call_expression) "printf("Write result: (%d)\n", cnf->status)" (identifier) "printf" (argument_list) "("Write result: (%d)\n", cnf->status)" (() "(" (string_literal) ""Write result: (%d)\n"" (") """ (string_content) "Write result: (%d)" (escape_sequence) "\n" (") """ (,) "," (field_expression) "cnf->status" (identifier) "cnf" (->) "->" (field_identifier) "status" ()) ")" (;) ";" (}) "}" (else_clause) "else if (op == DFO_OP_COMBO_COUNT)\n {\n g_comboCount = cnf->result.combo_count_cnf.count;\n printf("Combo count: (%d)\n", g_comboCount);\n \n if (g_comboCount > 0)\n {\n if (g_comboArray)\n {\n free(g_comboArray);\n g_comboArray = NULL;\n }\n g_comboArray = (dfo_combo_test*)malloc(sizeof(dfo_combo_test)*g_comboCount);\n }\n }\n else if (op == DFO_OP_COMBO_READ)\n {\n printf("Combo Read(%d) name: (%s) mode count: (%d)\n", g_curCombo,\n cnf->result.combo_read_cnf.name, cnf->result.combo_read_cnf.modeCount);\n strcpy(g_comboArray[g_curCombo].name, cnf->result.combo_read_cnf.name);\n g_comboArray[g_curCombo].modeCount = cnf->result.combo_read_cnf.modeCount;\n g_comboArray[g_curCombo].modeArray = (dfo_combo_mode_test*)malloc(sizeof(dfo_combo_mode_test)*g_comboArray[g_curCombo].modeCount);\n }\n else if (op == DFO_OP_COMBO_MODE)\n {\n printf("Combo(%d) Mode(%d) name: (%s)\n", g_curCombo, g_curComboMode, cnf->result.combo_mode_cnf.name);\n strcpy(g_comboArray[g_curCombo].modeArray[g_curComboMode].name, cnf->result.combo_mode_cnf.name);\n }\n else if (op == DFO_OP_COMBO_UPDATE)\n {\n }\n else\n {\n printf("Wrong DFO OP: (%d)\n", op);\n }" (else) "else" (if_statement) "if (op == DFO_OP_COMBO_COUNT)\n {\n g_comboCount = cnf->result.combo_count_cnf.count;\n printf("Combo count: (%d)\n", g_comboCount);\n \n if (g_comboCount > 0)\n {\n if (g_comboArray)\n {\n free(g_comboArray);\n g_comboArray = NULL;\n }\n g_comboArray = (dfo_combo_test*)malloc(sizeof(dfo_combo_test)*g_comboCount);\n }\n }\n else if (op == DFO_OP_COMBO_READ)\n {\n printf("Combo Read(%d) name: (%s) mode count: (%d)\n", g_curCombo,\n cnf->result.combo_read_cnf.name, cnf->result.combo_read_cnf.modeCount);\n strcpy(g_comboArray[g_curCombo].name, cnf->result.combo_read_cnf.name);\n g_comboArray[g_curCombo].modeCount = cnf->result.combo_read_cnf.modeCount;\n g_comboArray[g_curCombo].modeArray = (dfo_combo_mode_test*)malloc(sizeof(dfo_combo_mode_test)*g_comboArray[g_curCombo].modeCount);\n }\n else if (op == DFO_OP_COMBO_MODE)\n {\n printf("Combo(%d) Mode(%d) name: (%s)\n", g_curCombo, g_curComboMode, cnf->result.combo_mode_cnf.name);\n strcpy(g_comboArray[g_curCombo].modeArray[g_curComboMode].name, cnf->result.combo_mode_cnf.name);\n }\n else if (op == DFO_OP_COMBO_UPDATE)\n {\n }\n else\n {\n printf("Wrong DFO OP: (%d)\n", op);\n }" (if) "if" (parenthesized_expression) "(op == DFO_OP_COMBO_COUNT)" (() "(" (binary_expression) "op == DFO_OP_COMBO_COUNT" (identifier) "op" (==) "==" (identifier) "DFO_OP_COMBO_COUNT" ()) ")" (compound_statement) "{\n g_comboCount = cnf->result.combo_count_cnf.count;\n printf("Combo count: (%d)\n", g_comboCount);\n \n if (g_comboCount > 0)\n {\n if (g_comboArray)\n {\n free(g_comboArray);\n g_comboArray = NULL;\n }\n g_comboArray = (dfo_combo_test*)malloc(sizeof(dfo_combo_test)*g_comboCount);\n }\n }" ({) "{" (expression_statement) "g_comboCount = cnf->result.combo_count_cnf.count;" (assignment_expression) "g_comboCount = cnf->result.combo_count_cnf.count" (identifier) "g_comboCount" (=) "=" (field_expression) "cnf->result.combo_count_cnf.count" (field_expression) "cnf->result.combo_count_cnf" (field_expression) "cnf->result" (identifier) "cnf" (->) "->" (field_identifier) "result" (.) "." (field_identifier) "combo_count_cnf" (.) "." (field_identifier) "count" (;) ";" (expression_statement) "printf("Combo count: (%d)\n", g_comboCount);" (call_expression) "printf("Combo count: (%d)\n", g_comboCount)" (identifier) "printf" (argument_list) "("Combo count: (%d)\n", g_comboCount)" (() "(" (string_literal) ""Combo count: (%d)\n"" (") """ (string_content) "Combo count: (%d)" (escape_sequence) "\n" (") """ (,) "," (identifier) "g_comboCount" ()) ")" (;) ";" (if_statement) "if (g_comboCount > 0)\n {\n if (g_comboArray)\n {\n free(g_comboArray);\n g_comboArray = NULL;\n }\n g_comboArray = (dfo_combo_test*)malloc(sizeof(dfo_combo_test)*g_comboCount);\n }" (if) "if" (parenthesized_expression) "(g_comboCount > 0)" (() "(" (binary_expression) "g_comboCount > 0" (identifier) "g_comboCount" (>) ">" (number_literal) "0" ()) ")" (compound_statement) "{\n if (g_comboArray)\n {\n free(g_comboArray);\n g_comboArray = NULL;\n }\n g_comboArray = (dfo_combo_test*)malloc(sizeof(dfo_combo_test)*g_comboCount);\n }" ({) "{" (if_statement) "if (g_comboArray)\n {\n free(g_comboArray);\n g_comboArray = NULL;\n }" (if) "if" (parenthesized_expression) "(g_comboArray)" (() "(" (identifier) "g_comboArray" ()) ")" (compound_statement) "{\n free(g_comboArray);\n g_comboArray = NULL;\n }" ({) "{" (expression_statement) "free(g_comboArray);" (call_expression) "free(g_comboArray)" (identifier) "free" (argument_list) "(g_comboArray)" (() "(" (identifier) "g_comboArray" ()) ")" (;) ";" (expression_statement) "g_comboArray = NULL;" (assignment_expression) "g_comboArray = NULL" (identifier) "g_comboArray" (=) "=" (null) "NULL" (NULL) "NULL" (;) ";" (}) "}" (expression_statement) "g_comboArray = (dfo_combo_test*)malloc(sizeof(dfo_combo_test)*g_comboCount);" (assignment_expression) "g_comboArray = (dfo_combo_test*)malloc(sizeof(dfo_combo_test)*g_comboCount)" (identifier) "g_comboArray" (=) "=" (cast_expression) "(dfo_combo_test*)malloc(sizeof(dfo_combo_test)*g_comboCount)" (() "(" (type_descriptor) "dfo_combo_test*" (type_identifier) "dfo_combo_test" (abstract_pointer_declarator) "*" (*) "*" ()) ")" (call_expression) "malloc(sizeof(dfo_combo_test)*g_comboCount)" (identifier) "malloc" (argument_list) "(sizeof(dfo_combo_test)*g_comboCount)" (() "(" (binary_expression) "sizeof(dfo_combo_test)*g_comboCount" (sizeof_expression) "sizeof(dfo_combo_test)" (sizeof) "sizeof" (parenthesized_expression) "(dfo_combo_test)" (() "(" (identifier) "dfo_combo_test" ()) ")" (*) "*" (identifier) "g_comboCount" ()) ")" (;) ";" (}) "}" (}) "}" (else_clause) "else if (op == DFO_OP_COMBO_READ)\n {\n printf("Combo Read(%d) name: (%s) mode count: (%d)\n", g_curCombo,\n cnf->result.combo_read_cnf.name, cnf->result.combo_read_cnf.modeCount);\n strcpy(g_comboArray[g_curCombo].name, cnf->result.combo_read_cnf.name);\n g_comboArray[g_curCombo].modeCount = cnf->result.combo_read_cnf.modeCount;\n g_comboArray[g_curCombo].modeArray = (dfo_combo_mode_test*)malloc(sizeof(dfo_combo_mode_test)*g_comboArray[g_curCombo].modeCount);\n }\n else if (op == DFO_OP_COMBO_MODE)\n {\n printf("Combo(%d) Mode(%d) name: (%s)\n", g_curCombo, g_curComboMode, cnf->result.combo_mode_cnf.name);\n strcpy(g_comboArray[g_curCombo].modeArray[g_curComboMode].name, cnf->result.combo_mode_cnf.name);\n }\n else if (op == DFO_OP_COMBO_UPDATE)\n {\n }\n else\n {\n printf("Wrong DFO OP: (%d)\n", op);\n }" (else) "else" (if_statement) "if (op == DFO_OP_COMBO_READ)\n {\n printf("Combo Read(%d) name: (%s) mode count: (%d)\n", g_curCombo,\n cnf->result.combo_read_cnf.name, cnf->result.combo_read_cnf.modeCount);\n strcpy(g_comboArray[g_curCombo].name, cnf->result.combo_read_cnf.name);\n g_comboArray[g_curCombo].modeCount = cnf->result.combo_read_cnf.modeCount;\n g_comboArray[g_curCombo].modeArray = (dfo_combo_mode_test*)malloc(sizeof(dfo_combo_mode_test)*g_comboArray[g_curCombo].modeCount);\n }\n else if (op == DFO_OP_COMBO_MODE)\n {\n printf("Combo(%d) Mode(%d) name: (%s)\n", g_curCombo, g_curComboMode, cnf->result.combo_mode_cnf.name);\n strcpy(g_comboArray[g_curCombo].modeArray[g_curComboMode].name, cnf->result.combo_mode_cnf.name);\n }\n else if (op == DFO_OP_COMBO_UPDATE)\n {\n }\n else\n {\n printf("Wrong DFO OP: (%d)\n", op);\n }" (if) "if" (parenthesized_expression) "(op == DFO_OP_COMBO_READ)" (() "(" (binary_expression) "op == DFO_OP_COMBO_READ" (identifier) "op" (==) "==" (identifier) "DFO_OP_COMBO_READ" ()) ")" (compound_statement) "{\n printf("Combo Read(%d) name: (%s) mode count: (%d)\n", g_curCombo,\n cnf->result.combo_read_cnf.name, cnf->result.combo_read_cnf.modeCount);\n strcpy(g_comboArray[g_curCombo].name, cnf->result.combo_read_cnf.name);\n g_comboArray[g_curCombo].modeCount = cnf->result.combo_read_cnf.modeCount;\n g_comboArray[g_curCombo].modeArray = (dfo_combo_mode_test*)malloc(sizeof(dfo_combo_mode_test)*g_comboArray[g_curCombo].modeCount);\n }" ({) "{" (expression_statement) "printf("Combo Read(%d) name: (%s) mode count: (%d)\n", g_curCombo,\n cnf->result.combo_read_cnf.name, cnf->result.combo_read_cnf.modeCount);" (call_expression) "printf("Combo Read(%d) name: (%s) mode count: (%d)\n", g_curCombo,\n cnf->result.combo_read_cnf.name, cnf->result.combo_read_cnf.modeCount)" (identifier) "printf" (argument_list) "("Combo Read(%d) name: (%s) mode count: (%d)\n", g_curCombo,\n cnf->result.combo_read_cnf.name, cnf->result.combo_read_cnf.modeCount)" (() "(" (string_literal) ""Combo Read(%d) name: (%s) mode count: (%d)\n"" (") """ (string_content) "Combo Read(%d) name: (%s) mode count: (%d)" (escape_sequence) "\n" (") """ (,) "," (identifier) "g_curCombo" (,) "," (field_expression) "cnf->result.combo_read_cnf.name" (field_expression) "cnf->result.combo_read_cnf" (field_expression) "cnf->result" (identifier) "cnf" (->) "->" (field_identifier) "result" (.) "." (field_identifier) "combo_read_cnf" (.) "." (field_identifier) "name" (,) "," (field_expression) "cnf->result.combo_read_cnf.modeCount" (field_expression) "cnf->result.combo_read_cnf" (field_expression) "cnf->result" (identifier) "cnf" (->) "->" (field_identifier) "result" (.) "." (field_identifier) "combo_read_cnf" (.) "." (field_identifier) "modeCount" ()) ")" (;) ";" (expression_statement) "strcpy(g_comboArray[g_curCombo].name, cnf->result.combo_read_cnf.name);" (call_expression) "strcpy(g_comboArray[g_curCombo].name, cnf->result.combo_read_cnf.name)" (identifier) "strcpy" (argument_list) "(g_comboArray[g_curCombo].name, cnf->result.combo_read_cnf.name)" (() "(" (field_expression) "g_comboArray[g_curCombo].name" (subscript_expression) "g_comboArray[g_curCombo]" (identifier) "g_comboArray" ([) "[" (identifier) "g_curCombo" (]) "]" (.) "." (field_identifier) "name" (,) "," (field_expression) "cnf->result.combo_read_cnf.name" (field_expression) "cnf->result.combo_read_cnf" (field_expression) "cnf->result" (identifier) "cnf" (->) "->" (field_identifier) "result" (.) "." (field_identifier) "combo_read_cnf" (.) "." (field_identifier) "name" ()) ")" (;) ";" (expression_statement) "g_comboArray[g_curCombo].modeCount = cnf->result.combo_read_cnf.modeCount;" (assignment_expression) "g_comboArray[g_curCombo].modeCount = cnf->result.combo_read_cnf.modeCount" (field_expression) "g_comboArray[g_curCombo].modeCount" (subscript_expression) "g_comboArray[g_curCombo]" (identifier) "g_comboArray" ([) "[" (identifier) "g_curCombo" (]) "]" (.) "." (field_identifier) "modeCount" (=) "=" (field_expression) "cnf->result.combo_read_cnf.modeCount" (field_expression) "cnf->result.combo_read_cnf" (field_expression) "cnf->result" (identifier) "cnf" (->) "->" (field_identifier) "result" (.) "." (field_identifier) "combo_read_cnf" (.) "." (field_identifier) "modeCount" (;) ";" (expression_statement) "g_comboArray[g_curCombo].modeArray = (dfo_combo_mode_test*)malloc(sizeof(dfo_combo_mode_test)*g_comboArray[g_curCombo].modeCount);" (assignment_expression) "g_comboArray[g_curCombo].modeArray = (dfo_combo_mode_test*)malloc(sizeof(dfo_combo_mode_test)*g_comboArray[g_curCombo].modeCount)" (field_expression) "g_comboArray[g_curCombo].modeArray" (subscript_expression) "g_comboArray[g_curCombo]" (identifier) "g_comboArray" ([) "[" (identifier) "g_curCombo" (]) "]" (.) "." (field_identifier) "modeArray" (=) "=" (cast_expression) "(dfo_combo_mode_test*)malloc(sizeof(dfo_combo_mode_test)*g_comboArray[g_curCombo].modeCount)" (() "(" (type_descriptor) "dfo_combo_mode_test*" (type_identifier) "dfo_combo_mode_test" (abstract_pointer_declarator) "*" (*) "*" ()) ")" (call_expression) "malloc(sizeof(dfo_combo_mode_test)*g_comboArray[g_curCombo].modeCount)" (identifier) "malloc" (argument_list) "(sizeof(dfo_combo_mode_test)*g_comboArray[g_curCombo].modeCount)" (() "(" (binary_expression) "sizeof(dfo_combo_mode_test)*g_comboArray[g_curCombo].modeCount" (sizeof_expression) "sizeof(dfo_combo_mode_test)" (sizeof) "sizeof" (parenthesized_expression) "(dfo_combo_mode_test)" (() "(" (identifier) "dfo_combo_mode_test" ()) ")" (*) "*" (field_expression) "g_comboArray[g_curCombo].modeCount" (subscript_expression) "g_comboArray[g_curCombo]" (identifier) "g_comboArray" ([) "[" (identifier) "g_curCombo" (]) "]" (.) "." (field_identifier) "modeCount" ()) ")" (;) ";" (}) "}" (else_clause) "else if (op == DFO_OP_COMBO_MODE)\n {\n printf("Combo(%d) Mode(%d) name: (%s)\n", g_curCombo, g_curComboMode, cnf->result.combo_mode_cnf.name);\n strcpy(g_comboArray[g_curCombo].modeArray[g_curComboMode].name, cnf->result.combo_mode_cnf.name);\n }\n else if (op == DFO_OP_COMBO_UPDATE)\n {\n }\n else\n {\n printf("Wrong DFO OP: (%d)\n", op);\n }" (else) "else" (if_statement) "if (op == DFO_OP_COMBO_MODE)\n {\n printf("Combo(%d) Mode(%d) name: (%s)\n", g_curCombo, g_curComboMode, cnf->result.combo_mode_cnf.name);\n strcpy(g_comboArray[g_curCombo].modeArray[g_curComboMode].name, cnf->result.combo_mode_cnf.name);\n }\n else if (op == DFO_OP_COMBO_UPDATE)\n {\n }\n else\n {\n printf("Wrong DFO OP: (%d)\n", op);\n }" (if) "if" (parenthesized_expression) "(op == DFO_OP_COMBO_MODE)" (() "(" (binary_expression) "op == DFO_OP_COMBO_MODE" (identifier) "op" (==) "==" (identifier) "DFO_OP_COMBO_MODE" ()) ")" (compound_statement) "{\n printf("Combo(%d) Mode(%d) name: (%s)\n", g_curCombo, g_curComboMode, cnf->result.combo_mode_cnf.name);\n strcpy(g_comboArray[g_curCombo].modeArray[g_curComboMode].name, cnf->result.combo_mode_cnf.name);\n }" ({) "{" (expression_statement) "printf("Combo(%d) Mode(%d) name: (%s)\n", g_curCombo, g_curComboMode, cnf->result.combo_mode_cnf.name);" (call_expression) "printf("Combo(%d) Mode(%d) name: (%s)\n", g_curCombo, g_curComboMode, cnf->result.combo_mode_cnf.name)" (identifier) "printf" (argument_list) "("Combo(%d) Mode(%d) name: (%s)\n", g_curCombo, g_curComboMode, cnf->result.combo_mode_cnf.name)" (() "(" (string_literal) ""Combo(%d) Mode(%d) name: (%s)\n"" (") """ (string_content) "Combo(%d) Mode(%d) name: (%s)" (escape_sequence) "\n" (") """ (,) "," (identifier) "g_curCombo" (,) "," (identifier) "g_curComboMode" (,) "," (field_expression) "cnf->result.combo_mode_cnf.name" (field_expression) "cnf->result.combo_mode_cnf" (field_expression) "cnf->result" (identifier) "cnf" (->) "->" (field_identifier) "result" (.) "." (field_identifier) "combo_mode_cnf" (.) "." (field_identifier) "name" ()) ")" (;) ";" (expression_statement) "strcpy(g_comboArray[g_curCombo].modeArray[g_curComboMode].name, cnf->result.combo_mode_cnf.name);" (call_expression) "strcpy(g_comboArray[g_curCombo].modeArray[g_curComboMode].name, cnf->result.combo_mode_cnf.name)" (identifier) "strcpy" (argument_list) "(g_comboArray[g_curCombo].modeArray[g_curComboMode].name, cnf->result.combo_mode_cnf.name)" (() "(" (field_expression) "g_comboArray[g_curCombo].modeArray[g_curComboMode].name" (subscript_expression) "g_comboArray[g_curCombo].modeArray[g_curComboMode]" (field_expression) "g_comboArray[g_curCombo].modeArray" (subscript_expression) "g_comboArray[g_curCombo]" (identifier) "g_comboArray" ([) "[" (identifier) "g_curCombo" (]) "]" (.) "." (field_identifier) "modeArray" ([) "[" (identifier) "g_curComboMode" (]) "]" (.) "." (field_identifier) "name" (,) "," (field_expression) "cnf->result.combo_mode_cnf.name" (field_expression) "cnf->result.combo_mode_cnf" (field_expression) "cnf->result" (identifier) "cnf" (->) "->" (field_identifier) "result" (.) "." (field_identifier) "combo_mode_cnf" (.) "." (field_identifier) "name" ()) ")" (;) ";" (}) "}" (else_clause) "else if (op == DFO_OP_COMBO_UPDATE)\n {\n }\n else\n {\n printf("Wrong DFO OP: (%d)\n", op);\n }" (else) "else" (if_statement) "if (op == DFO_OP_COMBO_UPDATE)\n {\n }\n else\n {\n printf("Wrong DFO OP: (%d)\n", op);\n }" (if) "if" (parenthesized_expression) "(op == DFO_OP_COMBO_UPDATE)" (() "(" (binary_expression) "op == DFO_OP_COMBO_UPDATE" (identifier) "op" (==) "==" (identifier) "DFO_OP_COMBO_UPDATE" ()) ")" (compound_statement) "{\n }" ({) "{" (}) "}" (else_clause) "else\n {\n printf("Wrong DFO OP: (%d)\n", op);\n }" (else) "else" (compound_statement) "{\n printf("Wrong DFO OP: (%d)\n", op);\n }" ({) "{" (expression_statement) "printf("Wrong DFO OP: (%d)\n", op);" (call_expression) "printf("Wrong DFO OP: (%d)\n", op)" (identifier) "printf" (argument_list) "("Wrong DFO OP: (%d)\n", op)" (() "(" (string_literal) ""Wrong DFO OP: (%d)\n"" (") """ (string_content) "Wrong DFO OP: (%d)" (escape_sequence) "\n" (") """ (,) "," (identifier) "op" ()) ")" (;) ";" (}) "}" (}) "}" (function_definition) "int main(int argc, const char** argv)\n{\n META_Dfo_SetCallback(dfo_callback);\n META_Dfo_Init();\n \n // test read count\n {\n FT_DFO_REQ req;\n memset(&req, 0, sizeof(FT_DFO_REQ));\n req.header.id = FT_DFO_REQ_ID;\n req.op = DFO_OP_READ_COUNT;\n META_Dfo_OP(&req);\n }\n \n // test read dfo\n {\n FT_DFO_REQ req;\n memset(&req, 0, sizeof(FT_DFO_REQ));\n req.header.id = FT_DFO_REQ_ID;\n req.op = DFO_OP_READ;\n \n int i = 0;\n for (; i < g_dfoCount; i++)\n {\n req.cmd.read_req.index = i;\n g_curIndex = i;\n META_Dfo_OP(&req);\n }\n }\n\n // test write dfo\n {\n FT_DFO_REQ req;\n memset(&req, 0, sizeof(FT_DFO_REQ));\n req.header.id = FT_DFO_REQ_ID;\n req.op = DFO_OP_WRITE;\n\n int i = 0;\n for (; i < g_dfoCount; i++)\n {\n printf("META Dfo write: (%s, %d)\n", g_dfoArray[i].name, 2);\n strcpy(req.cmd.write_req.name, g_dfoArray[i].name);\n req.cmd.write_req.partition = g_dfoArray[i].partition;\n if (g_dfoArray[i].partition == 0)\n req.cmd.write_req.value = 6;\n else\n req.cmd.write_req.value = 16;\n if (i == g_dfoCount - 1)\n {\n req.cmd.write_req.save = 1;\n }\n else\n {\n req.cmd.write_req.save = 0;\n }\n META_Dfo_OP(&req);\n }\n }\n \n // test read dfo combo count\n {\n FT_DFO_REQ req;\n memset(&req, 0, sizeof(FT_DFO_REQ));\n req.header.id = FT_DFO_REQ_ID;\n req.op = DFO_OP_COMBO_COUNT;\n META_Dfo_OP(&req);\n }\n \n // test read dfo combo\n {\n FT_DFO_REQ req;\n memset(&req, 0, sizeof(FT_DFO_REQ));\n req.header.id = FT_DFO_REQ_ID;\n req.op = DFO_OP_COMBO_READ;\n \n int i = 0;\n for (; i < g_comboCount; i++)\n {\n req.cmd.combo_read_req.index = i;\n g_curCombo = i;\n META_Dfo_OP(&req);\n \n // test read dfo combo mode\n FT_DFO_REQ req2;\n memset(&req2, 0, sizeof(FT_DFO_REQ));\n req2.header.id = FT_DFO_REQ_ID;\n req2.op = DFO_OP_COMBO_MODE;\n \n int j = 0;\n for (; j < g_comboArray[g_curCombo].modeCount; j++)\n {\n req2.cmd.combo_mode_req.index = i;\n req2.cmd.combo_mode_req.modeIndex = j;\n g_curComboMode = j;\n META_Dfo_OP(&req2);\n }\n }\n }\n \n // test write dfo combo\n {\n }\n\n META_Dfo_Deinit();\n META_Dfo_SetCallback(NULL);\n \n // TODO: free memory\n \n return 0;\n}" (primitive_type) "int" (function_declarator) "main(int argc, const char** argv)" (identifier) "main" (parameter_list) "(int argc, const char** argv)" (() "(" (parameter_declaration) "int argc" (primitive_type) "int" (identifier) "argc" (,) "," (parameter_declaration) "const char** argv" (type_qualifier) "const" (const) "const" (primitive_type) "char" (pointer_declarator) "** argv" (*) "*" (pointer_declarator) "* argv" (*) "*" (identifier) "argv" ()) ")" (compound_statement) "{\n META_Dfo_SetCallback(dfo_callback);\n META_Dfo_Init();\n \n // test read count\n {\n FT_DFO_REQ req;\n memset(&req, 0, sizeof(FT_DFO_REQ));\n req.header.id = FT_DFO_REQ_ID;\n req.op = DFO_OP_READ_COUNT;\n META_Dfo_OP(&req);\n }\n \n // test read dfo\n {\n FT_DFO_REQ req;\n memset(&req, 0, sizeof(FT_DFO_REQ));\n req.header.id = FT_DFO_REQ_ID;\n req.op = DFO_OP_READ;\n \n int i = 0;\n for (; i < g_dfoCount; i++)\n {\n req.cmd.read_req.index = i;\n g_curIndex = i;\n META_Dfo_OP(&req);\n }\n }\n\n // test write dfo\n {\n FT_DFO_REQ req;\n memset(&req, 0, sizeof(FT_DFO_REQ));\n req.header.id = FT_DFO_REQ_ID;\n req.op = DFO_OP_WRITE;\n\n int i = 0;\n for (; i < g_dfoCount; i++)\n {\n printf("META Dfo write: (%s, %d)\n", g_dfoArray[i].name, 2);\n strcpy(req.cmd.write_req.name, g_dfoArray[i].name);\n req.cmd.write_req.partition = g_dfoArray[i].partition;\n if (g_dfoArray[i].partition == 0)\n req.cmd.write_req.value = 6;\n else\n req.cmd.write_req.value = 16;\n if (i == g_dfoCount - 1)\n {\n req.cmd.write_req.save = 1;\n }\n else\n {\n req.cmd.write_req.save = 0;\n }\n META_Dfo_OP(&req);\n }\n }\n \n // test read dfo combo count\n {\n FT_DFO_REQ req;\n memset(&req, 0, sizeof(FT_DFO_REQ));\n req.header.id = FT_DFO_REQ_ID;\n req.op = DFO_OP_COMBO_COUNT;\n META_Dfo_OP(&req);\n }\n \n // test read dfo combo\n {\n FT_DFO_REQ req;\n memset(&req, 0, sizeof(FT_DFO_REQ));\n req.header.id = FT_DFO_REQ_ID;\n req.op = DFO_OP_COMBO_READ;\n \n int i = 0;\n for (; i < g_comboCount; i++)\n {\n req.cmd.combo_read_req.index = i;\n g_curCombo = i;\n META_Dfo_OP(&req);\n \n // test read dfo combo mode\n FT_DFO_REQ req2;\n memset(&req2, 0, sizeof(FT_DFO_REQ));\n req2.header.id = FT_DFO_REQ_ID;\n req2.op = DFO_OP_COMBO_MODE;\n \n int j = 0;\n for (; j < g_comboArray[g_curCombo].modeCount; j++)\n {\n req2.cmd.combo_mode_req.index = i;\n req2.cmd.combo_mode_req.modeIndex = j;\n g_curComboMode = j;\n META_Dfo_OP(&req2);\n }\n }\n }\n \n // test write dfo combo\n {\n }\n\n META_Dfo_Deinit();\n META_Dfo_SetCallback(NULL);\n \n // TODO: free memory\n \n return 0;\n}" ({) "{" (expression_statement) "META_Dfo_SetCallback(dfo_callback);" (call_expression) "META_Dfo_SetCallback(dfo_callback)" (identifier) "META_Dfo_SetCallback" (argument_list) "(dfo_callback)" (() "(" (identifier) "dfo_callback" ()) ")" (;) ";" (expression_statement) "META_Dfo_Init();" (call_expression) "META_Dfo_Init()" (identifier) "META_Dfo_Init" (argument_list) "()" (() "(" ()) ")" (;) ";" (comment) "// test read count" (compound_statement) "{\n FT_DFO_REQ req;\n memset(&req, 0, sizeof(FT_DFO_REQ));\n req.header.id = FT_DFO_REQ_ID;\n req.op = DFO_OP_READ_COUNT;\n META_Dfo_OP(&req);\n }" ({) "{" (declaration) "FT_DFO_REQ req;" (type_identifier) "FT_DFO_REQ" (identifier) "req" (;) ";" (expression_statement) "memset(&req, 0, sizeof(FT_DFO_REQ));" (call_expression) "memset(&req, 0, sizeof(FT_DFO_REQ))" (identifier) "memset" (argument_list) "(&req, 0, sizeof(FT_DFO_REQ))" (() "(" (pointer_expression) "&req" (&) "&" (identifier) "req" (,) "," (number_literal) "0" (,) "," (sizeof_expression) "sizeof(FT_DFO_REQ)" (sizeof) "sizeof" (parenthesized_expression) "(FT_DFO_REQ)" (() "(" (identifier) "FT_DFO_REQ" ()) ")" ()) ")" (;) ";" (expression_statement) "req.header.id = FT_DFO_REQ_ID;" (assignment_expression) "req.header.id = FT_DFO_REQ_ID" (field_expression) "req.header.id" (field_expression) "req.header" (identifier) "req" (.) "." (field_identifier) "header" (.) "." (field_identifier) "id" (=) "=" (identifier) "FT_DFO_REQ_ID" (;) ";" (expression_statement) "req.op = DFO_OP_READ_COUNT;" (assignment_expression) "req.op = DFO_OP_READ_COUNT" (field_expression) "req.op" (identifier) "req" (.) "." (field_identifier) "op" (=) "=" (identifier) "DFO_OP_READ_COUNT" (;) ";" (expression_statement) "META_Dfo_OP(&req);" (call_expression) "META_Dfo_OP(&req)" (identifier) "META_Dfo_OP" (argument_list) "(&req)" (() "(" (pointer_expression) "&req" (&) "&" (identifier) "req" ()) ")" (;) ";" (}) "}" (comment) "// test read dfo" (compound_statement) "{\n FT_DFO_REQ req;\n memset(&req, 0, sizeof(FT_DFO_REQ));\n req.header.id = FT_DFO_REQ_ID;\n req.op = DFO_OP_READ;\n \n int i = 0;\n for (; i < g_dfoCount; i++)\n {\n req.cmd.read_req.index = i;\n g_curIndex = i;\n META_Dfo_OP(&req);\n }\n }" ({) "{" (declaration) "FT_DFO_REQ req;" (type_identifier) "FT_DFO_REQ" (identifier) "req" (;) ";" (expression_statement) "memset(&req, 0, sizeof(FT_DFO_REQ));" (call_expression) "memset(&req, 0, sizeof(FT_DFO_REQ))" (identifier) "memset" (argument_list) "(&req, 0, sizeof(FT_DFO_REQ))" (() "(" (pointer_expression) "&req" (&) "&" (identifier) "req" (,) "," (number_literal) "0" (,) "," (sizeof_expression) "sizeof(FT_DFO_REQ)" (sizeof) "sizeof" (parenthesized_expression) "(FT_DFO_REQ)" (() "(" (identifier) "FT_DFO_REQ" ()) ")" ()) ")" (;) ";" (expression_statement) "req.header.id = FT_DFO_REQ_ID;" (assignment_expression) "req.header.id = FT_DFO_REQ_ID" (field_expression) "req.header.id" (field_expression) "req.header" (identifier) "req" (.) "." (field_identifier) "header" (.) "." (field_identifier) "id" (=) "=" (identifier) "FT_DFO_REQ_ID" (;) ";" (expression_statement) "req.op = DFO_OP_READ;" (assignment_expression) "req.op = DFO_OP_READ" (field_expression) "req.op" (identifier) "req" (.) "." (field_identifier) "op" (=) "=" (identifier) "DFO_OP_READ" (;) ";" (declaration) "int i = 0;" (primitive_type) "int" (init_declarator) "i = 0" (identifier) "i" (=) "=" (number_literal) "0" (;) ";" (for_statement) "for (; i < g_dfoCount; i++)\n {\n req.cmd.read_req.index = i;\n g_curIndex = i;\n META_Dfo_OP(&req);\n }" (for) "for" (() "(" (;) ";" (binary_expression) "i < g_dfoCount" (identifier) "i" (<) "<" (identifier) "g_dfoCount" (;) ";" (update_expression) "i++" (identifier) "i" (++) "++" ()) ")" (compound_statement) "{\n req.cmd.read_req.index = i;\n g_curIndex = i;\n META_Dfo_OP(&req);\n }" ({) "{" (expression_statement) "req.cmd.read_req.index = i;" (assignment_expression) "req.cmd.read_req.index = i" (field_expression) "req.cmd.read_req.index" (field_expression) "req.cmd.read_req" (field_expression) "req.cmd" (identifier) "req" (.) "." (field_identifier) "cmd" (.) "." (field_identifier) "read_req" (.) "." (field_identifier) "index" (=) "=" (identifier) "i" (;) ";" (expression_statement) "g_curIndex = i;" (assignment_expression) "g_curIndex = i" (identifier) "g_curIndex" (=) "=" (identifier) "i" (;) ";" (expression_statement) "META_Dfo_OP(&req);" (call_expression) "META_Dfo_OP(&req)" (identifier) "META_Dfo_OP" (argument_list) "(&req)" (() "(" (pointer_expression) "&req" (&) "&" (identifier) "req" ()) ")" (;) ";" (}) "}" (}) "}" (comment) "// test write dfo" (compound_statement) "{\n FT_DFO_REQ req;\n memset(&req, 0, sizeof(FT_DFO_REQ));\n req.header.id = FT_DFO_REQ_ID;\n req.op = DFO_OP_WRITE;\n\n int i = 0;\n for (; i < g_dfoCount; i++)\n {\n printf("META Dfo write: (%s, %d)\n", g_dfoArray[i].name, 2);\n strcpy(req.cmd.write_req.name, g_dfoArray[i].name);\n req.cmd.write_req.partition = g_dfoArray[i].partition;\n if (g_dfoArray[i].partition == 0)\n req.cmd.write_req.value = 6;\n else\n req.cmd.write_req.value = 16;\n if (i == g_dfoCount - 1)\n {\n req.cmd.write_req.save = 1;\n }\n else\n {\n req.cmd.write_req.save = 0;\n }\n META_Dfo_OP(&req);\n }\n }" ({) "{" (declaration) "FT_DFO_REQ req;" (type_identifier) "FT_DFO_REQ" (identifier) "req" (;) ";" (expression_statement) "memset(&req, 0, sizeof(FT_DFO_REQ));" (call_expression) "memset(&req, 0, sizeof(FT_DFO_REQ))" (identifier) "memset" (argument_list) "(&req, 0, sizeof(FT_DFO_REQ))" (() "(" (pointer_expression) "&req" (&) "&" (identifier) "req" (,) "," (number_literal) "0" (,) "," (sizeof_expression) "sizeof(FT_DFO_REQ)" (sizeof) "sizeof" (parenthesized_expression) "(FT_DFO_REQ)" (() "(" (identifier) "FT_DFO_REQ" ()) ")" ()) ")" (;) ";" (expression_statement) "req.header.id = FT_DFO_REQ_ID;" (assignment_expression) "req.header.id = FT_DFO_REQ_ID" (field_expression) "req.header.id" (field_expression) "req.header" (identifier) "req" (.) "." (field_identifier) "header" (.) "." (field_identifier) "id" (=) "=" (identifier) "FT_DFO_REQ_ID" (;) ";" (expression_statement) "req.op = DFO_OP_WRITE;" (assignment_expression) "req.op = DFO_OP_WRITE" (field_expression) "req.op" (identifier) "req" (.) "." (field_identifier) "op" (=) "=" (identifier) "DFO_OP_WRITE" (;) ";" (declaration) "int i = 0;" (primitive_type) "int" (init_declarator) "i = 0" (identifier) "i" (=) "=" (number_literal) "0" (;) ";" (for_statement) "for (; i < g_dfoCount; i++)\n {\n printf("META Dfo write: (%s, %d)\n", g_dfoArray[i].name, 2);\n strcpy(req.cmd.write_req.name, g_dfoArray[i].name);\n req.cmd.write_req.partition = g_dfoArray[i].partition;\n if (g_dfoArray[i].partition == 0)\n req.cmd.write_req.value = 6;\n else\n req.cmd.write_req.value = 16;\n if (i == g_dfoCount - 1)\n {\n req.cmd.write_req.save = 1;\n }\n else\n {\n req.cmd.write_req.save = 0;\n }\n META_Dfo_OP(&req);\n }" (for) "for" (() "(" (;) ";" (binary_expression) "i < g_dfoCount" (identifier) "i" (<) "<" (identifier) "g_dfoCount" (;) ";" (update_expression) "i++" (identifier) "i" (++) "++" ()) ")" (compound_statement) "{\n printf("META Dfo write: (%s, %d)\n", g_dfoArray[i].name, 2);\n strcpy(req.cmd.write_req.name, g_dfoArray[i].name);\n req.cmd.write_req.partition = g_dfoArray[i].partition;\n if (g_dfoArray[i].partition == 0)\n req.cmd.write_req.value = 6;\n else\n req.cmd.write_req.value = 16;\n if (i == g_dfoCount - 1)\n {\n req.cmd.write_req.save = 1;\n }\n else\n {\n req.cmd.write_req.save = 0;\n }\n META_Dfo_OP(&req);\n }" ({) "{" (expression_statement) "printf("META Dfo write: (%s, %d)\n", g_dfoArray[i].name, 2);" (call_expression) "printf("META Dfo write: (%s, %d)\n", g_dfoArray[i].name, 2)" (identifier) "printf" (argument_list) "("META Dfo write: (%s, %d)\n", g_dfoArray[i].name, 2)" (() "(" (string_literal) ""META Dfo write: (%s, %d)\n"" (") """ (string_content) "META Dfo write: (%s, %d)" (escape_sequence) "\n" (") """ (,) "," (field_expression) "g_dfoArray[i].name" (subscript_expression) "g_dfoArray[i]" (identifier) "g_dfoArray" ([) "[" (identifier) "i" (]) "]" (.) "." (field_identifier) "name" (,) "," (number_literal) "2" ()) ")" (;) ";" (expression_statement) "strcpy(req.cmd.write_req.name, g_dfoArray[i].name);" (call_expression) "strcpy(req.cmd.write_req.name, g_dfoArray[i].name)" (identifier) "strcpy" (argument_list) "(req.cmd.write_req.name, g_dfoArray[i].name)" (() "(" (field_expression) "req.cmd.write_req.name" (field_expression) "req.cmd.write_req" (field_expression) "req.cmd" (identifier) "req" (.) "." (field_identifier) "cmd" (.) "." (field_identifier) "write_req" (.) "." (field_identifier) "name" (,) "," (field_expression) "g_dfoArray[i].name" (subscript_expression) "g_dfoArray[i]" (identifier) "g_dfoArray" ([) "[" (identifier) "i" (]) "]" (.) "." (field_identifier) "name" ()) ")" (;) ";" (expression_statement) "req.cmd.write_req.partition = g_dfoArray[i].partition;" (assignment_expression) "req.cmd.write_req.partition = g_dfoArray[i].partition" (field_expression) "req.cmd.write_req.partition" (field_expression) "req.cmd.write_req" (field_expression) "req.cmd" (identifier) "req" (.) "." (field_identifier) "cmd" (.) "." (field_identifier) "write_req" (.) "." (field_identifier) "partition" (=) "=" (field_expression) "g_dfoArray[i].partition" (subscript_expression) "g_dfoArray[i]" (identifier) "g_dfoArray" ([) "[" (identifier) "i" (]) "]" (.) "." (field_identifier) "partition" (;) ";" (if_statement) "if (g_dfoArray[i].partition == 0)\n req.cmd.write_req.value = 6;\n else\n req.cmd.write_req.value = 16;" (if) "if" (parenthesized_expression) "(g_dfoArray[i].partition == 0)" (() "(" (binary_expression) "g_dfoArray[i].partition == 0" (field_expression) "g_dfoArray[i].partition" (subscript_expression) "g_dfoArray[i]" (identifier) "g_dfoArray" ([) "[" (identifier) "i" (]) "]" (.) "." (field_identifier) "partition" (==) "==" (number_literal) "0" ()) ")" (expression_statement) "req.cmd.write_req.value = 6;" (assignment_expression) "req.cmd.write_req.value = 6" (field_expression) "req.cmd.write_req.value" (field_expression) "req.cmd.write_req" (field_expression) "req.cmd" (identifier) "req" (.) "." (field_identifier) "cmd" (.) "." (field_identifier) "write_req" (.) "." (field_identifier) "value" (=) "=" (number_literal) "6" (;) ";" (else_clause) "else\n req.cmd.write_req.value = 16;" (else) "else" (expression_statement) "req.cmd.write_req.value = 16;" (assignment_expression) "req.cmd.write_req.value = 16" (field_expression) "req.cmd.write_req.value" (field_expression) "req.cmd.write_req" (field_expression) "req.cmd" (identifier) "req" (.) "." (field_identifier) "cmd" (.) "." (field_identifier) "write_req" (.) "." (field_identifier) "value" (=) "=" (number_literal) "16" (;) ";" (if_statement) "if (i == g_dfoCount - 1)\n {\n req.cmd.write_req.save = 1;\n }\n else\n {\n req.cmd.write_req.save = 0;\n }" (if) "if" (parenthesized_expression) "(i == g_dfoCount - 1)" (() "(" (binary_expression) "i == g_dfoCount - 1" (identifier) "i" (==) "==" (binary_expression) "g_dfoCount - 1" (identifier) "g_dfoCount" (-) "-" (number_literal) "1" ()) ")" (compound_statement) "{\n req.cmd.write_req.save = 1;\n }" ({) "{" (expression_statement) "req.cmd.write_req.save = 1;" (assignment_expression) "req.cmd.write_req.save = 1" (field_expression) "req.cmd.write_req.save" (field_expression) "req.cmd.write_req" (field_expression) "req.cmd" (identifier) "req" (.) "." (field_identifier) "cmd" (.) "." (field_identifier) "write_req" (.) "." (field_identifier) "save" (=) "=" (number_literal) "1" (;) ";" (}) "}" (else_clause) "else\n {\n req.cmd.write_req.save = 0;\n }" (else) "else" (compound_statement) "{\n req.cmd.write_req.save = 0;\n }" ({) "{" (expression_statement) "req.cmd.write_req.save = 0;" (assignment_expression) "req.cmd.write_req.save = 0" (field_expression) "req.cmd.write_req.save" (field_expression) "req.cmd.write_req" (field_expression) "req.cmd" (identifier) "req" (.) "." (field_identifier) "cmd" (.) "." (field_identifier) "write_req" (.) "." (field_identifier) "save" (=) "=" (number_literal) "0" (;) ";" (}) "}" (expression_statement) "META_Dfo_OP(&req);" (call_expression) "META_Dfo_OP(&req)" (identifier) "META_Dfo_OP" (argument_list) "(&req)" (() "(" (pointer_expression) "&req" (&) "&" (identifier) "req" ()) ")" (;) ";" (}) "}" (}) "}" (comment) "// test read dfo combo count" (compound_statement) "{\n FT_DFO_REQ req;\n memset(&req, 0, sizeof(FT_DFO_REQ));\n req.header.id = FT_DFO_REQ_ID;\n req.op = DFO_OP_COMBO_COUNT;\n META_Dfo_OP(&req);\n }" ({) "{" (declaration) "FT_DFO_REQ req;" (type_identifier) "FT_DFO_REQ" (identifier) "req" (;) ";" (expression_statement) "memset(&req, 0, sizeof(FT_DFO_REQ));" (call_expression) "memset(&req, 0, sizeof(FT_DFO_REQ))" (identifier) "memset" (argument_list) "(&req, 0, sizeof(FT_DFO_REQ))" (() "(" (pointer_expression) "&req" (&) "&" (identifier) "req" (,) "," (number_literal) "0" (,) "," (sizeof_expression) "sizeof(FT_DFO_REQ)" (sizeof) "sizeof" (parenthesized_expression) "(FT_DFO_REQ)" (() "(" (identifier) "FT_DFO_REQ" ()) ")" ()) ")" (;) ";" (expression_statement) "req.header.id = FT_DFO_REQ_ID;" (assignment_expression) "req.header.id = FT_DFO_REQ_ID" (field_expression) "req.header.id" (field_expression) "req.header" (identifier) "req" (.) "." (field_identifier) "header" (.) "." (field_identifier) "id" (=) "=" (identifier) "FT_DFO_REQ_ID" (;) ";" (expression_statement) "req.op = DFO_OP_COMBO_COUNT;" (assignment_expression) "req.op = DFO_OP_COMBO_COUNT" (field_expression) "req.op" (identifier) "req" (.) "." (field_identifier) "op" (=) "=" (identifier) "DFO_OP_COMBO_COUNT" (;) ";" (expression_statement) "META_Dfo_OP(&req);" (call_expression) "META_Dfo_OP(&req)" (identifier) "META_Dfo_OP" (argument_list) "(&req)" (() "(" (pointer_expression) "&req" (&) "&" (identifier) "req" ()) ")" (;) ";" (}) "}" (comment) "// test read dfo combo" (compound_statement) "{\n FT_DFO_REQ req;\n memset(&req, 0, sizeof(FT_DFO_REQ));\n req.header.id = FT_DFO_REQ_ID;\n req.op = DFO_OP_COMBO_READ;\n \n int i = 0;\n for (; i < g_comboCount; i++)\n {\n req.cmd.combo_read_req.index = i;\n g_curCombo = i;\n META_Dfo_OP(&req);\n \n // test read dfo combo mode\n FT_DFO_REQ req2;\n memset(&req2, 0, sizeof(FT_DFO_REQ));\n req2.header.id = FT_DFO_REQ_ID;\n req2.op = DFO_OP_COMBO_MODE;\n \n int j = 0;\n for (; j < g_comboArray[g_curCombo].modeCount; j++)\n {\n req2.cmd.combo_mode_req.index = i;\n req2.cmd.combo_mode_req.modeIndex = j;\n g_curComboMode = j;\n META_Dfo_OP(&req2);\n }\n }\n }" ({) "{" (declaration) "FT_DFO_REQ req;" (type_identifier) "FT_DFO_REQ" (identifier) "req" (;) ";" (expression_statement) "memset(&req, 0, sizeof(FT_DFO_REQ));" (call_expression) "memset(&req, 0, sizeof(FT_DFO_REQ))" (identifier) "memset" (argument_list) "(&req, 0, sizeof(FT_DFO_REQ))" (() "(" (pointer_expression) "&req" (&) "&" (identifier) "req" (,) "," (number_literal) "0" (,) "," (sizeof_expression) "sizeof(FT_DFO_REQ)" (sizeof) "sizeof" (parenthesized_expression) "(FT_DFO_REQ)" (() "(" (identifier) "FT_DFO_REQ" ()) ")" ()) ")" (;) ";" (expression_statement) "req.header.id = FT_DFO_REQ_ID;" (assignment_expression) "req.header.id = FT_DFO_REQ_ID" (field_expression) "req.header.id" (field_expression) "req.header" (identifier) "req" (.) "." (field_identifier) "header" (.) "." (field_identifier) "id" (=) "=" (identifier) "FT_DFO_REQ_ID" (;) ";" (expression_statement) "req.op = DFO_OP_COMBO_READ;" (assignment_expression) "req.op = DFO_OP_COMBO_READ" (field_expression) "req.op" (identifier) "req" (.) "." (field_identifier) "op" (=) "=" (identifier) "DFO_OP_COMBO_READ" (;) ";" (declaration) "int i = 0;" (primitive_type) "int" (init_declarator) "i = 0" (identifier) "i" (=) "=" (number_literal) "0" (;) ";" (for_statement) "for (; i < g_comboCount; i++)\n {\n req.cmd.combo_read_req.index = i;\n g_curCombo = i;\n META_Dfo_OP(&req);\n \n // test read dfo combo mode\n FT_DFO_REQ req2;\n memset(&req2, 0, sizeof(FT_DFO_REQ));\n req2.header.id = FT_DFO_REQ_ID;\n req2.op = DFO_OP_COMBO_MODE;\n \n int j = 0;\n for (; j < g_comboArray[g_curCombo].modeCount; j++)\n {\n req2.cmd.combo_mode_req.index = i;\n req2.cmd.combo_mode_req.modeIndex = j;\n g_curComboMode = j;\n META_Dfo_OP(&req2);\n }\n }" (for) "for" (() "(" (;) ";" (binary_expression) "i < g_comboCount" (identifier) "i" (<) "<" (identifier) "g_comboCount" (;) ";" (update_expression) "i++" (identifier) "i" (++) "++" ()) ")" (compound_statement) "{\n req.cmd.combo_read_req.index = i;\n g_curCombo = i;\n META_Dfo_OP(&req);\n \n // test read dfo combo mode\n FT_DFO_REQ req2;\n memset(&req2, 0, sizeof(FT_DFO_REQ));\n req2.header.id = FT_DFO_REQ_ID;\n req2.op = DFO_OP_COMBO_MODE;\n \n int j = 0;\n for (; j < g_comboArray[g_curCombo].modeCount; j++)\n {\n req2.cmd.combo_mode_req.index = i;\n req2.cmd.combo_mode_req.modeIndex = j;\n g_curComboMode = j;\n META_Dfo_OP(&req2);\n }\n }" ({) "{" (expression_statement) "req.cmd.combo_read_req.index = i;" (assignment_expression) "req.cmd.combo_read_req.index = i" (field_expression) "req.cmd.combo_read_req.index" (field_expression) "req.cmd.combo_read_req" (field_expression) "req.cmd" (identifier) "req" (.) "." (field_identifier) "cmd" (.) "." (field_identifier) "combo_read_req" (.) "." (field_identifier) "index" (=) "=" (identifier) "i" (;) ";" (expression_statement) "g_curCombo = i;" (assignment_expression) "g_curCombo = i" (identifier) "g_curCombo" (=) "=" (identifier) "i" (;) ";" (expression_statement) "META_Dfo_OP(&req);" (call_expression) "META_Dfo_OP(&req)" (identifier) "META_Dfo_OP" (argument_list) "(&req)" (() "(" (pointer_expression) "&req" (&) "&" (identifier) "req" ()) ")" (;) ";" (comment) "// test read dfo combo mode" (declaration) "FT_DFO_REQ req2;" (type_identifier) "FT_DFO_REQ" (identifier) "req2" (;) ";" (expression_statement) "memset(&req2, 0, sizeof(FT_DFO_REQ));" (call_expression) "memset(&req2, 0, sizeof(FT_DFO_REQ))" (identifier) "memset" (argument_list) "(&req2, 0, sizeof(FT_DFO_REQ))" (() "(" (pointer_expression) "&req2" (&) "&" (identifier) "req2" (,) "," (number_literal) "0" (,) "," (sizeof_expression) "sizeof(FT_DFO_REQ)" (sizeof) "sizeof" (parenthesized_expression) "(FT_DFO_REQ)" (() "(" (identifier) "FT_DFO_REQ" ()) ")" ()) ")" (;) ";" (expression_statement) "req2.header.id = FT_DFO_REQ_ID;" (assignment_expression) "req2.header.id = FT_DFO_REQ_ID" (field_expression) "req2.header.id" (field_expression) "req2.header" (identifier) "req2" (.) "." (field_identifier) "header" (.) "." (field_identifier) "id" (=) "=" (identifier) "FT_DFO_REQ_ID" (;) ";" (expression_statement) "req2.op = DFO_OP_COMBO_MODE;" (assignment_expression) "req2.op = DFO_OP_COMBO_MODE" (field_expression) "req2.op" (identifier) "req2" (.) "." (field_identifier) "op" (=) "=" (identifier) "DFO_OP_COMBO_MODE" (;) ";" (declaration) "int j = 0;" (primitive_type) "int" (init_declarator) "j = 0" (identifier) "j" (=) "=" (number_literal) "0" (;) ";" (for_statement) "for (; j < g_comboArray[g_curCombo].modeCount; j++)\n {\n req2.cmd.combo_mode_req.index = i;\n req2.cmd.combo_mode_req.modeIndex = j;\n g_curComboMode = j;\n META_Dfo_OP(&req2);\n }" (for) "for" (() "(" (;) ";" (binary_expression) "j < g_comboArray[g_curCombo].modeCount" (identifier) "j" (<) "<" (field_expression) "g_comboArray[g_curCombo].modeCount" (subscript_expression) "g_comboArray[g_curCombo]" (identifier) "g_comboArray" ([) "[" (identifier) "g_curCombo" (]) "]" (.) "." (field_identifier) "modeCount" (;) ";" (update_expression) "j++" (identifier) "j" (++) "++" ()) ")" (compound_statement) "{\n req2.cmd.combo_mode_req.index = i;\n req2.cmd.combo_mode_req.modeIndex = j;\n g_curComboMode = j;\n META_Dfo_OP(&req2);\n }" ({) "{" (expression_statement) "req2.cmd.combo_mode_req.index = i;" (assignment_expression) "req2.cmd.combo_mode_req.index = i" (field_expression) "req2.cmd.combo_mode_req.index" (field_expression) "req2.cmd.combo_mode_req" (field_expression) "req2.cmd" (identifier) "req2" (.) "." (field_identifier) "cmd" (.) "." (field_identifier) "combo_mode_req" (.) "." (field_identifier) "index" (=) "=" (identifier) "i" (;) ";" (expression_statement) "req2.cmd.combo_mode_req.modeIndex = j;" (assignment_expression) "req2.cmd.combo_mode_req.modeIndex = j" (field_expression) "req2.cmd.combo_mode_req.modeIndex" (field_expression) "req2.cmd.combo_mode_req" (field_expression) "req2.cmd" (identifier) "req2" (.) "." (field_identifier) "cmd" (.) "." (field_identifier) "combo_mode_req" (.) "." (field_identifier) "modeIndex" (=) "=" (identifier) "j" (;) ";" (expression_statement) "g_curComboMode = j;" (assignment_expression) "g_curComboMode = j" (identifier) "g_curComboMode" (=) "=" (identifier) "j" (;) ";" (expression_statement) "META_Dfo_OP(&req2);" (call_expression) "META_Dfo_OP(&req2)" (identifier) "META_Dfo_OP" (argument_list) "(&req2)" (() "(" (pointer_expression) "&req2" (&) "&" (identifier) "req2" ()) ")" (;) ";" (}) "}" (}) "}" (}) "}" (comment) "// test write dfo combo" (compound_statement) "{\n }" ({) "{" (}) "}" (expression_statement) "META_Dfo_Deinit();" (call_expression) "META_Dfo_Deinit()" (identifier) "META_Dfo_Deinit" (argument_list) "()" (() "(" ()) ")" (;) ";" (expression_statement) "META_Dfo_SetCallback(NULL);" (call_expression) "META_Dfo_SetCallback(NULL)" (identifier) "META_Dfo_SetCallback" (argument_list) "(NULL)" (() "(" (null) "NULL" (NULL) "NULL" ()) ")" (;) ";" (comment) "// TODO: free memory" (return_statement) "return 0;" (return) "return" (number_literal) "0" (;) ";" (}) "}"
1,583
0
{"language": "c", "success": true, "metadata": {"lines": 208, "avg_line_length": 26.81, "nodes": 923, "errors": 0, "source_hash": "3d568b11497e1f488f6a71b78f812c2cf24587cd6b064f764d267719bedb576d", "categorized_nodes": 719}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#include <stdio.h>\n", "parent": null, "children": [1, 2], "start_point": {"row": 0, "column": 0}, "end_point": {"row": 1, "column": 0}}, {"id": 1, "type": "#include", "text": "#include", "parent": 0, "children": [], "start_point": {"row": 0, "column": 0}, "end_point": {"row": 0, "column": 8}}, {"id": 2, "type": "system_lib_string", "text": "<stdio.h>", "parent": 0, "children": [], "start_point": {"row": 0, "column": 9}, "end_point": {"row": 0, "column": 18}}, {"id": 3, "type": "preproc_include", "text": "#include <stdlib.h>\n", "parent": null, "children": [4, 5], "start_point": {"row": 1, "column": 0}, "end_point": {"row": 2, "column": 0}}, {"id": 4, "type": "#include", "text": "#include", "parent": 3, "children": [], "start_point": {"row": 1, "column": 0}, "end_point": {"row": 1, "column": 8}}, {"id": 5, "type": "system_lib_string", "text": "<stdlib.h>", "parent": 3, "children": [], "start_point": {"row": 1, "column": 9}, "end_point": {"row": 1, "column": 19}}, {"id": 6, "type": "preproc_include", "text": "#include \"meta_dfo.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": "\"meta_dfo.h\"", "parent": 6, "children": [], "start_point": {"row": 2, "column": 9}, "end_point": {"row": 2, "column": 21}}, {"id": 9, "type": "type_definition", "text": "typedef struct\n{\n char name[32];\n int value;\n int partition;\n} dfo_test;", "parent": null, "children": [10, 11, 24], "start_point": {"row": 4, "column": 0}, "end_point": {"row": 9, "column": 11}}, {"id": 10, "type": "typedef", "text": "typedef", "parent": 9, "children": [], "start_point": {"row": 4, "column": 0}, "end_point": {"row": 4, "column": 7}}, {"id": 11, "type": "struct_specifier", "text": "struct\n{\n char name[32];\n int value;\n int partition;\n}", "parent": 9, "children": [12], "start_point": {"row": 4, "column": 8}, "end_point": {"row": 9, "column": 1}}, {"id": 12, "type": "struct", "text": "struct", "parent": 11, "children": [], "start_point": {"row": 4, "column": 8}, "end_point": {"row": 4, "column": 14}}, {"id": 13, "type": "field_declaration", "text": "char name[32];", "parent": 11, "children": [14, 15], "start_point": {"row": 6, "column": 4}, "end_point": {"row": 6, "column": 18}}, {"id": 14, "type": "primitive_type", "text": "char", "parent": 13, "children": [], "start_point": {"row": 6, "column": 4}, "end_point": {"row": 6, "column": 8}}, {"id": 15, "type": "array_declarator", "text": "name[32]", "parent": 13, "children": [16, 17], "start_point": {"row": 6, "column": 9}, "end_point": {"row": 6, "column": 17}}, {"id": 16, "type": "field_identifier", "text": "name", "parent": 15, "children": [], "start_point": {"row": 6, "column": 9}, "end_point": {"row": 6, "column": 13}}, {"id": 17, "type": "number_literal", "text": "32", "parent": 15, "children": [], "start_point": {"row": 6, "column": 14}, "end_point": {"row": 6, "column": 16}}, {"id": 18, "type": "field_declaration", "text": "int value;", "parent": 11, "children": [19, 20], "start_point": {"row": 7, "column": 4}, "end_point": {"row": 7, "column": 14}}, {"id": 19, "type": "primitive_type", "text": "int", "parent": 18, "children": [], "start_point": {"row": 7, "column": 4}, "end_point": {"row": 7, "column": 7}}, {"id": 20, "type": "field_identifier", "text": "value", "parent": 18, "children": [], "start_point": {"row": 7, "column": 8}, "end_point": {"row": 7, "column": 13}}, {"id": 21, "type": "field_declaration", "text": "int partition;", "parent": 11, "children": [22, 23], "start_point": {"row": 8, "column": 4}, "end_point": {"row": 8, "column": 18}}, {"id": 22, "type": "primitive_type", "text": "int", "parent": 21, "children": [], "start_point": {"row": 8, "column": 4}, "end_point": {"row": 8, "column": 7}}, {"id": 23, "type": "field_identifier", "text": "partition", "parent": 21, "children": [], "start_point": {"row": 8, "column": 8}, "end_point": {"row": 8, "column": 17}}, {"id": 24, "type": "type_identifier", "text": "dfo_test", "parent": 9, "children": [], "start_point": {"row": 9, "column": 2}, "end_point": {"row": 9, "column": 10}}, {"id": 25, "type": "type_definition", "text": "typedef struct\n{\n char name[32]; \n} dfo_combo_mode_test;", "parent": null, "children": [26, 27, 34], "start_point": {"row": 11, "column": 0}, "end_point": {"row": 14, "column": 22}}, {"id": 26, "type": "typedef", "text": "typedef", "parent": 25, "children": [], "start_point": {"row": 11, "column": 0}, "end_point": {"row": 11, "column": 7}}, {"id": 27, "type": "struct_specifier", "text": "struct\n{\n char name[32]; \n}", "parent": 25, "children": [28], "start_point": {"row": 11, "column": 8}, "end_point": {"row": 14, "column": 1}}, {"id": 28, "type": "struct", "text": "struct", "parent": 27, "children": [], "start_point": {"row": 11, "column": 8}, "end_point": {"row": 11, "column": 14}}, {"id": 29, "type": "field_declaration", "text": "char name[32];", "parent": 27, "children": [30, 31], "start_point": {"row": 13, "column": 4}, "end_point": {"row": 13, "column": 18}}, {"id": 30, "type": "primitive_type", "text": "char", "parent": 29, "children": [], "start_point": {"row": 13, "column": 4}, "end_point": {"row": 13, "column": 8}}, {"id": 31, "type": "array_declarator", "text": "name[32]", "parent": 29, "children": [32, 33], "start_point": {"row": 13, "column": 9}, "end_point": {"row": 13, "column": 17}}, {"id": 32, "type": "field_identifier", "text": "name", "parent": 31, "children": [], "start_point": {"row": 13, "column": 9}, "end_point": {"row": 13, "column": 13}}, {"id": 33, "type": "number_literal", "text": "32", "parent": 31, "children": [], "start_point": {"row": 13, "column": 14}, "end_point": {"row": 13, "column": 16}}, {"id": 34, "type": "type_identifier", "text": "dfo_combo_mode_test", "parent": 25, "children": [], "start_point": {"row": 14, "column": 2}, "end_point": {"row": 14, "column": 21}}, {"id": 35, "type": "type_definition", "text": "typedef struct\n{\n char name[32];\n int modeCount;\n dfo_combo_mode_test* modeArray;\n} dfo_combo_test;", "parent": null, "children": [36, 37, 52], "start_point": {"row": 16, "column": 0}, "end_point": {"row": 21, "column": 17}}, {"id": 36, "type": "typedef", "text": "typedef", "parent": 35, "children": [], "start_point": {"row": 16, "column": 0}, "end_point": {"row": 16, "column": 7}}, {"id": 37, "type": "struct_specifier", "text": "struct\n{\n char name[32];\n int modeCount;\n dfo_combo_mode_test* modeArray;\n}", "parent": 35, "children": [38], "start_point": {"row": 16, "column": 8}, "end_point": {"row": 21, "column": 1}}, {"id": 38, "type": "struct", "text": "struct", "parent": 37, "children": [], "start_point": {"row": 16, "column": 8}, "end_point": {"row": 16, "column": 14}}, {"id": 39, "type": "field_declaration", "text": "char name[32];", "parent": 37, "children": [40, 41], "start_point": {"row": 18, "column": 4}, "end_point": {"row": 18, "column": 18}}, {"id": 40, "type": "primitive_type", "text": "char", "parent": 39, "children": [], "start_point": {"row": 18, "column": 4}, "end_point": {"row": 18, "column": 8}}, {"id": 41, "type": "array_declarator", "text": "name[32]", "parent": 39, "children": [42, 43], "start_point": {"row": 18, "column": 9}, "end_point": {"row": 18, "column": 17}}, {"id": 42, "type": "field_identifier", "text": "name", "parent": 41, "children": [], "start_point": {"row": 18, "column": 9}, "end_point": {"row": 18, "column": 13}}, {"id": 43, "type": "number_literal", "text": "32", "parent": 41, "children": [], "start_point": {"row": 18, "column": 14}, "end_point": {"row": 18, "column": 16}}, {"id": 44, "type": "field_declaration", "text": "int modeCount;", "parent": 37, "children": [45, 46], "start_point": {"row": 19, "column": 4}, "end_point": {"row": 19, "column": 18}}, {"id": 45, "type": "primitive_type", "text": "int", "parent": 44, "children": [], "start_point": {"row": 19, "column": 4}, "end_point": {"row": 19, "column": 7}}, {"id": 46, "type": "field_identifier", "text": "modeCount", "parent": 44, "children": [], "start_point": {"row": 19, "column": 8}, "end_point": {"row": 19, "column": 17}}, {"id": 47, "type": "field_declaration", "text": "dfo_combo_mode_test* modeArray;", "parent": 37, "children": [48, 49], "start_point": {"row": 20, "column": 4}, "end_point": {"row": 20, "column": 35}}, {"id": 48, "type": "type_identifier", "text": "dfo_combo_mode_test", "parent": 47, "children": [], "start_point": {"row": 20, "column": 4}, "end_point": {"row": 20, "column": 23}}, {"id": 49, "type": "pointer_declarator", "text": "* modeArray", "parent": 47, "children": [50, 51], "start_point": {"row": 20, "column": 23}, "end_point": {"row": 20, "column": 34}}, {"id": 50, "type": "*", "text": "*", "parent": 49, "children": [], "start_point": {"row": 20, "column": 23}, "end_point": {"row": 20, "column": 24}}, {"id": 51, "type": "field_identifier", "text": "modeArray", "parent": 49, "children": [], "start_point": {"row": 20, "column": 25}, "end_point": {"row": 20, "column": 34}}, {"id": 52, "type": "type_identifier", "text": "dfo_combo_test", "parent": 35, "children": [], "start_point": {"row": 21, "column": 2}, "end_point": {"row": 21, "column": 16}}, {"id": 53, "type": "declaration", "text": "int g_dfoCount = 0;", "parent": null, "children": [54, 55], "start_point": {"row": 23, "column": 0}, "end_point": {"row": 23, "column": 19}}, {"id": 54, "type": "primitive_type", "text": "int", "parent": 53, "children": [], "start_point": {"row": 23, "column": 0}, "end_point": {"row": 23, "column": 3}}, {"id": 55, "type": "init_declarator", "text": "g_dfoCount = 0", "parent": 53, "children": [56, 57, 58], "start_point": {"row": 23, "column": 4}, "end_point": {"row": 23, "column": 18}}, {"id": 56, "type": "identifier", "text": "g_dfoCount", "parent": 55, "children": [], "start_point": {"row": 23, "column": 4}, "end_point": {"row": 23, "column": 14}}, {"id": 57, "type": "=", "text": "=", "parent": 55, "children": [], "start_point": {"row": 23, "column": 15}, "end_point": {"row": 23, "column": 16}}, {"id": 58, "type": "number_literal", "text": "0", "parent": 55, "children": [], "start_point": {"row": 23, "column": 17}, "end_point": {"row": 23, "column": 18}}, {"id": 59, "type": "declaration", "text": "dfo_test* g_dfoArray = NULL;", "parent": null, "children": [60, 61], "start_point": {"row": 24, "column": 0}, "end_point": {"row": 24, "column": 28}}, {"id": 60, "type": "type_identifier", "text": "dfo_test", "parent": 59, "children": [], "start_point": {"row": 24, "column": 0}, "end_point": {"row": 24, "column": 8}}, {"id": 61, "type": "init_declarator", "text": "* g_dfoArray = NULL", "parent": 59, "children": [62, 65, 66], "start_point": {"row": 24, "column": 8}, "end_point": {"row": 24, "column": 27}}, {"id": 62, "type": "pointer_declarator", "text": "* g_dfoArray", "parent": 61, "children": [63, 64], "start_point": {"row": 24, "column": 8}, "end_point": {"row": 24, "column": 20}}, {"id": 63, "type": "*", "text": "*", "parent": 62, "children": [], "start_point": {"row": 24, "column": 8}, "end_point": {"row": 24, "column": 9}}, {"id": 64, "type": "identifier", "text": "g_dfoArray", "parent": 62, "children": [], "start_point": {"row": 24, "column": 10}, "end_point": {"row": 24, "column": 20}}, {"id": 65, "type": "=", "text": "=", "parent": 61, "children": [], "start_point": {"row": 24, "column": 21}, "end_point": {"row": 24, "column": 22}}, {"id": 66, "type": "null", "text": "NULL", "parent": 61, "children": [67], "start_point": {"row": 24, "column": 23}, "end_point": {"row": 24, "column": 27}}, {"id": 67, "type": "NULL", "text": "NULL", "parent": 66, "children": [], "start_point": {"row": 24, "column": 23}, "end_point": {"row": 24, "column": 27}}, {"id": 68, "type": "declaration", "text": "int g_curIndex = 0;", "parent": null, "children": [69, 70], "start_point": {"row": 25, "column": 0}, "end_point": {"row": 25, "column": 19}}, {"id": 69, "type": "primitive_type", "text": "int", "parent": 68, "children": [], "start_point": {"row": 25, "column": 0}, "end_point": {"row": 25, "column": 3}}, {"id": 70, "type": "init_declarator", "text": "g_curIndex = 0", "parent": 68, "children": [71, 72, 73], "start_point": {"row": 25, "column": 4}, "end_point": {"row": 25, "column": 18}}, {"id": 71, "type": "identifier", "text": "g_curIndex", "parent": 70, "children": [], "start_point": {"row": 25, "column": 4}, "end_point": {"row": 25, "column": 14}}, {"id": 72, "type": "=", "text": "=", "parent": 70, "children": [], "start_point": {"row": 25, "column": 15}, "end_point": {"row": 25, "column": 16}}, {"id": 73, "type": "number_literal", "text": "0", "parent": 70, "children": [], "start_point": {"row": 25, "column": 17}, "end_point": {"row": 25, "column": 18}}, {"id": 74, "type": "declaration", "text": "int g_comboCount = 0;", "parent": null, "children": [75, 76], "start_point": {"row": 27, "column": 0}, "end_point": {"row": 27, "column": 21}}, {"id": 75, "type": "primitive_type", "text": "int", "parent": 74, "children": [], "start_point": {"row": 27, "column": 0}, "end_point": {"row": 27, "column": 3}}, {"id": 76, "type": "init_declarator", "text": "g_comboCount = 0", "parent": 74, "children": [77, 78, 79], "start_point": {"row": 27, "column": 4}, "end_point": {"row": 27, "column": 20}}, {"id": 77, "type": "identifier", "text": "g_comboCount", "parent": 76, "children": [], "start_point": {"row": 27, "column": 4}, "end_point": {"row": 27, "column": 16}}, {"id": 78, "type": "=", "text": "=", "parent": 76, "children": [], "start_point": {"row": 27, "column": 17}, "end_point": {"row": 27, "column": 18}}, {"id": 79, "type": "number_literal", "text": "0", "parent": 76, "children": [], "start_point": {"row": 27, "column": 19}, "end_point": {"row": 27, "column": 20}}, {"id": 80, "type": "declaration", "text": "dfo_combo_test* g_comboArray = NULL;", "parent": null, "children": [81, 82], "start_point": {"row": 28, "column": 0}, "end_point": {"row": 28, "column": 36}}, {"id": 81, "type": "type_identifier", "text": "dfo_combo_test", "parent": 80, "children": [], "start_point": {"row": 28, "column": 0}, "end_point": {"row": 28, "column": 14}}, {"id": 82, "type": "init_declarator", "text": "* g_comboArray = NULL", "parent": 80, "children": [83, 86, 87], "start_point": {"row": 28, "column": 14}, "end_point": {"row": 28, "column": 35}}, {"id": 83, "type": "pointer_declarator", "text": "* g_comboArray", "parent": 82, "children": [84, 85], "start_point": {"row": 28, "column": 14}, "end_point": {"row": 28, "column": 28}}, {"id": 84, "type": "*", "text": "*", "parent": 83, "children": [], "start_point": {"row": 28, "column": 14}, "end_point": {"row": 28, "column": 15}}, {"id": 85, "type": "identifier", "text": "g_comboArray", "parent": 83, "children": [], "start_point": {"row": 28, "column": 16}, "end_point": {"row": 28, "column": 28}}, {"id": 86, "type": "=", "text": "=", "parent": 82, "children": [], "start_point": {"row": 28, "column": 29}, "end_point": {"row": 28, "column": 30}}, {"id": 87, "type": "null", "text": "NULL", "parent": 82, "children": [88], "start_point": {"row": 28, "column": 31}, "end_point": {"row": 28, "column": 35}}, {"id": 88, "type": "NULL", "text": "NULL", "parent": 87, "children": [], "start_point": {"row": 28, "column": 31}, "end_point": {"row": 28, "column": 35}}, {"id": 89, "type": "declaration", "text": "int g_curCombo = 0;", "parent": null, "children": [90, 91], "start_point": {"row": 29, "column": 0}, "end_point": {"row": 29, "column": 19}}, {"id": 90, "type": "primitive_type", "text": "int", "parent": 89, "children": [], "start_point": {"row": 29, "column": 0}, "end_point": {"row": 29, "column": 3}}, {"id": 91, "type": "init_declarator", "text": "g_curCombo = 0", "parent": 89, "children": [92, 93, 94], "start_point": {"row": 29, "column": 4}, "end_point": {"row": 29, "column": 18}}, {"id": 92, "type": "identifier", "text": "g_curCombo", "parent": 91, "children": [], "start_point": {"row": 29, "column": 4}, "end_point": {"row": 29, "column": 14}}, {"id": 93, "type": "=", "text": "=", "parent": 91, "children": [], "start_point": {"row": 29, "column": 15}, "end_point": {"row": 29, "column": 16}}, {"id": 94, "type": "number_literal", "text": "0", "parent": 91, "children": [], "start_point": {"row": 29, "column": 17}, "end_point": {"row": 29, "column": 18}}, {"id": 95, "type": "declaration", "text": "int g_curComboMode = 0;", "parent": null, "children": [96, 97], "start_point": {"row": 30, "column": 0}, "end_point": {"row": 30, "column": 23}}, {"id": 96, "type": "primitive_type", "text": "int", "parent": 95, "children": [], "start_point": {"row": 30, "column": 0}, "end_point": {"row": 30, "column": 3}}, {"id": 97, "type": "init_declarator", "text": "g_curComboMode = 0", "parent": 95, "children": [98, 99, 100], "start_point": {"row": 30, "column": 4}, "end_point": {"row": 30, "column": 22}}, {"id": 98, "type": "identifier", "text": "g_curComboMode", "parent": 97, "children": [], "start_point": {"row": 30, "column": 4}, "end_point": {"row": 30, "column": 18}}, {"id": 99, "type": "=", "text": "=", "parent": 97, "children": [], "start_point": {"row": 30, "column": 19}, "end_point": {"row": 30, "column": 20}}, {"id": 100, "type": "number_literal", "text": "0", "parent": 97, "children": [], "start_point": {"row": 30, "column": 21}, "end_point": {"row": 30, "column": 22}}, {"id": 101, "type": "function_definition", "text": "static void dfo_callback(void* buf, unsigned int size)\n{\n if (buf == NULL)\n {\n printf(\"callback buffer is NULL\\n\");\n return;\n }\n \n FT_DFO_CNF* cnf = (FT_DFO_CNF*)buf;\n \n DFO_OP op = cnf->op;\n \n if (op == DFO_OP_READ_COUNT)\n {\n g_dfoCount = cnf->result.read_count_cnf.count;\n printf(\"DfoBoot count: (%d)\\n\", g_dfoCount);\n \n if (g_dfoCount > 0)\n {\n if (g_dfoArray)\n {\n free(g_dfoArray);\n g_dfoArray = NULL;\n }\n g_dfoArray = (dfo_test*)malloc(sizeof(dfo_test)*g_dfoCount);\n }\n }\n else if (op == DFO_OP_READ)\n {\n printf(\"Read(%d) name: (%s) value: (%d) partition: (%d)\\n\", g_curIndex,\n cnf->result.read_cnf.name, cnf->result.read_cnf.value, cnf->result.read_cnf.partition);\n strcpy(g_dfoArray[g_curIndex].name, cnf->result.read_cnf.name);\n g_dfoArray[g_curIndex].value = cnf->result.read_cnf.value;\n g_dfoArray[g_curIndex].partition = cnf->result.read_cnf.partition;\n }\n else if (op == DFO_OP_WRITE)\n {\n printf(\"Write result: (%d)\\n\", cnf->status);\n }\n else if (op == DFO_OP_COMBO_COUNT)\n {\n g_comboCount = cnf->result.combo_count_cnf.count;\n printf(\"Combo count: (%d)\\n\", g_comboCount);\n \n if (g_comboCount > 0)\n {\n if (g_comboArray)\n {\n free(g_comboArray);\n g_comboArray = NULL;\n }\n g_comboArray = (dfo_combo_test*)malloc(sizeof(dfo_combo_test)*g_comboCount);\n }\n }\n else if (op == DFO_OP_COMBO_READ)\n {\n printf(\"Combo Read(%d) name: (%s) mode count: (%d)\\n\", g_curCombo,\n cnf->result.combo_read_cnf.name, cnf->result.combo_read_cnf.modeCount);\n strcpy(g_comboArray[g_curCombo].name, cnf->result.combo_read_cnf.name);\n g_comboArray[g_curCombo].modeCount = cnf->result.combo_read_cnf.modeCount;\n g_comboArray[g_curCombo].modeArray = (dfo_combo_mode_test*)malloc(sizeof(dfo_combo_mode_test)*g_comboArray[g_curCombo].modeCount);\n }\n else if (op == DFO_OP_COMBO_MODE)\n {\n printf(\"Combo(%d) Mode(%d) name: (%s)\\n\", g_curCombo, g_curComboMode, cnf->result.combo_mode_cnf.name);\n strcpy(g_comboArray[g_curCombo].modeArray[g_curComboMode].name, cnf->result.combo_mode_cnf.name);\n }\n else if (op == DFO_OP_COMBO_UPDATE)\n {\n }\n else\n {\n printf(\"Wrong DFO OP: (%d)\\n\", op);\n }\n}", "parent": null, "children": [102, 103], "start_point": {"row": 32, "column": 0}, "end_point": {"row": 106, "column": 1}}, {"id": 102, "type": "primitive_type", "text": "void", "parent": 101, "children": [], "start_point": {"row": 32, "column": 7}, "end_point": {"row": 32, "column": 11}}, {"id": 103, "type": "function_declarator", "text": "dfo_callback(void* buf, unsigned int size)", "parent": 101, "children": [104, 105], "start_point": {"row": 32, "column": 12}, "end_point": {"row": 32, "column": 54}}, {"id": 104, "type": "identifier", "text": "dfo_callback", "parent": 103, "children": [], "start_point": {"row": 32, "column": 12}, "end_point": {"row": 32, "column": 24}}, {"id": 105, "type": "parameter_list", "text": "(void* buf, unsigned int size)", "parent": 103, "children": [106, 111], "start_point": {"row": 32, "column": 24}, "end_point": {"row": 32, "column": 54}}, {"id": 106, "type": "parameter_declaration", "text": "void* buf", "parent": 105, "children": [107, 108], "start_point": {"row": 32, "column": 25}, "end_point": {"row": 32, "column": 34}}, {"id": 107, "type": "primitive_type", "text": "void", "parent": 106, "children": [], "start_point": {"row": 32, "column": 25}, "end_point": {"row": 32, "column": 29}}, {"id": 108, "type": "pointer_declarator", "text": "* buf", "parent": 106, "children": [109, 110], "start_point": {"row": 32, "column": 29}, "end_point": {"row": 32, "column": 34}}, {"id": 109, "type": "*", "text": "*", "parent": 108, "children": [], "start_point": {"row": 32, "column": 29}, "end_point": {"row": 32, "column": 30}}, {"id": 110, "type": "identifier", "text": "buf", "parent": 108, "children": [], "start_point": {"row": 32, "column": 31}, "end_point": {"row": 32, "column": 34}}, {"id": 111, "type": "parameter_declaration", "text": "unsigned int size", "parent": 105, "children": [112, 115], "start_point": {"row": 32, "column": 36}, "end_point": {"row": 32, "column": 53}}, {"id": 112, "type": "sized_type_specifier", "text": "unsigned int", "parent": 111, "children": [113, 114], "start_point": {"row": 32, "column": 36}, "end_point": {"row": 32, "column": 48}}, {"id": 113, "type": "unsigned", "text": "unsigned", "parent": 112, "children": [], "start_point": {"row": 32, "column": 36}, "end_point": {"row": 32, "column": 44}}, {"id": 114, "type": "primitive_type", "text": "int", "parent": 112, "children": [], "start_point": {"row": 32, "column": 45}, "end_point": {"row": 32, "column": 48}}, {"id": 115, "type": "identifier", "text": "size", "parent": 111, "children": [], "start_point": {"row": 32, "column": 49}, "end_point": {"row": 32, "column": 53}}, {"id": 116, "type": "if_statement", "text": "if (buf == NULL)\n {\n printf(\"callback buffer is NULL\\n\");\n return;\n }", "parent": 101, "children": [117], "start_point": {"row": 34, "column": 4}, "end_point": {"row": 38, "column": 5}}, {"id": 117, "type": "parenthesized_expression", "text": "(buf == NULL)", "parent": 116, "children": [118], "start_point": {"row": 34, "column": 7}, "end_point": {"row": 34, "column": 20}}, {"id": 118, "type": "binary_expression", "text": "buf == NULL", "parent": 117, "children": [119, 120, 121], "start_point": {"row": 34, "column": 8}, "end_point": {"row": 34, "column": 19}}, {"id": 119, "type": "identifier", "text": "buf", "parent": 118, "children": [], "start_point": {"row": 34, "column": 8}, "end_point": {"row": 34, "column": 11}}, {"id": 120, "type": "==", "text": "==", "parent": 118, "children": [], "start_point": {"row": 34, "column": 12}, "end_point": {"row": 34, "column": 14}}, {"id": 121, "type": "null", "text": "NULL", "parent": 118, "children": [122], "start_point": {"row": 34, "column": 15}, "end_point": {"row": 34, "column": 19}}, {"id": 122, "type": "NULL", "text": "NULL", "parent": 121, "children": [], "start_point": {"row": 34, "column": 15}, "end_point": {"row": 34, "column": 19}}, {"id": 123, "type": "call_expression", "text": "printf(\"callback buffer is NULL\\n\")", "parent": 116, "children": [124, 125], "start_point": {"row": 36, "column": 8}, "end_point": {"row": 36, "column": 43}}, {"id": 124, "type": "identifier", "text": "printf", "parent": 123, "children": [], "start_point": {"row": 36, "column": 8}, "end_point": {"row": 36, "column": 14}}, {"id": 125, "type": "argument_list", "text": "(\"callback buffer is NULL\\n\")", "parent": 123, "children": [126], "start_point": {"row": 36, "column": 14}, "end_point": {"row": 36, "column": 43}}, {"id": 126, "type": "string_literal", "text": "\"callback buffer is NULL\\n\"", "parent": 125, "children": [127], "start_point": {"row": 36, "column": 15}, "end_point": {"row": 36, "column": 42}}, {"id": 127, "type": "escape_sequence", "text": "\\n", "parent": 126, "children": [], "start_point": {"row": 36, "column": 39}, "end_point": {"row": 36, "column": 41}}, {"id": 128, "type": "return_statement", "text": "return;", "parent": 116, "children": [], "start_point": {"row": 37, "column": 8}, "end_point": {"row": 37, "column": 15}}, {"id": 129, "type": "declaration", "text": "FT_DFO_CNF* cnf = (FT_DFO_CNF*)buf;", "parent": 101, "children": [130, 131], "start_point": {"row": 40, "column": 4}, "end_point": {"row": 40, "column": 39}}, {"id": 130, "type": "type_identifier", "text": "FT_DFO_CNF", "parent": 129, "children": [], "start_point": {"row": 40, "column": 4}, "end_point": {"row": 40, "column": 14}}, {"id": 131, "type": "init_declarator", "text": "* cnf = (FT_DFO_CNF*)buf", "parent": 129, "children": [132, 135, 136], "start_point": {"row": 40, "column": 14}, "end_point": {"row": 40, "column": 38}}, {"id": 132, "type": "pointer_declarator", "text": "* cnf", "parent": 131, "children": [133, 134], "start_point": {"row": 40, "column": 14}, "end_point": {"row": 40, "column": 19}}, {"id": 133, "type": "*", "text": "*", "parent": 132, "children": [], "start_point": {"row": 40, "column": 14}, "end_point": {"row": 40, "column": 15}}, {"id": 134, "type": "identifier", "text": "cnf", "parent": 132, "children": [], "start_point": {"row": 40, "column": 16}, "end_point": {"row": 40, "column": 19}}, {"id": 135, "type": "=", "text": "=", "parent": 131, "children": [], "start_point": {"row": 40, "column": 20}, "end_point": {"row": 40, "column": 21}}, {"id": 136, "type": "cast_expression", "text": "(FT_DFO_CNF*)buf", "parent": 131, "children": [137, 141], "start_point": {"row": 40, "column": 22}, "end_point": {"row": 40, "column": 38}}, {"id": 137, "type": "type_descriptor", "text": "FT_DFO_CNF*", "parent": 136, "children": [138, 139], "start_point": {"row": 40, "column": 23}, "end_point": {"row": 40, "column": 34}}, {"id": 138, "type": "type_identifier", "text": "FT_DFO_CNF", "parent": 137, "children": [], "start_point": {"row": 40, "column": 23}, "end_point": {"row": 40, "column": 33}}, {"id": 139, "type": "abstract_pointer_declarator", "text": "*", "parent": 137, "children": [140], "start_point": {"row": 40, "column": 33}, "end_point": {"row": 40, "column": 34}}, {"id": 140, "type": "*", "text": "*", "parent": 139, "children": [], "start_point": {"row": 40, "column": 33}, "end_point": {"row": 40, "column": 34}}, {"id": 141, "type": "identifier", "text": "buf", "parent": 136, "children": [], "start_point": {"row": 40, "column": 35}, "end_point": {"row": 40, "column": 38}}, {"id": 142, "type": "declaration", "text": "DFO_OP op = cnf->op;", "parent": 101, "children": [143, 144], "start_point": {"row": 42, "column": 4}, "end_point": {"row": 42, "column": 24}}, {"id": 143, "type": "type_identifier", "text": "DFO_OP", "parent": 142, "children": [], "start_point": {"row": 42, "column": 4}, "end_point": {"row": 42, "column": 10}}, {"id": 144, "type": "init_declarator", "text": "op = cnf->op", "parent": 142, "children": [145, 146, 147], "start_point": {"row": 42, "column": 11}, "end_point": {"row": 42, "column": 23}}, {"id": 145, "type": "identifier", "text": "op", "parent": 144, "children": [], "start_point": {"row": 42, "column": 11}, "end_point": {"row": 42, "column": 13}}, {"id": 146, "type": "=", "text": "=", "parent": 144, "children": [], "start_point": {"row": 42, "column": 14}, "end_point": {"row": 42, "column": 15}}, {"id": 147, "type": "field_expression", "text": "cnf->op", "parent": 144, "children": [148, 149], "start_point": {"row": 42, "column": 16}, "end_point": {"row": 42, "column": 23}}, {"id": 148, "type": "identifier", "text": "cnf", "parent": 147, "children": [], "start_point": {"row": 42, "column": 16}, "end_point": {"row": 42, "column": 19}}, {"id": 149, "type": "field_identifier", "text": "op", "parent": 147, "children": [], "start_point": {"row": 42, "column": 21}, "end_point": {"row": 42, "column": 23}}, {"id": 150, "type": "if_statement", "text": "if (op == DFO_OP_READ_COUNT)\n {\n g_dfoCount = cnf->result.read_count_cnf.count;\n printf(\"DfoBoot count: (%d)\\n\", g_dfoCount);\n \n if (g_dfoCount > 0)\n {\n if (g_dfoArray)\n {\n free(g_dfoArray);\n g_dfoArray = NULL;\n }\n g_dfoArray = (dfo_test*)malloc(sizeof(dfo_test)*g_dfoCount);\n }\n }\n else if (op == DFO_OP_READ)\n {\n printf(\"Read(%d) name: (%s) value: (%d) partition: (%d)\\n\", g_curIndex,\n cnf->result.read_cnf.name, cnf->result.read_cnf.value, cnf->result.read_cnf.partition);\n strcpy(g_dfoArray[g_curIndex].name, cnf->result.read_cnf.name);\n g_dfoArray[g_curIndex].value = cnf->result.read_cnf.value;\n g_dfoArray[g_curIndex].partition = cnf->result.read_cnf.partition;\n }\n else if (op == DFO_OP_WRITE)\n {\n printf(\"Write result: (%d)\\n\", cnf->status);\n }\n else if (op == DFO_OP_COMBO_COUNT)\n {\n g_comboCount = cnf->result.combo_count_cnf.count;\n printf(\"Combo count: (%d)\\n\", g_comboCount);\n \n if (g_comboCount > 0)\n {\n if (g_comboArray)\n {\n free(g_comboArray);\n g_comboArray = NULL;\n }\n g_comboArray = (dfo_combo_test*)malloc(sizeof(dfo_combo_test)*g_comboCount);\n }\n }\n else if (op == DFO_OP_COMBO_READ)\n {\n printf(\"Combo Read(%d) name: (%s) mode count: (%d)\\n\", g_curCombo,\n cnf->result.combo_read_cnf.name, cnf->result.combo_read_cnf.modeCount);\n strcpy(g_comboArray[g_curCombo].name, cnf->result.combo_read_cnf.name);\n g_comboArray[g_curCombo].modeCount = cnf->result.combo_read_cnf.modeCount;\n g_comboArray[g_curCombo].modeArray = (dfo_combo_mode_test*)malloc(sizeof(dfo_combo_mode_test)*g_comboArray[g_curCombo].modeCount);\n }\n else if (op == DFO_OP_COMBO_MODE)\n {\n printf(\"Combo(%d) Mode(%d) name: (%s)\\n\", g_curCombo, g_curComboMode, cnf->result.combo_mode_cnf.name);\n strcpy(g_comboArray[g_curCombo].modeArray[g_curComboMode].name, cnf->result.combo_mode_cnf.name);\n }\n else if (op == DFO_OP_COMBO_UPDATE)\n {\n }\n else\n {\n printf(\"Wrong DFO OP: (%d)\\n\", op);\n }", "parent": 101, "children": [151, 207], "start_point": {"row": 44, "column": 4}, "end_point": {"row": 105, "column": 5}}, {"id": 151, "type": "parenthesized_expression", "text": "(op == DFO_OP_READ_COUNT)", "parent": 150, "children": [152], "start_point": {"row": 44, "column": 7}, "end_point": {"row": 44, "column": 32}}, {"id": 152, "type": "binary_expression", "text": "op == DFO_OP_READ_COUNT", "parent": 151, "children": [153, 154, 155], "start_point": {"row": 44, "column": 8}, "end_point": {"row": 44, "column": 31}}, {"id": 153, "type": "identifier", "text": "op", "parent": 152, "children": [], "start_point": {"row": 44, "column": 8}, "end_point": {"row": 44, "column": 10}}, {"id": 154, "type": "==", "text": "==", "parent": 152, "children": [], "start_point": {"row": 44, "column": 11}, "end_point": {"row": 44, "column": 13}}, {"id": 155, "type": "identifier", "text": "DFO_OP_READ_COUNT", "parent": 152, "children": [], "start_point": {"row": 44, "column": 14}, "end_point": {"row": 44, "column": 31}}, {"id": 156, "type": "assignment_expression", "text": "g_dfoCount = cnf->result.read_count_cnf.count", "parent": 150, "children": [157, 158, 159], "start_point": {"row": 46, "column": 8}, "end_point": {"row": 46, "column": 53}}, {"id": 157, "type": "identifier", "text": "g_dfoCount", "parent": 156, "children": [], "start_point": {"row": 46, "column": 8}, "end_point": {"row": 46, "column": 18}}, {"id": 158, "type": "=", "text": "=", "parent": 156, "children": [], "start_point": {"row": 46, "column": 19}, "end_point": {"row": 46, "column": 20}}, {"id": 159, "type": "field_expression", "text": "cnf->result.read_count_cnf.count", "parent": 156, "children": [160, 165], "start_point": {"row": 46, "column": 21}, "end_point": {"row": 46, "column": 53}}, {"id": 160, "type": "field_expression", "text": "cnf->result.read_count_cnf", "parent": 159, "children": [161, 164], "start_point": {"row": 46, "column": 21}, "end_point": {"row": 46, "column": 47}}, {"id": 161, "type": "field_expression", "text": "cnf->result", "parent": 160, "children": [162, 163], "start_point": {"row": 46, "column": 21}, "end_point": {"row": 46, "column": 32}}, {"id": 162, "type": "identifier", "text": "cnf", "parent": 161, "children": [], "start_point": {"row": 46, "column": 21}, "end_point": {"row": 46, "column": 24}}, {"id": 163, "type": "field_identifier", "text": "result", "parent": 161, "children": [], "start_point": {"row": 46, "column": 26}, "end_point": {"row": 46, "column": 32}}, {"id": 164, "type": "field_identifier", "text": "read_count_cnf", "parent": 160, "children": [], "start_point": {"row": 46, "column": 33}, "end_point": {"row": 46, "column": 47}}, {"id": 165, "type": "field_identifier", "text": "count", "parent": 159, "children": [], "start_point": {"row": 46, "column": 48}, "end_point": {"row": 46, "column": 53}}, {"id": 166, "type": "call_expression", "text": "printf(\"DfoBoot count: (%d)\\n\", g_dfoCount)", "parent": 150, "children": [167, 168], "start_point": {"row": 47, "column": 8}, "end_point": {"row": 47, "column": 51}}, {"id": 167, "type": "identifier", "text": "printf", "parent": 166, "children": [], "start_point": {"row": 47, "column": 8}, "end_point": {"row": 47, "column": 14}}, {"id": 168, "type": "argument_list", "text": "(\"DfoBoot count: (%d)\\n\", g_dfoCount)", "parent": 166, "children": [169, 171], "start_point": {"row": 47, "column": 14}, "end_point": {"row": 47, "column": 51}}, {"id": 169, "type": "string_literal", "text": "\"DfoBoot count: (%d)\\n\"", "parent": 168, "children": [170], "start_point": {"row": 47, "column": 15}, "end_point": {"row": 47, "column": 38}}, {"id": 170, "type": "escape_sequence", "text": "\\n", "parent": 169, "children": [], "start_point": {"row": 47, "column": 35}, "end_point": {"row": 47, "column": 37}}, {"id": 171, "type": "identifier", "text": "g_dfoCount", "parent": 168, "children": [], "start_point": {"row": 47, "column": 40}, "end_point": {"row": 47, "column": 50}}, {"id": 172, "type": "if_statement", "text": "if (g_dfoCount > 0)\n {\n if (g_dfoArray)\n {\n free(g_dfoArray);\n g_dfoArray = NULL;\n }\n g_dfoArray = (dfo_test*)malloc(sizeof(dfo_test)*g_dfoCount);\n }", "parent": 150, "children": [173], "start_point": {"row": 49, "column": 8}, "end_point": {"row": 57, "column": 9}}, {"id": 173, "type": "parenthesized_expression", "text": "(g_dfoCount > 0)", "parent": 172, "children": [174], "start_point": {"row": 49, "column": 11}, "end_point": {"row": 49, "column": 27}}, {"id": 174, "type": "binary_expression", "text": "g_dfoCount > 0", "parent": 173, "children": [175, 176, 177], "start_point": {"row": 49, "column": 12}, "end_point": {"row": 49, "column": 26}}, {"id": 175, "type": "identifier", "text": "g_dfoCount", "parent": 174, "children": [], "start_point": {"row": 49, "column": 12}, "end_point": {"row": 49, "column": 22}}, {"id": 176, "type": ">", "text": ">", "parent": 174, "children": [], "start_point": {"row": 49, "column": 23}, "end_point": {"row": 49, "column": 24}}, {"id": 177, "type": "number_literal", "text": "0", "parent": 174, "children": [], "start_point": {"row": 49, "column": 25}, "end_point": {"row": 49, "column": 26}}, {"id": 178, "type": "if_statement", "text": "if (g_dfoArray)\n {\n free(g_dfoArray);\n g_dfoArray = NULL;\n }", "parent": 172, "children": [179], "start_point": {"row": 51, "column": 12}, "end_point": {"row": 55, "column": 13}}, {"id": 179, "type": "parenthesized_expression", "text": "(g_dfoArray)", "parent": 178, "children": [180], "start_point": {"row": 51, "column": 15}, "end_point": {"row": 51, "column": 27}}, {"id": 180, "type": "identifier", "text": "g_dfoArray", "parent": 179, "children": [], "start_point": {"row": 51, "column": 16}, "end_point": {"row": 51, "column": 26}}, {"id": 181, "type": "call_expression", "text": "free(g_dfoArray)", "parent": 178, "children": [182, 183], "start_point": {"row": 53, "column": 16}, "end_point": {"row": 53, "column": 32}}, {"id": 182, "type": "identifier", "text": "free", "parent": 181, "children": [], "start_point": {"row": 53, "column": 16}, "end_point": {"row": 53, "column": 20}}, {"id": 183, "type": "argument_list", "text": "(g_dfoArray)", "parent": 181, "children": [184], "start_point": {"row": 53, "column": 20}, "end_point": {"row": 53, "column": 32}}, {"id": 184, "type": "identifier", "text": "g_dfoArray", "parent": 183, "children": [], "start_point": {"row": 53, "column": 21}, "end_point": {"row": 53, "column": 31}}, {"id": 185, "type": "assignment_expression", "text": "g_dfoArray = NULL", "parent": 178, "children": [186, 187, 188], "start_point": {"row": 54, "column": 16}, "end_point": {"row": 54, "column": 33}}, {"id": 186, "type": "identifier", "text": "g_dfoArray", "parent": 185, "children": [], "start_point": {"row": 54, "column": 16}, "end_point": {"row": 54, "column": 26}}, {"id": 187, "type": "=", "text": "=", "parent": 185, "children": [], "start_point": {"row": 54, "column": 27}, "end_point": {"row": 54, "column": 28}}, {"id": 188, "type": "null", "text": "NULL", "parent": 185, "children": [189], "start_point": {"row": 54, "column": 29}, "end_point": {"row": 54, "column": 33}}, {"id": 189, "type": "NULL", "text": "NULL", "parent": 188, "children": [], "start_point": {"row": 54, "column": 29}, "end_point": {"row": 54, "column": 33}}, {"id": 190, "type": "assignment_expression", "text": "g_dfoArray = (dfo_test*)malloc(sizeof(dfo_test)*g_dfoCount)", "parent": 172, "children": [191, 192, 193], "start_point": {"row": 56, "column": 12}, "end_point": {"row": 56, "column": 71}}, {"id": 191, "type": "identifier", "text": "g_dfoArray", "parent": 190, "children": [], "start_point": {"row": 56, "column": 12}, "end_point": {"row": 56, "column": 22}}, {"id": 192, "type": "=", "text": "=", "parent": 190, "children": [], "start_point": {"row": 56, "column": 23}, "end_point": {"row": 56, "column": 24}}, {"id": 193, "type": "cast_expression", "text": "(dfo_test*)malloc(sizeof(dfo_test)*g_dfoCount)", "parent": 190, "children": [194, 198], "start_point": {"row": 56, "column": 25}, "end_point": {"row": 56, "column": 71}}, {"id": 194, "type": "type_descriptor", "text": "dfo_test*", "parent": 193, "children": [195, 196], "start_point": {"row": 56, "column": 26}, "end_point": {"row": 56, "column": 35}}, {"id": 195, "type": "type_identifier", "text": "dfo_test", "parent": 194, "children": [], "start_point": {"row": 56, "column": 26}, "end_point": {"row": 56, "column": 34}}, {"id": 196, "type": "abstract_pointer_declarator", "text": "*", "parent": 194, "children": [197], "start_point": {"row": 56, "column": 34}, "end_point": {"row": 56, "column": 35}}, {"id": 197, "type": "*", "text": "*", "parent": 196, "children": [], "start_point": {"row": 56, "column": 34}, "end_point": {"row": 56, "column": 35}}, {"id": 198, "type": "call_expression", "text": "malloc(sizeof(dfo_test)*g_dfoCount)", "parent": 193, "children": [199, 200], "start_point": {"row": 56, "column": 36}, "end_point": {"row": 56, "column": 71}}, {"id": 199, "type": "identifier", "text": "malloc", "parent": 198, "children": [], "start_point": {"row": 56, "column": 36}, "end_point": {"row": 56, "column": 42}}, {"id": 200, "type": "argument_list", "text": "(sizeof(dfo_test)*g_dfoCount)", "parent": 198, "children": [201], "start_point": {"row": 56, "column": 42}, "end_point": {"row": 56, "column": 71}}, {"id": 201, "type": "binary_expression", "text": "sizeof(dfo_test)*g_dfoCount", "parent": 200, "children": [202, 205, 206], "start_point": {"row": 56, "column": 43}, "end_point": {"row": 56, "column": 70}}, {"id": 202, "type": "sizeof_expression", "text": "sizeof(dfo_test)", "parent": 201, "children": [203], "start_point": {"row": 56, "column": 43}, "end_point": {"row": 56, "column": 59}}, {"id": 203, "type": "parenthesized_expression", "text": "(dfo_test)", "parent": 202, "children": [204], "start_point": {"row": 56, "column": 49}, "end_point": {"row": 56, "column": 59}}, {"id": 204, "type": "identifier", "text": "dfo_test", "parent": 203, "children": [], "start_point": {"row": 56, "column": 50}, "end_point": {"row": 56, "column": 58}}, {"id": 205, "type": "*", "text": "*", "parent": 201, "children": [], "start_point": {"row": 56, "column": 59}, "end_point": {"row": 56, "column": 60}}, {"id": 206, "type": "identifier", "text": "g_dfoCount", "parent": 201, "children": [], "start_point": {"row": 56, "column": 60}, "end_point": {"row": 56, "column": 70}}, {"id": 207, "type": "else_clause", "text": "else if (op == DFO_OP_READ)\n {\n printf(\"Read(%d) name: (%s) value: (%d) partition: (%d)\\n\", g_curIndex,\n cnf->result.read_cnf.name, cnf->result.read_cnf.value, cnf->result.read_cnf.partition);\n strcpy(g_dfoArray[g_curIndex].name, cnf->result.read_cnf.name);\n g_dfoArray[g_curIndex].value = cnf->result.read_cnf.value;\n g_dfoArray[g_curIndex].partition = cnf->result.read_cnf.partition;\n }\n else if (op == DFO_OP_WRITE)\n {\n printf(\"Write result: (%d)\\n\", cnf->status);\n }\n else if (op == DFO_OP_COMBO_COUNT)\n {\n g_comboCount = cnf->result.combo_count_cnf.count;\n printf(\"Combo count: (%d)\\n\", g_comboCount);\n \n if (g_comboCount > 0)\n {\n if (g_comboArray)\n {\n free(g_comboArray);\n g_comboArray = NULL;\n }\n g_comboArray = (dfo_combo_test*)malloc(sizeof(dfo_combo_test)*g_comboCount);\n }\n }\n else if (op == DFO_OP_COMBO_READ)\n {\n printf(\"Combo Read(%d) name: (%s) mode count: (%d)\\n\", g_curCombo,\n cnf->result.combo_read_cnf.name, cnf->result.combo_read_cnf.modeCount);\n strcpy(g_comboArray[g_curCombo].name, cnf->result.combo_read_cnf.name);\n g_comboArray[g_curCombo].modeCount = cnf->result.combo_read_cnf.modeCount;\n g_comboArray[g_curCombo].modeArray = (dfo_combo_mode_test*)malloc(sizeof(dfo_combo_mode_test)*g_comboArray[g_curCombo].modeCount);\n }\n else if (op == DFO_OP_COMBO_MODE)\n {\n printf(\"Combo(%d) Mode(%d) name: (%s)\\n\", g_curCombo, g_curComboMode, cnf->result.combo_mode_cnf.name);\n strcpy(g_comboArray[g_curCombo].modeArray[g_curComboMode].name, cnf->result.combo_mode_cnf.name);\n }\n else if (op == DFO_OP_COMBO_UPDATE)\n {\n }\n else\n {\n printf(\"Wrong DFO OP: (%d)\\n\", op);\n }", "parent": 150, "children": [208], "start_point": {"row": 59, "column": 4}, "end_point": {"row": 105, "column": 5}}, {"id": 208, "type": "if_statement", "text": "if (op == DFO_OP_READ)\n {\n printf(\"Read(%d) name: (%s) value: (%d) partition: (%d)\\n\", g_curIndex,\n cnf->result.read_cnf.name, cnf->result.read_cnf.value, cnf->result.read_cnf.partition);\n strcpy(g_dfoArray[g_curIndex].name, cnf->result.read_cnf.name);\n g_dfoArray[g_curIndex].value = cnf->result.read_cnf.value;\n g_dfoArray[g_curIndex].partition = cnf->result.read_cnf.partition;\n }\n else if (op == DFO_OP_WRITE)\n {\n printf(\"Write result: (%d)\\n\", cnf->status);\n }\n else if (op == DFO_OP_COMBO_COUNT)\n {\n g_comboCount = cnf->result.combo_count_cnf.count;\n printf(\"Combo count: (%d)\\n\", g_comboCount);\n \n if (g_comboCount > 0)\n {\n if (g_comboArray)\n {\n free(g_comboArray);\n g_comboArray = NULL;\n }\n g_comboArray = (dfo_combo_test*)malloc(sizeof(dfo_combo_test)*g_comboCount);\n }\n }\n else if (op == DFO_OP_COMBO_READ)\n {\n printf(\"Combo Read(%d) name: (%s) mode count: (%d)\\n\", g_curCombo,\n cnf->result.combo_read_cnf.name, cnf->result.combo_read_cnf.modeCount);\n strcpy(g_comboArray[g_curCombo].name, cnf->result.combo_read_cnf.name);\n g_comboArray[g_curCombo].modeCount = cnf->result.combo_read_cnf.modeCount;\n g_comboArray[g_curCombo].modeArray = (dfo_combo_mode_test*)malloc(sizeof(dfo_combo_mode_test)*g_comboArray[g_curCombo].modeCount);\n }\n else if (op == DFO_OP_COMBO_MODE)\n {\n printf(\"Combo(%d) Mode(%d) name: (%s)\\n\", g_curCombo, g_curComboMode, cnf->result.combo_mode_cnf.name);\n strcpy(g_comboArray[g_curCombo].modeArray[g_curComboMode].name, cnf->result.combo_mode_cnf.name);\n }\n else if (op == DFO_OP_COMBO_UPDATE)\n {\n }\n else\n {\n printf(\"Wrong DFO OP: (%d)\\n\", op);\n }", "parent": 207, "children": [209, 284], "start_point": {"row": 59, "column": 9}, "end_point": {"row": 105, "column": 5}}, {"id": 209, "type": "parenthesized_expression", "text": "(op == DFO_OP_READ)", "parent": 208, "children": [210], "start_point": {"row": 59, "column": 12}, "end_point": {"row": 59, "column": 31}}, {"id": 210, "type": "binary_expression", "text": "op == DFO_OP_READ", "parent": 209, "children": [211, 212, 213], "start_point": {"row": 59, "column": 13}, "end_point": {"row": 59, "column": 30}}, {"id": 211, "type": "identifier", "text": "op", "parent": 210, "children": [], "start_point": {"row": 59, "column": 13}, "end_point": {"row": 59, "column": 15}}, {"id": 212, "type": "==", "text": "==", "parent": 210, "children": [], "start_point": {"row": 59, "column": 16}, "end_point": {"row": 59, "column": 18}}, {"id": 213, "type": "identifier", "text": "DFO_OP_READ", "parent": 210, "children": [], "start_point": {"row": 59, "column": 19}, "end_point": {"row": 59, "column": 30}}, {"id": 214, "type": "call_expression", "text": "printf(\"Read(%d) name: (%s) value: (%d) partition: (%d)\\n\", g_curIndex,\n cnf->result.read_cnf.name, cnf->result.read_cnf.value, cnf->result.read_cnf.partition)", "parent": 208, "children": [215, 216], "start_point": {"row": 61, "column": 8}, "end_point": {"row": 62, "column": 99}}, {"id": 215, "type": "identifier", "text": "printf", "parent": 214, "children": [], "start_point": {"row": 61, "column": 8}, "end_point": {"row": 61, "column": 14}}, {"id": 216, "type": "argument_list", "text": "(\"Read(%d) name: (%s) value: (%d) partition: (%d)\\n\", g_curIndex,\n cnf->result.read_cnf.name, cnf->result.read_cnf.value, cnf->result.read_cnf.partition)", "parent": 214, "children": [217, 219, 220, 227, 234], "start_point": {"row": 61, "column": 14}, "end_point": {"row": 62, "column": 99}}, {"id": 217, "type": "string_literal", "text": "\"Read(%d) name: (%s) value: (%d) partition: (%d)\\n\"", "parent": 216, "children": [218], "start_point": {"row": 61, "column": 15}, "end_point": {"row": 61, "column": 66}}, {"id": 218, "type": "escape_sequence", "text": "\\n", "parent": 217, "children": [], "start_point": {"row": 61, "column": 63}, "end_point": {"row": 61, "column": 65}}, {"id": 219, "type": "identifier", "text": "g_curIndex", "parent": 216, "children": [], "start_point": {"row": 61, "column": 68}, "end_point": {"row": 61, "column": 78}}, {"id": 220, "type": "field_expression", "text": "cnf->result.read_cnf.name", "parent": 216, "children": [221, 226], "start_point": {"row": 62, "column": 13}, "end_point": {"row": 62, "column": 38}}, {"id": 221, "type": "field_expression", "text": "cnf->result.read_cnf", "parent": 220, "children": [222, 225], "start_point": {"row": 62, "column": 13}, "end_point": {"row": 62, "column": 33}}, {"id": 222, "type": "field_expression", "text": "cnf->result", "parent": 221, "children": [223, 224], "start_point": {"row": 62, "column": 13}, "end_point": {"row": 62, "column": 24}}, {"id": 223, "type": "identifier", "text": "cnf", "parent": 222, "children": [], "start_point": {"row": 62, "column": 13}, "end_point": {"row": 62, "column": 16}}, {"id": 224, "type": "field_identifier", "text": "result", "parent": 222, "children": [], "start_point": {"row": 62, "column": 18}, "end_point": {"row": 62, "column": 24}}, {"id": 225, "type": "field_identifier", "text": "read_cnf", "parent": 221, "children": [], "start_point": {"row": 62, "column": 25}, "end_point": {"row": 62, "column": 33}}, {"id": 226, "type": "field_identifier", "text": "name", "parent": 220, "children": [], "start_point": {"row": 62, "column": 34}, "end_point": {"row": 62, "column": 38}}, {"id": 227, "type": "field_expression", "text": "cnf->result.read_cnf.value", "parent": 216, "children": [228, 233], "start_point": {"row": 62, "column": 40}, "end_point": {"row": 62, "column": 66}}, {"id": 228, "type": "field_expression", "text": "cnf->result.read_cnf", "parent": 227, "children": [229, 232], "start_point": {"row": 62, "column": 40}, "end_point": {"row": 62, "column": 60}}, {"id": 229, "type": "field_expression", "text": "cnf->result", "parent": 228, "children": [230, 231], "start_point": {"row": 62, "column": 40}, "end_point": {"row": 62, "column": 51}}, {"id": 230, "type": "identifier", "text": "cnf", "parent": 229, "children": [], "start_point": {"row": 62, "column": 40}, "end_point": {"row": 62, "column": 43}}, {"id": 231, "type": "field_identifier", "text": "result", "parent": 229, "children": [], "start_point": {"row": 62, "column": 45}, "end_point": {"row": 62, "column": 51}}, {"id": 232, "type": "field_identifier", "text": "read_cnf", "parent": 228, "children": [], "start_point": {"row": 62, "column": 52}, "end_point": {"row": 62, "column": 60}}, {"id": 233, "type": "field_identifier", "text": "value", "parent": 227, "children": [], "start_point": {"row": 62, "column": 61}, "end_point": {"row": 62, "column": 66}}, {"id": 234, "type": "field_expression", "text": "cnf->result.read_cnf.partition", "parent": 216, "children": [235, 240], "start_point": {"row": 62, "column": 68}, "end_point": {"row": 62, "column": 98}}, {"id": 235, "type": "field_expression", "text": "cnf->result.read_cnf", "parent": 234, "children": [236, 239], "start_point": {"row": 62, "column": 68}, "end_point": {"row": 62, "column": 88}}, {"id": 236, "type": "field_expression", "text": "cnf->result", "parent": 235, "children": [237, 238], "start_point": {"row": 62, "column": 68}, "end_point": {"row": 62, "column": 79}}, {"id": 237, "type": "identifier", "text": "cnf", "parent": 236, "children": [], "start_point": {"row": 62, "column": 68}, "end_point": {"row": 62, "column": 71}}, {"id": 238, "type": "field_identifier", "text": "result", "parent": 236, "children": [], "start_point": {"row": 62, "column": 73}, "end_point": {"row": 62, "column": 79}}, {"id": 239, "type": "field_identifier", "text": "read_cnf", "parent": 235, "children": [], "start_point": {"row": 62, "column": 80}, "end_point": {"row": 62, "column": 88}}, {"id": 240, "type": "field_identifier", "text": "partition", "parent": 234, "children": [], "start_point": {"row": 62, "column": 89}, "end_point": {"row": 62, "column": 98}}, {"id": 241, "type": "call_expression", "text": "strcpy(g_dfoArray[g_curIndex].name, cnf->result.read_cnf.name)", "parent": 208, "children": [242, 243], "start_point": {"row": 63, "column": 8}, "end_point": {"row": 63, "column": 70}}, {"id": 242, "type": "identifier", "text": "strcpy", "parent": 241, "children": [], "start_point": {"row": 63, "column": 8}, "end_point": {"row": 63, "column": 14}}, {"id": 243, "type": "argument_list", "text": "(g_dfoArray[g_curIndex].name, cnf->result.read_cnf.name)", "parent": 241, "children": [244, 249], "start_point": {"row": 63, "column": 14}, "end_point": {"row": 63, "column": 70}}, {"id": 244, "type": "field_expression", "text": "g_dfoArray[g_curIndex].name", "parent": 243, "children": [245, 248], "start_point": {"row": 63, "column": 15}, "end_point": {"row": 63, "column": 42}}, {"id": 245, "type": "subscript_expression", "text": "g_dfoArray[g_curIndex]", "parent": 244, "children": [246, 247], "start_point": {"row": 63, "column": 15}, "end_point": {"row": 63, "column": 37}}, {"id": 246, "type": "identifier", "text": "g_dfoArray", "parent": 245, "children": [], "start_point": {"row": 63, "column": 15}, "end_point": {"row": 63, "column": 25}}, {"id": 247, "type": "identifier", "text": "g_curIndex", "parent": 245, "children": [], "start_point": {"row": 63, "column": 26}, "end_point": {"row": 63, "column": 36}}, {"id": 248, "type": "field_identifier", "text": "name", "parent": 244, "children": [], "start_point": {"row": 63, "column": 38}, "end_point": {"row": 63, "column": 42}}, {"id": 249, "type": "field_expression", "text": "cnf->result.read_cnf.name", "parent": 243, "children": [250, 255], "start_point": {"row": 63, "column": 44}, "end_point": {"row": 63, "column": 69}}, {"id": 250, "type": "field_expression", "text": "cnf->result.read_cnf", "parent": 249, "children": [251, 254], "start_point": {"row": 63, "column": 44}, "end_point": {"row": 63, "column": 64}}, {"id": 251, "type": "field_expression", "text": "cnf->result", "parent": 250, "children": [252, 253], "start_point": {"row": 63, "column": 44}, "end_point": {"row": 63, "column": 55}}, {"id": 252, "type": "identifier", "text": "cnf", "parent": 251, "children": [], "start_point": {"row": 63, "column": 44}, "end_point": {"row": 63, "column": 47}}, {"id": 253, "type": "field_identifier", "text": "result", "parent": 251, "children": [], "start_point": {"row": 63, "column": 49}, "end_point": {"row": 63, "column": 55}}, {"id": 254, "type": "field_identifier", "text": "read_cnf", "parent": 250, "children": [], "start_point": {"row": 63, "column": 56}, "end_point": {"row": 63, "column": 64}}, {"id": 255, "type": "field_identifier", "text": "name", "parent": 249, "children": [], "start_point": {"row": 63, "column": 65}, "end_point": {"row": 63, "column": 69}}, {"id": 256, "type": "assignment_expression", "text": "g_dfoArray[g_curIndex].value = cnf->result.read_cnf.value", "parent": 208, "children": [257, 262, 263], "start_point": {"row": 64, "column": 8}, "end_point": {"row": 64, "column": 65}}, {"id": 257, "type": "field_expression", "text": "g_dfoArray[g_curIndex].value", "parent": 256, "children": [258, 261], "start_point": {"row": 64, "column": 8}, "end_point": {"row": 64, "column": 36}}, {"id": 258, "type": "subscript_expression", "text": "g_dfoArray[g_curIndex]", "parent": 257, "children": [259, 260], "start_point": {"row": 64, "column": 8}, "end_point": {"row": 64, "column": 30}}, {"id": 259, "type": "identifier", "text": "g_dfoArray", "parent": 258, "children": [], "start_point": {"row": 64, "column": 8}, "end_point": {"row": 64, "column": 18}}, {"id": 260, "type": "identifier", "text": "g_curIndex", "parent": 258, "children": [], "start_point": {"row": 64, "column": 19}, "end_point": {"row": 64, "column": 29}}, {"id": 261, "type": "field_identifier", "text": "value", "parent": 257, "children": [], "start_point": {"row": 64, "column": 31}, "end_point": {"row": 64, "column": 36}}, {"id": 262, "type": "=", "text": "=", "parent": 256, "children": [], "start_point": {"row": 64, "column": 37}, "end_point": {"row": 64, "column": 38}}, {"id": 263, "type": "field_expression", "text": "cnf->result.read_cnf.value", "parent": 256, "children": [264, 269], "start_point": {"row": 64, "column": 39}, "end_point": {"row": 64, "column": 65}}, {"id": 264, "type": "field_expression", "text": "cnf->result.read_cnf", "parent": 263, "children": [265, 268], "start_point": {"row": 64, "column": 39}, "end_point": {"row": 64, "column": 59}}, {"id": 265, "type": "field_expression", "text": "cnf->result", "parent": 264, "children": [266, 267], "start_point": {"row": 64, "column": 39}, "end_point": {"row": 64, "column": 50}}, {"id": 266, "type": "identifier", "text": "cnf", "parent": 265, "children": [], "start_point": {"row": 64, "column": 39}, "end_point": {"row": 64, "column": 42}}, {"id": 267, "type": "field_identifier", "text": "result", "parent": 265, "children": [], "start_point": {"row": 64, "column": 44}, "end_point": {"row": 64, "column": 50}}, {"id": 268, "type": "field_identifier", "text": "read_cnf", "parent": 264, "children": [], "start_point": {"row": 64, "column": 51}, "end_point": {"row": 64, "column": 59}}, {"id": 269, "type": "field_identifier", "text": "value", "parent": 263, "children": [], "start_point": {"row": 64, "column": 60}, "end_point": {"row": 64, "column": 65}}, {"id": 270, "type": "assignment_expression", "text": "g_dfoArray[g_curIndex].partition = cnf->result.read_cnf.partition", "parent": 208, "children": [271, 276, 277], "start_point": {"row": 65, "column": 8}, "end_point": {"row": 65, "column": 73}}, {"id": 271, "type": "field_expression", "text": "g_dfoArray[g_curIndex].partition", "parent": 270, "children": [272, 275], "start_point": {"row": 65, "column": 8}, "end_point": {"row": 65, "column": 40}}, {"id": 272, "type": "subscript_expression", "text": "g_dfoArray[g_curIndex]", "parent": 271, "children": [273, 274], "start_point": {"row": 65, "column": 8}, "end_point": {"row": 65, "column": 30}}, {"id": 273, "type": "identifier", "text": "g_dfoArray", "parent": 272, "children": [], "start_point": {"row": 65, "column": 8}, "end_point": {"row": 65, "column": 18}}, {"id": 274, "type": "identifier", "text": "g_curIndex", "parent": 272, "children": [], "start_point": {"row": 65, "column": 19}, "end_point": {"row": 65, "column": 29}}, {"id": 275, "type": "field_identifier", "text": "partition", "parent": 271, "children": [], "start_point": {"row": 65, "column": 31}, "end_point": {"row": 65, "column": 40}}, {"id": 276, "type": "=", "text": "=", "parent": 270, "children": [], "start_point": {"row": 65, "column": 41}, "end_point": {"row": 65, "column": 42}}, {"id": 277, "type": "field_expression", "text": "cnf->result.read_cnf.partition", "parent": 270, "children": [278, 283], "start_point": {"row": 65, "column": 43}, "end_point": {"row": 65, "column": 73}}, {"id": 278, "type": "field_expression", "text": "cnf->result.read_cnf", "parent": 277, "children": [279, 282], "start_point": {"row": 65, "column": 43}, "end_point": {"row": 65, "column": 63}}, {"id": 279, "type": "field_expression", "text": "cnf->result", "parent": 278, "children": [280, 281], "start_point": {"row": 65, "column": 43}, "end_point": {"row": 65, "column": 54}}, {"id": 280, "type": "identifier", "text": "cnf", "parent": 279, "children": [], "start_point": {"row": 65, "column": 43}, "end_point": {"row": 65, "column": 46}}, {"id": 281, "type": "field_identifier", "text": "result", "parent": 279, "children": [], "start_point": {"row": 65, "column": 48}, "end_point": {"row": 65, "column": 54}}, {"id": 282, "type": "field_identifier", "text": "read_cnf", "parent": 278, "children": [], "start_point": {"row": 65, "column": 55}, "end_point": {"row": 65, "column": 63}}, {"id": 283, "type": "field_identifier", "text": "partition", "parent": 277, "children": [], "start_point": {"row": 65, "column": 64}, "end_point": {"row": 65, "column": 73}}, {"id": 284, "type": "else_clause", "text": "else if (op == DFO_OP_WRITE)\n {\n printf(\"Write result: (%d)\\n\", cnf->status);\n }\n else if (op == DFO_OP_COMBO_COUNT)\n {\n g_comboCount = cnf->result.combo_count_cnf.count;\n printf(\"Combo count: (%d)\\n\", g_comboCount);\n \n if (g_comboCount > 0)\n {\n if (g_comboArray)\n {\n free(g_comboArray);\n g_comboArray = NULL;\n }\n g_comboArray = (dfo_combo_test*)malloc(sizeof(dfo_combo_test)*g_comboCount);\n }\n }\n else if (op == DFO_OP_COMBO_READ)\n {\n printf(\"Combo Read(%d) name: (%s) mode count: (%d)\\n\", g_curCombo,\n cnf->result.combo_read_cnf.name, cnf->result.combo_read_cnf.modeCount);\n strcpy(g_comboArray[g_curCombo].name, cnf->result.combo_read_cnf.name);\n g_comboArray[g_curCombo].modeCount = cnf->result.combo_read_cnf.modeCount;\n g_comboArray[g_curCombo].modeArray = (dfo_combo_mode_test*)malloc(sizeof(dfo_combo_mode_test)*g_comboArray[g_curCombo].modeCount);\n }\n else if (op == DFO_OP_COMBO_MODE)\n {\n printf(\"Combo(%d) Mode(%d) name: (%s)\\n\", g_curCombo, g_curComboMode, cnf->result.combo_mode_cnf.name);\n strcpy(g_comboArray[g_curCombo].modeArray[g_curComboMode].name, cnf->result.combo_mode_cnf.name);\n }\n else if (op == DFO_OP_COMBO_UPDATE)\n {\n }\n else\n {\n printf(\"Wrong DFO OP: (%d)\\n\", op);\n }", "parent": 208, "children": [285], "start_point": {"row": 67, "column": 4}, "end_point": {"row": 105, "column": 5}}, {"id": 285, "type": "if_statement", "text": "if (op == DFO_OP_WRITE)\n {\n printf(\"Write result: (%d)\\n\", cnf->status);\n }\n else if (op == DFO_OP_COMBO_COUNT)\n {\n g_comboCount = cnf->result.combo_count_cnf.count;\n printf(\"Combo count: (%d)\\n\", g_comboCount);\n \n if (g_comboCount > 0)\n {\n if (g_comboArray)\n {\n free(g_comboArray);\n g_comboArray = NULL;\n }\n g_comboArray = (dfo_combo_test*)malloc(sizeof(dfo_combo_test)*g_comboCount);\n }\n }\n else if (op == DFO_OP_COMBO_READ)\n {\n printf(\"Combo Read(%d) name: (%s) mode count: (%d)\\n\", g_curCombo,\n cnf->result.combo_read_cnf.name, cnf->result.combo_read_cnf.modeCount);\n strcpy(g_comboArray[g_curCombo].name, cnf->result.combo_read_cnf.name);\n g_comboArray[g_curCombo].modeCount = cnf->result.combo_read_cnf.modeCount;\n g_comboArray[g_curCombo].modeArray = (dfo_combo_mode_test*)malloc(sizeof(dfo_combo_mode_test)*g_comboArray[g_curCombo].modeCount);\n }\n else if (op == DFO_OP_COMBO_MODE)\n {\n printf(\"Combo(%d) Mode(%d) name: (%s)\\n\", g_curCombo, g_curComboMode, cnf->result.combo_mode_cnf.name);\n strcpy(g_comboArray[g_curCombo].modeArray[g_curComboMode].name, cnf->result.combo_mode_cnf.name);\n }\n else if (op == DFO_OP_COMBO_UPDATE)\n {\n }\n else\n {\n printf(\"Wrong DFO OP: (%d)\\n\", op);\n }", "parent": 284, "children": [286, 299], "start_point": {"row": 67, "column": 9}, "end_point": {"row": 105, "column": 5}}, {"id": 286, "type": "parenthesized_expression", "text": "(op == DFO_OP_WRITE)", "parent": 285, "children": [287], "start_point": {"row": 67, "column": 12}, "end_point": {"row": 67, "column": 32}}, {"id": 287, "type": "binary_expression", "text": "op == DFO_OP_WRITE", "parent": 286, "children": [288, 289, 290], "start_point": {"row": 67, "column": 13}, "end_point": {"row": 67, "column": 31}}, {"id": 288, "type": "identifier", "text": "op", "parent": 287, "children": [], "start_point": {"row": 67, "column": 13}, "end_point": {"row": 67, "column": 15}}, {"id": 289, "type": "==", "text": "==", "parent": 287, "children": [], "start_point": {"row": 67, "column": 16}, "end_point": {"row": 67, "column": 18}}, {"id": 290, "type": "identifier", "text": "DFO_OP_WRITE", "parent": 287, "children": [], "start_point": {"row": 67, "column": 19}, "end_point": {"row": 67, "column": 31}}, {"id": 291, "type": "call_expression", "text": "printf(\"Write result: (%d)\\n\", cnf->status)", "parent": 285, "children": [292, 293], "start_point": {"row": 69, "column": 8}, "end_point": {"row": 69, "column": 51}}, {"id": 292, "type": "identifier", "text": "printf", "parent": 291, "children": [], "start_point": {"row": 69, "column": 8}, "end_point": {"row": 69, "column": 14}}, {"id": 293, "type": "argument_list", "text": "(\"Write result: (%d)\\n\", cnf->status)", "parent": 291, "children": [294, 296], "start_point": {"row": 69, "column": 14}, "end_point": {"row": 69, "column": 51}}, {"id": 294, "type": "string_literal", "text": "\"Write result: (%d)\\n\"", "parent": 293, "children": [295], "start_point": {"row": 69, "column": 15}, "end_point": {"row": 69, "column": 37}}, {"id": 295, "type": "escape_sequence", "text": "\\n", "parent": 294, "children": [], "start_point": {"row": 69, "column": 34}, "end_point": {"row": 69, "column": 36}}, {"id": 296, "type": "field_expression", "text": "cnf->status", "parent": 293, "children": [297, 298], "start_point": {"row": 69, "column": 39}, "end_point": {"row": 69, "column": 50}}, {"id": 297, "type": "identifier", "text": "cnf", "parent": 296, "children": [], "start_point": {"row": 69, "column": 39}, "end_point": {"row": 69, "column": 42}}, {"id": 298, "type": "field_identifier", "text": "status", "parent": 296, "children": [], "start_point": {"row": 69, "column": 44}, "end_point": {"row": 69, "column": 50}}, {"id": 299, "type": "else_clause", "text": "else if (op == DFO_OP_COMBO_COUNT)\n {\n g_comboCount = cnf->result.combo_count_cnf.count;\n printf(\"Combo count: (%d)\\n\", g_comboCount);\n \n if (g_comboCount > 0)\n {\n if (g_comboArray)\n {\n free(g_comboArray);\n g_comboArray = NULL;\n }\n g_comboArray = (dfo_combo_test*)malloc(sizeof(dfo_combo_test)*g_comboCount);\n }\n }\n else if (op == DFO_OP_COMBO_READ)\n {\n printf(\"Combo Read(%d) name: (%s) mode count: (%d)\\n\", g_curCombo,\n cnf->result.combo_read_cnf.name, cnf->result.combo_read_cnf.modeCount);\n strcpy(g_comboArray[g_curCombo].name, cnf->result.combo_read_cnf.name);\n g_comboArray[g_curCombo].modeCount = cnf->result.combo_read_cnf.modeCount;\n g_comboArray[g_curCombo].modeArray = (dfo_combo_mode_test*)malloc(sizeof(dfo_combo_mode_test)*g_comboArray[g_curCombo].modeCount);\n }\n else if (op == DFO_OP_COMBO_MODE)\n {\n printf(\"Combo(%d) Mode(%d) name: (%s)\\n\", g_curCombo, g_curComboMode, cnf->result.combo_mode_cnf.name);\n strcpy(g_comboArray[g_curCombo].modeArray[g_curComboMode].name, cnf->result.combo_mode_cnf.name);\n }\n else if (op == DFO_OP_COMBO_UPDATE)\n {\n }\n else\n {\n printf(\"Wrong DFO OP: (%d)\\n\", op);\n }", "parent": 285, "children": [300], "start_point": {"row": 71, "column": 4}, "end_point": {"row": 105, "column": 5}}, {"id": 300, "type": "if_statement", "text": "if (op == DFO_OP_COMBO_COUNT)\n {\n g_comboCount = cnf->result.combo_count_cnf.count;\n printf(\"Combo count: (%d)\\n\", g_comboCount);\n \n if (g_comboCount > 0)\n {\n if (g_comboArray)\n {\n free(g_comboArray);\n g_comboArray = NULL;\n }\n g_comboArray = (dfo_combo_test*)malloc(sizeof(dfo_combo_test)*g_comboCount);\n }\n }\n else if (op == DFO_OP_COMBO_READ)\n {\n printf(\"Combo Read(%d) name: (%s) mode count: (%d)\\n\", g_curCombo,\n cnf->result.combo_read_cnf.name, cnf->result.combo_read_cnf.modeCount);\n strcpy(g_comboArray[g_curCombo].name, cnf->result.combo_read_cnf.name);\n g_comboArray[g_curCombo].modeCount = cnf->result.combo_read_cnf.modeCount;\n g_comboArray[g_curCombo].modeArray = (dfo_combo_mode_test*)malloc(sizeof(dfo_combo_mode_test)*g_comboArray[g_curCombo].modeCount);\n }\n else if (op == DFO_OP_COMBO_MODE)\n {\n printf(\"Combo(%d) Mode(%d) name: (%s)\\n\", g_curCombo, g_curComboMode, cnf->result.combo_mode_cnf.name);\n strcpy(g_comboArray[g_curCombo].modeArray[g_curComboMode].name, cnf->result.combo_mode_cnf.name);\n }\n else if (op == DFO_OP_COMBO_UPDATE)\n {\n }\n else\n {\n printf(\"Wrong DFO OP: (%d)\\n\", op);\n }", "parent": 299, "children": [301, 357], "start_point": {"row": 71, "column": 9}, "end_point": {"row": 105, "column": 5}}, {"id": 301, "type": "parenthesized_expression", "text": "(op == DFO_OP_COMBO_COUNT)", "parent": 300, "children": [302], "start_point": {"row": 71, "column": 12}, "end_point": {"row": 71, "column": 38}}, {"id": 302, "type": "binary_expression", "text": "op == DFO_OP_COMBO_COUNT", "parent": 301, "children": [303, 304, 305], "start_point": {"row": 71, "column": 13}, "end_point": {"row": 71, "column": 37}}, {"id": 303, "type": "identifier", "text": "op", "parent": 302, "children": [], "start_point": {"row": 71, "column": 13}, "end_point": {"row": 71, "column": 15}}, {"id": 304, "type": "==", "text": "==", "parent": 302, "children": [], "start_point": {"row": 71, "column": 16}, "end_point": {"row": 71, "column": 18}}, {"id": 305, "type": "identifier", "text": "DFO_OP_COMBO_COUNT", "parent": 302, "children": [], "start_point": {"row": 71, "column": 19}, "end_point": {"row": 71, "column": 37}}, {"id": 306, "type": "assignment_expression", "text": "g_comboCount = cnf->result.combo_count_cnf.count", "parent": 300, "children": [307, 308, 309], "start_point": {"row": 73, "column": 8}, "end_point": {"row": 73, "column": 56}}, {"id": 307, "type": "identifier", "text": "g_comboCount", "parent": 306, "children": [], "start_point": {"row": 73, "column": 8}, "end_point": {"row": 73, "column": 20}}, {"id": 308, "type": "=", "text": "=", "parent": 306, "children": [], "start_point": {"row": 73, "column": 21}, "end_point": {"row": 73, "column": 22}}, {"id": 309, "type": "field_expression", "text": "cnf->result.combo_count_cnf.count", "parent": 306, "children": [310, 315], "start_point": {"row": 73, "column": 23}, "end_point": {"row": 73, "column": 56}}, {"id": 310, "type": "field_expression", "text": "cnf->result.combo_count_cnf", "parent": 309, "children": [311, 314], "start_point": {"row": 73, "column": 23}, "end_point": {"row": 73, "column": 50}}, {"id": 311, "type": "field_expression", "text": "cnf->result", "parent": 310, "children": [312, 313], "start_point": {"row": 73, "column": 23}, "end_point": {"row": 73, "column": 34}}, {"id": 312, "type": "identifier", "text": "cnf", "parent": 311, "children": [], "start_point": {"row": 73, "column": 23}, "end_point": {"row": 73, "column": 26}}, {"id": 313, "type": "field_identifier", "text": "result", "parent": 311, "children": [], "start_point": {"row": 73, "column": 28}, "end_point": {"row": 73, "column": 34}}, {"id": 314, "type": "field_identifier", "text": "combo_count_cnf", "parent": 310, "children": [], "start_point": {"row": 73, "column": 35}, "end_point": {"row": 73, "column": 50}}, {"id": 315, "type": "field_identifier", "text": "count", "parent": 309, "children": [], "start_point": {"row": 73, "column": 51}, "end_point": {"row": 73, "column": 56}}, {"id": 316, "type": "call_expression", "text": "printf(\"Combo count: (%d)\\n\", g_comboCount)", "parent": 300, "children": [317, 318], "start_point": {"row": 74, "column": 8}, "end_point": {"row": 74, "column": 51}}, {"id": 317, "type": "identifier", "text": "printf", "parent": 316, "children": [], "start_point": {"row": 74, "column": 8}, "end_point": {"row": 74, "column": 14}}, {"id": 318, "type": "argument_list", "text": "(\"Combo count: (%d)\\n\", g_comboCount)", "parent": 316, "children": [319, 321], "start_point": {"row": 74, "column": 14}, "end_point": {"row": 74, "column": 51}}, {"id": 319, "type": "string_literal", "text": "\"Combo count: (%d)\\n\"", "parent": 318, "children": [320], "start_point": {"row": 74, "column": 15}, "end_point": {"row": 74, "column": 36}}, {"id": 320, "type": "escape_sequence", "text": "\\n", "parent": 319, "children": [], "start_point": {"row": 74, "column": 33}, "end_point": {"row": 74, "column": 35}}, {"id": 321, "type": "identifier", "text": "g_comboCount", "parent": 318, "children": [], "start_point": {"row": 74, "column": 38}, "end_point": {"row": 74, "column": 50}}, {"id": 322, "type": "if_statement", "text": "if (g_comboCount > 0)\n {\n if (g_comboArray)\n {\n free(g_comboArray);\n g_comboArray = NULL;\n }\n g_comboArray = (dfo_combo_test*)malloc(sizeof(dfo_combo_test)*g_comboCount);\n }", "parent": 300, "children": [323], "start_point": {"row": 76, "column": 8}, "end_point": {"row": 84, "column": 9}}, {"id": 323, "type": "parenthesized_expression", "text": "(g_comboCount > 0)", "parent": 322, "children": [324], "start_point": {"row": 76, "column": 11}, "end_point": {"row": 76, "column": 29}}, {"id": 324, "type": "binary_expression", "text": "g_comboCount > 0", "parent": 323, "children": [325, 326, 327], "start_point": {"row": 76, "column": 12}, "end_point": {"row": 76, "column": 28}}, {"id": 325, "type": "identifier", "text": "g_comboCount", "parent": 324, "children": [], "start_point": {"row": 76, "column": 12}, "end_point": {"row": 76, "column": 24}}, {"id": 326, "type": ">", "text": ">", "parent": 324, "children": [], "start_point": {"row": 76, "column": 25}, "end_point": {"row": 76, "column": 26}}, {"id": 327, "type": "number_literal", "text": "0", "parent": 324, "children": [], "start_point": {"row": 76, "column": 27}, "end_point": {"row": 76, "column": 28}}, {"id": 328, "type": "if_statement", "text": "if (g_comboArray)\n {\n free(g_comboArray);\n g_comboArray = NULL;\n }", "parent": 322, "children": [329], "start_point": {"row": 78, "column": 12}, "end_point": {"row": 82, "column": 13}}, {"id": 329, "type": "parenthesized_expression", "text": "(g_comboArray)", "parent": 328, "children": [330], "start_point": {"row": 78, "column": 15}, "end_point": {"row": 78, "column": 29}}, {"id": 330, "type": "identifier", "text": "g_comboArray", "parent": 329, "children": [], "start_point": {"row": 78, "column": 16}, "end_point": {"row": 78, "column": 28}}, {"id": 331, "type": "call_expression", "text": "free(g_comboArray)", "parent": 328, "children": [332, 333], "start_point": {"row": 80, "column": 16}, "end_point": {"row": 80, "column": 34}}, {"id": 332, "type": "identifier", "text": "free", "parent": 331, "children": [], "start_point": {"row": 80, "column": 16}, "end_point": {"row": 80, "column": 20}}, {"id": 333, "type": "argument_list", "text": "(g_comboArray)", "parent": 331, "children": [334], "start_point": {"row": 80, "column": 20}, "end_point": {"row": 80, "column": 34}}, {"id": 334, "type": "identifier", "text": "g_comboArray", "parent": 333, "children": [], "start_point": {"row": 80, "column": 21}, "end_point": {"row": 80, "column": 33}}, {"id": 335, "type": "assignment_expression", "text": "g_comboArray = NULL", "parent": 328, "children": [336, 337, 338], "start_point": {"row": 81, "column": 16}, "end_point": {"row": 81, "column": 35}}, {"id": 336, "type": "identifier", "text": "g_comboArray", "parent": 335, "children": [], "start_point": {"row": 81, "column": 16}, "end_point": {"row": 81, "column": 28}}, {"id": 337, "type": "=", "text": "=", "parent": 335, "children": [], "start_point": {"row": 81, "column": 29}, "end_point": {"row": 81, "column": 30}}, {"id": 338, "type": "null", "text": "NULL", "parent": 335, "children": [339], "start_point": {"row": 81, "column": 31}, "end_point": {"row": 81, "column": 35}}, {"id": 339, "type": "NULL", "text": "NULL", "parent": 338, "children": [], "start_point": {"row": 81, "column": 31}, "end_point": {"row": 81, "column": 35}}, {"id": 340, "type": "assignment_expression", "text": "g_comboArray = (dfo_combo_test*)malloc(sizeof(dfo_combo_test)*g_comboCount)", "parent": 322, "children": [341, 342, 343], "start_point": {"row": 83, "column": 12}, "end_point": {"row": 83, "column": 87}}, {"id": 341, "type": "identifier", "text": "g_comboArray", "parent": 340, "children": [], "start_point": {"row": 83, "column": 12}, "end_point": {"row": 83, "column": 24}}, {"id": 342, "type": "=", "text": "=", "parent": 340, "children": [], "start_point": {"row": 83, "column": 25}, "end_point": {"row": 83, "column": 26}}, {"id": 343, "type": "cast_expression", "text": "(dfo_combo_test*)malloc(sizeof(dfo_combo_test)*g_comboCount)", "parent": 340, "children": [344, 348], "start_point": {"row": 83, "column": 27}, "end_point": {"row": 83, "column": 87}}, {"id": 344, "type": "type_descriptor", "text": "dfo_combo_test*", "parent": 343, "children": [345, 346], "start_point": {"row": 83, "column": 28}, "end_point": {"row": 83, "column": 43}}, {"id": 345, "type": "type_identifier", "text": "dfo_combo_test", "parent": 344, "children": [], "start_point": {"row": 83, "column": 28}, "end_point": {"row": 83, "column": 42}}, {"id": 346, "type": "abstract_pointer_declarator", "text": "*", "parent": 344, "children": [347], "start_point": {"row": 83, "column": 42}, "end_point": {"row": 83, "column": 43}}, {"id": 347, "type": "*", "text": "*", "parent": 346, "children": [], "start_point": {"row": 83, "column": 42}, "end_point": {"row": 83, "column": 43}}, {"id": 348, "type": "call_expression", "text": "malloc(sizeof(dfo_combo_test)*g_comboCount)", "parent": 343, "children": [349, 350], "start_point": {"row": 83, "column": 44}, "end_point": {"row": 83, "column": 87}}, {"id": 349, "type": "identifier", "text": "malloc", "parent": 348, "children": [], "start_point": {"row": 83, "column": 44}, "end_point": {"row": 83, "column": 50}}, {"id": 350, "type": "argument_list", "text": "(sizeof(dfo_combo_test)*g_comboCount)", "parent": 348, "children": [351], "start_point": {"row": 83, "column": 50}, "end_point": {"row": 83, "column": 87}}, {"id": 351, "type": "binary_expression", "text": "sizeof(dfo_combo_test)*g_comboCount", "parent": 350, "children": [352, 355, 356], "start_point": {"row": 83, "column": 51}, "end_point": {"row": 83, "column": 86}}, {"id": 352, "type": "sizeof_expression", "text": "sizeof(dfo_combo_test)", "parent": 351, "children": [353], "start_point": {"row": 83, "column": 51}, "end_point": {"row": 83, "column": 73}}, {"id": 353, "type": "parenthesized_expression", "text": "(dfo_combo_test)", "parent": 352, "children": [354], "start_point": {"row": 83, "column": 57}, "end_point": {"row": 83, "column": 73}}, {"id": 354, "type": "identifier", "text": "dfo_combo_test", "parent": 353, "children": [], "start_point": {"row": 83, "column": 58}, "end_point": {"row": 83, "column": 72}}, {"id": 355, "type": "*", "text": "*", "parent": 351, "children": [], "start_point": {"row": 83, "column": 73}, "end_point": {"row": 83, "column": 74}}, {"id": 356, "type": "identifier", "text": "g_comboCount", "parent": 351, "children": [], "start_point": {"row": 83, "column": 74}, "end_point": {"row": 83, "column": 86}}, {"id": 357, "type": "else_clause", "text": "else if (op == DFO_OP_COMBO_READ)\n {\n printf(\"Combo Read(%d) name: (%s) mode count: (%d)\\n\", g_curCombo,\n cnf->result.combo_read_cnf.name, cnf->result.combo_read_cnf.modeCount);\n strcpy(g_comboArray[g_curCombo].name, cnf->result.combo_read_cnf.name);\n g_comboArray[g_curCombo].modeCount = cnf->result.combo_read_cnf.modeCount;\n g_comboArray[g_curCombo].modeArray = (dfo_combo_mode_test*)malloc(sizeof(dfo_combo_mode_test)*g_comboArray[g_curCombo].modeCount);\n }\n else if (op == DFO_OP_COMBO_MODE)\n {\n printf(\"Combo(%d) Mode(%d) name: (%s)\\n\", g_curCombo, g_curComboMode, cnf->result.combo_mode_cnf.name);\n strcpy(g_comboArray[g_curCombo].modeArray[g_curComboMode].name, cnf->result.combo_mode_cnf.name);\n }\n else if (op == DFO_OP_COMBO_UPDATE)\n {\n }\n else\n {\n printf(\"Wrong DFO OP: (%d)\\n\", op);\n }", "parent": 300, "children": [358], "start_point": {"row": 86, "column": 4}, "end_point": {"row": 105, "column": 5}}, {"id": 358, "type": "if_statement", "text": "if (op == DFO_OP_COMBO_READ)\n {\n printf(\"Combo Read(%d) name: (%s) mode count: (%d)\\n\", g_curCombo,\n cnf->result.combo_read_cnf.name, cnf->result.combo_read_cnf.modeCount);\n strcpy(g_comboArray[g_curCombo].name, cnf->result.combo_read_cnf.name);\n g_comboArray[g_curCombo].modeCount = cnf->result.combo_read_cnf.modeCount;\n g_comboArray[g_curCombo].modeArray = (dfo_combo_mode_test*)malloc(sizeof(dfo_combo_mode_test)*g_comboArray[g_curCombo].modeCount);\n }\n else if (op == DFO_OP_COMBO_MODE)\n {\n printf(\"Combo(%d) Mode(%d) name: (%s)\\n\", g_curCombo, g_curComboMode, cnf->result.combo_mode_cnf.name);\n strcpy(g_comboArray[g_curCombo].modeArray[g_curComboMode].name, cnf->result.combo_mode_cnf.name);\n }\n else if (op == DFO_OP_COMBO_UPDATE)\n {\n }\n else\n {\n printf(\"Wrong DFO OP: (%d)\\n\", op);\n }", "parent": 357, "children": [359, 438], "start_point": {"row": 86, "column": 9}, "end_point": {"row": 105, "column": 5}}, {"id": 359, "type": "parenthesized_expression", "text": "(op == DFO_OP_COMBO_READ)", "parent": 358, "children": [360], "start_point": {"row": 86, "column": 12}, "end_point": {"row": 86, "column": 37}}, {"id": 360, "type": "binary_expression", "text": "op == DFO_OP_COMBO_READ", "parent": 359, "children": [361, 362, 363], "start_point": {"row": 86, "column": 13}, "end_point": {"row": 86, "column": 36}}, {"id": 361, "type": "identifier", "text": "op", "parent": 360, "children": [], "start_point": {"row": 86, "column": 13}, "end_point": {"row": 86, "column": 15}}, {"id": 362, "type": "==", "text": "==", "parent": 360, "children": [], "start_point": {"row": 86, "column": 16}, "end_point": {"row": 86, "column": 18}}, {"id": 363, "type": "identifier", "text": "DFO_OP_COMBO_READ", "parent": 360, "children": [], "start_point": {"row": 86, "column": 19}, "end_point": {"row": 86, "column": 36}}, {"id": 364, "type": "call_expression", "text": "printf(\"Combo Read(%d) name: (%s) mode count: (%d)\\n\", g_curCombo,\n cnf->result.combo_read_cnf.name, cnf->result.combo_read_cnf.modeCount)", "parent": 358, "children": [365, 366], "start_point": {"row": 88, "column": 8}, "end_point": {"row": 89, "column": 83}}, {"id": 365, "type": "identifier", "text": "printf", "parent": 364, "children": [], "start_point": {"row": 88, "column": 8}, "end_point": {"row": 88, "column": 14}}, {"id": 366, "type": "argument_list", "text": "(\"Combo Read(%d) name: (%s) mode count: (%d)\\n\", g_curCombo,\n cnf->result.combo_read_cnf.name, cnf->result.combo_read_cnf.modeCount)", "parent": 364, "children": [367, 369, 370, 377], "start_point": {"row": 88, "column": 14}, "end_point": {"row": 89, "column": 83}}, {"id": 367, "type": "string_literal", "text": "\"Combo Read(%d) name: (%s) mode count: (%d)\\n\"", "parent": 366, "children": [368], "start_point": {"row": 88, "column": 15}, "end_point": {"row": 88, "column": 61}}, {"id": 368, "type": "escape_sequence", "text": "\\n", "parent": 367, "children": [], "start_point": {"row": 88, "column": 58}, "end_point": {"row": 88, "column": 60}}, {"id": 369, "type": "identifier", "text": "g_curCombo", "parent": 366, "children": [], "start_point": {"row": 88, "column": 63}, "end_point": {"row": 88, "column": 73}}, {"id": 370, "type": "field_expression", "text": "cnf->result.combo_read_cnf.name", "parent": 366, "children": [371, 376], "start_point": {"row": 89, "column": 13}, "end_point": {"row": 89, "column": 44}}, {"id": 371, "type": "field_expression", "text": "cnf->result.combo_read_cnf", "parent": 370, "children": [372, 375], "start_point": {"row": 89, "column": 13}, "end_point": {"row": 89, "column": 39}}, {"id": 372, "type": "field_expression", "text": "cnf->result", "parent": 371, "children": [373, 374], "start_point": {"row": 89, "column": 13}, "end_point": {"row": 89, "column": 24}}, {"id": 373, "type": "identifier", "text": "cnf", "parent": 372, "children": [], "start_point": {"row": 89, "column": 13}, "end_point": {"row": 89, "column": 16}}, {"id": 374, "type": "field_identifier", "text": "result", "parent": 372, "children": [], "start_point": {"row": 89, "column": 18}, "end_point": {"row": 89, "column": 24}}, {"id": 375, "type": "field_identifier", "text": "combo_read_cnf", "parent": 371, "children": [], "start_point": {"row": 89, "column": 25}, "end_point": {"row": 89, "column": 39}}, {"id": 376, "type": "field_identifier", "text": "name", "parent": 370, "children": [], "start_point": {"row": 89, "column": 40}, "end_point": {"row": 89, "column": 44}}, {"id": 377, "type": "field_expression", "text": "cnf->result.combo_read_cnf.modeCount", "parent": 366, "children": [378, 383], "start_point": {"row": 89, "column": 46}, "end_point": {"row": 89, "column": 82}}, {"id": 378, "type": "field_expression", "text": "cnf->result.combo_read_cnf", "parent": 377, "children": [379, 382], "start_point": {"row": 89, "column": 46}, "end_point": {"row": 89, "column": 72}}, {"id": 379, "type": "field_expression", "text": "cnf->result", "parent": 378, "children": [380, 381], "start_point": {"row": 89, "column": 46}, "end_point": {"row": 89, "column": 57}}, {"id": 380, "type": "identifier", "text": "cnf", "parent": 379, "children": [], "start_point": {"row": 89, "column": 46}, "end_point": {"row": 89, "column": 49}}, {"id": 381, "type": "field_identifier", "text": "result", "parent": 379, "children": [], "start_point": {"row": 89, "column": 51}, "end_point": {"row": 89, "column": 57}}, {"id": 382, "type": "field_identifier", "text": "combo_read_cnf", "parent": 378, "children": [], "start_point": {"row": 89, "column": 58}, "end_point": {"row": 89, "column": 72}}, {"id": 383, "type": "field_identifier", "text": "modeCount", "parent": 377, "children": [], "start_point": {"row": 89, "column": 73}, "end_point": {"row": 89, "column": 82}}, {"id": 384, "type": "call_expression", "text": "strcpy(g_comboArray[g_curCombo].name, cnf->result.combo_read_cnf.name)", "parent": 358, "children": [385, 386], "start_point": {"row": 90, "column": 8}, "end_point": {"row": 90, "column": 78}}, {"id": 385, "type": "identifier", "text": "strcpy", "parent": 384, "children": [], "start_point": {"row": 90, "column": 8}, "end_point": {"row": 90, "column": 14}}, {"id": 386, "type": "argument_list", "text": "(g_comboArray[g_curCombo].name, cnf->result.combo_read_cnf.name)", "parent": 384, "children": [387, 392], "start_point": {"row": 90, "column": 14}, "end_point": {"row": 90, "column": 78}}, {"id": 387, "type": "field_expression", "text": "g_comboArray[g_curCombo].name", "parent": 386, "children": [388, 391], "start_point": {"row": 90, "column": 15}, "end_point": {"row": 90, "column": 44}}, {"id": 388, "type": "subscript_expression", "text": "g_comboArray[g_curCombo]", "parent": 387, "children": [389, 390], "start_point": {"row": 90, "column": 15}, "end_point": {"row": 90, "column": 39}}, {"id": 389, "type": "identifier", "text": "g_comboArray", "parent": 388, "children": [], "start_point": {"row": 90, "column": 15}, "end_point": {"row": 90, "column": 27}}, {"id": 390, "type": "identifier", "text": "g_curCombo", "parent": 388, "children": [], "start_point": {"row": 90, "column": 28}, "end_point": {"row": 90, "column": 38}}, {"id": 391, "type": "field_identifier", "text": "name", "parent": 387, "children": [], "start_point": {"row": 90, "column": 40}, "end_point": {"row": 90, "column": 44}}, {"id": 392, "type": "field_expression", "text": "cnf->result.combo_read_cnf.name", "parent": 386, "children": [393, 398], "start_point": {"row": 90, "column": 46}, "end_point": {"row": 90, "column": 77}}, {"id": 393, "type": "field_expression", "text": "cnf->result.combo_read_cnf", "parent": 392, "children": [394, 397], "start_point": {"row": 90, "column": 46}, "end_point": {"row": 90, "column": 72}}, {"id": 394, "type": "field_expression", "text": "cnf->result", "parent": 393, "children": [395, 396], "start_point": {"row": 90, "column": 46}, "end_point": {"row": 90, "column": 57}}, {"id": 395, "type": "identifier", "text": "cnf", "parent": 394, "children": [], "start_point": {"row": 90, "column": 46}, "end_point": {"row": 90, "column": 49}}, {"id": 396, "type": "field_identifier", "text": "result", "parent": 394, "children": [], "start_point": {"row": 90, "column": 51}, "end_point": {"row": 90, "column": 57}}, {"id": 397, "type": "field_identifier", "text": "combo_read_cnf", "parent": 393, "children": [], "start_point": {"row": 90, "column": 58}, "end_point": {"row": 90, "column": 72}}, {"id": 398, "type": "field_identifier", "text": "name", "parent": 392, "children": [], "start_point": {"row": 90, "column": 73}, "end_point": {"row": 90, "column": 77}}, {"id": 399, "type": "assignment_expression", "text": "g_comboArray[g_curCombo].modeCount = cnf->result.combo_read_cnf.modeCount", "parent": 358, "children": [400, 405, 406], "start_point": {"row": 91, "column": 8}, "end_point": {"row": 91, "column": 81}}, {"id": 400, "type": "field_expression", "text": "g_comboArray[g_curCombo].modeCount", "parent": 399, "children": [401, 404], "start_point": {"row": 91, "column": 8}, "end_point": {"row": 91, "column": 42}}, {"id": 401, "type": "subscript_expression", "text": "g_comboArray[g_curCombo]", "parent": 400, "children": [402, 403], "start_point": {"row": 91, "column": 8}, "end_point": {"row": 91, "column": 32}}, {"id": 402, "type": "identifier", "text": "g_comboArray", "parent": 401, "children": [], "start_point": {"row": 91, "column": 8}, "end_point": {"row": 91, "column": 20}}, {"id": 403, "type": "identifier", "text": "g_curCombo", "parent": 401, "children": [], "start_point": {"row": 91, "column": 21}, "end_point": {"row": 91, "column": 31}}, {"id": 404, "type": "field_identifier", "text": "modeCount", "parent": 400, "children": [], "start_point": {"row": 91, "column": 33}, "end_point": {"row": 91, "column": 42}}, {"id": 405, "type": "=", "text": "=", "parent": 399, "children": [], "start_point": {"row": 91, "column": 43}, "end_point": {"row": 91, "column": 44}}, {"id": 406, "type": "field_expression", "text": "cnf->result.combo_read_cnf.modeCount", "parent": 399, "children": [407, 412], "start_point": {"row": 91, "column": 45}, "end_point": {"row": 91, "column": 81}}, {"id": 407, "type": "field_expression", "text": "cnf->result.combo_read_cnf", "parent": 406, "children": [408, 411], "start_point": {"row": 91, "column": 45}, "end_point": {"row": 91, "column": 71}}, {"id": 408, "type": "field_expression", "text": "cnf->result", "parent": 407, "children": [409, 410], "start_point": {"row": 91, "column": 45}, "end_point": {"row": 91, "column": 56}}, {"id": 409, "type": "identifier", "text": "cnf", "parent": 408, "children": [], "start_point": {"row": 91, "column": 45}, "end_point": {"row": 91, "column": 48}}, {"id": 410, "type": "field_identifier", "text": "result", "parent": 408, "children": [], "start_point": {"row": 91, "column": 50}, "end_point": {"row": 91, "column": 56}}, {"id": 411, "type": "field_identifier", "text": "combo_read_cnf", "parent": 407, "children": [], "start_point": {"row": 91, "column": 57}, "end_point": {"row": 91, "column": 71}}, {"id": 412, "type": "field_identifier", "text": "modeCount", "parent": 406, "children": [], "start_point": {"row": 91, "column": 72}, "end_point": {"row": 91, "column": 81}}, {"id": 413, "type": "assignment_expression", "text": "g_comboArray[g_curCombo].modeArray = (dfo_combo_mode_test*)malloc(sizeof(dfo_combo_mode_test)*g_comboArray[g_curCombo].modeCount)", "parent": 358, "children": [414, 419, 420], "start_point": {"row": 92, "column": 8}, "end_point": {"row": 92, "column": 137}}, {"id": 414, "type": "field_expression", "text": "g_comboArray[g_curCombo].modeArray", "parent": 413, "children": [415, 418], "start_point": {"row": 92, "column": 8}, "end_point": {"row": 92, "column": 42}}, {"id": 415, "type": "subscript_expression", "text": "g_comboArray[g_curCombo]", "parent": 414, "children": [416, 417], "start_point": {"row": 92, "column": 8}, "end_point": {"row": 92, "column": 32}}, {"id": 416, "type": "identifier", "text": "g_comboArray", "parent": 415, "children": [], "start_point": {"row": 92, "column": 8}, "end_point": {"row": 92, "column": 20}}, {"id": 417, "type": "identifier", "text": "g_curCombo", "parent": 415, "children": [], "start_point": {"row": 92, "column": 21}, "end_point": {"row": 92, "column": 31}}, {"id": 418, "type": "field_identifier", "text": "modeArray", "parent": 414, "children": [], "start_point": {"row": 92, "column": 33}, "end_point": {"row": 92, "column": 42}}, {"id": 419, "type": "=", "text": "=", "parent": 413, "children": [], "start_point": {"row": 92, "column": 43}, "end_point": {"row": 92, "column": 44}}, {"id": 420, "type": "cast_expression", "text": "(dfo_combo_mode_test*)malloc(sizeof(dfo_combo_mode_test)*g_comboArray[g_curCombo].modeCount)", "parent": 413, "children": [421, 425], "start_point": {"row": 92, "column": 45}, "end_point": {"row": 92, "column": 137}}, {"id": 421, "type": "type_descriptor", "text": "dfo_combo_mode_test*", "parent": 420, "children": [422, 423], "start_point": {"row": 92, "column": 46}, "end_point": {"row": 92, "column": 66}}, {"id": 422, "type": "type_identifier", "text": "dfo_combo_mode_test", "parent": 421, "children": [], "start_point": {"row": 92, "column": 46}, "end_point": {"row": 92, "column": 65}}, {"id": 423, "type": "abstract_pointer_declarator", "text": "*", "parent": 421, "children": [424], "start_point": {"row": 92, "column": 65}, "end_point": {"row": 92, "column": 66}}, {"id": 424, "type": "*", "text": "*", "parent": 423, "children": [], "start_point": {"row": 92, "column": 65}, "end_point": {"row": 92, "column": 66}}, {"id": 425, "type": "call_expression", "text": "malloc(sizeof(dfo_combo_mode_test)*g_comboArray[g_curCombo].modeCount)", "parent": 420, "children": [426, 427], "start_point": {"row": 92, "column": 67}, "end_point": {"row": 92, "column": 137}}, {"id": 426, "type": "identifier", "text": "malloc", "parent": 425, "children": [], "start_point": {"row": 92, "column": 67}, "end_point": {"row": 92, "column": 73}}, {"id": 427, "type": "argument_list", "text": "(sizeof(dfo_combo_mode_test)*g_comboArray[g_curCombo].modeCount)", "parent": 425, "children": [428], "start_point": {"row": 92, "column": 73}, "end_point": {"row": 92, "column": 137}}, {"id": 428, "type": "binary_expression", "text": "sizeof(dfo_combo_mode_test)*g_comboArray[g_curCombo].modeCount", "parent": 427, "children": [429, 432, 433], "start_point": {"row": 92, "column": 74}, "end_point": {"row": 92, "column": 136}}, {"id": 429, "type": "sizeof_expression", "text": "sizeof(dfo_combo_mode_test)", "parent": 428, "children": [430], "start_point": {"row": 92, "column": 74}, "end_point": {"row": 92, "column": 101}}, {"id": 430, "type": "parenthesized_expression", "text": "(dfo_combo_mode_test)", "parent": 429, "children": [431], "start_point": {"row": 92, "column": 80}, "end_point": {"row": 92, "column": 101}}, {"id": 431, "type": "identifier", "text": "dfo_combo_mode_test", "parent": 430, "children": [], "start_point": {"row": 92, "column": 81}, "end_point": {"row": 92, "column": 100}}, {"id": 432, "type": "*", "text": "*", "parent": 428, "children": [], "start_point": {"row": 92, "column": 101}, "end_point": {"row": 92, "column": 102}}, {"id": 433, "type": "field_expression", "text": "g_comboArray[g_curCombo].modeCount", "parent": 428, "children": [434, 437], "start_point": {"row": 92, "column": 102}, "end_point": {"row": 92, "column": 136}}, {"id": 434, "type": "subscript_expression", "text": "g_comboArray[g_curCombo]", "parent": 433, "children": [435, 436], "start_point": {"row": 92, "column": 102}, "end_point": {"row": 92, "column": 126}}, {"id": 435, "type": "identifier", "text": "g_comboArray", "parent": 434, "children": [], "start_point": {"row": 92, "column": 102}, "end_point": {"row": 92, "column": 114}}, {"id": 436, "type": "identifier", "text": "g_curCombo", "parent": 434, "children": [], "start_point": {"row": 92, "column": 115}, "end_point": {"row": 92, "column": 125}}, {"id": 437, "type": "field_identifier", "text": "modeCount", "parent": 433, "children": [], "start_point": {"row": 92, "column": 127}, "end_point": {"row": 92, "column": 136}}, {"id": 438, "type": "else_clause", "text": "else if (op == DFO_OP_COMBO_MODE)\n {\n printf(\"Combo(%d) Mode(%d) name: (%s)\\n\", g_curCombo, g_curComboMode, cnf->result.combo_mode_cnf.name);\n strcpy(g_comboArray[g_curCombo].modeArray[g_curComboMode].name, cnf->result.combo_mode_cnf.name);\n }\n else if (op == DFO_OP_COMBO_UPDATE)\n {\n }\n else\n {\n printf(\"Wrong DFO OP: (%d)\\n\", op);\n }", "parent": 358, "children": [439], "start_point": {"row": 94, "column": 4}, "end_point": {"row": 105, "column": 5}}, {"id": 439, "type": "if_statement", "text": "if (op == DFO_OP_COMBO_MODE)\n {\n printf(\"Combo(%d) Mode(%d) name: (%s)\\n\", g_curCombo, g_curComboMode, cnf->result.combo_mode_cnf.name);\n strcpy(g_comboArray[g_curCombo].modeArray[g_curComboMode].name, cnf->result.combo_mode_cnf.name);\n }\n else if (op == DFO_OP_COMBO_UPDATE)\n {\n }\n else\n {\n printf(\"Wrong DFO OP: (%d)\\n\", op);\n }", "parent": 438, "children": [440, 478], "start_point": {"row": 94, "column": 9}, "end_point": {"row": 105, "column": 5}}, {"id": 440, "type": "parenthesized_expression", "text": "(op == DFO_OP_COMBO_MODE)", "parent": 439, "children": [441], "start_point": {"row": 94, "column": 12}, "end_point": {"row": 94, "column": 37}}, {"id": 441, "type": "binary_expression", "text": "op == DFO_OP_COMBO_MODE", "parent": 440, "children": [442, 443, 444], "start_point": {"row": 94, "column": 13}, "end_point": {"row": 94, "column": 36}}, {"id": 442, "type": "identifier", "text": "op", "parent": 441, "children": [], "start_point": {"row": 94, "column": 13}, "end_point": {"row": 94, "column": 15}}, {"id": 443, "type": "==", "text": "==", "parent": 441, "children": [], "start_point": {"row": 94, "column": 16}, "end_point": {"row": 94, "column": 18}}, {"id": 444, "type": "identifier", "text": "DFO_OP_COMBO_MODE", "parent": 441, "children": [], "start_point": {"row": 94, "column": 19}, "end_point": {"row": 94, "column": 36}}, {"id": 445, "type": "call_expression", "text": "printf(\"Combo(%d) Mode(%d) name: (%s)\\n\", g_curCombo, g_curComboMode, cnf->result.combo_mode_cnf.name)", "parent": 439, "children": [446, 447], "start_point": {"row": 96, "column": 8}, "end_point": {"row": 96, "column": 110}}, {"id": 446, "type": "identifier", "text": "printf", "parent": 445, "children": [], "start_point": {"row": 96, "column": 8}, "end_point": {"row": 96, "column": 14}}, {"id": 447, "type": "argument_list", "text": "(\"Combo(%d) Mode(%d) name: (%s)\\n\", g_curCombo, g_curComboMode, cnf->result.combo_mode_cnf.name)", "parent": 445, "children": [448, 450, 451, 452], "start_point": {"row": 96, "column": 14}, "end_point": {"row": 96, "column": 110}}, {"id": 448, "type": "string_literal", "text": "\"Combo(%d) Mode(%d) name: (%s)\\n\"", "parent": 447, "children": [449], "start_point": {"row": 96, "column": 15}, "end_point": {"row": 96, "column": 48}}, {"id": 449, "type": "escape_sequence", "text": "\\n", "parent": 448, "children": [], "start_point": {"row": 96, "column": 45}, "end_point": {"row": 96, "column": 47}}, {"id": 450, "type": "identifier", "text": "g_curCombo", "parent": 447, "children": [], "start_point": {"row": 96, "column": 50}, "end_point": {"row": 96, "column": 60}}, {"id": 451, "type": "identifier", "text": "g_curComboMode", "parent": 447, "children": [], "start_point": {"row": 96, "column": 62}, "end_point": {"row": 96, "column": 76}}, {"id": 452, "type": "field_expression", "text": "cnf->result.combo_mode_cnf.name", "parent": 447, "children": [453, 458], "start_point": {"row": 96, "column": 78}, "end_point": {"row": 96, "column": 109}}, {"id": 453, "type": "field_expression", "text": "cnf->result.combo_mode_cnf", "parent": 452, "children": [454, 457], "start_point": {"row": 96, "column": 78}, "end_point": {"row": 96, "column": 104}}, {"id": 454, "type": "field_expression", "text": "cnf->result", "parent": 453, "children": [455, 456], "start_point": {"row": 96, "column": 78}, "end_point": {"row": 96, "column": 89}}, {"id": 455, "type": "identifier", "text": "cnf", "parent": 454, "children": [], "start_point": {"row": 96, "column": 78}, "end_point": {"row": 96, "column": 81}}, {"id": 456, "type": "field_identifier", "text": "result", "parent": 454, "children": [], "start_point": {"row": 96, "column": 83}, "end_point": {"row": 96, "column": 89}}, {"id": 457, "type": "field_identifier", "text": "combo_mode_cnf", "parent": 453, "children": [], "start_point": {"row": 96, "column": 90}, "end_point": {"row": 96, "column": 104}}, {"id": 458, "type": "field_identifier", "text": "name", "parent": 452, "children": [], "start_point": {"row": 96, "column": 105}, "end_point": {"row": 96, "column": 109}}, {"id": 459, "type": "call_expression", "text": "strcpy(g_comboArray[g_curCombo].modeArray[g_curComboMode].name, cnf->result.combo_mode_cnf.name)", "parent": 439, "children": [460, 461], "start_point": {"row": 97, "column": 8}, "end_point": {"row": 97, "column": 104}}, {"id": 460, "type": "identifier", "text": "strcpy", "parent": 459, "children": [], "start_point": {"row": 97, "column": 8}, "end_point": {"row": 97, "column": 14}}, {"id": 461, "type": "argument_list", "text": "(g_comboArray[g_curCombo].modeArray[g_curComboMode].name, cnf->result.combo_mode_cnf.name)", "parent": 459, "children": [462, 471], "start_point": {"row": 97, "column": 14}, "end_point": {"row": 97, "column": 104}}, {"id": 462, "type": "field_expression", "text": "g_comboArray[g_curCombo].modeArray[g_curComboMode].name", "parent": 461, "children": [463, 470], "start_point": {"row": 97, "column": 15}, "end_point": {"row": 97, "column": 70}}, {"id": 463, "type": "subscript_expression", "text": "g_comboArray[g_curCombo].modeArray[g_curComboMode]", "parent": 462, "children": [464, 469], "start_point": {"row": 97, "column": 15}, "end_point": {"row": 97, "column": 65}}, {"id": 464, "type": "field_expression", "text": "g_comboArray[g_curCombo].modeArray", "parent": 463, "children": [465, 468], "start_point": {"row": 97, "column": 15}, "end_point": {"row": 97, "column": 49}}, {"id": 465, "type": "subscript_expression", "text": "g_comboArray[g_curCombo]", "parent": 464, "children": [466, 467], "start_point": {"row": 97, "column": 15}, "end_point": {"row": 97, "column": 39}}, {"id": 466, "type": "identifier", "text": "g_comboArray", "parent": 465, "children": [], "start_point": {"row": 97, "column": 15}, "end_point": {"row": 97, "column": 27}}, {"id": 467, "type": "identifier", "text": "g_curCombo", "parent": 465, "children": [], "start_point": {"row": 97, "column": 28}, "end_point": {"row": 97, "column": 38}}, {"id": 468, "type": "field_identifier", "text": "modeArray", "parent": 464, "children": [], "start_point": {"row": 97, "column": 40}, "end_point": {"row": 97, "column": 49}}, {"id": 469, "type": "identifier", "text": "g_curComboMode", "parent": 463, "children": [], "start_point": {"row": 97, "column": 50}, "end_point": {"row": 97, "column": 64}}, {"id": 470, "type": "field_identifier", "text": "name", "parent": 462, "children": [], "start_point": {"row": 97, "column": 66}, "end_point": {"row": 97, "column": 70}}, {"id": 471, "type": "field_expression", "text": "cnf->result.combo_mode_cnf.name", "parent": 461, "children": [472, 477], "start_point": {"row": 97, "column": 72}, "end_point": {"row": 97, "column": 103}}, {"id": 472, "type": "field_expression", "text": "cnf->result.combo_mode_cnf", "parent": 471, "children": [473, 476], "start_point": {"row": 97, "column": 72}, "end_point": {"row": 97, "column": 98}}, {"id": 473, "type": "field_expression", "text": "cnf->result", "parent": 472, "children": [474, 475], "start_point": {"row": 97, "column": 72}, "end_point": {"row": 97, "column": 83}}, {"id": 474, "type": "identifier", "text": "cnf", "parent": 473, "children": [], "start_point": {"row": 97, "column": 72}, "end_point": {"row": 97, "column": 75}}, {"id": 475, "type": "field_identifier", "text": "result", "parent": 473, "children": [], "start_point": {"row": 97, "column": 77}, "end_point": {"row": 97, "column": 83}}, {"id": 476, "type": "field_identifier", "text": "combo_mode_cnf", "parent": 472, "children": [], "start_point": {"row": 97, "column": 84}, "end_point": {"row": 97, "column": 98}}, {"id": 477, "type": "field_identifier", "text": "name", "parent": 471, "children": [], "start_point": {"row": 97, "column": 99}, "end_point": {"row": 97, "column": 103}}, {"id": 478, "type": "else_clause", "text": "else if (op == DFO_OP_COMBO_UPDATE)\n {\n }\n else\n {\n printf(\"Wrong DFO OP: (%d)\\n\", op);\n }", "parent": 439, "children": [479], "start_point": {"row": 99, "column": 4}, "end_point": {"row": 105, "column": 5}}, {"id": 479, "type": "if_statement", "text": "if (op == DFO_OP_COMBO_UPDATE)\n {\n }\n else\n {\n printf(\"Wrong DFO OP: (%d)\\n\", op);\n }", "parent": 478, "children": [480, 485], "start_point": {"row": 99, "column": 9}, "end_point": {"row": 105, "column": 5}}, {"id": 480, "type": "parenthesized_expression", "text": "(op == DFO_OP_COMBO_UPDATE)", "parent": 479, "children": [481], "start_point": {"row": 99, "column": 12}, "end_point": {"row": 99, "column": 39}}, {"id": 481, "type": "binary_expression", "text": "op == DFO_OP_COMBO_UPDATE", "parent": 480, "children": [482, 483, 484], "start_point": {"row": 99, "column": 13}, "end_point": {"row": 99, "column": 38}}, {"id": 482, "type": "identifier", "text": "op", "parent": 481, "children": [], "start_point": {"row": 99, "column": 13}, "end_point": {"row": 99, "column": 15}}, {"id": 483, "type": "==", "text": "==", "parent": 481, "children": [], "start_point": {"row": 99, "column": 16}, "end_point": {"row": 99, "column": 18}}, {"id": 484, "type": "identifier", "text": "DFO_OP_COMBO_UPDATE", "parent": 481, "children": [], "start_point": {"row": 99, "column": 19}, "end_point": {"row": 99, "column": 38}}, {"id": 485, "type": "else_clause", "text": "else\n {\n printf(\"Wrong DFO OP: (%d)\\n\", op);\n }", "parent": 479, "children": [], "start_point": {"row": 102, "column": 4}, "end_point": {"row": 105, "column": 5}}, {"id": 486, "type": "call_expression", "text": "printf(\"Wrong DFO OP: (%d)\\n\", op)", "parent": 485, "children": [487, 488], "start_point": {"row": 104, "column": 8}, "end_point": {"row": 104, "column": 42}}, {"id": 487, "type": "identifier", "text": "printf", "parent": 486, "children": [], "start_point": {"row": 104, "column": 8}, "end_point": {"row": 104, "column": 14}}, {"id": 488, "type": "argument_list", "text": "(\"Wrong DFO OP: (%d)\\n\", op)", "parent": 486, "children": [489, 491], "start_point": {"row": 104, "column": 14}, "end_point": {"row": 104, "column": 42}}, {"id": 489, "type": "string_literal", "text": "\"Wrong DFO OP: (%d)\\n\"", "parent": 488, "children": [490], "start_point": {"row": 104, "column": 15}, "end_point": {"row": 104, "column": 37}}, {"id": 490, "type": "escape_sequence", "text": "\\n", "parent": 489, "children": [], "start_point": {"row": 104, "column": 34}, "end_point": {"row": 104, "column": 36}}, {"id": 491, "type": "identifier", "text": "op", "parent": 488, "children": [], "start_point": {"row": 104, "column": 39}, "end_point": {"row": 104, "column": 41}}, {"id": 492, "type": "function_definition", "text": "int main(int argc, const char** argv)\n{\n META_Dfo_SetCallback(dfo_callback);\n META_Dfo_Init();\n \n // test read count\n {\n FT_DFO_REQ req;\n memset(&req, 0, sizeof(FT_DFO_REQ));\n req.header.id = FT_DFO_REQ_ID;\n req.op = DFO_OP_READ_COUNT;\n META_Dfo_OP(&req);\n }\n \n // test read dfo\n {\n FT_DFO_REQ req;\n memset(&req, 0, sizeof(FT_DFO_REQ));\n req.header.id = FT_DFO_REQ_ID;\n req.op = DFO_OP_READ;\n \n int i = 0;\n for (; i < g_dfoCount; i++)\n {\n req.cmd.read_req.index = i;\n g_curIndex = i;\n META_Dfo_OP(&req);\n }\n }\n\n // test write dfo\n {\n FT_DFO_REQ req;\n memset(&req, 0, sizeof(FT_DFO_REQ));\n req.header.id = FT_DFO_REQ_ID;\n req.op = DFO_OP_WRITE;\n\n int i = 0;\n for (; i < g_dfoCount; i++)\n {\n printf(\"META Dfo write: (%s, %d)\\n\", g_dfoArray[i].name, 2);\n strcpy(req.cmd.write_req.name, g_dfoArray[i].name);\n req.cmd.write_req.partition = g_dfoArray[i].partition;\n if (g_dfoArray[i].partition == 0)\n req.cmd.write_req.value = 6;\n else\n req.cmd.write_req.value = 16;\n if (i == g_dfoCount - 1)\n {\n req.cmd.write_req.save = 1;\n }\n else\n {\n req.cmd.write_req.save = 0;\n }\n META_Dfo_OP(&req);\n }\n }\n \n // test read dfo combo count\n {\n FT_DFO_REQ req;\n memset(&req, 0, sizeof(FT_DFO_REQ));\n req.header.id = FT_DFO_REQ_ID;\n req.op = DFO_OP_COMBO_COUNT;\n META_Dfo_OP(&req);\n }\n \n // test read dfo combo\n {\n FT_DFO_REQ req;\n memset(&req, 0, sizeof(FT_DFO_REQ));\n req.header.id = FT_DFO_REQ_ID;\n req.op = DFO_OP_COMBO_READ;\n \n int i = 0;\n for (; i < g_comboCount; i++)\n {\n req.cmd.combo_read_req.index = i;\n g_curCombo = i;\n META_Dfo_OP(&req);\n \n // test read dfo combo mode\n FT_DFO_REQ req2;\n memset(&req2, 0, sizeof(FT_DFO_REQ));\n req2.header.id = FT_DFO_REQ_ID;\n req2.op = DFO_OP_COMBO_MODE;\n \n int j = 0;\n for (; j < g_comboArray[g_curCombo].modeCount; j++)\n {\n req2.cmd.combo_mode_req.index = i;\n req2.cmd.combo_mode_req.modeIndex = j;\n g_curComboMode = j;\n META_Dfo_OP(&req2);\n }\n }\n }\n \n // test write dfo combo\n {\n }\n\n META_Dfo_Deinit();\n META_Dfo_SetCallback(NULL);\n \n // TODO: free memory\n \n return 0;\n}", "parent": null, "children": [493, 494], "start_point": {"row": 108, "column": 0}, "end_point": {"row": 217, "column": 1}}, {"id": 493, "type": "primitive_type", "text": "int", "parent": 492, "children": [], "start_point": {"row": 108, "column": 0}, "end_point": {"row": 108, "column": 3}}, {"id": 494, "type": "function_declarator", "text": "main(int argc, const char** argv)", "parent": 492, "children": [495, 496], "start_point": {"row": 108, "column": 4}, "end_point": {"row": 108, "column": 37}}, {"id": 495, "type": "identifier", "text": "main", "parent": 494, "children": [], "start_point": {"row": 108, "column": 4}, "end_point": {"row": 108, "column": 8}}, {"id": 496, "type": "parameter_list", "text": "(int argc, const char** argv)", "parent": 494, "children": [497, 500], "start_point": {"row": 108, "column": 8}, "end_point": {"row": 108, "column": 37}}, {"id": 497, "type": "parameter_declaration", "text": "int argc", "parent": 496, "children": [498, 499], "start_point": {"row": 108, "column": 9}, "end_point": {"row": 108, "column": 17}}, {"id": 498, "type": "primitive_type", "text": "int", "parent": 497, "children": [], "start_point": {"row": 108, "column": 9}, "end_point": {"row": 108, "column": 12}}, {"id": 499, "type": "identifier", "text": "argc", "parent": 497, "children": [], "start_point": {"row": 108, "column": 13}, "end_point": {"row": 108, "column": 17}}, {"id": 500, "type": "parameter_declaration", "text": "const char** argv", "parent": 496, "children": [501, 502], "start_point": {"row": 108, "column": 19}, "end_point": {"row": 108, "column": 36}}, {"id": 501, "type": "primitive_type", "text": "char", "parent": 500, "children": [], "start_point": {"row": 108, "column": 25}, "end_point": {"row": 108, "column": 29}}, {"id": 502, "type": "pointer_declarator", "text": "** argv", "parent": 500, "children": [503, 504], "start_point": {"row": 108, "column": 29}, "end_point": {"row": 108, "column": 36}}, {"id": 503, "type": "*", "text": "*", "parent": 502, "children": [], "start_point": {"row": 108, "column": 29}, "end_point": {"row": 108, "column": 30}}, {"id": 504, "type": "pointer_declarator", "text": "* argv", "parent": 502, "children": [505, 506], "start_point": {"row": 108, "column": 30}, "end_point": {"row": 108, "column": 36}}, {"id": 505, "type": "*", "text": "*", "parent": 504, "children": [], "start_point": {"row": 108, "column": 30}, "end_point": {"row": 108, "column": 31}}, {"id": 506, "type": "identifier", "text": "argv", "parent": 504, "children": [], "start_point": {"row": 108, "column": 32}, "end_point": {"row": 108, "column": 36}}, {"id": 507, "type": "call_expression", "text": "META_Dfo_SetCallback(dfo_callback)", "parent": 492, "children": [508, 509], "start_point": {"row": 110, "column": 4}, "end_point": {"row": 110, "column": 38}}, {"id": 508, "type": "identifier", "text": "META_Dfo_SetCallback", "parent": 507, "children": [], "start_point": {"row": 110, "column": 4}, "end_point": {"row": 110, "column": 24}}, {"id": 509, "type": "argument_list", "text": "(dfo_callback)", "parent": 507, "children": [510], "start_point": {"row": 110, "column": 24}, "end_point": {"row": 110, "column": 38}}, {"id": 510, "type": "identifier", "text": "dfo_callback", "parent": 509, "children": [], "start_point": {"row": 110, "column": 25}, "end_point": {"row": 110, "column": 37}}, {"id": 511, "type": "call_expression", "text": "META_Dfo_Init()", "parent": 492, "children": [512, 513], "start_point": {"row": 111, "column": 4}, "end_point": {"row": 111, "column": 19}}, {"id": 512, "type": "identifier", "text": "META_Dfo_Init", "parent": 511, "children": [], "start_point": {"row": 111, "column": 4}, "end_point": {"row": 111, "column": 17}}, {"id": 513, "type": "argument_list", "text": "()", "parent": 511, "children": [], "start_point": {"row": 111, "column": 17}, "end_point": {"row": 111, "column": 19}}, {"id": 514, "type": "declaration", "text": "FT_DFO_REQ req;", "parent": 492, "children": [515, 516], "start_point": {"row": 115, "column": 8}, "end_point": {"row": 115, "column": 23}}, {"id": 515, "type": "type_identifier", "text": "FT_DFO_REQ", "parent": 514, "children": [], "start_point": {"row": 115, "column": 8}, "end_point": {"row": 115, "column": 18}}, {"id": 516, "type": "identifier", "text": "req", "parent": 514, "children": [], "start_point": {"row": 115, "column": 19}, "end_point": {"row": 115, "column": 22}}, {"id": 517, "type": "call_expression", "text": "memset(&req, 0, sizeof(FT_DFO_REQ))", "parent": 492, "children": [518, 519], "start_point": {"row": 116, "column": 8}, "end_point": {"row": 116, "column": 43}}, {"id": 518, "type": "identifier", "text": "memset", "parent": 517, "children": [], "start_point": {"row": 116, "column": 8}, "end_point": {"row": 116, "column": 14}}, {"id": 519, "type": "argument_list", "text": "(&req, 0, sizeof(FT_DFO_REQ))", "parent": 517, "children": [520, 522, 523], "start_point": {"row": 116, "column": 14}, "end_point": {"row": 116, "column": 43}}, {"id": 520, "type": "pointer_expression", "text": "&req", "parent": 519, "children": [521], "start_point": {"row": 116, "column": 15}, "end_point": {"row": 116, "column": 19}}, {"id": 521, "type": "identifier", "text": "req", "parent": 520, "children": [], "start_point": {"row": 116, "column": 16}, "end_point": {"row": 116, "column": 19}}, {"id": 522, "type": "number_literal", "text": "0", "parent": 519, "children": [], "start_point": {"row": 116, "column": 21}, "end_point": {"row": 116, "column": 22}}, {"id": 523, "type": "sizeof_expression", "text": "sizeof(FT_DFO_REQ)", "parent": 519, "children": [524], "start_point": {"row": 116, "column": 24}, "end_point": {"row": 116, "column": 42}}, {"id": 524, "type": "parenthesized_expression", "text": "(FT_DFO_REQ)", "parent": 523, "children": [525], "start_point": {"row": 116, "column": 30}, "end_point": {"row": 116, "column": 42}}, {"id": 525, "type": "identifier", "text": "FT_DFO_REQ", "parent": 524, "children": [], "start_point": {"row": 116, "column": 31}, "end_point": {"row": 116, "column": 41}}, {"id": 526, "type": "assignment_expression", "text": "req.header.id = FT_DFO_REQ_ID", "parent": 492, "children": [527, 532, 533], "start_point": {"row": 117, "column": 8}, "end_point": {"row": 117, "column": 37}}, {"id": 527, "type": "field_expression", "text": "req.header.id", "parent": 526, "children": [528, 531], "start_point": {"row": 117, "column": 8}, "end_point": {"row": 117, "column": 21}}, {"id": 528, "type": "field_expression", "text": "req.header", "parent": 527, "children": [529, 530], "start_point": {"row": 117, "column": 8}, "end_point": {"row": 117, "column": 18}}, {"id": 529, "type": "identifier", "text": "req", "parent": 528, "children": [], "start_point": {"row": 117, "column": 8}, "end_point": {"row": 117, "column": 11}}, {"id": 530, "type": "field_identifier", "text": "header", "parent": 528, "children": [], "start_point": {"row": 117, "column": 12}, "end_point": {"row": 117, "column": 18}}, {"id": 531, "type": "field_identifier", "text": "id", "parent": 527, "children": [], "start_point": {"row": 117, "column": 19}, "end_point": {"row": 117, "column": 21}}, {"id": 532, "type": "=", "text": "=", "parent": 526, "children": [], "start_point": {"row": 117, "column": 22}, "end_point": {"row": 117, "column": 23}}, {"id": 533, "type": "identifier", "text": "FT_DFO_REQ_ID", "parent": 526, "children": [], "start_point": {"row": 117, "column": 24}, "end_point": {"row": 117, "column": 37}}, {"id": 534, "type": "assignment_expression", "text": "req.op = DFO_OP_READ_COUNT", "parent": 492, "children": [535, 538, 539], "start_point": {"row": 118, "column": 8}, "end_point": {"row": 118, "column": 34}}, {"id": 535, "type": "field_expression", "text": "req.op", "parent": 534, "children": [536, 537], "start_point": {"row": 118, "column": 8}, "end_point": {"row": 118, "column": 14}}, {"id": 536, "type": "identifier", "text": "req", "parent": 535, "children": [], "start_point": {"row": 118, "column": 8}, "end_point": {"row": 118, "column": 11}}, {"id": 537, "type": "field_identifier", "text": "op", "parent": 535, "children": [], "start_point": {"row": 118, "column": 12}, "end_point": {"row": 118, "column": 14}}, {"id": 538, "type": "=", "text": "=", "parent": 534, "children": [], "start_point": {"row": 118, "column": 15}, "end_point": {"row": 118, "column": 16}}, {"id": 539, "type": "identifier", "text": "DFO_OP_READ_COUNT", "parent": 534, "children": [], "start_point": {"row": 118, "column": 17}, "end_point": {"row": 118, "column": 34}}, {"id": 540, "type": "call_expression", "text": "META_Dfo_OP(&req)", "parent": 492, "children": [541, 542], "start_point": {"row": 119, "column": 8}, "end_point": {"row": 119, "column": 25}}, {"id": 541, "type": "identifier", "text": "META_Dfo_OP", "parent": 540, "children": [], "start_point": {"row": 119, "column": 8}, "end_point": {"row": 119, "column": 19}}, {"id": 542, "type": "argument_list", "text": "(&req)", "parent": 540, "children": [543], "start_point": {"row": 119, "column": 19}, "end_point": {"row": 119, "column": 25}}, {"id": 543, "type": "pointer_expression", "text": "&req", "parent": 542, "children": [544], "start_point": {"row": 119, "column": 20}, "end_point": {"row": 119, "column": 24}}, {"id": 544, "type": "identifier", "text": "req", "parent": 543, "children": [], "start_point": {"row": 119, "column": 21}, "end_point": {"row": 119, "column": 24}}, {"id": 545, "type": "declaration", "text": "FT_DFO_REQ req;", "parent": 492, "children": [546, 547], "start_point": {"row": 124, "column": 8}, "end_point": {"row": 124, "column": 23}}, {"id": 546, "type": "type_identifier", "text": "FT_DFO_REQ", "parent": 545, "children": [], "start_point": {"row": 124, "column": 8}, "end_point": {"row": 124, "column": 18}}, {"id": 547, "type": "identifier", "text": "req", "parent": 545, "children": [], "start_point": {"row": 124, "column": 19}, "end_point": {"row": 124, "column": 22}}, {"id": 548, "type": "call_expression", "text": "memset(&req, 0, sizeof(FT_DFO_REQ))", "parent": 492, "children": [549, 550], "start_point": {"row": 125, "column": 8}, "end_point": {"row": 125, "column": 43}}, {"id": 549, "type": "identifier", "text": "memset", "parent": 548, "children": [], "start_point": {"row": 125, "column": 8}, "end_point": {"row": 125, "column": 14}}, {"id": 550, "type": "argument_list", "text": "(&req, 0, sizeof(FT_DFO_REQ))", "parent": 548, "children": [551, 553, 554], "start_point": {"row": 125, "column": 14}, "end_point": {"row": 125, "column": 43}}, {"id": 551, "type": "pointer_expression", "text": "&req", "parent": 550, "children": [552], "start_point": {"row": 125, "column": 15}, "end_point": {"row": 125, "column": 19}}, {"id": 552, "type": "identifier", "text": "req", "parent": 551, "children": [], "start_point": {"row": 125, "column": 16}, "end_point": {"row": 125, "column": 19}}, {"id": 553, "type": "number_literal", "text": "0", "parent": 550, "children": [], "start_point": {"row": 125, "column": 21}, "end_point": {"row": 125, "column": 22}}, {"id": 554, "type": "sizeof_expression", "text": "sizeof(FT_DFO_REQ)", "parent": 550, "children": [555], "start_point": {"row": 125, "column": 24}, "end_point": {"row": 125, "column": 42}}, {"id": 555, "type": "parenthesized_expression", "text": "(FT_DFO_REQ)", "parent": 554, "children": [556], "start_point": {"row": 125, "column": 30}, "end_point": {"row": 125, "column": 42}}, {"id": 556, "type": "identifier", "text": "FT_DFO_REQ", "parent": 555, "children": [], "start_point": {"row": 125, "column": 31}, "end_point": {"row": 125, "column": 41}}, {"id": 557, "type": "assignment_expression", "text": "req.header.id = FT_DFO_REQ_ID", "parent": 492, "children": [558, 563, 564], "start_point": {"row": 126, "column": 8}, "end_point": {"row": 126, "column": 37}}, {"id": 558, "type": "field_expression", "text": "req.header.id", "parent": 557, "children": [559, 562], "start_point": {"row": 126, "column": 8}, "end_point": {"row": 126, "column": 21}}, {"id": 559, "type": "field_expression", "text": "req.header", "parent": 558, "children": [560, 561], "start_point": {"row": 126, "column": 8}, "end_point": {"row": 126, "column": 18}}, {"id": 560, "type": "identifier", "text": "req", "parent": 559, "children": [], "start_point": {"row": 126, "column": 8}, "end_point": {"row": 126, "column": 11}}, {"id": 561, "type": "field_identifier", "text": "header", "parent": 559, "children": [], "start_point": {"row": 126, "column": 12}, "end_point": {"row": 126, "column": 18}}, {"id": 562, "type": "field_identifier", "text": "id", "parent": 558, "children": [], "start_point": {"row": 126, "column": 19}, "end_point": {"row": 126, "column": 21}}, {"id": 563, "type": "=", "text": "=", "parent": 557, "children": [], "start_point": {"row": 126, "column": 22}, "end_point": {"row": 126, "column": 23}}, {"id": 564, "type": "identifier", "text": "FT_DFO_REQ_ID", "parent": 557, "children": [], "start_point": {"row": 126, "column": 24}, "end_point": {"row": 126, "column": 37}}, {"id": 565, "type": "assignment_expression", "text": "req.op = DFO_OP_READ", "parent": 492, "children": [566, 569, 570], "start_point": {"row": 127, "column": 8}, "end_point": {"row": 127, "column": 28}}, {"id": 566, "type": "field_expression", "text": "req.op", "parent": 565, "children": [567, 568], "start_point": {"row": 127, "column": 8}, "end_point": {"row": 127, "column": 14}}, {"id": 567, "type": "identifier", "text": "req", "parent": 566, "children": [], "start_point": {"row": 127, "column": 8}, "end_point": {"row": 127, "column": 11}}, {"id": 568, "type": "field_identifier", "text": "op", "parent": 566, "children": [], "start_point": {"row": 127, "column": 12}, "end_point": {"row": 127, "column": 14}}, {"id": 569, "type": "=", "text": "=", "parent": 565, "children": [], "start_point": {"row": 127, "column": 15}, "end_point": {"row": 127, "column": 16}}, {"id": 570, "type": "identifier", "text": "DFO_OP_READ", "parent": 565, "children": [], "start_point": {"row": 127, "column": 17}, "end_point": {"row": 127, "column": 28}}, {"id": 571, "type": "declaration", "text": "int i = 0;", "parent": 492, "children": [572, 573], "start_point": {"row": 129, "column": 8}, "end_point": {"row": 129, "column": 18}}, {"id": 572, "type": "primitive_type", "text": "int", "parent": 571, "children": [], "start_point": {"row": 129, "column": 8}, "end_point": {"row": 129, "column": 11}}, {"id": 573, "type": "init_declarator", "text": "i = 0", "parent": 571, "children": [574, 575, 576], "start_point": {"row": 129, "column": 12}, "end_point": {"row": 129, "column": 17}}, {"id": 574, "type": "identifier", "text": "i", "parent": 573, "children": [], "start_point": {"row": 129, "column": 12}, "end_point": {"row": 129, "column": 13}}, {"id": 575, "type": "=", "text": "=", "parent": 573, "children": [], "start_point": {"row": 129, "column": 14}, "end_point": {"row": 129, "column": 15}}, {"id": 576, "type": "number_literal", "text": "0", "parent": 573, "children": [], "start_point": {"row": 129, "column": 16}, "end_point": {"row": 129, "column": 17}}, {"id": 577, "type": "for_statement", "text": "for (; i < g_dfoCount; i++)\n {\n req.cmd.read_req.index = i;\n g_curIndex = i;\n META_Dfo_OP(&req);\n }", "parent": 492, "children": [578, 582], "start_point": {"row": 130, "column": 8}, "end_point": {"row": 135, "column": 9}}, {"id": 578, "type": "binary_expression", "text": "i < g_dfoCount", "parent": 577, "children": [579, 580, 581], "start_point": {"row": 130, "column": 15}, "end_point": {"row": 130, "column": 29}}, {"id": 579, "type": "identifier", "text": "i", "parent": 578, "children": [], "start_point": {"row": 130, "column": 15}, "end_point": {"row": 130, "column": 16}}, {"id": 580, "type": "<", "text": "<", "parent": 578, "children": [], "start_point": {"row": 130, "column": 17}, "end_point": {"row": 130, "column": 18}}, {"id": 581, "type": "identifier", "text": "g_dfoCount", "parent": 578, "children": [], "start_point": {"row": 130, "column": 19}, "end_point": {"row": 130, "column": 29}}, {"id": 582, "type": "update_expression", "text": "i++", "parent": 577, "children": [583, 584], "start_point": {"row": 130, "column": 31}, "end_point": {"row": 130, "column": 34}}, {"id": 583, "type": "identifier", "text": "i", "parent": 582, "children": [], "start_point": {"row": 130, "column": 31}, "end_point": {"row": 130, "column": 32}}, {"id": 584, "type": "++", "text": "++", "parent": 582, "children": [], "start_point": {"row": 130, "column": 32}, "end_point": {"row": 130, "column": 34}}, {"id": 585, "type": "assignment_expression", "text": "req.cmd.read_req.index = i", "parent": 577, "children": [586, 593, 594], "start_point": {"row": 132, "column": 12}, "end_point": {"row": 132, "column": 38}}, {"id": 586, "type": "field_expression", "text": "req.cmd.read_req.index", "parent": 585, "children": [587, 592], "start_point": {"row": 132, "column": 12}, "end_point": {"row": 132, "column": 34}}, {"id": 587, "type": "field_expression", "text": "req.cmd.read_req", "parent": 586, "children": [588, 591], "start_point": {"row": 132, "column": 12}, "end_point": {"row": 132, "column": 28}}, {"id": 588, "type": "field_expression", "text": "req.cmd", "parent": 587, "children": [589, 590], "start_point": {"row": 132, "column": 12}, "end_point": {"row": 132, "column": 19}}, {"id": 589, "type": "identifier", "text": "req", "parent": 588, "children": [], "start_point": {"row": 132, "column": 12}, "end_point": {"row": 132, "column": 15}}, {"id": 590, "type": "field_identifier", "text": "cmd", "parent": 588, "children": [], "start_point": {"row": 132, "column": 16}, "end_point": {"row": 132, "column": 19}}, {"id": 591, "type": "field_identifier", "text": "read_req", "parent": 587, "children": [], "start_point": {"row": 132, "column": 20}, "end_point": {"row": 132, "column": 28}}, {"id": 592, "type": "field_identifier", "text": "index", "parent": 586, "children": [], "start_point": {"row": 132, "column": 29}, "end_point": {"row": 132, "column": 34}}, {"id": 593, "type": "=", "text": "=", "parent": 585, "children": [], "start_point": {"row": 132, "column": 35}, "end_point": {"row": 132, "column": 36}}, {"id": 594, "type": "identifier", "text": "i", "parent": 585, "children": [], "start_point": {"row": 132, "column": 37}, "end_point": {"row": 132, "column": 38}}, {"id": 595, "type": "assignment_expression", "text": "g_curIndex = i", "parent": 577, "children": [596, 597, 598], "start_point": {"row": 133, "column": 12}, "end_point": {"row": 133, "column": 26}}, {"id": 596, "type": "identifier", "text": "g_curIndex", "parent": 595, "children": [], "start_point": {"row": 133, "column": 12}, "end_point": {"row": 133, "column": 22}}, {"id": 597, "type": "=", "text": "=", "parent": 595, "children": [], "start_point": {"row": 133, "column": 23}, "end_point": {"row": 133, "column": 24}}, {"id": 598, "type": "identifier", "text": "i", "parent": 595, "children": [], "start_point": {"row": 133, "column": 25}, "end_point": {"row": 133, "column": 26}}, {"id": 599, "type": "call_expression", "text": "META_Dfo_OP(&req)", "parent": 577, "children": [600, 601], "start_point": {"row": 134, "column": 12}, "end_point": {"row": 134, "column": 29}}, {"id": 600, "type": "identifier", "text": "META_Dfo_OP", "parent": 599, "children": [], "start_point": {"row": 134, "column": 12}, "end_point": {"row": 134, "column": 23}}, {"id": 601, "type": "argument_list", "text": "(&req)", "parent": 599, "children": [602], "start_point": {"row": 134, "column": 23}, "end_point": {"row": 134, "column": 29}}, {"id": 602, "type": "pointer_expression", "text": "&req", "parent": 601, "children": [603], "start_point": {"row": 134, "column": 24}, "end_point": {"row": 134, "column": 28}}, {"id": 603, "type": "identifier", "text": "req", "parent": 602, "children": [], "start_point": {"row": 134, "column": 25}, "end_point": {"row": 134, "column": 28}}, {"id": 604, "type": "declaration", "text": "FT_DFO_REQ req;", "parent": 492, "children": [605, 606], "start_point": {"row": 140, "column": 8}, "end_point": {"row": 140, "column": 23}}, {"id": 605, "type": "type_identifier", "text": "FT_DFO_REQ", "parent": 604, "children": [], "start_point": {"row": 140, "column": 8}, "end_point": {"row": 140, "column": 18}}, {"id": 606, "type": "identifier", "text": "req", "parent": 604, "children": [], "start_point": {"row": 140, "column": 19}, "end_point": {"row": 140, "column": 22}}, {"id": 607, "type": "call_expression", "text": "memset(&req, 0, sizeof(FT_DFO_REQ))", "parent": 492, "children": [608, 609], "start_point": {"row": 141, "column": 8}, "end_point": {"row": 141, "column": 43}}, {"id": 608, "type": "identifier", "text": "memset", "parent": 607, "children": [], "start_point": {"row": 141, "column": 8}, "end_point": {"row": 141, "column": 14}}, {"id": 609, "type": "argument_list", "text": "(&req, 0, sizeof(FT_DFO_REQ))", "parent": 607, "children": [610, 612, 613], "start_point": {"row": 141, "column": 14}, "end_point": {"row": 141, "column": 43}}, {"id": 610, "type": "pointer_expression", "text": "&req", "parent": 609, "children": [611], "start_point": {"row": 141, "column": 15}, "end_point": {"row": 141, "column": 19}}, {"id": 611, "type": "identifier", "text": "req", "parent": 610, "children": [], "start_point": {"row": 141, "column": 16}, "end_point": {"row": 141, "column": 19}}, {"id": 612, "type": "number_literal", "text": "0", "parent": 609, "children": [], "start_point": {"row": 141, "column": 21}, "end_point": {"row": 141, "column": 22}}, {"id": 613, "type": "sizeof_expression", "text": "sizeof(FT_DFO_REQ)", "parent": 609, "children": [614], "start_point": {"row": 141, "column": 24}, "end_point": {"row": 141, "column": 42}}, {"id": 614, "type": "parenthesized_expression", "text": "(FT_DFO_REQ)", "parent": 613, "children": [615], "start_point": {"row": 141, "column": 30}, "end_point": {"row": 141, "column": 42}}, {"id": 615, "type": "identifier", "text": "FT_DFO_REQ", "parent": 614, "children": [], "start_point": {"row": 141, "column": 31}, "end_point": {"row": 141, "column": 41}}, {"id": 616, "type": "assignment_expression", "text": "req.header.id = FT_DFO_REQ_ID", "parent": 492, "children": [617, 622, 623], "start_point": {"row": 142, "column": 8}, "end_point": {"row": 142, "column": 37}}, {"id": 617, "type": "field_expression", "text": "req.header.id", "parent": 616, "children": [618, 621], "start_point": {"row": 142, "column": 8}, "end_point": {"row": 142, "column": 21}}, {"id": 618, "type": "field_expression", "text": "req.header", "parent": 617, "children": [619, 620], "start_point": {"row": 142, "column": 8}, "end_point": {"row": 142, "column": 18}}, {"id": 619, "type": "identifier", "text": "req", "parent": 618, "children": [], "start_point": {"row": 142, "column": 8}, "end_point": {"row": 142, "column": 11}}, {"id": 620, "type": "field_identifier", "text": "header", "parent": 618, "children": [], "start_point": {"row": 142, "column": 12}, "end_point": {"row": 142, "column": 18}}, {"id": 621, "type": "field_identifier", "text": "id", "parent": 617, "children": [], "start_point": {"row": 142, "column": 19}, "end_point": {"row": 142, "column": 21}}, {"id": 622, "type": "=", "text": "=", "parent": 616, "children": [], "start_point": {"row": 142, "column": 22}, "end_point": {"row": 142, "column": 23}}, {"id": 623, "type": "identifier", "text": "FT_DFO_REQ_ID", "parent": 616, "children": [], "start_point": {"row": 142, "column": 24}, "end_point": {"row": 142, "column": 37}}, {"id": 624, "type": "assignment_expression", "text": "req.op = DFO_OP_WRITE", "parent": 492, "children": [625, 628, 629], "start_point": {"row": 143, "column": 8}, "end_point": {"row": 143, "column": 29}}, {"id": 625, "type": "field_expression", "text": "req.op", "parent": 624, "children": [626, 627], "start_point": {"row": 143, "column": 8}, "end_point": {"row": 143, "column": 14}}, {"id": 626, "type": "identifier", "text": "req", "parent": 625, "children": [], "start_point": {"row": 143, "column": 8}, "end_point": {"row": 143, "column": 11}}, {"id": 627, "type": "field_identifier", "text": "op", "parent": 625, "children": [], "start_point": {"row": 143, "column": 12}, "end_point": {"row": 143, "column": 14}}, {"id": 628, "type": "=", "text": "=", "parent": 624, "children": [], "start_point": {"row": 143, "column": 15}, "end_point": {"row": 143, "column": 16}}, {"id": 629, "type": "identifier", "text": "DFO_OP_WRITE", "parent": 624, "children": [], "start_point": {"row": 143, "column": 17}, "end_point": {"row": 143, "column": 29}}, {"id": 630, "type": "declaration", "text": "int i = 0;", "parent": 492, "children": [631, 632], "start_point": {"row": 145, "column": 8}, "end_point": {"row": 145, "column": 18}}, {"id": 631, "type": "primitive_type", "text": "int", "parent": 630, "children": [], "start_point": {"row": 145, "column": 8}, "end_point": {"row": 145, "column": 11}}, {"id": 632, "type": "init_declarator", "text": "i = 0", "parent": 630, "children": [633, 634, 635], "start_point": {"row": 145, "column": 12}, "end_point": {"row": 145, "column": 17}}, {"id": 633, "type": "identifier", "text": "i", "parent": 632, "children": [], "start_point": {"row": 145, "column": 12}, "end_point": {"row": 145, "column": 13}}, {"id": 634, "type": "=", "text": "=", "parent": 632, "children": [], "start_point": {"row": 145, "column": 14}, "end_point": {"row": 145, "column": 15}}, {"id": 635, "type": "number_literal", "text": "0", "parent": 632, "children": [], "start_point": {"row": 145, "column": 16}, "end_point": {"row": 145, "column": 17}}, {"id": 636, "type": "for_statement", "text": "for (; i < g_dfoCount; i++)\n {\n printf(\"META Dfo write: (%s, %d)\\n\", g_dfoArray[i].name, 2);\n strcpy(req.cmd.write_req.name, g_dfoArray[i].name);\n req.cmd.write_req.partition = g_dfoArray[i].partition;\n if (g_dfoArray[i].partition == 0)\n req.cmd.write_req.value = 6;\n else\n req.cmd.write_req.value = 16;\n if (i == g_dfoCount - 1)\n {\n req.cmd.write_req.save = 1;\n }\n else\n {\n req.cmd.write_req.save = 0;\n }\n META_Dfo_OP(&req);\n }", "parent": 492, "children": [637, 641], "start_point": {"row": 146, "column": 8}, "end_point": {"row": 164, "column": 9}}, {"id": 637, "type": "binary_expression", "text": "i < g_dfoCount", "parent": 636, "children": [638, 639, 640], "start_point": {"row": 146, "column": 15}, "end_point": {"row": 146, "column": 29}}, {"id": 638, "type": "identifier", "text": "i", "parent": 637, "children": [], "start_point": {"row": 146, "column": 15}, "end_point": {"row": 146, "column": 16}}, {"id": 639, "type": "<", "text": "<", "parent": 637, "children": [], "start_point": {"row": 146, "column": 17}, "end_point": {"row": 146, "column": 18}}, {"id": 640, "type": "identifier", "text": "g_dfoCount", "parent": 637, "children": [], "start_point": {"row": 146, "column": 19}, "end_point": {"row": 146, "column": 29}}, {"id": 641, "type": "update_expression", "text": "i++", "parent": 636, "children": [642, 643], "start_point": {"row": 146, "column": 31}, "end_point": {"row": 146, "column": 34}}, {"id": 642, "type": "identifier", "text": "i", "parent": 641, "children": [], "start_point": {"row": 146, "column": 31}, "end_point": {"row": 146, "column": 32}}, {"id": 643, "type": "++", "text": "++", "parent": 641, "children": [], "start_point": {"row": 146, "column": 32}, "end_point": {"row": 146, "column": 34}}, {"id": 644, "type": "call_expression", "text": "printf(\"META Dfo write: (%s, %d)\\n\", g_dfoArray[i].name, 2)", "parent": 636, "children": [645, 646], "start_point": {"row": 148, "column": 12}, "end_point": {"row": 148, "column": 71}}, {"id": 645, "type": "identifier", "text": "printf", "parent": 644, "children": [], "start_point": {"row": 148, "column": 12}, "end_point": {"row": 148, "column": 18}}, {"id": 646, "type": "argument_list", "text": "(\"META Dfo write: (%s, %d)\\n\", g_dfoArray[i].name, 2)", "parent": 644, "children": [647, 649, 654], "start_point": {"row": 148, "column": 18}, "end_point": {"row": 148, "column": 71}}, {"id": 647, "type": "string_literal", "text": "\"META Dfo write: (%s, %d)\\n\"", "parent": 646, "children": [648], "start_point": {"row": 148, "column": 19}, "end_point": {"row": 148, "column": 47}}, {"id": 648, "type": "escape_sequence", "text": "\\n", "parent": 647, "children": [], "start_point": {"row": 148, "column": 44}, "end_point": {"row": 148, "column": 46}}, {"id": 649, "type": "field_expression", "text": "g_dfoArray[i].name", "parent": 646, "children": [650, 653], "start_point": {"row": 148, "column": 49}, "end_point": {"row": 148, "column": 67}}, {"id": 650, "type": "subscript_expression", "text": "g_dfoArray[i]", "parent": 649, "children": [651, 652], "start_point": {"row": 148, "column": 49}, "end_point": {"row": 148, "column": 62}}, {"id": 651, "type": "identifier", "text": "g_dfoArray", "parent": 650, "children": [], "start_point": {"row": 148, "column": 49}, "end_point": {"row": 148, "column": 59}}, {"id": 652, "type": "identifier", "text": "i", "parent": 650, "children": [], "start_point": {"row": 148, "column": 60}, "end_point": {"row": 148, "column": 61}}, {"id": 653, "type": "field_identifier", "text": "name", "parent": 649, "children": [], "start_point": {"row": 148, "column": 63}, "end_point": {"row": 148, "column": 67}}, {"id": 654, "type": "number_literal", "text": "2", "parent": 646, "children": [], "start_point": {"row": 148, "column": 69}, "end_point": {"row": 148, "column": 70}}, {"id": 655, "type": "call_expression", "text": "strcpy(req.cmd.write_req.name, g_dfoArray[i].name)", "parent": 636, "children": [656, 657], "start_point": {"row": 149, "column": 12}, "end_point": {"row": 149, "column": 62}}, {"id": 656, "type": "identifier", "text": "strcpy", "parent": 655, "children": [], "start_point": {"row": 149, "column": 12}, "end_point": {"row": 149, "column": 18}}, {"id": 657, "type": "argument_list", "text": "(req.cmd.write_req.name, g_dfoArray[i].name)", "parent": 655, "children": [658, 665], "start_point": {"row": 149, "column": 18}, "end_point": {"row": 149, "column": 62}}, {"id": 658, "type": "field_expression", "text": "req.cmd.write_req.name", "parent": 657, "children": [659, 664], "start_point": {"row": 149, "column": 19}, "end_point": {"row": 149, "column": 41}}, {"id": 659, "type": "field_expression", "text": "req.cmd.write_req", "parent": 658, "children": [660, 663], "start_point": {"row": 149, "column": 19}, "end_point": {"row": 149, "column": 36}}, {"id": 660, "type": "field_expression", "text": "req.cmd", "parent": 659, "children": [661, 662], "start_point": {"row": 149, "column": 19}, "end_point": {"row": 149, "column": 26}}, {"id": 661, "type": "identifier", "text": "req", "parent": 660, "children": [], "start_point": {"row": 149, "column": 19}, "end_point": {"row": 149, "column": 22}}, {"id": 662, "type": "field_identifier", "text": "cmd", "parent": 660, "children": [], "start_point": {"row": 149, "column": 23}, "end_point": {"row": 149, "column": 26}}, {"id": 663, "type": "field_identifier", "text": "write_req", "parent": 659, "children": [], "start_point": {"row": 149, "column": 27}, "end_point": {"row": 149, "column": 36}}, {"id": 664, "type": "field_identifier", "text": "name", "parent": 658, "children": [], "start_point": {"row": 149, "column": 37}, "end_point": {"row": 149, "column": 41}}, {"id": 665, "type": "field_expression", "text": "g_dfoArray[i].name", "parent": 657, "children": [666, 669], "start_point": {"row": 149, "column": 43}, "end_point": {"row": 149, "column": 61}}, {"id": 666, "type": "subscript_expression", "text": "g_dfoArray[i]", "parent": 665, "children": [667, 668], "start_point": {"row": 149, "column": 43}, "end_point": {"row": 149, "column": 56}}, {"id": 667, "type": "identifier", "text": "g_dfoArray", "parent": 666, "children": [], "start_point": {"row": 149, "column": 43}, "end_point": {"row": 149, "column": 53}}, {"id": 668, "type": "identifier", "text": "i", "parent": 666, "children": [], "start_point": {"row": 149, "column": 54}, "end_point": {"row": 149, "column": 55}}, {"id": 669, "type": "field_identifier", "text": "name", "parent": 665, "children": [], "start_point": {"row": 149, "column": 57}, "end_point": {"row": 149, "column": 61}}, {"id": 670, "type": "assignment_expression", "text": "req.cmd.write_req.partition = g_dfoArray[i].partition", "parent": 636, "children": [671, 678, 679], "start_point": {"row": 150, "column": 12}, "end_point": {"row": 150, "column": 65}}, {"id": 671, "type": "field_expression", "text": "req.cmd.write_req.partition", "parent": 670, "children": [672, 677], "start_point": {"row": 150, "column": 12}, "end_point": {"row": 150, "column": 39}}, {"id": 672, "type": "field_expression", "text": "req.cmd.write_req", "parent": 671, "children": [673, 676], "start_point": {"row": 150, "column": 12}, "end_point": {"row": 150, "column": 29}}, {"id": 673, "type": "field_expression", "text": "req.cmd", "parent": 672, "children": [674, 675], "start_point": {"row": 150, "column": 12}, "end_point": {"row": 150, "column": 19}}, {"id": 674, "type": "identifier", "text": "req", "parent": 673, "children": [], "start_point": {"row": 150, "column": 12}, "end_point": {"row": 150, "column": 15}}, {"id": 675, "type": "field_identifier", "text": "cmd", "parent": 673, "children": [], "start_point": {"row": 150, "column": 16}, "end_point": {"row": 150, "column": 19}}, {"id": 676, "type": "field_identifier", "text": "write_req", "parent": 672, "children": [], "start_point": {"row": 150, "column": 20}, "end_point": {"row": 150, "column": 29}}, {"id": 677, "type": "field_identifier", "text": "partition", "parent": 671, "children": [], "start_point": {"row": 150, "column": 30}, "end_point": {"row": 150, "column": 39}}, {"id": 678, "type": "=", "text": "=", "parent": 670, "children": [], "start_point": {"row": 150, "column": 40}, "end_point": {"row": 150, "column": 41}}, {"id": 679, "type": "field_expression", "text": "g_dfoArray[i].partition", "parent": 670, "children": [680, 683], "start_point": {"row": 150, "column": 42}, "end_point": {"row": 150, "column": 65}}, {"id": 680, "type": "subscript_expression", "text": "g_dfoArray[i]", "parent": 679, "children": [681, 682], "start_point": {"row": 150, "column": 42}, "end_point": {"row": 150, "column": 55}}, {"id": 681, "type": "identifier", "text": "g_dfoArray", "parent": 680, "children": [], "start_point": {"row": 150, "column": 42}, "end_point": {"row": 150, "column": 52}}, {"id": 682, "type": "identifier", "text": "i", "parent": 680, "children": [], "start_point": {"row": 150, "column": 53}, "end_point": {"row": 150, "column": 54}}, {"id": 683, "type": "field_identifier", "text": "partition", "parent": 679, "children": [], "start_point": {"row": 150, "column": 56}, "end_point": {"row": 150, "column": 65}}, {"id": 684, "type": "if_statement", "text": "if (g_dfoArray[i].partition == 0)\n req.cmd.write_req.value = 6;\n else\n req.cmd.write_req.value = 16;", "parent": 636, "children": [685, 704], "start_point": {"row": 151, "column": 12}, "end_point": {"row": 154, "column": 45}}, {"id": 685, "type": "parenthesized_expression", "text": "(g_dfoArray[i].partition == 0)", "parent": 684, "children": [686], "start_point": {"row": 151, "column": 15}, "end_point": {"row": 151, "column": 45}}, {"id": 686, "type": "binary_expression", "text": "g_dfoArray[i].partition == 0", "parent": 685, "children": [687, 692, 693], "start_point": {"row": 151, "column": 16}, "end_point": {"row": 151, "column": 44}}, {"id": 687, "type": "field_expression", "text": "g_dfoArray[i].partition", "parent": 686, "children": [688, 691], "start_point": {"row": 151, "column": 16}, "end_point": {"row": 151, "column": 39}}, {"id": 688, "type": "subscript_expression", "text": "g_dfoArray[i]", "parent": 687, "children": [689, 690], "start_point": {"row": 151, "column": 16}, "end_point": {"row": 151, "column": 29}}, {"id": 689, "type": "identifier", "text": "g_dfoArray", "parent": 688, "children": [], "start_point": {"row": 151, "column": 16}, "end_point": {"row": 151, "column": 26}}, {"id": 690, "type": "identifier", "text": "i", "parent": 688, "children": [], "start_point": {"row": 151, "column": 27}, "end_point": {"row": 151, "column": 28}}, {"id": 691, "type": "field_identifier", "text": "partition", "parent": 687, "children": [], "start_point": {"row": 151, "column": 30}, "end_point": {"row": 151, "column": 39}}, {"id": 692, "type": "==", "text": "==", "parent": 686, "children": [], "start_point": {"row": 151, "column": 40}, "end_point": {"row": 151, "column": 42}}, {"id": 693, "type": "number_literal", "text": "0", "parent": 686, "children": [], "start_point": {"row": 151, "column": 43}, "end_point": {"row": 151, "column": 44}}, {"id": 694, "type": "assignment_expression", "text": "req.cmd.write_req.value = 6", "parent": 684, "children": [695, 702, 703], "start_point": {"row": 152, "column": 16}, "end_point": {"row": 152, "column": 43}}, {"id": 695, "type": "field_expression", "text": "req.cmd.write_req.value", "parent": 694, "children": [696, 701], "start_point": {"row": 152, "column": 16}, "end_point": {"row": 152, "column": 39}}, {"id": 696, "type": "field_expression", "text": "req.cmd.write_req", "parent": 695, "children": [697, 700], "start_point": {"row": 152, "column": 16}, "end_point": {"row": 152, "column": 33}}, {"id": 697, "type": "field_expression", "text": "req.cmd", "parent": 696, "children": [698, 699], "start_point": {"row": 152, "column": 16}, "end_point": {"row": 152, "column": 23}}, {"id": 698, "type": "identifier", "text": "req", "parent": 697, "children": [], "start_point": {"row": 152, "column": 16}, "end_point": {"row": 152, "column": 19}}, {"id": 699, "type": "field_identifier", "text": "cmd", "parent": 697, "children": [], "start_point": {"row": 152, "column": 20}, "end_point": {"row": 152, "column": 23}}, {"id": 700, "type": "field_identifier", "text": "write_req", "parent": 696, "children": [], "start_point": {"row": 152, "column": 24}, "end_point": {"row": 152, "column": 33}}, {"id": 701, "type": "field_identifier", "text": "value", "parent": 695, "children": [], "start_point": {"row": 152, "column": 34}, "end_point": {"row": 152, "column": 39}}, {"id": 702, "type": "=", "text": "=", "parent": 694, "children": [], "start_point": {"row": 152, "column": 40}, "end_point": {"row": 152, "column": 41}}, {"id": 703, "type": "number_literal", "text": "6", "parent": 694, "children": [], "start_point": {"row": 152, "column": 42}, "end_point": {"row": 152, "column": 43}}, {"id": 704, "type": "else_clause", "text": "else\n req.cmd.write_req.value = 16;", "parent": 684, "children": [], "start_point": {"row": 153, "column": 12}, "end_point": {"row": 154, "column": 45}}, {"id": 705, "type": "assignment_expression", "text": "req.cmd.write_req.value = 16", "parent": 704, "children": [706, 713, 714], "start_point": {"row": 154, "column": 16}, "end_point": {"row": 154, "column": 44}}, {"id": 706, "type": "field_expression", "text": "req.cmd.write_req.value", "parent": 705, "children": [707, 712], "start_point": {"row": 154, "column": 16}, "end_point": {"row": 154, "column": 39}}, {"id": 707, "type": "field_expression", "text": "req.cmd.write_req", "parent": 706, "children": [708, 711], "start_point": {"row": 154, "column": 16}, "end_point": {"row": 154, "column": 33}}, {"id": 708, "type": "field_expression", "text": "req.cmd", "parent": 707, "children": [709, 710], "start_point": {"row": 154, "column": 16}, "end_point": {"row": 154, "column": 23}}, {"id": 709, "type": "identifier", "text": "req", "parent": 708, "children": [], "start_point": {"row": 154, "column": 16}, "end_point": {"row": 154, "column": 19}}, {"id": 710, "type": "field_identifier", "text": "cmd", "parent": 708, "children": [], "start_point": {"row": 154, "column": 20}, "end_point": {"row": 154, "column": 23}}, {"id": 711, "type": "field_identifier", "text": "write_req", "parent": 707, "children": [], "start_point": {"row": 154, "column": 24}, "end_point": {"row": 154, "column": 33}}, {"id": 712, "type": "field_identifier", "text": "value", "parent": 706, "children": [], "start_point": {"row": 154, "column": 34}, "end_point": {"row": 154, "column": 39}}, {"id": 713, "type": "=", "text": "=", "parent": 705, "children": [], "start_point": {"row": 154, "column": 40}, "end_point": {"row": 154, "column": 41}}, {"id": 714, "type": "number_literal", "text": "16", "parent": 705, "children": [], "start_point": {"row": 154, "column": 42}, "end_point": {"row": 154, "column": 44}}, {"id": 715, "type": "if_statement", "text": "if (i == g_dfoCount - 1)\n {\n req.cmd.write_req.save = 1;\n }\n else\n {\n req.cmd.write_req.save = 0;\n }", "parent": 636, "children": [716, 734], "start_point": {"row": 155, "column": 12}, "end_point": {"row": 162, "column": 13}}, {"id": 716, "type": "parenthesized_expression", "text": "(i == g_dfoCount - 1)", "parent": 715, "children": [717], "start_point": {"row": 155, "column": 15}, "end_point": {"row": 155, "column": 36}}, {"id": 717, "type": "binary_expression", "text": "i == g_dfoCount - 1", "parent": 716, "children": [718, 719, 720], "start_point": {"row": 155, "column": 16}, "end_point": {"row": 155, "column": 35}}, {"id": 718, "type": "identifier", "text": "i", "parent": 717, "children": [], "start_point": {"row": 155, "column": 16}, "end_point": {"row": 155, "column": 17}}, {"id": 719, "type": "==", "text": "==", "parent": 717, "children": [], "start_point": {"row": 155, "column": 18}, "end_point": {"row": 155, "column": 20}}, {"id": 720, "type": "binary_expression", "text": "g_dfoCount - 1", "parent": 717, "children": [721, 722, 723], "start_point": {"row": 155, "column": 21}, "end_point": {"row": 155, "column": 35}}, {"id": 721, "type": "identifier", "text": "g_dfoCount", "parent": 720, "children": [], "start_point": {"row": 155, "column": 21}, "end_point": {"row": 155, "column": 31}}, {"id": 722, "type": "-", "text": "-", "parent": 720, "children": [], "start_point": {"row": 155, "column": 32}, "end_point": {"row": 155, "column": 33}}, {"id": 723, "type": "number_literal", "text": "1", "parent": 720, "children": [], "start_point": {"row": 155, "column": 34}, "end_point": {"row": 155, "column": 35}}, {"id": 724, "type": "assignment_expression", "text": "req.cmd.write_req.save = 1", "parent": 715, "children": [725, 732, 733], "start_point": {"row": 157, "column": 16}, "end_point": {"row": 157, "column": 42}}, {"id": 725, "type": "field_expression", "text": "req.cmd.write_req.save", "parent": 724, "children": [726, 731], "start_point": {"row": 157, "column": 16}, "end_point": {"row": 157, "column": 38}}, {"id": 726, "type": "field_expression", "text": "req.cmd.write_req", "parent": 725, "children": [727, 730], "start_point": {"row": 157, "column": 16}, "end_point": {"row": 157, "column": 33}}, {"id": 727, "type": "field_expression", "text": "req.cmd", "parent": 726, "children": [728, 729], "start_point": {"row": 157, "column": 16}, "end_point": {"row": 157, "column": 23}}, {"id": 728, "type": "identifier", "text": "req", "parent": 727, "children": [], "start_point": {"row": 157, "column": 16}, "end_point": {"row": 157, "column": 19}}, {"id": 729, "type": "field_identifier", "text": "cmd", "parent": 727, "children": [], "start_point": {"row": 157, "column": 20}, "end_point": {"row": 157, "column": 23}}, {"id": 730, "type": "field_identifier", "text": "write_req", "parent": 726, "children": [], "start_point": {"row": 157, "column": 24}, "end_point": {"row": 157, "column": 33}}, {"id": 731, "type": "field_identifier", "text": "save", "parent": 725, "children": [], "start_point": {"row": 157, "column": 34}, "end_point": {"row": 157, "column": 38}}, {"id": 732, "type": "=", "text": "=", "parent": 724, "children": [], "start_point": {"row": 157, "column": 39}, "end_point": {"row": 157, "column": 40}}, {"id": 733, "type": "number_literal", "text": "1", "parent": 724, "children": [], "start_point": {"row": 157, "column": 41}, "end_point": {"row": 157, "column": 42}}, {"id": 734, "type": "else_clause", "text": "else\n {\n req.cmd.write_req.save = 0;\n }", "parent": 715, "children": [], "start_point": {"row": 159, "column": 12}, "end_point": {"row": 162, "column": 13}}, {"id": 735, "type": "assignment_expression", "text": "req.cmd.write_req.save = 0", "parent": 734, "children": [736, 743, 744], "start_point": {"row": 161, "column": 16}, "end_point": {"row": 161, "column": 42}}, {"id": 736, "type": "field_expression", "text": "req.cmd.write_req.save", "parent": 735, "children": [737, 742], "start_point": {"row": 161, "column": 16}, "end_point": {"row": 161, "column": 38}}, {"id": 737, "type": "field_expression", "text": "req.cmd.write_req", "parent": 736, "children": [738, 741], "start_point": {"row": 161, "column": 16}, "end_point": {"row": 161, "column": 33}}, {"id": 738, "type": "field_expression", "text": "req.cmd", "parent": 737, "children": [739, 740], "start_point": {"row": 161, "column": 16}, "end_point": {"row": 161, "column": 23}}, {"id": 739, "type": "identifier", "text": "req", "parent": 738, "children": [], "start_point": {"row": 161, "column": 16}, "end_point": {"row": 161, "column": 19}}, {"id": 740, "type": "field_identifier", "text": "cmd", "parent": 738, "children": [], "start_point": {"row": 161, "column": 20}, "end_point": {"row": 161, "column": 23}}, {"id": 741, "type": "field_identifier", "text": "write_req", "parent": 737, "children": [], "start_point": {"row": 161, "column": 24}, "end_point": {"row": 161, "column": 33}}, {"id": 742, "type": "field_identifier", "text": "save", "parent": 736, "children": [], "start_point": {"row": 161, "column": 34}, "end_point": {"row": 161, "column": 38}}, {"id": 743, "type": "=", "text": "=", "parent": 735, "children": [], "start_point": {"row": 161, "column": 39}, "end_point": {"row": 161, "column": 40}}, {"id": 744, "type": "number_literal", "text": "0", "parent": 735, "children": [], "start_point": {"row": 161, "column": 41}, "end_point": {"row": 161, "column": 42}}, {"id": 745, "type": "call_expression", "text": "META_Dfo_OP(&req)", "parent": 636, "children": [746, 747], "start_point": {"row": 163, "column": 12}, "end_point": {"row": 163, "column": 29}}, {"id": 746, "type": "identifier", "text": "META_Dfo_OP", "parent": 745, "children": [], "start_point": {"row": 163, "column": 12}, "end_point": {"row": 163, "column": 23}}, {"id": 747, "type": "argument_list", "text": "(&req)", "parent": 745, "children": [748], "start_point": {"row": 163, "column": 23}, "end_point": {"row": 163, "column": 29}}, {"id": 748, "type": "pointer_expression", "text": "&req", "parent": 747, "children": [749], "start_point": {"row": 163, "column": 24}, "end_point": {"row": 163, "column": 28}}, {"id": 749, "type": "identifier", "text": "req", "parent": 748, "children": [], "start_point": {"row": 163, "column": 25}, "end_point": {"row": 163, "column": 28}}, {"id": 750, "type": "declaration", "text": "FT_DFO_REQ req;", "parent": 492, "children": [751, 752], "start_point": {"row": 169, "column": 8}, "end_point": {"row": 169, "column": 23}}, {"id": 751, "type": "type_identifier", "text": "FT_DFO_REQ", "parent": 750, "children": [], "start_point": {"row": 169, "column": 8}, "end_point": {"row": 169, "column": 18}}, {"id": 752, "type": "identifier", "text": "req", "parent": 750, "children": [], "start_point": {"row": 169, "column": 19}, "end_point": {"row": 169, "column": 22}}, {"id": 753, "type": "call_expression", "text": "memset(&req, 0, sizeof(FT_DFO_REQ))", "parent": 492, "children": [754, 755], "start_point": {"row": 170, "column": 8}, "end_point": {"row": 170, "column": 43}}, {"id": 754, "type": "identifier", "text": "memset", "parent": 753, "children": [], "start_point": {"row": 170, "column": 8}, "end_point": {"row": 170, "column": 14}}, {"id": 755, "type": "argument_list", "text": "(&req, 0, sizeof(FT_DFO_REQ))", "parent": 753, "children": [756, 758, 759], "start_point": {"row": 170, "column": 14}, "end_point": {"row": 170, "column": 43}}, {"id": 756, "type": "pointer_expression", "text": "&req", "parent": 755, "children": [757], "start_point": {"row": 170, "column": 15}, "end_point": {"row": 170, "column": 19}}, {"id": 757, "type": "identifier", "text": "req", "parent": 756, "children": [], "start_point": {"row": 170, "column": 16}, "end_point": {"row": 170, "column": 19}}, {"id": 758, "type": "number_literal", "text": "0", "parent": 755, "children": [], "start_point": {"row": 170, "column": 21}, "end_point": {"row": 170, "column": 22}}, {"id": 759, "type": "sizeof_expression", "text": "sizeof(FT_DFO_REQ)", "parent": 755, "children": [760], "start_point": {"row": 170, "column": 24}, "end_point": {"row": 170, "column": 42}}, {"id": 760, "type": "parenthesized_expression", "text": "(FT_DFO_REQ)", "parent": 759, "children": [761], "start_point": {"row": 170, "column": 30}, "end_point": {"row": 170, "column": 42}}, {"id": 761, "type": "identifier", "text": "FT_DFO_REQ", "parent": 760, "children": [], "start_point": {"row": 170, "column": 31}, "end_point": {"row": 170, "column": 41}}, {"id": 762, "type": "assignment_expression", "text": "req.header.id = FT_DFO_REQ_ID", "parent": 492, "children": [763, 768, 769], "start_point": {"row": 171, "column": 8}, "end_point": {"row": 171, "column": 37}}, {"id": 763, "type": "field_expression", "text": "req.header.id", "parent": 762, "children": [764, 767], "start_point": {"row": 171, "column": 8}, "end_point": {"row": 171, "column": 21}}, {"id": 764, "type": "field_expression", "text": "req.header", "parent": 763, "children": [765, 766], "start_point": {"row": 171, "column": 8}, "end_point": {"row": 171, "column": 18}}, {"id": 765, "type": "identifier", "text": "req", "parent": 764, "children": [], "start_point": {"row": 171, "column": 8}, "end_point": {"row": 171, "column": 11}}, {"id": 766, "type": "field_identifier", "text": "header", "parent": 764, "children": [], "start_point": {"row": 171, "column": 12}, "end_point": {"row": 171, "column": 18}}, {"id": 767, "type": "field_identifier", "text": "id", "parent": 763, "children": [], "start_point": {"row": 171, "column": 19}, "end_point": {"row": 171, "column": 21}}, {"id": 768, "type": "=", "text": "=", "parent": 762, "children": [], "start_point": {"row": 171, "column": 22}, "end_point": {"row": 171, "column": 23}}, {"id": 769, "type": "identifier", "text": "FT_DFO_REQ_ID", "parent": 762, "children": [], "start_point": {"row": 171, "column": 24}, "end_point": {"row": 171, "column": 37}}, {"id": 770, "type": "assignment_expression", "text": "req.op = DFO_OP_COMBO_COUNT", "parent": 492, "children": [771, 774, 775], "start_point": {"row": 172, "column": 8}, "end_point": {"row": 172, "column": 35}}, {"id": 771, "type": "field_expression", "text": "req.op", "parent": 770, "children": [772, 773], "start_point": {"row": 172, "column": 8}, "end_point": {"row": 172, "column": 14}}, {"id": 772, "type": "identifier", "text": "req", "parent": 771, "children": [], "start_point": {"row": 172, "column": 8}, "end_point": {"row": 172, "column": 11}}, {"id": 773, "type": "field_identifier", "text": "op", "parent": 771, "children": [], "start_point": {"row": 172, "column": 12}, "end_point": {"row": 172, "column": 14}}, {"id": 774, "type": "=", "text": "=", "parent": 770, "children": [], "start_point": {"row": 172, "column": 15}, "end_point": {"row": 172, "column": 16}}, {"id": 775, "type": "identifier", "text": "DFO_OP_COMBO_COUNT", "parent": 770, "children": [], "start_point": {"row": 172, "column": 17}, "end_point": {"row": 172, "column": 35}}, {"id": 776, "type": "call_expression", "text": "META_Dfo_OP(&req)", "parent": 492, "children": [777, 778], "start_point": {"row": 173, "column": 8}, "end_point": {"row": 173, "column": 25}}, {"id": 777, "type": "identifier", "text": "META_Dfo_OP", "parent": 776, "children": [], "start_point": {"row": 173, "column": 8}, "end_point": {"row": 173, "column": 19}}, {"id": 778, "type": "argument_list", "text": "(&req)", "parent": 776, "children": [779], "start_point": {"row": 173, "column": 19}, "end_point": {"row": 173, "column": 25}}, {"id": 779, "type": "pointer_expression", "text": "&req", "parent": 778, "children": [780], "start_point": {"row": 173, "column": 20}, "end_point": {"row": 173, "column": 24}}, {"id": 780, "type": "identifier", "text": "req", "parent": 779, "children": [], "start_point": {"row": 173, "column": 21}, "end_point": {"row": 173, "column": 24}}, {"id": 781, "type": "declaration", "text": "FT_DFO_REQ req;", "parent": 492, "children": [782, 783], "start_point": {"row": 178, "column": 8}, "end_point": {"row": 178, "column": 23}}, {"id": 782, "type": "type_identifier", "text": "FT_DFO_REQ", "parent": 781, "children": [], "start_point": {"row": 178, "column": 8}, "end_point": {"row": 178, "column": 18}}, {"id": 783, "type": "identifier", "text": "req", "parent": 781, "children": [], "start_point": {"row": 178, "column": 19}, "end_point": {"row": 178, "column": 22}}, {"id": 784, "type": "call_expression", "text": "memset(&req, 0, sizeof(FT_DFO_REQ))", "parent": 492, "children": [785, 786], "start_point": {"row": 179, "column": 8}, "end_point": {"row": 179, "column": 43}}, {"id": 785, "type": "identifier", "text": "memset", "parent": 784, "children": [], "start_point": {"row": 179, "column": 8}, "end_point": {"row": 179, "column": 14}}, {"id": 786, "type": "argument_list", "text": "(&req, 0, sizeof(FT_DFO_REQ))", "parent": 784, "children": [787, 789, 790], "start_point": {"row": 179, "column": 14}, "end_point": {"row": 179, "column": 43}}, {"id": 787, "type": "pointer_expression", "text": "&req", "parent": 786, "children": [788], "start_point": {"row": 179, "column": 15}, "end_point": {"row": 179, "column": 19}}, {"id": 788, "type": "identifier", "text": "req", "parent": 787, "children": [], "start_point": {"row": 179, "column": 16}, "end_point": {"row": 179, "column": 19}}, {"id": 789, "type": "number_literal", "text": "0", "parent": 786, "children": [], "start_point": {"row": 179, "column": 21}, "end_point": {"row": 179, "column": 22}}, {"id": 790, "type": "sizeof_expression", "text": "sizeof(FT_DFO_REQ)", "parent": 786, "children": [791], "start_point": {"row": 179, "column": 24}, "end_point": {"row": 179, "column": 42}}, {"id": 791, "type": "parenthesized_expression", "text": "(FT_DFO_REQ)", "parent": 790, "children": [792], "start_point": {"row": 179, "column": 30}, "end_point": {"row": 179, "column": 42}}, {"id": 792, "type": "identifier", "text": "FT_DFO_REQ", "parent": 791, "children": [], "start_point": {"row": 179, "column": 31}, "end_point": {"row": 179, "column": 41}}, {"id": 793, "type": "assignment_expression", "text": "req.header.id = FT_DFO_REQ_ID", "parent": 492, "children": [794, 799, 800], "start_point": {"row": 180, "column": 8}, "end_point": {"row": 180, "column": 37}}, {"id": 794, "type": "field_expression", "text": "req.header.id", "parent": 793, "children": [795, 798], "start_point": {"row": 180, "column": 8}, "end_point": {"row": 180, "column": 21}}, {"id": 795, "type": "field_expression", "text": "req.header", "parent": 794, "children": [796, 797], "start_point": {"row": 180, "column": 8}, "end_point": {"row": 180, "column": 18}}, {"id": 796, "type": "identifier", "text": "req", "parent": 795, "children": [], "start_point": {"row": 180, "column": 8}, "end_point": {"row": 180, "column": 11}}, {"id": 797, "type": "field_identifier", "text": "header", "parent": 795, "children": [], "start_point": {"row": 180, "column": 12}, "end_point": {"row": 180, "column": 18}}, {"id": 798, "type": "field_identifier", "text": "id", "parent": 794, "children": [], "start_point": {"row": 180, "column": 19}, "end_point": {"row": 180, "column": 21}}, {"id": 799, "type": "=", "text": "=", "parent": 793, "children": [], "start_point": {"row": 180, "column": 22}, "end_point": {"row": 180, "column": 23}}, {"id": 800, "type": "identifier", "text": "FT_DFO_REQ_ID", "parent": 793, "children": [], "start_point": {"row": 180, "column": 24}, "end_point": {"row": 180, "column": 37}}, {"id": 801, "type": "assignment_expression", "text": "req.op = DFO_OP_COMBO_READ", "parent": 492, "children": [802, 805, 806], "start_point": {"row": 181, "column": 8}, "end_point": {"row": 181, "column": 34}}, {"id": 802, "type": "field_expression", "text": "req.op", "parent": 801, "children": [803, 804], "start_point": {"row": 181, "column": 8}, "end_point": {"row": 181, "column": 14}}, {"id": 803, "type": "identifier", "text": "req", "parent": 802, "children": [], "start_point": {"row": 181, "column": 8}, "end_point": {"row": 181, "column": 11}}, {"id": 804, "type": "field_identifier", "text": "op", "parent": 802, "children": [], "start_point": {"row": 181, "column": 12}, "end_point": {"row": 181, "column": 14}}, {"id": 805, "type": "=", "text": "=", "parent": 801, "children": [], "start_point": {"row": 181, "column": 15}, "end_point": {"row": 181, "column": 16}}, {"id": 806, "type": "identifier", "text": "DFO_OP_COMBO_READ", "parent": 801, "children": [], "start_point": {"row": 181, "column": 17}, "end_point": {"row": 181, "column": 34}}, {"id": 807, "type": "declaration", "text": "int i = 0;", "parent": 492, "children": [808, 809], "start_point": {"row": 183, "column": 8}, "end_point": {"row": 183, "column": 18}}, {"id": 808, "type": "primitive_type", "text": "int", "parent": 807, "children": [], "start_point": {"row": 183, "column": 8}, "end_point": {"row": 183, "column": 11}}, {"id": 809, "type": "init_declarator", "text": "i = 0", "parent": 807, "children": [810, 811, 812], "start_point": {"row": 183, "column": 12}, "end_point": {"row": 183, "column": 17}}, {"id": 810, "type": "identifier", "text": "i", "parent": 809, "children": [], "start_point": {"row": 183, "column": 12}, "end_point": {"row": 183, "column": 13}}, {"id": 811, "type": "=", "text": "=", "parent": 809, "children": [], "start_point": {"row": 183, "column": 14}, "end_point": {"row": 183, "column": 15}}, {"id": 812, "type": "number_literal", "text": "0", "parent": 809, "children": [], "start_point": {"row": 183, "column": 16}, "end_point": {"row": 183, "column": 17}}, {"id": 813, "type": "for_statement", "text": "for (; i < g_comboCount; i++)\n {\n req.cmd.combo_read_req.index = i;\n g_curCombo = i;\n META_Dfo_OP(&req);\n \n // test read dfo combo mode\n FT_DFO_REQ req2;\n memset(&req2, 0, sizeof(FT_DFO_REQ));\n req2.header.id = FT_DFO_REQ_ID;\n req2.op = DFO_OP_COMBO_MODE;\n \n int j = 0;\n for (; j < g_comboArray[g_curCombo].modeCount; j++)\n {\n req2.cmd.combo_mode_req.index = i;\n req2.cmd.combo_mode_req.modeIndex = j;\n g_curComboMode = j;\n META_Dfo_OP(&req2);\n }\n }", "parent": 492, "children": [814, 818], "start_point": {"row": 184, "column": 8}, "end_point": {"row": 204, "column": 9}}, {"id": 814, "type": "binary_expression", "text": "i < g_comboCount", "parent": 813, "children": [815, 816, 817], "start_point": {"row": 184, "column": 15}, "end_point": {"row": 184, "column": 31}}, {"id": 815, "type": "identifier", "text": "i", "parent": 814, "children": [], "start_point": {"row": 184, "column": 15}, "end_point": {"row": 184, "column": 16}}, {"id": 816, "type": "<", "text": "<", "parent": 814, "children": [], "start_point": {"row": 184, "column": 17}, "end_point": {"row": 184, "column": 18}}, {"id": 817, "type": "identifier", "text": "g_comboCount", "parent": 814, "children": [], "start_point": {"row": 184, "column": 19}, "end_point": {"row": 184, "column": 31}}, {"id": 818, "type": "update_expression", "text": "i++", "parent": 813, "children": [819, 820], "start_point": {"row": 184, "column": 33}, "end_point": {"row": 184, "column": 36}}, {"id": 819, "type": "identifier", "text": "i", "parent": 818, "children": [], "start_point": {"row": 184, "column": 33}, "end_point": {"row": 184, "column": 34}}, {"id": 820, "type": "++", "text": "++", "parent": 818, "children": [], "start_point": {"row": 184, "column": 34}, "end_point": {"row": 184, "column": 36}}, {"id": 821, "type": "assignment_expression", "text": "req.cmd.combo_read_req.index = i", "parent": 813, "children": [822, 829, 830], "start_point": {"row": 186, "column": 12}, "end_point": {"row": 186, "column": 44}}, {"id": 822, "type": "field_expression", "text": "req.cmd.combo_read_req.index", "parent": 821, "children": [823, 828], "start_point": {"row": 186, "column": 12}, "end_point": {"row": 186, "column": 40}}, {"id": 823, "type": "field_expression", "text": "req.cmd.combo_read_req", "parent": 822, "children": [824, 827], "start_point": {"row": 186, "column": 12}, "end_point": {"row": 186, "column": 34}}, {"id": 824, "type": "field_expression", "text": "req.cmd", "parent": 823, "children": [825, 826], "start_point": {"row": 186, "column": 12}, "end_point": {"row": 186, "column": 19}}, {"id": 825, "type": "identifier", "text": "req", "parent": 824, "children": [], "start_point": {"row": 186, "column": 12}, "end_point": {"row": 186, "column": 15}}, {"id": 826, "type": "field_identifier", "text": "cmd", "parent": 824, "children": [], "start_point": {"row": 186, "column": 16}, "end_point": {"row": 186, "column": 19}}, {"id": 827, "type": "field_identifier", "text": "combo_read_req", "parent": 823, "children": [], "start_point": {"row": 186, "column": 20}, "end_point": {"row": 186, "column": 34}}, {"id": 828, "type": "field_identifier", "text": "index", "parent": 822, "children": [], "start_point": {"row": 186, "column": 35}, "end_point": {"row": 186, "column": 40}}, {"id": 829, "type": "=", "text": "=", "parent": 821, "children": [], "start_point": {"row": 186, "column": 41}, "end_point": {"row": 186, "column": 42}}, {"id": 830, "type": "identifier", "text": "i", "parent": 821, "children": [], "start_point": {"row": 186, "column": 43}, "end_point": {"row": 186, "column": 44}}, {"id": 831, "type": "assignment_expression", "text": "g_curCombo = i", "parent": 813, "children": [832, 833, 834], "start_point": {"row": 187, "column": 12}, "end_point": {"row": 187, "column": 26}}, {"id": 832, "type": "identifier", "text": "g_curCombo", "parent": 831, "children": [], "start_point": {"row": 187, "column": 12}, "end_point": {"row": 187, "column": 22}}, {"id": 833, "type": "=", "text": "=", "parent": 831, "children": [], "start_point": {"row": 187, "column": 23}, "end_point": {"row": 187, "column": 24}}, {"id": 834, "type": "identifier", "text": "i", "parent": 831, "children": [], "start_point": {"row": 187, "column": 25}, "end_point": {"row": 187, "column": 26}}, {"id": 835, "type": "call_expression", "text": "META_Dfo_OP(&req)", "parent": 813, "children": [836, 837], "start_point": {"row": 188, "column": 12}, "end_point": {"row": 188, "column": 29}}, {"id": 836, "type": "identifier", "text": "META_Dfo_OP", "parent": 835, "children": [], "start_point": {"row": 188, "column": 12}, "end_point": {"row": 188, "column": 23}}, {"id": 837, "type": "argument_list", "text": "(&req)", "parent": 835, "children": [838], "start_point": {"row": 188, "column": 23}, "end_point": {"row": 188, "column": 29}}, {"id": 838, "type": "pointer_expression", "text": "&req", "parent": 837, "children": [839], "start_point": {"row": 188, "column": 24}, "end_point": {"row": 188, "column": 28}}, {"id": 839, "type": "identifier", "text": "req", "parent": 838, "children": [], "start_point": {"row": 188, "column": 25}, "end_point": {"row": 188, "column": 28}}, {"id": 840, "type": "declaration", "text": "FT_DFO_REQ req2;", "parent": 813, "children": [841, 842], "start_point": {"row": 191, "column": 12}, "end_point": {"row": 191, "column": 28}}, {"id": 841, "type": "type_identifier", "text": "FT_DFO_REQ", "parent": 840, "children": [], "start_point": {"row": 191, "column": 12}, "end_point": {"row": 191, "column": 22}}, {"id": 842, "type": "identifier", "text": "req2", "parent": 840, "children": [], "start_point": {"row": 191, "column": 23}, "end_point": {"row": 191, "column": 27}}, {"id": 843, "type": "call_expression", "text": "memset(&req2, 0, sizeof(FT_DFO_REQ))", "parent": 813, "children": [844, 845], "start_point": {"row": 192, "column": 12}, "end_point": {"row": 192, "column": 48}}, {"id": 844, "type": "identifier", "text": "memset", "parent": 843, "children": [], "start_point": {"row": 192, "column": 12}, "end_point": {"row": 192, "column": 18}}, {"id": 845, "type": "argument_list", "text": "(&req2, 0, sizeof(FT_DFO_REQ))", "parent": 843, "children": [846, 848, 849], "start_point": {"row": 192, "column": 18}, "end_point": {"row": 192, "column": 48}}, {"id": 846, "type": "pointer_expression", "text": "&req2", "parent": 845, "children": [847], "start_point": {"row": 192, "column": 19}, "end_point": {"row": 192, "column": 24}}, {"id": 847, "type": "identifier", "text": "req2", "parent": 846, "children": [], "start_point": {"row": 192, "column": 20}, "end_point": {"row": 192, "column": 24}}, {"id": 848, "type": "number_literal", "text": "0", "parent": 845, "children": [], "start_point": {"row": 192, "column": 26}, "end_point": {"row": 192, "column": 27}}, {"id": 849, "type": "sizeof_expression", "text": "sizeof(FT_DFO_REQ)", "parent": 845, "children": [850], "start_point": {"row": 192, "column": 29}, "end_point": {"row": 192, "column": 47}}, {"id": 850, "type": "parenthesized_expression", "text": "(FT_DFO_REQ)", "parent": 849, "children": [851], "start_point": {"row": 192, "column": 35}, "end_point": {"row": 192, "column": 47}}, {"id": 851, "type": "identifier", "text": "FT_DFO_REQ", "parent": 850, "children": [], "start_point": {"row": 192, "column": 36}, "end_point": {"row": 192, "column": 46}}, {"id": 852, "type": "assignment_expression", "text": "req2.header.id = FT_DFO_REQ_ID", "parent": 813, "children": [853, 858, 859], "start_point": {"row": 193, "column": 12}, "end_point": {"row": 193, "column": 42}}, {"id": 853, "type": "field_expression", "text": "req2.header.id", "parent": 852, "children": [854, 857], "start_point": {"row": 193, "column": 12}, "end_point": {"row": 193, "column": 26}}, {"id": 854, "type": "field_expression", "text": "req2.header", "parent": 853, "children": [855, 856], "start_point": {"row": 193, "column": 12}, "end_point": {"row": 193, "column": 23}}, {"id": 855, "type": "identifier", "text": "req2", "parent": 854, "children": [], "start_point": {"row": 193, "column": 12}, "end_point": {"row": 193, "column": 16}}, {"id": 856, "type": "field_identifier", "text": "header", "parent": 854, "children": [], "start_point": {"row": 193, "column": 17}, "end_point": {"row": 193, "column": 23}}, {"id": 857, "type": "field_identifier", "text": "id", "parent": 853, "children": [], "start_point": {"row": 193, "column": 24}, "end_point": {"row": 193, "column": 26}}, {"id": 858, "type": "=", "text": "=", "parent": 852, "children": [], "start_point": {"row": 193, "column": 27}, "end_point": {"row": 193, "column": 28}}, {"id": 859, "type": "identifier", "text": "FT_DFO_REQ_ID", "parent": 852, "children": [], "start_point": {"row": 193, "column": 29}, "end_point": {"row": 193, "column": 42}}, {"id": 860, "type": "assignment_expression", "text": "req2.op = DFO_OP_COMBO_MODE", "parent": 813, "children": [861, 864, 865], "start_point": {"row": 194, "column": 12}, "end_point": {"row": 194, "column": 39}}, {"id": 861, "type": "field_expression", "text": "req2.op", "parent": 860, "children": [862, 863], "start_point": {"row": 194, "column": 12}, "end_point": {"row": 194, "column": 19}}, {"id": 862, "type": "identifier", "text": "req2", "parent": 861, "children": [], "start_point": {"row": 194, "column": 12}, "end_point": {"row": 194, "column": 16}}, {"id": 863, "type": "field_identifier", "text": "op", "parent": 861, "children": [], "start_point": {"row": 194, "column": 17}, "end_point": {"row": 194, "column": 19}}, {"id": 864, "type": "=", "text": "=", "parent": 860, "children": [], "start_point": {"row": 194, "column": 20}, "end_point": {"row": 194, "column": 21}}, {"id": 865, "type": "identifier", "text": "DFO_OP_COMBO_MODE", "parent": 860, "children": [], "start_point": {"row": 194, "column": 22}, "end_point": {"row": 194, "column": 39}}, {"id": 866, "type": "declaration", "text": "int j = 0;", "parent": 813, "children": [867, 868], "start_point": {"row": 196, "column": 12}, "end_point": {"row": 196, "column": 22}}, {"id": 867, "type": "primitive_type", "text": "int", "parent": 866, "children": [], "start_point": {"row": 196, "column": 12}, "end_point": {"row": 196, "column": 15}}, {"id": 868, "type": "init_declarator", "text": "j = 0", "parent": 866, "children": [869, 870, 871], "start_point": {"row": 196, "column": 16}, "end_point": {"row": 196, "column": 21}}, {"id": 869, "type": "identifier", "text": "j", "parent": 868, "children": [], "start_point": {"row": 196, "column": 16}, "end_point": {"row": 196, "column": 17}}, {"id": 870, "type": "=", "text": "=", "parent": 868, "children": [], "start_point": {"row": 196, "column": 18}, "end_point": {"row": 196, "column": 19}}, {"id": 871, "type": "number_literal", "text": "0", "parent": 868, "children": [], "start_point": {"row": 196, "column": 20}, "end_point": {"row": 196, "column": 21}}, {"id": 872, "type": "for_statement", "text": "for (; j < g_comboArray[g_curCombo].modeCount; j++)\n {\n req2.cmd.combo_mode_req.index = i;\n req2.cmd.combo_mode_req.modeIndex = j;\n g_curComboMode = j;\n META_Dfo_OP(&req2);\n }", "parent": 813, "children": [873, 881], "start_point": {"row": 197, "column": 12}, "end_point": {"row": 203, "column": 13}}, {"id": 873, "type": "binary_expression", "text": "j < g_comboArray[g_curCombo].modeCount", "parent": 872, "children": [874, 875, 876], "start_point": {"row": 197, "column": 19}, "end_point": {"row": 197, "column": 57}}, {"id": 874, "type": "identifier", "text": "j", "parent": 873, "children": [], "start_point": {"row": 197, "column": 19}, "end_point": {"row": 197, "column": 20}}, {"id": 875, "type": "<", "text": "<", "parent": 873, "children": [], "start_point": {"row": 197, "column": 21}, "end_point": {"row": 197, "column": 22}}, {"id": 876, "type": "field_expression", "text": "g_comboArray[g_curCombo].modeCount", "parent": 873, "children": [877, 880], "start_point": {"row": 197, "column": 23}, "end_point": {"row": 197, "column": 57}}, {"id": 877, "type": "subscript_expression", "text": "g_comboArray[g_curCombo]", "parent": 876, "children": [878, 879], "start_point": {"row": 197, "column": 23}, "end_point": {"row": 197, "column": 47}}, {"id": 878, "type": "identifier", "text": "g_comboArray", "parent": 877, "children": [], "start_point": {"row": 197, "column": 23}, "end_point": {"row": 197, "column": 35}}, {"id": 879, "type": "identifier", "text": "g_curCombo", "parent": 877, "children": [], "start_point": {"row": 197, "column": 36}, "end_point": {"row": 197, "column": 46}}, {"id": 880, "type": "field_identifier", "text": "modeCount", "parent": 876, "children": [], "start_point": {"row": 197, "column": 48}, "end_point": {"row": 197, "column": 57}}, {"id": 881, "type": "update_expression", "text": "j++", "parent": 872, "children": [882, 883], "start_point": {"row": 197, "column": 59}, "end_point": {"row": 197, "column": 62}}, {"id": 882, "type": "identifier", "text": "j", "parent": 881, "children": [], "start_point": {"row": 197, "column": 59}, "end_point": {"row": 197, "column": 60}}, {"id": 883, "type": "++", "text": "++", "parent": 881, "children": [], "start_point": {"row": 197, "column": 60}, "end_point": {"row": 197, "column": 62}}, {"id": 884, "type": "assignment_expression", "text": "req2.cmd.combo_mode_req.index = i", "parent": 872, "children": [885, 892, 893], "start_point": {"row": 199, "column": 16}, "end_point": {"row": 199, "column": 49}}, {"id": 885, "type": "field_expression", "text": "req2.cmd.combo_mode_req.index", "parent": 884, "children": [886, 891], "start_point": {"row": 199, "column": 16}, "end_point": {"row": 199, "column": 45}}, {"id": 886, "type": "field_expression", "text": "req2.cmd.combo_mode_req", "parent": 885, "children": [887, 890], "start_point": {"row": 199, "column": 16}, "end_point": {"row": 199, "column": 39}}, {"id": 887, "type": "field_expression", "text": "req2.cmd", "parent": 886, "children": [888, 889], "start_point": {"row": 199, "column": 16}, "end_point": {"row": 199, "column": 24}}, {"id": 888, "type": "identifier", "text": "req2", "parent": 887, "children": [], "start_point": {"row": 199, "column": 16}, "end_point": {"row": 199, "column": 20}}, {"id": 889, "type": "field_identifier", "text": "cmd", "parent": 887, "children": [], "start_point": {"row": 199, "column": 21}, "end_point": {"row": 199, "column": 24}}, {"id": 890, "type": "field_identifier", "text": "combo_mode_req", "parent": 886, "children": [], "start_point": {"row": 199, "column": 25}, "end_point": {"row": 199, "column": 39}}, {"id": 891, "type": "field_identifier", "text": "index", "parent": 885, "children": [], "start_point": {"row": 199, "column": 40}, "end_point": {"row": 199, "column": 45}}, {"id": 892, "type": "=", "text": "=", "parent": 884, "children": [], "start_point": {"row": 199, "column": 46}, "end_point": {"row": 199, "column": 47}}, {"id": 893, "type": "identifier", "text": "i", "parent": 884, "children": [], "start_point": {"row": 199, "column": 48}, "end_point": {"row": 199, "column": 49}}, {"id": 894, "type": "assignment_expression", "text": "req2.cmd.combo_mode_req.modeIndex = j", "parent": 872, "children": [895, 902, 903], "start_point": {"row": 200, "column": 16}, "end_point": {"row": 200, "column": 53}}, {"id": 895, "type": "field_expression", "text": "req2.cmd.combo_mode_req.modeIndex", "parent": 894, "children": [896, 901], "start_point": {"row": 200, "column": 16}, "end_point": {"row": 200, "column": 49}}, {"id": 896, "type": "field_expression", "text": "req2.cmd.combo_mode_req", "parent": 895, "children": [897, 900], "start_point": {"row": 200, "column": 16}, "end_point": {"row": 200, "column": 39}}, {"id": 897, "type": "field_expression", "text": "req2.cmd", "parent": 896, "children": [898, 899], "start_point": {"row": 200, "column": 16}, "end_point": {"row": 200, "column": 24}}, {"id": 898, "type": "identifier", "text": "req2", "parent": 897, "children": [], "start_point": {"row": 200, "column": 16}, "end_point": {"row": 200, "column": 20}}, {"id": 899, "type": "field_identifier", "text": "cmd", "parent": 897, "children": [], "start_point": {"row": 200, "column": 21}, "end_point": {"row": 200, "column": 24}}, {"id": 900, "type": "field_identifier", "text": "combo_mode_req", "parent": 896, "children": [], "start_point": {"row": 200, "column": 25}, "end_point": {"row": 200, "column": 39}}, {"id": 901, "type": "field_identifier", "text": "modeIndex", "parent": 895, "children": [], "start_point": {"row": 200, "column": 40}, "end_point": {"row": 200, "column": 49}}, {"id": 902, "type": "=", "text": "=", "parent": 894, "children": [], "start_point": {"row": 200, "column": 50}, "end_point": {"row": 200, "column": 51}}, {"id": 903, "type": "identifier", "text": "j", "parent": 894, "children": [], "start_point": {"row": 200, "column": 52}, "end_point": {"row": 200, "column": 53}}, {"id": 904, "type": "assignment_expression", "text": "g_curComboMode = j", "parent": 872, "children": [905, 906, 907], "start_point": {"row": 201, "column": 16}, "end_point": {"row": 201, "column": 34}}, {"id": 905, "type": "identifier", "text": "g_curComboMode", "parent": 904, "children": [], "start_point": {"row": 201, "column": 16}, "end_point": {"row": 201, "column": 30}}, {"id": 906, "type": "=", "text": "=", "parent": 904, "children": [], "start_point": {"row": 201, "column": 31}, "end_point": {"row": 201, "column": 32}}, {"id": 907, "type": "identifier", "text": "j", "parent": 904, "children": [], "start_point": {"row": 201, "column": 33}, "end_point": {"row": 201, "column": 34}}, {"id": 908, "type": "call_expression", "text": "META_Dfo_OP(&req2)", "parent": 872, "children": [909, 910], "start_point": {"row": 202, "column": 16}, "end_point": {"row": 202, "column": 34}}, {"id": 909, "type": "identifier", "text": "META_Dfo_OP", "parent": 908, "children": [], "start_point": {"row": 202, "column": 16}, "end_point": {"row": 202, "column": 27}}, {"id": 910, "type": "argument_list", "text": "(&req2)", "parent": 908, "children": [911], "start_point": {"row": 202, "column": 27}, "end_point": {"row": 202, "column": 34}}, {"id": 911, "type": "pointer_expression", "text": "&req2", "parent": 910, "children": [912], "start_point": {"row": 202, "column": 28}, "end_point": {"row": 202, "column": 33}}, {"id": 912, "type": "identifier", "text": "req2", "parent": 911, "children": [], "start_point": {"row": 202, "column": 29}, "end_point": {"row": 202, "column": 33}}, {"id": 913, "type": "call_expression", "text": "META_Dfo_Deinit()", "parent": 492, "children": [914, 915], "start_point": {"row": 211, "column": 4}, "end_point": {"row": 211, "column": 21}}, {"id": 914, "type": "identifier", "text": "META_Dfo_Deinit", "parent": 913, "children": [], "start_point": {"row": 211, "column": 4}, "end_point": {"row": 211, "column": 19}}, {"id": 915, "type": "argument_list", "text": "()", "parent": 913, "children": [], "start_point": {"row": 211, "column": 19}, "end_point": {"row": 211, "column": 21}}, {"id": 916, "type": "call_expression", "text": "META_Dfo_SetCallback(NULL)", "parent": 492, "children": [917, 918], "start_point": {"row": 212, "column": 4}, "end_point": {"row": 212, "column": 30}}, {"id": 917, "type": "identifier", "text": "META_Dfo_SetCallback", "parent": 916, "children": [], "start_point": {"row": 212, "column": 4}, "end_point": {"row": 212, "column": 24}}, {"id": 918, "type": "argument_list", "text": "(NULL)", "parent": 916, "children": [919], "start_point": {"row": 212, "column": 24}, "end_point": {"row": 212, "column": 30}}, {"id": 919, "type": "null", "text": "NULL", "parent": 918, "children": [920], "start_point": {"row": 212, "column": 25}, "end_point": {"row": 212, "column": 29}}, {"id": 920, "type": "NULL", "text": "NULL", "parent": 919, "children": [], "start_point": {"row": 212, "column": 25}, "end_point": {"row": 212, "column": 29}}, {"id": 921, "type": "return_statement", "text": "return 0;", "parent": 492, "children": [922], "start_point": {"row": 216, "column": 4}, "end_point": {"row": 216, "column": 13}}, {"id": 922, "type": "number_literal", "text": "0", "parent": 921, "children": [], "start_point": {"row": 216, "column": 11}, "end_point": {"row": 216, "column": 12}}]}, "node_categories": {"declarations": {"functions": [101, 103, 492, 494], "variables": [9, 13, 18, 21, 25, 29, 35, 39, 44, 47, 53, 59, 68, 74, 80, 89, 95, 106, 111, 129, 142, 497, 500, 514, 545, 571, 604, 630, 750, 781, 807, 840, 866], "classes": [11, 12, 27, 28, 37, 38], "imports": [0, 1, 3, 4, 6, 7], "modules": [], "enums": []}, "statements": {"expressions": [117, 118, 123, 136, 147, 151, 152, 159, 160, 161, 166, 173, 174, 179, 181, 193, 198, 201, 202, 203, 209, 210, 214, 220, 221, 222, 227, 228, 229, 234, 235, 236, 241, 244, 245, 249, 250, 251, 257, 258, 263, 264, 265, 271, 272, 277, 278, 279, 286, 287, 291, 296, 301, 302, 309, 310, 311, 316, 323, 324, 329, 331, 343, 348, 351, 352, 353, 359, 360, 364, 370, 371, 372, 377, 378, 379, 384, 387, 388, 392, 393, 394, 400, 401, 406, 407, 408, 414, 415, 420, 425, 428, 429, 430, 433, 434, 440, 441, 445, 452, 453, 454, 459, 462, 463, 464, 465, 471, 472, 473, 480, 481, 486, 507, 511, 517, 520, 523, 524, 527, 528, 535, 540, 543, 548, 551, 554, 555, 558, 559, 566, 578, 582, 586, 587, 588, 599, 602, 607, 610, 613, 614, 617, 618, 625, 637, 641, 644, 649, 650, 655, 658, 659, 660, 665, 666, 671, 672, 673, 679, 680, 685, 686, 687, 688, 695, 696, 697, 706, 707, 708, 716, 717, 720, 725, 726, 727, 736, 737, 738, 745, 748, 753, 756, 759, 760, 763, 764, 771, 776, 779, 784, 787, 790, 791, 794, 795, 802, 814, 818, 822, 823, 824, 835, 838, 843, 846, 849, 850, 853, 854, 861, 873, 876, 877, 881, 885, 886, 887, 895, 896, 897, 908, 911, 913, 916], "assignments": [156, 185, 190, 256, 270, 306, 335, 340, 399, 413, 526, 534, 557, 565, 585, 595, 616, 624, 670, 694, 705, 724, 735, 762, 770, 793, 801, 821, 831, 852, 860, 884, 894, 904], "loops": [577, 636, 813, 872], "conditionals": [16, 20, 23, 24, 32, 34, 42, 46, 48, 51, 52, 56, 60, 64, 71, 77, 81, 85, 92, 98, 104, 110, 112, 115, 116, 119, 124, 130, 134, 138, 141, 143, 145, 148, 149, 150, 153, 155, 157, 162, 163, 164, 165, 167, 171, 172, 175, 178, 180, 182, 184, 186, 191, 195, 199, 204, 206, 208, 211, 213, 215, 219, 223, 224, 225, 226, 230, 231, 232, 233, 237, 238, 239, 240, 242, 246, 247, 248, 252, 253, 254, 255, 259, 260, 261, 266, 267, 268, 269, 273, 274, 275, 280, 281, 282, 283, 285, 288, 290, 292, 297, 298, 300, 303, 305, 307, 312, 313, 314, 315, 317, 321, 322, 325, 328, 330, 332, 334, 336, 341, 345, 349, 354, 356, 358, 361, 363, 365, 369, 373, 374, 375, 376, 380, 381, 382, 383, 385, 389, 390, 391, 395, 396, 397, 398, 402, 403, 404, 409, 410, 411, 412, 416, 417, 418, 422, 426, 431, 435, 436, 437, 439, 442, 444, 446, 450, 451, 455, 456, 457, 458, 460, 466, 467, 468, 469, 470, 474, 475, 476, 477, 479, 482, 484, 487, 491, 495, 499, 506, 508, 510, 512, 515, 516, 518, 521, 525, 529, 530, 531, 533, 536, 537, 539, 541, 544, 546, 547, 549, 552, 556, 560, 561, 562, 564, 567, 568, 570, 574, 579, 581, 583, 589, 590, 591, 592, 594, 596, 598, 600, 603, 605, 606, 608, 611, 615, 619, 620, 621, 623, 626, 627, 629, 633, 638, 640, 642, 645, 651, 652, 653, 656, 661, 662, 663, 664, 667, 668, 669, 674, 675, 676, 677, 681, 682, 683, 684, 689, 690, 691, 698, 699, 700, 701, 709, 710, 711, 712, 715, 718, 721, 728, 729, 730, 731, 739, 740, 741, 742, 746, 749, 751, 752, 754, 757, 761, 765, 766, 767, 769, 772, 773, 775, 777, 780, 782, 783, 785, 788, 792, 796, 797, 798, 800, 803, 804, 806, 810, 815, 817, 819, 825, 826, 827, 828, 830, 832, 834, 836, 839, 841, 842, 844, 847, 851, 855, 856, 857, 859, 862, 863, 865, 869, 874, 878, 879, 880, 882, 888, 889, 890, 891, 893, 898, 899, 900, 901, 903, 905, 907, 909, 912, 914, 917], "returns": [128, 921], "exceptions": []}, "expressions": {"calls": [], "literals": [2, 5, 8, 17, 33, 43, 58, 73, 79, 94, 100, 126, 169, 177, 217, 294, 319, 327, 367, 448, 489, 522, 553, 576, 612, 635, 647, 654, 693, 703, 714, 723, 733, 744, 758, 789, 812, 848, 871, 922], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [{"node_id": 101, "universal_type": "function", "name": "dfo_callback", "text_snippet": "static void dfo_callback(void* buf, unsigned int size)\n{\n if (buf == NULL)\n {\n printf(\""}, {"node_id": 103, "universal_type": "function", "name": "size)", "text_snippet": "dfo_callback(void* buf, unsigned int size)"}, {"node_id": 492, "universal_type": "function", "name": "main", "text_snippet": "int main(int argc, const char** argv)\n{\n META_Dfo_SetCallback(dfo_callback);\n META_Dfo_Init();"}, {"node_id": 494, "universal_type": "function", "name": "unknown", "text_snippet": "main(int argc, const char** argv)"}], "class_declarations": [{"node_id": 11, "universal_type": "class", "name": "{", "text_snippet": "struct\n{\n char name[32];\n int value;\n int partition;\n}"}, {"node_id": 12, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 27, "universal_type": "class", "name": "{", "text_snippet": "struct\n{\n char name[32]; \n}"}, {"node_id": 28, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 37, "universal_type": "class", "name": "{", "text_snippet": "struct\n{\n char name[32];\n int modeCount;\n dfo_combo_mode_test* modeArray;\n}"}, {"node_id": 38, "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 \"meta_dfo.h\"\n"}, {"node_id": 7, "text": "#include"}]}, "original_source_code": "#include <stdio.h>\n#include <stdlib.h>\n#include \"meta_dfo.h\"\n\ntypedef struct\n{\n char name[32];\n int value;\n int partition;\n} dfo_test;\n\ntypedef struct\n{\n char name[32]; \n} dfo_combo_mode_test;\n\ntypedef struct\n{\n char name[32];\n int modeCount;\n dfo_combo_mode_test* modeArray;\n} dfo_combo_test;\n\nint g_dfoCount = 0;\ndfo_test* g_dfoArray = NULL;\nint g_curIndex = 0;\n\nint g_comboCount = 0;\ndfo_combo_test* g_comboArray = NULL;\nint g_curCombo = 0;\nint g_curComboMode = 0;\n\nstatic void dfo_callback(void* buf, unsigned int size)\n{\n if (buf == NULL)\n {\n printf(\"callback buffer is NULL\\n\");\n return;\n }\n \n FT_DFO_CNF* cnf = (FT_DFO_CNF*)buf;\n \n DFO_OP op = cnf->op;\n \n if (op == DFO_OP_READ_COUNT)\n {\n g_dfoCount = cnf->result.read_count_cnf.count;\n printf(\"DfoBoot count: (%d)\\n\", g_dfoCount);\n \n if (g_dfoCount > 0)\n {\n if (g_dfoArray)\n {\n free(g_dfoArray);\n g_dfoArray = NULL;\n }\n g_dfoArray = (dfo_test*)malloc(sizeof(dfo_test)*g_dfoCount);\n }\n }\n else if (op == DFO_OP_READ)\n {\n printf(\"Read(%d) name: (%s) value: (%d) partition: (%d)\\n\", g_curIndex,\n cnf->result.read_cnf.name, cnf->result.read_cnf.value, cnf->result.read_cnf.partition);\n strcpy(g_dfoArray[g_curIndex].name, cnf->result.read_cnf.name);\n g_dfoArray[g_curIndex].value = cnf->result.read_cnf.value;\n g_dfoArray[g_curIndex].partition = cnf->result.read_cnf.partition;\n }\n else if (op == DFO_OP_WRITE)\n {\n printf(\"Write result: (%d)\\n\", cnf->status);\n }\n else if (op == DFO_OP_COMBO_COUNT)\n {\n g_comboCount = cnf->result.combo_count_cnf.count;\n printf(\"Combo count: (%d)\\n\", g_comboCount);\n \n if (g_comboCount > 0)\n {\n if (g_comboArray)\n {\n free(g_comboArray);\n g_comboArray = NULL;\n }\n g_comboArray = (dfo_combo_test*)malloc(sizeof(dfo_combo_test)*g_comboCount);\n }\n }\n else if (op == DFO_OP_COMBO_READ)\n {\n printf(\"Combo Read(%d) name: (%s) mode count: (%d)\\n\", g_curCombo,\n cnf->result.combo_read_cnf.name, cnf->result.combo_read_cnf.modeCount);\n strcpy(g_comboArray[g_curCombo].name, cnf->result.combo_read_cnf.name);\n g_comboArray[g_curCombo].modeCount = cnf->result.combo_read_cnf.modeCount;\n g_comboArray[g_curCombo].modeArray = (dfo_combo_mode_test*)malloc(sizeof(dfo_combo_mode_test)*g_comboArray[g_curCombo].modeCount);\n }\n else if (op == DFO_OP_COMBO_MODE)\n {\n printf(\"Combo(%d) Mode(%d) name: (%s)\\n\", g_curCombo, g_curComboMode, cnf->result.combo_mode_cnf.name);\n strcpy(g_comboArray[g_curCombo].modeArray[g_curComboMode].name, cnf->result.combo_mode_cnf.name);\n }\n else if (op == DFO_OP_COMBO_UPDATE)\n {\n }\n else\n {\n printf(\"Wrong DFO OP: (%d)\\n\", op);\n }\n}\n\nint main(int argc, const char** argv)\n{\n META_Dfo_SetCallback(dfo_callback);\n META_Dfo_Init();\n \n // test read count\n {\n FT_DFO_REQ req;\n memset(&req, 0, sizeof(FT_DFO_REQ));\n req.header.id = FT_DFO_REQ_ID;\n req.op = DFO_OP_READ_COUNT;\n META_Dfo_OP(&req);\n }\n \n // test read dfo\n {\n FT_DFO_REQ req;\n memset(&req, 0, sizeof(FT_DFO_REQ));\n req.header.id = FT_DFO_REQ_ID;\n req.op = DFO_OP_READ;\n \n int i = 0;\n for (; i < g_dfoCount; i++)\n {\n req.cmd.read_req.index = i;\n g_curIndex = i;\n META_Dfo_OP(&req);\n }\n }\n\n // test write dfo\n {\n FT_DFO_REQ req;\n memset(&req, 0, sizeof(FT_DFO_REQ));\n req.header.id = FT_DFO_REQ_ID;\n req.op = DFO_OP_WRITE;\n\n int i = 0;\n for (; i < g_dfoCount; i++)\n {\n printf(\"META Dfo write: (%s, %d)\\n\", g_dfoArray[i].name, 2);\n strcpy(req.cmd.write_req.name, g_dfoArray[i].name);\n req.cmd.write_req.partition = g_dfoArray[i].partition;\n if (g_dfoArray[i].partition == 0)\n req.cmd.write_req.value = 6;\n else\n req.cmd.write_req.value = 16;\n if (i == g_dfoCount - 1)\n {\n req.cmd.write_req.save = 1;\n }\n else\n {\n req.cmd.write_req.save = 0;\n }\n META_Dfo_OP(&req);\n }\n }\n \n // test read dfo combo count\n {\n FT_DFO_REQ req;\n memset(&req, 0, sizeof(FT_DFO_REQ));\n req.header.id = FT_DFO_REQ_ID;\n req.op = DFO_OP_COMBO_COUNT;\n META_Dfo_OP(&req);\n }\n \n // test read dfo combo\n {\n FT_DFO_REQ req;\n memset(&req, 0, sizeof(FT_DFO_REQ));\n req.header.id = FT_DFO_REQ_ID;\n req.op = DFO_OP_COMBO_READ;\n \n int i = 0;\n for (; i < g_comboCount; i++)\n {\n req.cmd.combo_read_req.index = i;\n g_curCombo = i;\n META_Dfo_OP(&req);\n \n // test read dfo combo mode\n FT_DFO_REQ req2;\n memset(&req2, 0, sizeof(FT_DFO_REQ));\n req2.header.id = FT_DFO_REQ_ID;\n req2.op = DFO_OP_COMBO_MODE;\n \n int j = 0;\n for (; j < g_comboArray[g_curCombo].modeCount; j++)\n {\n req2.cmd.combo_mode_req.index = i;\n req2.cmd.combo_mode_req.modeIndex = j;\n g_curComboMode = j;\n META_Dfo_OP(&req2);\n }\n }\n }\n \n // test write dfo combo\n {\n }\n\n META_Dfo_Deinit();\n META_Dfo_SetCallback(NULL);\n \n // TODO: free memory\n \n return 0;\n}\n"}
80,059
c
// // ViewController.h // shakefun // // Created by zm on 15/9/9. // Copyright (c) 2015年 zm. All rights reserved. // #import <UIKit/UIKit.h> @interface ViewController : UIViewController @property (weak, nonatomic) IBOutlet UIWebView *webViewBrowser; - (IBAction)buttonNextToggle:(id)sender; - (IBAction)buttonCollectToggle:(id)sender; @end @interface NSString (TMNSStringExtensionMethods) - (NSArray *)componentsSeparatedFromString:(NSString *)fromString toString:(NSString *)toString; @end
29.94
16
(translation_unit) "//\n// ViewController.h\n// shakefun\n//\n// Created by zm on 15/9/9.\n// Copyright (c) 2015年 zm. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n\n@interface ViewController : UIViewController\n\n@property (weak, nonatomic) IBOutlet UIWebView *webViewBrowser;\n- (IBAction)buttonNextToggle:(id)sender;\n- (IBAction)buttonCollectToggle:(id)sender;\n\n@end\n\n@interface NSString (TMNSStringExtensionMethods)\n- (NSArray *)componentsSeparatedFromString:(NSString *)fromString toString:(NSString *)toString;\n@end\n" (comment) "//" (comment) "// ViewController.h" (comment) "// shakefun" (comment) "//" (comment) "// Created by zm on 15/9/9." (comment) "// Copyright (c) 2015年 zm. All rights reserved.\n/" (comment) "\n\n" (preproc_call) "mport <UIKit/UIKit.h>\n\n@" (preproc_directive) "mport <" (preproc_arg) "IKit/UIKit.h>\n\n" (ERROR) "nterface ViewController : UIViewController\n\n@property (weak, nonatomic) IBOutlet UIWebView *webViewBrowser;\n- (IBAction)buttonNextToggle:(id" (ERROR) "n" (type_identifier) "terface V" (ERROR) "ewController : UIViewController\n\n@pr" (identifier) "ewController :" (:) "U" (identifier) "ViewController\n\n" (ERROR) "r" (function_declarator) "operty (weak, nonatomic) I" (identifier) "operty (" (parameter_list) "eak, nonatomic) I" (() "e" (identifier) "ak, " (,) "n" (identifier) "natomic) " ()) "I" (declaration) "Outlet UIWebView *webViewBrowser;\n-" (type_identifier) "Outlet U" (ERROR) "WebView *" (identifier) "WebView *" (pointer_declarator) "ebViewBrowser;\n" (*) "e" (identifier) "bViewBrowser;\n" (;) "-" (unary_expression) "(IBAction)buttonNextToggle:(" (-) "(" (cast_expression) "BAction)buttonNextToggle:(" (() "B" (type_descriptor) "Action)b" (type_identifier) "Action)b" ()) "u" (identifier) "ttonNextToggle:(" (:) "i" (() "d" (declaration) ")sender;\n-" (type_identifier) ")s" (ERROR) "e" ()) "e" (identifier) "nder;\n" (;) "-" (expression_statement) "(IBAction)buttonCollectToggle:(id)sender;\n\n" (unary_expression) "(IBAction)buttonCollectToggle:(" (-) "(" (cast_expression) "BAction)buttonCollectToggle:(" (() "B" (type_descriptor) "Action)b" (type_identifier) "Action)b" ()) "u" (identifier) "ttonCollectToggle:(" (ERROR) "id)sender;\n" (:) "i" (() "d" (identifier) ")s" ()) "e" (identifier) "nder;\n" (;) "\n" (ERROR) "nd\n\n@interface NSString (TMNSStringExtensionMethods)\n- (NSArray *)componentsSeparatedFromString:(NSString *)fromString toString:(NSString *)toString;\n@en" (ERROR) "n" (type_identifier) "d\n\n" (ERROR) "nterface N" (ERROR) "n" (identifier) "terface N" (function_declarator) "String (TMNSStringExtensionMethods)\n-" (identifier) "String (" (parameter_list) "MNSStringExtensionMethods)\n-" (() "M" (identifier) "NSStringExtensionMethods)\n" ()) "-" (unary_expression) "(NSArray *)componentsSeparatedFromString:(" (-) "(" (cast_expression) "SArray *)componentsSeparatedFromString:(" (() "S" (type_descriptor) "Array *)c" (type_identifier) "Array *" (abstract_pointer_declarator) "c" (*) "c" ()) "o" (identifier) "mponentsSeparatedFromString:(" (:) "N" (() "S" (binary_expression) "String *)fromString toString:(NSString *)toString;\n" (binary_expression) "String *)fromString t" (identifier) "String *" (*) "f" (ERROR) "r" ()) "r" (identifier) "omString t" (ERROR) "String:(NSString *" (identifier) "String:(" (:) "N" (() "S" (identifier) "String *" (*) "t" (ERROR) "o" ()) "o" (identifier) "String;\n" (;) "@" (ERROR) "n" (expression_statement) "d\n" (identifier) "d\n" (;) ""
112
15
{"language": "c", "success": true, "metadata": {"lines": 16, "avg_line_length": 29.94, "nodes": 70, "errors": 0, "source_hash": "9200dda7d25cbc9b539d052f61c4c02317a85338f31199a12de75e00aada3280", "categorized_nodes": 42}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "mport <UIKit/UIKit.h>\n\n@", "parent": null, "children": [1, 2], "start_point": {"row": 8, "column": 0}, "end_point": {"row": 9, "column": 0}}, {"id": 1, "type": "preproc_directive", "text": "mport <", "parent": 0, "children": [], "start_point": {"row": 8, "column": 0}, "end_point": {"row": 8, "column": 7}}, {"id": 2, "type": "preproc_arg", "text": "IKit/UIKit.h>\n\n", "parent": 0, "children": [], "start_point": {"row": 8, "column": 8}, "end_point": {"row": 8, "column": 23}}, {"id": 3, "type": "ERROR", "text": "nterface ViewController : UIViewController\n\n@property (weak, nonatomic) IBOutlet UIWebView *webViewBrowser;\n- (IBAction)buttonNextToggle:(id", "parent": null, "children": [4, 5, 6, 10, 15, 22], "start_point": {"row": 10, "column": 0}, "end_point": {"row": 13, "column": 30}}, {"id": 4, "type": "ERROR", "text": "n", "parent": 3, "children": [], "start_point": {"row": 10, "column": 0}, "end_point": {"row": 10, "column": 1}}, {"id": 5, "type": "type_identifier", "text": "terface V", "parent": 3, "children": [], "start_point": {"row": 10, "column": 1}, "end_point": {"row": 10, "column": 10}}, {"id": 6, "type": "ERROR", "text": "ewController : UIViewController\n\n@pr", "parent": 3, "children": [7, 8, 9], "start_point": {"row": 10, "column": 11}, "end_point": {"row": 12, "column": 1}}, {"id": 7, "type": "identifier", "text": "ewController :", "parent": 6, "children": [], "start_point": {"row": 10, "column": 11}, "end_point": {"row": 10, "column": 25}}, {"id": 8, "type": "identifier", "text": "ViewController\n\n", "parent": 6, "children": [], "start_point": {"row": 10, "column": 28}, "end_point": {"row": 10, "column": 44}}, {"id": 9, "type": "ERROR", "text": "r", "parent": 6, "children": [], "start_point": {"row": 12, "column": 0}, "end_point": {"row": 12, "column": 1}}, {"id": 10, "type": "function_declarator", "text": "operty (weak, nonatomic) I", "parent": 3, "children": [11, 12], "start_point": {"row": 12, "column": 1}, "end_point": {"row": 12, "column": 27}}, {"id": 11, "type": "identifier", "text": "operty (", "parent": 10, "children": [], "start_point": {"row": 12, "column": 1}, "end_point": {"row": 12, "column": 9}}, {"id": 12, "type": "parameter_list", "text": "eak, nonatomic) I", "parent": 10, "children": [13, 14], "start_point": {"row": 12, "column": 10}, "end_point": {"row": 12, "column": 27}}, {"id": 13, "type": "identifier", "text": "ak, ", "parent": 12, "children": [], "start_point": {"row": 12, "column": 11}, "end_point": {"row": 12, "column": 15}}, {"id": 14, "type": "identifier", "text": "natomic) ", "parent": 12, "children": [], "start_point": {"row": 12, "column": 17}, "end_point": {"row": 12, "column": 26}}, {"id": 15, "type": "declaration", "text": "Outlet UIWebView *webViewBrowser;\n-", "parent": 3, "children": [16, 17, 19], "start_point": {"row": 12, "column": 28}, "end_point": {"row": 12, "column": 63}}, {"id": 16, "type": "type_identifier", "text": "Outlet U", "parent": 15, "children": [], "start_point": {"row": 12, "column": 28}, "end_point": {"row": 12, "column": 36}}, {"id": 17, "type": "ERROR", "text": "WebView *", "parent": 15, "children": [18], "start_point": {"row": 12, "column": 37}, "end_point": {"row": 12, "column": 46}}, {"id": 18, "type": "identifier", "text": "WebView *", "parent": 17, "children": [], "start_point": {"row": 12, "column": 37}, "end_point": {"row": 12, "column": 46}}, {"id": 19, "type": "pointer_declarator", "text": "ebViewBrowser;\n", "parent": 15, "children": [20, 21], "start_point": {"row": 12, "column": 47}, "end_point": {"row": 12, "column": 62}}, {"id": 20, "type": "*", "text": "e", "parent": 19, "children": [], "start_point": {"row": 12, "column": 47}, "end_point": {"row": 12, "column": 48}}, {"id": 21, "type": "identifier", "text": "bViewBrowser;\n", "parent": 19, "children": [], "start_point": {"row": 12, "column": 48}, "end_point": {"row": 12, "column": 62}}, {"id": 22, "type": "unary_expression", "text": "(IBAction)buttonNextToggle:(", "parent": 3, "children": [23], "start_point": {"row": 13, "column": 0}, "end_point": {"row": 13, "column": 28}}, {"id": 23, "type": "cast_expression", "text": "BAction)buttonNextToggle:(", "parent": 22, "children": [24, 26], "start_point": {"row": 13, "column": 2}, "end_point": {"row": 13, "column": 28}}, {"id": 24, "type": "type_descriptor", "text": "Action)b", "parent": 23, "children": [25], "start_point": {"row": 13, "column": 3}, "end_point": {"row": 13, "column": 11}}, {"id": 25, "type": "type_identifier", "text": "Action)b", "parent": 24, "children": [], "start_point": {"row": 13, "column": 3}, "end_point": {"row": 13, "column": 11}}, {"id": 26, "type": "identifier", "text": "ttonNextToggle:(", "parent": 23, "children": [], "start_point": {"row": 13, "column": 12}, "end_point": {"row": 13, "column": 28}}, {"id": 27, "type": "declaration", "text": ")sender;\n-", "parent": null, "children": [28, 29, 30], "start_point": {"row": 13, "column": 30}, "end_point": {"row": 13, "column": 40}}, {"id": 28, "type": "type_identifier", "text": ")s", "parent": 27, "children": [], "start_point": {"row": 13, "column": 30}, "end_point": {"row": 13, "column": 32}}, {"id": 29, "type": "ERROR", "text": "e", "parent": 27, "children": [], "start_point": {"row": 13, "column": 32}, "end_point": {"row": 13, "column": 33}}, {"id": 30, "type": "identifier", "text": "nder;\n", "parent": 27, "children": [], "start_point": {"row": 13, "column": 33}, "end_point": {"row": 13, "column": 39}}, {"id": 31, "type": "unary_expression", "text": "(IBAction)buttonCollectToggle:(", "parent": null, "children": [32], "start_point": {"row": 14, "column": 0}, "end_point": {"row": 14, "column": 31}}, {"id": 32, "type": "cast_expression", "text": "BAction)buttonCollectToggle:(", "parent": 31, "children": [33, 35], "start_point": {"row": 14, "column": 2}, "end_point": {"row": 14, "column": 31}}, {"id": 33, "type": "type_descriptor", "text": "Action)b", "parent": 32, "children": [34], "start_point": {"row": 14, "column": 3}, "end_point": {"row": 14, "column": 11}}, {"id": 34, "type": "type_identifier", "text": "Action)b", "parent": 33, "children": [], "start_point": {"row": 14, "column": 3}, "end_point": {"row": 14, "column": 11}}, {"id": 35, "type": "identifier", "text": "ttonCollectToggle:(", "parent": 32, "children": [], "start_point": {"row": 14, "column": 12}, "end_point": {"row": 14, "column": 31}}, {"id": 36, "type": "ERROR", "text": "id)sender;\n", "parent": null, "children": [37, 38], "start_point": {"row": 14, "column": 31}, "end_point": {"row": 14, "column": 42}}, {"id": 37, "type": "identifier", "text": ")s", "parent": 36, "children": [], "start_point": {"row": 14, "column": 33}, "end_point": {"row": 14, "column": 35}}, {"id": 38, "type": "identifier", "text": "nder;\n", "parent": 36, "children": [], "start_point": {"row": 14, "column": 36}, "end_point": {"row": 14, "column": 42}}, {"id": 39, "type": "ERROR", "text": "nd\n\n@interface NSString (TMNSStringExtensionMethods)\n- (NSArray *)componentsSeparatedFromString:(NSString *)fromString toString:(NSString *)toString;\n@en", "parent": null, "children": [40, 41, 42, 45, 49, 56, 68], "start_point": {"row": 16, "column": 0}, "end_point": {"row": 20, "column": 1}}, {"id": 40, "type": "ERROR", "text": "n", "parent": 39, "children": [], "start_point": {"row": 16, "column": 0}, "end_point": {"row": 16, "column": 1}}, {"id": 41, "type": "type_identifier", "text": "d\n\n", "parent": 39, "children": [], "start_point": {"row": 16, "column": 1}, "end_point": {"row": 16, "column": 4}}, {"id": 42, "type": "ERROR", "text": "nterface N", "parent": 39, "children": [43, 44], "start_point": {"row": 18, "column": 0}, "end_point": {"row": 18, "column": 10}}, {"id": 43, "type": "ERROR", "text": "n", "parent": 42, "children": [], "start_point": {"row": 18, "column": 0}, "end_point": {"row": 18, "column": 1}}, {"id": 44, "type": "identifier", "text": "terface N", "parent": 42, "children": [], "start_point": {"row": 18, "column": 1}, "end_point": {"row": 18, "column": 10}}, {"id": 45, "type": "function_declarator", "text": "String (TMNSStringExtensionMethods)\n-", "parent": 39, "children": [46, 47], "start_point": {"row": 18, "column": 11}, "end_point": {"row": 18, "column": 48}}, {"id": 46, "type": "identifier", "text": "String (", "parent": 45, "children": [], "start_point": {"row": 18, "column": 11}, "end_point": {"row": 18, "column": 19}}, {"id": 47, "type": "parameter_list", "text": "MNSStringExtensionMethods)\n-", "parent": 45, "children": [48], "start_point": {"row": 18, "column": 20}, "end_point": {"row": 18, "column": 48}}, {"id": 48, "type": "identifier", "text": "NSStringExtensionMethods)\n", "parent": 47, "children": [], "start_point": {"row": 18, "column": 21}, "end_point": {"row": 18, "column": 47}}, {"id": 49, "type": "unary_expression", "text": "(NSArray *)componentsSeparatedFromString:(", "parent": 39, "children": [50], "start_point": {"row": 19, "column": 0}, "end_point": {"row": 19, "column": 42}}, {"id": 50, "type": "cast_expression", "text": "SArray *)componentsSeparatedFromString:(", "parent": 49, "children": [51, 55], "start_point": {"row": 19, "column": 2}, "end_point": {"row": 19, "column": 42}}, {"id": 51, "type": "type_descriptor", "text": "Array *)c", "parent": 50, "children": [52, 53], "start_point": {"row": 19, "column": 3}, "end_point": {"row": 19, "column": 12}}, {"id": 52, "type": "type_identifier", "text": "Array *", "parent": 51, "children": [], "start_point": {"row": 19, "column": 3}, "end_point": {"row": 19, "column": 10}}, {"id": 53, "type": "abstract_pointer_declarator", "text": "c", "parent": 51, "children": [54], "start_point": {"row": 19, "column": 11}, "end_point": {"row": 19, "column": 12}}, {"id": 54, "type": "*", "text": "c", "parent": 53, "children": [], "start_point": {"row": 19, "column": 11}, "end_point": {"row": 19, "column": 12}}, {"id": 55, "type": "identifier", "text": "mponentsSeparatedFromString:(", "parent": 50, "children": [], "start_point": {"row": 19, "column": 13}, "end_point": {"row": 19, "column": 42}}, {"id": 56, "type": "binary_expression", "text": "String *)fromString toString:(NSString *)toString;\n", "parent": 39, "children": [57, 62, 65, 66, 67], "start_point": {"row": 19, "column": 44}, "end_point": {"row": 19, "column": 95}}, {"id": 57, "type": "binary_expression", "text": "String *)fromString t", "parent": 56, "children": [58, 59, 60, 61], "start_point": {"row": 19, "column": 44}, "end_point": {"row": 19, "column": 65}}, {"id": 58, "type": "identifier", "text": "String *", "parent": 57, "children": [], "start_point": {"row": 19, "column": 44}, "end_point": {"row": 19, "column": 52}}, {"id": 59, "type": "*", "text": "f", "parent": 57, "children": [], "start_point": {"row": 19, "column": 53}, "end_point": {"row": 19, "column": 54}}, {"id": 60, "type": "ERROR", "text": "r", "parent": 57, "children": [], "start_point": {"row": 19, "column": 54}, "end_point": {"row": 19, "column": 55}}, {"id": 61, "type": "identifier", "text": "omString t", "parent": 57, "children": [], "start_point": {"row": 19, "column": 55}, "end_point": {"row": 19, "column": 65}}, {"id": 62, "type": "ERROR", "text": "String:(NSString *", "parent": 56, "children": [63, 64], "start_point": {"row": 19, "column": 66}, "end_point": {"row": 19, "column": 84}}, {"id": 63, "type": "identifier", "text": "String:(", "parent": 62, "children": [], "start_point": {"row": 19, "column": 66}, "end_point": {"row": 19, "column": 74}}, {"id": 64, "type": "identifier", "text": "String *", "parent": 62, "children": [], "start_point": {"row": 19, "column": 76}, "end_point": {"row": 19, "column": 84}}, {"id": 65, "type": "*", "text": "t", "parent": 56, "children": [], "start_point": {"row": 19, "column": 85}, "end_point": {"row": 19, "column": 86}}, {"id": 66, "type": "ERROR", "text": "o", "parent": 56, "children": [], "start_point": {"row": 19, "column": 86}, "end_point": {"row": 19, "column": 87}}, {"id": 67, "type": "identifier", "text": "String;\n", "parent": 56, "children": [], "start_point": {"row": 19, "column": 87}, "end_point": {"row": 19, "column": 95}}, {"id": 68, "type": "ERROR", "text": "n", "parent": 39, "children": [], "start_point": {"row": 20, "column": 0}, "end_point": {"row": 20, "column": 1}}, {"id": 69, "type": "identifier", "text": "d\n", "parent": null, "children": [], "start_point": {"row": 20, "column": 1}, "end_point": {"row": 20, "column": 4}}]}, "node_categories": {"declarations": {"functions": [10, 45], "variables": [15, 27], "classes": [], "imports": [], "modules": [], "enums": []}, "statements": {"expressions": [22, 23, 31, 32, 49, 50, 56, 57], "assignments": [], "loops": [], "conditionals": [5, 7, 8, 11, 13, 14, 16, 18, 21, 25, 26, 28, 30, 34, 35, 37, 38, 41, 44, 46, 48, 52, 55, 58, 61, 63, 64, 67, 69], "returns": [], "exceptions": []}, "expressions": {"calls": [0], "literals": [], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [{"node_id": 10, "universal_type": "function", "name": "unknown", "text_snippet": "operty (weak, nonatomic) I"}, {"node_id": 45, "universal_type": "function", "name": "unknown", "text_snippet": "String (TMNSStringExtensionMethods)\n-"}], "class_declarations": [], "import_statements": []}, "original_source_code": "//\n// ViewController.h\n// shakefun\n//\n// Created by zm on 15/9/9.\n// Copyright (c) 2015\u5e74 zm. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n\n@interface ViewController : UIViewController\n\n@property (weak, nonatomic) IBOutlet UIWebView *webViewBrowser;\n- (IBAction)buttonNextToggle:(id)sender;\n- (IBAction)buttonCollectToggle:(id)sender;\n\n@end\n\n@interface NSString (TMNSStringExtensionMethods)\n- (NSArray *)componentsSeparatedFromString:(NSString *)fromString toString:(NSString *)toString;\n@end\n"}
80,060
c
#include <stdio.h> #include "omp.h" int valida_primo(int numero); int main() { int numero; printf("Informe um numero: "); scanf("%d", &numero); if(numero < 100 || numero > 1000000) { printf("\nNumero deve ser maior que 100 e menor que 1000000"); return 1; } float tempo_inicial, tempo_final; int i; printf("Numeros primos:\n"); tempo_inicial = omp_get_wtime(); for(i = 2; i < numero; i++) { valida_primo(i); } tempo_final = omp_get_wtime(); printf("\nTempo de execução: %f", tempo_final - tempo_inicial); return 0; } int valida_primo(int numero) { int i = 0; for(i=2; i < numero; i++) { if(numero % i == 0) { // printf("%d nao e primo\n", numero); return 0; } } printf("%d ", numero); return 1; }
22.24
33
(translation_unit) "#include <stdio.h>\n#include "omp.h"\n\nint valida_primo(int numero);\n\nint main() {\n int numero;\n printf("Informe um numero: ");\n scanf("%d", &numero);\n\n if(numero < 100 || numero > 1000000) {\n printf("\nNumero deve ser maior que 100 e menor que 1000000");\n return 1;\n }\n\n float tempo_inicial, tempo_final;\n int i;\n printf("Numeros primos:\n");\n tempo_inicial = omp_get_wtime();\n for(i = 2; i < numero; i++) {\n valida_primo(i);\n }\n tempo_final = omp_get_wtime();\n\n printf("\nTempo de execução: %f", tempo_final - tempo_inicial);\n return 0;\n}\n\nint valida_primo(int numero) {\n int i = 0;\n for(i=2; i < numero; i++) {\n if(numero % i == 0) {\n // printf("%d nao e primo\n", numero);\n return 0;\n }\n }\n printf("%d ", numero);\n return 1;\n}\n" (preproc_include) "#include <stdio.h>\n" (#include) "#include" (system_lib_string) "<stdio.h>" (preproc_include) "#include "omp.h"\n" (#include) "#include" (string_literal) ""omp.h"" (") """ (string_content) "omp.h" (") """ (declaration) "int valida_primo(int numero);" (primitive_type) "int" (function_declarator) "valida_primo(int numero)" (identifier) "valida_primo" (parameter_list) "(int numero)" (() "(" (parameter_declaration) "int numero" (primitive_type) "int" (identifier) "numero" ()) ")" (;) ";" (function_definition) "int main() {\n int numero;\n printf("Informe um numero: ");\n scanf("%d", &numero);\n\n if(numero < 100 || numero > 1000000) {\n printf("\nNumero deve ser maior que 100 e menor que 1000000");\n return 1;\n }\n\n float tempo_inicial, tempo_final;\n int i;\n printf("Numeros primos:\n");\n tempo_inicial = omp_get_wtime();\n for(i = 2; i < numero; i++) {\n valida_primo(i);\n }\n tempo_final = omp_get_wtime();\n\n printf("\nTempo de execução: %f", tempo_final - tempo_inicial);\n return 0;\n}\n\n" (primitive_type) "int" (function_declarator) "main()" (identifier) "main" (parameter_list) "()" (() "(" ()) ")" (compound_statement) "{\n int numero;\n printf("Informe um numero: ");\n scanf("%d", &numero);\n\n if(numero < 100 || numero > 1000000) {\n printf("\nNumero deve ser maior que 100 e menor que 1000000");\n return 1;\n }\n\n float tempo_inicial, tempo_final;\n int i;\n printf("Numeros primos:\n");\n tempo_inicial = omp_get_wtime();\n for(i = 2; i < numero; i++) {\n valida_primo(i);\n }\n tempo_final = omp_get_wtime();\n\n printf("\nTempo de execução: %f", tempo_final - tempo_inicial);\n return 0;\n}\n\n" ({) "{" (declaration) "int numero;" (primitive_type) "int" (identifier) "numero" (;) ";" (expression_statement) "printf("Informe um numero: ");" (call_expression) "printf("Informe um numero: ")" (identifier) "printf" (argument_list) "("Informe um numero: ")" (() "(" (string_literal) ""Informe um numero: "" (") """ (string_content) "Informe um numero: " (") """ ()) ")" (;) ";" (expression_statement) "scanf("%d", &numero);" (call_expression) "scanf("%d", &numero)" (identifier) "scanf" (argument_list) "("%d", &numero)" (() "(" (string_literal) ""%d"" (") """ (string_content) "%d" (") """ (,) "," (pointer_expression) "&numero" (&) "&" (identifier) "numero" ()) ")" (;) ";" (if_statement) "if(numero < 100 || numero > 1000000) {\n printf("\nNumero deve ser maior que 100 e menor que 1000000");\n return 1;\n }" (if) "if" (parenthesized_expression) "(numero < 100 || numero > 1000000)" (() "(" (binary_expression) "numero < 100 || numero > 1000000" (binary_expression) "numero < 100" (identifier) "numero" (<) "<" (number_literal) "100" (||) "||" (binary_expression) "numero > 1000000" (identifier) "numero" (>) ">" (number_literal) "1000000" ()) ")" (compound_statement) "{\n printf("\nNumero deve ser maior que 100 e menor que 1000000");\n return 1;\n }" ({) "{" (expression_statement) "printf("\nNumero deve ser maior que 100 e menor que 1000000");" (call_expression) "printf("\nNumero deve ser maior que 100 e menor que 1000000")" (identifier) "printf" (argument_list) "("\nNumero deve ser maior que 100 e menor que 1000000")" (() "(" (string_literal) ""\nNumero deve ser maior que 100 e menor que 1000000"" (") """ (escape_sequence) "\n" (string_content) "Numero deve ser maior que 100 e menor que 1000000" (") """ ()) ")" (;) ";" (return_statement) "return 1;" (return) "return" (number_literal) "1" (;) ";" (}) "}" (declaration) "float tempo_inicial, tempo_final;" (primitive_type) "float" (identifier) "tempo_inicial" (,) "," (identifier) "tempo_final" (;) ";" (declaration) "int i;" (primitive_type) "int" (identifier) "i" (;) ";" (expression_statement) "printf("Numeros primos:\n");" (call_expression) "printf("Numeros primos:\n")" (identifier) "printf" (argument_list) "("Numeros primos:\n")" (() "(" (string_literal) ""Numeros primos:\n"" (") """ (string_content) "Numeros primos:" (escape_sequence) "\n" (") """ ()) ")" (;) ";" (expression_statement) "tempo_inicial = omp_get_wtime();" (assignment_expression) "tempo_inicial = omp_get_wtime()" (identifier) "tempo_inicial" (=) "=" (call_expression) "omp_get_wtime()" (identifier) "omp_get_wtime" (argument_list) "()" (() "(" ()) ")" (;) ";" (for_statement) "for(i = 2; i < numero; i++) {\n valida_primo(i);\n }" (for) "for" (() "(" (assignment_expression) "i = 2" (identifier) "i" (=) "=" (number_literal) "2" (;) ";" (binary_expression) "i < numero" (identifier) "i" (<) "<" (identifier) "numero" (;) ";" (update_expression) "i++" (identifier) "i" (++) "++" ()) ")" (compound_statement) "{\n valida_primo(i);\n }" ({) "{" (expression_statement) "valida_primo(i);" (call_expression) "valida_primo(i)" (identifier) "valida_primo" (argument_list) "(i)" (() "(" (identifier) "i" ()) ")" (;) ";" (}) "}" (expression_statement) "tempo_final = omp_get_wtime();" (assignment_expression) "tempo_final = omp_get_wtime()" (identifier) "tempo_final" (=) "=" (call_expression) "omp_get_wtime()" (identifier) "omp_get_wtime" (argument_list) "()" (() "(" ()) ")" (;) ";" (expression_statement) "printf("\nTempo de execução: %f", tempo_final - tempo_inicial);\n " (call_expression) "printf("\nTempo de execução: %f", tempo_final - tempo_inicial);\n" (identifier) "printf" (argument_list) "("\nTempo de execução: %f", tempo_final - tempo_inicial);\n" (() "(" (string_literal) ""\nTempo de execução: %f", " (") """ (escape_sequence) "\n" (string_content) "Tempo de execução: %f"," (") " " (,) "t" (binary_expression) "mpo_final - tempo_inicial);" (identifier) "mpo_final -" (-) "t" (identifier) "mpo_inicial);" ()) "\n" (;) " " (return_statement) "turn 0;\n}" (return) "turn 0" (number_literal) "\n" (;) "}" (}) "\n" (function_definition) "t valida_primo(int numero) {\n int i = 0;\n for(i=2; i < numero; i++) {\n if(numero % i == 0) {\n // printf("%d nao e primo\n", numero);\n return 0;\n }\n }\n printf("%d ", numero);\n return 1;\n}\n" (primitive_type) "t v" (function_declarator) "lida_primo(int numero) {" (identifier) "lida_primo(i" (parameter_list) "nt numero) {" (() "n" (parameter_declaration) "t numero) " (primitive_type) "t n" (identifier) "mero) " ()) "{" (compound_statement) " int i = 0;\n for(i=2; i < numero; i++) {\n if(numero % i == 0) {\n // printf("%d nao e primo\n", numero);\n return 0;\n }\n }\n printf("%d ", numero);\n return 1;\n}\n" ({) " " (declaration) "t i = 0;\n " (primitive_type) "t i" (init_declarator) "= 0;\n" (identifier) "=" (=) "0" (number_literal) "\n" (;) " " (for_statement) "r(i=2; i < numero; i++) {\n if(numero % i == 0) {\n // printf("%d nao e primo\n", numero);\n return 0;\n }\n }\n " (for) "r(i" (() "=" (assignment_expression) "2; " (identifier) "2" (=) ";" (number_literal) " " (;) "i" (binary_expression) "< numero; " (identifier) "<" (<) "n" (identifier) "mero; " (;) "i" (update_expression) "+) " (identifier) "+" (++) ") " ()) "{" (compound_statement) " if(numero % i == 0) {\n // printf("%d nao e primo\n", numero);\n return 0;\n }\n }\n " ({) " " (if_statement) "(numero % i == 0) {\n // printf("%d nao e primo\n", numero);\n return 0;\n }\n " (if) "(n" (parenthesized_expression) "umero % i == 0) {" (() "u" (binary_expression) "mero % i == 0) " (binary_expression) "mero % i =" (identifier) "mero %" (%) "i" (identifier) "=" (==) " 0" (number_literal) " " ()) "{" (compound_statement) " // printf("%d nao e primo\n", numero);\n return 0;\n }\n " ({) " " (comment) " printf("%d nao e primo\n", numero);\n " (return_statement) "turn 0;\n " (return) "turn 0" (number_literal) "\n" (;) " " (}) " " (}) " " (expression_statement) "intf("%d ", numero);\n " (call_expression) "intf("%d ", numero);\n" (identifier) "intf("" (argument_list) "%d ", numero);\n" (() "%" (string_literal) "d ", " (") "d" (string_content) " "," (") " " (,) "n" (identifier) "mero);" ()) "\n" (;) " " (return_statement) "turn 1;\n}" (return) "turn 1" (number_literal) "\n" (;) "}" (}) ""
263
0
{"language": "c", "success": true, "metadata": {"lines": 33, "avg_line_length": 22.24, "nodes": 144, "errors": 0, "source_hash": "935b6127eecbc833b1f1a92916f4420c015d76f9f1cb7dbdd59d24ea89854556", "categorized_nodes": 106}, "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 \"omp.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": "\"omp.h\"", "parent": 3, "children": [], "start_point": {"row": 1, "column": 9}, "end_point": {"row": 1, "column": 16}}, {"id": 6, "type": "declaration", "text": "int valida_primo(int numero);", "parent": null, "children": [7, 8], "start_point": {"row": 3, "column": 0}, "end_point": {"row": 3, "column": 29}}, {"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": "valida_primo(int numero)", "parent": 6, "children": [9, 10], "start_point": {"row": 3, "column": 4}, "end_point": {"row": 3, "column": 28}}, {"id": 9, "type": "identifier", "text": "valida_primo", "parent": 8, "children": [], "start_point": {"row": 3, "column": 4}, "end_point": {"row": 3, "column": 16}}, {"id": 10, "type": "parameter_list", "text": "(int numero)", "parent": 8, "children": [11], "start_point": {"row": 3, "column": 16}, "end_point": {"row": 3, "column": 28}}, {"id": 11, "type": "parameter_declaration", "text": "int numero", "parent": 10, "children": [12, 13], "start_point": {"row": 3, "column": 17}, "end_point": {"row": 3, "column": 27}}, {"id": 12, "type": "primitive_type", "text": "int", "parent": 11, "children": [], "start_point": {"row": 3, "column": 17}, "end_point": {"row": 3, "column": 20}}, {"id": 13, "type": "identifier", "text": "numero", "parent": 11, "children": [], "start_point": {"row": 3, "column": 21}, "end_point": {"row": 3, "column": 27}}, {"id": 14, "type": "function_definition", "text": "int main() {\n int numero;\n printf(\"Informe um numero: \");\n scanf(\"%d\", &numero);\n\n if(numero < 100 || numero > 1000000) {\n printf(\"\\nNumero deve ser maior que 100 e menor que 1000000\");\n return 1;\n }\n\n float tempo_inicial, tempo_final;\n int i;\n printf(\"Numeros primos:\\n\");\n tempo_inicial = omp_get_wtime();\n for(i = 2; i < numero; i++) {\n valida_primo(i);\n }\n tempo_final = omp_get_wtime();\n\n printf(\"\\nTempo de execu\u00e7\u00e3o: %f\", tempo_final - tempo_inicial);\n return 0;\n}\n\n", "parent": null, "children": [15, 16], "start_point": {"row": 5, "column": 0}, "end_point": {"row": 26, "column": 1}}, {"id": 15, "type": "primitive_type", "text": "int", "parent": 14, "children": [], "start_point": {"row": 5, "column": 0}, "end_point": {"row": 5, "column": 3}}, {"id": 16, "type": "function_declarator", "text": "main()", "parent": 14, "children": [17, 18], "start_point": {"row": 5, "column": 4}, "end_point": {"row": 5, "column": 10}}, {"id": 17, "type": "identifier", "text": "main", "parent": 16, "children": [], "start_point": {"row": 5, "column": 4}, "end_point": {"row": 5, "column": 8}}, {"id": 18, "type": "parameter_list", "text": "()", "parent": 16, "children": [], "start_point": {"row": 5, "column": 8}, "end_point": {"row": 5, "column": 10}}, {"id": 19, "type": "declaration", "text": "int numero;", "parent": 14, "children": [20, 21], "start_point": {"row": 6, "column": 2}, "end_point": {"row": 6, "column": 13}}, {"id": 20, "type": "primitive_type", "text": "int", "parent": 19, "children": [], "start_point": {"row": 6, "column": 2}, "end_point": {"row": 6, "column": 5}}, {"id": 21, "type": "identifier", "text": "numero", "parent": 19, "children": [], "start_point": {"row": 6, "column": 6}, "end_point": {"row": 6, "column": 12}}, {"id": 22, "type": "call_expression", "text": "printf(\"Informe um numero: \")", "parent": 14, "children": [23, 24], "start_point": {"row": 7, "column": 2}, "end_point": {"row": 7, "column": 31}}, {"id": 23, "type": "identifier", "text": "printf", "parent": 22, "children": [], "start_point": {"row": 7, "column": 2}, "end_point": {"row": 7, "column": 8}}, {"id": 24, "type": "argument_list", "text": "(\"Informe um numero: \")", "parent": 22, "children": [25], "start_point": {"row": 7, "column": 8}, "end_point": {"row": 7, "column": 31}}, {"id": 25, "type": "string_literal", "text": "\"Informe um numero: \"", "parent": 24, "children": [], "start_point": {"row": 7, "column": 9}, "end_point": {"row": 7, "column": 30}}, {"id": 26, "type": "call_expression", "text": "scanf(\"%d\", &numero)", "parent": 14, "children": [27, 28], "start_point": {"row": 8, "column": 2}, "end_point": {"row": 8, "column": 22}}, {"id": 27, "type": "identifier", "text": "scanf", "parent": 26, "children": [], "start_point": {"row": 8, "column": 2}, "end_point": {"row": 8, "column": 7}}, {"id": 28, "type": "argument_list", "text": "(\"%d\", &numero)", "parent": 26, "children": [29, 30], "start_point": {"row": 8, "column": 7}, "end_point": {"row": 8, "column": 22}}, {"id": 29, "type": "string_literal", "text": "\"%d\"", "parent": 28, "children": [], "start_point": {"row": 8, "column": 8}, "end_point": {"row": 8, "column": 12}}, {"id": 30, "type": "pointer_expression", "text": "&numero", "parent": 28, "children": [31], "start_point": {"row": 8, "column": 14}, "end_point": {"row": 8, "column": 21}}, {"id": 31, "type": "identifier", "text": "numero", "parent": 30, "children": [], "start_point": {"row": 8, "column": 15}, "end_point": {"row": 8, "column": 21}}, {"id": 32, "type": "if_statement", "text": "if(numero < 100 || numero > 1000000) {\n printf(\"\\nNumero deve ser maior que 100 e menor que 1000000\");\n return 1;\n }", "parent": 14, "children": [33], "start_point": {"row": 10, "column": 2}, "end_point": {"row": 13, "column": 3}}, {"id": 33, "type": "parenthesized_expression", "text": "(numero < 100 || numero > 1000000)", "parent": 32, "children": [34], "start_point": {"row": 10, "column": 4}, "end_point": {"row": 10, "column": 38}}, {"id": 34, "type": "binary_expression", "text": "numero < 100 || numero > 1000000", "parent": 33, "children": [35, 39, 40], "start_point": {"row": 10, "column": 5}, "end_point": {"row": 10, "column": 37}}, {"id": 35, "type": "binary_expression", "text": "numero < 100", "parent": 34, "children": [36, 37, 38], "start_point": {"row": 10, "column": 5}, "end_point": {"row": 10, "column": 17}}, {"id": 36, "type": "identifier", "text": "numero", "parent": 35, "children": [], "start_point": {"row": 10, "column": 5}, "end_point": {"row": 10, "column": 11}}, {"id": 37, "type": "<", "text": "<", "parent": 35, "children": [], "start_point": {"row": 10, "column": 12}, "end_point": {"row": 10, "column": 13}}, {"id": 38, "type": "number_literal", "text": "100", "parent": 35, "children": [], "start_point": {"row": 10, "column": 14}, "end_point": {"row": 10, "column": 17}}, {"id": 39, "type": "||", "text": "||", "parent": 34, "children": [], "start_point": {"row": 10, "column": 18}, "end_point": {"row": 10, "column": 20}}, {"id": 40, "type": "binary_expression", "text": "numero > 1000000", "parent": 34, "children": [41, 42, 43], "start_point": {"row": 10, "column": 21}, "end_point": {"row": 10, "column": 37}}, {"id": 41, "type": "identifier", "text": "numero", "parent": 40, "children": [], "start_point": {"row": 10, "column": 21}, "end_point": {"row": 10, "column": 27}}, {"id": 42, "type": ">", "text": ">", "parent": 40, "children": [], "start_point": {"row": 10, "column": 28}, "end_point": {"row": 10, "column": 29}}, {"id": 43, "type": "number_literal", "text": "1000000", "parent": 40, "children": [], "start_point": {"row": 10, "column": 30}, "end_point": {"row": 10, "column": 37}}, {"id": 44, "type": "call_expression", "text": "printf(\"\\nNumero deve ser maior que 100 e menor que 1000000\")", "parent": 32, "children": [45, 46], "start_point": {"row": 11, "column": 4}, "end_point": {"row": 11, "column": 65}}, {"id": 45, "type": "identifier", "text": "printf", "parent": 44, "children": [], "start_point": {"row": 11, "column": 4}, "end_point": {"row": 11, "column": 10}}, {"id": 46, "type": "argument_list", "text": "(\"\\nNumero deve ser maior que 100 e menor que 1000000\")", "parent": 44, "children": [47], "start_point": {"row": 11, "column": 10}, "end_point": {"row": 11, "column": 65}}, {"id": 47, "type": "string_literal", "text": "\"\\nNumero deve ser maior que 100 e menor que 1000000\"", "parent": 46, "children": [48], "start_point": {"row": 11, "column": 11}, "end_point": {"row": 11, "column": 64}}, {"id": 48, "type": "escape_sequence", "text": "\\n", "parent": 47, "children": [], "start_point": {"row": 11, "column": 12}, "end_point": {"row": 11, "column": 14}}, {"id": 49, "type": "return_statement", "text": "return 1;", "parent": 32, "children": [50], "start_point": {"row": 12, "column": 4}, "end_point": {"row": 12, "column": 13}}, {"id": 50, "type": "number_literal", "text": "1", "parent": 49, "children": [], "start_point": {"row": 12, "column": 11}, "end_point": {"row": 12, "column": 12}}, {"id": 51, "type": "declaration", "text": "float tempo_inicial, tempo_final;", "parent": 14, "children": [52, 53, 54], "start_point": {"row": 15, "column": 2}, "end_point": {"row": 15, "column": 35}}, {"id": 52, "type": "primitive_type", "text": "float", "parent": 51, "children": [], "start_point": {"row": 15, "column": 2}, "end_point": {"row": 15, "column": 7}}, {"id": 53, "type": "identifier", "text": "tempo_inicial", "parent": 51, "children": [], "start_point": {"row": 15, "column": 8}, "end_point": {"row": 15, "column": 21}}, {"id": 54, "type": "identifier", "text": "tempo_final", "parent": 51, "children": [], "start_point": {"row": 15, "column": 23}, "end_point": {"row": 15, "column": 34}}, {"id": 55, "type": "declaration", "text": "int i;", "parent": 14, "children": [56, 57], "start_point": {"row": 16, "column": 2}, "end_point": {"row": 16, "column": 8}}, {"id": 56, "type": "primitive_type", "text": "int", "parent": 55, "children": [], "start_point": {"row": 16, "column": 2}, "end_point": {"row": 16, "column": 5}}, {"id": 57, "type": "identifier", "text": "i", "parent": 55, "children": [], "start_point": {"row": 16, "column": 6}, "end_point": {"row": 16, "column": 7}}, {"id": 58, "type": "call_expression", "text": "printf(\"Numeros primos:\\n\")", "parent": 14, "children": [59, 60], "start_point": {"row": 17, "column": 2}, "end_point": {"row": 17, "column": 29}}, {"id": 59, "type": "identifier", "text": "printf", "parent": 58, "children": [], "start_point": {"row": 17, "column": 2}, "end_point": {"row": 17, "column": 8}}, {"id": 60, "type": "argument_list", "text": "(\"Numeros primos:\\n\")", "parent": 58, "children": [61], "start_point": {"row": 17, "column": 8}, "end_point": {"row": 17, "column": 29}}, {"id": 61, "type": "string_literal", "text": "\"Numeros primos:\\n\"", "parent": 60, "children": [62], "start_point": {"row": 17, "column": 9}, "end_point": {"row": 17, "column": 28}}, {"id": 62, "type": "escape_sequence", "text": "\\n", "parent": 61, "children": [], "start_point": {"row": 17, "column": 25}, "end_point": {"row": 17, "column": 27}}, {"id": 63, "type": "assignment_expression", "text": "tempo_inicial = omp_get_wtime()", "parent": 14, "children": [64, 65, 66], "start_point": {"row": 18, "column": 2}, "end_point": {"row": 18, "column": 33}}, {"id": 64, "type": "identifier", "text": "tempo_inicial", "parent": 63, "children": [], "start_point": {"row": 18, "column": 2}, "end_point": {"row": 18, "column": 15}}, {"id": 65, "type": "=", "text": "=", "parent": 63, "children": [], "start_point": {"row": 18, "column": 16}, "end_point": {"row": 18, "column": 17}}, {"id": 66, "type": "call_expression", "text": "omp_get_wtime()", "parent": 63, "children": [67, 68], "start_point": {"row": 18, "column": 18}, "end_point": {"row": 18, "column": 33}}, {"id": 67, "type": "identifier", "text": "omp_get_wtime", "parent": 66, "children": [], "start_point": {"row": 18, "column": 18}, "end_point": {"row": 18, "column": 31}}, {"id": 68, "type": "argument_list", "text": "()", "parent": 66, "children": [], "start_point": {"row": 18, "column": 31}, "end_point": {"row": 18, "column": 33}}, {"id": 69, "type": "for_statement", "text": "for(i = 2; i < numero; i++) {\n valida_primo(i);\n }", "parent": 14, "children": [70, 74, 78], "start_point": {"row": 19, "column": 2}, "end_point": {"row": 21, "column": 3}}, {"id": 70, "type": "assignment_expression", "text": "i = 2", "parent": 69, "children": [71, 72, 73], "start_point": {"row": 19, "column": 6}, "end_point": {"row": 19, "column": 11}}, {"id": 71, "type": "identifier", "text": "i", "parent": 70, "children": [], "start_point": {"row": 19, "column": 6}, "end_point": {"row": 19, "column": 7}}, {"id": 72, "type": "=", "text": "=", "parent": 70, "children": [], "start_point": {"row": 19, "column": 8}, "end_point": {"row": 19, "column": 9}}, {"id": 73, "type": "number_literal", "text": "2", "parent": 70, "children": [], "start_point": {"row": 19, "column": 10}, "end_point": {"row": 19, "column": 11}}, {"id": 74, "type": "binary_expression", "text": "i < numero", "parent": 69, "children": [75, 76, 77], "start_point": {"row": 19, "column": 13}, "end_point": {"row": 19, "column": 23}}, {"id": 75, "type": "identifier", "text": "i", "parent": 74, "children": [], "start_point": {"row": 19, "column": 13}, "end_point": {"row": 19, "column": 14}}, {"id": 76, "type": "<", "text": "<", "parent": 74, "children": [], "start_point": {"row": 19, "column": 15}, "end_point": {"row": 19, "column": 16}}, {"id": 77, "type": "identifier", "text": "numero", "parent": 74, "children": [], "start_point": {"row": 19, "column": 17}, "end_point": {"row": 19, "column": 23}}, {"id": 78, "type": "update_expression", "text": "i++", "parent": 69, "children": [79, 80], "start_point": {"row": 19, "column": 25}, "end_point": {"row": 19, "column": 28}}, {"id": 79, "type": "identifier", "text": "i", "parent": 78, "children": [], "start_point": {"row": 19, "column": 25}, "end_point": {"row": 19, "column": 26}}, {"id": 80, "type": "++", "text": "++", "parent": 78, "children": [], "start_point": {"row": 19, "column": 26}, "end_point": {"row": 19, "column": 28}}, {"id": 81, "type": "call_expression", "text": "valida_primo(i)", "parent": 69, "children": [82, 83], "start_point": {"row": 20, "column": 4}, "end_point": {"row": 20, "column": 19}}, {"id": 82, "type": "identifier", "text": "valida_primo", "parent": 81, "children": [], "start_point": {"row": 20, "column": 4}, "end_point": {"row": 20, "column": 16}}, {"id": 83, "type": "argument_list", "text": "(i)", "parent": 81, "children": [84], "start_point": {"row": 20, "column": 16}, "end_point": {"row": 20, "column": 19}}, {"id": 84, "type": "identifier", "text": "i", "parent": 83, "children": [], "start_point": {"row": 20, "column": 17}, "end_point": {"row": 20, "column": 18}}, {"id": 85, "type": "assignment_expression", "text": "tempo_final = omp_get_wtime()", "parent": 14, "children": [86, 87, 88], "start_point": {"row": 22, "column": 2}, "end_point": {"row": 22, "column": 31}}, {"id": 86, "type": "identifier", "text": "tempo_final", "parent": 85, "children": [], "start_point": {"row": 22, "column": 2}, "end_point": {"row": 22, "column": 13}}, {"id": 87, "type": "=", "text": "=", "parent": 85, "children": [], "start_point": {"row": 22, "column": 14}, "end_point": {"row": 22, "column": 15}}, {"id": 88, "type": "call_expression", "text": "omp_get_wtime()", "parent": 85, "children": [89, 90], "start_point": {"row": 22, "column": 16}, "end_point": {"row": 22, "column": 31}}, {"id": 89, "type": "identifier", "text": "omp_get_wtime", "parent": 88, "children": [], "start_point": {"row": 22, "column": 16}, "end_point": {"row": 22, "column": 29}}, {"id": 90, "type": "argument_list", "text": "()", "parent": 88, "children": [], "start_point": {"row": 22, "column": 29}, "end_point": {"row": 22, "column": 31}}, {"id": 91, "type": "call_expression", "text": "printf(\"\\nTempo de execu\u00e7\u00e3o: %f\", tempo_final - tempo_inicial);\n", "parent": 14, "children": [92, 93], "start_point": {"row": 24, "column": 2}, "end_point": {"row": 24, "column": 66}}, {"id": 92, "type": "identifier", "text": "printf", "parent": 91, "children": [], "start_point": {"row": 24, "column": 2}, "end_point": {"row": 24, "column": 8}}, {"id": 93, "type": "argument_list", "text": "(\"\\nTempo de execu\u00e7\u00e3o: %f\", tempo_final - tempo_inicial);\n", "parent": 91, "children": [94, 96], "start_point": {"row": 24, "column": 8}, "end_point": {"row": 24, "column": 66}}, {"id": 94, "type": "string_literal", "text": "\"\\nTempo de execu\u00e7\u00e3o: %f\", ", "parent": 93, "children": [95], "start_point": {"row": 24, "column": 9}, "end_point": {"row": 24, "column": 36}}, {"id": 95, "type": "escape_sequence", "text": "\\n", "parent": 94, "children": [], "start_point": {"row": 24, "column": 10}, "end_point": {"row": 24, "column": 12}}, {"id": 96, "type": "binary_expression", "text": "mpo_final - tempo_inicial);", "parent": 93, "children": [97, 98, 99], "start_point": {"row": 24, "column": 38}, "end_point": {"row": 24, "column": 65}}, {"id": 97, "type": "identifier", "text": "mpo_final -", "parent": 96, "children": [], "start_point": {"row": 24, "column": 38}, "end_point": {"row": 24, "column": 49}}, {"id": 98, "type": "-", "text": "t", "parent": 96, "children": [], "start_point": {"row": 24, "column": 50}, "end_point": {"row": 24, "column": 51}}, {"id": 99, "type": "identifier", "text": "mpo_inicial);", "parent": 96, "children": [], "start_point": {"row": 24, "column": 52}, "end_point": {"row": 24, "column": 65}}, {"id": 100, "type": "return_statement", "text": "turn 0;\n}", "parent": 14, "children": [101], "start_point": {"row": 25, "column": 2}, "end_point": {"row": 25, "column": 11}}, {"id": 101, "type": "number_literal", "text": "\n", "parent": 100, "children": [], "start_point": {"row": 25, "column": 9}, "end_point": {"row": 25, "column": 10}}, {"id": 102, "type": "function_definition", "text": "t valida_primo(int numero) {\n int i = 0;\n for(i=2; i < numero; i++) {\n if(numero % i == 0) {\n // printf(\"%d nao e primo\\n\", numero);\n return 0;\n }\n }\n printf(\"%d \", numero);\n return 1;\n}\n", "parent": null, "children": [103, 104], "start_point": {"row": 28, "column": 0}, "end_point": {"row": 38, "column": 1}}, {"id": 103, "type": "primitive_type", "text": "t v", "parent": 102, "children": [], "start_point": {"row": 28, "column": 0}, "end_point": {"row": 28, "column": 3}}, {"id": 104, "type": "function_declarator", "text": "lida_primo(int numero) {", "parent": 102, "children": [105, 106], "start_point": {"row": 28, "column": 4}, "end_point": {"row": 28, "column": 28}}, {"id": 105, "type": "identifier", "text": "lida_primo(i", "parent": 104, "children": [], "start_point": {"row": 28, "column": 4}, "end_point": {"row": 28, "column": 16}}, {"id": 106, "type": "parameter_list", "text": "nt numero) {", "parent": 104, "children": [107], "start_point": {"row": 28, "column": 16}, "end_point": {"row": 28, "column": 28}}, {"id": 107, "type": "parameter_declaration", "text": "t numero) ", "parent": 106, "children": [108, 109], "start_point": {"row": 28, "column": 17}, "end_point": {"row": 28, "column": 27}}, {"id": 108, "type": "primitive_type", "text": "t n", "parent": 107, "children": [], "start_point": {"row": 28, "column": 17}, "end_point": {"row": 28, "column": 20}}, {"id": 109, "type": "identifier", "text": "mero) ", "parent": 107, "children": [], "start_point": {"row": 28, "column": 21}, "end_point": {"row": 28, "column": 27}}, {"id": 110, "type": "declaration", "text": "t i = 0;\n ", "parent": 102, "children": [111, 112], "start_point": {"row": 29, "column": 2}, "end_point": {"row": 29, "column": 12}}, {"id": 111, "type": "primitive_type", "text": "t i", "parent": 110, "children": [], "start_point": {"row": 29, "column": 2}, "end_point": {"row": 29, "column": 5}}, {"id": 112, "type": "init_declarator", "text": "= 0;\n", "parent": 110, "children": [113, 114, 115], "start_point": {"row": 29, "column": 6}, "end_point": {"row": 29, "column": 11}}, {"id": 113, "type": "identifier", "text": "=", "parent": 112, "children": [], "start_point": {"row": 29, "column": 6}, "end_point": {"row": 29, "column": 7}}, {"id": 114, "type": "=", "text": "0", "parent": 112, "children": [], "start_point": {"row": 29, "column": 8}, "end_point": {"row": 29, "column": 9}}, {"id": 115, "type": "number_literal", "text": "\n", "parent": 112, "children": [], "start_point": {"row": 29, "column": 10}, "end_point": {"row": 29, "column": 11}}, {"id": 116, "type": "for_statement", "text": "r(i=2; i < numero; i++) {\n if(numero % i == 0) {\n // printf(\"%d nao e primo\\n\", numero);\n return 0;\n }\n }\n ", "parent": 102, "children": [117, 120, 124], "start_point": {"row": 30, "column": 2}, "end_point": {"row": 35, "column": 3}}, {"id": 117, "type": "assignment_expression", "text": "2; ", "parent": 116, "children": [118, 119], "start_point": {"row": 30, "column": 6}, "end_point": {"row": 30, "column": 9}}, {"id": 118, "type": "identifier", "text": "2", "parent": 117, "children": [], "start_point": {"row": 30, "column": 6}, "end_point": {"row": 30, "column": 7}}, {"id": 119, "type": "number_literal", "text": " ", "parent": 117, "children": [], "start_point": {"row": 30, "column": 8}, "end_point": {"row": 30, "column": 9}}, {"id": 120, "type": "binary_expression", "text": "< numero; ", "parent": 116, "children": [121, 122, 123], "start_point": {"row": 30, "column": 11}, "end_point": {"row": 30, "column": 21}}, {"id": 121, "type": "identifier", "text": "<", "parent": 120, "children": [], "start_point": {"row": 30, "column": 11}, "end_point": {"row": 30, "column": 12}}, {"id": 122, "type": "<", "text": "n", "parent": 120, "children": [], "start_point": {"row": 30, "column": 13}, "end_point": {"row": 30, "column": 14}}, {"id": 123, "type": "identifier", "text": "mero; ", "parent": 120, "children": [], "start_point": {"row": 30, "column": 15}, "end_point": {"row": 30, "column": 21}}, {"id": 124, "type": "update_expression", "text": "+) ", "parent": 116, "children": [125], "start_point": {"row": 30, "column": 23}, "end_point": {"row": 30, "column": 26}}, {"id": 125, "type": "identifier", "text": "+", "parent": 124, "children": [], "start_point": {"row": 30, "column": 23}, "end_point": {"row": 30, "column": 24}}, {"id": 126, "type": "if_statement", "text": "(numero % i == 0) {\n // printf(\"%d nao e primo\\n\", numero);\n return 0;\n }\n ", "parent": 116, "children": [127], "start_point": {"row": 31, "column": 4}, "end_point": {"row": 34, "column": 5}}, {"id": 127, "type": "parenthesized_expression", "text": "umero % i == 0) {", "parent": 126, "children": [128], "start_point": {"row": 31, "column": 6}, "end_point": {"row": 31, "column": 23}}, {"id": 128, "type": "binary_expression", "text": "mero % i == 0) ", "parent": 127, "children": [129, 133, 134], "start_point": {"row": 31, "column": 7}, "end_point": {"row": 31, "column": 22}}, {"id": 129, "type": "binary_expression", "text": "mero % i =", "parent": 128, "children": [130, 131, 132], "start_point": {"row": 31, "column": 7}, "end_point": {"row": 31, "column": 17}}, {"id": 130, "type": "identifier", "text": "mero %", "parent": 129, "children": [], "start_point": {"row": 31, "column": 7}, "end_point": {"row": 31, "column": 13}}, {"id": 131, "type": "%", "text": "i", "parent": 129, "children": [], "start_point": {"row": 31, "column": 14}, "end_point": {"row": 31, "column": 15}}, {"id": 132, "type": "identifier", "text": "=", "parent": 129, "children": [], "start_point": {"row": 31, "column": 16}, "end_point": {"row": 31, "column": 17}}, {"id": 133, "type": "==", "text": " 0", "parent": 128, "children": [], "start_point": {"row": 31, "column": 18}, "end_point": {"row": 31, "column": 20}}, {"id": 134, "type": "number_literal", "text": " ", "parent": 128, "children": [], "start_point": {"row": 31, "column": 21}, "end_point": {"row": 31, "column": 22}}, {"id": 135, "type": "return_statement", "text": "turn 0;\n ", "parent": 126, "children": [136], "start_point": {"row": 33, "column": 6}, "end_point": {"row": 33, "column": 15}}, {"id": 136, "type": "number_literal", "text": "\n", "parent": 135, "children": [], "start_point": {"row": 33, "column": 13}, "end_point": {"row": 33, "column": 14}}, {"id": 137, "type": "call_expression", "text": "intf(\"%d \", numero);\n", "parent": 102, "children": [138, 139], "start_point": {"row": 36, "column": 2}, "end_point": {"row": 36, "column": 23}}, {"id": 138, "type": "identifier", "text": "intf(\"", "parent": 137, "children": [], "start_point": {"row": 36, "column": 2}, "end_point": {"row": 36, "column": 8}}, {"id": 139, "type": "argument_list", "text": "%d \", numero);\n", "parent": 137, "children": [140, 141], "start_point": {"row": 36, "column": 8}, "end_point": {"row": 36, "column": 23}}, {"id": 140, "type": "string_literal", "text": "d \", ", "parent": 139, "children": [], "start_point": {"row": 36, "column": 9}, "end_point": {"row": 36, "column": 14}}, {"id": 141, "type": "identifier", "text": "mero);", "parent": 139, "children": [], "start_point": {"row": 36, "column": 16}, "end_point": {"row": 36, "column": 22}}, {"id": 142, "type": "return_statement", "text": "turn 1;\n}", "parent": 102, "children": [143], "start_point": {"row": 37, "column": 2}, "end_point": {"row": 37, "column": 11}}, {"id": 143, "type": "number_literal", "text": "\n", "parent": 142, "children": [], "start_point": {"row": 37, "column": 9}, "end_point": {"row": 37, "column": 10}}]}, "node_categories": {"declarations": {"functions": [8, 14, 16, 102, 104], "variables": [6, 11, 19, 51, 55, 107, 110], "classes": [], "imports": [0, 1, 3, 4], "modules": [], "enums": []}, "statements": {"expressions": [22, 26, 30, 33, 34, 35, 40, 44, 58, 66, 74, 78, 81, 88, 91, 96, 120, 124, 127, 128, 129, 137], "assignments": [63, 70, 85, 117], "loops": [69, 116], "conditionals": [9, 13, 17, 21, 23, 27, 31, 32, 36, 41, 45, 53, 54, 57, 59, 64, 67, 71, 75, 77, 79, 82, 84, 86, 89, 92, 97, 99, 105, 109, 113, 118, 121, 123, 125, 126, 130, 132, 138, 141], "returns": [49, 100, 135, 142], "exceptions": []}, "expressions": {"calls": [], "literals": [2, 5, 25, 29, 38, 43, 47, 50, 61, 73, 94, 101, 115, 119, 134, 136, 140, 143], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [{"node_id": 8, "universal_type": "function", "name": "unknown", "text_snippet": "valida_primo(int numero)"}, {"node_id": 14, "universal_type": "function", "name": "main", "text_snippet": "int main() {\n int numero;\n printf(\"Informe um numero: \");\n scanf(\"%d\", &numero);\n\n if(numero < 1"}, {"node_id": 16, "universal_type": "function", "name": "unknown", "text_snippet": "main()"}, {"node_id": 102, "universal_type": "function", "name": "i", "text_snippet": "t valida_primo(int numero) {\n int i = 0;\n for(i=2; i < numero; i++) {\n if(numero % i == 0) {\n "}, {"node_id": 104, "universal_type": "function", "name": "unknown", "text_snippet": "lida_primo(int numero) {"}], "class_declarations": [], "import_statements": [{"node_id": 0, "text": "#include <stdio.h>\n"}, {"node_id": 1, "text": "#include"}, {"node_id": 3, "text": "#include \"omp.h\"\n"}, {"node_id": 4, "text": "#include"}]}, "original_source_code": "#include <stdio.h>\n#include \"omp.h\"\n\nint valida_primo(int numero);\n\nint main() {\n int numero;\n printf(\"Informe um numero: \");\n scanf(\"%d\", &numero);\n\n if(numero < 100 || numero > 1000000) {\n printf(\"\\nNumero deve ser maior que 100 e menor que 1000000\");\n return 1;\n }\n\n float tempo_inicial, tempo_final;\n int i;\n printf(\"Numeros primos:\\n\");\n tempo_inicial = omp_get_wtime();\n for(i = 2; i < numero; i++) {\n valida_primo(i);\n }\n tempo_final = omp_get_wtime();\n\n printf(\"\\nTempo de execu\u00e7\u00e3o: %f\", tempo_final - tempo_inicial);\n return 0;\n}\n\nint valida_primo(int numero) {\n int i = 0;\n for(i=2; i < numero; i++) {\n if(numero % i == 0) {\n // printf(\"%d nao e primo\\n\", numero);\n return 0;\n }\n }\n printf(\"%d \", numero);\n return 1;\n}\n"}
80,061
c
#pragma once #include "liquid/scripting/ComponentLuaInterface.h" namespace liquid { /** * @brief Name component */ struct NameComponent { struct LuaInterface; /** * Entity name */ String name; }; /** * @brief Lua interface for name component */ struct NameComponent::LuaInterface : public ComponentLuaInterface<NameComponent::LuaInterface> { /** * @brief Get name * * @param state Lua state * @return Number of arguments */ static int get(void *state); /** * @brief Set name * * @param state Lua state * @return Number of arguments */ static int set(void *state); /** * @brief Interface fields */ static constexpr std::array<InterfaceField, 2> fields{ InterfaceField{"get", get}, InterfaceField{"set", set}}; /** * @brief Get component name in scripts * * @return Component name */ static const String getName() { return "name"; } }; } // namespace liquid
20.02
45
(translation_unit) "#pragma once\n\n#include "liquid/scripting/ComponentLuaInterface.h"\n\nnamespace liquid {\n\n/**\n * @brief Name component\n */\nstruct NameComponent {\n struct LuaInterface;\n\n /**\n * Entity name\n */\n String name;\n};\n\n/**\n * @brief Lua interface for name component\n */\nstruct NameComponent::LuaInterface\n : public ComponentLuaInterface<NameComponent::LuaInterface> {\n\n /**\n * @brief Get name\n *\n * @param state Lua state\n * @return Number of arguments\n */\n static int get(void *state);\n\n /**\n * @brief Set name\n *\n * @param state Lua state\n * @return Number of arguments\n */\n static int set(void *state);\n\n /**\n * @brief Interface fields\n */\n static constexpr std::array<InterfaceField, 2> fields{\n InterfaceField{"get", get}, InterfaceField{"set", set}};\n\n /**\n * @brief Get component name in scripts\n *\n * @return Component name\n */\n static const String getName() { return "name"; }\n};\n\n} // namespace liquid\n" (preproc_call) "#pragma once\n" (preproc_directive) "#pragma" (preproc_arg) "once" (preproc_include) "#include "liquid/scripting/ComponentLuaInterface.h"\n" (#include) "#include" (string_literal) ""liquid/scripting/ComponentLuaInterface.h"" (") """ (string_content) "liquid/scripting/ComponentLuaInterface.h" (") """ (function_definition) "namespace liquid {\n\n/**\n * @brief Name component\n */\nstruct NameComponent {\n struct LuaInterface;\n\n /**\n * Entity name\n */\n String name;\n};\n\n/**\n * @brief Lua interface for name component\n */\nstruct NameComponent::LuaInterface\n : public ComponentLuaInterface<NameComponent::LuaInterface> {\n\n /**\n * @brief Get name\n *\n * @param state Lua state\n * @return Number of arguments\n */\n static int get(void *state);\n\n /**\n * @brief Set name\n *\n * @param state Lua state\n * @return Number of arguments\n */\n static int set(void *state);\n\n /**\n * @brief Interface fields\n */\n static constexpr std::array<InterfaceField, 2> fields{\n InterfaceField{"get", get}, InterfaceField{"set", set}};\n\n /**\n * @brief Get component name in scripts\n *\n * @return Component name\n */\n static const String getName() { return "name"; }\n};\n\n}" (type_identifier) "namespace" (identifier) "liquid" (compound_statement) "{\n\n/**\n * @brief Name component\n */\nstruct NameComponent {\n struct LuaInterface;\n\n /**\n * Entity name\n */\n String name;\n};\n\n/**\n * @brief Lua interface for name component\n */\nstruct NameComponent::LuaInterface\n : public ComponentLuaInterface<NameComponent::LuaInterface> {\n\n /**\n * @brief Get name\n *\n * @param state Lua state\n * @return Number of arguments\n */\n static int get(void *state);\n\n /**\n * @brief Set name\n *\n * @param state Lua state\n * @return Number of arguments\n */\n static int set(void *state);\n\n /**\n * @brief Interface fields\n */\n static constexpr std::array<InterfaceField, 2> fields{\n InterfaceField{"get", get}, InterfaceField{"set", set}};\n\n /**\n * @brief Get component name in scripts\n *\n * @return Component name\n */\n static const String getName() { return "name"; }\n};\n\n}" ({) "{" (comment) "/**\n * @brief Name component\n */" (struct_specifier) "struct NameComponent {\n struct LuaInterface;\n\n /**\n * Entity name\n */\n String name;\n}" (struct) "struct" (type_identifier) "NameComponent" (field_declaration_list) "{\n struct LuaInterface;\n\n /**\n * Entity name\n */\n String name;\n}" ({) "{" (field_declaration) "struct LuaInterface;" (struct_specifier) "struct LuaInterface" (struct) "struct" (type_identifier) "LuaInterface" (;) ";" (comment) "/**\n * Entity name\n */" (field_declaration) "String name;" (type_identifier) "String" (field_identifier) "name" (;) ";" (}) "}" (;) ";" (comment) "/**\n * @brief Lua interface for name component\n */" (declaration) "struct NameComponent::LuaInterface\n : public" (struct_specifier) "struct NameComponent" (struct) "struct" (type_identifier) "NameComponent" (ERROR) "::LuaInterface\n :" (:) ":" (:) ":" (identifier) "LuaInterface" (:) ":" (identifier) "public" (;) "" (ERROR) "ComponentLuaInterface<NameComponent::LuaInterface>" (binary_expression) "ComponentLuaInterface<NameComponent" (identifier) "ComponentLuaInterface" (<) "<" (identifier) "NameComponent" (ERROR) "::LuaInterface" (:) ":" (:) ":" (identifier) "LuaInterface" (>) ">" (compound_statement) "{\n\n /**\n * @brief Get name\n *\n * @param state Lua state\n * @return Number of arguments\n */\n static int get(void *state);\n\n /**\n * @brief Set name\n *\n * @param state Lua state\n * @return Number of arguments\n */\n static int set(void *state);\n\n /**\n * @brief Interface fields\n */\n static constexpr std::array<InterfaceField, 2> fields{\n InterfaceField{"get", get}, InterfaceField{"set", set}};\n\n /**\n * @brief Get component name in scripts\n *\n * @return Component name\n */\n static const String getName() { return "name"; }\n}" ({) "{" (comment) "/**\n * @brief Get name\n *\n * @param state Lua state\n * @return Number of arguments\n */" (declaration) "static int get(void *state);" (storage_class_specifier) "static" (static) "static" (primitive_type) "int" (function_declarator) "get(void *state)" (identifier) "get" (parameter_list) "(void *state)" (() "(" (parameter_declaration) "void *state" (primitive_type) "void" (pointer_declarator) "*state" (*) "*" (identifier) "state" ()) ")" (;) ";" (comment) "/**\n * @brief Set name\n *\n * @param state Lua state\n * @return Number of arguments\n */" (declaration) "static int set(void *state);" (storage_class_specifier) "static" (static) "static" (primitive_type) "int" (function_declarator) "set(void *state)" (identifier) "set" (parameter_list) "(void *state)" (() "(" (parameter_declaration) "void *state" (primitive_type) "void" (pointer_declarator) "*state" (*) "*" (identifier) "state" ()) ")" (;) ";" (comment) "/**\n * @brief Interface fields\n */" (ERROR) "static constexpr std::array<InterfaceField, 2> fields{\n InterfaceField{"get" (storage_class_specifier) "static" (static) "static" (type_qualifier) "constexpr" (constexpr) "constexpr" (type_identifier) "std" (ERROR) "::array<" (:) ":" (:) ":" (identifier) "array" (<) "<" (identifier) "InterfaceField" (,) "," (ERROR) "2> fields{\n InterfaceField{"" (number_literal) "2" (>) ">" (identifier) "fields" ({) "{" (identifier) "InterfaceField" ({) "{" (") """ (identifier) "get" (expression_statement) "", get}, InterfaceField{"set", set}};\n\n /**\n * @brief Get component name in scripts\n *\n * @return Component name\n */\n static const String getName()" (call_expression) "", get}, InterfaceField{"set", set}};\n\n /**\n * @brief Get component name in scripts\n *\n * @return Component name\n */\n static const String getName()" (concatenated_string) "", get}, InterfaceField{"set", set}};\n\n /**\n * @brief Get component name in scripts\n *\n * @return Component name\n */\n static const String getName" (string_literal) "", get}, InterfaceField{"" (") """ (string_content) ", get}, InterfaceField{" (") """ (identifier) "set" (string_literal) "", set}};\n\n /**\n * @brief Get component name in scripts\n *\n * @return Component name\n */" (") """ (string_content) ", set}};" (comment) "/**\n * @brief Get component name in scripts\n *\n * @return Component name\n */" (") "" (identifier) "static" (identifier) "const" (identifier) "String" (identifier) "getName" (argument_list) "()" (() "(" ()) ")" (;) "" (compound_statement) "{ return "name"; }" ({) "{" (return_statement) "return "name";" (return) "return" (string_literal) ""name"" (") """ (string_content) "name" (") """ (;) ";" (}) "}" (}) "}" (expression_statement) ";" (;) ";" (}) "}" (comment) "// namespace liquid"
148
6
{"language": "c", "success": true, "metadata": {"lines": 45, "avg_line_length": 20.02, "nodes": 77, "errors": 0, "source_hash": "261fd49268392e2d786d610179c02ff0e1669467fc72f72afbc757d51988994e", "categorized_nodes": 53}, "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 \"liquid/scripting/ComponentLuaInterface.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": "\"liquid/scripting/ComponentLuaInterface.h\"", "parent": 3, "children": [], "start_point": {"row": 2, "column": 9}, "end_point": {"row": 2, "column": 51}}, {"id": 6, "type": "function_definition", "text": "namespace liquid {\n\n/**\n * @brief Name component\n */\nstruct NameComponent {\n struct LuaInterface;\n\n /**\n * Entity name\n */\n String name;\n};\n\n/**\n * @brief Lua interface for name component\n */\nstruct NameComponent::LuaInterface\n : public ComponentLuaInterface<NameComponent::LuaInterface> {\n\n /**\n * @brief Get name\n *\n * @param state Lua state\n * @return Number of arguments\n */\n static int get(void *state);\n\n /**\n * @brief Set name\n *\n * @param state Lua state\n * @return Number of arguments\n */\n static int set(void *state);\n\n /**\n * @brief Interface fields\n */\n static constexpr std::array<InterfaceField, 2> fields{\n InterfaceField{\"get\", get}, InterfaceField{\"set\", set}};\n\n /**\n * @brief Get component name in scripts\n *\n * @return Component name\n */\n static const String getName() { return \"name\"; }\n};\n\n}", "parent": null, "children": [7, 8], "start_point": {"row": 4, "column": 0}, "end_point": {"row": 54, "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": "liquid", "parent": 6, "children": [], "start_point": {"row": 4, "column": 10}, "end_point": {"row": 4, "column": 16}}, {"id": 9, "type": "struct_specifier", "text": "struct NameComponent {\n struct LuaInterface;\n\n /**\n * Entity name\n */\n String name;\n}", "parent": 6, "children": [10, 11], "start_point": {"row": 9, "column": 0}, "end_point": {"row": 16, "column": 1}}, {"id": 10, "type": "struct", "text": "struct", "parent": 9, "children": [], "start_point": {"row": 9, "column": 0}, "end_point": {"row": 9, "column": 6}}, {"id": 11, "type": "type_identifier", "text": "NameComponent", "parent": 9, "children": [], "start_point": {"row": 9, "column": 7}, "end_point": {"row": 9, "column": 20}}, {"id": 12, "type": "field_declaration", "text": "struct LuaInterface;", "parent": 9, "children": [13], "start_point": {"row": 10, "column": 2}, "end_point": {"row": 10, "column": 22}}, {"id": 13, "type": "struct_specifier", "text": "struct LuaInterface", "parent": 12, "children": [14, 15], "start_point": {"row": 10, "column": 2}, "end_point": {"row": 10, "column": 21}}, {"id": 14, "type": "struct", "text": "struct", "parent": 13, "children": [], "start_point": {"row": 10, "column": 2}, "end_point": {"row": 10, "column": 8}}, {"id": 15, "type": "type_identifier", "text": "LuaInterface", "parent": 13, "children": [], "start_point": {"row": 10, "column": 9}, "end_point": {"row": 10, "column": 21}}, {"id": 16, "type": "field_declaration", "text": "String name;", "parent": 9, "children": [17, 18], "start_point": {"row": 15, "column": 2}, "end_point": {"row": 15, "column": 14}}, {"id": 17, "type": "type_identifier", "text": "String", "parent": 16, "children": [], "start_point": {"row": 15, "column": 2}, "end_point": {"row": 15, "column": 8}}, {"id": 18, "type": "field_identifier", "text": "name", "parent": 16, "children": [], "start_point": {"row": 15, "column": 9}, "end_point": {"row": 15, "column": 13}}, {"id": 19, "type": "declaration", "text": "struct NameComponent::LuaInterface\n : public", "parent": 6, "children": [20, 23], "start_point": {"row": 21, "column": 0}, "end_point": {"row": 22, "column": 12}}, {"id": 20, "type": "struct_specifier", "text": "struct NameComponent", "parent": 19, "children": [21, 22], "start_point": {"row": 21, "column": 0}, "end_point": {"row": 21, "column": 20}}, {"id": 21, "type": "struct", "text": "struct", "parent": 20, "children": [], "start_point": {"row": 21, "column": 0}, "end_point": {"row": 21, "column": 6}}, {"id": 22, "type": "type_identifier", "text": "NameComponent", "parent": 20, "children": [], "start_point": {"row": 21, "column": 7}, "end_point": {"row": 21, "column": 20}}, {"id": 23, "type": "ERROR", "text": "::LuaInterface\n :", "parent": 19, "children": [24], "start_point": {"row": 21, "column": 20}, "end_point": {"row": 22, "column": 5}}, {"id": 24, "type": "identifier", "text": "LuaInterface", "parent": 23, "children": [], "start_point": {"row": 21, "column": 22}, "end_point": {"row": 21, "column": 34}}, {"id": 25, "type": "ERROR", "text": "ComponentLuaInterface<NameComponent::LuaInterface>", "parent": 6, "children": [26, 30, 32], "start_point": {"row": 22, "column": 13}, "end_point": {"row": 22, "column": 63}}, {"id": 26, "type": "binary_expression", "text": "ComponentLuaInterface<NameComponent", "parent": 25, "children": [27, 28, 29], "start_point": {"row": 22, "column": 13}, "end_point": {"row": 22, "column": 48}}, {"id": 27, "type": "identifier", "text": "ComponentLuaInterface", "parent": 26, "children": [], "start_point": {"row": 22, "column": 13}, "end_point": {"row": 22, "column": 34}}, {"id": 28, "type": "<", "text": "<", "parent": 26, "children": [], "start_point": {"row": 22, "column": 34}, "end_point": {"row": 22, "column": 35}}, {"id": 29, "type": "identifier", "text": "NameComponent", "parent": 26, "children": [], "start_point": {"row": 22, "column": 35}, "end_point": {"row": 22, "column": 48}}, {"id": 30, "type": "ERROR", "text": "::LuaInterface", "parent": 25, "children": [31], "start_point": {"row": 22, "column": 48}, "end_point": {"row": 22, "column": 62}}, {"id": 31, "type": "identifier", "text": "LuaInterface", "parent": 30, "children": [], "start_point": {"row": 22, "column": 50}, "end_point": {"row": 22, "column": 62}}, {"id": 32, "type": ">", "text": ">", "parent": 25, "children": [], "start_point": {"row": 22, "column": 62}, "end_point": {"row": 22, "column": 63}}, {"id": 33, "type": "declaration", "text": "static int get(void *state);", "parent": 6, "children": [34, 35], "start_point": {"row": 30, "column": 2}, "end_point": {"row": 30, "column": 30}}, {"id": 34, "type": "primitive_type", "text": "int", "parent": 33, "children": [], "start_point": {"row": 30, "column": 9}, "end_point": {"row": 30, "column": 12}}, {"id": 35, "type": "function_declarator", "text": "get(void *state)", "parent": 33, "children": [36, 37], "start_point": {"row": 30, "column": 13}, "end_point": {"row": 30, "column": 29}}, {"id": 36, "type": "identifier", "text": "get", "parent": 35, "children": [], "start_point": {"row": 30, "column": 13}, "end_point": {"row": 30, "column": 16}}, {"id": 37, "type": "parameter_list", "text": "(void *state)", "parent": 35, "children": [38], "start_point": {"row": 30, "column": 16}, "end_point": {"row": 30, "column": 29}}, {"id": 38, "type": "parameter_declaration", "text": "void *state", "parent": 37, "children": [39, 40], "start_point": {"row": 30, "column": 17}, "end_point": {"row": 30, "column": 28}}, {"id": 39, "type": "primitive_type", "text": "void", "parent": 38, "children": [], "start_point": {"row": 30, "column": 17}, "end_point": {"row": 30, "column": 21}}, {"id": 40, "type": "pointer_declarator", "text": "*state", "parent": 38, "children": [41, 42], "start_point": {"row": 30, "column": 22}, "end_point": {"row": 30, "column": 28}}, {"id": 41, "type": "*", "text": "*", "parent": 40, "children": [], "start_point": {"row": 30, "column": 22}, "end_point": {"row": 30, "column": 23}}, {"id": 42, "type": "identifier", "text": "state", "parent": 40, "children": [], "start_point": {"row": 30, "column": 23}, "end_point": {"row": 30, "column": 28}}, {"id": 43, "type": "declaration", "text": "static int set(void *state);", "parent": 6, "children": [44, 45], "start_point": {"row": 38, "column": 2}, "end_point": {"row": 38, "column": 30}}, {"id": 44, "type": "primitive_type", "text": "int", "parent": 43, "children": [], "start_point": {"row": 38, "column": 9}, "end_point": {"row": 38, "column": 12}}, {"id": 45, "type": "function_declarator", "text": "set(void *state)", "parent": 43, "children": [46, 47], "start_point": {"row": 38, "column": 13}, "end_point": {"row": 38, "column": 29}}, {"id": 46, "type": "identifier", "text": "set", "parent": 45, "children": [], "start_point": {"row": 38, "column": 13}, "end_point": {"row": 38, "column": 16}}, {"id": 47, "type": "parameter_list", "text": "(void *state)", "parent": 45, "children": [48], "start_point": {"row": 38, "column": 16}, "end_point": {"row": 38, "column": 29}}, {"id": 48, "type": "parameter_declaration", "text": "void *state", "parent": 47, "children": [49, 50], "start_point": {"row": 38, "column": 17}, "end_point": {"row": 38, "column": 28}}, {"id": 49, "type": "primitive_type", "text": "void", "parent": 48, "children": [], "start_point": {"row": 38, "column": 17}, "end_point": {"row": 38, "column": 21}}, {"id": 50, "type": "pointer_declarator", "text": "*state", "parent": 48, "children": [51, 52], "start_point": {"row": 38, "column": 22}, "end_point": {"row": 38, "column": 28}}, {"id": 51, "type": "*", "text": "*", "parent": 50, "children": [], "start_point": {"row": 38, "column": 22}, "end_point": {"row": 38, "column": 23}}, {"id": 52, "type": "identifier", "text": "state", "parent": 50, "children": [], "start_point": {"row": 38, "column": 23}, "end_point": {"row": 38, "column": 28}}, {"id": 53, "type": "ERROR", "text": "static constexpr std::array<InterfaceField, 2> fields{\n InterfaceField{\"get", "parent": 6, "children": [54, 56, 57, 60, 61, 66], "start_point": {"row": 43, "column": 2}, "end_point": {"row": 44, "column": 25}}, {"id": 54, "type": "type_qualifier", "text": "constexpr", "parent": 53, "children": [55], "start_point": {"row": 43, "column": 9}, "end_point": {"row": 43, "column": 18}}, {"id": 55, "type": "constexpr", "text": "constexpr", "parent": 54, "children": [], "start_point": {"row": 43, "column": 9}, "end_point": {"row": 43, "column": 18}}, {"id": 56, "type": "type_identifier", "text": "std", "parent": 53, "children": [], "start_point": {"row": 43, "column": 19}, "end_point": {"row": 43, "column": 22}}, {"id": 57, "type": "ERROR", "text": "::array<", "parent": 53, "children": [58, 59], "start_point": {"row": 43, "column": 22}, "end_point": {"row": 43, "column": 30}}, {"id": 58, "type": "identifier", "text": "array", "parent": 57, "children": [], "start_point": {"row": 43, "column": 24}, "end_point": {"row": 43, "column": 29}}, {"id": 59, "type": "<", "text": "<", "parent": 57, "children": [], "start_point": {"row": 43, "column": 29}, "end_point": {"row": 43, "column": 30}}, {"id": 60, "type": "identifier", "text": "InterfaceField", "parent": 53, "children": [], "start_point": {"row": 43, "column": 30}, "end_point": {"row": 43, "column": 44}}, {"id": 61, "type": "ERROR", "text": "2> fields{\n InterfaceField{\"", "parent": 53, "children": [62, 63, 64, 65], "start_point": {"row": 43, "column": 46}, "end_point": {"row": 44, "column": 22}}, {"id": 62, "type": "number_literal", "text": "2", "parent": 61, "children": [], "start_point": {"row": 43, "column": 46}, "end_point": {"row": 43, "column": 47}}, {"id": 63, "type": ">", "text": ">", "parent": 61, "children": [], "start_point": {"row": 43, "column": 47}, "end_point": {"row": 43, "column": 48}}, {"id": 64, "type": "identifier", "text": "fields", "parent": 61, "children": [], "start_point": {"row": 43, "column": 49}, "end_point": {"row": 43, "column": 55}}, {"id": 65, "type": "identifier", "text": "InterfaceField", "parent": 61, "children": [], "start_point": {"row": 44, "column": 6}, "end_point": {"row": 44, "column": 20}}, {"id": 66, "type": "identifier", "text": "get", "parent": 53, "children": [], "start_point": {"row": 44, "column": 22}, "end_point": {"row": 44, "column": 25}}, {"id": 67, "type": "call_expression", "text": "\", get}, InterfaceField{\"set\", set}};\n\n /**\n * @brief Get component name in scripts\n *\n * @return Component name\n */\n static const String getName()", "parent": 6, "children": [68, 74], "start_point": {"row": 44, "column": 25}, "end_point": {"row": 51, "column": 31}}, {"id": 68, "type": "concatenated_string", "text": "\", get}, InterfaceField{\"set\", set}};\n\n /**\n * @brief Get component name in scripts\n *\n * @return Component name\n */\n static const String getName", "parent": 67, "children": [69, 70, 71, 72, 73], "start_point": {"row": 44, "column": 25}, "end_point": {"row": 51, "column": 29}}, {"id": 69, "type": "string_literal", "text": "\", get}, InterfaceField{\"", "parent": 68, "children": [], "start_point": {"row": 44, "column": 25}, "end_point": {"row": 44, "column": 50}}, {"id": 70, "type": "identifier", "text": "set", "parent": 68, "children": [], "start_point": {"row": 44, "column": 50}, "end_point": {"row": 44, "column": 53}}, {"id": 71, "type": "string_literal", "text": "\", set}};\n\n /**\n * @brief Get component name in scripts\n *\n * @return Component name\n */", "parent": 68, "children": [], "start_point": {"row": 44, "column": 53}, "end_point": {"row": 50, "column": 5}}, {"id": 72, "type": "identifier", "text": "String", "parent": 68, "children": [], "start_point": {"row": 51, "column": 15}, "end_point": {"row": 51, "column": 21}}, {"id": 73, "type": "identifier", "text": "getName", "parent": 68, "children": [], "start_point": {"row": 51, "column": 22}, "end_point": {"row": 51, "column": 29}}, {"id": 74, "type": "argument_list", "text": "()", "parent": 67, "children": [], "start_point": {"row": 51, "column": 29}, "end_point": {"row": 51, "column": 31}}, {"id": 75, "type": "return_statement", "text": "return \"name\";", "parent": 6, "children": [76], "start_point": {"row": 51, "column": 34}, "end_point": {"row": 51, "column": 48}}, {"id": 76, "type": "string_literal", "text": "\"name\"", "parent": 75, "children": [], "start_point": {"row": 51, "column": 41}, "end_point": {"row": 51, "column": 47}}]}, "node_categories": {"declarations": {"functions": [6, 35, 45], "variables": [12, 16, 19, 33, 38, 43, 48], "classes": [9, 10, 13, 14, 20, 21], "imports": [3, 4], "modules": [], "enums": []}, "statements": {"expressions": [26, 67], "assignments": [], "loops": [], "conditionals": [7, 8, 11, 15, 17, 18, 22, 24, 27, 29, 31, 36, 42, 46, 52, 54, 56, 58, 60, 64, 65, 66, 70, 72, 73], "returns": [75], "exceptions": []}, "expressions": {"calls": [0], "literals": [5, 62, 68, 69, 71, 76], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [{"node_id": 6, "universal_type": "function", "name": "NameComponent", "text_snippet": "namespace liquid {\n\n/**\n * @brief Name component\n */\nstruct NameComponent {\n struct LuaInterface;\n\n"}, {"node_id": 35, "universal_type": "function", "name": "unknown", "text_snippet": "get(void *state)"}, {"node_id": 45, "universal_type": "function", "name": "unknown", "text_snippet": "set(void *state)"}], "class_declarations": [{"node_id": 9, "universal_type": "class", "name": "NameComponent", "text_snippet": "struct NameComponent {\n struct LuaInterface;\n\n /**\n * Entity name\n */\n String name;\n}"}, {"node_id": 10, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 13, "universal_type": "class", "name": "LuaInterface", "text_snippet": "struct LuaInterface"}, {"node_id": 14, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 20, "universal_type": "class", "name": "NameComponent", "text_snippet": "struct NameComponent"}, {"node_id": 21, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}], "import_statements": [{"node_id": 3, "text": "#include \"liquid/scripting/ComponentLuaInterface.h\"\n"}, {"node_id": 4, "text": "#include"}]}, "original_source_code": "#pragma once\n\n#include \"liquid/scripting/ComponentLuaInterface.h\"\n\nnamespace liquid {\n\n/**\n * @brief Name component\n */\nstruct NameComponent {\n struct LuaInterface;\n\n /**\n * Entity name\n */\n String name;\n};\n\n/**\n * @brief Lua interface for name component\n */\nstruct NameComponent::LuaInterface\n : public ComponentLuaInterface<NameComponent::LuaInterface> {\n\n /**\n * @brief Get name\n *\n * @param state Lua state\n * @return Number of arguments\n */\n static int get(void *state);\n\n /**\n * @brief Set name\n *\n * @param state Lua state\n * @return Number of arguments\n */\n static int set(void *state);\n\n /**\n * @brief Interface fields\n */\n static constexpr std::array<InterfaceField, 2> fields{\n InterfaceField{\"get\", get}, InterfaceField{\"set\", set}};\n\n /**\n * @brief Get component name in scripts\n *\n * @return Component name\n */\n static const String getName() { return \"name\"; }\n};\n\n} // namespace liquid\n"}
80,062
c
#ifndef TABELLAHASH_H #define TABELLAHASH_H #include "liste.h" #include <vector> class TabellaHash { private: vector<LISTE> hashtable; int size_table; public: TabellaHash(int lunghezza); int hash(string s); bool inserimento(PAROLE par); void rimozione(string par); bool ricerca(string par); void stampaT(); int size(); vector<LISTE> head() { return hashtable; } ~TabellaHash(); }; #endif
15.7
27
(translation_unit) "#ifndef TABELLAHASH_H \n#define TABELLAHASH_H \n#include "liste.h" \n#include <vector> \n \n \nclass TabellaHash \n{ \n private: \n vector<LISTE> hashtable; \n int size_table; \n \n public: \n \n TabellaHash(int lunghezza); \n int hash(string s); \n bool inserimento(PAROLE par); \n void rimozione(string par); \n bool ricerca(string par); \n void stampaT(); \n int size(); \n vector<LISTE> head() { return hashtable; } \n ~TabellaHash(); \n \n}; \n \n#endif \n" (preproc_ifdef) "#ifndef TABELLAHASH_H \n#define TABELLAHASH_H \n#include "liste.h" \n#include <vector> \n \n \nclass TabellaHash \n{ \n private: \n vector<LISTE> hashtable; \n int size_table; \n \n public: \n \n TabellaHash(int lunghezza); \n int hash(string s); \n bool inserimento(PAROLE par); \n void rimozione(string par); \n bool ricerca(string par); \n void stampaT(); \n int size(); \n vector<LISTE> head() { return hashtable; } \n ~TabellaHash(); \n \n}; \n \n#endif" (#ifndef) "#ifndef" (identifier) "TABELLAHASH_H" (preproc_def) "#define TABELLAHASH_H \n" (#define) "#define" (identifier) "TABELLAHASH_H" (preproc_include) "#include "liste.h" \n" (#include) "#include" (string_literal) ""liste.h"" (") """ (string_content) "liste.h" (") """ (preproc_include) "#include <vector> \n" (#include) "#include" (system_lib_string) "<vector>" (function_definition) "class TabellaHash \n{ \n private: \n vector<LISTE> hashtable; \n int size_table; \n \n public: \n \n TabellaHash(int lunghezza); \n int hash(string s); \n bool inserimento(PAROLE par); \n void rimozione(string par); \n bool ricerca(string par); \n void stampaT(); \n int size(); \n vector<LISTE> head() { return hashtable; } \n ~TabellaHash(); \n \n}" (type_identifier) "class" (identifier) "TabellaHash" (compound_statement) "{ \n private: \n vector<LISTE> hashtable; \n int size_table; \n \n public: \n \n TabellaHash(int lunghezza); \n int hash(string s); \n bool inserimento(PAROLE par); \n void rimozione(string par); \n bool ricerca(string par); \n void stampaT(); \n int size(); \n vector<LISTE> head() { return hashtable; } \n ~TabellaHash(); \n \n}" ({) "{" (labeled_statement) "private: \n vector<LISTE> hashtable;" (statement_identifier) "private" (:) ":" (expression_statement) "vector<LISTE> hashtable;" (binary_expression) "vector<LISTE> hashtable" (binary_expression) "vector<LISTE" (identifier) "vector" (<) "<" (identifier) "LISTE" (>) ">" (identifier) "hashtable" (;) ";" (declaration) "int size_table;" (primitive_type) "int" (identifier) "size_table" (;) ";" (labeled_statement) "public: \n \n TabellaHash(int lunghezza);" (statement_identifier) "public" (:) ":" (declaration) "TabellaHash(int lunghezza);" (macro_type_specifier) "TabellaHash(int lunghezza)" (identifier) "TabellaHash" (() "(" (ERROR) "int" (primitive_type) "int" (type_descriptor) "lunghezza" (type_identifier) "lunghezza" ()) ")" (identifier) "" (;) ";" (declaration) "int hash(string s);" (primitive_type) "int" (function_declarator) "hash(string s)" (identifier) "hash" (parameter_list) "(string s)" (() "(" (parameter_declaration) "string s" (type_identifier) "string" (identifier) "s" ()) ")" (;) ";" (declaration) "bool inserimento(PAROLE par);" (primitive_type) "bool" (function_declarator) "inserimento(PAROLE par)" (identifier) "inserimento" (parameter_list) "(PAROLE par)" (() "(" (parameter_declaration) "PAROLE par" (type_identifier) "PAROLE" (identifier) "par" ()) ")" (;) ";" (declaration) "void rimozione(string par);" (primitive_type) "void" (function_declarator) "rimozione(string par)" (identifier) "rimozione" (parameter_list) "(string par)" (() "(" (parameter_declaration) "string par" (type_identifier) "string" (identifier) "par" ()) ")" (;) ";" (declaration) "bool ricerca(string par);" (primitive_type) "bool" (function_declarator) "ricerca(string par)" (identifier) "ricerca" (parameter_list) "(string par)" (() "(" (parameter_declaration) "string par" (type_identifier) "string" (identifier) "par" ()) ")" (;) ";" (declaration) "void stampaT();" (primitive_type) "void" (function_declarator) "stampaT()" (identifier) "stampaT" (parameter_list) "()" (() "(" ()) ")" (;) ";" (declaration) "int size();" (primitive_type) "int" (function_declarator) "size()" (identifier) "size" (parameter_list) "()" (() "(" ()) ")" (;) ";" (expression_statement) "vector<LISTE> head()" (binary_expression) "vector<LISTE> head()" (binary_expression) "vector<LISTE" (identifier) "vector" (<) "<" (identifier) "LISTE" (>) ">" (call_expression) "head()" (identifier) "head" (argument_list) "()" (() "(" ()) ")" (;) "" (compound_statement) "{ return hashtable; }" ({) "{" (return_statement) "return hashtable;" (return) "return" (identifier) "hashtable" (;) ";" (}) "}" (expression_statement) "~TabellaHash();" (unary_expression) "~TabellaHash()" (~) "~" (call_expression) "TabellaHash()" (identifier) "TabellaHash" (argument_list) "()" (() "(" ()) ")" (;) ";" (}) "}" (expression_statement) ";" (;) ";" (#endif) "#endif"
144
1
{"language": "c", "success": true, "metadata": {"lines": 27, "avg_line_length": 15.7, "nodes": 93, "errors": 0, "source_hash": "9462015e807bfeb5b00899cea8883d48aa189578e64a7675ed8b0a6f5b9f4359", "categorized_nodes": 66}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef TABELLAHASH_H\r\n#define TABELLAHASH_H\r\n#include \"liste.h\"\r\n#include <vector>\r\n\r\n\r\nclass TabellaHash \r\n{\r\n\tprivate:\r\n\t\tvector<LISTE> hashtable;\r\n\t\tint size_table;\r\n\t\r\n\tpublic:\r\n\t\t\r\n\t\tTabellaHash(int lunghezza); \r\n\t\tint hash(string s);\r\n\t\tbool inserimento(PAROLE par);\r\n\t\tvoid rimozione(string par);\r\n\t\tbool ricerca(string par);\r\n\t\tvoid stampaT();\r\n\t\tint size();\r\n\t\tvector<LISTE> head() { return hashtable; }\r\n\t\t~TabellaHash();\r\n\t\r\n};\r\n\r\n#endif", "parent": null, "children": [1, 2, 3, 6, 9, 12, 92], "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": "TABELLAHASH_H", "parent": 0, "children": [], "start_point": {"row": 0, "column": 8}, "end_point": {"row": 0, "column": 21}}, {"id": 3, "type": "preproc_def", "text": "#define TABELLAHASH_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": "TABELLAHASH_H", "parent": 3, "children": [], "start_point": {"row": 1, "column": 8}, "end_point": {"row": 1, "column": 21}}, {"id": 6, "type": "preproc_include", "text": "#include \"liste.h\"\r\n", "parent": 0, "children": [7, 8], "start_point": {"row": 2, "column": 0}, "end_point": {"row": 3, "column": 0}}, {"id": 7, "type": "#include", "text": "#include", "parent": 6, "children": [], "start_point": {"row": 2, "column": 0}, "end_point": {"row": 2, "column": 8}}, {"id": 8, "type": "string_literal", "text": "\"liste.h\"", "parent": 6, "children": [], "start_point": {"row": 2, "column": 9}, "end_point": {"row": 2, "column": 18}}, {"id": 9, "type": "preproc_include", "text": "#include <vector>\r\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": "class TabellaHash \r\n{\r\n\tprivate:\r\n\t\tvector<LISTE> hashtable;\r\n\t\tint size_table;\r\n\t\r\n\tpublic:\r\n\t\t\r\n\t\tTabellaHash(int lunghezza); \r\n\t\tint hash(string s);\r\n\t\tbool inserimento(PAROLE par);\r\n\t\tvoid rimozione(string par);\r\n\t\tbool ricerca(string par);\r\n\t\tvoid stampaT();\r\n\t\tint size();\r\n\t\tvector<LISTE> head() { return hashtable; }\r\n\t\t~TabellaHash();\r\n\t\r\n}", "parent": 0, "children": [13], "start_point": {"row": 6, "column": 0}, "end_point": {"row": 24, "column": 1}}, {"id": 13, "type": "identifier", "text": "TabellaHash", "parent": 12, "children": [], "start_point": {"row": 6, "column": 6}, "end_point": {"row": 6, "column": 17}}, {"id": 14, "type": "labeled_statement", "text": "private:\r\n\t\tvector<LISTE> hashtable;", "parent": 12, "children": [], "start_point": {"row": 8, "column": 1}, "end_point": {"row": 9, "column": 26}}, {"id": 15, "type": "binary_expression", "text": "vector<LISTE> hashtable", "parent": 14, "children": [16, 20, 21], "start_point": {"row": 9, "column": 2}, "end_point": {"row": 9, "column": 25}}, {"id": 16, "type": "binary_expression", "text": "vector<LISTE", "parent": 15, "children": [17, 18, 19], "start_point": {"row": 9, "column": 2}, "end_point": {"row": 9, "column": 14}}, {"id": 17, "type": "identifier", "text": "vector", "parent": 16, "children": [], "start_point": {"row": 9, "column": 2}, "end_point": {"row": 9, "column": 8}}, {"id": 18, "type": "<", "text": "<", "parent": 16, "children": [], "start_point": {"row": 9, "column": 8}, "end_point": {"row": 9, "column": 9}}, {"id": 19, "type": "identifier", "text": "LISTE", "parent": 16, "children": [], "start_point": {"row": 9, "column": 9}, "end_point": {"row": 9, "column": 14}}, {"id": 20, "type": ">", "text": ">", "parent": 15, "children": [], "start_point": {"row": 9, "column": 14}, "end_point": {"row": 9, "column": 15}}, {"id": 21, "type": "identifier", "text": "hashtable", "parent": 15, "children": [], "start_point": {"row": 9, "column": 16}, "end_point": {"row": 9, "column": 25}}, {"id": 22, "type": "declaration", "text": "int size_table;", "parent": 12, "children": [23, 24], "start_point": {"row": 10, "column": 2}, "end_point": {"row": 10, "column": 17}}, {"id": 23, "type": "primitive_type", "text": "int", "parent": 22, "children": [], "start_point": {"row": 10, "column": 2}, "end_point": {"row": 10, "column": 5}}, {"id": 24, "type": "identifier", "text": "size_table", "parent": 22, "children": [], "start_point": {"row": 10, "column": 6}, "end_point": {"row": 10, "column": 16}}, {"id": 25, "type": "labeled_statement", "text": "public:\r\n\t\t\r\n\t\tTabellaHash(int lunghezza);", "parent": 12, "children": [26], "start_point": {"row": 12, "column": 1}, "end_point": {"row": 14, "column": 29}}, {"id": 26, "type": "declaration", "text": "TabellaHash(int lunghezza);", "parent": 25, "children": [27, 33], "start_point": {"row": 14, "column": 2}, "end_point": {"row": 14, "column": 29}}, {"id": 27, "type": "macro_type_specifier", "text": "TabellaHash(int lunghezza)", "parent": 26, "children": [28, 29, 31], "start_point": {"row": 14, "column": 2}, "end_point": {"row": 14, "column": 28}}, {"id": 28, "type": "identifier", "text": "TabellaHash", "parent": 27, "children": [], "start_point": {"row": 14, "column": 2}, "end_point": {"row": 14, "column": 13}}, {"id": 29, "type": "ERROR", "text": "int", "parent": 27, "children": [30], "start_point": {"row": 14, "column": 14}, "end_point": {"row": 14, "column": 17}}, {"id": 30, "type": "primitive_type", "text": "int", "parent": 29, "children": [], "start_point": {"row": 14, "column": 14}, "end_point": {"row": 14, "column": 17}}, {"id": 31, "type": "type_descriptor", "text": "lunghezza", "parent": 27, "children": [32], "start_point": {"row": 14, "column": 18}, "end_point": {"row": 14, "column": 27}}, {"id": 32, "type": "type_identifier", "text": "lunghezza", "parent": 31, "children": [], "start_point": {"row": 14, "column": 18}, "end_point": {"row": 14, "column": 27}}, {"id": 33, "type": "identifier", "text": "", "parent": 26, "children": [], "start_point": {"row": 14, "column": 28}, "end_point": {"row": 14, "column": 28}}, {"id": 34, "type": "declaration", "text": "int hash(string s);", "parent": 12, "children": [35, 36], "start_point": {"row": 15, "column": 2}, "end_point": {"row": 15, "column": 21}}, {"id": 35, "type": "primitive_type", "text": "int", "parent": 34, "children": [], "start_point": {"row": 15, "column": 2}, "end_point": {"row": 15, "column": 5}}, {"id": 36, "type": "function_declarator", "text": "hash(string s)", "parent": 34, "children": [37, 38], "start_point": {"row": 15, "column": 6}, "end_point": {"row": 15, "column": 20}}, {"id": 37, "type": "identifier", "text": "hash", "parent": 36, "children": [], "start_point": {"row": 15, "column": 6}, "end_point": {"row": 15, "column": 10}}, {"id": 38, "type": "parameter_list", "text": "(string s)", "parent": 36, "children": [39], "start_point": {"row": 15, "column": 10}, "end_point": {"row": 15, "column": 20}}, {"id": 39, "type": "parameter_declaration", "text": "string s", "parent": 38, "children": [40, 41], "start_point": {"row": 15, "column": 11}, "end_point": {"row": 15, "column": 19}}, {"id": 40, "type": "type_identifier", "text": "string", "parent": 39, "children": [], "start_point": {"row": 15, "column": 11}, "end_point": {"row": 15, "column": 17}}, {"id": 41, "type": "identifier", "text": "s", "parent": 39, "children": [], "start_point": {"row": 15, "column": 18}, "end_point": {"row": 15, "column": 19}}, {"id": 42, "type": "declaration", "text": "bool inserimento(PAROLE par);", "parent": 12, "children": [43, 44], "start_point": {"row": 16, "column": 2}, "end_point": {"row": 16, "column": 31}}, {"id": 43, "type": "primitive_type", "text": "bool", "parent": 42, "children": [], "start_point": {"row": 16, "column": 2}, "end_point": {"row": 16, "column": 6}}, {"id": 44, "type": "function_declarator", "text": "inserimento(PAROLE par)", "parent": 42, "children": [45, 46], "start_point": {"row": 16, "column": 7}, "end_point": {"row": 16, "column": 30}}, {"id": 45, "type": "identifier", "text": "inserimento", "parent": 44, "children": [], "start_point": {"row": 16, "column": 7}, "end_point": {"row": 16, "column": 18}}, {"id": 46, "type": "parameter_list", "text": "(PAROLE par)", "parent": 44, "children": [47], "start_point": {"row": 16, "column": 18}, "end_point": {"row": 16, "column": 30}}, {"id": 47, "type": "parameter_declaration", "text": "PAROLE par", "parent": 46, "children": [48, 49], "start_point": {"row": 16, "column": 19}, "end_point": {"row": 16, "column": 29}}, {"id": 48, "type": "type_identifier", "text": "PAROLE", "parent": 47, "children": [], "start_point": {"row": 16, "column": 19}, "end_point": {"row": 16, "column": 25}}, {"id": 49, "type": "identifier", "text": "par", "parent": 47, "children": [], "start_point": {"row": 16, "column": 26}, "end_point": {"row": 16, "column": 29}}, {"id": 50, "type": "declaration", "text": "void rimozione(string par);", "parent": 12, "children": [51, 52], "start_point": {"row": 17, "column": 2}, "end_point": {"row": 17, "column": 29}}, {"id": 51, "type": "primitive_type", "text": "void", "parent": 50, "children": [], "start_point": {"row": 17, "column": 2}, "end_point": {"row": 17, "column": 6}}, {"id": 52, "type": "function_declarator", "text": "rimozione(string par)", "parent": 50, "children": [53, 54], "start_point": {"row": 17, "column": 7}, "end_point": {"row": 17, "column": 28}}, {"id": 53, "type": "identifier", "text": "rimozione", "parent": 52, "children": [], "start_point": {"row": 17, "column": 7}, "end_point": {"row": 17, "column": 16}}, {"id": 54, "type": "parameter_list", "text": "(string par)", "parent": 52, "children": [55], "start_point": {"row": 17, "column": 16}, "end_point": {"row": 17, "column": 28}}, {"id": 55, "type": "parameter_declaration", "text": "string par", "parent": 54, "children": [56, 57], "start_point": {"row": 17, "column": 17}, "end_point": {"row": 17, "column": 27}}, {"id": 56, "type": "type_identifier", "text": "string", "parent": 55, "children": [], "start_point": {"row": 17, "column": 17}, "end_point": {"row": 17, "column": 23}}, {"id": 57, "type": "identifier", "text": "par", "parent": 55, "children": [], "start_point": {"row": 17, "column": 24}, "end_point": {"row": 17, "column": 27}}, {"id": 58, "type": "declaration", "text": "bool ricerca(string par);", "parent": 12, "children": [59, 60], "start_point": {"row": 18, "column": 2}, "end_point": {"row": 18, "column": 27}}, {"id": 59, "type": "primitive_type", "text": "bool", "parent": 58, "children": [], "start_point": {"row": 18, "column": 2}, "end_point": {"row": 18, "column": 6}}, {"id": 60, "type": "function_declarator", "text": "ricerca(string par)", "parent": 58, "children": [61, 62], "start_point": {"row": 18, "column": 7}, "end_point": {"row": 18, "column": 26}}, {"id": 61, "type": "identifier", "text": "ricerca", "parent": 60, "children": [], "start_point": {"row": 18, "column": 7}, "end_point": {"row": 18, "column": 14}}, {"id": 62, "type": "parameter_list", "text": "(string par)", "parent": 60, "children": [63], "start_point": {"row": 18, "column": 14}, "end_point": {"row": 18, "column": 26}}, {"id": 63, "type": "parameter_declaration", "text": "string par", "parent": 62, "children": [64, 65], "start_point": {"row": 18, "column": 15}, "end_point": {"row": 18, "column": 25}}, {"id": 64, "type": "type_identifier", "text": "string", "parent": 63, "children": [], "start_point": {"row": 18, "column": 15}, "end_point": {"row": 18, "column": 21}}, {"id": 65, "type": "identifier", "text": "par", "parent": 63, "children": [], "start_point": {"row": 18, "column": 22}, "end_point": {"row": 18, "column": 25}}, {"id": 66, "type": "declaration", "text": "void stampaT();", "parent": 12, "children": [67, 68], "start_point": {"row": 19, "column": 2}, "end_point": {"row": 19, "column": 17}}, {"id": 67, "type": "primitive_type", "text": "void", "parent": 66, "children": [], "start_point": {"row": 19, "column": 2}, "end_point": {"row": 19, "column": 6}}, {"id": 68, "type": "function_declarator", "text": "stampaT()", "parent": 66, "children": [69, 70], "start_point": {"row": 19, "column": 7}, "end_point": {"row": 19, "column": 16}}, {"id": 69, "type": "identifier", "text": "stampaT", "parent": 68, "children": [], "start_point": {"row": 19, "column": 7}, "end_point": {"row": 19, "column": 14}}, {"id": 70, "type": "parameter_list", "text": "()", "parent": 68, "children": [], "start_point": {"row": 19, "column": 14}, "end_point": {"row": 19, "column": 16}}, {"id": 71, "type": "declaration", "text": "int size();", "parent": 12, "children": [72, 73], "start_point": {"row": 20, "column": 2}, "end_point": {"row": 20, "column": 13}}, {"id": 72, "type": "primitive_type", "text": "int", "parent": 71, "children": [], "start_point": {"row": 20, "column": 2}, "end_point": {"row": 20, "column": 5}}, {"id": 73, "type": "function_declarator", "text": "size()", "parent": 71, "children": [74, 75], "start_point": {"row": 20, "column": 6}, "end_point": {"row": 20, "column": 12}}, {"id": 74, "type": "identifier", "text": "size", "parent": 73, "children": [], "start_point": {"row": 20, "column": 6}, "end_point": {"row": 20, "column": 10}}, {"id": 75, "type": "parameter_list", "text": "()", "parent": 73, "children": [], "start_point": {"row": 20, "column": 10}, "end_point": {"row": 20, "column": 12}}, {"id": 76, "type": "binary_expression", "text": "vector<LISTE> head()", "parent": 12, "children": [77, 81, 82], "start_point": {"row": 21, "column": 2}, "end_point": {"row": 21, "column": 22}}, {"id": 77, "type": "binary_expression", "text": "vector<LISTE", "parent": 76, "children": [78, 79, 80], "start_point": {"row": 21, "column": 2}, "end_point": {"row": 21, "column": 14}}, {"id": 78, "type": "identifier", "text": "vector", "parent": 77, "children": [], "start_point": {"row": 21, "column": 2}, "end_point": {"row": 21, "column": 8}}, {"id": 79, "type": "<", "text": "<", "parent": 77, "children": [], "start_point": {"row": 21, "column": 8}, "end_point": {"row": 21, "column": 9}}, {"id": 80, "type": "identifier", "text": "LISTE", "parent": 77, "children": [], "start_point": {"row": 21, "column": 9}, "end_point": {"row": 21, "column": 14}}, {"id": 81, "type": ">", "text": ">", "parent": 76, "children": [], "start_point": {"row": 21, "column": 14}, "end_point": {"row": 21, "column": 15}}, {"id": 82, "type": "call_expression", "text": "head()", "parent": 76, "children": [83, 84], "start_point": {"row": 21, "column": 16}, "end_point": {"row": 21, "column": 22}}, {"id": 83, "type": "identifier", "text": "head", "parent": 82, "children": [], "start_point": {"row": 21, "column": 16}, "end_point": {"row": 21, "column": 20}}, {"id": 84, "type": "argument_list", "text": "()", "parent": 82, "children": [], "start_point": {"row": 21, "column": 20}, "end_point": {"row": 21, "column": 22}}, {"id": 85, "type": "return_statement", "text": "return hashtable;", "parent": 12, "children": [86], "start_point": {"row": 21, "column": 25}, "end_point": {"row": 21, "column": 42}}, {"id": 86, "type": "identifier", "text": "hashtable", "parent": 85, "children": [], "start_point": {"row": 21, "column": 32}, "end_point": {"row": 21, "column": 41}}, {"id": 87, "type": "unary_expression", "text": "~TabellaHash()", "parent": 12, "children": [88, 89], "start_point": {"row": 22, "column": 2}, "end_point": {"row": 22, "column": 16}}, {"id": 88, "type": "~", "text": "~", "parent": 87, "children": [], "start_point": {"row": 22, "column": 2}, "end_point": {"row": 22, "column": 3}}, {"id": 89, "type": "call_expression", "text": "TabellaHash()", "parent": 87, "children": [90, 91], "start_point": {"row": 22, "column": 3}, "end_point": {"row": 22, "column": 16}}, {"id": 90, "type": "identifier", "text": "TabellaHash", "parent": 89, "children": [], "start_point": {"row": 22, "column": 3}, "end_point": {"row": 22, "column": 14}}, {"id": 91, "type": "argument_list", "text": "()", "parent": 89, "children": [], "start_point": {"row": 22, "column": 14}, "end_point": {"row": 22, "column": 16}}, {"id": 92, "type": "#endif", "text": "#endif", "parent": 0, "children": [], "start_point": {"row": 26, "column": 0}, "end_point": {"row": 26, "column": 6}}]}, "node_categories": {"declarations": {"functions": [12, 36, 44, 52, 60, 68, 73], "variables": [22, 26, 34, 39, 42, 47, 50, 55, 58, 63, 66, 71], "classes": [], "imports": [6, 7, 9, 10], "modules": [], "enums": []}, "statements": {"expressions": [15, 16, 76, 77, 82, 87, 89], "assignments": [], "loops": [], "conditionals": [0, 1, 2, 5, 13, 17, 19, 21, 24, 27, 28, 32, 33, 37, 40, 41, 45, 48, 49, 53, 56, 57, 61, 64, 65, 69, 74, 78, 80, 83, 86, 90, 92], "returns": [85], "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": "TabellaHash", "text_snippet": "class TabellaHash \r\n{\r\n\tprivate:\r\n\t\tvector<LISTE> hashtable;\r\n\t\tint size_table;\r\n\t\r\n\tpublic:\r\n\t\t\r\n\t\t"}, {"node_id": 36, "universal_type": "function", "name": "unknown", "text_snippet": "hash(string s)"}, {"node_id": 44, "universal_type": "function", "name": "unknown", "text_snippet": "inserimento(PAROLE par)"}, {"node_id": 52, "universal_type": "function", "name": "unknown", "text_snippet": "rimozione(string par)"}, {"node_id": 60, "universal_type": "function", "name": "unknown", "text_snippet": "ricerca(string par)"}, {"node_id": 68, "universal_type": "function", "name": "unknown", "text_snippet": "stampaT()"}, {"node_id": 73, "universal_type": "function", "name": "unknown", "text_snippet": "size()"}], "class_declarations": [], "import_statements": [{"node_id": 6, "text": "#include \"liste.h\"\r\n"}, {"node_id": 7, "text": "#include"}, {"node_id": 9, "text": "#include <vector>\r\n"}, {"node_id": 10, "text": "#include"}]}, "original_source_code": "#ifndef TABELLAHASH_H\r\n#define TABELLAHASH_H\r\n#include \"liste.h\"\r\n#include <vector>\r\n\r\n\r\nclass TabellaHash \r\n{\r\n\tprivate:\r\n\t\tvector<LISTE> hashtable;\r\n\t\tint size_table;\r\n\t\r\n\tpublic:\r\n\t\t\r\n\t\tTabellaHash(int lunghezza); \r\n\t\tint hash(string s);\r\n\t\tbool inserimento(PAROLE par);\r\n\t\tvoid rimozione(string par);\r\n\t\tbool ricerca(string par);\r\n\t\tvoid stampaT();\r\n\t\tint size();\r\n\t\tvector<LISTE> head() { return hashtable; }\r\n\t\t~TabellaHash();\r\n\t\r\n};\r\n\r\n#endif\r\n"}
80,063
c
/***************************************************************************** * HalconCpp.h ***************************************************************************** * * Project: HALCON/C++ * Description: Defines / types / extern declarations for HALCON/C++ interface * * (c) 2010-2014 by MVTec Software GmbH * www.mvtec.com * ***************************************************************************** * * *****************************************************************************/ #ifndef HALCON_CPP_H #define HALCON_CPP_H // Architecture limitations #if !defined(HCPP_NO_INT_OVERLOADS) #define HCPP_INT_OVERLOADS #endif #if !defined(HCPP_NO_USE_IOSTREAM) #define HCPP_USE_IOSTREAM #endif // HALCON library includes #include "Halcon.h" // interface version // do not define a number because it can be loaded in parallel to version 10 #define HCPP_INTERFACE_VERSION_11 // Standard C++ library includes #ifdef HCPP_USE_IOSTREAM #include <iostream> #endif // Resolve known macro name collisions #if defined(_WIN32) /* FindText, CreateMutex, CreateEvent, and DeleteFile are also functions of the * Windows API. There are defines on FindTextW, CreateMutexW, CreateEventW, and * DeleteFileW if UNICODE is defined, otherwise there are defines on * FindTextA, CreateMutexA, CreateMutexA, and DeleteFileA. * These defines are undefined here. If you want to use the corresponding * Windows API calls, you must use FindTextA, FindTextW, CreateMutexA, * CreateMutexW, CreateEventA, CreateEventW, DeleteFileA, or DeleteFileW * directly. */ #undef FindText #undef CreateMutex #undef CreateEvent #undef DeleteFile #endif // Macro to deprecate a method #if defined __GNUC__ && !defined HC_NO_LEGACY_WARNING # define GCC_VERSION (__GNUC__ * 10 + __GNUC_MINOR__) # if defined __INTEL_COMPILER || GCC_VERSION < 45 # define HDEPRECATED( OBJ, MSG) OBJ __attribute__ ((deprecated)) # else # define HDEPRECATED( OBJ, MSG) OBJ __attribute__ ((deprecated(MSG))) # endif #elif defined(_MSC_VER) && !defined HC_NO_LEGACY_WARNING # define HDEPRECATED( OBJ, MSG) __declspec(deprecated(MSG)) OBJ #else // no mechanism implemented for this compiler # define HDEPRECATED( OBJ, MSG) OBJ #endif // HALCON/C++ types namespace HalconCpp { #if defined(HCPP_LEGACY_API) // Allow usage of legacy exception handler #define HCPP_LEGACY_EXCEPTION #endif // HALCON/C++ forward declarations class HTuple; class HVector; class HString; class HException; class HDevWindowStack; class HObjectBase; class HToolBase; class HDataBase; // Fully generated classes #include "HalconCppForwards.h" class HDataCode2DArray; } // HALCON/C++ includes #include "HTuple.h" #include "HVector.h" #include "HString.h" #include "HException.h" #include "HDevWindowStack.h" #include "HObjectBase.h" #include "HToolBase.h" #include "HDataBase.h" #include "HOperatorOverloads.h" // Fully generated classes #include "HalconCppIncludes.h" // Include inline functions for streaming operations #include "HIOStream.h" // Defining the following two preprocessor constants // enables a restricted source code compatibility mode // for procedural legacy code // Definining HCPP_LEGACY_API provides declarations for // Hobject and HTuple members that are #if defined(HCPP_LEGACY_API) // Allow to resolve obsolete class Hobject namespace HalconCpp { typedef HalconCpp::HObject Hobject; } // Allow to use global operator signatures with Herror return values */ #include "HOperatorSetLegacy.h" // Defining HCPP_LEGACY_NAMESPACE will textually // replace all references to the Halcon namespace with // HalconCpp, with potential for name conflicts. #if defined(HCPP_LEGACY_NAMESPACE) // Remap namespace Halcon to HalconCpp #define Halcon HalconCpp #endif #endif // HCPP_LEGACY_API #endif // HALCON_CPP_H
29.25
126
(translation_unit) "/*****************************************************************************\n * HalconCpp.h\n ***************************************************************************** \n *\n * Project: HALCON/C++\n * Description: Defines / types / extern declarations for HALCON/C++ interface\n *\n * (c) 2010-2014 by MVTec Software GmbH\n * www.mvtec.com\n * \n *****************************************************************************\n *\n *\n *****************************************************************************/\n\n\n#ifndef HALCON_CPP_H\n#define HALCON_CPP_H\n\n\n// Architecture limitations\n\n#if !defined(HCPP_NO_INT_OVERLOADS)\n#define HCPP_INT_OVERLOADS\n#endif\n\n#if !defined(HCPP_NO_USE_IOSTREAM)\n#define HCPP_USE_IOSTREAM\n#endif\n\n\n// HALCON library includes\n\n#include "Halcon.h"\n\n// interface version\n// do not define a number because it can be loaded in parallel to version 10\n#define HCPP_INTERFACE_VERSION_11\n\n\n// Standard C++ library includes\n\n#ifdef HCPP_USE_IOSTREAM\n#include <iostream>\n#endif\n\n\n// Resolve known macro name collisions\n\n#if defined(_WIN32)\n/* FindText, CreateMutex, CreateEvent, and DeleteFile are also functions of the\n * Windows API. There are defines on FindTextW, CreateMutexW, CreateEventW, and\n * DeleteFileW if UNICODE is defined, otherwise there are defines on\n * FindTextA, CreateMutexA, CreateMutexA, and DeleteFileA.\n * These defines are undefined here. If you want to use the corresponding\n * Windows API calls, you must use FindTextA, FindTextW, CreateMutexA,\n * CreateMutexW, CreateEventA, CreateEventW, DeleteFileA, or DeleteFileW\n * directly. */\n#undef FindText\n#undef CreateMutex\n#undef CreateEvent\n#undef DeleteFile\n#endif\n\n// Macro to deprecate a method\n#if defined __GNUC__ && !defined HC_NO_LEGACY_WARNING\n# define GCC_VERSION (__GNUC__ * 10 + __GNUC_MINOR__)\n# if defined __INTEL_COMPILER || GCC_VERSION < 45\n# define HDEPRECATED( OBJ, MSG) OBJ __attribute__ ((deprecated))\n# else\n# define HDEPRECATED( OBJ, MSG) OBJ __attribute__ ((deprecated(MSG)))\n# endif\n#elif defined(_MSC_VER) && !defined HC_NO_LEGACY_WARNING\n# define HDEPRECATED( OBJ, MSG) __declspec(deprecated(MSG)) OBJ\n#else\n// no mechanism implemented for this compiler\n# define HDEPRECATED( OBJ, MSG) OBJ\n#endif\n\n\n// HALCON/C++ types\n\nnamespace HalconCpp\n{\n\n#if defined(HCPP_LEGACY_API)\n// Allow usage of legacy exception handler\n#define HCPP_LEGACY_EXCEPTION\n#endif\n\n// HALCON/C++ forward declarations\n\nclass HTuple;\nclass HVector;\nclass HString;\nclass HException;\nclass HDevWindowStack;\nclass HObjectBase;\nclass HToolBase;\nclass HDataBase;\n\n// Fully generated classes\n#include "HalconCppForwards.h"\n\nclass HDataCode2DArray;\n\n}\n\n\n// HALCON/C++ includes\n\n#include "HTuple.h"\n#include "HVector.h"\n#include "HString.h"\n#include "HException.h"\n#include "HDevWindowStack.h"\n#include "HObjectBase.h"\n#include "HToolBase.h"\n#include "HDataBase.h"\n#include "HOperatorOverloads.h"\n\n\n// Fully generated classes\n#include "HalconCppIncludes.h"\n\n// Include inline functions for streaming operations\n#include "HIOStream.h"\n\n// Defining the following two preprocessor constants\n// enables a restricted source code compatibility mode\n// for procedural legacy code\n\n// Definining HCPP_LEGACY_API provides declarations for\n// Hobject and HTuple members that are \n\n#if defined(HCPP_LEGACY_API)\n\n// Allow to resolve obsolete class Hobject\nnamespace HalconCpp\n{\n typedef HalconCpp::HObject Hobject;\n}\n\n// Allow to use global operator signatures with Herror return values */\n\n#include "HOperatorSetLegacy.h"\n\n\n\n// Defining HCPP_LEGACY_NAMESPACE will textually\n// replace all references to the Halcon namespace with\n// HalconCpp, with potential for name conflicts.\n\n#if defined(HCPP_LEGACY_NAMESPACE)\n// Remap namespace Halcon to HalconCpp\n#define Halcon HalconCpp\n#endif \n\n#endif // HCPP_LEGACY_API\n\n#endif // HALCON_CPP_H\n" (comment) "/*****************************************************************************\n * HalconCpp.h\n ***************************************************************************** \n *\n * Project: HALCON/C++\n * Description: Defines / types / extern declarations for HALCON/C++ interface\n *\n * (c) 2010-2014 by MVTec Software GmbH\n * www.mvtec.com\n * \n *****************************************************************************\n *\n *\n *****************************************************************************/" (preproc_ifdef) "#ifndef HALCON_CPP_H\n#define HALCON_CPP_H\n\n\n// Architecture limitations\n\n#if !defined(HCPP_NO_INT_OVERLOADS)\n#define HCPP_INT_OVERLOADS\n#endif\n\n#if !defined(HCPP_NO_USE_IOSTREAM)\n#define HCPP_USE_IOSTREAM\n#endif\n\n\n// HALCON library includes\n\n#include "Halcon.h"\n\n// interface version\n// do not define a number because it can be loaded in parallel to version 10\n#define HCPP_INTERFACE_VERSION_11\n\n\n// Standard C++ library includes\n\n#ifdef HCPP_USE_IOSTREAM\n#include <iostream>\n#endif\n\n\n// Resolve known macro name collisions\n\n#if defined(_WIN32)\n/* FindText, CreateMutex, CreateEvent, and DeleteFile are also functions of the\n * Windows API. There are defines on FindTextW, CreateMutexW, CreateEventW, and\n * DeleteFileW if UNICODE is defined, otherwise there are defines on\n * FindTextA, CreateMutexA, CreateMutexA, and DeleteFileA.\n * These defines are undefined here. If you want to use the corresponding\n * Windows API calls, you must use FindTextA, FindTextW, CreateMutexA,\n * CreateMutexW, CreateEventA, CreateEventW, DeleteFileA, or DeleteFileW\n * directly. */\n#undef FindText\n#undef CreateMutex\n#undef CreateEvent\n#undef DeleteFile\n#endif\n\n// Macro to deprecate a method\n#if defined __GNUC__ && !defined HC_NO_LEGACY_WARNING\n# define GCC_VERSION (__GNUC__ * 10 + __GNUC_MINOR__)\n# if defined __INTEL_COMPILER || GCC_VERSION < 45\n# define HDEPRECATED( OBJ, MSG) OBJ __attribute__ ((deprecated))\n# else\n# define HDEPRECATED( OBJ, MSG) OBJ __attribute__ ((deprecated(MSG)))\n# endif\n#elif defined(_MSC_VER) && !defined HC_NO_LEGACY_WARNING\n# define HDEPRECATED( OBJ, MSG) __declspec(deprecated(MSG)) OBJ\n#else\n// no mechanism implemented for this compiler\n# define HDEPRECATED( OBJ, MSG) OBJ\n#endif\n\n\n// HALCON/C++ types\n\nnamespace HalconCpp\n{\n\n#if defined(HCPP_LEGACY_API)\n// Allow usage of legacy exception handler\n#define HCPP_LEGACY_EXCEPTION\n#endif\n\n// HALCON/C++ forward declarations\n\nclass HTuple;\nclass HVector;\nclass HString;\nclass HException;\nclass HDevWindowStack;\nclass HObjectBase;\nclass HToolBase;\nclass HDataBase;\n\n// Fully generated classes\n#include "HalconCppForwards.h"\n\nclass HDataCode2DArray;\n\n}\n\n\n// HALCON/C++ includes\n\n#include "HTuple.h"\n#include "HVector.h"\n#include "HString.h"\n#include "HException.h"\n#include "HDevWindowStack.h"\n#include "HObjectBase.h"\n#include "HToolBase.h"\n#include "HDataBase.h"\n#include "HOperatorOverloads.h"\n\n\n// Fully generated classes\n#include "HalconCppIncludes.h"\n\n// Include inline functions for streaming operations\n#include "HIOStream.h"\n\n// Defining the following two preprocessor constants\n// enables a restricted source code compatibility mode\n// for procedural legacy code\n\n// Definining HCPP_LEGACY_API provides declarations for\n// Hobject and HTuple members that are \n\n#if defined(HCPP_LEGACY_API)\n\n// Allow to resolve obsolete class Hobject\nnamespace HalconCpp\n{\n typedef HalconCpp::HObject Hobject;\n}\n\n// Allow to use global operator signatures with Herror return values */\n\n#include "HOperatorSetLegacy.h"\n\n\n\n// Defining HCPP_LEGACY_NAMESPACE will textually\n// replace all references to the Halcon namespace with\n// HalconCpp, with potential for name conflicts.\n\n#if defined(HCPP_LEGACY_NAMESPACE)\n// Remap namespace Halcon to HalconCpp\n#define Halcon HalconCpp\n#endif \n\n#endif // HCPP_LEGACY_API\n\n#endif" (#ifndef) "#ifndef" (identifier) "HALCON_CPP_H" (preproc_def) "#define HALCON_CPP_H\n" (#define) "#define" (identifier) "HALCON_CPP_H" (comment) "// Architecture limitations" (preproc_if) "#if !defined(HCPP_NO_INT_OVERLOADS)\n#define HCPP_INT_OVERLOADS\n#endif" (#if) "#if" (unary_expression) "!defined(HCPP_NO_INT_OVERLOADS)" (!) "!" (preproc_defined) "defined(HCPP_NO_INT_OVERLOADS)" (defined) "defined" (() "(" (identifier) "HCPP_NO_INT_OVERLOADS" ()) ")" ( ) "\n" (preproc_def) "#define HCPP_INT_OVERLOADS\n" (#define) "#define" (identifier) "HCPP_INT_OVERLOADS" (#endif) "#endif" (preproc_if) "#if !defined(HCPP_NO_USE_IOSTREAM)\n#define HCPP_USE_IOSTREAM\n#endif" (#if) "#if" (unary_expression) "!defined(HCPP_NO_USE_IOSTREAM)" (!) "!" (preproc_defined) "defined(HCPP_NO_USE_IOSTREAM)" (defined) "defined" (() "(" (identifier) "HCPP_NO_USE_IOSTREAM" ()) ")" ( ) "\n" (preproc_def) "#define HCPP_USE_IOSTREAM\n" (#define) "#define" (identifier) "HCPP_USE_IOSTREAM" (#endif) "#endif" (comment) "// HALCON library includes" (preproc_include) "#include "Halcon.h"\n" (#include) "#include" (string_literal) ""Halcon.h"" (") """ (string_content) "Halcon.h" (") """ (comment) "// interface version" (comment) "// do not define a number because it can be loaded in parallel to version 10" (preproc_def) "#define HCPP_INTERFACE_VERSION_11\n" (#define) "#define" (identifier) "HCPP_INTERFACE_VERSION_11" (comment) "// Standard C++ library includes" (preproc_ifdef) "#ifdef HCPP_USE_IOSTREAM\n#include <iostream>\n#endif" (#ifdef) "#ifdef" (identifier) "HCPP_USE_IOSTREAM" (preproc_include) "#include <iostream>\n" (#include) "#include" (system_lib_string) "<iostream>" (#endif) "#endif" (comment) "// Resolve known macro name collisions" (preproc_if) "#if defined(_WIN32)\n/* FindText, CreateMutex, CreateEvent, and DeleteFile are also functions of the\n * Windows API. There are defines on FindTextW, CreateMutexW, CreateEventW, and\n * DeleteFileW if UNICODE is defined, otherwise there are defines on\n * FindTextA, CreateMutexA, CreateMutexA, and DeleteFileA.\n * These defines are undefined here. If you want to use the corresponding\n * Windows API calls, you must use FindTextA, FindTextW, CreateMutexA,\n * CreateMutexW, CreateEventA, CreateEventW, DeleteFileA, or DeleteFileW\n * directly. */\n#undef FindText\n#undef CreateMutex\n#undef CreateEvent\n#undef DeleteFile\n#endif" (#if) "#if" (preproc_defined) "defined(_WIN32)" (defined) "defined" (() "(" (identifier) "_WIN32" ()) ")" ( ) "\n" (comment) "/* FindText, CreateMutex, CreateEvent, and DeleteFile are also functions of the\n * Windows API. There are defines on FindTextW, CreateMutexW, CreateEventW, and\n * DeleteFileW if UNICODE is defined, otherwise there are defines on\n * FindTextA, CreateMutexA, CreateMutexA, and DeleteFileA.\n * These defines are undefined here. If you want to use the corresponding\n * Windows API calls, you must use FindTextA, FindTextW, CreateMutexA,\n * CreateMutexW, CreateEventA, CreateEventW, DeleteFileA, or DeleteFileW\n * directly. */" (preproc_call) "#undef FindText\n" (preproc_directive) "#undef" (preproc_arg) "FindText" (preproc_call) "#undef CreateMutex\n" (preproc_directive) "#undef" (preproc_arg) "CreateMutex" (preproc_call) "#undef CreateEvent\n" (preproc_directive) "#undef" (preproc_arg) "CreateEvent" (preproc_call) "#undef DeleteFile\n" (preproc_directive) "#undef" (preproc_arg) "DeleteFile" (#endif) "#endif" (comment) "// Macro to deprecate a method" (preproc_if) "#if defined __GNUC__ && !defined HC_NO_LEGACY_WARNING\n# define GCC_VERSION (__GNUC__ * 10 + __GNUC_MINOR__)\n# if defined __INTEL_COMPILER || GCC_VERSION < 45\n# define HDEPRECATED( OBJ, MSG) OBJ __attribute__ ((deprecated))\n# else\n# define HDEPRECATED( OBJ, MSG) OBJ __attribute__ ((deprecated(MSG)))\n# endif\n#elif defined(_MSC_VER) && !defined HC_NO_LEGACY_WARNING\n# define HDEPRECATED( OBJ, MSG) __declspec(deprecated(MSG)) OBJ\n#else\n// no mechanism implemented for this compiler\n# define HDEPRECATED( OBJ, MSG) OBJ\n#endif" (#if) "#if" (binary_expression) "defined __GNUC__ && !defined HC_NO_LEGACY_WARNING" (preproc_defined) "defined __GNUC__" (defined) "defined" (identifier) "__GNUC__" (&&) "&&" (unary_expression) "!defined HC_NO_LEGACY_WARNING" (!) "!" (preproc_defined) "defined HC_NO_LEGACY_WARNING" (defined) "defined" (identifier) "HC_NO_LEGACY_WARNING" ( ) "\n" (preproc_def) "# define GCC_VERSION (__GNUC__ * 10 + __GNUC_MINOR__)\n" (#define) "# define" (identifier) "GCC_VERSION" (preproc_arg) "(__GNUC__ * 10 + __GNUC_MINOR__)" (preproc_if) "# if defined __INTEL_COMPILER || GCC_VERSION < 45\n# define HDEPRECATED( OBJ, MSG) OBJ __attribute__ ((deprecated))\n# else\n# define HDEPRECATED( OBJ, MSG) OBJ __attribute__ ((deprecated(MSG)))\n# endif" (#if) "# if" (binary_expression) "defined __INTEL_COMPILER || GCC_VERSION < 45" (preproc_defined) "defined __INTEL_COMPILER" (defined) "defined" (identifier) "__INTEL_COMPILER" (||) "||" (binary_expression) "GCC_VERSION < 45" (identifier) "GCC_VERSION" (<) "<" (number_literal) "45" ( ) "\n" (preproc_function_def) "# define HDEPRECATED( OBJ, MSG) OBJ __attribute__ ((deprecated))\n" (#define) "# define" (identifier) "HDEPRECATED" (preproc_params) "( OBJ, MSG)" (() "(" (identifier) "OBJ" (,) "," (identifier) "MSG" ()) ")" (preproc_arg) "OBJ __attribute__ ((deprecated))" (preproc_else) "# else\n# define HDEPRECATED( OBJ, MSG) OBJ __attribute__ ((deprecated(MSG)))\n" (#else) "# else" (preproc_function_def) "# define HDEPRECATED( OBJ, MSG) OBJ __attribute__ ((deprecated(MSG)))\n" (#define) "# define" (identifier) "HDEPRECATED" (preproc_params) "( OBJ, MSG)" (() "(" (identifier) "OBJ" (,) "," (identifier) "MSG" ()) ")" (preproc_arg) "OBJ __attribute__ ((deprecated(MSG)))" (#endif) "# endif" (preproc_elif) "#elif defined(_MSC_VER) && !defined HC_NO_LEGACY_WARNING\n# define HDEPRECATED( OBJ, MSG) __declspec(deprecated(MSG)) OBJ\n#else\n// no mechanism implemented for this compiler\n# define HDEPRECATED( OBJ, MSG) OBJ\n" (#elif) "#elif" (binary_expression) "defined(_MSC_VER) && !defined HC_NO_LEGACY_WARNING" (preproc_defined) "defined(_MSC_VER)" (defined) "defined" (() "(" (identifier) "_MSC_VER" ()) ")" (&&) "&&" (unary_expression) "!defined HC_NO_LEGACY_WARNING" (!) "!" (preproc_defined) "defined HC_NO_LEGACY_WARNING" (defined) "defined" (identifier) "HC_NO_LEGACY_WARNING" ( ) "\n" (preproc_function_def) "# define HDEPRECATED( OBJ, MSG) __declspec(deprecated(MSG)) OBJ\n" (#define) "# define" (identifier) "HDEPRECATED" (preproc_params) "( OBJ, MSG)" (() "(" (identifier) "OBJ" (,) "," (identifier) "MSG" ()) ")" (preproc_arg) "__declspec(deprecated(MSG)) OBJ" (preproc_else) "#else\n// no mechanism implemented for this compiler\n# define HDEPRECATED( OBJ, MSG) OBJ\n" (#else) "#else" (comment) "// no mechanism implemented for this compiler" (preproc_function_def) "# define HDEPRECATED( OBJ, MSG) OBJ\n" (#define) "# define" (identifier) "HDEPRECATED" (preproc_params) "( OBJ, MSG)" (() "(" (identifier) "OBJ" (,) "," (identifier) "MSG" ()) ")" (preproc_arg) "OBJ" (#endif) "#endif" (comment) "// HALCON/C++ types" (function_definition) "namespace HalconCpp\n{\n\n#if defined(HCPP_LEGACY_API)\n// Allow usage of legacy exception handler\n#define HCPP_LEGACY_EXCEPTION\n#endif\n\n// HALCON/C++ forward declarations\n\nclass HTuple;\nclass HVector;\nclass HString;\nclass HException;\nclass HDevWindowStack;\nclass HObjectBase;\nclass HToolBase;\nclass HDataBase;\n\n// Fully generated classes\n#include "HalconCppForwards.h"\n\nclass HDataCode2DArray;\n\n}" (type_identifier) "namespace" (identifier) "HalconCpp" (compound_statement) "{\n\n#if defined(HCPP_LEGACY_API)\n// Allow usage of legacy exception handler\n#define HCPP_LEGACY_EXCEPTION\n#endif\n\n// HALCON/C++ forward declarations\n\nclass HTuple;\nclass HVector;\nclass HString;\nclass HException;\nclass HDevWindowStack;\nclass HObjectBase;\nclass HToolBase;\nclass HDataBase;\n\n// Fully generated classes\n#include "HalconCppForwards.h"\n\nclass HDataCode2DArray;\n\n}" ({) "{" (preproc_if) "#if defined(HCPP_LEGACY_API)\n// Allow usage of legacy exception handler\n#define HCPP_LEGACY_EXCEPTION\n#endif" (#if) "#if" (preproc_defined) "defined(HCPP_LEGACY_API)" (defined) "defined" (() "(" (identifier) "HCPP_LEGACY_API" ()) ")" ( ) "\n" (comment) "// Allow usage of legacy exception handler" (preproc_def) "#define HCPP_LEGACY_EXCEPTION\n" (#define) "#define" (identifier) "HCPP_LEGACY_EXCEPTION" (#endif) "#endif" (comment) "// HALCON/C++ forward declarations" (declaration) "class HTuple;" (type_identifier) "class" (identifier) "HTuple" (;) ";" (declaration) "class HVector;" (type_identifier) "class" (identifier) "HVector" (;) ";" (declaration) "class HString;" (type_identifier) "class" (identifier) "HString" (;) ";" (declaration) "class HException;" (type_identifier) "class" (identifier) "HException" (;) ";" (declaration) "class HDevWindowStack;" (type_identifier) "class" (identifier) "HDevWindowStack" (;) ";" (declaration) "class HObjectBase;" (type_identifier) "class" (identifier) "HObjectBase" (;) ";" (declaration) "class HToolBase;" (type_identifier) "class" (identifier) "HToolBase" (;) ";" (declaration) "class HDataBase;" (type_identifier) "class" (identifier) "HDataBase" (;) ";" (comment) "// Fully generated classes" (preproc_include) "#include "HalconCppForwards.h"\n" (#include) "#include" (string_literal) ""HalconCppForwards.h"" (") """ (string_content) "HalconCppForwards.h" (") """ (declaration) "class HDataCode2DArray;" (type_identifier) "class" (identifier) "HDataCode2DArray" (;) ";" (}) "}" (comment) "// HALCON/C++ includes" (preproc_include) "#include "HTuple.h"\n" (#include) "#include" (string_literal) ""HTuple.h"" (") """ (string_content) "HTuple.h" (") """ (preproc_include) "#include "HVector.h"\n" (#include) "#include" (string_literal) ""HVector.h"" (") """ (string_content) "HVector.h" (") """ (preproc_include) "#include "HString.h"\n" (#include) "#include" (string_literal) ""HString.h"" (") """ (string_content) "HString.h" (") """ (preproc_include) "#include "HException.h"\n" (#include) "#include" (string_literal) ""HException.h"" (") """ (string_content) "HException.h" (") """ (preproc_include) "#include "HDevWindowStack.h"\n" (#include) "#include" (string_literal) ""HDevWindowStack.h"" (") """ (string_content) "HDevWindowStack.h" (") """ (preproc_include) "#include "HObjectBase.h"\n" (#include) "#include" (string_literal) ""HObjectBase.h"" (") """ (string_content) "HObjectBase.h" (") """ (preproc_include) "#include "HToolBase.h"\n" (#include) "#include" (string_literal) ""HToolBase.h"" (") """ (string_content) "HToolBase.h" (") """ (preproc_include) "#include "HDataBase.h"\n" (#include) "#include" (string_literal) ""HDataBase.h"" (") """ (string_content) "HDataBase.h" (") """ (preproc_include) "#include "HOperatorOverloads.h"\n" (#include) "#include" (string_literal) ""HOperatorOverloads.h"" (") """ (string_content) "HOperatorOverloads.h" (") """ (comment) "// Fully generated classes" (preproc_include) "#include "HalconCppIncludes.h"\n" (#include) "#include" (string_literal) ""HalconCppIncludes.h"" (") """ (string_content) "HalconCppIncludes.h" (") """ (comment) "// Include inline functions for streaming operations" (preproc_include) "#include "HIOStream.h"\n" (#include) "#include" (string_literal) ""HIOStream.h"" (") """ (string_content) "HIOStream.h" (") """ (comment) "// Defining the following two preprocessor constants" (comment) "// enables a restricted source code compatibility mode" (comment) "// for procedural legacy code" (comment) "// Definining HCPP_LEGACY_API provides declarations for" (comment) "// Hobject and HTuple members that are " (preproc_if) "#if defined(HCPP_LEGACY_API)\n\n// Allow to resolve obsolete class Hobject\nnamespace HalconCpp\n{\n typedef HalconCpp::HObject Hobject;\n}\n\n// Allow to use global operator signatures with Herror return values */\n\n#include "HOperatorSetLegacy.h"\n\n\n\n// Defining HCPP_LEGACY_NAMESPACE will textually\n// replace all references to the Halcon namespace with\n// HalconCpp, with potential for name conflicts.\n\n#if defined(HCPP_LEGACY_NAMESPACE)\n// Remap namespace Halcon to HalconCpp\n#define Halcon HalconCpp\n#endif \n\n#endif" (#if) "#if" (preproc_defined) "defined(HCPP_LEGACY_API)" (defined) "defined" (() "(" (identifier) "HCPP_LEGACY_API" ()) ")" ( ) "\n\n" (comment) "// Allow to resolve obsolete class Hobject" (function_definition) "namespace HalconCpp\n{\n typedef HalconCpp::HObject Hobject;\n}" (type_identifier) "namespace" (identifier) "HalconCpp" (compound_statement) "{\n typedef HalconCpp::HObject Hobject;\n}" ({) "{" (type_definition) "typedef HalconCpp::HObject Hobject;" (typedef) "typedef" (type_identifier) "HalconCpp" (ERROR) "::HObject" (:) ":" (:) ":" (type_identifier) "HObject" (type_identifier) "Hobject" (;) ";" (}) "}" (comment) "// Allow to use global operator signatures with Herror return values */" (preproc_include) "#include "HOperatorSetLegacy.h"\n" (#include) "#include" (string_literal) ""HOperatorSetLegacy.h"" (") """ (string_content) "HOperatorSetLegacy.h" (") """ (comment) "// Defining HCPP_LEGACY_NAMESPACE will textually" (comment) "// replace all references to the Halcon namespace with" (comment) "// HalconCpp, with potential for name conflicts." (preproc_if) "#if defined(HCPP_LEGACY_NAMESPACE)\n// Remap namespace Halcon to HalconCpp\n#define Halcon HalconCpp\n#endif" (#if) "#if" (preproc_defined) "defined(HCPP_LEGACY_NAMESPACE)" (defined) "defined" (() "(" (identifier) "HCPP_LEGACY_NAMESPACE" ()) ")" ( ) "\n" (comment) "// Remap namespace Halcon to HalconCpp" (preproc_def) "#define Halcon HalconCpp\n" (#define) "#define" (identifier) "Halcon" (preproc_arg) "HalconCpp" (#endif) "#endif" (#endif) "#endif" (comment) "// HCPP_LEGACY_API" (#endif) "#endif" (comment) "// HALCON_CPP_H"
362
1
{"language": "c", "success": true, "metadata": {"lines": 126, "avg_line_length": 29.25, "nodes": 236, "errors": 0, "source_hash": "95f79bdefccd923caebb30fb857c2e300932f1af64c53d48944644016f8945c6", "categorized_nodes": 155}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef HALCON_CPP_H\n#define HALCON_CPP_H\n\n\n// Architecture limitations\n\n#if !defined(HCPP_NO_INT_OVERLOADS)\n#define HCPP_INT_OVERLOADS\n#endif\n\n#if !defined(HCPP_NO_USE_IOSTREAM)\n#define HCPP_USE_IOSTREAM\n#endif\n\n\n// HALCON library includes\n\n#include \"Halcon.h\"\n\n// interface version\n// do not define a number because it can be loaded in parallel to version 10\n#define HCPP_INTERFACE_VERSION_11\n\n\n// Standard C++ library includes\n\n#ifdef HCPP_USE_IOSTREAM\n#include <iostream>\n#endif\n\n\n// Resolve known macro name collisions\n\n#if defined(_WIN32)\n/* FindText, CreateMutex, CreateEvent, and DeleteFile are also functions of the\n * Windows API. There are defines on FindTextW, CreateMutexW, CreateEventW, and\n * DeleteFileW if UNICODE is defined, otherwise there are defines on\n * FindTextA, CreateMutexA, CreateMutexA, and DeleteFileA.\n * These defines are undefined here. If you want to use the corresponding\n * Windows API calls, you must use FindTextA, FindTextW, CreateMutexA,\n * CreateMutexW, CreateEventA, CreateEventW, DeleteFileA, or DeleteFileW\n * directly. */\n#undef FindText\n#undef CreateMutex\n#undef CreateEvent\n#undef DeleteFile\n#endif\n\n// Macro to deprecate a method\n#if defined __GNUC__ && !defined HC_NO_LEGACY_WARNING\n# define GCC_VERSION (__GNUC__ * 10 + __GNUC_MINOR__)\n# if defined __INTEL_COMPILER || GCC_VERSION < 45\n# define HDEPRECATED( OBJ, MSG) OBJ __attribute__ ((deprecated))\n# else\n# define HDEPRECATED( OBJ, MSG) OBJ __attribute__ ((deprecated(MSG)))\n# endif\n#elif defined(_MSC_VER) && !defined HC_NO_LEGACY_WARNING\n# define HDEPRECATED( OBJ, MSG) __declspec(deprecated(MSG)) OBJ\n#else\n// no mechanism implemented for this compiler\n# define HDEPRECATED( OBJ, MSG) OBJ\n#endif\n\n\n// HALCON/C++ types\n\nnamespace HalconCpp\n{\n\n#if defined(HCPP_LEGACY_API)\n// Allow usage of legacy exception handler\n#define HCPP_LEGACY_EXCEPTION\n#endif\n\n// HALCON/C++ forward declarations\n\nclass HTuple;\nclass HVector;\nclass HString;\nclass HException;\nclass HDevWindowStack;\nclass HObjectBase;\nclass HToolBase;\nclass HDataBase;\n\n// Fully generated classes\n#include \"HalconCppForwards.h\"\n\nclass HDataCode2DArray;\n\n}\n\n\n// HALCON/C++ includes\n\n#include \"HTuple.h\"\n#include \"HVector.h\"\n#include \"HString.h\"\n#include \"HException.h\"\n#include \"HDevWindowStack.h\"\n#include \"HObjectBase.h\"\n#include \"HToolBase.h\"\n#include \"HDataBase.h\"\n#include \"HOperatorOverloads.h\"\n\n\n// Fully generated classes\n#include \"HalconCppIncludes.h\"\n\n// Include inline functions for streaming operations\n#include \"HIOStream.h\"\n\n// Defining the following two preprocessor constants\n// enables a restricted source code compatibility mode\n// for procedural legacy code\n\n// Definining HCPP_LEGACY_API provides declarations for\n// Hobject and HTuple members that are \n\n#if defined(HCPP_LEGACY_API)\n\n// Allow to resolve obsolete class Hobject\nnamespace HalconCpp\n{\n typedef HalconCpp::HObject Hobject;\n}\n\n// Allow to use global operator signatures with Herror return values */\n\n#include \"HOperatorSetLegacy.h\"\n\n\n\n// Defining HCPP_LEGACY_NAMESPACE will textually\n// replace all references to the Halcon namespace with\n// HalconCpp, with potential for name conflicts.\n\n#if defined(HCPP_LEGACY_NAMESPACE)\n// Remap namespace Halcon to HalconCpp\n#define Halcon HalconCpp\n#endif \n\n#endif // HCPP_LEGACY_API\n\n#endif", "parent": null, "children": [1, 2, 3, 6, 18, 30, 33, 36, 43, 62, 138, 172, 175, 178, 181, 184, 187, 190, 193, 196, 199, 202, 205, 235], "start_point": {"row": 16, "column": 0}, "end_point": {"row": 160, "column": 6}}, {"id": 1, "type": "#ifndef", "text": "#ifndef", "parent": 0, "children": [], "start_point": {"row": 16, "column": 0}, "end_point": {"row": 16, "column": 7}}, {"id": 2, "type": "identifier", "text": "HALCON_CPP_H", "parent": 0, "children": [], "start_point": {"row": 16, "column": 8}, "end_point": {"row": 16, "column": 20}}, {"id": 3, "type": "preproc_def", "text": "#define HALCON_CPP_H\n", "parent": 0, "children": [4, 5], "start_point": {"row": 17, "column": 0}, "end_point": {"row": 18, "column": 0}}, {"id": 4, "type": "#define", "text": "#define", "parent": 3, "children": [], "start_point": {"row": 17, "column": 0}, "end_point": {"row": 17, "column": 7}}, {"id": 5, "type": "identifier", "text": "HALCON_CPP_H", "parent": 3, "children": [], "start_point": {"row": 17, "column": 8}, "end_point": {"row": 17, "column": 20}}, {"id": 6, "type": "preproc_if", "text": "#if !defined(HCPP_NO_INT_OVERLOADS)\n#define HCPP_INT_OVERLOADS\n#endif", "parent": 0, "children": [7, 8, 13, 14, 17], "start_point": {"row": 22, "column": 0}, "end_point": {"row": 24, "column": 6}}, {"id": 7, "type": "#if", "text": "#if", "parent": 6, "children": [], "start_point": {"row": 22, "column": 0}, "end_point": {"row": 22, "column": 3}}, {"id": 8, "type": "unary_expression", "text": "!defined(HCPP_NO_INT_OVERLOADS)", "parent": 6, "children": [9, 10], "start_point": {"row": 22, "column": 4}, "end_point": {"row": 22, "column": 35}}, {"id": 9, "type": "!", "text": "!", "parent": 8, "children": [], "start_point": {"row": 22, "column": 4}, "end_point": {"row": 22, "column": 5}}, {"id": 10, "type": "preproc_defined", "text": "defined(HCPP_NO_INT_OVERLOADS)", "parent": 8, "children": [11, 12], "start_point": {"row": 22, "column": 5}, "end_point": {"row": 22, "column": 35}}, {"id": 11, "type": "defined", "text": "defined", "parent": 10, "children": [], "start_point": {"row": 22, "column": 5}, "end_point": {"row": 22, "column": 12}}, {"id": 12, "type": "identifier", "text": "HCPP_NO_INT_OVERLOADS", "parent": 10, "children": [], "start_point": {"row": 22, "column": 13}, "end_point": {"row": 22, "column": 34}}, {"id": 13, "type": "\n", "text": "\n", "parent": 6, "children": [], "start_point": {"row": 22, "column": 35}, "end_point": {"row": 23, "column": 0}}, {"id": 14, "type": "preproc_def", "text": "#define HCPP_INT_OVERLOADS\n", "parent": 6, "children": [15, 16], "start_point": {"row": 23, "column": 0}, "end_point": {"row": 24, "column": 0}}, {"id": 15, "type": "#define", "text": "#define", "parent": 14, "children": [], "start_point": {"row": 23, "column": 0}, "end_point": {"row": 23, "column": 7}}, {"id": 16, "type": "identifier", "text": "HCPP_INT_OVERLOADS", "parent": 14, "children": [], "start_point": {"row": 23, "column": 8}, "end_point": {"row": 23, "column": 26}}, {"id": 17, "type": "#endif", "text": "#endif", "parent": 6, "children": [], "start_point": {"row": 24, "column": 0}, "end_point": {"row": 24, "column": 6}}, {"id": 18, "type": "preproc_if", "text": "#if !defined(HCPP_NO_USE_IOSTREAM)\n#define HCPP_USE_IOSTREAM\n#endif", "parent": 0, "children": [19, 20, 25, 26, 29], "start_point": {"row": 26, "column": 0}, "end_point": {"row": 28, "column": 6}}, {"id": 19, "type": "#if", "text": "#if", "parent": 18, "children": [], "start_point": {"row": 26, "column": 0}, "end_point": {"row": 26, "column": 3}}, {"id": 20, "type": "unary_expression", "text": "!defined(HCPP_NO_USE_IOSTREAM)", "parent": 18, "children": [21, 22], "start_point": {"row": 26, "column": 4}, "end_point": {"row": 26, "column": 34}}, {"id": 21, "type": "!", "text": "!", "parent": 20, "children": [], "start_point": {"row": 26, "column": 4}, "end_point": {"row": 26, "column": 5}}, {"id": 22, "type": "preproc_defined", "text": "defined(HCPP_NO_USE_IOSTREAM)", "parent": 20, "children": [23, 24], "start_point": {"row": 26, "column": 5}, "end_point": {"row": 26, "column": 34}}, {"id": 23, "type": "defined", "text": "defined", "parent": 22, "children": [], "start_point": {"row": 26, "column": 5}, "end_point": {"row": 26, "column": 12}}, {"id": 24, "type": "identifier", "text": "HCPP_NO_USE_IOSTREAM", "parent": 22, "children": [], "start_point": {"row": 26, "column": 13}, "end_point": {"row": 26, "column": 33}}, {"id": 25, "type": "\n", "text": "\n", "parent": 18, "children": [], "start_point": {"row": 26, "column": 34}, "end_point": {"row": 27, "column": 0}}, {"id": 26, "type": "preproc_def", "text": "#define HCPP_USE_IOSTREAM\n", "parent": 18, "children": [27, 28], "start_point": {"row": 27, "column": 0}, "end_point": {"row": 28, "column": 0}}, {"id": 27, "type": "#define", "text": "#define", "parent": 26, "children": [], "start_point": {"row": 27, "column": 0}, "end_point": {"row": 27, "column": 7}}, {"id": 28, "type": "identifier", "text": "HCPP_USE_IOSTREAM", "parent": 26, "children": [], "start_point": {"row": 27, "column": 8}, "end_point": {"row": 27, "column": 25}}, {"id": 29, "type": "#endif", "text": "#endif", "parent": 18, "children": [], "start_point": {"row": 28, "column": 0}, "end_point": {"row": 28, "column": 6}}, {"id": 30, "type": "preproc_include", "text": "#include \"Halcon.h\"\n", "parent": 0, "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": "\"Halcon.h\"", "parent": 30, "children": [], "start_point": {"row": 33, "column": 9}, "end_point": {"row": 33, "column": 19}}, {"id": 33, "type": "preproc_def", "text": "#define HCPP_INTERFACE_VERSION_11\n", "parent": 0, "children": [34, 35], "start_point": {"row": 37, "column": 0}, "end_point": {"row": 38, "column": 0}}, {"id": 34, "type": "#define", "text": "#define", "parent": 33, "children": [], "start_point": {"row": 37, "column": 0}, "end_point": {"row": 37, "column": 7}}, {"id": 35, "type": "identifier", "text": "HCPP_INTERFACE_VERSION_11", "parent": 33, "children": [], "start_point": {"row": 37, "column": 8}, "end_point": {"row": 37, "column": 33}}, {"id": 36, "type": "preproc_ifdef", "text": "#ifdef HCPP_USE_IOSTREAM\n#include <iostream>\n#endif", "parent": 0, "children": [37, 38, 39, 42], "start_point": {"row": 42, "column": 0}, "end_point": {"row": 44, "column": 6}}, {"id": 37, "type": "#ifdef", "text": "#ifdef", "parent": 36, "children": [], "start_point": {"row": 42, "column": 0}, "end_point": {"row": 42, "column": 6}}, {"id": 38, "type": "identifier", "text": "HCPP_USE_IOSTREAM", "parent": 36, "children": [], "start_point": {"row": 42, "column": 7}, "end_point": {"row": 42, "column": 24}}, {"id": 39, "type": "preproc_include", "text": "#include <iostream>\n", "parent": 36, "children": [40, 41], "start_point": {"row": 43, "column": 0}, "end_point": {"row": 44, "column": 0}}, {"id": 40, "type": "#include", "text": "#include", "parent": 39, "children": [], "start_point": {"row": 43, "column": 0}, "end_point": {"row": 43, "column": 8}}, {"id": 41, "type": "system_lib_string", "text": "<iostream>", "parent": 39, "children": [], "start_point": {"row": 43, "column": 9}, "end_point": {"row": 43, "column": 19}}, {"id": 42, "type": "#endif", "text": "#endif", "parent": 36, "children": [], "start_point": {"row": 44, "column": 0}, "end_point": {"row": 44, "column": 6}}, {"id": 43, "type": "preproc_if", "text": "#if defined(_WIN32)\n/* FindText, CreateMutex, CreateEvent, and DeleteFile are also functions of the\n * Windows API. There are defines on FindTextW, CreateMutexW, CreateEventW, and\n * DeleteFileW if UNICODE is defined, otherwise there are defines on\n * FindTextA, CreateMutexA, CreateMutexA, and DeleteFileA.\n * These defines are undefined here. If you want to use the corresponding\n * Windows API calls, you must use FindTextA, FindTextW, CreateMutexA,\n * CreateMutexW, CreateEventA, CreateEventW, DeleteFileA, or DeleteFileW\n * directly. */\n#undef FindText\n#undef CreateMutex\n#undef CreateEvent\n#undef DeleteFile\n#endif", "parent": 0, "children": [44, 45, 48, 49, 52, 55, 58, 61], "start_point": {"row": 49, "column": 0}, "end_point": {"row": 62, "column": 6}}, {"id": 44, "type": "#if", "text": "#if", "parent": 43, "children": [], "start_point": {"row": 49, "column": 0}, "end_point": {"row": 49, "column": 3}}, {"id": 45, "type": "preproc_defined", "text": "defined(_WIN32)", "parent": 43, "children": [46, 47], "start_point": {"row": 49, "column": 4}, "end_point": {"row": 49, "column": 19}}, {"id": 46, "type": "defined", "text": "defined", "parent": 45, "children": [], "start_point": {"row": 49, "column": 4}, "end_point": {"row": 49, "column": 11}}, {"id": 47, "type": "identifier", "text": "_WIN32", "parent": 45, "children": [], "start_point": {"row": 49, "column": 12}, "end_point": {"row": 49, "column": 18}}, {"id": 48, "type": "\n", "text": "\n", "parent": 43, "children": [], "start_point": {"row": 49, "column": 19}, "end_point": {"row": 50, "column": 0}}, {"id": 49, "type": "preproc_call", "text": "#undef FindText\n", "parent": 43, "children": [50, 51], "start_point": {"row": 58, "column": 0}, "end_point": {"row": 59, "column": 0}}, {"id": 50, "type": "preproc_directive", "text": "#undef", "parent": 49, "children": [], "start_point": {"row": 58, "column": 0}, "end_point": {"row": 58, "column": 6}}, {"id": 51, "type": "preproc_arg", "text": "FindText", "parent": 49, "children": [], "start_point": {"row": 58, "column": 7}, "end_point": {"row": 58, "column": 15}}, {"id": 52, "type": "preproc_call", "text": "#undef CreateMutex\n", "parent": 43, "children": [53, 54], "start_point": {"row": 59, "column": 0}, "end_point": {"row": 60, "column": 0}}, {"id": 53, "type": "preproc_directive", "text": "#undef", "parent": 52, "children": [], "start_point": {"row": 59, "column": 0}, "end_point": {"row": 59, "column": 6}}, {"id": 54, "type": "preproc_arg", "text": "CreateMutex", "parent": 52, "children": [], "start_point": {"row": 59, "column": 7}, "end_point": {"row": 59, "column": 18}}, {"id": 55, "type": "preproc_call", "text": "#undef CreateEvent\n", "parent": 43, "children": [56, 57], "start_point": {"row": 60, "column": 0}, "end_point": {"row": 61, "column": 0}}, {"id": 56, "type": "preproc_directive", "text": "#undef", "parent": 55, "children": [], "start_point": {"row": 60, "column": 0}, "end_point": {"row": 60, "column": 6}}, {"id": 57, "type": "preproc_arg", "text": "CreateEvent", "parent": 55, "children": [], "start_point": {"row": 60, "column": 7}, "end_point": {"row": 60, "column": 18}}, {"id": 58, "type": "preproc_call", "text": "#undef DeleteFile\n", "parent": 43, "children": [59, 60], "start_point": {"row": 61, "column": 0}, "end_point": {"row": 62, "column": 0}}, {"id": 59, "type": "preproc_directive", "text": "#undef", "parent": 58, "children": [], "start_point": {"row": 61, "column": 0}, "end_point": {"row": 61, "column": 6}}, {"id": 60, "type": "preproc_arg", "text": "DeleteFile", "parent": 58, "children": [], "start_point": {"row": 61, "column": 7}, "end_point": {"row": 61, "column": 17}}, {"id": 61, "type": "#endif", "text": "#endif", "parent": 43, "children": [], "start_point": {"row": 62, "column": 0}, "end_point": {"row": 62, "column": 6}}, {"id": 62, "type": "preproc_if", "text": "#if defined __GNUC__ && !defined HC_NO_LEGACY_WARNING\n# define GCC_VERSION (__GNUC__ * 10 + __GNUC_MINOR__)\n# if defined __INTEL_COMPILER || GCC_VERSION < 45\n# define HDEPRECATED( OBJ, MSG) OBJ __attribute__ ((deprecated))\n# else\n# define HDEPRECATED( OBJ, MSG) OBJ __attribute__ ((deprecated(MSG)))\n# endif\n#elif defined(_MSC_VER) && !defined HC_NO_LEGACY_WARNING\n# define HDEPRECATED( OBJ, MSG) __declspec(deprecated(MSG)) OBJ\n#else\n// no mechanism implemented for this compiler\n# define HDEPRECATED( OBJ, MSG) OBJ\n#endif", "parent": 0, "children": [63, 64, 74, 75, 79, 108, 137], "start_point": {"row": 65, "column": 0}, "end_point": {"row": 77, "column": 6}}, {"id": 63, "type": "#if", "text": "#if", "parent": 62, "children": [], "start_point": {"row": 65, "column": 0}, "end_point": {"row": 65, "column": 3}}, {"id": 64, "type": "binary_expression", "text": "defined __GNUC__ && !defined HC_NO_LEGACY_WARNING", "parent": 62, "children": [65, 68, 69], "start_point": {"row": 65, "column": 4}, "end_point": {"row": 65, "column": 54}}, {"id": 65, "type": "preproc_defined", "text": "defined __GNUC__", "parent": 64, "children": [66, 67], "start_point": {"row": 65, "column": 4}, "end_point": {"row": 65, "column": 20}}, {"id": 66, "type": "defined", "text": "defined", "parent": 65, "children": [], "start_point": {"row": 65, "column": 4}, "end_point": {"row": 65, "column": 11}}, {"id": 67, "type": "identifier", "text": "__GNUC__", "parent": 65, "children": [], "start_point": {"row": 65, "column": 12}, "end_point": {"row": 65, "column": 20}}, {"id": 68, "type": "&&", "text": "&&", "parent": 64, "children": [], "start_point": {"row": 65, "column": 21}, "end_point": {"row": 65, "column": 23}}, {"id": 69, "type": "unary_expression", "text": "!defined HC_NO_LEGACY_WARNING", "parent": 64, "children": [70, 71], "start_point": {"row": 65, "column": 25}, "end_point": {"row": 65, "column": 54}}, {"id": 70, "type": "!", "text": "!", "parent": 69, "children": [], "start_point": {"row": 65, "column": 25}, "end_point": {"row": 65, "column": 26}}, {"id": 71, "type": "preproc_defined", "text": "defined HC_NO_LEGACY_WARNING", "parent": 69, "children": [72, 73], "start_point": {"row": 65, "column": 26}, "end_point": {"row": 65, "column": 54}}, {"id": 72, "type": "defined", "text": "defined", "parent": 71, "children": [], "start_point": {"row": 65, "column": 26}, "end_point": {"row": 65, "column": 33}}, {"id": 73, "type": "identifier", "text": "HC_NO_LEGACY_WARNING", "parent": 71, "children": [], "start_point": {"row": 65, "column": 34}, "end_point": {"row": 65, "column": 54}}, {"id": 74, "type": "\n", "text": "\n", "parent": 62, "children": [], "start_point": {"row": 65, "column": 54}, "end_point": {"row": 66, "column": 0}}, {"id": 75, "type": "preproc_def", "text": "# define GCC_VERSION (__GNUC__ * 10 + __GNUC_MINOR__)\n", "parent": 62, "children": [76, 77, 78], "start_point": {"row": 66, "column": 0}, "end_point": {"row": 67, "column": 0}}, {"id": 76, "type": "#define", "text": "# define", "parent": 75, "children": [], "start_point": {"row": 66, "column": 0}, "end_point": {"row": 66, "column": 9}}, {"id": 77, "type": "identifier", "text": "GCC_VERSION", "parent": 75, "children": [], "start_point": {"row": 66, "column": 10}, "end_point": {"row": 66, "column": 21}}, {"id": 78, "type": "preproc_arg", "text": "(__GNUC__ * 10 + __GNUC_MINOR__)", "parent": 75, "children": [], "start_point": {"row": 66, "column": 22}, "end_point": {"row": 66, "column": 54}}, {"id": 79, "type": "preproc_if", "text": "# if defined __INTEL_COMPILER || GCC_VERSION < 45\n# define HDEPRECATED( OBJ, MSG) OBJ __attribute__ ((deprecated))\n# else\n# define HDEPRECATED( OBJ, MSG) OBJ __attribute__ ((deprecated(MSG)))\n# endif", "parent": 62, "children": [80, 81, 90, 91, 98, 107], "start_point": {"row": 67, "column": 0}, "end_point": {"row": 71, "column": 8}}, {"id": 80, "type": "#if", "text": "# if", "parent": 79, "children": [], "start_point": {"row": 67, "column": 0}, "end_point": {"row": 67, "column": 5}}, {"id": 81, "type": "binary_expression", "text": "defined __INTEL_COMPILER || GCC_VERSION < 45", "parent": 79, "children": [82, 85, 86], "start_point": {"row": 67, "column": 6}, "end_point": {"row": 67, "column": 50}}, {"id": 82, "type": "preproc_defined", "text": "defined __INTEL_COMPILER", "parent": 81, "children": [83, 84], "start_point": {"row": 67, "column": 6}, "end_point": {"row": 67, "column": 30}}, {"id": 83, "type": "defined", "text": "defined", "parent": 82, "children": [], "start_point": {"row": 67, "column": 6}, "end_point": {"row": 67, "column": 13}}, {"id": 84, "type": "identifier", "text": "__INTEL_COMPILER", "parent": 82, "children": [], "start_point": {"row": 67, "column": 14}, "end_point": {"row": 67, "column": 30}}, {"id": 85, "type": "||", "text": "||", "parent": 81, "children": [], "start_point": {"row": 67, "column": 31}, "end_point": {"row": 67, "column": 33}}, {"id": 86, "type": "binary_expression", "text": "GCC_VERSION < 45", "parent": 81, "children": [87, 88, 89], "start_point": {"row": 67, "column": 34}, "end_point": {"row": 67, "column": 50}}, {"id": 87, "type": "identifier", "text": "GCC_VERSION", "parent": 86, "children": [], "start_point": {"row": 67, "column": 34}, "end_point": {"row": 67, "column": 45}}, {"id": 88, "type": "<", "text": "<", "parent": 86, "children": [], "start_point": {"row": 67, "column": 46}, "end_point": {"row": 67, "column": 47}}, {"id": 89, "type": "number_literal", "text": "45", "parent": 86, "children": [], "start_point": {"row": 67, "column": 48}, "end_point": {"row": 67, "column": 50}}, {"id": 90, "type": "\n", "text": "\n", "parent": 79, "children": [], "start_point": {"row": 67, "column": 50}, "end_point": {"row": 68, "column": 0}}, {"id": 91, "type": "preproc_function_def", "text": "# define HDEPRECATED( OBJ, MSG) OBJ __attribute__ ((deprecated))\n", "parent": 79, "children": [92, 93, 94, 97], "start_point": {"row": 68, "column": 0}, "end_point": {"row": 69, "column": 0}}, {"id": 92, "type": "#define", "text": "# define", "parent": 91, "children": [], "start_point": {"row": 68, "column": 0}, "end_point": {"row": 68, "column": 11}}, {"id": 93, "type": "identifier", "text": "HDEPRECATED", "parent": 91, "children": [], "start_point": {"row": 68, "column": 12}, "end_point": {"row": 68, "column": 23}}, {"id": 94, "type": "preproc_params", "text": "( OBJ, MSG)", "parent": 91, "children": [95, 96], "start_point": {"row": 68, "column": 23}, "end_point": {"row": 68, "column": 34}}, {"id": 95, "type": "identifier", "text": "OBJ", "parent": 94, "children": [], "start_point": {"row": 68, "column": 25}, "end_point": {"row": 68, "column": 28}}, {"id": 96, "type": "identifier", "text": "MSG", "parent": 94, "children": [], "start_point": {"row": 68, "column": 30}, "end_point": {"row": 68, "column": 33}}, {"id": 97, "type": "preproc_arg", "text": "OBJ __attribute__ ((deprecated))", "parent": 91, "children": [], "start_point": {"row": 68, "column": 37}, "end_point": {"row": 68, "column": 69}}, {"id": 98, "type": "preproc_else", "text": "# else\n# define HDEPRECATED( OBJ, MSG) OBJ __attribute__ ((deprecated(MSG)))\n", "parent": 79, "children": [99, 100], "start_point": {"row": 69, "column": 0}, "end_point": {"row": 71, "column": 0}}, {"id": 99, "type": "#else", "text": "# else", "parent": 98, "children": [], "start_point": {"row": 69, "column": 0}, "end_point": {"row": 69, "column": 7}}, {"id": 100, "type": "preproc_function_def", "text": "# define HDEPRECATED( OBJ, MSG) OBJ __attribute__ ((deprecated(MSG)))\n", "parent": 98, "children": [101, 102, 103, 106], "start_point": {"row": 70, "column": 0}, "end_point": {"row": 71, "column": 0}}, {"id": 101, "type": "#define", "text": "# define", "parent": 100, "children": [], "start_point": {"row": 70, "column": 0}, "end_point": {"row": 70, "column": 11}}, {"id": 102, "type": "identifier", "text": "HDEPRECATED", "parent": 100, "children": [], "start_point": {"row": 70, "column": 12}, "end_point": {"row": 70, "column": 23}}, {"id": 103, "type": "preproc_params", "text": "( OBJ, MSG)", "parent": 100, "children": [104, 105], "start_point": {"row": 70, "column": 23}, "end_point": {"row": 70, "column": 34}}, {"id": 104, "type": "identifier", "text": "OBJ", "parent": 103, "children": [], "start_point": {"row": 70, "column": 25}, "end_point": {"row": 70, "column": 28}}, {"id": 105, "type": "identifier", "text": "MSG", "parent": 103, "children": [], "start_point": {"row": 70, "column": 30}, "end_point": {"row": 70, "column": 33}}, {"id": 106, "type": "preproc_arg", "text": "OBJ __attribute__ ((deprecated(MSG)))", "parent": 100, "children": [], "start_point": {"row": 70, "column": 37}, "end_point": {"row": 70, "column": 74}}, {"id": 107, "type": "#endif", "text": "# endif", "parent": 79, "children": [], "start_point": {"row": 71, "column": 0}, "end_point": {"row": 71, "column": 8}}, {"id": 108, "type": "preproc_elif", "text": "#elif defined(_MSC_VER) && !defined HC_NO_LEGACY_WARNING\n# define HDEPRECATED( OBJ, MSG) __declspec(deprecated(MSG)) OBJ\n#else\n// no mechanism implemented for this compiler\n# define HDEPRECATED( OBJ, MSG) OBJ\n", "parent": 62, "children": [109, 110, 120, 121, 128], "start_point": {"row": 72, "column": 0}, "end_point": {"row": 77, "column": 0}}, {"id": 109, "type": "#elif", "text": "#elif", "parent": 108, "children": [], "start_point": {"row": 72, "column": 0}, "end_point": {"row": 72, "column": 5}}, {"id": 110, "type": "binary_expression", "text": "defined(_MSC_VER) && !defined HC_NO_LEGACY_WARNING", "parent": 108, "children": [111, 114, 115], "start_point": {"row": 72, "column": 6}, "end_point": {"row": 72, "column": 58}}, {"id": 111, "type": "preproc_defined", "text": "defined(_MSC_VER)", "parent": 110, "children": [112, 113], "start_point": {"row": 72, "column": 6}, "end_point": {"row": 72, "column": 23}}, {"id": 112, "type": "defined", "text": "defined", "parent": 111, "children": [], "start_point": {"row": 72, "column": 6}, "end_point": {"row": 72, "column": 13}}, {"id": 113, "type": "identifier", "text": "_MSC_VER", "parent": 111, "children": [], "start_point": {"row": 72, "column": 14}, "end_point": {"row": 72, "column": 22}}, {"id": 114, "type": "&&", "text": "&&", "parent": 110, "children": [], "start_point": {"row": 72, "column": 25}, "end_point": {"row": 72, "column": 27}}, {"id": 115, "type": "unary_expression", "text": "!defined HC_NO_LEGACY_WARNING", "parent": 110, "children": [116, 117], "start_point": {"row": 72, "column": 29}, "end_point": {"row": 72, "column": 58}}, {"id": 116, "type": "!", "text": "!", "parent": 115, "children": [], "start_point": {"row": 72, "column": 29}, "end_point": {"row": 72, "column": 30}}, {"id": 117, "type": "preproc_defined", "text": "defined HC_NO_LEGACY_WARNING", "parent": 115, "children": [118, 119], "start_point": {"row": 72, "column": 30}, "end_point": {"row": 72, "column": 58}}, {"id": 118, "type": "defined", "text": "defined", "parent": 117, "children": [], "start_point": {"row": 72, "column": 30}, "end_point": {"row": 72, "column": 37}}, {"id": 119, "type": "identifier", "text": "HC_NO_LEGACY_WARNING", "parent": 117, "children": [], "start_point": {"row": 72, "column": 38}, "end_point": {"row": 72, "column": 58}}, {"id": 120, "type": "\n", "text": "\n", "parent": 108, "children": [], "start_point": {"row": 72, "column": 58}, "end_point": {"row": 73, "column": 0}}, {"id": 121, "type": "preproc_function_def", "text": "# define HDEPRECATED( OBJ, MSG) __declspec(deprecated(MSG)) OBJ\n", "parent": 108, "children": [122, 123, 124, 127], "start_point": {"row": 73, "column": 0}, "end_point": {"row": 74, "column": 0}}, {"id": 122, "type": "#define", "text": "# define", "parent": 121, "children": [], "start_point": {"row": 73, "column": 0}, "end_point": {"row": 73, "column": 9}}, {"id": 123, "type": "identifier", "text": "HDEPRECATED", "parent": 121, "children": [], "start_point": {"row": 73, "column": 10}, "end_point": {"row": 73, "column": 21}}, {"id": 124, "type": "preproc_params", "text": "( OBJ, MSG)", "parent": 121, "children": [125, 126], "start_point": {"row": 73, "column": 21}, "end_point": {"row": 73, "column": 32}}, {"id": 125, "type": "identifier", "text": "OBJ", "parent": 124, "children": [], "start_point": {"row": 73, "column": 23}, "end_point": {"row": 73, "column": 26}}, {"id": 126, "type": "identifier", "text": "MSG", "parent": 124, "children": [], "start_point": {"row": 73, "column": 28}, "end_point": {"row": 73, "column": 31}}, {"id": 127, "type": "preproc_arg", "text": "__declspec(deprecated(MSG)) OBJ", "parent": 121, "children": [], "start_point": {"row": 73, "column": 35}, "end_point": {"row": 73, "column": 66}}, {"id": 128, "type": "preproc_else", "text": "#else\n// no mechanism implemented for this compiler\n# define HDEPRECATED( OBJ, MSG) OBJ\n", "parent": 108, "children": [129, 130], "start_point": {"row": 74, "column": 0}, "end_point": {"row": 77, "column": 0}}, {"id": 129, "type": "#else", "text": "#else", "parent": 128, "children": [], "start_point": {"row": 74, "column": 0}, "end_point": {"row": 74, "column": 5}}, {"id": 130, "type": "preproc_function_def", "text": "# define HDEPRECATED( OBJ, MSG) OBJ\n", "parent": 128, "children": [131, 132, 133, 136], "start_point": {"row": 76, "column": 0}, "end_point": {"row": 77, "column": 0}}, {"id": 131, "type": "#define", "text": "# define", "parent": 130, "children": [], "start_point": {"row": 76, "column": 0}, "end_point": {"row": 76, "column": 9}}, {"id": 132, "type": "identifier", "text": "HDEPRECATED", "parent": 130, "children": [], "start_point": {"row": 76, "column": 10}, "end_point": {"row": 76, "column": 21}}, {"id": 133, "type": "preproc_params", "text": "( OBJ, MSG)", "parent": 130, "children": [134, 135], "start_point": {"row": 76, "column": 21}, "end_point": {"row": 76, "column": 32}}, {"id": 134, "type": "identifier", "text": "OBJ", "parent": 133, "children": [], "start_point": {"row": 76, "column": 23}, "end_point": {"row": 76, "column": 26}}, {"id": 135, "type": "identifier", "text": "MSG", "parent": 133, "children": [], "start_point": {"row": 76, "column": 28}, "end_point": {"row": 76, "column": 31}}, {"id": 136, "type": "preproc_arg", "text": "OBJ", "parent": 130, "children": [], "start_point": {"row": 76, "column": 35}, "end_point": {"row": 76, "column": 38}}, {"id": 137, "type": "#endif", "text": "#endif", "parent": 62, "children": [], "start_point": {"row": 77, "column": 0}, "end_point": {"row": 77, "column": 6}}, {"id": 138, "type": "function_definition", "text": "namespace HalconCpp\n{\n\n#if defined(HCPP_LEGACY_API)\n// Allow usage of legacy exception handler\n#define HCPP_LEGACY_EXCEPTION\n#endif\n\n// HALCON/C++ forward declarations\n\nclass HTuple;\nclass HVector;\nclass HString;\nclass HException;\nclass HDevWindowStack;\nclass HObjectBase;\nclass HToolBase;\nclass HDataBase;\n\n// Fully generated classes\n#include \"HalconCppForwards.h\"\n\nclass HDataCode2DArray;\n\n}", "parent": 0, "children": [139, 140], "start_point": {"row": 82, "column": 0}, "end_point": {"row": 106, "column": 1}}, {"id": 139, "type": "type_identifier", "text": "namespace", "parent": 138, "children": [], "start_point": {"row": 82, "column": 0}, "end_point": {"row": 82, "column": 9}}, {"id": 140, "type": "identifier", "text": "HalconCpp", "parent": 138, "children": [], "start_point": {"row": 82, "column": 10}, "end_point": {"row": 82, "column": 19}}, {"id": 141, "type": "preproc_if", "text": "#if defined(HCPP_LEGACY_API)\n// Allow usage of legacy exception handler\n#define HCPP_LEGACY_EXCEPTION\n#endif", "parent": 138, "children": [142, 143, 146, 147, 150], "start_point": {"row": 85, "column": 0}, "end_point": {"row": 88, "column": 6}}, {"id": 142, "type": "#if", "text": "#if", "parent": 141, "children": [], "start_point": {"row": 85, "column": 0}, "end_point": {"row": 85, "column": 3}}, {"id": 143, "type": "preproc_defined", "text": "defined(HCPP_LEGACY_API)", "parent": 141, "children": [144, 145], "start_point": {"row": 85, "column": 4}, "end_point": {"row": 85, "column": 28}}, {"id": 144, "type": "defined", "text": "defined", "parent": 143, "children": [], "start_point": {"row": 85, "column": 4}, "end_point": {"row": 85, "column": 11}}, {"id": 145, "type": "identifier", "text": "HCPP_LEGACY_API", "parent": 143, "children": [], "start_point": {"row": 85, "column": 12}, "end_point": {"row": 85, "column": 27}}, {"id": 146, "type": "\n", "text": "\n", "parent": 141, "children": [], "start_point": {"row": 85, "column": 28}, "end_point": {"row": 86, "column": 0}}, {"id": 147, "type": "preproc_def", "text": "#define HCPP_LEGACY_EXCEPTION\n", "parent": 141, "children": [148, 149], "start_point": {"row": 87, "column": 0}, "end_point": {"row": 88, "column": 0}}, {"id": 148, "type": "#define", "text": "#define", "parent": 147, "children": [], "start_point": {"row": 87, "column": 0}, "end_point": {"row": 87, "column": 7}}, {"id": 149, "type": "identifier", "text": "HCPP_LEGACY_EXCEPTION", "parent": 147, "children": [], "start_point": {"row": 87, "column": 8}, "end_point": {"row": 87, "column": 29}}, {"id": 150, "type": "#endif", "text": "#endif", "parent": 141, "children": [], "start_point": {"row": 88, "column": 0}, "end_point": {"row": 88, "column": 6}}, {"id": 151, "type": "declaration", "text": "class HTuple;", "parent": 138, "children": [152], "start_point": {"row": 92, "column": 0}, "end_point": {"row": 92, "column": 13}}, {"id": 152, "type": "identifier", "text": "HTuple", "parent": 151, "children": [], "start_point": {"row": 92, "column": 6}, "end_point": {"row": 92, "column": 12}}, {"id": 153, "type": "declaration", "text": "class HVector;", "parent": 138, "children": [154], "start_point": {"row": 93, "column": 0}, "end_point": {"row": 93, "column": 14}}, {"id": 154, "type": "identifier", "text": "HVector", "parent": 153, "children": [], "start_point": {"row": 93, "column": 6}, "end_point": {"row": 93, "column": 13}}, {"id": 155, "type": "declaration", "text": "class HString;", "parent": 138, "children": [156], "start_point": {"row": 94, "column": 0}, "end_point": {"row": 94, "column": 14}}, {"id": 156, "type": "identifier", "text": "HString", "parent": 155, "children": [], "start_point": {"row": 94, "column": 6}, "end_point": {"row": 94, "column": 13}}, {"id": 157, "type": "declaration", "text": "class HException;", "parent": 138, "children": [158], "start_point": {"row": 95, "column": 0}, "end_point": {"row": 95, "column": 17}}, {"id": 158, "type": "identifier", "text": "HException", "parent": 157, "children": [], "start_point": {"row": 95, "column": 6}, "end_point": {"row": 95, "column": 16}}, {"id": 159, "type": "declaration", "text": "class HDevWindowStack;", "parent": 138, "children": [160], "start_point": {"row": 96, "column": 0}, "end_point": {"row": 96, "column": 22}}, {"id": 160, "type": "identifier", "text": "HDevWindowStack", "parent": 159, "children": [], "start_point": {"row": 96, "column": 6}, "end_point": {"row": 96, "column": 21}}, {"id": 161, "type": "declaration", "text": "class HObjectBase;", "parent": 138, "children": [162], "start_point": {"row": 97, "column": 0}, "end_point": {"row": 97, "column": 18}}, {"id": 162, "type": "identifier", "text": "HObjectBase", "parent": 161, "children": [], "start_point": {"row": 97, "column": 6}, "end_point": {"row": 97, "column": 17}}, {"id": 163, "type": "declaration", "text": "class HToolBase;", "parent": 138, "children": [164], "start_point": {"row": 98, "column": 0}, "end_point": {"row": 98, "column": 16}}, {"id": 164, "type": "identifier", "text": "HToolBase", "parent": 163, "children": [], "start_point": {"row": 98, "column": 6}, "end_point": {"row": 98, "column": 15}}, {"id": 165, "type": "declaration", "text": "class HDataBase;", "parent": 138, "children": [166], "start_point": {"row": 99, "column": 0}, "end_point": {"row": 99, "column": 16}}, {"id": 166, "type": "identifier", "text": "HDataBase", "parent": 165, "children": [], "start_point": {"row": 99, "column": 6}, "end_point": {"row": 99, "column": 15}}, {"id": 167, "type": "preproc_include", "text": "#include \"HalconCppForwards.h\"\n", "parent": 138, "children": [168, 169], "start_point": {"row": 102, "column": 0}, "end_point": {"row": 103, "column": 0}}, {"id": 168, "type": "#include", "text": "#include", "parent": 167, "children": [], "start_point": {"row": 102, "column": 0}, "end_point": {"row": 102, "column": 8}}, {"id": 169, "type": "string_literal", "text": "\"HalconCppForwards.h\"", "parent": 167, "children": [], "start_point": {"row": 102, "column": 9}, "end_point": {"row": 102, "column": 30}}, {"id": 170, "type": "declaration", "text": "class HDataCode2DArray;", "parent": 138, "children": [171], "start_point": {"row": 104, "column": 0}, "end_point": {"row": 104, "column": 23}}, {"id": 171, "type": "identifier", "text": "HDataCode2DArray", "parent": 170, "children": [], "start_point": {"row": 104, "column": 6}, "end_point": {"row": 104, "column": 22}}, {"id": 172, "type": "preproc_include", "text": "#include \"HTuple.h\"\n", "parent": 0, "children": [173, 174], "start_point": {"row": 111, "column": 0}, "end_point": {"row": 112, "column": 0}}, {"id": 173, "type": "#include", "text": "#include", "parent": 172, "children": [], "start_point": {"row": 111, "column": 0}, "end_point": {"row": 111, "column": 8}}, {"id": 174, "type": "string_literal", "text": "\"HTuple.h\"", "parent": 172, "children": [], "start_point": {"row": 111, "column": 9}, "end_point": {"row": 111, "column": 19}}, {"id": 175, "type": "preproc_include", "text": "#include \"HVector.h\"\n", "parent": 0, "children": [176, 177], "start_point": {"row": 112, "column": 0}, "end_point": {"row": 113, "column": 0}}, {"id": 176, "type": "#include", "text": "#include", "parent": 175, "children": [], "start_point": {"row": 112, "column": 0}, "end_point": {"row": 112, "column": 8}}, {"id": 177, "type": "string_literal", "text": "\"HVector.h\"", "parent": 175, "children": [], "start_point": {"row": 112, "column": 9}, "end_point": {"row": 112, "column": 20}}, {"id": 178, "type": "preproc_include", "text": "#include \"HString.h\"\n", "parent": 0, "children": [179, 180], "start_point": {"row": 113, "column": 0}, "end_point": {"row": 114, "column": 0}}, {"id": 179, "type": "#include", "text": "#include", "parent": 178, "children": [], "start_point": {"row": 113, "column": 0}, "end_point": {"row": 113, "column": 8}}, {"id": 180, "type": "string_literal", "text": "\"HString.h\"", "parent": 178, "children": [], "start_point": {"row": 113, "column": 9}, "end_point": {"row": 113, "column": 20}}, {"id": 181, "type": "preproc_include", "text": "#include \"HException.h\"\n", "parent": 0, "children": [182, 183], "start_point": {"row": 114, "column": 0}, "end_point": {"row": 115, "column": 0}}, {"id": 182, "type": "#include", "text": "#include", "parent": 181, "children": [], "start_point": {"row": 114, "column": 0}, "end_point": {"row": 114, "column": 8}}, {"id": 183, "type": "string_literal", "text": "\"HException.h\"", "parent": 181, "children": [], "start_point": {"row": 114, "column": 9}, "end_point": {"row": 114, "column": 23}}, {"id": 184, "type": "preproc_include", "text": "#include \"HDevWindowStack.h\"\n", "parent": 0, "children": [185, 186], "start_point": {"row": 115, "column": 0}, "end_point": {"row": 116, "column": 0}}, {"id": 185, "type": "#include", "text": "#include", "parent": 184, "children": [], "start_point": {"row": 115, "column": 0}, "end_point": {"row": 115, "column": 8}}, {"id": 186, "type": "string_literal", "text": "\"HDevWindowStack.h\"", "parent": 184, "children": [], "start_point": {"row": 115, "column": 9}, "end_point": {"row": 115, "column": 28}}, {"id": 187, "type": "preproc_include", "text": "#include \"HObjectBase.h\"\n", "parent": 0, "children": [188, 189], "start_point": {"row": 116, "column": 0}, "end_point": {"row": 117, "column": 0}}, {"id": 188, "type": "#include", "text": "#include", "parent": 187, "children": [], "start_point": {"row": 116, "column": 0}, "end_point": {"row": 116, "column": 8}}, {"id": 189, "type": "string_literal", "text": "\"HObjectBase.h\"", "parent": 187, "children": [], "start_point": {"row": 116, "column": 9}, "end_point": {"row": 116, "column": 24}}, {"id": 190, "type": "preproc_include", "text": "#include \"HToolBase.h\"\n", "parent": 0, "children": [191, 192], "start_point": {"row": 117, "column": 0}, "end_point": {"row": 118, "column": 0}}, {"id": 191, "type": "#include", "text": "#include", "parent": 190, "children": [], "start_point": {"row": 117, "column": 0}, "end_point": {"row": 117, "column": 8}}, {"id": 192, "type": "string_literal", "text": "\"HToolBase.h\"", "parent": 190, "children": [], "start_point": {"row": 117, "column": 9}, "end_point": {"row": 117, "column": 22}}, {"id": 193, "type": "preproc_include", "text": "#include \"HDataBase.h\"\n", "parent": 0, "children": [194, 195], "start_point": {"row": 118, "column": 0}, "end_point": {"row": 119, "column": 0}}, {"id": 194, "type": "#include", "text": "#include", "parent": 193, "children": [], "start_point": {"row": 118, "column": 0}, "end_point": {"row": 118, "column": 8}}, {"id": 195, "type": "string_literal", "text": "\"HDataBase.h\"", "parent": 193, "children": [], "start_point": {"row": 118, "column": 9}, "end_point": {"row": 118, "column": 22}}, {"id": 196, "type": "preproc_include", "text": "#include \"HOperatorOverloads.h\"\n", "parent": 0, "children": [197, 198], "start_point": {"row": 119, "column": 0}, "end_point": {"row": 120, "column": 0}}, {"id": 197, "type": "#include", "text": "#include", "parent": 196, "children": [], "start_point": {"row": 119, "column": 0}, "end_point": {"row": 119, "column": 8}}, {"id": 198, "type": "string_literal", "text": "\"HOperatorOverloads.h\"", "parent": 196, "children": [], "start_point": {"row": 119, "column": 9}, "end_point": {"row": 119, "column": 31}}, {"id": 199, "type": "preproc_include", "text": "#include \"HalconCppIncludes.h\"\n", "parent": 0, "children": [200, 201], "start_point": {"row": 123, "column": 0}, "end_point": {"row": 124, "column": 0}}, {"id": 200, "type": "#include", "text": "#include", "parent": 199, "children": [], "start_point": {"row": 123, "column": 0}, "end_point": {"row": 123, "column": 8}}, {"id": 201, "type": "string_literal", "text": "\"HalconCppIncludes.h\"", "parent": 199, "children": [], "start_point": {"row": 123, "column": 9}, "end_point": {"row": 123, "column": 30}}, {"id": 202, "type": "preproc_include", "text": "#include \"HIOStream.h\"\n", "parent": 0, "children": [203, 204], "start_point": {"row": 126, "column": 0}, "end_point": {"row": 127, "column": 0}}, {"id": 203, "type": "#include", "text": "#include", "parent": 202, "children": [], "start_point": {"row": 126, "column": 0}, "end_point": {"row": 126, "column": 8}}, {"id": 204, "type": "string_literal", "text": "\"HIOStream.h\"", "parent": 202, "children": [], "start_point": {"row": 126, "column": 9}, "end_point": {"row": 126, "column": 22}}, {"id": 205, "type": "preproc_if", "text": "#if defined(HCPP_LEGACY_API)\n\n// Allow to resolve obsolete class Hobject\nnamespace HalconCpp\n{\n typedef HalconCpp::HObject Hobject;\n}\n\n// Allow to use global operator signatures with Herror return values */\n\n#include \"HOperatorSetLegacy.h\"\n\n\n\n// Defining HCPP_LEGACY_NAMESPACE will textually\n// replace all references to the Halcon namespace with\n// HalconCpp, with potential for name conflicts.\n\n#if defined(HCPP_LEGACY_NAMESPACE)\n// Remap namespace Halcon to HalconCpp\n#define Halcon HalconCpp\n#endif \n\n#endif", "parent": 0, "children": [206, 207, 210, 211, 220, 223, 234], "start_point": {"row": 135, "column": 0}, "end_point": {"row": 158, "column": 6}}, {"id": 206, "type": "#if", "text": "#if", "parent": 205, "children": [], "start_point": {"row": 135, "column": 0}, "end_point": {"row": 135, "column": 3}}, {"id": 207, "type": "preproc_defined", "text": "defined(HCPP_LEGACY_API)", "parent": 205, "children": [208, 209], "start_point": {"row": 135, "column": 4}, "end_point": {"row": 135, "column": 28}}, {"id": 208, "type": "defined", "text": "defined", "parent": 207, "children": [], "start_point": {"row": 135, "column": 4}, "end_point": {"row": 135, "column": 11}}, {"id": 209, "type": "identifier", "text": "HCPP_LEGACY_API", "parent": 207, "children": [], "start_point": {"row": 135, "column": 12}, "end_point": {"row": 135, "column": 27}}, {"id": 210, "type": "\n", "text": "\n\n", "parent": 205, "children": [], "start_point": {"row": 135, "column": 28}, "end_point": {"row": 137, "column": 0}}, {"id": 211, "type": "function_definition", "text": "namespace HalconCpp\n{\n typedef HalconCpp::HObject Hobject;\n}", "parent": 205, "children": [212, 213], "start_point": {"row": 138, "column": 0}, "end_point": {"row": 141, "column": 1}}, {"id": 212, "type": "type_identifier", "text": "namespace", "parent": 211, "children": [], "start_point": {"row": 138, "column": 0}, "end_point": {"row": 138, "column": 9}}, {"id": 213, "type": "identifier", "text": "HalconCpp", "parent": 211, "children": [], "start_point": {"row": 138, "column": 10}, "end_point": {"row": 138, "column": 19}}, {"id": 214, "type": "type_definition", "text": "typedef HalconCpp::HObject Hobject;", "parent": 211, "children": [215, 216, 217, 219], "start_point": {"row": 140, "column": 2}, "end_point": {"row": 140, "column": 37}}, {"id": 215, "type": "typedef", "text": "typedef", "parent": 214, "children": [], "start_point": {"row": 140, "column": 2}, "end_point": {"row": 140, "column": 9}}, {"id": 216, "type": "type_identifier", "text": "HalconCpp", "parent": 214, "children": [], "start_point": {"row": 140, "column": 10}, "end_point": {"row": 140, "column": 19}}, {"id": 217, "type": "ERROR", "text": "::HObject", "parent": 214, "children": [218], "start_point": {"row": 140, "column": 19}, "end_point": {"row": 140, "column": 28}}, {"id": 218, "type": "type_identifier", "text": "HObject", "parent": 217, "children": [], "start_point": {"row": 140, "column": 21}, "end_point": {"row": 140, "column": 28}}, {"id": 219, "type": "type_identifier", "text": "Hobject", "parent": 214, "children": [], "start_point": {"row": 140, "column": 29}, "end_point": {"row": 140, "column": 36}}, {"id": 220, "type": "preproc_include", "text": "#include \"HOperatorSetLegacy.h\"\n", "parent": 205, "children": [221, 222], "start_point": {"row": 145, "column": 0}, "end_point": {"row": 146, "column": 0}}, {"id": 221, "type": "#include", "text": "#include", "parent": 220, "children": [], "start_point": {"row": 145, "column": 0}, "end_point": {"row": 145, "column": 8}}, {"id": 222, "type": "string_literal", "text": "\"HOperatorSetLegacy.h\"", "parent": 220, "children": [], "start_point": {"row": 145, "column": 9}, "end_point": {"row": 145, "column": 31}}, {"id": 223, "type": "preproc_if", "text": "#if defined(HCPP_LEGACY_NAMESPACE)\n// Remap namespace Halcon to HalconCpp\n#define Halcon HalconCpp\n#endif", "parent": 205, "children": [224, 225, 228, 229, 233], "start_point": {"row": 153, "column": 0}, "end_point": {"row": 156, "column": 6}}, {"id": 224, "type": "#if", "text": "#if", "parent": 223, "children": [], "start_point": {"row": 153, "column": 0}, "end_point": {"row": 153, "column": 3}}, {"id": 225, "type": "preproc_defined", "text": "defined(HCPP_LEGACY_NAMESPACE)", "parent": 223, "children": [226, 227], "start_point": {"row": 153, "column": 4}, "end_point": {"row": 153, "column": 34}}, {"id": 226, "type": "defined", "text": "defined", "parent": 225, "children": [], "start_point": {"row": 153, "column": 4}, "end_point": {"row": 153, "column": 11}}, {"id": 227, "type": "identifier", "text": "HCPP_LEGACY_NAMESPACE", "parent": 225, "children": [], "start_point": {"row": 153, "column": 12}, "end_point": {"row": 153, "column": 33}}, {"id": 228, "type": "\n", "text": "\n", "parent": 223, "children": [], "start_point": {"row": 153, "column": 34}, "end_point": {"row": 154, "column": 0}}, {"id": 229, "type": "preproc_def", "text": "#define Halcon HalconCpp\n", "parent": 223, "children": [230, 231, 232], "start_point": {"row": 155, "column": 0}, "end_point": {"row": 156, "column": 0}}, {"id": 230, "type": "#define", "text": "#define", "parent": 229, "children": [], "start_point": {"row": 155, "column": 0}, "end_point": {"row": 155, "column": 7}}, {"id": 231, "type": "identifier", "text": "Halcon", "parent": 229, "children": [], "start_point": {"row": 155, "column": 8}, "end_point": {"row": 155, "column": 14}}, {"id": 232, "type": "preproc_arg", "text": "HalconCpp", "parent": 229, "children": [], "start_point": {"row": 155, "column": 15}, "end_point": {"row": 155, "column": 24}}, {"id": 233, "type": "#endif", "text": "#endif", "parent": 223, "children": [], "start_point": {"row": 156, "column": 0}, "end_point": {"row": 156, "column": 6}}, {"id": 234, "type": "#endif", "text": "#endif", "parent": 205, "children": [], "start_point": {"row": 158, "column": 0}, "end_point": {"row": 158, "column": 6}}, {"id": 235, "type": "#endif", "text": "#endif", "parent": 0, "children": [], "start_point": {"row": 160, "column": 0}, "end_point": {"row": 160, "column": 6}}]}, "node_categories": {"declarations": {"functions": [91, 100, 121, 130, 138, 211], "variables": [151, 153, 155, 157, 159, 161, 163, 165, 170, 214], "classes": [], "imports": [30, 31, 39, 40, 167, 168, 172, 173, 175, 176, 178, 179, 181, 182, 184, 185, 187, 188, 190, 191, 193, 194, 196, 197, 199, 200, 202, 203, 220, 221], "modules": [], "enums": []}, "statements": {"expressions": [8, 20, 64, 69, 81, 86, 110, 115], "assignments": [], "loops": [], "conditionals": [0, 1, 2, 5, 6, 7, 12, 16, 17, 18, 19, 24, 28, 29, 35, 36, 37, 38, 42, 43, 44, 47, 61, 62, 63, 67, 73, 77, 79, 80, 84, 87, 93, 95, 96, 102, 104, 105, 107, 108, 109, 113, 119, 123, 125, 126, 132, 134, 135, 137, 139, 140, 141, 142, 145, 149, 150, 152, 154, 156, 158, 160, 162, 164, 166, 171, 205, 206, 209, 212, 213, 216, 218, 219, 223, 224, 227, 231, 233, 234, 235], "returns": [], "exceptions": []}, "expressions": {"calls": [49, 52, 55, 58], "literals": [32, 41, 89, 169, 174, 177, 180, 183, 186, 189, 192, 195, 198, 201, 204, 222], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [{"node_id": 91, "universal_type": "function", "name": "unknown", "text_snippet": "# define HDEPRECATED( OBJ, MSG) OBJ __attribute__ ((deprecated))\n"}, {"node_id": 100, "universal_type": "function", "name": "unknown", "text_snippet": "# define HDEPRECATED( OBJ, MSG) OBJ __attribute__ ((deprecated(MSG)))\n"}, {"node_id": 121, "universal_type": "function", "name": "unknown", "text_snippet": "# define HDEPRECATED( OBJ, MSG) __declspec(deprecated(MSG)) OBJ\n"}, {"node_id": 130, "universal_type": "function", "name": "unknown", "text_snippet": "# define HDEPRECATED( OBJ, MSG) OBJ\n"}, {"node_id": 138, "universal_type": "function", "name": "HTuple;", "text_snippet": "namespace HalconCpp\n{\n\n#if defined(HCPP_LEGACY_API)\n// Allow usage of legacy exception handler\n#defi"}, {"node_id": 211, "universal_type": "function", "name": "unknown", "text_snippet": "namespace HalconCpp\n{\n typedef HalconCpp::HObject Hobject;\n}"}], "class_declarations": [], "import_statements": [{"node_id": 30, "text": "#include \"Halcon.h\"\n"}, {"node_id": 31, "text": "#include"}, {"node_id": 39, "text": "#include <iostream>\n"}, {"node_id": 40, "text": "#include"}, {"node_id": 167, "text": "#include \"HalconCppForwards.h\"\n"}, {"node_id": 168, "text": "#include"}, {"node_id": 172, "text": "#include \"HTuple.h\"\n"}, {"node_id": 173, "text": "#include"}, {"node_id": 175, "text": "#include \"HVector.h\"\n"}, {"node_id": 176, "text": "#include"}, {"node_id": 178, "text": "#include \"HString.h\"\n"}, {"node_id": 179, "text": "#include"}, {"node_id": 181, "text": "#include \"HException.h\"\n"}, {"node_id": 182, "text": "#include"}, {"node_id": 184, "text": "#include \"HDevWindowStack.h\"\n"}, {"node_id": 185, "text": "#include"}, {"node_id": 187, "text": "#include \"HObjectBase.h\"\n"}, {"node_id": 188, "text": "#include"}, {"node_id": 190, "text": "#include \"HToolBase.h\"\n"}, {"node_id": 191, "text": "#include"}, {"node_id": 193, "text": "#include \"HDataBase.h\"\n"}, {"node_id": 194, "text": "#include"}, {"node_id": 196, "text": "#include \"HOperatorOverloads.h\"\n"}, {"node_id": 197, "text": "#include"}, {"node_id": 199, "text": "#include \"HalconCppIncludes.h\"\n"}, {"node_id": 200, "text": "#include"}, {"node_id": 202, "text": "#include \"HIOStream.h\"\n"}, {"node_id": 203, "text": "#include"}, {"node_id": 220, "text": "#include \"HOperatorSetLegacy.h\"\n"}, {"node_id": 221, "text": "#include"}]}, "original_source_code": "/*****************************************************************************\n * HalconCpp.h\n ***************************************************************************** \n *\n * Project: HALCON/C++\n * Description: Defines / types / extern declarations for HALCON/C++ interface\n *\n * (c) 2010-2014 by MVTec Software GmbH\n * www.mvtec.com\n * \n *****************************************************************************\n *\n *\n *****************************************************************************/\n\n\n#ifndef HALCON_CPP_H\n#define HALCON_CPP_H\n\n\n// Architecture limitations\n\n#if !defined(HCPP_NO_INT_OVERLOADS)\n#define HCPP_INT_OVERLOADS\n#endif\n\n#if !defined(HCPP_NO_USE_IOSTREAM)\n#define HCPP_USE_IOSTREAM\n#endif\n\n\n// HALCON library includes\n\n#include \"Halcon.h\"\n\n// interface version\n// do not define a number because it can be loaded in parallel to version 10\n#define HCPP_INTERFACE_VERSION_11\n\n\n// Standard C++ library includes\n\n#ifdef HCPP_USE_IOSTREAM\n#include <iostream>\n#endif\n\n\n// Resolve known macro name collisions\n\n#if defined(_WIN32)\n/* FindText, CreateMutex, CreateEvent, and DeleteFile are also functions of the\n * Windows API. There are defines on FindTextW, CreateMutexW, CreateEventW, and\n * DeleteFileW if UNICODE is defined, otherwise there are defines on\n * FindTextA, CreateMutexA, CreateMutexA, and DeleteFileA.\n * These defines are undefined here. If you want to use the corresponding\n * Windows API calls, you must use FindTextA, FindTextW, CreateMutexA,\n * CreateMutexW, CreateEventA, CreateEventW, DeleteFileA, or DeleteFileW\n * directly. */\n#undef FindText\n#undef CreateMutex\n#undef CreateEvent\n#undef DeleteFile\n#endif\n\n// Macro to deprecate a method\n#if defined __GNUC__ && !defined HC_NO_LEGACY_WARNING\n# define GCC_VERSION (__GNUC__ * 10 + __GNUC_MINOR__)\n# if defined __INTEL_COMPILER || GCC_VERSION < 45\n# define HDEPRECATED( OBJ, MSG) OBJ __attribute__ ((deprecated))\n# else\n# define HDEPRECATED( OBJ, MSG) OBJ __attribute__ ((deprecated(MSG)))\n# endif\n#elif defined(_MSC_VER) && !defined HC_NO_LEGACY_WARNING\n# define HDEPRECATED( OBJ, MSG) __declspec(deprecated(MSG)) OBJ\n#else\n// no mechanism implemented for this compiler\n# define HDEPRECATED( OBJ, MSG) OBJ\n#endif\n\n\n// HALCON/C++ types\n\nnamespace HalconCpp\n{\n\n#if defined(HCPP_LEGACY_API)\n// Allow usage of legacy exception handler\n#define HCPP_LEGACY_EXCEPTION\n#endif\n\n// HALCON/C++ forward declarations\n\nclass HTuple;\nclass HVector;\nclass HString;\nclass HException;\nclass HDevWindowStack;\nclass HObjectBase;\nclass HToolBase;\nclass HDataBase;\n\n// Fully generated classes\n#include \"HalconCppForwards.h\"\n\nclass HDataCode2DArray;\n\n}\n\n\n// HALCON/C++ includes\n\n#include \"HTuple.h\"\n#include \"HVector.h\"\n#include \"HString.h\"\n#include \"HException.h\"\n#include \"HDevWindowStack.h\"\n#include \"HObjectBase.h\"\n#include \"HToolBase.h\"\n#include \"HDataBase.h\"\n#include \"HOperatorOverloads.h\"\n\n\n// Fully generated classes\n#include \"HalconCppIncludes.h\"\n\n// Include inline functions for streaming operations\n#include \"HIOStream.h\"\n\n// Defining the following two preprocessor constants\n// enables a restricted source code compatibility mode\n// for procedural legacy code\n\n// Definining HCPP_LEGACY_API provides declarations for\n// Hobject and HTuple members that are \n\n#if defined(HCPP_LEGACY_API)\n\n// Allow to resolve obsolete class Hobject\nnamespace HalconCpp\n{\n typedef HalconCpp::HObject Hobject;\n}\n\n// Allow to use global operator signatures with Herror return values */\n\n#include \"HOperatorSetLegacy.h\"\n\n\n\n// Defining HCPP_LEGACY_NAMESPACE will textually\n// replace all references to the Halcon namespace with\n// HalconCpp, with potential for name conflicts.\n\n#if defined(HCPP_LEGACY_NAMESPACE)\n// Remap namespace Halcon to HalconCpp\n#define Halcon HalconCpp\n#endif \n\n#endif // HCPP_LEGACY_API\n\n#endif // HALCON_CPP_H\n"}
80,064
c
/* * (C) 2007 by <NAME> <<EMAIL>> * (C) 2007-2010 by <NAME> <<EMAIL>> * * Extracted from xt_TEE.c * * This program is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 or later, as * published by the Free Software Foundation. */ #include <linux/ip.h> #include <linux/module.h> #include <linux/percpu.h> #include <linux/route.h> #include <linux/skbuff.h> #include <linux/netfilter.h> #include <net/checksum.h> #include <net/icmp.h> #include <net/ip.h> #include <net/route.h> #include <net/netfilter/ipv4/nf_dup_ipv4.h> #if IS_ENABLED(CONFIG_NF_CONNTRACK) #include <net/netfilter/nf_conntrack.h> #endif static bool nf_dup_ipv4_route(struct net *net, struct sk_buff *skb, const struct in_addr *gw, int oif) { const struct iphdr *iph = ip_hdr(skb); struct rtable *rt; struct flowi4 fl4; memset(&fl4, 0, sizeof(fl4)); if (oif != -1) fl4.flowi4_oif = oif; fl4.daddr = gw->s_addr; fl4.flowi4_tos = RT_TOS(iph->tos); fl4.flowi4_scope = RT_SCOPE_UNIVERSE; fl4.flowi4_flags = FLOWI_FLAG_KNOWN_NH; rt = ip_route_output_key(net, &fl4); if (IS_ERR(rt)) return false; skb_dst_drop(skb); skb_dst_set(skb, &rt->dst); skb->dev = rt->dst.dev; skb->protocol = htons(ETH_P_IP); return true; } void nf_dup_ipv4(struct net *net, struct sk_buff *skb, unsigned int hooknum, const struct in_addr *gw, int oif) { struct iphdr *iph; if (this_cpu_read(nf_skb_duplicated)) return; /* * Copy the skb, and route the copy. Will later return %XT_CONTINUE for * the original skb, which should continue on its way as if nothing has * happened. The copy should be independently delivered to the gateway. */ skb = pskb_copy(skb, GFP_ATOMIC); if (skb == NULL) return; #if IS_ENABLED(CONFIG_NF_CONNTRACK) /* Avoid counting cloned packets towards the original connection. */ nf_conntrack_put(skb->nfct); skb->nfct = &nf_ct_untracked_get()->ct_general; skb->nfctinfo = IP_CT_NEW; nf_conntrack_get(skb->nfct); #endif /* * If we are in PREROUTING/INPUT, decrease the TTL to mitigate potential * loops between two hosts. * * Set %IP_DF so that the original source is notified of a potentially * decreased MTU on the clone route. IPv6 does this too. * * IP header checksum will be recalculated at ip_local_out. */ iph = ip_hdr(skb); iph->frag_off |= htons(IP_DF); if (hooknum == NF_INET_PRE_ROUTING || hooknum == NF_INET_LOCAL_IN) --iph->ttl; if (nf_dup_ipv4_route(net, skb, gw, oif)) { __this_cpu_write(nf_skb_duplicated, true); ip_local_out(net, skb->sk, skb); __this_cpu_write(nf_skb_duplicated, false); } else { kfree_skb(skb); } } EXPORT_SYMBOL_GPL(nf_dup_ipv4); MODULE_AUTHOR("<NAME> <<EMAIL>>"); MODULE_AUTHOR("<NAME> <<EMAIL>>"); MODULE_DESCRIPTION("nf_dup_ipv4: Duplicate IPv4 packet"); MODULE_LICENSE("GPL");
29.34
94
(translation_unit) "/*\n * (C) 2007 by <NAME> <<EMAIL>>\n * (C) 2007-2010 by <NAME> <<EMAIL>>\n *\n * Extracted from xt_TEE.c\n *\n * This program is free software; you can redistribute it and/or modify it\n * under the terms of the GNU General Public License version 2 or later, as\n * published by the Free Software Foundation.\n */\n#include <linux/ip.h>\n#include <linux/module.h>\n#include <linux/percpu.h>\n#include <linux/route.h>\n#include <linux/skbuff.h>\n#include <linux/netfilter.h>\n#include <net/checksum.h>\n#include <net/icmp.h>\n#include <net/ip.h>\n#include <net/route.h>\n#include <net/netfilter/ipv4/nf_dup_ipv4.h>\n#if IS_ENABLED(CONFIG_NF_CONNTRACK)\n#include <net/netfilter/nf_conntrack.h>\n#endif\n\nstatic bool nf_dup_ipv4_route(struct net *net, struct sk_buff *skb,\n const struct in_addr *gw, int oif)\n{\n const struct iphdr *iph = ip_hdr(skb);\n struct rtable *rt;\n struct flowi4 fl4;\n\n memset(&fl4, 0, sizeof(fl4));\n if (oif != -1)\n fl4.flowi4_oif = oif;\n\n fl4.daddr = gw->s_addr;\n fl4.flowi4_tos = RT_TOS(iph->tos);\n fl4.flowi4_scope = RT_SCOPE_UNIVERSE;\n fl4.flowi4_flags = FLOWI_FLAG_KNOWN_NH;\n rt = ip_route_output_key(net, &fl4);\n if (IS_ERR(rt))\n return false;\n\n skb_dst_drop(skb);\n skb_dst_set(skb, &rt->dst);\n skb->dev = rt->dst.dev;\n skb->protocol = htons(ETH_P_IP);\n\n return true;\n}\n\nvoid nf_dup_ipv4(struct net *net, struct sk_buff *skb, unsigned int hooknum,\n const struct in_addr *gw, int oif)\n{\n struct iphdr *iph;\n\n if (this_cpu_read(nf_skb_duplicated))\n return;\n /*\n * Copy the skb, and route the copy. Will later return %XT_CONTINUE for\n * the original skb, which should continue on its way as if nothing has\n * happened. The copy should be independently delivered to the gateway.\n */\n skb = pskb_copy(skb, GFP_ATOMIC);\n if (skb == NULL)\n return;\n\n#if IS_ENABLED(CONFIG_NF_CONNTRACK)\n /* Avoid counting cloned packets towards the original connection. */\n nf_conntrack_put(skb->nfct);\n skb->nfct = &nf_ct_untracked_get()->ct_general;\n skb->nfctinfo = IP_CT_NEW;\n nf_conntrack_get(skb->nfct);\n#endif\n /*\n * If we are in PREROUTING/INPUT, decrease the TTL to mitigate potential\n * loops between two hosts.\n *\n * Set %IP_DF so that the original source is notified of a potentially\n * decreased MTU on the clone route. IPv6 does this too.\n *\n * IP header checksum will be recalculated at ip_local_out.\n */\n iph = ip_hdr(skb);\n iph->frag_off |= htons(IP_DF);\n if (hooknum == NF_INET_PRE_ROUTING ||\n hooknum == NF_INET_LOCAL_IN)\n --iph->ttl;\n\n if (nf_dup_ipv4_route(net, skb, gw, oif)) {\n __this_cpu_write(nf_skb_duplicated, true);\n ip_local_out(net, skb->sk, skb);\n __this_cpu_write(nf_skb_duplicated, false);\n } else {\n kfree_skb(skb);\n }\n}\nEXPORT_SYMBOL_GPL(nf_dup_ipv4);\n\nMODULE_AUTHOR("<NAME> <<EMAIL>>");\nMODULE_AUTHOR("<NAME> <<EMAIL>>");\nMODULE_DESCRIPTION("nf_dup_ipv4: Duplicate IPv4 packet");\nMODULE_LICENSE("GPL");\n" (comment) "/*\n * (C) 2007 by <NAME> <<EMAIL>>\n * (C) 2007-2010 by <NAME> <<EMAIL>>\n *\n * Extracted from xt_TEE.c\n *\n * This program is free software; you can redistribute it and/or modify it\n * under the terms of the GNU General Public License version 2 or later, as\n * published by the Free Software Foundation.\n */" (preproc_include) "#include <linux/ip.h>\n" (#include) "#include" (system_lib_string) "<linux/ip.h>" (preproc_include) "#include <linux/module.h>\n" (#include) "#include" (system_lib_string) "<linux/module.h>" (preproc_include) "#include <linux/percpu.h>\n" (#include) "#include" (system_lib_string) "<linux/percpu.h>" (preproc_include) "#include <linux/route.h>\n" (#include) "#include" (system_lib_string) "<linux/route.h>" (preproc_include) "#include <linux/skbuff.h>\n" (#include) "#include" (system_lib_string) "<linux/skbuff.h>" (preproc_include) "#include <linux/netfilter.h>\n" (#include) "#include" (system_lib_string) "<linux/netfilter.h>" (preproc_include) "#include <net/checksum.h>\n" (#include) "#include" (system_lib_string) "<net/checksum.h>" (preproc_include) "#include <net/icmp.h>\n" (#include) "#include" (system_lib_string) "<net/icmp.h>" (preproc_include) "#include <net/ip.h>\n" (#include) "#include" (system_lib_string) "<net/ip.h>" (preproc_include) "#include <net/route.h>\n" (#include) "#include" (system_lib_string) "<net/route.h>" (preproc_include) "#include <net/netfilter/ipv4/nf_dup_ipv4.h>\n" (#include) "#include" (system_lib_string) "<net/netfilter/ipv4/nf_dup_ipv4.h>" (preproc_if) "#if IS_ENABLED(CONFIG_NF_CONNTRACK)\n#include <net/netfilter/nf_conntrack.h>\n#endif" (#if) "#if" (call_expression) "IS_ENABLED(CONFIG_NF_CONNTRACK)" (identifier) "IS_ENABLED" (argument_list) "(CONFIG_NF_CONNTRACK)" (() "(" (identifier) "CONFIG_NF_CONNTRACK" ()) ")" ( ) "\n" (preproc_include) "#include <net/netfilter/nf_conntrack.h>\n" (#include) "#include" (system_lib_string) "<net/netfilter/nf_conntrack.h>" (#endif) "#endif" (function_definition) "static bool nf_dup_ipv4_route(struct net *net, struct sk_buff *skb,\n const struct in_addr *gw, int oif)\n{\n const struct iphdr *iph = ip_hdr(skb);\n struct rtable *rt;\n struct flowi4 fl4;\n\n memset(&fl4, 0, sizeof(fl4));\n if (oif != -1)\n fl4.flowi4_oif = oif;\n\n fl4.daddr = gw->s_addr;\n fl4.flowi4_tos = RT_TOS(iph->tos);\n fl4.flowi4_scope = RT_SCOPE_UNIVERSE;\n fl4.flowi4_flags = FLOWI_FLAG_KNOWN_NH;\n rt = ip_route_output_key(net, &fl4);\n if (IS_ERR(rt))\n return false;\n\n skb_dst_drop(skb);\n skb_dst_set(skb, &rt->dst);\n skb->dev = rt->dst.dev;\n skb->protocol = htons(ETH_P_IP);\n\n return true;\n}" (storage_class_specifier) "static" (static) "static" (primitive_type) "bool" (function_declarator) "nf_dup_ipv4_route(struct net *net, struct sk_buff *skb,\n const struct in_addr *gw, int oif)" (identifier) "nf_dup_ipv4_route" (parameter_list) "(struct net *net, struct sk_buff *skb,\n const struct in_addr *gw, int oif)" (() "(" (parameter_declaration) "struct net *net" (struct_specifier) "struct net" (struct) "struct" (type_identifier) "net" (pointer_declarator) "*net" (*) "*" (identifier) "net" (,) "," (parameter_declaration) "struct sk_buff *skb" (struct_specifier) "struct sk_buff" (struct) "struct" (type_identifier) "sk_buff" (pointer_declarator) "*skb" (*) "*" (identifier) "skb" (,) "," (parameter_declaration) "const struct in_addr *gw" (type_qualifier) "const" (const) "const" (struct_specifier) "struct in_addr" (struct) "struct" (type_identifier) "in_addr" (pointer_declarator) "*gw" (*) "*" (identifier) "gw" (,) "," (parameter_declaration) "int oif" (primitive_type) "int" (identifier) "oif" ()) ")" (compound_statement) "{\n const struct iphdr *iph = ip_hdr(skb);\n struct rtable *rt;\n struct flowi4 fl4;\n\n memset(&fl4, 0, sizeof(fl4));\n if (oif != -1)\n fl4.flowi4_oif = oif;\n\n fl4.daddr = gw->s_addr;\n fl4.flowi4_tos = RT_TOS(iph->tos);\n fl4.flowi4_scope = RT_SCOPE_UNIVERSE;\n fl4.flowi4_flags = FLOWI_FLAG_KNOWN_NH;\n rt = ip_route_output_key(net, &fl4);\n if (IS_ERR(rt))\n return false;\n\n skb_dst_drop(skb);\n skb_dst_set(skb, &rt->dst);\n skb->dev = rt->dst.dev;\n skb->protocol = htons(ETH_P_IP);\n\n return true;\n}" ({) "{" (declaration) "const struct iphdr *iph = ip_hdr(skb);" (type_qualifier) "const" (const) "const" (struct_specifier) "struct iphdr" (struct) "struct" (type_identifier) "iphdr" (init_declarator) "*iph = ip_hdr(skb)" (pointer_declarator) "*iph" (*) "*" (identifier) "iph" (=) "=" (call_expression) "ip_hdr(skb)" (identifier) "ip_hdr" (argument_list) "(skb)" (() "(" (identifier) "skb" ()) ")" (;) ";" (declaration) "struct rtable *rt;" (struct_specifier) "struct rtable" (struct) "struct" (type_identifier) "rtable" (pointer_declarator) "*rt" (*) "*" (identifier) "rt" (;) ";" (declaration) "struct flowi4 fl4;" (struct_specifier) "struct flowi4" (struct) "struct" (type_identifier) "flowi4" (identifier) "fl4" (;) ";" (expression_statement) "memset(&fl4, 0, sizeof(fl4));" (call_expression) "memset(&fl4, 0, sizeof(fl4))" (identifier) "memset" (argument_list) "(&fl4, 0, sizeof(fl4))" (() "(" (pointer_expression) "&fl4" (&) "&" (identifier) "fl4" (,) "," (number_literal) "0" (,) "," (sizeof_expression) "sizeof(fl4)" (sizeof) "sizeof" (parenthesized_expression) "(fl4)" (() "(" (identifier) "fl4" ()) ")" ()) ")" (;) ";" (if_statement) "if (oif != -1)\n fl4.flowi4_oif = oif;" (if) "if" (parenthesized_expression) "(oif != -1)" (() "(" (binary_expression) "oif != -1" (identifier) "oif" (!=) "!=" (number_literal) "-1" ()) ")" (expression_statement) "fl4.flowi4_oif = oif;" (assignment_expression) "fl4.flowi4_oif = oif" (field_expression) "fl4.flowi4_oif" (identifier) "fl4" (.) "." (field_identifier) "flowi4_oif" (=) "=" (identifier) "oif" (;) ";" (expression_statement) "fl4.daddr = gw->s_addr;" (assignment_expression) "fl4.daddr = gw->s_addr" (field_expression) "fl4.daddr" (identifier) "fl4" (.) "." (field_identifier) "daddr" (=) "=" (field_expression) "gw->s_addr" (identifier) "gw" (->) "->" (field_identifier) "s_addr" (;) ";" (expression_statement) "fl4.flowi4_tos = RT_TOS(iph->tos);" (assignment_expression) "fl4.flowi4_tos = RT_TOS(iph->tos)" (field_expression) "fl4.flowi4_tos" (identifier) "fl4" (.) "." (field_identifier) "flowi4_tos" (=) "=" (call_expression) "RT_TOS(iph->tos)" (identifier) "RT_TOS" (argument_list) "(iph->tos)" (() "(" (field_expression) "iph->tos" (identifier) "iph" (->) "->" (field_identifier) "tos" ()) ")" (;) ";" (expression_statement) "fl4.flowi4_scope = RT_SCOPE_UNIVERSE;" (assignment_expression) "fl4.flowi4_scope = RT_SCOPE_UNIVERSE" (field_expression) "fl4.flowi4_scope" (identifier) "fl4" (.) "." (field_identifier) "flowi4_scope" (=) "=" (identifier) "RT_SCOPE_UNIVERSE" (;) ";" (expression_statement) "fl4.flowi4_flags = FLOWI_FLAG_KNOWN_NH;" (assignment_expression) "fl4.flowi4_flags = FLOWI_FLAG_KNOWN_NH" (field_expression) "fl4.flowi4_flags" (identifier) "fl4" (.) "." (field_identifier) "flowi4_flags" (=) "=" (identifier) "FLOWI_FLAG_KNOWN_NH" (;) ";" (expression_statement) "rt = ip_route_output_key(net, &fl4);" (assignment_expression) "rt = ip_route_output_key(net, &fl4)" (identifier) "rt" (=) "=" (call_expression) "ip_route_output_key(net, &fl4)" (identifier) "ip_route_output_key" (argument_list) "(net, &fl4)" (() "(" (identifier) "net" (,) "," (pointer_expression) "&fl4" (&) "&" (identifier) "fl4" ()) ")" (;) ";" (if_statement) "if (IS_ERR(rt))\n return false;" (if) "if" (parenthesized_expression) "(IS_ERR(rt))" (() "(" (call_expression) "IS_ERR(rt)" (identifier) "IS_ERR" (argument_list) "(rt)" (() "(" (identifier) "rt" ()) ")" ()) ")" (return_statement) "return false;" (return) "return" (false) "false" (;) ";" (expression_statement) "skb_dst_drop(skb);" (call_expression) "skb_dst_drop(skb)" (identifier) "skb_dst_drop" (argument_list) "(skb)" (() "(" (identifier) "skb" ()) ")" (;) ";" (expression_statement) "skb_dst_set(skb, &rt->dst);" (call_expression) "skb_dst_set(skb, &rt->dst)" (identifier) "skb_dst_set" (argument_list) "(skb, &rt->dst)" (() "(" (identifier) "skb" (,) "," (pointer_expression) "&rt->dst" (&) "&" (field_expression) "rt->dst" (identifier) "rt" (->) "->" (field_identifier) "dst" ()) ")" (;) ";" (expression_statement) "skb->dev = rt->dst.dev;" (assignment_expression) "skb->dev = rt->dst.dev" (field_expression) "skb->dev" (identifier) "skb" (->) "->" (field_identifier) "dev" (=) "=" (field_expression) "rt->dst.dev" (field_expression) "rt->dst" (identifier) "rt" (->) "->" (field_identifier) "dst" (.) "." (field_identifier) "dev" (;) ";" (expression_statement) "skb->protocol = htons(ETH_P_IP);" (assignment_expression) "skb->protocol = htons(ETH_P_IP)" (field_expression) "skb->protocol" (identifier) "skb" (->) "->" (field_identifier) "protocol" (=) "=" (call_expression) "htons(ETH_P_IP)" (identifier) "htons" (argument_list) "(ETH_P_IP)" (() "(" (identifier) "ETH_P_IP" ()) ")" (;) ";" (return_statement) "return true;" (return) "return" (true) "true" (;) ";" (}) "}" (function_definition) "void nf_dup_ipv4(struct net *net, struct sk_buff *skb, unsigned int hooknum,\n const struct in_addr *gw, int oif)\n{\n struct iphdr *iph;\n\n if (this_cpu_read(nf_skb_duplicated))\n return;\n /*\n * Copy the skb, and route the copy. Will later return %XT_CONTINUE for\n * the original skb, which should continue on its way as if nothing has\n * happened. The copy should be independently delivered to the gateway.\n */\n skb = pskb_copy(skb, GFP_ATOMIC);\n if (skb == NULL)\n return;\n\n#if IS_ENABLED(CONFIG_NF_CONNTRACK)\n /* Avoid counting cloned packets towards the original connection. */\n nf_conntrack_put(skb->nfct);\n skb->nfct = &nf_ct_untracked_get()->ct_general;\n skb->nfctinfo = IP_CT_NEW;\n nf_conntrack_get(skb->nfct);\n#endif\n /*\n * If we are in PREROUTING/INPUT, decrease the TTL to mitigate potential\n * loops between two hosts.\n *\n * Set %IP_DF so that the original source is notified of a potentially\n * decreased MTU on the clone route. IPv6 does this too.\n *\n * IP header checksum will be recalculated at ip_local_out.\n */\n iph = ip_hdr(skb);\n iph->frag_off |= htons(IP_DF);\n if (hooknum == NF_INET_PRE_ROUTING ||\n hooknum == NF_INET_LOCAL_IN)\n --iph->ttl;\n\n if (nf_dup_ipv4_route(net, skb, gw, oif)) {\n __this_cpu_write(nf_skb_duplicated, true);\n ip_local_out(net, skb->sk, skb);\n __this_cpu_write(nf_skb_duplicated, false);\n } else {\n kfree_skb(skb);\n }\n}" (primitive_type) "void" (function_declarator) "nf_dup_ipv4(struct net *net, struct sk_buff *skb, unsigned int hooknum,\n const struct in_addr *gw, int oif)" (identifier) "nf_dup_ipv4" (parameter_list) "(struct net *net, struct sk_buff *skb, unsigned int hooknum,\n const struct in_addr *gw, int oif)" (() "(" (parameter_declaration) "struct net *net" (struct_specifier) "struct net" (struct) "struct" (type_identifier) "net" (pointer_declarator) "*net" (*) "*" (identifier) "net" (,) "," (parameter_declaration) "struct sk_buff *skb" (struct_specifier) "struct sk_buff" (struct) "struct" (type_identifier) "sk_buff" (pointer_declarator) "*skb" (*) "*" (identifier) "skb" (,) "," (parameter_declaration) "unsigned int hooknum" (sized_type_specifier) "unsigned int" (unsigned) "unsigned" (primitive_type) "int" (identifier) "hooknum" (,) "," (parameter_declaration) "const struct in_addr *gw" (type_qualifier) "const" (const) "const" (struct_specifier) "struct in_addr" (struct) "struct" (type_identifier) "in_addr" (pointer_declarator) "*gw" (*) "*" (identifier) "gw" (,) "," (parameter_declaration) "int oif" (primitive_type) "int" (identifier) "oif" ()) ")" (compound_statement) "{\n struct iphdr *iph;\n\n if (this_cpu_read(nf_skb_duplicated))\n return;\n /*\n * Copy the skb, and route the copy. Will later return %XT_CONTINUE for\n * the original skb, which should continue on its way as if nothing has\n * happened. The copy should be independently delivered to the gateway.\n */\n skb = pskb_copy(skb, GFP_ATOMIC);\n if (skb == NULL)\n return;\n\n#if IS_ENABLED(CONFIG_NF_CONNTRACK)\n /* Avoid counting cloned packets towards the original connection. */\n nf_conntrack_put(skb->nfct);\n skb->nfct = &nf_ct_untracked_get()->ct_general;\n skb->nfctinfo = IP_CT_NEW;\n nf_conntrack_get(skb->nfct);\n#endif\n /*\n * If we are in PREROUTING/INPUT, decrease the TTL to mitigate potential\n * loops between two hosts.\n *\n * Set %IP_DF so that the original source is notified of a potentially\n * decreased MTU on the clone route. IPv6 does this too.\n *\n * IP header checksum will be recalculated at ip_local_out.\n */\n iph = ip_hdr(skb);\n iph->frag_off |= htons(IP_DF);\n if (hooknum == NF_INET_PRE_ROUTING ||\n hooknum == NF_INET_LOCAL_IN)\n --iph->ttl;\n\n if (nf_dup_ipv4_route(net, skb, gw, oif)) {\n __this_cpu_write(nf_skb_duplicated, true);\n ip_local_out(net, skb->sk, skb);\n __this_cpu_write(nf_skb_duplicated, false);\n } else {\n kfree_skb(skb);\n }\n}" ({) "{" (declaration) "struct iphdr *iph;" (struct_specifier) "struct iphdr" (struct) "struct" (type_identifier) "iphdr" (pointer_declarator) "*iph" (*) "*" (identifier) "iph" (;) ";" (if_statement) "if (this_cpu_read(nf_skb_duplicated))\n return;" (if) "if" (parenthesized_expression) "(this_cpu_read(nf_skb_duplicated))" (() "(" (call_expression) "this_cpu_read(nf_skb_duplicated)" (identifier) "this_cpu_read" (argument_list) "(nf_skb_duplicated)" (() "(" (identifier) "nf_skb_duplicated" ()) ")" ()) ")" (return_statement) "return;" (return) "return" (;) ";" (comment) "/*\n * Copy the skb, and route the copy. Will later return %XT_CONTINUE for\n * the original skb, which should continue on its way as if nothing has\n * happened. The copy should be independently delivered to the gateway.\n */" (expression_statement) "skb = pskb_copy(skb, GFP_ATOMIC);" (assignment_expression) "skb = pskb_copy(skb, GFP_ATOMIC)" (identifier) "skb" (=) "=" (call_expression) "pskb_copy(skb, GFP_ATOMIC)" (identifier) "pskb_copy" (argument_list) "(skb, GFP_ATOMIC)" (() "(" (identifier) "skb" (,) "," (identifier) "GFP_ATOMIC" ()) ")" (;) ";" (if_statement) "if (skb == NULL)\n return;" (if) "if" (parenthesized_expression) "(skb == NULL)" (() "(" (binary_expression) "skb == NULL" (identifier) "skb" (==) "==" (null) "NULL" (NULL) "NULL" ()) ")" (return_statement) "return;" (return) "return" (;) ";" (preproc_if) "#if IS_ENABLED(CONFIG_NF_CONNTRACK)\n /* Avoid counting cloned packets towards the original connection. */\n nf_conntrack_put(skb->nfct);\n skb->nfct = &nf_ct_untracked_get()->ct_general;\n skb->nfctinfo = IP_CT_NEW;\n nf_conntrack_get(skb->nfct);\n#endif" (#if) "#if" (call_expression) "IS_ENABLED(CONFIG_NF_CONNTRACK)" (identifier) "IS_ENABLED" (argument_list) "(CONFIG_NF_CONNTRACK)" (() "(" (identifier) "CONFIG_NF_CONNTRACK" ()) ")" ( ) "\n" (comment) "/* Avoid counting cloned packets towards the original connection. */" (expression_statement) "nf_conntrack_put(skb->nfct);" (call_expression) "nf_conntrack_put(skb->nfct)" (identifier) "nf_conntrack_put" (argument_list) "(skb->nfct)" (() "(" (field_expression) "skb->nfct" (identifier) "skb" (->) "->" (field_identifier) "nfct" ()) ")" (;) ";" (expression_statement) "skb->nfct = &nf_ct_untracked_get()->ct_general;" (assignment_expression) "skb->nfct = &nf_ct_untracked_get()->ct_general" (field_expression) "skb->nfct" (identifier) "skb" (->) "->" (field_identifier) "nfct" (=) "=" (pointer_expression) "&nf_ct_untracked_get()->ct_general" (&) "&" (field_expression) "nf_ct_untracked_get()->ct_general" (call_expression) "nf_ct_untracked_get()" (identifier) "nf_ct_untracked_get" (argument_list) "()" (() "(" ()) ")" (->) "->" (field_identifier) "ct_general" (;) ";" (expression_statement) "skb->nfctinfo = IP_CT_NEW;" (assignment_expression) "skb->nfctinfo = IP_CT_NEW" (field_expression) "skb->nfctinfo" (identifier) "skb" (->) "->" (field_identifier) "nfctinfo" (=) "=" (identifier) "IP_CT_NEW" (;) ";" (expression_statement) "nf_conntrack_get(skb->nfct);" (call_expression) "nf_conntrack_get(skb->nfct)" (identifier) "nf_conntrack_get" (argument_list) "(skb->nfct)" (() "(" (field_expression) "skb->nfct" (identifier) "skb" (->) "->" (field_identifier) "nfct" ()) ")" (;) ";" (#endif) "#endif" (comment) "/*\n * If we are in PREROUTING/INPUT, decrease the TTL to mitigate potential\n * loops between two hosts.\n *\n * Set %IP_DF so that the original source is notified of a potentially\n * decreased MTU on the clone route. IPv6 does this too.\n *\n * IP header checksum will be recalculated at ip_local_out.\n */" (expression_statement) "iph = ip_hdr(skb);" (assignment_expression) "iph = ip_hdr(skb)" (identifier) "iph" (=) "=" (call_expression) "ip_hdr(skb)" (identifier) "ip_hdr" (argument_list) "(skb)" (() "(" (identifier) "skb" ()) ")" (;) ";" (expression_statement) "iph->frag_off |= htons(IP_DF);" (assignment_expression) "iph->frag_off |= htons(IP_DF)" (field_expression) "iph->frag_off" (identifier) "iph" (->) "->" (field_identifier) "frag_off" (|=) "|=" (call_expression) "htons(IP_DF)" (identifier) "htons" (argument_list) "(IP_DF)" (() "(" (identifier) "IP_DF" ()) ")" (;) ";" (if_statement) "if (hooknum == NF_INET_PRE_ROUTING ||\n hooknum == NF_INET_LOCAL_IN)\n --iph->ttl;" (if) "if" (parenthesized_expression) "(hooknum == NF_INET_PRE_ROUTING ||\n hooknum == NF_INET_LOCAL_IN)" (() "(" (binary_expression) "hooknum == NF_INET_PRE_ROUTING ||\n hooknum == NF_INET_LOCAL_IN" (binary_expression) "hooknum == NF_INET_PRE_ROUTING" (identifier) "hooknum" (==) "==" (identifier) "NF_INET_PRE_ROUTING" (||) "||" (binary_expression) "hooknum == NF_INET_LOCAL_IN" (identifier) "hooknum" (==) "==" (identifier) "NF_INET_LOCAL_IN" ()) ")" (expression_statement) "--iph->ttl;" (update_expression) "--iph->ttl" (--) "--" (field_expression) "iph->ttl" (identifier) "iph" (->) "->" (field_identifier) "ttl" (;) ";" (if_statement) "if (nf_dup_ipv4_route(net, skb, gw, oif)) {\n __this_cpu_write(nf_skb_duplicated, true);\n ip_local_out(net, skb->sk, skb);\n __this_cpu_write(nf_skb_duplicated, false);\n } else {\n kfree_skb(skb);\n }" (if) "if" (parenthesized_expression) "(nf_dup_ipv4_route(net, skb, gw, oif))" (() "(" (call_expression) "nf_dup_ipv4_route(net, skb, gw, oif)" (identifier) "nf_dup_ipv4_route" (argument_list) "(net, skb, gw, oif)" (() "(" (identifier) "net" (,) "," (identifier) "skb" (,) "," (identifier) "gw" (,) "," (identifier) "oif" ()) ")" ()) ")" (compound_statement) "{\n __this_cpu_write(nf_skb_duplicated, true);\n ip_local_out(net, skb->sk, skb);\n __this_cpu_write(nf_skb_duplicated, false);\n }" ({) "{" (expression_statement) "__this_cpu_write(nf_skb_duplicated, true);" (call_expression) "__this_cpu_write(nf_skb_duplicated, true)" (identifier) "__this_cpu_write" (argument_list) "(nf_skb_duplicated, true)" (() "(" (identifier) "nf_skb_duplicated" (,) "," (true) "true" ()) ")" (;) ";" (expression_statement) "ip_local_out(net, skb->sk, skb);" (call_expression) "ip_local_out(net, skb->sk, skb)" (identifier) "ip_local_out" (argument_list) "(net, skb->sk, skb)" (() "(" (identifier) "net" (,) "," (field_expression) "skb->sk" (identifier) "skb" (->) "->" (field_identifier) "sk" (,) "," (identifier) "skb" ()) ")" (;) ";" (expression_statement) "__this_cpu_write(nf_skb_duplicated, false);" (call_expression) "__this_cpu_write(nf_skb_duplicated, false)" (identifier) "__this_cpu_write" (argument_list) "(nf_skb_duplicated, false)" (() "(" (identifier) "nf_skb_duplicated" (,) "," (false) "false" ()) ")" (;) ";" (}) "}" (else_clause) "else {\n kfree_skb(skb);\n }" (else) "else" (compound_statement) "{\n kfree_skb(skb);\n }" ({) "{" (expression_statement) "kfree_skb(skb);" (call_expression) "kfree_skb(skb)" (identifier) "kfree_skb" (argument_list) "(skb)" (() "(" (identifier) "skb" ()) ")" (;) ";" (}) "}" (}) "}" (expression_statement) "EXPORT_SYMBOL_GPL(nf_dup_ipv4);" (call_expression) "EXPORT_SYMBOL_GPL(nf_dup_ipv4)" (identifier) "EXPORT_SYMBOL_GPL" (argument_list) "(nf_dup_ipv4)" (() "(" (identifier) "nf_dup_ipv4" ()) ")" (;) ";" (expression_statement) "MODULE_AUTHOR("<NAME> <<EMAIL>>");" (call_expression) "MODULE_AUTHOR("<NAME> <<EMAIL>>")" (identifier) "MODULE_AUTHOR" (argument_list) "("<NAME> <<EMAIL>>")" (() "(" (string_literal) ""<NAME> <<EMAIL>>"" (") """ (string_content) "<NAME> <<EMAIL>>" (") """ ()) ")" (;) ";" (expression_statement) "MODULE_AUTHOR("<NAME> <<EMAIL>>");" (call_expression) "MODULE_AUTHOR("<NAME> <<EMAIL>>")" (identifier) "MODULE_AUTHOR" (argument_list) "("<NAME> <<EMAIL>>")" (() "(" (string_literal) ""<NAME> <<EMAIL>>"" (") """ (string_content) "<NAME> <<EMAIL>>" (") """ ()) ")" (;) ";" (expression_statement) "MODULE_DESCRIPTION("nf_dup_ipv4: Duplicate IPv4 packet");" (call_expression) "MODULE_DESCRIPTION("nf_dup_ipv4: Duplicate IPv4 packet")" (identifier) "MODULE_DESCRIPTION" (argument_list) "("nf_dup_ipv4: Duplicate IPv4 packet")" (() "(" (string_literal) ""nf_dup_ipv4: Duplicate IPv4 packet"" (") """ (string_content) "nf_dup_ipv4: Duplicate IPv4 packet" (") """ ()) ")" (;) ";" (expression_statement) "MODULE_LICENSE("GPL");" (call_expression) "MODULE_LICENSE("GPL")" (identifier) "MODULE_LICENSE" (argument_list) "("GPL")" (() "(" (string_literal) ""GPL"" (") """ (string_content) "GPL" (") """ ()) ")" (;) ";"
614
0
{"language": "c", "success": true, "metadata": {"lines": 94, "avg_line_length": 29.34, "nodes": 386, "errors": 0, "source_hash": "53f223f9dcdd7a01746ad39fbb44fd8e1b1471a9a2fe8333998105bcd26d656c", "categorized_nodes": 303}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#include <linux/ip.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": "system_lib_string", "text": "<linux/ip.h>", "parent": 0, "children": [], "start_point": {"row": 10, "column": 9}, "end_point": {"row": 10, "column": 21}}, {"id": 3, "type": "preproc_include", "text": "#include <linux/module.h>\n", "parent": null, "children": [4, 5], "start_point": {"row": 11, "column": 0}, "end_point": {"row": 12, "column": 0}}, {"id": 4, "type": "#include", "text": "#include", "parent": 3, "children": [], "start_point": {"row": 11, "column": 0}, "end_point": {"row": 11, "column": 8}}, {"id": 5, "type": "system_lib_string", "text": "<linux/module.h>", "parent": 3, "children": [], "start_point": {"row": 11, "column": 9}, "end_point": {"row": 11, "column": 25}}, {"id": 6, "type": "preproc_include", "text": "#include <linux/percpu.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": "<linux/percpu.h>", "parent": 6, "children": [], "start_point": {"row": 12, "column": 9}, "end_point": {"row": 12, "column": 25}}, {"id": 9, "type": "preproc_include", "text": "#include <linux/route.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": "<linux/route.h>", "parent": 9, "children": [], "start_point": {"row": 13, "column": 9}, "end_point": {"row": 13, "column": 24}}, {"id": 12, "type": "preproc_include", "text": "#include <linux/skbuff.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": "<linux/skbuff.h>", "parent": 12, "children": [], "start_point": {"row": 14, "column": 9}, "end_point": {"row": 14, "column": 25}}, {"id": 15, "type": "preproc_include", "text": "#include <linux/netfilter.h>\n", "parent": null, "children": [16, 17], "start_point": {"row": 15, "column": 0}, "end_point": {"row": 16, "column": 0}}, {"id": 16, "type": "#include", "text": "#include", "parent": 15, "children": [], "start_point": {"row": 15, "column": 0}, "end_point": {"row": 15, "column": 8}}, {"id": 17, "type": "system_lib_string", "text": "<linux/netfilter.h>", "parent": 15, "children": [], "start_point": {"row": 15, "column": 9}, "end_point": {"row": 15, "column": 28}}, {"id": 18, "type": "preproc_include", "text": "#include <net/checksum.h>\n", "parent": null, "children": [19, 20], "start_point": {"row": 16, "column": 0}, "end_point": {"row": 17, "column": 0}}, {"id": 19, "type": "#include", "text": "#include", "parent": 18, "children": [], "start_point": {"row": 16, "column": 0}, "end_point": {"row": 16, "column": 8}}, {"id": 20, "type": "system_lib_string", "text": "<net/checksum.h>", "parent": 18, "children": [], "start_point": {"row": 16, "column": 9}, "end_point": {"row": 16, "column": 25}}, {"id": 21, "type": "preproc_include", "text": "#include <net/icmp.h>\n", "parent": null, "children": [22, 23], "start_point": {"row": 17, "column": 0}, "end_point": {"row": 18, "column": 0}}, {"id": 22, "type": "#include", "text": "#include", "parent": 21, "children": [], "start_point": {"row": 17, "column": 0}, "end_point": {"row": 17, "column": 8}}, {"id": 23, "type": "system_lib_string", "text": "<net/icmp.h>", "parent": 21, "children": [], "start_point": {"row": 17, "column": 9}, "end_point": {"row": 17, "column": 21}}, {"id": 24, "type": "preproc_include", "text": "#include <net/ip.h>\n", "parent": null, "children": [25, 26], "start_point": {"row": 18, "column": 0}, "end_point": {"row": 19, "column": 0}}, {"id": 25, "type": "#include", "text": "#include", "parent": 24, "children": [], "start_point": {"row": 18, "column": 0}, "end_point": {"row": 18, "column": 8}}, {"id": 26, "type": "system_lib_string", "text": "<net/ip.h>", "parent": 24, "children": [], "start_point": {"row": 18, "column": 9}, "end_point": {"row": 18, "column": 19}}, {"id": 27, "type": "preproc_include", "text": "#include <net/route.h>\n", "parent": null, "children": [28, 29], "start_point": {"row": 19, "column": 0}, "end_point": {"row": 20, "column": 0}}, {"id": 28, "type": "#include", "text": "#include", "parent": 27, "children": [], "start_point": {"row": 19, "column": 0}, "end_point": {"row": 19, "column": 8}}, {"id": 29, "type": "system_lib_string", "text": "<net/route.h>", "parent": 27, "children": [], "start_point": {"row": 19, "column": 9}, "end_point": {"row": 19, "column": 22}}, {"id": 30, "type": "preproc_include", "text": "#include <net/netfilter/ipv4/nf_dup_ipv4.h>\n", "parent": null, "children": [31, 32], "start_point": {"row": 20, "column": 0}, "end_point": {"row": 21, "column": 0}}, {"id": 31, "type": "#include", "text": "#include", "parent": 30, "children": [], "start_point": {"row": 20, "column": 0}, "end_point": {"row": 20, "column": 8}}, {"id": 32, "type": "system_lib_string", "text": "<net/netfilter/ipv4/nf_dup_ipv4.h>", "parent": 30, "children": [], "start_point": {"row": 20, "column": 9}, "end_point": {"row": 20, "column": 43}}, {"id": 33, "type": "preproc_if", "text": "#if IS_ENABLED(CONFIG_NF_CONNTRACK)\n#include <net/netfilter/nf_conntrack.h>\n#endif", "parent": null, "children": [34, 35, 39, 40, 43], "start_point": {"row": 21, "column": 0}, "end_point": {"row": 23, "column": 6}}, {"id": 34, "type": "#if", "text": "#if", "parent": 33, "children": [], "start_point": {"row": 21, "column": 0}, "end_point": {"row": 21, "column": 3}}, {"id": 35, "type": "call_expression", "text": "IS_ENABLED(CONFIG_NF_CONNTRACK)", "parent": 33, "children": [36, 37], "start_point": {"row": 21, "column": 4}, "end_point": {"row": 21, "column": 35}}, {"id": 36, "type": "identifier", "text": "IS_ENABLED", "parent": 35, "children": [], "start_point": {"row": 21, "column": 4}, "end_point": {"row": 21, "column": 14}}, {"id": 37, "type": "argument_list", "text": "(CONFIG_NF_CONNTRACK)", "parent": 35, "children": [38], "start_point": {"row": 21, "column": 14}, "end_point": {"row": 21, "column": 35}}, {"id": 38, "type": "identifier", "text": "CONFIG_NF_CONNTRACK", "parent": 37, "children": [], "start_point": {"row": 21, "column": 15}, "end_point": {"row": 21, "column": 34}}, {"id": 39, "type": "\n", "text": "\n", "parent": 33, "children": [], "start_point": {"row": 21, "column": 35}, "end_point": {"row": 22, "column": 0}}, {"id": 40, "type": "preproc_include", "text": "#include <net/netfilter/nf_conntrack.h>\n", "parent": 33, "children": [41, 42], "start_point": {"row": 22, "column": 0}, "end_point": {"row": 23, "column": 0}}, {"id": 41, "type": "#include", "text": "#include", "parent": 40, "children": [], "start_point": {"row": 22, "column": 0}, "end_point": {"row": 22, "column": 8}}, {"id": 42, "type": "system_lib_string", "text": "<net/netfilter/nf_conntrack.h>", "parent": 40, "children": [], "start_point": {"row": 22, "column": 9}, "end_point": {"row": 22, "column": 39}}, {"id": 43, "type": "#endif", "text": "#endif", "parent": 33, "children": [], "start_point": {"row": 23, "column": 0}, "end_point": {"row": 23, "column": 6}}, {"id": 44, "type": "function_definition", "text": "static bool nf_dup_ipv4_route(struct net *net, struct sk_buff *skb,\n\t\t\t const struct in_addr *gw, int oif)\n{\n\tconst struct iphdr *iph = ip_hdr(skb);\n\tstruct rtable *rt;\n\tstruct flowi4 fl4;\n\n\tmemset(&fl4, 0, sizeof(fl4));\n\tif (oif != -1)\n\t\tfl4.flowi4_oif = oif;\n\n\tfl4.daddr = gw->s_addr;\n\tfl4.flowi4_tos = RT_TOS(iph->tos);\n\tfl4.flowi4_scope = RT_SCOPE_UNIVERSE;\n\tfl4.flowi4_flags = FLOWI_FLAG_KNOWN_NH;\n\trt = ip_route_output_key(net, &fl4);\n\tif (IS_ERR(rt))\n\t\treturn false;\n\n\tskb_dst_drop(skb);\n\tskb_dst_set(skb, &rt->dst);\n\tskb->dev = rt->dst.dev;\n\tskb->protocol = htons(ETH_P_IP);\n\n\treturn true;\n}", "parent": null, "children": [45, 46], "start_point": {"row": 25, "column": 0}, "end_point": {"row": 50, "column": 1}}, {"id": 45, "type": "primitive_type", "text": "bool", "parent": 44, "children": [], "start_point": {"row": 25, "column": 7}, "end_point": {"row": 25, "column": 11}}, {"id": 46, "type": "function_declarator", "text": "nf_dup_ipv4_route(struct net *net, struct sk_buff *skb,\n\t\t\t const struct in_addr *gw, int oif)", "parent": 44, "children": [47, 48], "start_point": {"row": 25, "column": 12}, "end_point": {"row": 26, "column": 43}}, {"id": 47, "type": "identifier", "text": "nf_dup_ipv4_route", "parent": 46, "children": [], "start_point": {"row": 25, "column": 12}, "end_point": {"row": 25, "column": 29}}, {"id": 48, "type": "parameter_list", "text": "(struct net *net, struct sk_buff *skb,\n\t\t\t const struct in_addr *gw, int oif)", "parent": 46, "children": [49, 56, 63, 70], "start_point": {"row": 25, "column": 29}, "end_point": {"row": 26, "column": 43}}, {"id": 49, "type": "parameter_declaration", "text": "struct net *net", "parent": 48, "children": [50, 53], "start_point": {"row": 25, "column": 30}, "end_point": {"row": 25, "column": 45}}, {"id": 50, "type": "struct_specifier", "text": "struct net", "parent": 49, "children": [51, 52], "start_point": {"row": 25, "column": 30}, "end_point": {"row": 25, "column": 40}}, {"id": 51, "type": "struct", "text": "struct", "parent": 50, "children": [], "start_point": {"row": 25, "column": 30}, "end_point": {"row": 25, "column": 36}}, {"id": 52, "type": "type_identifier", "text": "net", "parent": 50, "children": [], "start_point": {"row": 25, "column": 37}, "end_point": {"row": 25, "column": 40}}, {"id": 53, "type": "pointer_declarator", "text": "*net", "parent": 49, "children": [54, 55], "start_point": {"row": 25, "column": 41}, "end_point": {"row": 25, "column": 45}}, {"id": 54, "type": "*", "text": "*", "parent": 53, "children": [], "start_point": {"row": 25, "column": 41}, "end_point": {"row": 25, "column": 42}}, {"id": 55, "type": "identifier", "text": "net", "parent": 53, "children": [], "start_point": {"row": 25, "column": 42}, "end_point": {"row": 25, "column": 45}}, {"id": 56, "type": "parameter_declaration", "text": "struct sk_buff *skb", "parent": 48, "children": [57, 60], "start_point": {"row": 25, "column": 47}, "end_point": {"row": 25, "column": 66}}, {"id": 57, "type": "struct_specifier", "text": "struct sk_buff", "parent": 56, "children": [58, 59], "start_point": {"row": 25, "column": 47}, "end_point": {"row": 25, "column": 61}}, {"id": 58, "type": "struct", "text": "struct", "parent": 57, "children": [], "start_point": {"row": 25, "column": 47}, "end_point": {"row": 25, "column": 53}}, {"id": 59, "type": "type_identifier", "text": "sk_buff", "parent": 57, "children": [], "start_point": {"row": 25, "column": 54}, "end_point": {"row": 25, "column": 61}}, {"id": 60, "type": "pointer_declarator", "text": "*skb", "parent": 56, "children": [61, 62], "start_point": {"row": 25, "column": 62}, "end_point": {"row": 25, "column": 66}}, {"id": 61, "type": "*", "text": "*", "parent": 60, "children": [], "start_point": {"row": 25, "column": 62}, "end_point": {"row": 25, "column": 63}}, {"id": 62, "type": "identifier", "text": "skb", "parent": 60, "children": [], "start_point": {"row": 25, "column": 63}, "end_point": {"row": 25, "column": 66}}, {"id": 63, "type": "parameter_declaration", "text": "const struct in_addr *gw", "parent": 48, "children": [64, 67], "start_point": {"row": 26, "column": 9}, "end_point": {"row": 26, "column": 33}}, {"id": 64, "type": "struct_specifier", "text": "struct in_addr", "parent": 63, "children": [65, 66], "start_point": {"row": 26, "column": 15}, "end_point": {"row": 26, "column": 29}}, {"id": 65, "type": "struct", "text": "struct", "parent": 64, "children": [], "start_point": {"row": 26, "column": 15}, "end_point": {"row": 26, "column": 21}}, {"id": 66, "type": "type_identifier", "text": "in_addr", "parent": 64, "children": [], "start_point": {"row": 26, "column": 22}, "end_point": {"row": 26, "column": 29}}, {"id": 67, "type": "pointer_declarator", "text": "*gw", "parent": 63, "children": [68, 69], "start_point": {"row": 26, "column": 30}, "end_point": {"row": 26, "column": 33}}, {"id": 68, "type": "*", "text": "*", "parent": 67, "children": [], "start_point": {"row": 26, "column": 30}, "end_point": {"row": 26, "column": 31}}, {"id": 69, "type": "identifier", "text": "gw", "parent": 67, "children": [], "start_point": {"row": 26, "column": 31}, "end_point": {"row": 26, "column": 33}}, {"id": 70, "type": "parameter_declaration", "text": "int oif", "parent": 48, "children": [71, 72], "start_point": {"row": 26, "column": 35}, "end_point": {"row": 26, "column": 42}}, {"id": 71, "type": "primitive_type", "text": "int", "parent": 70, "children": [], "start_point": {"row": 26, "column": 35}, "end_point": {"row": 26, "column": 38}}, {"id": 72, "type": "identifier", "text": "oif", "parent": 70, "children": [], "start_point": {"row": 26, "column": 39}, "end_point": {"row": 26, "column": 42}}, {"id": 73, "type": "declaration", "text": "const struct iphdr *iph = ip_hdr(skb);", "parent": 44, "children": [74, 77], "start_point": {"row": 28, "column": 1}, "end_point": {"row": 28, "column": 39}}, {"id": 74, "type": "struct_specifier", "text": "struct iphdr", "parent": 73, "children": [75, 76], "start_point": {"row": 28, "column": 7}, "end_point": {"row": 28, "column": 19}}, {"id": 75, "type": "struct", "text": "struct", "parent": 74, "children": [], "start_point": {"row": 28, "column": 7}, "end_point": {"row": 28, "column": 13}}, {"id": 76, "type": "type_identifier", "text": "iphdr", "parent": 74, "children": [], "start_point": {"row": 28, "column": 14}, "end_point": {"row": 28, "column": 19}}, {"id": 77, "type": "init_declarator", "text": "*iph = ip_hdr(skb)", "parent": 73, "children": [78, 81, 82], "start_point": {"row": 28, "column": 20}, "end_point": {"row": 28, "column": 38}}, {"id": 78, "type": "pointer_declarator", "text": "*iph", "parent": 77, "children": [79, 80], "start_point": {"row": 28, "column": 20}, "end_point": {"row": 28, "column": 24}}, {"id": 79, "type": "*", "text": "*", "parent": 78, "children": [], "start_point": {"row": 28, "column": 20}, "end_point": {"row": 28, "column": 21}}, {"id": 80, "type": "identifier", "text": "iph", "parent": 78, "children": [], "start_point": {"row": 28, "column": 21}, "end_point": {"row": 28, "column": 24}}, {"id": 81, "type": "=", "text": "=", "parent": 77, "children": [], "start_point": {"row": 28, "column": 25}, "end_point": {"row": 28, "column": 26}}, {"id": 82, "type": "call_expression", "text": "ip_hdr(skb)", "parent": 77, "children": [83, 84], "start_point": {"row": 28, "column": 27}, "end_point": {"row": 28, "column": 38}}, {"id": 83, "type": "identifier", "text": "ip_hdr", "parent": 82, "children": [], "start_point": {"row": 28, "column": 27}, "end_point": {"row": 28, "column": 33}}, {"id": 84, "type": "argument_list", "text": "(skb)", "parent": 82, "children": [85], "start_point": {"row": 28, "column": 33}, "end_point": {"row": 28, "column": 38}}, {"id": 85, "type": "identifier", "text": "skb", "parent": 84, "children": [], "start_point": {"row": 28, "column": 34}, "end_point": {"row": 28, "column": 37}}, {"id": 86, "type": "declaration", "text": "struct rtable *rt;", "parent": 44, "children": [87, 90], "start_point": {"row": 29, "column": 1}, "end_point": {"row": 29, "column": 19}}, {"id": 87, "type": "struct_specifier", "text": "struct rtable", "parent": 86, "children": [88, 89], "start_point": {"row": 29, "column": 1}, "end_point": {"row": 29, "column": 14}}, {"id": 88, "type": "struct", "text": "struct", "parent": 87, "children": [], "start_point": {"row": 29, "column": 1}, "end_point": {"row": 29, "column": 7}}, {"id": 89, "type": "type_identifier", "text": "rtable", "parent": 87, "children": [], "start_point": {"row": 29, "column": 8}, "end_point": {"row": 29, "column": 14}}, {"id": 90, "type": "pointer_declarator", "text": "*rt", "parent": 86, "children": [91, 92], "start_point": {"row": 29, "column": 15}, "end_point": {"row": 29, "column": 18}}, {"id": 91, "type": "*", "text": "*", "parent": 90, "children": [], "start_point": {"row": 29, "column": 15}, "end_point": {"row": 29, "column": 16}}, {"id": 92, "type": "identifier", "text": "rt", "parent": 90, "children": [], "start_point": {"row": 29, "column": 16}, "end_point": {"row": 29, "column": 18}}, {"id": 93, "type": "declaration", "text": "struct flowi4 fl4;", "parent": 44, "children": [94, 97], "start_point": {"row": 30, "column": 1}, "end_point": {"row": 30, "column": 19}}, {"id": 94, "type": "struct_specifier", "text": "struct flowi4", "parent": 93, "children": [95, 96], "start_point": {"row": 30, "column": 1}, "end_point": {"row": 30, "column": 14}}, {"id": 95, "type": "struct", "text": "struct", "parent": 94, "children": [], "start_point": {"row": 30, "column": 1}, "end_point": {"row": 30, "column": 7}}, {"id": 96, "type": "type_identifier", "text": "flowi4", "parent": 94, "children": [], "start_point": {"row": 30, "column": 8}, "end_point": {"row": 30, "column": 14}}, {"id": 97, "type": "identifier", "text": "fl4", "parent": 93, "children": [], "start_point": {"row": 30, "column": 15}, "end_point": {"row": 30, "column": 18}}, {"id": 98, "type": "call_expression", "text": "memset(&fl4, 0, sizeof(fl4))", "parent": 44, "children": [99, 100], "start_point": {"row": 32, "column": 1}, "end_point": {"row": 32, "column": 29}}, {"id": 99, "type": "identifier", "text": "memset", "parent": 98, "children": [], "start_point": {"row": 32, "column": 1}, "end_point": {"row": 32, "column": 7}}, {"id": 100, "type": "argument_list", "text": "(&fl4, 0, sizeof(fl4))", "parent": 98, "children": [101, 103, 104], "start_point": {"row": 32, "column": 7}, "end_point": {"row": 32, "column": 29}}, {"id": 101, "type": "pointer_expression", "text": "&fl4", "parent": 100, "children": [102], "start_point": {"row": 32, "column": 8}, "end_point": {"row": 32, "column": 12}}, {"id": 102, "type": "identifier", "text": "fl4", "parent": 101, "children": [], "start_point": {"row": 32, "column": 9}, "end_point": {"row": 32, "column": 12}}, {"id": 103, "type": "number_literal", "text": "0", "parent": 100, "children": [], "start_point": {"row": 32, "column": 14}, "end_point": {"row": 32, "column": 15}}, {"id": 104, "type": "sizeof_expression", "text": "sizeof(fl4)", "parent": 100, "children": [105], "start_point": {"row": 32, "column": 17}, "end_point": {"row": 32, "column": 28}}, {"id": 105, "type": "parenthesized_expression", "text": "(fl4)", "parent": 104, "children": [106], "start_point": {"row": 32, "column": 23}, "end_point": {"row": 32, "column": 28}}, {"id": 106, "type": "identifier", "text": "fl4", "parent": 105, "children": [], "start_point": {"row": 32, "column": 24}, "end_point": {"row": 32, "column": 27}}, {"id": 107, "type": "if_statement", "text": "if (oif != -1)\n\t\tfl4.flowi4_oif = oif;", "parent": 44, "children": [108], "start_point": {"row": 33, "column": 1}, "end_point": {"row": 34, "column": 23}}, {"id": 108, "type": "parenthesized_expression", "text": "(oif != -1)", "parent": 107, "children": [109], "start_point": {"row": 33, "column": 4}, "end_point": {"row": 33, "column": 15}}, {"id": 109, "type": "binary_expression", "text": "oif != -1", "parent": 108, "children": [110, 111, 112], "start_point": {"row": 33, "column": 5}, "end_point": {"row": 33, "column": 14}}, {"id": 110, "type": "identifier", "text": "oif", "parent": 109, "children": [], "start_point": {"row": 33, "column": 5}, "end_point": {"row": 33, "column": 8}}, {"id": 111, "type": "!=", "text": "!=", "parent": 109, "children": [], "start_point": {"row": 33, "column": 9}, "end_point": {"row": 33, "column": 11}}, {"id": 112, "type": "number_literal", "text": "-1", "parent": 109, "children": [], "start_point": {"row": 33, "column": 12}, "end_point": {"row": 33, "column": 14}}, {"id": 113, "type": "assignment_expression", "text": "fl4.flowi4_oif = oif", "parent": 107, "children": [114, 117, 118], "start_point": {"row": 34, "column": 2}, "end_point": {"row": 34, "column": 22}}, {"id": 114, "type": "field_expression", "text": "fl4.flowi4_oif", "parent": 113, "children": [115, 116], "start_point": {"row": 34, "column": 2}, "end_point": {"row": 34, "column": 16}}, {"id": 115, "type": "identifier", "text": "fl4", "parent": 114, "children": [], "start_point": {"row": 34, "column": 2}, "end_point": {"row": 34, "column": 5}}, {"id": 116, "type": "field_identifier", "text": "flowi4_oif", "parent": 114, "children": [], "start_point": {"row": 34, "column": 6}, "end_point": {"row": 34, "column": 16}}, {"id": 117, "type": "=", "text": "=", "parent": 113, "children": [], "start_point": {"row": 34, "column": 17}, "end_point": {"row": 34, "column": 18}}, {"id": 118, "type": "identifier", "text": "oif", "parent": 113, "children": [], "start_point": {"row": 34, "column": 19}, "end_point": {"row": 34, "column": 22}}, {"id": 119, "type": "assignment_expression", "text": "fl4.daddr = gw->s_addr", "parent": 44, "children": [120, 123, 124], "start_point": {"row": 36, "column": 1}, "end_point": {"row": 36, "column": 23}}, {"id": 120, "type": "field_expression", "text": "fl4.daddr", "parent": 119, "children": [121, 122], "start_point": {"row": 36, "column": 1}, "end_point": {"row": 36, "column": 10}}, {"id": 121, "type": "identifier", "text": "fl4", "parent": 120, "children": [], "start_point": {"row": 36, "column": 1}, "end_point": {"row": 36, "column": 4}}, {"id": 122, "type": "field_identifier", "text": "daddr", "parent": 120, "children": [], "start_point": {"row": 36, "column": 5}, "end_point": {"row": 36, "column": 10}}, {"id": 123, "type": "=", "text": "=", "parent": 119, "children": [], "start_point": {"row": 36, "column": 11}, "end_point": {"row": 36, "column": 12}}, {"id": 124, "type": "field_expression", "text": "gw->s_addr", "parent": 119, "children": [125, 126], "start_point": {"row": 36, "column": 13}, "end_point": {"row": 36, "column": 23}}, {"id": 125, "type": "identifier", "text": "gw", "parent": 124, "children": [], "start_point": {"row": 36, "column": 13}, "end_point": {"row": 36, "column": 15}}, {"id": 126, "type": "field_identifier", "text": "s_addr", "parent": 124, "children": [], "start_point": {"row": 36, "column": 17}, "end_point": {"row": 36, "column": 23}}, {"id": 127, "type": "assignment_expression", "text": "fl4.flowi4_tos = RT_TOS(iph->tos)", "parent": 44, "children": [128, 131, 132], "start_point": {"row": 37, "column": 1}, "end_point": {"row": 37, "column": 34}}, {"id": 128, "type": "field_expression", "text": "fl4.flowi4_tos", "parent": 127, "children": [129, 130], "start_point": {"row": 37, "column": 1}, "end_point": {"row": 37, "column": 15}}, {"id": 129, "type": "identifier", "text": "fl4", "parent": 128, "children": [], "start_point": {"row": 37, "column": 1}, "end_point": {"row": 37, "column": 4}}, {"id": 130, "type": "field_identifier", "text": "flowi4_tos", "parent": 128, "children": [], "start_point": {"row": 37, "column": 5}, "end_point": {"row": 37, "column": 15}}, {"id": 131, "type": "=", "text": "=", "parent": 127, "children": [], "start_point": {"row": 37, "column": 16}, "end_point": {"row": 37, "column": 17}}, {"id": 132, "type": "call_expression", "text": "RT_TOS(iph->tos)", "parent": 127, "children": [133, 134], "start_point": {"row": 37, "column": 18}, "end_point": {"row": 37, "column": 34}}, {"id": 133, "type": "identifier", "text": "RT_TOS", "parent": 132, "children": [], "start_point": {"row": 37, "column": 18}, "end_point": {"row": 37, "column": 24}}, {"id": 134, "type": "argument_list", "text": "(iph->tos)", "parent": 132, "children": [135], "start_point": {"row": 37, "column": 24}, "end_point": {"row": 37, "column": 34}}, {"id": 135, "type": "field_expression", "text": "iph->tos", "parent": 134, "children": [136, 137], "start_point": {"row": 37, "column": 25}, "end_point": {"row": 37, "column": 33}}, {"id": 136, "type": "identifier", "text": "iph", "parent": 135, "children": [], "start_point": {"row": 37, "column": 25}, "end_point": {"row": 37, "column": 28}}, {"id": 137, "type": "field_identifier", "text": "tos", "parent": 135, "children": [], "start_point": {"row": 37, "column": 30}, "end_point": {"row": 37, "column": 33}}, {"id": 138, "type": "assignment_expression", "text": "fl4.flowi4_scope = RT_SCOPE_UNIVERSE", "parent": 44, "children": [139, 142, 143], "start_point": {"row": 38, "column": 1}, "end_point": {"row": 38, "column": 37}}, {"id": 139, "type": "field_expression", "text": "fl4.flowi4_scope", "parent": 138, "children": [140, 141], "start_point": {"row": 38, "column": 1}, "end_point": {"row": 38, "column": 17}}, {"id": 140, "type": "identifier", "text": "fl4", "parent": 139, "children": [], "start_point": {"row": 38, "column": 1}, "end_point": {"row": 38, "column": 4}}, {"id": 141, "type": "field_identifier", "text": "flowi4_scope", "parent": 139, "children": [], "start_point": {"row": 38, "column": 5}, "end_point": {"row": 38, "column": 17}}, {"id": 142, "type": "=", "text": "=", "parent": 138, "children": [], "start_point": {"row": 38, "column": 18}, "end_point": {"row": 38, "column": 19}}, {"id": 143, "type": "identifier", "text": "RT_SCOPE_UNIVERSE", "parent": 138, "children": [], "start_point": {"row": 38, "column": 20}, "end_point": {"row": 38, "column": 37}}, {"id": 144, "type": "assignment_expression", "text": "fl4.flowi4_flags = FLOWI_FLAG_KNOWN_NH", "parent": 44, "children": [145, 148, 149], "start_point": {"row": 39, "column": 1}, "end_point": {"row": 39, "column": 39}}, {"id": 145, "type": "field_expression", "text": "fl4.flowi4_flags", "parent": 144, "children": [146, 147], "start_point": {"row": 39, "column": 1}, "end_point": {"row": 39, "column": 17}}, {"id": 146, "type": "identifier", "text": "fl4", "parent": 145, "children": [], "start_point": {"row": 39, "column": 1}, "end_point": {"row": 39, "column": 4}}, {"id": 147, "type": "field_identifier", "text": "flowi4_flags", "parent": 145, "children": [], "start_point": {"row": 39, "column": 5}, "end_point": {"row": 39, "column": 17}}, {"id": 148, "type": "=", "text": "=", "parent": 144, "children": [], "start_point": {"row": 39, "column": 18}, "end_point": {"row": 39, "column": 19}}, {"id": 149, "type": "identifier", "text": "FLOWI_FLAG_KNOWN_NH", "parent": 144, "children": [], "start_point": {"row": 39, "column": 20}, "end_point": {"row": 39, "column": 39}}, {"id": 150, "type": "assignment_expression", "text": "rt = ip_route_output_key(net, &fl4)", "parent": 44, "children": [151, 152, 153], "start_point": {"row": 40, "column": 1}, "end_point": {"row": 40, "column": 36}}, {"id": 151, "type": "identifier", "text": "rt", "parent": 150, "children": [], "start_point": {"row": 40, "column": 1}, "end_point": {"row": 40, "column": 3}}, {"id": 152, "type": "=", "text": "=", "parent": 150, "children": [], "start_point": {"row": 40, "column": 4}, "end_point": {"row": 40, "column": 5}}, {"id": 153, "type": "call_expression", "text": "ip_route_output_key(net, &fl4)", "parent": 150, "children": [154, 155], "start_point": {"row": 40, "column": 6}, "end_point": {"row": 40, "column": 36}}, {"id": 154, "type": "identifier", "text": "ip_route_output_key", "parent": 153, "children": [], "start_point": {"row": 40, "column": 6}, "end_point": {"row": 40, "column": 25}}, {"id": 155, "type": "argument_list", "text": "(net, &fl4)", "parent": 153, "children": [156, 157], "start_point": {"row": 40, "column": 25}, "end_point": {"row": 40, "column": 36}}, {"id": 156, "type": "identifier", "text": "net", "parent": 155, "children": [], "start_point": {"row": 40, "column": 26}, "end_point": {"row": 40, "column": 29}}, {"id": 157, "type": "pointer_expression", "text": "&fl4", "parent": 155, "children": [158], "start_point": {"row": 40, "column": 31}, "end_point": {"row": 40, "column": 35}}, {"id": 158, "type": "identifier", "text": "fl4", "parent": 157, "children": [], "start_point": {"row": 40, "column": 32}, "end_point": {"row": 40, "column": 35}}, {"id": 159, "type": "if_statement", "text": "if (IS_ERR(rt))\n\t\treturn false;", "parent": 44, "children": [160, 165], "start_point": {"row": 41, "column": 1}, "end_point": {"row": 42, "column": 15}}, {"id": 160, "type": "parenthesized_expression", "text": "(IS_ERR(rt))", "parent": 159, "children": [161], "start_point": {"row": 41, "column": 4}, "end_point": {"row": 41, "column": 16}}, {"id": 161, "type": "call_expression", "text": "IS_ERR(rt)", "parent": 160, "children": [162, 163], "start_point": {"row": 41, "column": 5}, "end_point": {"row": 41, "column": 15}}, {"id": 162, "type": "identifier", "text": "IS_ERR", "parent": 161, "children": [], "start_point": {"row": 41, "column": 5}, "end_point": {"row": 41, "column": 11}}, {"id": 163, "type": "argument_list", "text": "(rt)", "parent": 161, "children": [164], "start_point": {"row": 41, "column": 11}, "end_point": {"row": 41, "column": 15}}, {"id": 164, "type": "identifier", "text": "rt", "parent": 163, "children": [], "start_point": {"row": 41, "column": 12}, "end_point": {"row": 41, "column": 14}}, {"id": 165, "type": "return_statement", "text": "return false;", "parent": 159, "children": [166], "start_point": {"row": 42, "column": 2}, "end_point": {"row": 42, "column": 15}}, {"id": 166, "type": "false", "text": "false", "parent": 165, "children": [], "start_point": {"row": 42, "column": 9}, "end_point": {"row": 42, "column": 14}}, {"id": 167, "type": "call_expression", "text": "skb_dst_drop(skb)", "parent": 44, "children": [168, 169], "start_point": {"row": 44, "column": 1}, "end_point": {"row": 44, "column": 18}}, {"id": 168, "type": "identifier", "text": "skb_dst_drop", "parent": 167, "children": [], "start_point": {"row": 44, "column": 1}, "end_point": {"row": 44, "column": 13}}, {"id": 169, "type": "argument_list", "text": "(skb)", "parent": 167, "children": [170], "start_point": {"row": 44, "column": 13}, "end_point": {"row": 44, "column": 18}}, {"id": 170, "type": "identifier", "text": "skb", "parent": 169, "children": [], "start_point": {"row": 44, "column": 14}, "end_point": {"row": 44, "column": 17}}, {"id": 171, "type": "call_expression", "text": "skb_dst_set(skb, &rt->dst)", "parent": 44, "children": [172, 173], "start_point": {"row": 45, "column": 1}, "end_point": {"row": 45, "column": 27}}, {"id": 172, "type": "identifier", "text": "skb_dst_set", "parent": 171, "children": [], "start_point": {"row": 45, "column": 1}, "end_point": {"row": 45, "column": 12}}, {"id": 173, "type": "argument_list", "text": "(skb, &rt->dst)", "parent": 171, "children": [174, 175], "start_point": {"row": 45, "column": 12}, "end_point": {"row": 45, "column": 27}}, {"id": 174, "type": "identifier", "text": "skb", "parent": 173, "children": [], "start_point": {"row": 45, "column": 13}, "end_point": {"row": 45, "column": 16}}, {"id": 175, "type": "pointer_expression", "text": "&rt->dst", "parent": 173, "children": [176], "start_point": {"row": 45, "column": 18}, "end_point": {"row": 45, "column": 26}}, {"id": 176, "type": "field_expression", "text": "rt->dst", "parent": 175, "children": [177, 178], "start_point": {"row": 45, "column": 19}, "end_point": {"row": 45, "column": 26}}, {"id": 177, "type": "identifier", "text": "rt", "parent": 176, "children": [], "start_point": {"row": 45, "column": 19}, "end_point": {"row": 45, "column": 21}}, {"id": 178, "type": "field_identifier", "text": "dst", "parent": 176, "children": [], "start_point": {"row": 45, "column": 23}, "end_point": {"row": 45, "column": 26}}, {"id": 179, "type": "assignment_expression", "text": "skb->dev = rt->dst.dev", "parent": 44, "children": [180, 183, 184], "start_point": {"row": 46, "column": 1}, "end_point": {"row": 46, "column": 28}}, {"id": 180, "type": "field_expression", "text": "skb->dev", "parent": 179, "children": [181, 182], "start_point": {"row": 46, "column": 1}, "end_point": {"row": 46, "column": 9}}, {"id": 181, "type": "identifier", "text": "skb", "parent": 180, "children": [], "start_point": {"row": 46, "column": 1}, "end_point": {"row": 46, "column": 4}}, {"id": 182, "type": "field_identifier", "text": "dev", "parent": 180, "children": [], "start_point": {"row": 46, "column": 6}, "end_point": {"row": 46, "column": 9}}, {"id": 183, "type": "=", "text": "=", "parent": 179, "children": [], "start_point": {"row": 46, "column": 15}, "end_point": {"row": 46, "column": 16}}, {"id": 184, "type": "field_expression", "text": "rt->dst.dev", "parent": 179, "children": [185, 188], "start_point": {"row": 46, "column": 17}, "end_point": {"row": 46, "column": 28}}, {"id": 185, "type": "field_expression", "text": "rt->dst", "parent": 184, "children": [186, 187], "start_point": {"row": 46, "column": 17}, "end_point": {"row": 46, "column": 24}}, {"id": 186, "type": "identifier", "text": "rt", "parent": 185, "children": [], "start_point": {"row": 46, "column": 17}, "end_point": {"row": 46, "column": 19}}, {"id": 187, "type": "field_identifier", "text": "dst", "parent": 185, "children": [], "start_point": {"row": 46, "column": 21}, "end_point": {"row": 46, "column": 24}}, {"id": 188, "type": "field_identifier", "text": "dev", "parent": 184, "children": [], "start_point": {"row": 46, "column": 25}, "end_point": {"row": 46, "column": 28}}, {"id": 189, "type": "assignment_expression", "text": "skb->protocol = htons(ETH_P_IP)", "parent": 44, "children": [190, 193, 194], "start_point": {"row": 47, "column": 1}, "end_point": {"row": 47, "column": 32}}, {"id": 190, "type": "field_expression", "text": "skb->protocol", "parent": 189, "children": [191, 192], "start_point": {"row": 47, "column": 1}, "end_point": {"row": 47, "column": 14}}, {"id": 191, "type": "identifier", "text": "skb", "parent": 190, "children": [], "start_point": {"row": 47, "column": 1}, "end_point": {"row": 47, "column": 4}}, {"id": 192, "type": "field_identifier", "text": "protocol", "parent": 190, "children": [], "start_point": {"row": 47, "column": 6}, "end_point": {"row": 47, "column": 14}}, {"id": 193, "type": "=", "text": "=", "parent": 189, "children": [], "start_point": {"row": 47, "column": 15}, "end_point": {"row": 47, "column": 16}}, {"id": 194, "type": "call_expression", "text": "htons(ETH_P_IP)", "parent": 189, "children": [195, 196], "start_point": {"row": 47, "column": 17}, "end_point": {"row": 47, "column": 32}}, {"id": 195, "type": "identifier", "text": "htons", "parent": 194, "children": [], "start_point": {"row": 47, "column": 17}, "end_point": {"row": 47, "column": 22}}, {"id": 196, "type": "argument_list", "text": "(ETH_P_IP)", "parent": 194, "children": [197], "start_point": {"row": 47, "column": 22}, "end_point": {"row": 47, "column": 32}}, {"id": 197, "type": "identifier", "text": "ETH_P_IP", "parent": 196, "children": [], "start_point": {"row": 47, "column": 23}, "end_point": {"row": 47, "column": 31}}, {"id": 198, "type": "return_statement", "text": "return true;", "parent": 44, "children": [199], "start_point": {"row": 49, "column": 1}, "end_point": {"row": 49, "column": 13}}, {"id": 199, "type": "true", "text": "true", "parent": 198, "children": [], "start_point": {"row": 49, "column": 8}, "end_point": {"row": 49, "column": 12}}, {"id": 200, "type": "function_definition", "text": "void nf_dup_ipv4(struct net *net, struct sk_buff *skb, unsigned int hooknum,\n\t\t const struct in_addr *gw, int oif)\n{\n\tstruct iphdr *iph;\n\n\tif (this_cpu_read(nf_skb_duplicated))\n\t\treturn;\n\t/*\n\t * Copy the skb, and route the copy. Will later return %XT_CONTINUE for\n\t * the original skb, which should continue on its way as if nothing has\n\t * happened. The copy should be independently delivered to the gateway.\n\t */\n\tskb = pskb_copy(skb, GFP_ATOMIC);\n\tif (skb == NULL)\n\t\treturn;\n\n#if IS_ENABLED(CONFIG_NF_CONNTRACK)\n\t/* Avoid counting cloned packets towards the original connection. */\n\tnf_conntrack_put(skb->nfct);\n\tskb->nfct = &nf_ct_untracked_get()->ct_general;\n\tskb->nfctinfo = IP_CT_NEW;\n\tnf_conntrack_get(skb->nfct);\n#endif\n\t/*\n\t * If we are in PREROUTING/INPUT, decrease the TTL to mitigate potential\n\t * loops between two hosts.\n\t *\n\t * Set %IP_DF so that the original source is notified of a potentially\n\t * decreased MTU on the clone route. IPv6 does this too.\n\t *\n\t * IP header checksum will be recalculated at ip_local_out.\n\t */\n\tiph = ip_hdr(skb);\n\tiph->frag_off |= htons(IP_DF);\n\tif (hooknum == NF_INET_PRE_ROUTING ||\n\t hooknum == NF_INET_LOCAL_IN)\n\t\t--iph->ttl;\n\n\tif (nf_dup_ipv4_route(net, skb, gw, oif)) {\n\t\t__this_cpu_write(nf_skb_duplicated, true);\n\t\tip_local_out(net, skb->sk, skb);\n\t\t__this_cpu_write(nf_skb_duplicated, false);\n\t} else {\n\t\tkfree_skb(skb);\n\t}\n}", "parent": null, "children": [201, 202], "start_point": {"row": 52, "column": 0}, "end_point": {"row": 97, "column": 1}}, {"id": 201, "type": "primitive_type", "text": "void", "parent": 200, "children": [], "start_point": {"row": 52, "column": 0}, "end_point": {"row": 52, "column": 4}}, {"id": 202, "type": "function_declarator", "text": "nf_dup_ipv4(struct net *net, struct sk_buff *skb, unsigned int hooknum,\n\t\t const struct in_addr *gw, int oif)", "parent": 200, "children": [203, 204], "start_point": {"row": 52, "column": 5}, "end_point": {"row": 53, "column": 37}}, {"id": 203, "type": "identifier", "text": "nf_dup_ipv4", "parent": 202, "children": [], "start_point": {"row": 52, "column": 5}, "end_point": {"row": 52, "column": 16}}, {"id": 204, "type": "parameter_list", "text": "(struct net *net, struct sk_buff *skb, unsigned int hooknum,\n\t\t const struct in_addr *gw, int oif)", "parent": 202, "children": [205, 212, 219, 224, 231], "start_point": {"row": 52, "column": 16}, "end_point": {"row": 53, "column": 37}}, {"id": 205, "type": "parameter_declaration", "text": "struct net *net", "parent": 204, "children": [206, 209], "start_point": {"row": 52, "column": 17}, "end_point": {"row": 52, "column": 32}}, {"id": 206, "type": "struct_specifier", "text": "struct net", "parent": 205, "children": [207, 208], "start_point": {"row": 52, "column": 17}, "end_point": {"row": 52, "column": 27}}, {"id": 207, "type": "struct", "text": "struct", "parent": 206, "children": [], "start_point": {"row": 52, "column": 17}, "end_point": {"row": 52, "column": 23}}, {"id": 208, "type": "type_identifier", "text": "net", "parent": 206, "children": [], "start_point": {"row": 52, "column": 24}, "end_point": {"row": 52, "column": 27}}, {"id": 209, "type": "pointer_declarator", "text": "*net", "parent": 205, "children": [210, 211], "start_point": {"row": 52, "column": 28}, "end_point": {"row": 52, "column": 32}}, {"id": 210, "type": "*", "text": "*", "parent": 209, "children": [], "start_point": {"row": 52, "column": 28}, "end_point": {"row": 52, "column": 29}}, {"id": 211, "type": "identifier", "text": "net", "parent": 209, "children": [], "start_point": {"row": 52, "column": 29}, "end_point": {"row": 52, "column": 32}}, {"id": 212, "type": "parameter_declaration", "text": "struct sk_buff *skb", "parent": 204, "children": [213, 216], "start_point": {"row": 52, "column": 34}, "end_point": {"row": 52, "column": 53}}, {"id": 213, "type": "struct_specifier", "text": "struct sk_buff", "parent": 212, "children": [214, 215], "start_point": {"row": 52, "column": 34}, "end_point": {"row": 52, "column": 48}}, {"id": 214, "type": "struct", "text": "struct", "parent": 213, "children": [], "start_point": {"row": 52, "column": 34}, "end_point": {"row": 52, "column": 40}}, {"id": 215, "type": "type_identifier", "text": "sk_buff", "parent": 213, "children": [], "start_point": {"row": 52, "column": 41}, "end_point": {"row": 52, "column": 48}}, {"id": 216, "type": "pointer_declarator", "text": "*skb", "parent": 212, "children": [217, 218], "start_point": {"row": 52, "column": 49}, "end_point": {"row": 52, "column": 53}}, {"id": 217, "type": "*", "text": "*", "parent": 216, "children": [], "start_point": {"row": 52, "column": 49}, "end_point": {"row": 52, "column": 50}}, {"id": 218, "type": "identifier", "text": "skb", "parent": 216, "children": [], "start_point": {"row": 52, "column": 50}, "end_point": {"row": 52, "column": 53}}, {"id": 219, "type": "parameter_declaration", "text": "unsigned int hooknum", "parent": 204, "children": [220, 223], "start_point": {"row": 52, "column": 55}, "end_point": {"row": 52, "column": 75}}, {"id": 220, "type": "sized_type_specifier", "text": "unsigned int", "parent": 219, "children": [221, 222], "start_point": {"row": 52, "column": 55}, "end_point": {"row": 52, "column": 67}}, {"id": 221, "type": "unsigned", "text": "unsigned", "parent": 220, "children": [], "start_point": {"row": 52, "column": 55}, "end_point": {"row": 52, "column": 63}}, {"id": 222, "type": "primitive_type", "text": "int", "parent": 220, "children": [], "start_point": {"row": 52, "column": 64}, "end_point": {"row": 52, "column": 67}}, {"id": 223, "type": "identifier", "text": "hooknum", "parent": 219, "children": [], "start_point": {"row": 52, "column": 68}, "end_point": {"row": 52, "column": 75}}, {"id": 224, "type": "parameter_declaration", "text": "const struct in_addr *gw", "parent": 204, "children": [225, 228], "start_point": {"row": 53, "column": 3}, "end_point": {"row": 53, "column": 27}}, {"id": 225, "type": "struct_specifier", "text": "struct in_addr", "parent": 224, "children": [226, 227], "start_point": {"row": 53, "column": 9}, "end_point": {"row": 53, "column": 23}}, {"id": 226, "type": "struct", "text": "struct", "parent": 225, "children": [], "start_point": {"row": 53, "column": 9}, "end_point": {"row": 53, "column": 15}}, {"id": 227, "type": "type_identifier", "text": "in_addr", "parent": 225, "children": [], "start_point": {"row": 53, "column": 16}, "end_point": {"row": 53, "column": 23}}, {"id": 228, "type": "pointer_declarator", "text": "*gw", "parent": 224, "children": [229, 230], "start_point": {"row": 53, "column": 24}, "end_point": {"row": 53, "column": 27}}, {"id": 229, "type": "*", "text": "*", "parent": 228, "children": [], "start_point": {"row": 53, "column": 24}, "end_point": {"row": 53, "column": 25}}, {"id": 230, "type": "identifier", "text": "gw", "parent": 228, "children": [], "start_point": {"row": 53, "column": 25}, "end_point": {"row": 53, "column": 27}}, {"id": 231, "type": "parameter_declaration", "text": "int oif", "parent": 204, "children": [232, 233], "start_point": {"row": 53, "column": 29}, "end_point": {"row": 53, "column": 36}}, {"id": 232, "type": "primitive_type", "text": "int", "parent": 231, "children": [], "start_point": {"row": 53, "column": 29}, "end_point": {"row": 53, "column": 32}}, {"id": 233, "type": "identifier", "text": "oif", "parent": 231, "children": [], "start_point": {"row": 53, "column": 33}, "end_point": {"row": 53, "column": 36}}, {"id": 234, "type": "declaration", "text": "struct iphdr *iph;", "parent": 200, "children": [235, 238], "start_point": {"row": 55, "column": 1}, "end_point": {"row": 55, "column": 19}}, {"id": 235, "type": "struct_specifier", "text": "struct iphdr", "parent": 234, "children": [236, 237], "start_point": {"row": 55, "column": 1}, "end_point": {"row": 55, "column": 13}}, {"id": 236, "type": "struct", "text": "struct", "parent": 235, "children": [], "start_point": {"row": 55, "column": 1}, "end_point": {"row": 55, "column": 7}}, {"id": 237, "type": "type_identifier", "text": "iphdr", "parent": 235, "children": [], "start_point": {"row": 55, "column": 8}, "end_point": {"row": 55, "column": 13}}, {"id": 238, "type": "pointer_declarator", "text": "*iph", "parent": 234, "children": [239, 240], "start_point": {"row": 55, "column": 14}, "end_point": {"row": 55, "column": 18}}, {"id": 239, "type": "*", "text": "*", "parent": 238, "children": [], "start_point": {"row": 55, "column": 14}, "end_point": {"row": 55, "column": 15}}, {"id": 240, "type": "identifier", "text": "iph", "parent": 238, "children": [], "start_point": {"row": 55, "column": 15}, "end_point": {"row": 55, "column": 18}}, {"id": 241, "type": "if_statement", "text": "if (this_cpu_read(nf_skb_duplicated))\n\t\treturn;", "parent": 200, "children": [242, 247], "start_point": {"row": 57, "column": 1}, "end_point": {"row": 58, "column": 9}}, {"id": 242, "type": "parenthesized_expression", "text": "(this_cpu_read(nf_skb_duplicated))", "parent": 241, "children": [243], "start_point": {"row": 57, "column": 4}, "end_point": {"row": 57, "column": 38}}, {"id": 243, "type": "call_expression", "text": "this_cpu_read(nf_skb_duplicated)", "parent": 242, "children": [244, 245], "start_point": {"row": 57, "column": 5}, "end_point": {"row": 57, "column": 37}}, {"id": 244, "type": "identifier", "text": "this_cpu_read", "parent": 243, "children": [], "start_point": {"row": 57, "column": 5}, "end_point": {"row": 57, "column": 18}}, {"id": 245, "type": "argument_list", "text": "(nf_skb_duplicated)", "parent": 243, "children": [246], "start_point": {"row": 57, "column": 18}, "end_point": {"row": 57, "column": 37}}, {"id": 246, "type": "identifier", "text": "nf_skb_duplicated", "parent": 245, "children": [], "start_point": {"row": 57, "column": 19}, "end_point": {"row": 57, "column": 36}}, {"id": 247, "type": "return_statement", "text": "return;", "parent": 241, "children": [], "start_point": {"row": 58, "column": 2}, "end_point": {"row": 58, "column": 9}}, {"id": 248, "type": "assignment_expression", "text": "skb = pskb_copy(skb, GFP_ATOMIC)", "parent": 200, "children": [249, 250, 251], "start_point": {"row": 64, "column": 1}, "end_point": {"row": 64, "column": 33}}, {"id": 249, "type": "identifier", "text": "skb", "parent": 248, "children": [], "start_point": {"row": 64, "column": 1}, "end_point": {"row": 64, "column": 4}}, {"id": 250, "type": "=", "text": "=", "parent": 248, "children": [], "start_point": {"row": 64, "column": 5}, "end_point": {"row": 64, "column": 6}}, {"id": 251, "type": "call_expression", "text": "pskb_copy(skb, GFP_ATOMIC)", "parent": 248, "children": [252, 253], "start_point": {"row": 64, "column": 7}, "end_point": {"row": 64, "column": 33}}, {"id": 252, "type": "identifier", "text": "pskb_copy", "parent": 251, "children": [], "start_point": {"row": 64, "column": 7}, "end_point": {"row": 64, "column": 16}}, {"id": 253, "type": "argument_list", "text": "(skb, GFP_ATOMIC)", "parent": 251, "children": [254, 255], "start_point": {"row": 64, "column": 16}, "end_point": {"row": 64, "column": 33}}, {"id": 254, "type": "identifier", "text": "skb", "parent": 253, "children": [], "start_point": {"row": 64, "column": 17}, "end_point": {"row": 64, "column": 20}}, {"id": 255, "type": "identifier", "text": "GFP_ATOMIC", "parent": 253, "children": [], "start_point": {"row": 64, "column": 22}, "end_point": {"row": 64, "column": 32}}, {"id": 256, "type": "if_statement", "text": "if (skb == NULL)\n\t\treturn;", "parent": 200, "children": [257, 263], "start_point": {"row": 65, "column": 1}, "end_point": {"row": 66, "column": 9}}, {"id": 257, "type": "parenthesized_expression", "text": "(skb == NULL)", "parent": 256, "children": [258], "start_point": {"row": 65, "column": 4}, "end_point": {"row": 65, "column": 17}}, {"id": 258, "type": "binary_expression", "text": "skb == NULL", "parent": 257, "children": [259, 260, 261], "start_point": {"row": 65, "column": 5}, "end_point": {"row": 65, "column": 16}}, {"id": 259, "type": "identifier", "text": "skb", "parent": 258, "children": [], "start_point": {"row": 65, "column": 5}, "end_point": {"row": 65, "column": 8}}, {"id": 260, "type": "==", "text": "==", "parent": 258, "children": [], "start_point": {"row": 65, "column": 9}, "end_point": {"row": 65, "column": 11}}, {"id": 261, "type": "null", "text": "NULL", "parent": 258, "children": [262], "start_point": {"row": 65, "column": 12}, "end_point": {"row": 65, "column": 16}}, {"id": 262, "type": "NULL", "text": "NULL", "parent": 261, "children": [], "start_point": {"row": 65, "column": 12}, "end_point": {"row": 65, "column": 16}}, {"id": 263, "type": "return_statement", "text": "return;", "parent": 256, "children": [], "start_point": {"row": 66, "column": 2}, "end_point": {"row": 66, "column": 9}}, {"id": 264, "type": "preproc_if", "text": "#if IS_ENABLED(CONFIG_NF_CONNTRACK)\n\t/* Avoid counting cloned packets towards the original connection. */\n\tnf_conntrack_put(skb->nfct);\n\tskb->nfct = &nf_ct_untracked_get()->ct_general;\n\tskb->nfctinfo = IP_CT_NEW;\n\tnf_conntrack_get(skb->nfct);\n#endif", "parent": 200, "children": [265, 266, 270, 300], "start_point": {"row": 68, "column": 0}, "end_point": {"row": 74, "column": 6}}, {"id": 265, "type": "#if", "text": "#if", "parent": 264, "children": [], "start_point": {"row": 68, "column": 0}, "end_point": {"row": 68, "column": 3}}, {"id": 266, "type": "call_expression", "text": "IS_ENABLED(CONFIG_NF_CONNTRACK)", "parent": 264, "children": [267, 268], "start_point": {"row": 68, "column": 4}, "end_point": {"row": 68, "column": 35}}, {"id": 267, "type": "identifier", "text": "IS_ENABLED", "parent": 266, "children": [], "start_point": {"row": 68, "column": 4}, "end_point": {"row": 68, "column": 14}}, {"id": 268, "type": "argument_list", "text": "(CONFIG_NF_CONNTRACK)", "parent": 266, "children": [269], "start_point": {"row": 68, "column": 14}, "end_point": {"row": 68, "column": 35}}, {"id": 269, "type": "identifier", "text": "CONFIG_NF_CONNTRACK", "parent": 268, "children": [], "start_point": {"row": 68, "column": 15}, "end_point": {"row": 68, "column": 34}}, {"id": 270, "type": "\n", "text": "\n", "parent": 264, "children": [], "start_point": {"row": 68, "column": 35}, "end_point": {"row": 69, "column": 0}}, {"id": 271, "type": "call_expression", "text": "nf_conntrack_put(skb->nfct)", "parent": 264, "children": [272, 273], "start_point": {"row": 70, "column": 1}, "end_point": {"row": 70, "column": 28}}, {"id": 272, "type": "identifier", "text": "nf_conntrack_put", "parent": 271, "children": [], "start_point": {"row": 70, "column": 1}, "end_point": {"row": 70, "column": 17}}, {"id": 273, "type": "argument_list", "text": "(skb->nfct)", "parent": 271, "children": [274], "start_point": {"row": 70, "column": 17}, "end_point": {"row": 70, "column": 28}}, {"id": 274, "type": "field_expression", "text": "skb->nfct", "parent": 273, "children": [275, 276], "start_point": {"row": 70, "column": 18}, "end_point": {"row": 70, "column": 27}}, {"id": 275, "type": "identifier", "text": "skb", "parent": 274, "children": [], "start_point": {"row": 70, "column": 18}, "end_point": {"row": 70, "column": 21}}, {"id": 276, "type": "field_identifier", "text": "nfct", "parent": 274, "children": [], "start_point": {"row": 70, "column": 23}, "end_point": {"row": 70, "column": 27}}, {"id": 277, "type": "assignment_expression", "text": "skb->nfct = &nf_ct_untracked_get()->ct_general", "parent": 264, "children": [278, 281, 282], "start_point": {"row": 71, "column": 1}, "end_point": {"row": 71, "column": 51}}, {"id": 278, "type": "field_expression", "text": "skb->nfct", "parent": 277, "children": [279, 280], "start_point": {"row": 71, "column": 1}, "end_point": {"row": 71, "column": 10}}, {"id": 279, "type": "identifier", "text": "skb", "parent": 278, "children": [], "start_point": {"row": 71, "column": 1}, "end_point": {"row": 71, "column": 4}}, {"id": 280, "type": "field_identifier", "text": "nfct", "parent": 278, "children": [], "start_point": {"row": 71, "column": 6}, "end_point": {"row": 71, "column": 10}}, {"id": 281, "type": "=", "text": "=", "parent": 277, "children": [], "start_point": {"row": 71, "column": 15}, "end_point": {"row": 71, "column": 16}}, {"id": 282, "type": "pointer_expression", "text": "&nf_ct_untracked_get()->ct_general", "parent": 277, "children": [283], "start_point": {"row": 71, "column": 17}, "end_point": {"row": 71, "column": 51}}, {"id": 283, "type": "field_expression", "text": "nf_ct_untracked_get()->ct_general", "parent": 282, "children": [284, 287], "start_point": {"row": 71, "column": 18}, "end_point": {"row": 71, "column": 51}}, {"id": 284, "type": "call_expression", "text": "nf_ct_untracked_get()", "parent": 283, "children": [285, 286], "start_point": {"row": 71, "column": 18}, "end_point": {"row": 71, "column": 39}}, {"id": 285, "type": "identifier", "text": "nf_ct_untracked_get", "parent": 284, "children": [], "start_point": {"row": 71, "column": 18}, "end_point": {"row": 71, "column": 37}}, {"id": 286, "type": "argument_list", "text": "()", "parent": 284, "children": [], "start_point": {"row": 71, "column": 37}, "end_point": {"row": 71, "column": 39}}, {"id": 287, "type": "field_identifier", "text": "ct_general", "parent": 283, "children": [], "start_point": {"row": 71, "column": 41}, "end_point": {"row": 71, "column": 51}}, {"id": 288, "type": "assignment_expression", "text": "skb->nfctinfo = IP_CT_NEW", "parent": 264, "children": [289, 292, 293], "start_point": {"row": 72, "column": 1}, "end_point": {"row": 72, "column": 26}}, {"id": 289, "type": "field_expression", "text": "skb->nfctinfo", "parent": 288, "children": [290, 291], "start_point": {"row": 72, "column": 1}, "end_point": {"row": 72, "column": 14}}, {"id": 290, "type": "identifier", "text": "skb", "parent": 289, "children": [], "start_point": {"row": 72, "column": 1}, "end_point": {"row": 72, "column": 4}}, {"id": 291, "type": "field_identifier", "text": "nfctinfo", "parent": 289, "children": [], "start_point": {"row": 72, "column": 6}, "end_point": {"row": 72, "column": 14}}, {"id": 292, "type": "=", "text": "=", "parent": 288, "children": [], "start_point": {"row": 72, "column": 15}, "end_point": {"row": 72, "column": 16}}, {"id": 293, "type": "identifier", "text": "IP_CT_NEW", "parent": 288, "children": [], "start_point": {"row": 72, "column": 17}, "end_point": {"row": 72, "column": 26}}, {"id": 294, "type": "call_expression", "text": "nf_conntrack_get(skb->nfct)", "parent": 264, "children": [295, 296], "start_point": {"row": 73, "column": 1}, "end_point": {"row": 73, "column": 28}}, {"id": 295, "type": "identifier", "text": "nf_conntrack_get", "parent": 294, "children": [], "start_point": {"row": 73, "column": 1}, "end_point": {"row": 73, "column": 17}}, {"id": 296, "type": "argument_list", "text": "(skb->nfct)", "parent": 294, "children": [297], "start_point": {"row": 73, "column": 17}, "end_point": {"row": 73, "column": 28}}, {"id": 297, "type": "field_expression", "text": "skb->nfct", "parent": 296, "children": [298, 299], "start_point": {"row": 73, "column": 18}, "end_point": {"row": 73, "column": 27}}, {"id": 298, "type": "identifier", "text": "skb", "parent": 297, "children": [], "start_point": {"row": 73, "column": 18}, "end_point": {"row": 73, "column": 21}}, {"id": 299, "type": "field_identifier", "text": "nfct", "parent": 297, "children": [], "start_point": {"row": 73, "column": 23}, "end_point": {"row": 73, "column": 27}}, {"id": 300, "type": "#endif", "text": "#endif", "parent": 264, "children": [], "start_point": {"row": 74, "column": 0}, "end_point": {"row": 74, "column": 6}}, {"id": 301, "type": "assignment_expression", "text": "iph = ip_hdr(skb)", "parent": 200, "children": [302, 303, 304], "start_point": {"row": 84, "column": 1}, "end_point": {"row": 84, "column": 18}}, {"id": 302, "type": "identifier", "text": "iph", "parent": 301, "children": [], "start_point": {"row": 84, "column": 1}, "end_point": {"row": 84, "column": 4}}, {"id": 303, "type": "=", "text": "=", "parent": 301, "children": [], "start_point": {"row": 84, "column": 5}, "end_point": {"row": 84, "column": 6}}, {"id": 304, "type": "call_expression", "text": "ip_hdr(skb)", "parent": 301, "children": [305, 306], "start_point": {"row": 84, "column": 7}, "end_point": {"row": 84, "column": 18}}, {"id": 305, "type": "identifier", "text": "ip_hdr", "parent": 304, "children": [], "start_point": {"row": 84, "column": 7}, "end_point": {"row": 84, "column": 13}}, {"id": 306, "type": "argument_list", "text": "(skb)", "parent": 304, "children": [307], "start_point": {"row": 84, "column": 13}, "end_point": {"row": 84, "column": 18}}, {"id": 307, "type": "identifier", "text": "skb", "parent": 306, "children": [], "start_point": {"row": 84, "column": 14}, "end_point": {"row": 84, "column": 17}}, {"id": 308, "type": "assignment_expression", "text": "iph->frag_off |= htons(IP_DF)", "parent": 200, "children": [309, 312, 313], "start_point": {"row": 85, "column": 1}, "end_point": {"row": 85, "column": 30}}, {"id": 309, "type": "field_expression", "text": "iph->frag_off", "parent": 308, "children": [310, 311], "start_point": {"row": 85, "column": 1}, "end_point": {"row": 85, "column": 14}}, {"id": 310, "type": "identifier", "text": "iph", "parent": 309, "children": [], "start_point": {"row": 85, "column": 1}, "end_point": {"row": 85, "column": 4}}, {"id": 311, "type": "field_identifier", "text": "frag_off", "parent": 309, "children": [], "start_point": {"row": 85, "column": 6}, "end_point": {"row": 85, "column": 14}}, {"id": 312, "type": "|=", "text": "|=", "parent": 308, "children": [], "start_point": {"row": 85, "column": 15}, "end_point": {"row": 85, "column": 17}}, {"id": 313, "type": "call_expression", "text": "htons(IP_DF)", "parent": 308, "children": [314, 315], "start_point": {"row": 85, "column": 18}, "end_point": {"row": 85, "column": 30}}, {"id": 314, "type": "identifier", "text": "htons", "parent": 313, "children": [], "start_point": {"row": 85, "column": 18}, "end_point": {"row": 85, "column": 23}}, {"id": 315, "type": "argument_list", "text": "(IP_DF)", "parent": 313, "children": [316], "start_point": {"row": 85, "column": 23}, "end_point": {"row": 85, "column": 30}}, {"id": 316, "type": "identifier", "text": "IP_DF", "parent": 315, "children": [], "start_point": {"row": 85, "column": 24}, "end_point": {"row": 85, "column": 29}}, {"id": 317, "type": "if_statement", "text": "if (hooknum == NF_INET_PRE_ROUTING ||\n\t hooknum == NF_INET_LOCAL_IN)\n\t\t--iph->ttl;", "parent": 200, "children": [318], "start_point": {"row": 86, "column": 1}, "end_point": {"row": 88, "column": 13}}, {"id": 318, "type": "parenthesized_expression", "text": "(hooknum == NF_INET_PRE_ROUTING ||\n\t hooknum == NF_INET_LOCAL_IN)", "parent": 317, "children": [319], "start_point": {"row": 86, "column": 4}, "end_point": {"row": 87, "column": 33}}, {"id": 319, "type": "binary_expression", "text": "hooknum == NF_INET_PRE_ROUTING ||\n\t hooknum == NF_INET_LOCAL_IN", "parent": 318, "children": [320, 324, 325], "start_point": {"row": 86, "column": 5}, "end_point": {"row": 87, "column": 32}}, {"id": 320, "type": "binary_expression", "text": "hooknum == NF_INET_PRE_ROUTING", "parent": 319, "children": [321, 322, 323], "start_point": {"row": 86, "column": 5}, "end_point": {"row": 86, "column": 35}}, {"id": 321, "type": "identifier", "text": "hooknum", "parent": 320, "children": [], "start_point": {"row": 86, "column": 5}, "end_point": {"row": 86, "column": 12}}, {"id": 322, "type": "==", "text": "==", "parent": 320, "children": [], "start_point": {"row": 86, "column": 13}, "end_point": {"row": 86, "column": 15}}, {"id": 323, "type": "identifier", "text": "NF_INET_PRE_ROUTING", "parent": 320, "children": [], "start_point": {"row": 86, "column": 16}, "end_point": {"row": 86, "column": 35}}, {"id": 324, "type": "||", "text": "||", "parent": 319, "children": [], "start_point": {"row": 86, "column": 36}, "end_point": {"row": 86, "column": 38}}, {"id": 325, "type": "binary_expression", "text": "hooknum == NF_INET_LOCAL_IN", "parent": 319, "children": [326, 327, 328], "start_point": {"row": 87, "column": 5}, "end_point": {"row": 87, "column": 32}}, {"id": 326, "type": "identifier", "text": "hooknum", "parent": 325, "children": [], "start_point": {"row": 87, "column": 5}, "end_point": {"row": 87, "column": 12}}, {"id": 327, "type": "==", "text": "==", "parent": 325, "children": [], "start_point": {"row": 87, "column": 13}, "end_point": {"row": 87, "column": 15}}, {"id": 328, "type": "identifier", "text": "NF_INET_LOCAL_IN", "parent": 325, "children": [], "start_point": {"row": 87, "column": 16}, "end_point": {"row": 87, "column": 32}}, {"id": 329, "type": "update_expression", "text": "--iph->ttl", "parent": 317, "children": [330, 331], "start_point": {"row": 88, "column": 2}, "end_point": {"row": 88, "column": 12}}, {"id": 330, "type": "--", "text": "--", "parent": 329, "children": [], "start_point": {"row": 88, "column": 2}, "end_point": {"row": 88, "column": 4}}, {"id": 331, "type": "field_expression", "text": "iph->ttl", "parent": 329, "children": [332, 333], "start_point": {"row": 88, "column": 4}, "end_point": {"row": 88, "column": 12}}, {"id": 332, "type": "identifier", "text": "iph", "parent": 331, "children": [], "start_point": {"row": 88, "column": 4}, "end_point": {"row": 88, "column": 7}}, {"id": 333, "type": "field_identifier", "text": "ttl", "parent": 331, "children": [], "start_point": {"row": 88, "column": 9}, "end_point": {"row": 88, "column": 12}}, {"id": 334, "type": "if_statement", "text": "if (nf_dup_ipv4_route(net, skb, gw, oif)) {\n\t\t__this_cpu_write(nf_skb_duplicated, true);\n\t\tip_local_out(net, skb->sk, skb);\n\t\t__this_cpu_write(nf_skb_duplicated, false);\n\t} else {\n\t\tkfree_skb(skb);\n\t}", "parent": 200, "children": [335, 361], "start_point": {"row": 90, "column": 1}, "end_point": {"row": 96, "column": 2}}, {"id": 335, "type": "parenthesized_expression", "text": "(nf_dup_ipv4_route(net, skb, gw, oif))", "parent": 334, "children": [336], "start_point": {"row": 90, "column": 4}, "end_point": {"row": 90, "column": 42}}, {"id": 336, "type": "call_expression", "text": "nf_dup_ipv4_route(net, skb, gw, oif)", "parent": 335, "children": [337, 338], "start_point": {"row": 90, "column": 5}, "end_point": {"row": 90, "column": 41}}, {"id": 337, "type": "identifier", "text": "nf_dup_ipv4_route", "parent": 336, "children": [], "start_point": {"row": 90, "column": 5}, "end_point": {"row": 90, "column": 22}}, {"id": 338, "type": "argument_list", "text": "(net, skb, gw, oif)", "parent": 336, "children": [339, 340, 341, 342], "start_point": {"row": 90, "column": 22}, "end_point": {"row": 90, "column": 41}}, {"id": 339, "type": "identifier", "text": "net", "parent": 338, "children": [], "start_point": {"row": 90, "column": 23}, "end_point": {"row": 90, "column": 26}}, {"id": 340, "type": "identifier", "text": "skb", "parent": 338, "children": [], "start_point": {"row": 90, "column": 28}, "end_point": {"row": 90, "column": 31}}, {"id": 341, "type": "identifier", "text": "gw", "parent": 338, "children": [], "start_point": {"row": 90, "column": 33}, "end_point": {"row": 90, "column": 35}}, {"id": 342, "type": "identifier", "text": "oif", "parent": 338, "children": [], "start_point": {"row": 90, "column": 37}, "end_point": {"row": 90, "column": 40}}, {"id": 343, "type": "call_expression", "text": "__this_cpu_write(nf_skb_duplicated, true)", "parent": 334, "children": [344, 345], "start_point": {"row": 91, "column": 2}, "end_point": {"row": 91, "column": 43}}, {"id": 344, "type": "identifier", "text": "__this_cpu_write", "parent": 343, "children": [], "start_point": {"row": 91, "column": 2}, "end_point": {"row": 91, "column": 18}}, {"id": 345, "type": "argument_list", "text": "(nf_skb_duplicated, true)", "parent": 343, "children": [346, 347], "start_point": {"row": 91, "column": 18}, "end_point": {"row": 91, "column": 43}}, {"id": 346, "type": "identifier", "text": "nf_skb_duplicated", "parent": 345, "children": [], "start_point": {"row": 91, "column": 19}, "end_point": {"row": 91, "column": 36}}, {"id": 347, "type": "true", "text": "true", "parent": 345, "children": [], "start_point": {"row": 91, "column": 38}, "end_point": {"row": 91, "column": 42}}, {"id": 348, "type": "call_expression", "text": "ip_local_out(net, skb->sk, skb)", "parent": 334, "children": [349, 350], "start_point": {"row": 92, "column": 2}, "end_point": {"row": 92, "column": 33}}, {"id": 349, "type": "identifier", "text": "ip_local_out", "parent": 348, "children": [], "start_point": {"row": 92, "column": 2}, "end_point": {"row": 92, "column": 14}}, {"id": 350, "type": "argument_list", "text": "(net, skb->sk, skb)", "parent": 348, "children": [351, 352, 355], "start_point": {"row": 92, "column": 14}, "end_point": {"row": 92, "column": 33}}, {"id": 351, "type": "identifier", "text": "net", "parent": 350, "children": [], "start_point": {"row": 92, "column": 15}, "end_point": {"row": 92, "column": 18}}, {"id": 352, "type": "field_expression", "text": "skb->sk", "parent": 350, "children": [353, 354], "start_point": {"row": 92, "column": 20}, "end_point": {"row": 92, "column": 27}}, {"id": 353, "type": "identifier", "text": "skb", "parent": 352, "children": [], "start_point": {"row": 92, "column": 20}, "end_point": {"row": 92, "column": 23}}, {"id": 354, "type": "field_identifier", "text": "sk", "parent": 352, "children": [], "start_point": {"row": 92, "column": 25}, "end_point": {"row": 92, "column": 27}}, {"id": 355, "type": "identifier", "text": "skb", "parent": 350, "children": [], "start_point": {"row": 92, "column": 29}, "end_point": {"row": 92, "column": 32}}, {"id": 356, "type": "call_expression", "text": "__this_cpu_write(nf_skb_duplicated, false)", "parent": 334, "children": [357, 358], "start_point": {"row": 93, "column": 2}, "end_point": {"row": 93, "column": 44}}, {"id": 357, "type": "identifier", "text": "__this_cpu_write", "parent": 356, "children": [], "start_point": {"row": 93, "column": 2}, "end_point": {"row": 93, "column": 18}}, {"id": 358, "type": "argument_list", "text": "(nf_skb_duplicated, false)", "parent": 356, "children": [359, 360], "start_point": {"row": 93, "column": 18}, "end_point": {"row": 93, "column": 44}}, {"id": 359, "type": "identifier", "text": "nf_skb_duplicated", "parent": 358, "children": [], "start_point": {"row": 93, "column": 19}, "end_point": {"row": 93, "column": 36}}, {"id": 360, "type": "false", "text": "false", "parent": 358, "children": [], "start_point": {"row": 93, "column": 38}, "end_point": {"row": 93, "column": 43}}, {"id": 361, "type": "else_clause", "text": "else {\n\t\tkfree_skb(skb);\n\t}", "parent": 334, "children": [], "start_point": {"row": 94, "column": 3}, "end_point": {"row": 96, "column": 2}}, {"id": 362, "type": "call_expression", "text": "kfree_skb(skb)", "parent": 361, "children": [363, 364], "start_point": {"row": 95, "column": 2}, "end_point": {"row": 95, "column": 16}}, {"id": 363, "type": "identifier", "text": "kfree_skb", "parent": 362, "children": [], "start_point": {"row": 95, "column": 2}, "end_point": {"row": 95, "column": 11}}, {"id": 364, "type": "argument_list", "text": "(skb)", "parent": 362, "children": [365], "start_point": {"row": 95, "column": 11}, "end_point": {"row": 95, "column": 16}}, {"id": 365, "type": "identifier", "text": "skb", "parent": 364, "children": [], "start_point": {"row": 95, "column": 12}, "end_point": {"row": 95, "column": 15}}, {"id": 366, "type": "call_expression", "text": "EXPORT_SYMBOL_GPL(nf_dup_ipv4)", "parent": null, "children": [367, 368], "start_point": {"row": 98, "column": 0}, "end_point": {"row": 98, "column": 30}}, {"id": 367, "type": "identifier", "text": "EXPORT_SYMBOL_GPL", "parent": 366, "children": [], "start_point": {"row": 98, "column": 0}, "end_point": {"row": 98, "column": 17}}, {"id": 368, "type": "argument_list", "text": "(nf_dup_ipv4)", "parent": 366, "children": [369], "start_point": {"row": 98, "column": 17}, "end_point": {"row": 98, "column": 30}}, {"id": 369, "type": "identifier", "text": "nf_dup_ipv4", "parent": 368, "children": [], "start_point": {"row": 98, "column": 18}, "end_point": {"row": 98, "column": 29}}, {"id": 370, "type": "call_expression", "text": "MODULE_AUTHOR(\"<NAME> <<EMAIL>>\")", "parent": null, "children": [371, 372], "start_point": {"row": 100, "column": 0}, "end_point": {"row": 100, "column": 33}}, {"id": 371, "type": "identifier", "text": "MODULE_AUTHOR", "parent": 370, "children": [], "start_point": {"row": 100, "column": 0}, "end_point": {"row": 100, "column": 13}}, {"id": 372, "type": "argument_list", "text": "(\"<NAME> <<EMAIL>>\")", "parent": 370, "children": [373], "start_point": {"row": 100, "column": 13}, "end_point": {"row": 100, "column": 33}}, {"id": 373, "type": "string_literal", "text": "\"<NAME> <<EMAIL>>\"", "parent": 372, "children": [], "start_point": {"row": 100, "column": 14}, "end_point": {"row": 100, "column": 32}}, {"id": 374, "type": "call_expression", "text": "MODULE_AUTHOR(\"<NAME> <<EMAIL>>\")", "parent": null, "children": [375, 376], "start_point": {"row": 101, "column": 0}, "end_point": {"row": 101, "column": 33}}, {"id": 375, "type": "identifier", "text": "MODULE_AUTHOR", "parent": 374, "children": [], "start_point": {"row": 101, "column": 0}, "end_point": {"row": 101, "column": 13}}, {"id": 376, "type": "argument_list", "text": "(\"<NAME> <<EMAIL>>\")", "parent": 374, "children": [377], "start_point": {"row": 101, "column": 13}, "end_point": {"row": 101, "column": 33}}, {"id": 377, "type": "string_literal", "text": "\"<NAME> <<EMAIL>>\"", "parent": 376, "children": [], "start_point": {"row": 101, "column": 14}, "end_point": {"row": 101, "column": 32}}, {"id": 378, "type": "call_expression", "text": "MODULE_DESCRIPTION(\"nf_dup_ipv4: Duplicate IPv4 packet\")", "parent": null, "children": [379, 380], "start_point": {"row": 102, "column": 0}, "end_point": {"row": 102, "column": 56}}, {"id": 379, "type": "identifier", "text": "MODULE_DESCRIPTION", "parent": 378, "children": [], "start_point": {"row": 102, "column": 0}, "end_point": {"row": 102, "column": 18}}, {"id": 380, "type": "argument_list", "text": "(\"nf_dup_ipv4: Duplicate IPv4 packet\")", "parent": 378, "children": [381], "start_point": {"row": 102, "column": 18}, "end_point": {"row": 102, "column": 56}}, {"id": 381, "type": "string_literal", "text": "\"nf_dup_ipv4: Duplicate IPv4 packet\"", "parent": 380, "children": [], "start_point": {"row": 102, "column": 19}, "end_point": {"row": 102, "column": 55}}, {"id": 382, "type": "call_expression", "text": "MODULE_LICENSE(\"GPL\")", "parent": null, "children": [383, 384], "start_point": {"row": 103, "column": 0}, "end_point": {"row": 103, "column": 21}}, {"id": 383, "type": "identifier", "text": "MODULE_LICENSE", "parent": 382, "children": [], "start_point": {"row": 103, "column": 0}, "end_point": {"row": 103, "column": 14}}, {"id": 384, "type": "argument_list", "text": "(\"GPL\")", "parent": 382, "children": [385], "start_point": {"row": 103, "column": 14}, "end_point": {"row": 103, "column": 21}}, {"id": 385, "type": "string_literal", "text": "\"GPL\"", "parent": 384, "children": [], "start_point": {"row": 103, "column": 15}, "end_point": {"row": 103, "column": 20}}]}, "node_categories": {"declarations": {"functions": [44, 46, 200, 202], "variables": [49, 56, 63, 70, 73, 86, 93, 205, 212, 219, 224, 231, 234], "classes": [50, 51, 57, 58, 64, 65, 74, 75, 87, 88, 94, 95, 206, 207, 213, 214, 225, 226, 235, 236], "imports": [0, 1, 3, 4, 6, 7, 9, 10, 12, 13, 15, 16, 18, 19, 21, 22, 24, 25, 27, 28, 30, 31, 40, 41], "modules": [], "enums": []}, "statements": {"expressions": [35, 82, 98, 101, 104, 105, 108, 109, 114, 120, 124, 128, 132, 135, 139, 145, 153, 157, 160, 161, 167, 171, 175, 176, 180, 184, 185, 190, 194, 242, 243, 251, 257, 258, 266, 271, 274, 278, 282, 283, 284, 289, 294, 297, 304, 309, 313, 318, 319, 320, 325, 329, 331, 335, 336, 343, 348, 352, 356, 362, 366, 370, 374, 378, 382], "assignments": [113, 119, 127, 138, 144, 150, 179, 189, 248, 277, 288, 301, 308], "loops": [], "conditionals": [33, 34, 36, 38, 43, 47, 52, 55, 59, 62, 66, 69, 72, 76, 80, 83, 85, 89, 92, 96, 97, 99, 102, 106, 107, 110, 115, 116, 118, 121, 122, 125, 126, 129, 130, 133, 136, 137, 140, 141, 143, 146, 147, 149, 151, 154, 156, 158, 159, 162, 164, 168, 170, 172, 174, 177, 178, 181, 182, 186, 187, 188, 191, 192, 195, 197, 203, 208, 211, 215, 218, 220, 223, 227, 230, 233, 237, 240, 241, 244, 246, 249, 252, 254, 255, 256, 259, 264, 265, 267, 269, 272, 275, 276, 279, 280, 285, 287, 290, 291, 293, 295, 298, 299, 300, 302, 305, 307, 310, 311, 314, 316, 317, 321, 323, 326, 328, 332, 333, 334, 337, 339, 340, 341, 342, 344, 346, 349, 351, 353, 354, 355, 357, 359, 363, 365, 367, 369, 371, 375, 379, 383], "returns": [165, 198, 247, 263], "exceptions": []}, "expressions": {"calls": [], "literals": [2, 5, 8, 11, 14, 17, 20, 23, 26, 29, 32, 42, 103, 112, 373, 377, 381, 385], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [{"node_id": 44, "universal_type": "function", "name": "nf_dup_ipv4_route", "text_snippet": "static bool nf_dup_ipv4_route(struct net *net, struct sk_buff *skb,\n\t\t\t const struct in_addr *g"}, {"node_id": 46, "universal_type": "function", "name": "sk_buff", "text_snippet": "nf_dup_ipv4_route(struct net *net, struct sk_buff *skb,\n\t\t\t const struct in_addr *gw, int oif)"}, {"node_id": 200, "universal_type": "function", "name": "nf_dup_ipv4", "text_snippet": "void nf_dup_ipv4(struct net *net, struct sk_buff *skb, unsigned int hooknum,\n\t\t const struct in_addr"}, {"node_id": 202, "universal_type": "function", "name": "sk_buff", "text_snippet": "nf_dup_ipv4(struct net *net, struct sk_buff *skb, unsigned int hooknum,\n\t\t const struct in_addr *gw,"}], "class_declarations": [{"node_id": 50, "universal_type": "class", "name": "net", "text_snippet": "struct net"}, {"node_id": 51, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 57, "universal_type": "class", "name": "sk_buff", "text_snippet": "struct sk_buff"}, {"node_id": 58, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 64, "universal_type": "class", "name": "in_addr", "text_snippet": "struct in_addr"}, {"node_id": 65, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 74, "universal_type": "class", "name": "iphdr", "text_snippet": "struct iphdr"}, {"node_id": 75, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 87, "universal_type": "class", "name": "rtable", "text_snippet": "struct rtable"}, {"node_id": 88, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 94, "universal_type": "class", "name": "flowi4", "text_snippet": "struct flowi4"}, {"node_id": 95, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 206, "universal_type": "class", "name": "net", "text_snippet": "struct net"}, {"node_id": 207, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 213, "universal_type": "class", "name": "sk_buff", "text_snippet": "struct sk_buff"}, {"node_id": 214, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 225, "universal_type": "class", "name": "in_addr", "text_snippet": "struct in_addr"}, {"node_id": 226, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 235, "universal_type": "class", "name": "iphdr", "text_snippet": "struct iphdr"}, {"node_id": 236, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}], "import_statements": [{"node_id": 0, "text": "#include <linux/ip.h>\n"}, {"node_id": 1, "text": "#include"}, {"node_id": 3, "text": "#include <linux/module.h>\n"}, {"node_id": 4, "text": "#include"}, {"node_id": 6, "text": "#include <linux/percpu.h>\n"}, {"node_id": 7, "text": "#include"}, {"node_id": 9, "text": "#include <linux/route.h>\n"}, {"node_id": 10, "text": "#include"}, {"node_id": 12, "text": "#include <linux/skbuff.h>\n"}, {"node_id": 13, "text": "#include"}, {"node_id": 15, "text": "#include <linux/netfilter.h>\n"}, {"node_id": 16, "text": "#include"}, {"node_id": 18, "text": "#include <net/checksum.h>\n"}, {"node_id": 19, "text": "#include"}, {"node_id": 21, "text": "#include <net/icmp.h>\n"}, {"node_id": 22, "text": "#include"}, {"node_id": 24, "text": "#include <net/ip.h>\n"}, {"node_id": 25, "text": "#include"}, {"node_id": 27, "text": "#include <net/route.h>\n"}, {"node_id": 28, "text": "#include"}, {"node_id": 30, "text": "#include <net/netfilter/ipv4/nf_dup_ipv4.h>\n"}, {"node_id": 31, "text": "#include"}, {"node_id": 40, "text": "#include <net/netfilter/nf_conntrack.h>\n"}, {"node_id": 41, "text": "#include"}]}, "original_source_code": "/*\n * (C) 2007 by <NAME> <<EMAIL>>\n * (C) 2007-2010 by <NAME> <<EMAIL>>\n *\n * Extracted from xt_TEE.c\n *\n * This program is free software; you can redistribute it and/or modify it\n * under the terms of the GNU General Public License version 2 or later, as\n * published by the Free Software Foundation.\n */\n#include <linux/ip.h>\n#include <linux/module.h>\n#include <linux/percpu.h>\n#include <linux/route.h>\n#include <linux/skbuff.h>\n#include <linux/netfilter.h>\n#include <net/checksum.h>\n#include <net/icmp.h>\n#include <net/ip.h>\n#include <net/route.h>\n#include <net/netfilter/ipv4/nf_dup_ipv4.h>\n#if IS_ENABLED(CONFIG_NF_CONNTRACK)\n#include <net/netfilter/nf_conntrack.h>\n#endif\n\nstatic bool nf_dup_ipv4_route(struct net *net, struct sk_buff *skb,\n\t\t\t const struct in_addr *gw, int oif)\n{\n\tconst struct iphdr *iph = ip_hdr(skb);\n\tstruct rtable *rt;\n\tstruct flowi4 fl4;\n\n\tmemset(&fl4, 0, sizeof(fl4));\n\tif (oif != -1)\n\t\tfl4.flowi4_oif = oif;\n\n\tfl4.daddr = gw->s_addr;\n\tfl4.flowi4_tos = RT_TOS(iph->tos);\n\tfl4.flowi4_scope = RT_SCOPE_UNIVERSE;\n\tfl4.flowi4_flags = FLOWI_FLAG_KNOWN_NH;\n\trt = ip_route_output_key(net, &fl4);\n\tif (IS_ERR(rt))\n\t\treturn false;\n\n\tskb_dst_drop(skb);\n\tskb_dst_set(skb, &rt->dst);\n\tskb->dev = rt->dst.dev;\n\tskb->protocol = htons(ETH_P_IP);\n\n\treturn true;\n}\n\nvoid nf_dup_ipv4(struct net *net, struct sk_buff *skb, unsigned int hooknum,\n\t\t const struct in_addr *gw, int oif)\n{\n\tstruct iphdr *iph;\n\n\tif (this_cpu_read(nf_skb_duplicated))\n\t\treturn;\n\t/*\n\t * Copy the skb, and route the copy. Will later return %XT_CONTINUE for\n\t * the original skb, which should continue on its way as if nothing has\n\t * happened. The copy should be independently delivered to the gateway.\n\t */\n\tskb = pskb_copy(skb, GFP_ATOMIC);\n\tif (skb == NULL)\n\t\treturn;\n\n#if IS_ENABLED(CONFIG_NF_CONNTRACK)\n\t/* Avoid counting cloned packets towards the original connection. */\n\tnf_conntrack_put(skb->nfct);\n\tskb->nfct = &nf_ct_untracked_get()->ct_general;\n\tskb->nfctinfo = IP_CT_NEW;\n\tnf_conntrack_get(skb->nfct);\n#endif\n\t/*\n\t * If we are in PREROUTING/INPUT, decrease the TTL to mitigate potential\n\t * loops between two hosts.\n\t *\n\t * Set %IP_DF so that the original source is notified of a potentially\n\t * decreased MTU on the clone route. IPv6 does this too.\n\t *\n\t * IP header checksum will be recalculated at ip_local_out.\n\t */\n\tiph = ip_hdr(skb);\n\tiph->frag_off |= htons(IP_DF);\n\tif (hooknum == NF_INET_PRE_ROUTING ||\n\t hooknum == NF_INET_LOCAL_IN)\n\t\t--iph->ttl;\n\n\tif (nf_dup_ipv4_route(net, skb, gw, oif)) {\n\t\t__this_cpu_write(nf_skb_duplicated, true);\n\t\tip_local_out(net, skb->sk, skb);\n\t\t__this_cpu_write(nf_skb_duplicated, false);\n\t} else {\n\t\tkfree_skb(skb);\n\t}\n}\nEXPORT_SYMBOL_GPL(nf_dup_ipv4);\n\nMODULE_AUTHOR(\"<NAME> <<EMAIL>>\");\nMODULE_AUTHOR(\"<NAME> <<EMAIL>>\");\nMODULE_DESCRIPTION(\"nf_dup_ipv4: Duplicate IPv4 packet\");\nMODULE_LICENSE(\"GPL\");\n"}
80,065
c
//========================================================================= // Copyright (C) 2012 The Elastos Open Source Project // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. //========================================================================= #ifndef __ORG_APACHE_HTTP_CLIENT_METHODS_HTTPENTITYENCLOSINGREQUESTBASE_H__ #define __ORG_APACHE_HTTP_CLIENT_METHODS_HTTPENTITYENCLOSINGREQUESTBASE_H__ #include "org/apache/http/client/methods/HttpRequestBase.h" using Org::Apache::Http::IHttpEntity; namespace Org { namespace Apache { namespace Http { namespace Client { namespace Methods { /** * Basic implementation of an HTTP request that can be modified. * * @author <a href="mailto:oleg at ural.ru"><NAME></a> * * @version $Revision: 674186 $ * * @since 4.0 */ class HttpEntityEnclosingRequestBase : public HttpRequestBase , public IHttpEntityEnclosingRequest { public: HttpEntityEnclosingRequestBase(); virtual ~HttpEntityEnclosingRequestBase() {} CAR_INTERFACE_DECL() CARAPI SetEntity( /* [in] */ IHttpEntity* entity); CARAPI GetEntity( /* [out] */ IHttpEntity** entity); CARAPI ExpectContinue( /* [out] */ Boolean* result); protected: CARAPI CloneImpl( /* [in] */ HttpEntityEnclosingRequestBase* dst); private: AutoPtr<IHttpEntity> mEntity; }; } // namespace Methods } // namespace Client } // namespace Http } // namespace Apache } // namespace Org #endif // __ORG_APACHE_HTTP_CLIENT_METHODS_HTTPENTITYENCLOSINGREQUESTBASE_H__
33.42
59
(translation_unit) "//=========================================================================\n// Copyright (C) 2012 The Elastos Open Source Project\n//\n// Licensed under the Apache License, Version 2.0 (the "License");\n// you may not use this file except in compliance with the License.\n// You may obtain a copy of the License at\n//\n// http://www.apache.org/licenses/LICENSE-2.0\n//\n// Unless required by applicable law or agreed to in writing, software\n// distributed under the License is distributed on an "AS IS" BASIS,\n// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n// See the License for the specific language governing permissions and\n// limitations under the License.\n//=========================================================================\n\n#ifndef __ORG_APACHE_HTTP_CLIENT_METHODS_HTTPENTITYENCLOSINGREQUESTBASE_H__\n#define __ORG_APACHE_HTTP_CLIENT_METHODS_HTTPENTITYENCLOSINGREQUESTBASE_H__\n\n#include "org/apache/http/client/methods/HttpRequestBase.h"\n\nusing Org::Apache::Http::IHttpEntity;\n\nnamespace Org {\nnamespace Apache {\nnamespace Http {\nnamespace Client {\nnamespace Methods {\n\n/**\n * Basic implementation of an HTTP request that can be modified.\n *\n * @author <a href="mailto:oleg at ural.ru"><NAME></a>\n *\n * @version $Revision: 674186 $\n *\n * @since 4.0\n */\nclass HttpEntityEnclosingRequestBase\n : public HttpRequestBase\n , public IHttpEntityEnclosingRequest\n{\npublic:\n HttpEntityEnclosingRequestBase();\n\n virtual ~HttpEntityEnclosingRequestBase() {}\n\n CAR_INTERFACE_DECL()\n\n CARAPI SetEntity(\n /* [in] */ IHttpEntity* entity);\n\n CARAPI GetEntity(\n /* [out] */ IHttpEntity** entity);\n\n CARAPI ExpectContinue(\n /* [out] */ Boolean* result);\n\nprotected:\n CARAPI CloneImpl(\n /* [in] */ HttpEntityEnclosingRequestBase* dst);\n\nprivate:\n AutoPtr<IHttpEntity> mEntity;\n};\n\n} // namespace Methods\n} // namespace Client\n} // namespace Http\n} // namespace Apache\n} // namespace Org\n\n#endif // __ORG_APACHE_HTTP_CLIENT_METHODS_HTTPENTITYENCLOSINGREQUESTBASE_H__\n" (comment) "//=========================================================================" (comment) "// Copyright (C) 2012 The Elastos Open Source Project" (comment) "//" (comment) "// Licensed under the Apache License, Version 2.0 (the "License");" (comment) "// you may not use this file except in compliance with the License." (comment) "// You may obtain a copy of the License at" (comment) "//" (comment) "// http://www.apache.org/licenses/LICENSE-2.0" (comment) "//" (comment) "// Unless required by applicable law or agreed to in writing, software" (comment) "// distributed under the License is distributed on an "AS IS" BASIS," (comment) "// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied." (comment) "// See the License for the specific language governing permissions and" (comment) "// limitations under the License." (comment) "//=========================================================================" (preproc_ifdef) "#ifndef __ORG_APACHE_HTTP_CLIENT_METHODS_HTTPENTITYENCLOSINGREQUESTBASE_H__\n#define __ORG_APACHE_HTTP_CLIENT_METHODS_HTTPENTITYENCLOSINGREQUESTBASE_H__\n\n#include "org/apache/http/client/methods/HttpRequestBase.h"\n\nusing Org::Apache::Http::IHttpEntity;\n\nnamespace Org {\nnamespace Apache {\nnamespace Http {\nnamespace Client {\nnamespace Methods {\n\n/**\n * Basic implementation of an HTTP request that can be modified.\n *\n * @author <a href="mailto:oleg at ural.ru"><NAME></a>\n *\n * @version $Revision: 674186 $\n *\n * @since 4.0\n */\nclass HttpEntityEnclosingRequestBase\n : public HttpRequestBase\n , public IHttpEntityEnclosingRequest\n{\npublic:\n HttpEntityEnclosingRequestBase();\n\n virtual ~HttpEntityEnclosingRequestBase() {}\n\n CAR_INTERFACE_DECL()\n\n CARAPI SetEntity(\n /* [in] */ IHttpEntity* entity);\n\n CARAPI GetEntity(\n /* [out] */ IHttpEntity** entity);\n\n CARAPI ExpectContinue(\n /* [out] */ Boolean* result);\n\nprotected:\n CARAPI CloneImpl(\n /* [in] */ HttpEntityEnclosingRequestBase* dst);\n\nprivate:\n AutoPtr<IHttpEntity> mEntity;\n};\n\n} // namespace Methods\n} // namespace Client\n} // namespace Http\n} // namespace Apache\n} // namespace Org\n\n#endif" (#ifndef) "#ifndef" (identifier) "__ORG_APACHE_HTTP_CLIENT_METHODS_HTTPENTITYENCLOSINGREQUESTBASE_H__" (preproc_def) "#define __ORG_APACHE_HTTP_CLIENT_METHODS_HTTPENTITYENCLOSINGREQUESTBASE_H__\n" (#define) "#define" (identifier) "__ORG_APACHE_HTTP_CLIENT_METHODS_HTTPENTITYENCLOSINGREQUESTBASE_H__" (preproc_include) "#include "org/apache/http/client/methods/HttpRequestBase.h"\n" (#include) "#include" (string_literal) ""org/apache/http/client/methods/HttpRequestBase.h"" (") """ (string_content) "org/apache/http/client/methods/HttpRequestBase.h" (") """ (declaration) "using Org::Apache::Http::IHttpEntity;" (type_identifier) "using" (ERROR) "Org::Apache::Http::" (identifier) "Org" (:) ":" (:) ":" (identifier) "Apache" (:) ":" (:) ":" (identifier) "Http" (:) ":" (:) ":" (identifier) "IHttpEntity" (;) ";" (function_definition) "namespace Org {\nnamespace Apache {\nnamespace Http {\nnamespace Client {\nnamespace Methods {\n\n/**\n * Basic implementation of an HTTP request that can be modified.\n *\n * @author <a href="mailto:oleg at ural.ru"><NAME></a>\n *\n * @version $Revision: 674186 $\n *\n * @since 4.0\n */\nclass HttpEntityEnclosingRequestBase\n : public HttpRequestBase\n , public IHttpEntityEnclosingRequest\n{\npublic:\n HttpEntityEnclosingRequestBase();\n\n virtual ~HttpEntityEnclosingRequestBase() {}\n\n CAR_INTERFACE_DECL()\n\n CARAPI SetEntity(\n /* [in] */ IHttpEntity* entity);\n\n CARAPI GetEntity(\n /* [out] */ IHttpEntity** entity);\n\n CARAPI ExpectContinue(\n /* [out] */ Boolean* result);\n\nprotected:\n CARAPI CloneImpl(\n /* [in] */ HttpEntityEnclosingRequestBase* dst);\n\nprivate:\n AutoPtr<IHttpEntity> mEntity;\n};\n\n} // namespace Methods\n} // namespace Client\n} // namespace Http\n} // namespace Apache\n}" (type_identifier) "namespace" (identifier) "Org" (compound_statement) "{\nnamespace Apache {\nnamespace Http {\nnamespace Client {\nnamespace Methods {\n\n/**\n * Basic implementation of an HTTP request that can be modified.\n *\n * @author <a href="mailto:oleg at ural.ru"><NAME></a>\n *\n * @version $Revision: 674186 $\n *\n * @since 4.0\n */\nclass HttpEntityEnclosingRequestBase\n : public HttpRequestBase\n , public IHttpEntityEnclosingRequest\n{\npublic:\n HttpEntityEnclosingRequestBase();\n\n virtual ~HttpEntityEnclosingRequestBase() {}\n\n CAR_INTERFACE_DECL()\n\n CARAPI SetEntity(\n /* [in] */ IHttpEntity* entity);\n\n CARAPI GetEntity(\n /* [out] */ IHttpEntity** entity);\n\n CARAPI ExpectContinue(\n /* [out] */ Boolean* result);\n\nprotected:\n CARAPI CloneImpl(\n /* [in] */ HttpEntityEnclosingRequestBase* dst);\n\nprivate:\n AutoPtr<IHttpEntity> mEntity;\n};\n\n} // namespace Methods\n} // namespace Client\n} // namespace Http\n} // namespace Apache\n}" ({) "{" (function_definition) "namespace Apache {\nnamespace Http {\nnamespace Client {\nnamespace Methods {\n\n/**\n * Basic implementation of an HTTP request that can be modified.\n *\n * @author <a href="mailto:oleg at ural.ru"><NAME></a>\n *\n * @version $Revision: 674186 $\n *\n * @since 4.0\n */\nclass HttpEntityEnclosingRequestBase\n : public HttpRequestBase\n , public IHttpEntityEnclosingRequest\n{\npublic:\n HttpEntityEnclosingRequestBase();\n\n virtual ~HttpEntityEnclosingRequestBase() {}\n\n CAR_INTERFACE_DECL()\n\n CARAPI SetEntity(\n /* [in] */ IHttpEntity* entity);\n\n CARAPI GetEntity(\n /* [out] */ IHttpEntity** entity);\n\n CARAPI ExpectContinue(\n /* [out] */ Boolean* result);\n\nprotected:\n CARAPI CloneImpl(\n /* [in] */ HttpEntityEnclosingRequestBase* dst);\n\nprivate:\n AutoPtr<IHttpEntity> mEntity;\n};\n\n} // namespace Methods\n} // namespace Client\n} // namespace Http\n}" (type_identifier) "namespace" (identifier) "Apache" (compound_statement) "{\nnamespace Http {\nnamespace Client {\nnamespace Methods {\n\n/**\n * Basic implementation of an HTTP request that can be modified.\n *\n * @author <a href="mailto:oleg at ural.ru"><NAME></a>\n *\n * @version $Revision: 674186 $\n *\n * @since 4.0\n */\nclass HttpEntityEnclosingRequestBase\n : public HttpRequestBase\n , public IHttpEntityEnclosingRequest\n{\npublic:\n HttpEntityEnclosingRequestBase();\n\n virtual ~HttpEntityEnclosingRequestBase() {}\n\n CAR_INTERFACE_DECL()\n\n CARAPI SetEntity(\n /* [in] */ IHttpEntity* entity);\n\n CARAPI GetEntity(\n /* [out] */ IHttpEntity** entity);\n\n CARAPI ExpectContinue(\n /* [out] */ Boolean* result);\n\nprotected:\n CARAPI CloneImpl(\n /* [in] */ HttpEntityEnclosingRequestBase* dst);\n\nprivate:\n AutoPtr<IHttpEntity> mEntity;\n};\n\n} // namespace Methods\n} // namespace Client\n} // namespace Http\n}" ({) "{" (function_definition) "namespace Http {\nnamespace Client {\nnamespace Methods {\n\n/**\n * Basic implementation of an HTTP request that can be modified.\n *\n * @author <a href="mailto:oleg at ural.ru"><NAME></a>\n *\n * @version $Revision: 674186 $\n *\n * @since 4.0\n */\nclass HttpEntityEnclosingRequestBase\n : public HttpRequestBase\n , public IHttpEntityEnclosingRequest\n{\npublic:\n HttpEntityEnclosingRequestBase();\n\n virtual ~HttpEntityEnclosingRequestBase() {}\n\n CAR_INTERFACE_DECL()\n\n CARAPI SetEntity(\n /* [in] */ IHttpEntity* entity);\n\n CARAPI GetEntity(\n /* [out] */ IHttpEntity** entity);\n\n CARAPI ExpectContinue(\n /* [out] */ Boolean* result);\n\nprotected:\n CARAPI CloneImpl(\n /* [in] */ HttpEntityEnclosingRequestBase* dst);\n\nprivate:\n AutoPtr<IHttpEntity> mEntity;\n};\n\n} // namespace Methods\n} // namespace Client\n}" (type_identifier) "namespace" (identifier) "Http" (compound_statement) "{\nnamespace Client {\nnamespace Methods {\n\n/**\n * Basic implementation of an HTTP request that can be modified.\n *\n * @author <a href="mailto:oleg at ural.ru"><NAME></a>\n *\n * @version $Revision: 674186 $\n *\n * @since 4.0\n */\nclass HttpEntityEnclosingRequestBase\n : public HttpRequestBase\n , public IHttpEntityEnclosingRequest\n{\npublic:\n HttpEntityEnclosingRequestBase();\n\n virtual ~HttpEntityEnclosingRequestBase() {}\n\n CAR_INTERFACE_DECL()\n\n CARAPI SetEntity(\n /* [in] */ IHttpEntity* entity);\n\n CARAPI GetEntity(\n /* [out] */ IHttpEntity** entity);\n\n CARAPI ExpectContinue(\n /* [out] */ Boolean* result);\n\nprotected:\n CARAPI CloneImpl(\n /* [in] */ HttpEntityEnclosingRequestBase* dst);\n\nprivate:\n AutoPtr<IHttpEntity> mEntity;\n};\n\n} // namespace Methods\n} // namespace Client\n}" ({) "{" (function_definition) "namespace Client {\nnamespace Methods {\n\n/**\n * Basic implementation of an HTTP request that can be modified.\n *\n * @author <a href="mailto:oleg at ural.ru"><NAME></a>\n *\n * @version $Revision: 674186 $\n *\n * @since 4.0\n */\nclass HttpEntityEnclosingRequestBase\n : public HttpRequestBase\n , public IHttpEntityEnclosingRequest\n{\npublic:\n HttpEntityEnclosingRequestBase();\n\n virtual ~HttpEntityEnclosingRequestBase() {}\n\n CAR_INTERFACE_DECL()\n\n CARAPI SetEntity(\n /* [in] */ IHttpEntity* entity);\n\n CARAPI GetEntity(\n /* [out] */ IHttpEntity** entity);\n\n CARAPI ExpectContinue(\n /* [out] */ Boolean* result);\n\nprotected:\n CARAPI CloneImpl(\n /* [in] */ HttpEntityEnclosingRequestBase* dst);\n\nprivate:\n AutoPtr<IHttpEntity> mEntity;\n};\n\n} // namespace Methods\n}" (type_identifier) "namespace" (identifier) "Client" (compound_statement) "{\nnamespace Methods {\n\n/**\n * Basic implementation of an HTTP request that can be modified.\n *\n * @author <a href="mailto:oleg at ural.ru"><NAME></a>\n *\n * @version $Revision: 674186 $\n *\n * @since 4.0\n */\nclass HttpEntityEnclosingRequestBase\n : public HttpRequestBase\n , public IHttpEntityEnclosingRequest\n{\npublic:\n HttpEntityEnclosingRequestBase();\n\n virtual ~HttpEntityEnclosingRequestBase() {}\n\n CAR_INTERFACE_DECL()\n\n CARAPI SetEntity(\n /* [in] */ IHttpEntity* entity);\n\n CARAPI GetEntity(\n /* [out] */ IHttpEntity** entity);\n\n CARAPI ExpectContinue(\n /* [out] */ Boolean* result);\n\nprotected:\n CARAPI CloneImpl(\n /* [in] */ HttpEntityEnclosingRequestBase* dst);\n\nprivate:\n AutoPtr<IHttpEntity> mEntity;\n};\n\n} // namespace Methods\n}" ({) "{" (function_definition) "namespace Methods {\n\n/**\n * Basic implementation of an HTTP request that can be modified.\n *\n * @author <a href="mailto:oleg at ural.ru"><NAME></a>\n *\n * @version $Revision: 674186 $\n *\n * @since 4.0\n */\nclass HttpEntityEnclosingRequestBase\n : public HttpRequestBase\n , public IHttpEntityEnclosingRequest\n{\npublic:\n HttpEntityEnclosingRequestBase();\n\n virtual ~HttpEntityEnclosingRequestBase() {}\n\n CAR_INTERFACE_DECL()\n\n CARAPI SetEntity(\n /* [in] */ IHttpEntity* entity);\n\n CARAPI GetEntity(\n /* [out] */ IHttpEntity** entity);\n\n CARAPI ExpectContinue(\n /* [out] */ Boolean* result);\n\nprotected:\n CARAPI CloneImpl(\n /* [in] */ HttpEntityEnclosingRequestBase* dst);\n\nprivate:\n AutoPtr<IHttpEntity> mEntity;\n};\n\n}" (type_identifier) "namespace" (identifier) "Methods" (compound_statement) "{\n\n/**\n * Basic implementation of an HTTP request that can be modified.\n *\n * @author <a href="mailto:oleg at ural.ru"><NAME></a>\n *\n * @version $Revision: 674186 $\n *\n * @since 4.0\n */\nclass HttpEntityEnclosingRequestBase\n : public HttpRequestBase\n , public IHttpEntityEnclosingRequest\n{\npublic:\n HttpEntityEnclosingRequestBase();\n\n virtual ~HttpEntityEnclosingRequestBase() {}\n\n CAR_INTERFACE_DECL()\n\n CARAPI SetEntity(\n /* [in] */ IHttpEntity* entity);\n\n CARAPI GetEntity(\n /* [out] */ IHttpEntity** entity);\n\n CARAPI ExpectContinue(\n /* [out] */ Boolean* result);\n\nprotected:\n CARAPI CloneImpl(\n /* [in] */ HttpEntityEnclosingRequestBase* dst);\n\nprivate:\n AutoPtr<IHttpEntity> mEntity;\n};\n\n}" ({) "{" (comment) "/**\n * Basic implementation of an HTTP request that can be modified.\n *\n * @author <a href="mailto:oleg at ural.ru"><NAME></a>\n *\n * @version $Revision: 674186 $\n *\n * @since 4.0\n */" (ERROR) "class HttpEntityEnclosingRequestBase\n : public HttpRequestBase\n , public IHttpEntityEnclosingRequest" (type_identifier) "class" (identifier) "HttpEntityEnclosingRequestBase" (ERROR) ": public HttpRequestBase" (:) ":" (identifier) "public" (identifier) "HttpRequestBase" (,) "," (identifier) "public" (identifier) "IHttpEntityEnclosingRequest" (compound_statement) "{\npublic:\n HttpEntityEnclosingRequestBase();\n\n virtual ~HttpEntityEnclosingRequestBase() {}\n\n CAR_INTERFACE_DECL()\n\n CARAPI SetEntity(\n /* [in] */ IHttpEntity* entity);\n\n CARAPI GetEntity(\n /* [out] */ IHttpEntity** entity);\n\n CARAPI ExpectContinue(\n /* [out] */ Boolean* result);\n\nprotected:\n CARAPI CloneImpl(\n /* [in] */ HttpEntityEnclosingRequestBase* dst);\n\nprivate:\n AutoPtr<IHttpEntity> mEntity;\n}" ({) "{" (labeled_statement) "public:\n HttpEntityEnclosingRequestBase();" (statement_identifier) "public" (:) ":" (expression_statement) "HttpEntityEnclosingRequestBase();" (call_expression) "HttpEntityEnclosingRequestBase()" (identifier) "HttpEntityEnclosingRequestBase" (argument_list) "()" (() "(" ()) ")" (;) ";" (function_definition) "virtual ~HttpEntityEnclosingRequestBase() {}" (type_identifier) "virtual" (ERROR) "~" (~) "~" (function_declarator) "HttpEntityEnclosingRequestBase()" (identifier) "HttpEntityEnclosingRequestBase" (parameter_list) "()" (() "(" ()) ")" (compound_statement) "{}" ({) "{" (}) "}" (expression_statement) "CAR_INTERFACE_DECL()" (call_expression) "CAR_INTERFACE_DECL()" (identifier) "CAR_INTERFACE_DECL" (argument_list) "()" (() "(" ()) ")" (;) "" (declaration) "CARAPI SetEntity(\n /* [in] */ IHttpEntity* entity);" (type_identifier) "CARAPI" (function_declarator) "SetEntity(\n /* [in] */ IHttpEntity* entity)" (identifier) "SetEntity" (parameter_list) "(\n /* [in] */ IHttpEntity* entity)" (() "(" (comment) "/* [in] */" (parameter_declaration) "IHttpEntity* entity" (type_identifier) "IHttpEntity" (pointer_declarator) "* entity" (*) "*" (identifier) "entity" ()) ")" (;) ";" (declaration) "CARAPI GetEntity(\n /* [out] */ IHttpEntity** entity);" (type_identifier) "CARAPI" (function_declarator) "GetEntity(\n /* [out] */ IHttpEntity** entity)" (identifier) "GetEntity" (parameter_list) "(\n /* [out] */ IHttpEntity** entity)" (() "(" (comment) "/* [out] */" (parameter_declaration) "IHttpEntity** entity" (type_identifier) "IHttpEntity" (pointer_declarator) "** entity" (*) "*" (pointer_declarator) "* entity" (*) "*" (identifier) "entity" ()) ")" (;) ";" (declaration) "CARAPI ExpectContinue(\n /* [out] */ Boolean* result);" (type_identifier) "CARAPI" (function_declarator) "ExpectContinue(\n /* [out] */ Boolean* result)" (identifier) "ExpectContinue" (parameter_list) "(\n /* [out] */ Boolean* result)" (() "(" (comment) "/* [out] */" (parameter_declaration) "Boolean* result" (type_identifier) "Boolean" (pointer_declarator) "* result" (*) "*" (identifier) "result" ()) ")" (;) ";" (labeled_statement) "protected:\n CARAPI CloneImpl(\n /* [in] */ HttpEntityEnclosingRequestBase* dst);" (statement_identifier) "protected" (:) ":" (declaration) "CARAPI CloneImpl(\n /* [in] */ HttpEntityEnclosingRequestBase* dst);" (type_identifier) "CARAPI" (function_declarator) "CloneImpl(\n /* [in] */ HttpEntityEnclosingRequestBase* dst)" (identifier) "CloneImpl" (parameter_list) "(\n /* [in] */ HttpEntityEnclosingRequestBase* dst)" (() "(" (comment) "/* [in] */" (parameter_declaration) "HttpEntityEnclosingRequestBase* dst" (type_identifier) "HttpEntityEnclosingRequestBase" (pointer_declarator) "* dst" (*) "*" (identifier) "dst" ()) ")" (;) ";" (labeled_statement) "private:\n AutoPtr<IHttpEntity> mEntity;" (statement_identifier) "private" (:) ":" (expression_statement) "AutoPtr<IHttpEntity> mEntity;" (binary_expression) "AutoPtr<IHttpEntity> mEntity" (binary_expression) "AutoPtr<IHttpEntity" (identifier) "AutoPtr" (<) "<" (identifier) "IHttpEntity" (>) ">" (identifier) "mEntity" (;) ";" (}) "}" (expression_statement) ";" (;) ";" (}) "}" (comment) "// namespace Methods" (}) "}" (comment) "// namespace Client" (}) "}" (comment) "// namespace Http" (}) "}" (comment) "// namespace Apache" (}) "}" (comment) "// namespace Org" (#endif) "#endif" (comment) "// __ORG_APACHE_HTTP_CLIENT_METHODS_HTTPENTITYENCLOSINGREQUESTBASE_H__"
197
4
{"language": "c", "success": true, "metadata": {"lines": 59, "avg_line_length": 33.42, "nodes": 102, "errors": 0, "source_hash": "b9784b63f419cade82815a96fde5cdd1f3bb71b20fb71d676024704ee1bfa743", "categorized_nodes": 73}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef __ORG_APACHE_HTTP_CLIENT_METHODS_HTTPENTITYENCLOSINGREQUESTBASE_H__\n#define __ORG_APACHE_HTTP_CLIENT_METHODS_HTTPENTITYENCLOSINGREQUESTBASE_H__\n\n#include \"org/apache/http/client/methods/HttpRequestBase.h\"\n\nusing Org::Apache::Http::IHttpEntity;\n\nnamespace Org {\nnamespace Apache {\nnamespace Http {\nnamespace Client {\nnamespace Methods {\n\n/**\n * Basic implementation of an HTTP request that can be modified.\n *\n * @author <a href=\"mailto:oleg at ural.ru\"><NAME></a>\n *\n * @version $Revision: 674186 $\n *\n * @since 4.0\n */\nclass HttpEntityEnclosingRequestBase\n : public HttpRequestBase\n , public IHttpEntityEnclosingRequest\n{\npublic:\n HttpEntityEnclosingRequestBase();\n\n virtual ~HttpEntityEnclosingRequestBase() {}\n\n CAR_INTERFACE_DECL()\n\n CARAPI SetEntity(\n /* [in] */ IHttpEntity* entity);\n\n CARAPI GetEntity(\n /* [out] */ IHttpEntity** entity);\n\n CARAPI ExpectContinue(\n /* [out] */ Boolean* result);\n\nprotected:\n CARAPI CloneImpl(\n /* [in] */ HttpEntityEnclosingRequestBase* dst);\n\nprivate:\n AutoPtr<IHttpEntity> mEntity;\n};\n\n} // namespace Methods\n} // namespace Client\n} // namespace Http\n} // namespace Apache\n} // namespace Org\n\n#endif", "parent": null, "children": [1, 2, 3, 6, 9, 16, 101], "start_point": {"row": 16, "column": 0}, "end_point": {"row": 72, "column": 6}}, {"id": 1, "type": "#ifndef", "text": "#ifndef", "parent": 0, "children": [], "start_point": {"row": 16, "column": 0}, "end_point": {"row": 16, "column": 7}}, {"id": 2, "type": "identifier", "text": "__ORG_APACHE_HTTP_CLIENT_METHODS_HTTPENTITYENCLOSINGREQUESTBASE_H__", "parent": 0, "children": [], "start_point": {"row": 16, "column": 8}, "end_point": {"row": 16, "column": 75}}, {"id": 3, "type": "preproc_def", "text": "#define __ORG_APACHE_HTTP_CLIENT_METHODS_HTTPENTITYENCLOSINGREQUESTBASE_H__\n", "parent": 0, "children": [4, 5], "start_point": {"row": 17, "column": 0}, "end_point": {"row": 18, "column": 0}}, {"id": 4, "type": "#define", "text": "#define", "parent": 3, "children": [], "start_point": {"row": 17, "column": 0}, "end_point": {"row": 17, "column": 7}}, {"id": 5, "type": "identifier", "text": "__ORG_APACHE_HTTP_CLIENT_METHODS_HTTPENTITYENCLOSINGREQUESTBASE_H__", "parent": 3, "children": [], "start_point": {"row": 17, "column": 8}, "end_point": {"row": 17, "column": 75}}, {"id": 6, "type": "preproc_include", "text": "#include \"org/apache/http/client/methods/HttpRequestBase.h\"\n", "parent": 0, "children": [7, 8], "start_point": {"row": 19, "column": 0}, "end_point": {"row": 20, "column": 0}}, {"id": 7, "type": "#include", "text": "#include", "parent": 6, "children": [], "start_point": {"row": 19, "column": 0}, "end_point": {"row": 19, "column": 8}}, {"id": 8, "type": "string_literal", "text": "\"org/apache/http/client/methods/HttpRequestBase.h\"", "parent": 6, "children": [], "start_point": {"row": 19, "column": 9}, "end_point": {"row": 19, "column": 59}}, {"id": 9, "type": "declaration", "text": "using Org::Apache::Http::IHttpEntity;", "parent": 0, "children": [10, 11, 15], "start_point": {"row": 21, "column": 0}, "end_point": {"row": 21, "column": 37}}, {"id": 10, "type": "type_identifier", "text": "using", "parent": 9, "children": [], "start_point": {"row": 21, "column": 0}, "end_point": {"row": 21, "column": 5}}, {"id": 11, "type": "ERROR", "text": "Org::Apache::Http::", "parent": 9, "children": [12, 13, 14], "start_point": {"row": 21, "column": 6}, "end_point": {"row": 21, "column": 25}}, {"id": 12, "type": "identifier", "text": "Org", "parent": 11, "children": [], "start_point": {"row": 21, "column": 6}, "end_point": {"row": 21, "column": 9}}, {"id": 13, "type": "identifier", "text": "Apache", "parent": 11, "children": [], "start_point": {"row": 21, "column": 11}, "end_point": {"row": 21, "column": 17}}, {"id": 14, "type": "identifier", "text": "Http", "parent": 11, "children": [], "start_point": {"row": 21, "column": 19}, "end_point": {"row": 21, "column": 23}}, {"id": 15, "type": "identifier", "text": "IHttpEntity", "parent": 9, "children": [], "start_point": {"row": 21, "column": 25}, "end_point": {"row": 21, "column": 36}}, {"id": 16, "type": "function_definition", "text": "namespace Org {\nnamespace Apache {\nnamespace Http {\nnamespace Client {\nnamespace Methods {\n\n/**\n * Basic implementation of an HTTP request that can be modified.\n *\n * @author <a href=\"mailto:oleg at ural.ru\"><NAME></a>\n *\n * @version $Revision: 674186 $\n *\n * @since 4.0\n */\nclass HttpEntityEnclosingRequestBase\n : public HttpRequestBase\n , public IHttpEntityEnclosingRequest\n{\npublic:\n HttpEntityEnclosingRequestBase();\n\n virtual ~HttpEntityEnclosingRequestBase() {}\n\n CAR_INTERFACE_DECL()\n\n CARAPI SetEntity(\n /* [in] */ IHttpEntity* entity);\n\n CARAPI GetEntity(\n /* [out] */ IHttpEntity** entity);\n\n CARAPI ExpectContinue(\n /* [out] */ Boolean* result);\n\nprotected:\n CARAPI CloneImpl(\n /* [in] */ HttpEntityEnclosingRequestBase* dst);\n\nprivate:\n AutoPtr<IHttpEntity> mEntity;\n};\n\n} // namespace Methods\n} // namespace Client\n} // namespace Http\n} // namespace Apache\n}", "parent": 0, "children": [17, 18], "start_point": {"row": 23, "column": 0}, "end_point": {"row": 70, "column": 1}}, {"id": 17, "type": "type_identifier", "text": "namespace", "parent": 16, "children": [], "start_point": {"row": 23, "column": 0}, "end_point": {"row": 23, "column": 9}}, {"id": 18, "type": "identifier", "text": "Org", "parent": 16, "children": [], "start_point": {"row": 23, "column": 10}, "end_point": {"row": 23, "column": 13}}, {"id": 19, "type": "function_definition", "text": "namespace Apache {\nnamespace Http {\nnamespace Client {\nnamespace Methods {\n\n/**\n * Basic implementation of an HTTP request that can be modified.\n *\n * @author <a href=\"mailto:oleg at ural.ru\"><NAME></a>\n *\n * @version $Revision: 674186 $\n *\n * @since 4.0\n */\nclass HttpEntityEnclosingRequestBase\n : public HttpRequestBase\n , public IHttpEntityEnclosingRequest\n{\npublic:\n HttpEntityEnclosingRequestBase();\n\n virtual ~HttpEntityEnclosingRequestBase() {}\n\n CAR_INTERFACE_DECL()\n\n CARAPI SetEntity(\n /* [in] */ IHttpEntity* entity);\n\n CARAPI GetEntity(\n /* [out] */ IHttpEntity** entity);\n\n CARAPI ExpectContinue(\n /* [out] */ Boolean* result);\n\nprotected:\n CARAPI CloneImpl(\n /* [in] */ HttpEntityEnclosingRequestBase* dst);\n\nprivate:\n AutoPtr<IHttpEntity> mEntity;\n};\n\n} // namespace Methods\n} // namespace Client\n} // namespace Http\n}", "parent": 16, "children": [20, 21], "start_point": {"row": 24, "column": 0}, "end_point": {"row": 69, "column": 1}}, {"id": 20, "type": "type_identifier", "text": "namespace", "parent": 19, "children": [], "start_point": {"row": 24, "column": 0}, "end_point": {"row": 24, "column": 9}}, {"id": 21, "type": "identifier", "text": "Apache", "parent": 19, "children": [], "start_point": {"row": 24, "column": 10}, "end_point": {"row": 24, "column": 16}}, {"id": 22, "type": "function_definition", "text": "namespace Http {\nnamespace Client {\nnamespace Methods {\n\n/**\n * Basic implementation of an HTTP request that can be modified.\n *\n * @author <a href=\"mailto:oleg at ural.ru\"><NAME></a>\n *\n * @version $Revision: 674186 $\n *\n * @since 4.0\n */\nclass HttpEntityEnclosingRequestBase\n : public HttpRequestBase\n , public IHttpEntityEnclosingRequest\n{\npublic:\n HttpEntityEnclosingRequestBase();\n\n virtual ~HttpEntityEnclosingRequestBase() {}\n\n CAR_INTERFACE_DECL()\n\n CARAPI SetEntity(\n /* [in] */ IHttpEntity* entity);\n\n CARAPI GetEntity(\n /* [out] */ IHttpEntity** entity);\n\n CARAPI ExpectContinue(\n /* [out] */ Boolean* result);\n\nprotected:\n CARAPI CloneImpl(\n /* [in] */ HttpEntityEnclosingRequestBase* dst);\n\nprivate:\n AutoPtr<IHttpEntity> mEntity;\n};\n\n} // namespace Methods\n} // namespace Client\n}", "parent": 19, "children": [23, 24], "start_point": {"row": 25, "column": 0}, "end_point": {"row": 68, "column": 1}}, {"id": 23, "type": "type_identifier", "text": "namespace", "parent": 22, "children": [], "start_point": {"row": 25, "column": 0}, "end_point": {"row": 25, "column": 9}}, {"id": 24, "type": "identifier", "text": "Http", "parent": 22, "children": [], "start_point": {"row": 25, "column": 10}, "end_point": {"row": 25, "column": 14}}, {"id": 25, "type": "function_definition", "text": "namespace Client {\nnamespace Methods {\n\n/**\n * Basic implementation of an HTTP request that can be modified.\n *\n * @author <a href=\"mailto:oleg at ural.ru\"><NAME></a>\n *\n * @version $Revision: 674186 $\n *\n * @since 4.0\n */\nclass HttpEntityEnclosingRequestBase\n : public HttpRequestBase\n , public IHttpEntityEnclosingRequest\n{\npublic:\n HttpEntityEnclosingRequestBase();\n\n virtual ~HttpEntityEnclosingRequestBase() {}\n\n CAR_INTERFACE_DECL()\n\n CARAPI SetEntity(\n /* [in] */ IHttpEntity* entity);\n\n CARAPI GetEntity(\n /* [out] */ IHttpEntity** entity);\n\n CARAPI ExpectContinue(\n /* [out] */ Boolean* result);\n\nprotected:\n CARAPI CloneImpl(\n /* [in] */ HttpEntityEnclosingRequestBase* dst);\n\nprivate:\n AutoPtr<IHttpEntity> mEntity;\n};\n\n} // namespace Methods\n}", "parent": 22, "children": [26, 27], "start_point": {"row": 26, "column": 0}, "end_point": {"row": 67, "column": 1}}, {"id": 26, "type": "type_identifier", "text": "namespace", "parent": 25, "children": [], "start_point": {"row": 26, "column": 0}, "end_point": {"row": 26, "column": 9}}, {"id": 27, "type": "identifier", "text": "Client", "parent": 25, "children": [], "start_point": {"row": 26, "column": 10}, "end_point": {"row": 26, "column": 16}}, {"id": 28, "type": "function_definition", "text": "namespace Methods {\n\n/**\n * Basic implementation of an HTTP request that can be modified.\n *\n * @author <a href=\"mailto:oleg at ural.ru\"><NAME></a>\n *\n * @version $Revision: 674186 $\n *\n * @since 4.0\n */\nclass HttpEntityEnclosingRequestBase\n : public HttpRequestBase\n , public IHttpEntityEnclosingRequest\n{\npublic:\n HttpEntityEnclosingRequestBase();\n\n virtual ~HttpEntityEnclosingRequestBase() {}\n\n CAR_INTERFACE_DECL()\n\n CARAPI SetEntity(\n /* [in] */ IHttpEntity* entity);\n\n CARAPI GetEntity(\n /* [out] */ IHttpEntity** entity);\n\n CARAPI ExpectContinue(\n /* [out] */ Boolean* result);\n\nprotected:\n CARAPI CloneImpl(\n /* [in] */ HttpEntityEnclosingRequestBase* dst);\n\nprivate:\n AutoPtr<IHttpEntity> mEntity;\n};\n\n}", "parent": 25, "children": [29, 30], "start_point": {"row": 27, "column": 0}, "end_point": {"row": 66, "column": 1}}, {"id": 29, "type": "type_identifier", "text": "namespace", "parent": 28, "children": [], "start_point": {"row": 27, "column": 0}, "end_point": {"row": 27, "column": 9}}, {"id": 30, "type": "identifier", "text": "Methods", "parent": 28, "children": [], "start_point": {"row": 27, "column": 10}, "end_point": {"row": 27, "column": 17}}, {"id": 31, "type": "ERROR", "text": "class HttpEntityEnclosingRequestBase\n : public HttpRequestBase\n , public IHttpEntityEnclosingRequest", "parent": 28, "children": [32, 33, 35], "start_point": {"row": 38, "column": 0}, "end_point": {"row": 40, "column": 40}}, {"id": 32, "type": "identifier", "text": "HttpEntityEnclosingRequestBase", "parent": 31, "children": [], "start_point": {"row": 38, "column": 6}, "end_point": {"row": 38, "column": 36}}, {"id": 33, "type": "ERROR", "text": ": public HttpRequestBase", "parent": 31, "children": [34], "start_point": {"row": 39, "column": 4}, "end_point": {"row": 39, "column": 28}}, {"id": 34, "type": "identifier", "text": "HttpRequestBase", "parent": 33, "children": [], "start_point": {"row": 39, "column": 13}, "end_point": {"row": 39, "column": 28}}, {"id": 35, "type": "identifier", "text": "IHttpEntityEnclosingRequest", "parent": 31, "children": [], "start_point": {"row": 40, "column": 13}, "end_point": {"row": 40, "column": 40}}, {"id": 36, "type": "labeled_statement", "text": "public:\n HttpEntityEnclosingRequestBase();", "parent": 28, "children": [], "start_point": {"row": 42, "column": 0}, "end_point": {"row": 43, "column": 37}}, {"id": 37, "type": "call_expression", "text": "HttpEntityEnclosingRequestBase()", "parent": 36, "children": [38, 39], "start_point": {"row": 43, "column": 4}, "end_point": {"row": 43, "column": 36}}, {"id": 38, "type": "identifier", "text": "HttpEntityEnclosingRequestBase", "parent": 37, "children": [], "start_point": {"row": 43, "column": 4}, "end_point": {"row": 43, "column": 34}}, {"id": 39, "type": "argument_list", "text": "()", "parent": 37, "children": [], "start_point": {"row": 43, "column": 34}, "end_point": {"row": 43, "column": 36}}, {"id": 40, "type": "function_definition", "text": "virtual ~HttpEntityEnclosingRequestBase() {}", "parent": 28, "children": [41, 42, 44], "start_point": {"row": 45, "column": 4}, "end_point": {"row": 45, "column": 48}}, {"id": 41, "type": "type_identifier", "text": "virtual", "parent": 40, "children": [], "start_point": {"row": 45, "column": 4}, "end_point": {"row": 45, "column": 11}}, {"id": 42, "type": "ERROR", "text": "~", "parent": 40, "children": [43], "start_point": {"row": 45, "column": 12}, "end_point": {"row": 45, "column": 13}}, {"id": 43, "type": "~", "text": "~", "parent": 42, "children": [], "start_point": {"row": 45, "column": 12}, "end_point": {"row": 45, "column": 13}}, {"id": 44, "type": "function_declarator", "text": "HttpEntityEnclosingRequestBase()", "parent": 40, "children": [45, 46], "start_point": {"row": 45, "column": 13}, "end_point": {"row": 45, "column": 45}}, {"id": 45, "type": "identifier", "text": "HttpEntityEnclosingRequestBase", "parent": 44, "children": [], "start_point": {"row": 45, "column": 13}, "end_point": {"row": 45, "column": 43}}, {"id": 46, "type": "parameter_list", "text": "()", "parent": 44, "children": [], "start_point": {"row": 45, "column": 43}, "end_point": {"row": 45, "column": 45}}, {"id": 47, "type": "call_expression", "text": "CAR_INTERFACE_DECL()", "parent": 28, "children": [48, 49], "start_point": {"row": 47, "column": 4}, "end_point": {"row": 47, "column": 24}}, {"id": 48, "type": "identifier", "text": "CAR_INTERFACE_DECL", "parent": 47, "children": [], "start_point": {"row": 47, "column": 4}, "end_point": {"row": 47, "column": 22}}, {"id": 49, "type": "argument_list", "text": "()", "parent": 47, "children": [], "start_point": {"row": 47, "column": 22}, "end_point": {"row": 47, "column": 24}}, {"id": 50, "type": "declaration", "text": "CARAPI SetEntity(\n /* [in] */ IHttpEntity* entity);", "parent": 28, "children": [51, 52], "start_point": {"row": 49, "column": 4}, "end_point": {"row": 50, "column": 40}}, {"id": 51, "type": "type_identifier", "text": "CARAPI", "parent": 50, "children": [], "start_point": {"row": 49, "column": 4}, "end_point": {"row": 49, "column": 10}}, {"id": 52, "type": "function_declarator", "text": "SetEntity(\n /* [in] */ IHttpEntity* entity)", "parent": 50, "children": [53, 54], "start_point": {"row": 49, "column": 11}, "end_point": {"row": 50, "column": 39}}, {"id": 53, "type": "identifier", "text": "SetEntity", "parent": 52, "children": [], "start_point": {"row": 49, "column": 11}, "end_point": {"row": 49, "column": 20}}, {"id": 54, "type": "parameter_list", "text": "(\n /* [in] */ IHttpEntity* entity)", "parent": 52, "children": [55], "start_point": {"row": 49, "column": 20}, "end_point": {"row": 50, "column": 39}}, {"id": 55, "type": "parameter_declaration", "text": "IHttpEntity* entity", "parent": 54, "children": [56, 57], "start_point": {"row": 50, "column": 19}, "end_point": {"row": 50, "column": 38}}, {"id": 56, "type": "type_identifier", "text": "IHttpEntity", "parent": 55, "children": [], "start_point": {"row": 50, "column": 19}, "end_point": {"row": 50, "column": 30}}, {"id": 57, "type": "pointer_declarator", "text": "* entity", "parent": 55, "children": [58, 59], "start_point": {"row": 50, "column": 30}, "end_point": {"row": 50, "column": 38}}, {"id": 58, "type": "*", "text": "*", "parent": 57, "children": [], "start_point": {"row": 50, "column": 30}, "end_point": {"row": 50, "column": 31}}, {"id": 59, "type": "identifier", "text": "entity", "parent": 57, "children": [], "start_point": {"row": 50, "column": 32}, "end_point": {"row": 50, "column": 38}}, {"id": 60, "type": "declaration", "text": "CARAPI GetEntity(\n /* [out] */ IHttpEntity** entity);", "parent": 28, "children": [61, 62], "start_point": {"row": 52, "column": 4}, "end_point": {"row": 53, "column": 42}}, {"id": 61, "type": "type_identifier", "text": "CARAPI", "parent": 60, "children": [], "start_point": {"row": 52, "column": 4}, "end_point": {"row": 52, "column": 10}}, {"id": 62, "type": "function_declarator", "text": "GetEntity(\n /* [out] */ IHttpEntity** entity)", "parent": 60, "children": [63, 64], "start_point": {"row": 52, "column": 11}, "end_point": {"row": 53, "column": 41}}, {"id": 63, "type": "identifier", "text": "GetEntity", "parent": 62, "children": [], "start_point": {"row": 52, "column": 11}, "end_point": {"row": 52, "column": 20}}, {"id": 64, "type": "parameter_list", "text": "(\n /* [out] */ IHttpEntity** entity)", "parent": 62, "children": [65], "start_point": {"row": 52, "column": 20}, "end_point": {"row": 53, "column": 41}}, {"id": 65, "type": "parameter_declaration", "text": "IHttpEntity** entity", "parent": 64, "children": [66, 67], "start_point": {"row": 53, "column": 20}, "end_point": {"row": 53, "column": 40}}, {"id": 66, "type": "type_identifier", "text": "IHttpEntity", "parent": 65, "children": [], "start_point": {"row": 53, "column": 20}, "end_point": {"row": 53, "column": 31}}, {"id": 67, "type": "pointer_declarator", "text": "** entity", "parent": 65, "children": [68, 69], "start_point": {"row": 53, "column": 31}, "end_point": {"row": 53, "column": 40}}, {"id": 68, "type": "*", "text": "*", "parent": 67, "children": [], "start_point": {"row": 53, "column": 31}, "end_point": {"row": 53, "column": 32}}, {"id": 69, "type": "pointer_declarator", "text": "* entity", "parent": 67, "children": [70, 71], "start_point": {"row": 53, "column": 32}, "end_point": {"row": 53, "column": 40}}, {"id": 70, "type": "*", "text": "*", "parent": 69, "children": [], "start_point": {"row": 53, "column": 32}, "end_point": {"row": 53, "column": 33}}, {"id": 71, "type": "identifier", "text": "entity", "parent": 69, "children": [], "start_point": {"row": 53, "column": 34}, "end_point": {"row": 53, "column": 40}}, {"id": 72, "type": "declaration", "text": "CARAPI ExpectContinue(\n /* [out] */ Boolean* result);", "parent": 28, "children": [73, 74], "start_point": {"row": 55, "column": 4}, "end_point": {"row": 56, "column": 37}}, {"id": 73, "type": "type_identifier", "text": "CARAPI", "parent": 72, "children": [], "start_point": {"row": 55, "column": 4}, "end_point": {"row": 55, "column": 10}}, {"id": 74, "type": "function_declarator", "text": "ExpectContinue(\n /* [out] */ Boolean* result)", "parent": 72, "children": [75, 76], "start_point": {"row": 55, "column": 11}, "end_point": {"row": 56, "column": 36}}, {"id": 75, "type": "identifier", "text": "ExpectContinue", "parent": 74, "children": [], "start_point": {"row": 55, "column": 11}, "end_point": {"row": 55, "column": 25}}, {"id": 76, "type": "parameter_list", "text": "(\n /* [out] */ Boolean* result)", "parent": 74, "children": [77], "start_point": {"row": 55, "column": 25}, "end_point": {"row": 56, "column": 36}}, {"id": 77, "type": "parameter_declaration", "text": "Boolean* result", "parent": 76, "children": [78, 79], "start_point": {"row": 56, "column": 20}, "end_point": {"row": 56, "column": 35}}, {"id": 78, "type": "type_identifier", "text": "Boolean", "parent": 77, "children": [], "start_point": {"row": 56, "column": 20}, "end_point": {"row": 56, "column": 27}}, {"id": 79, "type": "pointer_declarator", "text": "* result", "parent": 77, "children": [80, 81], "start_point": {"row": 56, "column": 27}, "end_point": {"row": 56, "column": 35}}, {"id": 80, "type": "*", "text": "*", "parent": 79, "children": [], "start_point": {"row": 56, "column": 27}, "end_point": {"row": 56, "column": 28}}, {"id": 81, "type": "identifier", "text": "result", "parent": 79, "children": [], "start_point": {"row": 56, "column": 29}, "end_point": {"row": 56, "column": 35}}, {"id": 82, "type": "labeled_statement", "text": "protected:\n CARAPI CloneImpl(\n /* [in] */ HttpEntityEnclosingRequestBase* dst);", "parent": 28, "children": [83], "start_point": {"row": 58, "column": 0}, "end_point": {"row": 60, "column": 56}}, {"id": 83, "type": "declaration", "text": "CARAPI CloneImpl(\n /* [in] */ HttpEntityEnclosingRequestBase* dst);", "parent": 82, "children": [84, 85], "start_point": {"row": 59, "column": 4}, "end_point": {"row": 60, "column": 56}}, {"id": 84, "type": "type_identifier", "text": "CARAPI", "parent": 83, "children": [], "start_point": {"row": 59, "column": 4}, "end_point": {"row": 59, "column": 10}}, {"id": 85, "type": "function_declarator", "text": "CloneImpl(\n /* [in] */ HttpEntityEnclosingRequestBase* dst)", "parent": 83, "children": [86, 87], "start_point": {"row": 59, "column": 11}, "end_point": {"row": 60, "column": 55}}, {"id": 86, "type": "identifier", "text": "CloneImpl", "parent": 85, "children": [], "start_point": {"row": 59, "column": 11}, "end_point": {"row": 59, "column": 20}}, {"id": 87, "type": "parameter_list", "text": "(\n /* [in] */ HttpEntityEnclosingRequestBase* dst)", "parent": 85, "children": [88], "start_point": {"row": 59, "column": 20}, "end_point": {"row": 60, "column": 55}}, {"id": 88, "type": "parameter_declaration", "text": "HttpEntityEnclosingRequestBase* dst", "parent": 87, "children": [89, 90], "start_point": {"row": 60, "column": 19}, "end_point": {"row": 60, "column": 54}}, {"id": 89, "type": "type_identifier", "text": "HttpEntityEnclosingRequestBase", "parent": 88, "children": [], "start_point": {"row": 60, "column": 19}, "end_point": {"row": 60, "column": 49}}, {"id": 90, "type": "pointer_declarator", "text": "* dst", "parent": 88, "children": [91, 92], "start_point": {"row": 60, "column": 49}, "end_point": {"row": 60, "column": 54}}, {"id": 91, "type": "*", "text": "*", "parent": 90, "children": [], "start_point": {"row": 60, "column": 49}, "end_point": {"row": 60, "column": 50}}, {"id": 92, "type": "identifier", "text": "dst", "parent": 90, "children": [], "start_point": {"row": 60, "column": 51}, "end_point": {"row": 60, "column": 54}}, {"id": 93, "type": "labeled_statement", "text": "private:\n AutoPtr<IHttpEntity> mEntity;", "parent": 28, "children": [], "start_point": {"row": 62, "column": 0}, "end_point": {"row": 63, "column": 33}}, {"id": 94, "type": "binary_expression", "text": "AutoPtr<IHttpEntity> mEntity", "parent": 93, "children": [95, 99, 100], "start_point": {"row": 63, "column": 4}, "end_point": {"row": 63, "column": 32}}, {"id": 95, "type": "binary_expression", "text": "AutoPtr<IHttpEntity", "parent": 94, "children": [96, 97, 98], "start_point": {"row": 63, "column": 4}, "end_point": {"row": 63, "column": 23}}, {"id": 96, "type": "identifier", "text": "AutoPtr", "parent": 95, "children": [], "start_point": {"row": 63, "column": 4}, "end_point": {"row": 63, "column": 11}}, {"id": 97, "type": "<", "text": "<", "parent": 95, "children": [], "start_point": {"row": 63, "column": 11}, "end_point": {"row": 63, "column": 12}}, {"id": 98, "type": "identifier", "text": "IHttpEntity", "parent": 95, "children": [], "start_point": {"row": 63, "column": 12}, "end_point": {"row": 63, "column": 23}}, {"id": 99, "type": ">", "text": ">", "parent": 94, "children": [], "start_point": {"row": 63, "column": 23}, "end_point": {"row": 63, "column": 24}}, {"id": 100, "type": "identifier", "text": "mEntity", "parent": 94, "children": [], "start_point": {"row": 63, "column": 25}, "end_point": {"row": 63, "column": 32}}, {"id": 101, "type": "#endif", "text": "#endif", "parent": 0, "children": [], "start_point": {"row": 72, "column": 0}, "end_point": {"row": 72, "column": 6}}]}, "node_categories": {"declarations": {"functions": [16, 19, 22, 25, 28, 40, 44, 52, 62, 74, 85], "variables": [9, 50, 55, 60, 65, 72, 77, 83, 88], "classes": [], "imports": [6, 7], "modules": [], "enums": []}, "statements": {"expressions": [37, 47, 94, 95], "assignments": [], "loops": [], "conditionals": [0, 1, 2, 5, 10, 12, 13, 14, 15, 17, 18, 20, 21, 23, 24, 26, 27, 29, 30, 32, 34, 35, 38, 41, 45, 48, 51, 53, 56, 59, 61, 63, 66, 71, 73, 75, 78, 81, 84, 86, 89, 92, 96, 98, 100, 101], "returns": [], "exceptions": []}, "expressions": {"calls": [], "literals": [8], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [{"node_id": 16, "universal_type": "function", "name": "HttpEntityEnclosingRequestBase", "text_snippet": "namespace Org {\nnamespace Apache {\nnamespace Http {\nnamespace Client {\nnamespace Methods {\n\n/**\n * B"}, {"node_id": 19, "universal_type": "function", "name": "HttpEntityEnclosingRequestBase", "text_snippet": "namespace Apache {\nnamespace Http {\nnamespace Client {\nnamespace Methods {\n\n/**\n * Basic implementat"}, {"node_id": 22, "universal_type": "function", "name": "HttpEntityEnclosingRequestBase", "text_snippet": "namespace Http {\nnamespace Client {\nnamespace Methods {\n\n/**\n * Basic implementation of an HTTP requ"}, {"node_id": 25, "universal_type": "function", "name": "HttpEntityEnclosingRequestBase", "text_snippet": "namespace Client {\nnamespace Methods {\n\n/**\n * Basic implementation of an HTTP request that can be m"}, {"node_id": 28, "universal_type": "function", "name": "HttpEntityEnclosingRequestBase", "text_snippet": "namespace Methods {\n\n/**\n * Basic implementation of an HTTP request that can be modified.\n *\n * @aut"}, {"node_id": 40, "universal_type": "function", "name": "unknown", "text_snippet": "virtual ~HttpEntityEnclosingRequestBase() {}"}, {"node_id": 44, "universal_type": "function", "name": "unknown", "text_snippet": "HttpEntityEnclosingRequestBase()"}, {"node_id": 52, "universal_type": "function", "name": "unknown", "text_snippet": "SetEntity(\n /* [in] */ IHttpEntity* entity)"}, {"node_id": 62, "universal_type": "function", "name": "unknown", "text_snippet": "GetEntity(\n /* [out] */ IHttpEntity** entity)"}, {"node_id": 74, "universal_type": "function", "name": "unknown", "text_snippet": "ExpectContinue(\n /* [out] */ Boolean* result)"}, {"node_id": 85, "universal_type": "function", "name": "unknown", "text_snippet": "CloneImpl(\n /* [in] */ HttpEntityEnclosingRequestBase* dst)"}], "class_declarations": [], "import_statements": [{"node_id": 6, "text": "#include \"org/apache/http/client/methods/HttpRequestBase.h\"\n"}, {"node_id": 7, "text": "#include"}]}, "original_source_code": "//=========================================================================\n// Copyright (C) 2012 The Elastos Open Source Project\n//\n// Licensed under the Apache License, Version 2.0 (the \"License\");\n// you may not use this file except in compliance with the License.\n// You may obtain a copy of the License at\n//\n// http://www.apache.org/licenses/LICENSE-2.0\n//\n// Unless required by applicable law or agreed to in writing, software\n// distributed under the License is distributed on an \"AS IS\" BASIS,\n// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n// See the License for the specific language governing permissions and\n// limitations under the License.\n//=========================================================================\n\n#ifndef __ORG_APACHE_HTTP_CLIENT_METHODS_HTTPENTITYENCLOSINGREQUESTBASE_H__\n#define __ORG_APACHE_HTTP_CLIENT_METHODS_HTTPENTITYENCLOSINGREQUESTBASE_H__\n\n#include \"org/apache/http/client/methods/HttpRequestBase.h\"\n\nusing Org::Apache::Http::IHttpEntity;\n\nnamespace Org {\nnamespace Apache {\nnamespace Http {\nnamespace Client {\nnamespace Methods {\n\n/**\n * Basic implementation of an HTTP request that can be modified.\n *\n * @author <a href=\"mailto:oleg at ural.ru\"><NAME></a>\n *\n * @version $Revision: 674186 $\n *\n * @since 4.0\n */\nclass HttpEntityEnclosingRequestBase\n : public HttpRequestBase\n , public IHttpEntityEnclosingRequest\n{\npublic:\n HttpEntityEnclosingRequestBase();\n\n virtual ~HttpEntityEnclosingRequestBase() {}\n\n CAR_INTERFACE_DECL()\n\n CARAPI SetEntity(\n /* [in] */ IHttpEntity* entity);\n\n CARAPI GetEntity(\n /* [out] */ IHttpEntity** entity);\n\n CARAPI ExpectContinue(\n /* [out] */ Boolean* result);\n\nprotected:\n CARAPI CloneImpl(\n /* [in] */ HttpEntityEnclosingRequestBase* dst);\n\nprivate:\n AutoPtr<IHttpEntity> mEntity;\n};\n\n} // namespace Methods\n} // namespace Client\n} // namespace Http\n} // namespace Apache\n} // namespace Org\n\n#endif // __ORG_APACHE_HTTP_CLIENT_METHODS_HTTPENTITYENCLOSINGREQUESTBASE_H__\n"}
80,066
c
/* See LICENSE for license details */ /* Module: feed_page.c Description: History of visited pages. */ #include "feed_os.h" #include "feed_cfg.h" #include "feed_prompt_iterator.h" #include "feed_text_iterator.h" #include "feed_screen_iterator.h" #include "feed_view.h" #include "feed_list.h" #include "feed_page.h" #include "feed_client.h" #include "feed_heap.h" void feed_page_init( struct feed_page_history * const p_page, struct feed_client * const p_client) { p_page->p_client = p_client; feed_list_init( &( p_page->o_pages)); p_page->i_page_count = 0ul; } void feed_page_cleanup( struct feed_page_history * const p_page) { feed_page_reset( p_page); } void feed_page_reset( struct feed_page_history * const p_page) { struct feed_view_descriptor o_view_descriptor; while ( feed_page_pop( p_page, &( o_view_descriptor))); } void feed_page_push( struct feed_page_history * const p_page, struct feed_view_descriptor const * const p_view_descriptor) { struct feed_page_node * p_page_node; struct feed_heap * p_heap; p_heap = feed_client_get_heap( p_page->p_client); p_page_node = (struct feed_page_node *)( feed_heap_alloc( p_heap, (unsigned long int)( sizeof( struct feed_page_node)))); if ( p_page_node) { feed_list_init( &( p_page_node->o_list)); p_page_node->o_view_descriptor = *( p_view_descriptor); feed_list_join( &( p_page_node->o_list), &( p_page->o_pages)); p_page->i_page_count ++; } } char feed_page_pop( struct feed_page_history * const p_page, struct feed_view_descriptor * const p_view_descriptor) { char b_result; if ( p_page->i_page_count) { struct feed_page_node * p_page_node; struct feed_heap * p_heap; p_heap = feed_client_get_heap( p_page->p_client); p_page_node = (struct feed_page_node *)( p_page->o_pages.p_prev); feed_list_join( &( p_page_node->o_list), &( p_page_node->o_list)); *( p_view_descriptor) = p_page_node->o_view_descriptor; feed_heap_free( p_heap, (void *)( p_page_node)); p_page->i_page_count --; b_result = 1; } else { b_result = 0; } return b_result; }
20.25
136
(translation_unit) "/* See LICENSE for license details */\n\n/*\n\nModule: feed_page.c\n\nDescription:\n\n History of visited pages.\n\n*/\n\n#include "feed_os.h"\n\n#include "feed_cfg.h"\n\n#include "feed_prompt_iterator.h"\n\n#include "feed_text_iterator.h"\n\n#include "feed_screen_iterator.h"\n\n#include "feed_view.h"\n\n#include "feed_list.h"\n\n#include "feed_page.h"\n\n#include "feed_client.h"\n\n#include "feed_heap.h"\n\nvoid\nfeed_page_init(\n struct feed_page_history * const\n p_page,\n struct feed_client * const\n p_client)\n{\n p_page->p_client =\n p_client;\n\n feed_list_init(\n &(\n p_page->o_pages));\n\n p_page->i_page_count =\n 0ul;\n\n}\n\nvoid\nfeed_page_cleanup(\n struct feed_page_history * const\n p_page)\n{\n feed_page_reset(\n p_page);\n\n}\n\nvoid\nfeed_page_reset(\n struct feed_page_history * const\n p_page)\n{\n struct feed_view_descriptor\n o_view_descriptor;\n\n while (\n feed_page_pop(\n p_page,\n &(\n o_view_descriptor)));\n}\n\nvoid\nfeed_page_push(\n struct feed_page_history * const\n p_page,\n struct feed_view_descriptor const * const\n p_view_descriptor)\n{\n struct feed_page_node *\n p_page_node;\n\n struct feed_heap *\n p_heap;\n\n p_heap =\n feed_client_get_heap(\n p_page->p_client);\n\n p_page_node =\n (struct feed_page_node *)(\n feed_heap_alloc(\n p_heap,\n (unsigned long int)(\n sizeof(\n struct feed_page_node))));\n\n if (\n p_page_node)\n {\n feed_list_init(\n &(\n p_page_node->o_list));\n\n p_page_node->o_view_descriptor =\n *(\n p_view_descriptor);\n\n feed_list_join(\n &(\n p_page_node->o_list),\n &(\n p_page->o_pages));\n\n p_page->i_page_count ++;\n }\n}\n\nchar\nfeed_page_pop(\n struct feed_page_history * const\n p_page,\n struct feed_view_descriptor * const\n p_view_descriptor)\n{\n char\n b_result;\n\n if (\n p_page->i_page_count)\n {\n struct feed_page_node *\n p_page_node;\n\n struct feed_heap *\n p_heap;\n\n p_heap =\n feed_client_get_heap(\n p_page->p_client);\n\n p_page_node =\n (struct feed_page_node *)(\n p_page->o_pages.p_prev);\n\n feed_list_join(\n &(\n p_page_node->o_list),\n &(\n p_page_node->o_list));\n\n *(\n p_view_descriptor) =\n p_page_node->o_view_descriptor;\n\n feed_heap_free(\n p_heap,\n (void *)(\n p_page_node));\n\n p_page->i_page_count --;\n\n b_result =\n 1;\n }\n else\n {\n b_result =\n 0;\n }\n\n return\n b_result;\n\n}\n\n" (comment) "/* See LICENSE for license details */" (comment) "/*\n\nModule: feed_page.c\n\nDescription:\n\n History of visited pages.\n\n*/" (preproc_include) "#include "feed_os.h"\n" (#include) "#include" (string_literal) ""feed_os.h"" (") """ (string_content) "feed_os.h" (") """ (preproc_include) "#include "feed_cfg.h"\n" (#include) "#include" (string_literal) ""feed_cfg.h"" (") """ (string_content) "feed_cfg.h" (") """ (preproc_include) "#include "feed_prompt_iterator.h"\n" (#include) "#include" (string_literal) ""feed_prompt_iterator.h"" (") """ (string_content) "feed_prompt_iterator.h" (") """ (preproc_include) "#include "feed_text_iterator.h"\n" (#include) "#include" (string_literal) ""feed_text_iterator.h"" (") """ (string_content) "feed_text_iterator.h" (") """ (preproc_include) "#include "feed_screen_iterator.h"\n" (#include) "#include" (string_literal) ""feed_screen_iterator.h"" (") """ (string_content) "feed_screen_iterator.h" (") """ (preproc_include) "#include "feed_view.h"\n" (#include) "#include" (string_literal) ""feed_view.h"" (") """ (string_content) "feed_view.h" (") """ (preproc_include) "#include "feed_list.h"\n" (#include) "#include" (string_literal) ""feed_list.h"" (") """ (string_content) "feed_list.h" (") """ (preproc_include) "#include "feed_page.h"\n" (#include) "#include" (string_literal) ""feed_page.h"" (") """ (string_content) "feed_page.h" (") """ (preproc_include) "#include "feed_client.h"\n" (#include) "#include" (string_literal) ""feed_client.h"" (") """ (string_content) "feed_client.h" (") """ (preproc_include) "#include "feed_heap.h"\n" (#include) "#include" (string_literal) ""feed_heap.h"" (") """ (string_content) "feed_heap.h" (") """ (function_definition) "void\nfeed_page_init(\n struct feed_page_history * const\n p_page,\n struct feed_client * const\n p_client)\n{\n p_page->p_client =\n p_client;\n\n feed_list_init(\n &(\n p_page->o_pages));\n\n p_page->i_page_count =\n 0ul;\n\n}" (primitive_type) "void" (function_declarator) "feed_page_init(\n struct feed_page_history * const\n p_page,\n struct feed_client * const\n p_client)" (identifier) "feed_page_init" (parameter_list) "(\n struct feed_page_history * const\n p_page,\n struct feed_client * const\n p_client)" (() "(" (parameter_declaration) "struct feed_page_history * const\n p_page" (struct_specifier) "struct feed_page_history" (struct) "struct" (type_identifier) "feed_page_history" (pointer_declarator) "* const\n p_page" (*) "*" (type_qualifier) "const" (const) "const" (identifier) "p_page" (,) "," (parameter_declaration) "struct feed_client * const\n p_client" (struct_specifier) "struct feed_client" (struct) "struct" (type_identifier) "feed_client" (pointer_declarator) "* const\n p_client" (*) "*" (type_qualifier) "const" (const) "const" (identifier) "p_client" ()) ")" (compound_statement) "{\n p_page->p_client =\n p_client;\n\n feed_list_init(\n &(\n p_page->o_pages));\n\n p_page->i_page_count =\n 0ul;\n\n}" ({) "{" (expression_statement) "p_page->p_client =\n p_client;" (assignment_expression) "p_page->p_client =\n p_client" (field_expression) "p_page->p_client" (identifier) "p_page" (->) "->" (field_identifier) "p_client" (=) "=" (identifier) "p_client" (;) ";" (expression_statement) "feed_list_init(\n &(\n p_page->o_pages));" (call_expression) "feed_list_init(\n &(\n p_page->o_pages))" (identifier) "feed_list_init" (argument_list) "(\n &(\n p_page->o_pages))" (() "(" (pointer_expression) "&(\n p_page->o_pages)" (&) "&" (parenthesized_expression) "(\n p_page->o_pages)" (() "(" (field_expression) "p_page->o_pages" (identifier) "p_page" (->) "->" (field_identifier) "o_pages" ()) ")" ()) ")" (;) ";" (expression_statement) "p_page->i_page_count =\n 0ul;" (assignment_expression) "p_page->i_page_count =\n 0ul" (field_expression) "p_page->i_page_count" (identifier) "p_page" (->) "->" (field_identifier) "i_page_count" (=) "=" (number_literal) "0ul" (;) ";" (}) "}" (function_definition) "void\nfeed_page_cleanup(\n struct feed_page_history * const\n p_page)\n{\n feed_page_reset(\n p_page);\n\n}" (primitive_type) "void" (function_declarator) "feed_page_cleanup(\n struct feed_page_history * const\n p_page)" (identifier) "feed_page_cleanup" (parameter_list) "(\n struct feed_page_history * const\n p_page)" (() "(" (parameter_declaration) "struct feed_page_history * const\n p_page" (struct_specifier) "struct feed_page_history" (struct) "struct" (type_identifier) "feed_page_history" (pointer_declarator) "* const\n p_page" (*) "*" (type_qualifier) "const" (const) "const" (identifier) "p_page" ()) ")" (compound_statement) "{\n feed_page_reset(\n p_page);\n\n}" ({) "{" (expression_statement) "feed_page_reset(\n p_page);" (call_expression) "feed_page_reset(\n p_page)" (identifier) "feed_page_reset" (argument_list) "(\n p_page)" (() "(" (identifier) "p_page" ()) ")" (;) ";" (}) "}" (function_definition) "void\nfeed_page_reset(\n struct feed_page_history * const\n p_page)\n{\n struct feed_view_descriptor\n o_view_descriptor;\n\n while (\n feed_page_pop(\n p_page,\n &(\n o_view_descriptor)));\n}" (primitive_type) "void" (function_declarator) "feed_page_reset(\n struct feed_page_history * const\n p_page)" (identifier) "feed_page_reset" (parameter_list) "(\n struct feed_page_history * const\n p_page)" (() "(" (parameter_declaration) "struct feed_page_history * const\n p_page" (struct_specifier) "struct feed_page_history" (struct) "struct" (type_identifier) "feed_page_history" (pointer_declarator) "* const\n p_page" (*) "*" (type_qualifier) "const" (const) "const" (identifier) "p_page" ()) ")" (compound_statement) "{\n struct feed_view_descriptor\n o_view_descriptor;\n\n while (\n feed_page_pop(\n p_page,\n &(\n o_view_descriptor)));\n}" ({) "{" (declaration) "struct feed_view_descriptor\n o_view_descriptor;" (struct_specifier) "struct feed_view_descriptor" (struct) "struct" (type_identifier) "feed_view_descriptor" (identifier) "o_view_descriptor" (;) ";" (while_statement) "while (\n feed_page_pop(\n p_page,\n &(\n o_view_descriptor)));" (while) "while" (parenthesized_expression) "(\n feed_page_pop(\n p_page,\n &(\n o_view_descriptor)))" (() "(" (call_expression) "feed_page_pop(\n p_page,\n &(\n o_view_descriptor))" (identifier) "feed_page_pop" (argument_list) "(\n p_page,\n &(\n o_view_descriptor))" (() "(" (identifier) "p_page" (,) "," (pointer_expression) "&(\n o_view_descriptor)" (&) "&" (parenthesized_expression) "(\n o_view_descriptor)" (() "(" (identifier) "o_view_descriptor" ()) ")" ()) ")" ()) ")" (expression_statement) ";" (;) ";" (}) "}" (function_definition) "void\nfeed_page_push(\n struct feed_page_history * const\n p_page,\n struct feed_view_descriptor const * const\n p_view_descriptor)\n{\n struct feed_page_node *\n p_page_node;\n\n struct feed_heap *\n p_heap;\n\n p_heap =\n feed_client_get_heap(\n p_page->p_client);\n\n p_page_node =\n (struct feed_page_node *)(\n feed_heap_alloc(\n p_heap,\n (unsigned long int)(\n sizeof(\n struct feed_page_node))));\n\n if (\n p_page_node)\n {\n feed_list_init(\n &(\n p_page_node->o_list));\n\n p_page_node->o_view_descriptor =\n *(\n p_view_descriptor);\n\n feed_list_join(\n &(\n p_page_node->o_list),\n &(\n p_page->o_pages));\n\n p_page->i_page_count ++;\n }\n}" (primitive_type) "void" (function_declarator) "feed_page_push(\n struct feed_page_history * const\n p_page,\n struct feed_view_descriptor const * const\n p_view_descriptor)" (identifier) "feed_page_push" (parameter_list) "(\n struct feed_page_history * const\n p_page,\n struct feed_view_descriptor const * const\n p_view_descriptor)" (() "(" (parameter_declaration) "struct feed_page_history * const\n p_page" (struct_specifier) "struct feed_page_history" (struct) "struct" (type_identifier) "feed_page_history" (pointer_declarator) "* const\n p_page" (*) "*" (type_qualifier) "const" (const) "const" (identifier) "p_page" (,) "," (parameter_declaration) "struct feed_view_descriptor const * const\n p_view_descriptor" (struct_specifier) "struct feed_view_descriptor" (struct) "struct" (type_identifier) "feed_view_descriptor" (type_qualifier) "const" (const) "const" (pointer_declarator) "* const\n p_view_descriptor" (*) "*" (type_qualifier) "const" (const) "const" (identifier) "p_view_descriptor" ()) ")" (compound_statement) "{\n struct feed_page_node *\n p_page_node;\n\n struct feed_heap *\n p_heap;\n\n p_heap =\n feed_client_get_heap(\n p_page->p_client);\n\n p_page_node =\n (struct feed_page_node *)(\n feed_heap_alloc(\n p_heap,\n (unsigned long int)(\n sizeof(\n struct feed_page_node))));\n\n if (\n p_page_node)\n {\n feed_list_init(\n &(\n p_page_node->o_list));\n\n p_page_node->o_view_descriptor =\n *(\n p_view_descriptor);\n\n feed_list_join(\n &(\n p_page_node->o_list),\n &(\n p_page->o_pages));\n\n p_page->i_page_count ++;\n }\n}" ({) "{" (declaration) "struct feed_page_node *\n p_page_node;" (struct_specifier) "struct feed_page_node" (struct) "struct" (type_identifier) "feed_page_node" (pointer_declarator) "*\n p_page_node" (*) "*" (identifier) "p_page_node" (;) ";" (declaration) "struct feed_heap *\n p_heap;" (struct_specifier) "struct feed_heap" (struct) "struct" (type_identifier) "feed_heap" (pointer_declarator) "*\n p_heap" (*) "*" (identifier) "p_heap" (;) ";" (expression_statement) "p_heap =\n feed_client_get_heap(\n p_page->p_client);" (assignment_expression) "p_heap =\n feed_client_get_heap(\n p_page->p_client)" (identifier) "p_heap" (=) "=" (call_expression) "feed_client_get_heap(\n p_page->p_client)" (identifier) "feed_client_get_heap" (argument_list) "(\n p_page->p_client)" (() "(" (field_expression) "p_page->p_client" (identifier) "p_page" (->) "->" (field_identifier) "p_client" ()) ")" (;) ";" (expression_statement) "p_page_node =\n (struct feed_page_node *)(\n feed_heap_alloc(\n p_heap,\n (unsigned long int)(\n sizeof(\n struct feed_page_node))));" (assignment_expression) "p_page_node =\n (struct feed_page_node *)(\n feed_heap_alloc(\n p_heap,\n (unsigned long int)(\n sizeof(\n struct feed_page_node))))" (identifier) "p_page_node" (=) "=" (cast_expression) "(struct feed_page_node *)(\n feed_heap_alloc(\n p_heap,\n (unsigned long int)(\n sizeof(\n struct feed_page_node))))" (() "(" (type_descriptor) "struct feed_page_node *" (struct_specifier) "struct feed_page_node" (struct) "struct" (type_identifier) "feed_page_node" (abstract_pointer_declarator) "*" (*) "*" ()) ")" (parenthesized_expression) "(\n feed_heap_alloc(\n p_heap,\n (unsigned long int)(\n sizeof(\n struct feed_page_node))))" (() "(" (call_expression) "feed_heap_alloc(\n p_heap,\n (unsigned long int)(\n sizeof(\n struct feed_page_node)))" (identifier) "feed_heap_alloc" (argument_list) "(\n p_heap,\n (unsigned long int)(\n sizeof(\n struct feed_page_node)))" (() "(" (identifier) "p_heap" (,) "," (cast_expression) "(unsigned long int)(\n sizeof(\n struct feed_page_node))" (() "(" (type_descriptor) "unsigned long int" (sized_type_specifier) "unsigned long int" (unsigned) "unsigned" (long) "long" (primitive_type) "int" ()) ")" (parenthesized_expression) "(\n sizeof(\n struct feed_page_node))" (() "(" (sizeof_expression) "sizeof(\n struct feed_page_node)" (sizeof) "sizeof" (() "(" (type_descriptor) "struct feed_page_node" (struct_specifier) "struct feed_page_node" (struct) "struct" (type_identifier) "feed_page_node" ()) ")" ()) ")" ()) ")" ()) ")" (;) ";" (if_statement) "if (\n p_page_node)\n {\n feed_list_init(\n &(\n p_page_node->o_list));\n\n p_page_node->o_view_descriptor =\n *(\n p_view_descriptor);\n\n feed_list_join(\n &(\n p_page_node->o_list),\n &(\n p_page->o_pages));\n\n p_page->i_page_count ++;\n }" (if) "if" (parenthesized_expression) "(\n p_page_node)" (() "(" (identifier) "p_page_node" ()) ")" (compound_statement) "{\n feed_list_init(\n &(\n p_page_node->o_list));\n\n p_page_node->o_view_descriptor =\n *(\n p_view_descriptor);\n\n feed_list_join(\n &(\n p_page_node->o_list),\n &(\n p_page->o_pages));\n\n p_page->i_page_count ++;\n }" ({) "{" (expression_statement) "feed_list_init(\n &(\n p_page_node->o_list));" (call_expression) "feed_list_init(\n &(\n p_page_node->o_list))" (identifier) "feed_list_init" (argument_list) "(\n &(\n p_page_node->o_list))" (() "(" (pointer_expression) "&(\n p_page_node->o_list)" (&) "&" (parenthesized_expression) "(\n p_page_node->o_list)" (() "(" (field_expression) "p_page_node->o_list" (identifier) "p_page_node" (->) "->" (field_identifier) "o_list" ()) ")" ()) ")" (;) ";" (expression_statement) "p_page_node->o_view_descriptor =\n *(\n p_view_descriptor);" (assignment_expression) "p_page_node->o_view_descriptor =\n *(\n p_view_descriptor)" (field_expression) "p_page_node->o_view_descriptor" (identifier) "p_page_node" (->) "->" (field_identifier) "o_view_descriptor" (=) "=" (pointer_expression) "*(\n p_view_descriptor)" (*) "*" (parenthesized_expression) "(\n p_view_descriptor)" (() "(" (identifier) "p_view_descriptor" ()) ")" (;) ";" (expression_statement) "feed_list_join(\n &(\n p_page_node->o_list),\n &(\n p_page->o_pages));" (call_expression) "feed_list_join(\n &(\n p_page_node->o_list),\n &(\n p_page->o_pages))" (identifier) "feed_list_join" (argument_list) "(\n &(\n p_page_node->o_list),\n &(\n p_page->o_pages))" (() "(" (pointer_expression) "&(\n p_page_node->o_list)" (&) "&" (parenthesized_expression) "(\n p_page_node->o_list)" (() "(" (field_expression) "p_page_node->o_list" (identifier) "p_page_node" (->) "->" (field_identifier) "o_list" ()) ")" (,) "," (pointer_expression) "&(\n p_page->o_pages)" (&) "&" (parenthesized_expression) "(\n p_page->o_pages)" (() "(" (field_expression) "p_page->o_pages" (identifier) "p_page" (->) "->" (field_identifier) "o_pages" ()) ")" ()) ")" (;) ";" (expression_statement) "p_page->i_page_count ++;" (update_expression) "p_page->i_page_count ++" (field_expression) "p_page->i_page_count" (identifier) "p_page" (->) "->" (field_identifier) "i_page_count" (++) "++" (;) ";" (}) "}" (}) "}" (function_definition) "char\nfeed_page_pop(\n struct feed_page_history * const\n p_page,\n struct feed_view_descriptor * const\n p_view_descriptor)\n{\n char\n b_result;\n\n if (\n p_page->i_page_count)\n {\n struct feed_page_node *\n p_page_node;\n\n struct feed_heap *\n p_heap;\n\n p_heap =\n feed_client_get_heap(\n p_page->p_client);\n\n p_page_node =\n (struct feed_page_node *)(\n p_page->o_pages.p_prev);\n\n feed_list_join(\n &(\n p_page_node->o_list),\n &(\n p_page_node->o_list));\n\n *(\n p_view_descriptor) =\n p_page_node->o_view_descriptor;\n\n feed_heap_free(\n p_heap,\n (void *)(\n p_page_node));\n\n p_page->i_page_count --;\n\n b_result =\n 1;\n }\n else\n {\n b_result =\n 0;\n }\n\n return\n b_result;\n\n}" (primitive_type) "char" (function_declarator) "feed_page_pop(\n struct feed_page_history * const\n p_page,\n struct feed_view_descriptor * const\n p_view_descriptor)" (identifier) "feed_page_pop" (parameter_list) "(\n struct feed_page_history * const\n p_page,\n struct feed_view_descriptor * const\n p_view_descriptor)" (() "(" (parameter_declaration) "struct feed_page_history * const\n p_page" (struct_specifier) "struct feed_page_history" (struct) "struct" (type_identifier) "feed_page_history" (pointer_declarator) "* const\n p_page" (*) "*" (type_qualifier) "const" (const) "const" (identifier) "p_page" (,) "," (parameter_declaration) "struct feed_view_descriptor * const\n p_view_descriptor" (struct_specifier) "struct feed_view_descriptor" (struct) "struct" (type_identifier) "feed_view_descriptor" (pointer_declarator) "* const\n p_view_descriptor" (*) "*" (type_qualifier) "const" (const) "const" (identifier) "p_view_descriptor" ()) ")" (compound_statement) "{\n char\n b_result;\n\n if (\n p_page->i_page_count)\n {\n struct feed_page_node *\n p_page_node;\n\n struct feed_heap *\n p_heap;\n\n p_heap =\n feed_client_get_heap(\n p_page->p_client);\n\n p_page_node =\n (struct feed_page_node *)(\n p_page->o_pages.p_prev);\n\n feed_list_join(\n &(\n p_page_node->o_list),\n &(\n p_page_node->o_list));\n\n *(\n p_view_descriptor) =\n p_page_node->o_view_descriptor;\n\n feed_heap_free(\n p_heap,\n (void *)(\n p_page_node));\n\n p_page->i_page_count --;\n\n b_result =\n 1;\n }\n else\n {\n b_result =\n 0;\n }\n\n return\n b_result;\n\n}" ({) "{" (declaration) "char\n b_result;" (primitive_type) "char" (identifier) "b_result" (;) ";" (if_statement) "if (\n p_page->i_page_count)\n {\n struct feed_page_node *\n p_page_node;\n\n struct feed_heap *\n p_heap;\n\n p_heap =\n feed_client_get_heap(\n p_page->p_client);\n\n p_page_node =\n (struct feed_page_node *)(\n p_page->o_pages.p_prev);\n\n feed_list_join(\n &(\n p_page_node->o_list),\n &(\n p_page_node->o_list));\n\n *(\n p_view_descriptor) =\n p_page_node->o_view_descriptor;\n\n feed_heap_free(\n p_heap,\n (void *)(\n p_page_node));\n\n p_page->i_page_count --;\n\n b_result =\n 1;\n }\n else\n {\n b_result =\n 0;\n }" (if) "if" (parenthesized_expression) "(\n p_page->i_page_count)" (() "(" (field_expression) "p_page->i_page_count" (identifier) "p_page" (->) "->" (field_identifier) "i_page_count" ()) ")" (compound_statement) "{\n struct feed_page_node *\n p_page_node;\n\n struct feed_heap *\n p_heap;\n\n p_heap =\n feed_client_get_heap(\n p_page->p_client);\n\n p_page_node =\n (struct feed_page_node *)(\n p_page->o_pages.p_prev);\n\n feed_list_join(\n &(\n p_page_node->o_list),\n &(\n p_page_node->o_list));\n\n *(\n p_view_descriptor) =\n p_page_node->o_view_descriptor;\n\n feed_heap_free(\n p_heap,\n (void *)(\n p_page_node));\n\n p_page->i_page_count --;\n\n b_result =\n 1;\n }" ({) "{" (declaration) "struct feed_page_node *\n p_page_node;" (struct_specifier) "struct feed_page_node" (struct) "struct" (type_identifier) "feed_page_node" (pointer_declarator) "*\n p_page_node" (*) "*" (identifier) "p_page_node" (;) ";" (declaration) "struct feed_heap *\n p_heap;" (struct_specifier) "struct feed_heap" (struct) "struct" (type_identifier) "feed_heap" (pointer_declarator) "*\n p_heap" (*) "*" (identifier) "p_heap" (;) ";" (expression_statement) "p_heap =\n feed_client_get_heap(\n p_page->p_client);" (assignment_expression) "p_heap =\n feed_client_get_heap(\n p_page->p_client)" (identifier) "p_heap" (=) "=" (call_expression) "feed_client_get_heap(\n p_page->p_client)" (identifier) "feed_client_get_heap" (argument_list) "(\n p_page->p_client)" (() "(" (field_expression) "p_page->p_client" (identifier) "p_page" (->) "->" (field_identifier) "p_client" ()) ")" (;) ";" (expression_statement) "p_page_node =\n (struct feed_page_node *)(\n p_page->o_pages.p_prev);" (assignment_expression) "p_page_node =\n (struct feed_page_node *)(\n p_page->o_pages.p_prev)" (identifier) "p_page_node" (=) "=" (cast_expression) "(struct feed_page_node *)(\n p_page->o_pages.p_prev)" (() "(" (type_descriptor) "struct feed_page_node *" (struct_specifier) "struct feed_page_node" (struct) "struct" (type_identifier) "feed_page_node" (abstract_pointer_declarator) "*" (*) "*" ()) ")" (parenthesized_expression) "(\n p_page->o_pages.p_prev)" (() "(" (field_expression) "p_page->o_pages.p_prev" (field_expression) "p_page->o_pages" (identifier) "p_page" (->) "->" (field_identifier) "o_pages" (.) "." (field_identifier) "p_prev" ()) ")" (;) ";" (expression_statement) "feed_list_join(\n &(\n p_page_node->o_list),\n &(\n p_page_node->o_list));" (call_expression) "feed_list_join(\n &(\n p_page_node->o_list),\n &(\n p_page_node->o_list))" (identifier) "feed_list_join" (argument_list) "(\n &(\n p_page_node->o_list),\n &(\n p_page_node->o_list))" (() "(" (pointer_expression) "&(\n p_page_node->o_list)" (&) "&" (parenthesized_expression) "(\n p_page_node->o_list)" (() "(" (field_expression) "p_page_node->o_list" (identifier) "p_page_node" (->) "->" (field_identifier) "o_list" ()) ")" (,) "," (pointer_expression) "&(\n p_page_node->o_list)" (&) "&" (parenthesized_expression) "(\n p_page_node->o_list)" (() "(" (field_expression) "p_page_node->o_list" (identifier) "p_page_node" (->) "->" (field_identifier) "o_list" ()) ")" ()) ")" (;) ";" (expression_statement) "*(\n p_view_descriptor) =\n p_page_node->o_view_descriptor;" (assignment_expression) "*(\n p_view_descriptor) =\n p_page_node->o_view_descriptor" (pointer_expression) "*(\n p_view_descriptor)" (*) "*" (parenthesized_expression) "(\n p_view_descriptor)" (() "(" (identifier) "p_view_descriptor" ()) ")" (=) "=" (field_expression) "p_page_node->o_view_descriptor" (identifier) "p_page_node" (->) "->" (field_identifier) "o_view_descriptor" (;) ";" (expression_statement) "feed_heap_free(\n p_heap,\n (void *)(\n p_page_node));" (call_expression) "feed_heap_free(\n p_heap,\n (void *)(\n p_page_node))" (identifier) "feed_heap_free" (argument_list) "(\n p_heap,\n (void *)(\n p_page_node))" (() "(" (identifier) "p_heap" (,) "," (cast_expression) "(void *)(\n p_page_node)" (() "(" (type_descriptor) "void *" (primitive_type) "void" (abstract_pointer_declarator) "*" (*) "*" ()) ")" (parenthesized_expression) "(\n p_page_node)" (() "(" (identifier) "p_page_node" ()) ")" ()) ")" (;) ";" (expression_statement) "p_page->i_page_count --;" (update_expression) "p_page->i_page_count --" (field_expression) "p_page->i_page_count" (identifier) "p_page" (->) "->" (field_identifier) "i_page_count" (--) "--" (;) ";" (expression_statement) "b_result =\n 1;" (assignment_expression) "b_result =\n 1" (identifier) "b_result" (=) "=" (number_literal) "1" (;) ";" (}) "}" (else_clause) "else\n {\n b_result =\n 0;\n }" (else) "else" (compound_statement) "{\n b_result =\n 0;\n }" ({) "{" (expression_statement) "b_result =\n 0;" (assignment_expression) "b_result =\n 0" (identifier) "b_result" (=) "=" (number_literal) "0" (;) ";" (}) "}" (return_statement) "return\n b_result;" (return) "return" (identifier) "b_result" (;) ";" (}) "}"
563
0
{"language": "c", "success": true, "metadata": {"lines": 136, "avg_line_length": 20.25, "nodes": 333, "errors": 0, "source_hash": "8111fb15f87dc9968df88768003d26d0efa194a42341c949a9c5c687ac012b4e", "categorized_nodes": 258}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#include \"feed_os.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": "\"feed_os.h\"", "parent": 0, "children": [], "start_point": {"row": 12, "column": 9}, "end_point": {"row": 12, "column": 20}}, {"id": 3, "type": "preproc_include", "text": "#include \"feed_cfg.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": "string_literal", "text": "\"feed_cfg.h\"", "parent": 3, "children": [], "start_point": {"row": 14, "column": 9}, "end_point": {"row": 14, "column": 21}}, {"id": 6, "type": "preproc_include", "text": "#include \"feed_prompt_iterator.h\"\n", "parent": null, "children": [7, 8], "start_point": {"row": 16, "column": 0}, "end_point": {"row": 17, "column": 0}}, {"id": 7, "type": "#include", "text": "#include", "parent": 6, "children": [], "start_point": {"row": 16, "column": 0}, "end_point": {"row": 16, "column": 8}}, {"id": 8, "type": "string_literal", "text": "\"feed_prompt_iterator.h\"", "parent": 6, "children": [], "start_point": {"row": 16, "column": 9}, "end_point": {"row": 16, "column": 33}}, {"id": 9, "type": "preproc_include", "text": "#include \"feed_text_iterator.h\"\n", "parent": null, "children": [10, 11], "start_point": {"row": 18, "column": 0}, "end_point": {"row": 19, "column": 0}}, {"id": 10, "type": "#include", "text": "#include", "parent": 9, "children": [], "start_point": {"row": 18, "column": 0}, "end_point": {"row": 18, "column": 8}}, {"id": 11, "type": "string_literal", "text": "\"feed_text_iterator.h\"", "parent": 9, "children": [], "start_point": {"row": 18, "column": 9}, "end_point": {"row": 18, "column": 31}}, {"id": 12, "type": "preproc_include", "text": "#include \"feed_screen_iterator.h\"\n", "parent": null, "children": [13, 14], "start_point": {"row": 20, "column": 0}, "end_point": {"row": 21, "column": 0}}, {"id": 13, "type": "#include", "text": "#include", "parent": 12, "children": [], "start_point": {"row": 20, "column": 0}, "end_point": {"row": 20, "column": 8}}, {"id": 14, "type": "string_literal", "text": "\"feed_screen_iterator.h\"", "parent": 12, "children": [], "start_point": {"row": 20, "column": 9}, "end_point": {"row": 20, "column": 33}}, {"id": 15, "type": "preproc_include", "text": "#include \"feed_view.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": "\"feed_view.h\"", "parent": 15, "children": [], "start_point": {"row": 22, "column": 9}, "end_point": {"row": 22, "column": 22}}, {"id": 18, "type": "preproc_include", "text": "#include \"feed_list.h\"\n", "parent": null, "children": [19, 20], "start_point": {"row": 24, "column": 0}, "end_point": {"row": 25, "column": 0}}, {"id": 19, "type": "#include", "text": "#include", "parent": 18, "children": [], "start_point": {"row": 24, "column": 0}, "end_point": {"row": 24, "column": 8}}, {"id": 20, "type": "string_literal", "text": "\"feed_list.h\"", "parent": 18, "children": [], "start_point": {"row": 24, "column": 9}, "end_point": {"row": 24, "column": 22}}, {"id": 21, "type": "preproc_include", "text": "#include \"feed_page.h\"\n", "parent": null, "children": [22, 23], "start_point": {"row": 26, "column": 0}, "end_point": {"row": 27, "column": 0}}, {"id": 22, "type": "#include", "text": "#include", "parent": 21, "children": [], "start_point": {"row": 26, "column": 0}, "end_point": {"row": 26, "column": 8}}, {"id": 23, "type": "string_literal", "text": "\"feed_page.h\"", "parent": 21, "children": [], "start_point": {"row": 26, "column": 9}, "end_point": {"row": 26, "column": 22}}, {"id": 24, "type": "preproc_include", "text": "#include \"feed_client.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": "string_literal", "text": "\"feed_client.h\"", "parent": 24, "children": [], "start_point": {"row": 28, "column": 9}, "end_point": {"row": 28, "column": 24}}, {"id": 27, "type": "preproc_include", "text": "#include \"feed_heap.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": "\"feed_heap.h\"", "parent": 27, "children": [], "start_point": {"row": 30, "column": 9}, "end_point": {"row": 30, "column": 22}}, {"id": 30, "type": "function_definition", "text": "void\nfeed_page_init(\n struct feed_page_history * const\n p_page,\n struct feed_client * const\n p_client)\n{\n p_page->p_client =\n p_client;\n\n feed_list_init(\n &(\n p_page->o_pages));\n\n p_page->i_page_count =\n 0ul;\n\n}", "parent": null, "children": [31, 32], "start_point": {"row": 32, "column": 0}, "end_point": {"row": 49, "column": 1}}, {"id": 31, "type": "primitive_type", "text": "void", "parent": 30, "children": [], "start_point": {"row": 32, "column": 0}, "end_point": {"row": 32, "column": 4}}, {"id": 32, "type": "function_declarator", "text": "feed_page_init(\n struct feed_page_history * const\n p_page,\n struct feed_client * const\n p_client)", "parent": 30, "children": [33, 34], "start_point": {"row": 33, "column": 0}, "end_point": {"row": 37, "column": 17}}, {"id": 33, "type": "identifier", "text": "feed_page_init", "parent": 32, "children": [], "start_point": {"row": 33, "column": 0}, "end_point": {"row": 33, "column": 14}}, {"id": 34, "type": "parameter_list", "text": "(\n struct feed_page_history * const\n p_page,\n struct feed_client * const\n p_client)", "parent": 32, "children": [35, 42], "start_point": {"row": 33, "column": 14}, "end_point": {"row": 37, "column": 17}}, {"id": 35, "type": "parameter_declaration", "text": "struct feed_page_history * const\n p_page", "parent": 34, "children": [36, 39], "start_point": {"row": 34, "column": 4}, "end_point": {"row": 35, "column": 14}}, {"id": 36, "type": "struct_specifier", "text": "struct feed_page_history", "parent": 35, "children": [37, 38], "start_point": {"row": 34, "column": 4}, "end_point": {"row": 34, "column": 28}}, {"id": 37, "type": "struct", "text": "struct", "parent": 36, "children": [], "start_point": {"row": 34, "column": 4}, "end_point": {"row": 34, "column": 10}}, {"id": 38, "type": "type_identifier", "text": "feed_page_history", "parent": 36, "children": [], "start_point": {"row": 34, "column": 11}, "end_point": {"row": 34, "column": 28}}, {"id": 39, "type": "pointer_declarator", "text": "* const\n p_page", "parent": 35, "children": [40, 41], "start_point": {"row": 34, "column": 29}, "end_point": {"row": 35, "column": 14}}, {"id": 40, "type": "*", "text": "*", "parent": 39, "children": [], "start_point": {"row": 34, "column": 29}, "end_point": {"row": 34, "column": 30}}, {"id": 41, "type": "identifier", "text": "p_page", "parent": 39, "children": [], "start_point": {"row": 35, "column": 8}, "end_point": {"row": 35, "column": 14}}, {"id": 42, "type": "parameter_declaration", "text": "struct feed_client * const\n p_client", "parent": 34, "children": [43, 46], "start_point": {"row": 36, "column": 4}, "end_point": {"row": 37, "column": 16}}, {"id": 43, "type": "struct_specifier", "text": "struct feed_client", "parent": 42, "children": [44, 45], "start_point": {"row": 36, "column": 4}, "end_point": {"row": 36, "column": 22}}, {"id": 44, "type": "struct", "text": "struct", "parent": 43, "children": [], "start_point": {"row": 36, "column": 4}, "end_point": {"row": 36, "column": 10}}, {"id": 45, "type": "type_identifier", "text": "feed_client", "parent": 43, "children": [], "start_point": {"row": 36, "column": 11}, "end_point": {"row": 36, "column": 22}}, {"id": 46, "type": "pointer_declarator", "text": "* const\n p_client", "parent": 42, "children": [47, 48], "start_point": {"row": 36, "column": 23}, "end_point": {"row": 37, "column": 16}}, {"id": 47, "type": "*", "text": "*", "parent": 46, "children": [], "start_point": {"row": 36, "column": 23}, "end_point": {"row": 36, "column": 24}}, {"id": 48, "type": "identifier", "text": "p_client", "parent": 46, "children": [], "start_point": {"row": 37, "column": 8}, "end_point": {"row": 37, "column": 16}}, {"id": 49, "type": "assignment_expression", "text": "p_page->p_client =\n p_client", "parent": 30, "children": [50, 53, 54], "start_point": {"row": 39, "column": 4}, "end_point": {"row": 40, "column": 16}}, {"id": 50, "type": "field_expression", "text": "p_page->p_client", "parent": 49, "children": [51, 52], "start_point": {"row": 39, "column": 4}, "end_point": {"row": 39, "column": 20}}, {"id": 51, "type": "identifier", "text": "p_page", "parent": 50, "children": [], "start_point": {"row": 39, "column": 4}, "end_point": {"row": 39, "column": 10}}, {"id": 52, "type": "field_identifier", "text": "p_client", "parent": 50, "children": [], "start_point": {"row": 39, "column": 12}, "end_point": {"row": 39, "column": 20}}, {"id": 53, "type": "=", "text": "=", "parent": 49, "children": [], "start_point": {"row": 39, "column": 21}, "end_point": {"row": 39, "column": 22}}, {"id": 54, "type": "identifier", "text": "p_client", "parent": 49, "children": [], "start_point": {"row": 40, "column": 8}, "end_point": {"row": 40, "column": 16}}, {"id": 55, "type": "call_expression", "text": "feed_list_init(\n &(\n p_page->o_pages))", "parent": 30, "children": [56, 57], "start_point": {"row": 42, "column": 4}, "end_point": {"row": 44, "column": 29}}, {"id": 56, "type": "identifier", "text": "feed_list_init", "parent": 55, "children": [], "start_point": {"row": 42, "column": 4}, "end_point": {"row": 42, "column": 18}}, {"id": 57, "type": "argument_list", "text": "(\n &(\n p_page->o_pages))", "parent": 55, "children": [58], "start_point": {"row": 42, "column": 18}, "end_point": {"row": 44, "column": 29}}, {"id": 58, "type": "pointer_expression", "text": "&(\n p_page->o_pages)", "parent": 57, "children": [59], "start_point": {"row": 43, "column": 8}, "end_point": {"row": 44, "column": 28}}, {"id": 59, "type": "parenthesized_expression", "text": "(\n p_page->o_pages)", "parent": 58, "children": [60], "start_point": {"row": 43, "column": 9}, "end_point": {"row": 44, "column": 28}}, {"id": 60, "type": "field_expression", "text": "p_page->o_pages", "parent": 59, "children": [61, 62], "start_point": {"row": 44, "column": 12}, "end_point": {"row": 44, "column": 27}}, {"id": 61, "type": "identifier", "text": "p_page", "parent": 60, "children": [], "start_point": {"row": 44, "column": 12}, "end_point": {"row": 44, "column": 18}}, {"id": 62, "type": "field_identifier", "text": "o_pages", "parent": 60, "children": [], "start_point": {"row": 44, "column": 20}, "end_point": {"row": 44, "column": 27}}, {"id": 63, "type": "assignment_expression", "text": "p_page->i_page_count =\n 0ul", "parent": 30, "children": [64, 67, 68], "start_point": {"row": 46, "column": 4}, "end_point": {"row": 47, "column": 11}}, {"id": 64, "type": "field_expression", "text": "p_page->i_page_count", "parent": 63, "children": [65, 66], "start_point": {"row": 46, "column": 4}, "end_point": {"row": 46, "column": 24}}, {"id": 65, "type": "identifier", "text": "p_page", "parent": 64, "children": [], "start_point": {"row": 46, "column": 4}, "end_point": {"row": 46, "column": 10}}, {"id": 66, "type": "field_identifier", "text": "i_page_count", "parent": 64, "children": [], "start_point": {"row": 46, "column": 12}, "end_point": {"row": 46, "column": 24}}, {"id": 67, "type": "=", "text": "=", "parent": 63, "children": [], "start_point": {"row": 46, "column": 25}, "end_point": {"row": 46, "column": 26}}, {"id": 68, "type": "number_literal", "text": "0ul", "parent": 63, "children": [], "start_point": {"row": 47, "column": 8}, "end_point": {"row": 47, "column": 11}}, {"id": 69, "type": "function_definition", "text": "void\nfeed_page_cleanup(\n struct feed_page_history * const\n p_page)\n{\n feed_page_reset(\n p_page);\n\n}", "parent": null, "children": [70, 71], "start_point": {"row": 51, "column": 0}, "end_point": {"row": 59, "column": 1}}, {"id": 70, "type": "primitive_type", "text": "void", "parent": 69, "children": [], "start_point": {"row": 51, "column": 0}, "end_point": {"row": 51, "column": 4}}, {"id": 71, "type": "function_declarator", "text": "feed_page_cleanup(\n struct feed_page_history * const\n p_page)", "parent": 69, "children": [72, 73], "start_point": {"row": 52, "column": 0}, "end_point": {"row": 54, "column": 15}}, {"id": 72, "type": "identifier", "text": "feed_page_cleanup", "parent": 71, "children": [], "start_point": {"row": 52, "column": 0}, "end_point": {"row": 52, "column": 17}}, {"id": 73, "type": "parameter_list", "text": "(\n struct feed_page_history * const\n p_page)", "parent": 71, "children": [74], "start_point": {"row": 52, "column": 17}, "end_point": {"row": 54, "column": 15}}, {"id": 74, "type": "parameter_declaration", "text": "struct feed_page_history * const\n p_page", "parent": 73, "children": [75, 78], "start_point": {"row": 53, "column": 4}, "end_point": {"row": 54, "column": 14}}, {"id": 75, "type": "struct_specifier", "text": "struct feed_page_history", "parent": 74, "children": [76, 77], "start_point": {"row": 53, "column": 4}, "end_point": {"row": 53, "column": 28}}, {"id": 76, "type": "struct", "text": "struct", "parent": 75, "children": [], "start_point": {"row": 53, "column": 4}, "end_point": {"row": 53, "column": 10}}, {"id": 77, "type": "type_identifier", "text": "feed_page_history", "parent": 75, "children": [], "start_point": {"row": 53, "column": 11}, "end_point": {"row": 53, "column": 28}}, {"id": 78, "type": "pointer_declarator", "text": "* const\n p_page", "parent": 74, "children": [79, 80], "start_point": {"row": 53, "column": 29}, "end_point": {"row": 54, "column": 14}}, {"id": 79, "type": "*", "text": "*", "parent": 78, "children": [], "start_point": {"row": 53, "column": 29}, "end_point": {"row": 53, "column": 30}}, {"id": 80, "type": "identifier", "text": "p_page", "parent": 78, "children": [], "start_point": {"row": 54, "column": 8}, "end_point": {"row": 54, "column": 14}}, {"id": 81, "type": "call_expression", "text": "feed_page_reset(\n p_page)", "parent": 69, "children": [82, 83], "start_point": {"row": 56, "column": 4}, "end_point": {"row": 57, "column": 15}}, {"id": 82, "type": "identifier", "text": "feed_page_reset", "parent": 81, "children": [], "start_point": {"row": 56, "column": 4}, "end_point": {"row": 56, "column": 19}}, {"id": 83, "type": "argument_list", "text": "(\n p_page)", "parent": 81, "children": [84], "start_point": {"row": 56, "column": 19}, "end_point": {"row": 57, "column": 15}}, {"id": 84, "type": "identifier", "text": "p_page", "parent": 83, "children": [], "start_point": {"row": 57, "column": 8}, "end_point": {"row": 57, "column": 14}}, {"id": 85, "type": "function_definition", "text": "void\nfeed_page_reset(\n struct feed_page_history * const\n p_page)\n{\n struct feed_view_descriptor\n o_view_descriptor;\n\n while (\n feed_page_pop(\n p_page,\n &(\n o_view_descriptor)));\n}", "parent": null, "children": [86, 87], "start_point": {"row": 61, "column": 0}, "end_point": {"row": 74, "column": 1}}, {"id": 86, "type": "primitive_type", "text": "void", "parent": 85, "children": [], "start_point": {"row": 61, "column": 0}, "end_point": {"row": 61, "column": 4}}, {"id": 87, "type": "function_declarator", "text": "feed_page_reset(\n struct feed_page_history * const\n p_page)", "parent": 85, "children": [88, 89], "start_point": {"row": 62, "column": 0}, "end_point": {"row": 64, "column": 15}}, {"id": 88, "type": "identifier", "text": "feed_page_reset", "parent": 87, "children": [], "start_point": {"row": 62, "column": 0}, "end_point": {"row": 62, "column": 15}}, {"id": 89, "type": "parameter_list", "text": "(\n struct feed_page_history * const\n p_page)", "parent": 87, "children": [90], "start_point": {"row": 62, "column": 15}, "end_point": {"row": 64, "column": 15}}, {"id": 90, "type": "parameter_declaration", "text": "struct feed_page_history * const\n p_page", "parent": 89, "children": [91, 94], "start_point": {"row": 63, "column": 4}, "end_point": {"row": 64, "column": 14}}, {"id": 91, "type": "struct_specifier", "text": "struct feed_page_history", "parent": 90, "children": [92, 93], "start_point": {"row": 63, "column": 4}, "end_point": {"row": 63, "column": 28}}, {"id": 92, "type": "struct", "text": "struct", "parent": 91, "children": [], "start_point": {"row": 63, "column": 4}, "end_point": {"row": 63, "column": 10}}, {"id": 93, "type": "type_identifier", "text": "feed_page_history", "parent": 91, "children": [], "start_point": {"row": 63, "column": 11}, "end_point": {"row": 63, "column": 28}}, {"id": 94, "type": "pointer_declarator", "text": "* const\n p_page", "parent": 90, "children": [95, 96], "start_point": {"row": 63, "column": 29}, "end_point": {"row": 64, "column": 14}}, {"id": 95, "type": "*", "text": "*", "parent": 94, "children": [], "start_point": {"row": 63, "column": 29}, "end_point": {"row": 63, "column": 30}}, {"id": 96, "type": "identifier", "text": "p_page", "parent": 94, "children": [], "start_point": {"row": 64, "column": 8}, "end_point": {"row": 64, "column": 14}}, {"id": 97, "type": "declaration", "text": "struct feed_view_descriptor\n o_view_descriptor;", "parent": 85, "children": [98, 101], "start_point": {"row": 66, "column": 4}, "end_point": {"row": 67, "column": 26}}, {"id": 98, "type": "struct_specifier", "text": "struct feed_view_descriptor", "parent": 97, "children": [99, 100], "start_point": {"row": 66, "column": 4}, "end_point": {"row": 66, "column": 31}}, {"id": 99, "type": "struct", "text": "struct", "parent": 98, "children": [], "start_point": {"row": 66, "column": 4}, "end_point": {"row": 66, "column": 10}}, {"id": 100, "type": "type_identifier", "text": "feed_view_descriptor", "parent": 98, "children": [], "start_point": {"row": 66, "column": 11}, "end_point": {"row": 66, "column": 31}}, {"id": 101, "type": "identifier", "text": "o_view_descriptor", "parent": 97, "children": [], "start_point": {"row": 67, "column": 8}, "end_point": {"row": 67, "column": 25}}, {"id": 102, "type": "while_statement", "text": "while (\n feed_page_pop(\n p_page,\n &(\n o_view_descriptor)));", "parent": 85, "children": [103], "start_point": {"row": 69, "column": 4}, "end_point": {"row": 73, "column": 37}}, {"id": 103, "type": "parenthesized_expression", "text": "(\n feed_page_pop(\n p_page,\n &(\n o_view_descriptor)))", "parent": 102, "children": [104], "start_point": {"row": 69, "column": 10}, "end_point": {"row": 73, "column": 36}}, {"id": 104, "type": "call_expression", "text": "feed_page_pop(\n p_page,\n &(\n o_view_descriptor))", "parent": 103, "children": [105, 106], "start_point": {"row": 70, "column": 8}, "end_point": {"row": 73, "column": 35}}, {"id": 105, "type": "identifier", "text": "feed_page_pop", "parent": 104, "children": [], "start_point": {"row": 70, "column": 8}, "end_point": {"row": 70, "column": 21}}, {"id": 106, "type": "argument_list", "text": "(\n p_page,\n &(\n o_view_descriptor))", "parent": 104, "children": [107, 108], "start_point": {"row": 70, "column": 21}, "end_point": {"row": 73, "column": 35}}, {"id": 107, "type": "identifier", "text": "p_page", "parent": 106, "children": [], "start_point": {"row": 71, "column": 12}, "end_point": {"row": 71, "column": 18}}, {"id": 108, "type": "pointer_expression", "text": "&(\n o_view_descriptor)", "parent": 106, "children": [109], "start_point": {"row": 72, "column": 12}, "end_point": {"row": 73, "column": 34}}, {"id": 109, "type": "parenthesized_expression", "text": "(\n o_view_descriptor)", "parent": 108, "children": [110], "start_point": {"row": 72, "column": 13}, "end_point": {"row": 73, "column": 34}}, {"id": 110, "type": "identifier", "text": "o_view_descriptor", "parent": 109, "children": [], "start_point": {"row": 73, "column": 16}, "end_point": {"row": 73, "column": 33}}, {"id": 111, "type": "function_definition", "text": "void\nfeed_page_push(\n struct feed_page_history * const\n p_page,\n struct feed_view_descriptor const * const\n p_view_descriptor)\n{\n struct feed_page_node *\n p_page_node;\n\n struct feed_heap *\n p_heap;\n\n p_heap =\n feed_client_get_heap(\n p_page->p_client);\n\n p_page_node =\n (struct feed_page_node *)(\n feed_heap_alloc(\n p_heap,\n (unsigned long int)(\n sizeof(\n struct feed_page_node))));\n\n if (\n p_page_node)\n {\n feed_list_init(\n &(\n p_page_node->o_list));\n\n p_page_node->o_view_descriptor =\n *(\n p_view_descriptor);\n\n feed_list_join(\n &(\n p_page_node->o_list),\n &(\n p_page->o_pages));\n\n p_page->i_page_count ++;\n }\n}", "parent": null, "children": [112, 113], "start_point": {"row": 76, "column": 0}, "end_point": {"row": 120, "column": 1}}, {"id": 112, "type": "primitive_type", "text": "void", "parent": 111, "children": [], "start_point": {"row": 76, "column": 0}, "end_point": {"row": 76, "column": 4}}, {"id": 113, "type": "function_declarator", "text": "feed_page_push(\n struct feed_page_history * const\n p_page,\n struct feed_view_descriptor const * const\n p_view_descriptor)", "parent": 111, "children": [114, 115], "start_point": {"row": 77, "column": 0}, "end_point": {"row": 81, "column": 26}}, {"id": 114, "type": "identifier", "text": "feed_page_push", "parent": 113, "children": [], "start_point": {"row": 77, "column": 0}, "end_point": {"row": 77, "column": 14}}, {"id": 115, "type": "parameter_list", "text": "(\n struct feed_page_history * const\n p_page,\n struct feed_view_descriptor const * const\n p_view_descriptor)", "parent": 113, "children": [116, 123], "start_point": {"row": 77, "column": 14}, "end_point": {"row": 81, "column": 26}}, {"id": 116, "type": "parameter_declaration", "text": "struct feed_page_history * const\n p_page", "parent": 115, "children": [117, 120], "start_point": {"row": 78, "column": 4}, "end_point": {"row": 79, "column": 14}}, {"id": 117, "type": "struct_specifier", "text": "struct feed_page_history", "parent": 116, "children": [118, 119], "start_point": {"row": 78, "column": 4}, "end_point": {"row": 78, "column": 28}}, {"id": 118, "type": "struct", "text": "struct", "parent": 117, "children": [], "start_point": {"row": 78, "column": 4}, "end_point": {"row": 78, "column": 10}}, {"id": 119, "type": "type_identifier", "text": "feed_page_history", "parent": 117, "children": [], "start_point": {"row": 78, "column": 11}, "end_point": {"row": 78, "column": 28}}, {"id": 120, "type": "pointer_declarator", "text": "* const\n p_page", "parent": 116, "children": [121, 122], "start_point": {"row": 78, "column": 29}, "end_point": {"row": 79, "column": 14}}, {"id": 121, "type": "*", "text": "*", "parent": 120, "children": [], "start_point": {"row": 78, "column": 29}, "end_point": {"row": 78, "column": 30}}, {"id": 122, "type": "identifier", "text": "p_page", "parent": 120, "children": [], "start_point": {"row": 79, "column": 8}, "end_point": {"row": 79, "column": 14}}, {"id": 123, "type": "parameter_declaration", "text": "struct feed_view_descriptor const * const\n p_view_descriptor", "parent": 115, "children": [124, 127], "start_point": {"row": 80, "column": 4}, "end_point": {"row": 81, "column": 25}}, {"id": 124, "type": "struct_specifier", "text": "struct feed_view_descriptor", "parent": 123, "children": [125, 126], "start_point": {"row": 80, "column": 4}, "end_point": {"row": 80, "column": 31}}, {"id": 125, "type": "struct", "text": "struct", "parent": 124, "children": [], "start_point": {"row": 80, "column": 4}, "end_point": {"row": 80, "column": 10}}, {"id": 126, "type": "type_identifier", "text": "feed_view_descriptor", "parent": 124, "children": [], "start_point": {"row": 80, "column": 11}, "end_point": {"row": 80, "column": 31}}, {"id": 127, "type": "pointer_declarator", "text": "* const\n p_view_descriptor", "parent": 123, "children": [128, 129], "start_point": {"row": 80, "column": 38}, "end_point": {"row": 81, "column": 25}}, {"id": 128, "type": "*", "text": "*", "parent": 127, "children": [], "start_point": {"row": 80, "column": 38}, "end_point": {"row": 80, "column": 39}}, {"id": 129, "type": "identifier", "text": "p_view_descriptor", "parent": 127, "children": [], "start_point": {"row": 81, "column": 8}, "end_point": {"row": 81, "column": 25}}, {"id": 130, "type": "declaration", "text": "struct feed_page_node *\n p_page_node;", "parent": 111, "children": [131, 134], "start_point": {"row": 83, "column": 4}, "end_point": {"row": 84, "column": 20}}, {"id": 131, "type": "struct_specifier", "text": "struct feed_page_node", "parent": 130, "children": [132, 133], "start_point": {"row": 83, "column": 4}, "end_point": {"row": 83, "column": 25}}, {"id": 132, "type": "struct", "text": "struct", "parent": 131, "children": [], "start_point": {"row": 83, "column": 4}, "end_point": {"row": 83, "column": 10}}, {"id": 133, "type": "type_identifier", "text": "feed_page_node", "parent": 131, "children": [], "start_point": {"row": 83, "column": 11}, "end_point": {"row": 83, "column": 25}}, {"id": 134, "type": "pointer_declarator", "text": "*\n p_page_node", "parent": 130, "children": [135, 136], "start_point": {"row": 83, "column": 26}, "end_point": {"row": 84, "column": 19}}, {"id": 135, "type": "*", "text": "*", "parent": 134, "children": [], "start_point": {"row": 83, "column": 26}, "end_point": {"row": 83, "column": 27}}, {"id": 136, "type": "identifier", "text": "p_page_node", "parent": 134, "children": [], "start_point": {"row": 84, "column": 8}, "end_point": {"row": 84, "column": 19}}, {"id": 137, "type": "declaration", "text": "struct feed_heap *\n p_heap;", "parent": 111, "children": [138, 141], "start_point": {"row": 86, "column": 4}, "end_point": {"row": 87, "column": 15}}, {"id": 138, "type": "struct_specifier", "text": "struct feed_heap", "parent": 137, "children": [139, 140], "start_point": {"row": 86, "column": 4}, "end_point": {"row": 86, "column": 20}}, {"id": 139, "type": "struct", "text": "struct", "parent": 138, "children": [], "start_point": {"row": 86, "column": 4}, "end_point": {"row": 86, "column": 10}}, {"id": 140, "type": "type_identifier", "text": "feed_heap", "parent": 138, "children": [], "start_point": {"row": 86, "column": 11}, "end_point": {"row": 86, "column": 20}}, {"id": 141, "type": "pointer_declarator", "text": "*\n p_heap", "parent": 137, "children": [142, 143], "start_point": {"row": 86, "column": 21}, "end_point": {"row": 87, "column": 14}}, {"id": 142, "type": "*", "text": "*", "parent": 141, "children": [], "start_point": {"row": 86, "column": 21}, "end_point": {"row": 86, "column": 22}}, {"id": 143, "type": "identifier", "text": "p_heap", "parent": 141, "children": [], "start_point": {"row": 87, "column": 8}, "end_point": {"row": 87, "column": 14}}, {"id": 144, "type": "assignment_expression", "text": "p_heap =\n feed_client_get_heap(\n p_page->p_client)", "parent": 111, "children": [145, 146, 147], "start_point": {"row": 89, "column": 4}, "end_point": {"row": 91, "column": 29}}, {"id": 145, "type": "identifier", "text": "p_heap", "parent": 144, "children": [], "start_point": {"row": 89, "column": 4}, "end_point": {"row": 89, "column": 10}}, {"id": 146, "type": "=", "text": "=", "parent": 144, "children": [], "start_point": {"row": 89, "column": 11}, "end_point": {"row": 89, "column": 12}}, {"id": 147, "type": "call_expression", "text": "feed_client_get_heap(\n p_page->p_client)", "parent": 144, "children": [148, 149], "start_point": {"row": 90, "column": 8}, "end_point": {"row": 91, "column": 29}}, {"id": 148, "type": "identifier", "text": "feed_client_get_heap", "parent": 147, "children": [], "start_point": {"row": 90, "column": 8}, "end_point": {"row": 90, "column": 28}}, {"id": 149, "type": "argument_list", "text": "(\n p_page->p_client)", "parent": 147, "children": [150], "start_point": {"row": 90, "column": 28}, "end_point": {"row": 91, "column": 29}}, {"id": 150, "type": "field_expression", "text": "p_page->p_client", "parent": 149, "children": [151, 152], "start_point": {"row": 91, "column": 12}, "end_point": {"row": 91, "column": 28}}, {"id": 151, "type": "identifier", "text": "p_page", "parent": 150, "children": [], "start_point": {"row": 91, "column": 12}, "end_point": {"row": 91, "column": 18}}, {"id": 152, "type": "field_identifier", "text": "p_client", "parent": 150, "children": [], "start_point": {"row": 91, "column": 20}, "end_point": {"row": 91, "column": 28}}, {"id": 153, "type": "assignment_expression", "text": "p_page_node =\n (struct feed_page_node *)(\n feed_heap_alloc(\n p_heap,\n (unsigned long int)(\n sizeof(\n struct feed_page_node))))", "parent": 111, "children": [154, 155, 156], "start_point": {"row": 93, "column": 4}, "end_point": {"row": 99, "column": 49}}, {"id": 154, "type": "identifier", "text": "p_page_node", "parent": 153, "children": [], "start_point": {"row": 93, "column": 4}, "end_point": {"row": 93, "column": 15}}, {"id": 155, "type": "=", "text": "=", "parent": 153, "children": [], "start_point": {"row": 93, "column": 16}, "end_point": {"row": 93, "column": 17}}, {"id": 156, "type": "cast_expression", "text": "(struct feed_page_node *)(\n feed_heap_alloc(\n p_heap,\n (unsigned long int)(\n sizeof(\n struct feed_page_node))))", "parent": 153, "children": [157, 163], "start_point": {"row": 94, "column": 8}, "end_point": {"row": 99, "column": 49}}, {"id": 157, "type": "type_descriptor", "text": "struct feed_page_node *", "parent": 156, "children": [158, 161], "start_point": {"row": 94, "column": 9}, "end_point": {"row": 94, "column": 32}}, {"id": 158, "type": "struct_specifier", "text": "struct feed_page_node", "parent": 157, "children": [159, 160], "start_point": {"row": 94, "column": 9}, "end_point": {"row": 94, "column": 30}}, {"id": 159, "type": "struct", "text": "struct", "parent": 158, "children": [], "start_point": {"row": 94, "column": 9}, "end_point": {"row": 94, "column": 15}}, {"id": 160, "type": "type_identifier", "text": "feed_page_node", "parent": 158, "children": [], "start_point": {"row": 94, "column": 16}, "end_point": {"row": 94, "column": 30}}, {"id": 161, "type": "abstract_pointer_declarator", "text": "*", "parent": 157, "children": [162], "start_point": {"row": 94, "column": 31}, "end_point": {"row": 94, "column": 32}}, {"id": 162, "type": "*", "text": "*", "parent": 161, "children": [], "start_point": {"row": 94, "column": 31}, "end_point": {"row": 94, "column": 32}}, {"id": 163, "type": "parenthesized_expression", "text": "(\n feed_heap_alloc(\n p_heap,\n (unsigned long int)(\n sizeof(\n struct feed_page_node))))", "parent": 156, "children": [164], "start_point": {"row": 94, "column": 33}, "end_point": {"row": 99, "column": 49}}, {"id": 164, "type": "call_expression", "text": "feed_heap_alloc(\n p_heap,\n (unsigned long int)(\n sizeof(\n struct feed_page_node)))", "parent": 163, "children": [165, 166], "start_point": {"row": 95, "column": 12}, "end_point": {"row": 99, "column": 48}}, {"id": 165, "type": "identifier", "text": "feed_heap_alloc", "parent": 164, "children": [], "start_point": {"row": 95, "column": 12}, "end_point": {"row": 95, "column": 27}}, {"id": 166, "type": "argument_list", "text": "(\n p_heap,\n (unsigned long int)(\n sizeof(\n struct feed_page_node)))", "parent": 164, "children": [167, 168], "start_point": {"row": 95, "column": 27}, "end_point": {"row": 99, "column": 48}}, {"id": 167, "type": "identifier", "text": "p_heap", "parent": 166, "children": [], "start_point": {"row": 96, "column": 16}, "end_point": {"row": 96, "column": 22}}, {"id": 168, "type": "cast_expression", "text": "(unsigned long int)(\n sizeof(\n struct feed_page_node))", "parent": 166, "children": [169, 174], "start_point": {"row": 97, "column": 16}, "end_point": {"row": 99, "column": 47}}, {"id": 169, "type": "type_descriptor", "text": "unsigned long int", "parent": 168, "children": [170], "start_point": {"row": 97, "column": 17}, "end_point": {"row": 97, "column": 34}}, {"id": 170, "type": "sized_type_specifier", "text": "unsigned long int", "parent": 169, "children": [171, 172, 173], "start_point": {"row": 97, "column": 17}, "end_point": {"row": 97, "column": 34}}, {"id": 171, "type": "unsigned", "text": "unsigned", "parent": 170, "children": [], "start_point": {"row": 97, "column": 17}, "end_point": {"row": 97, "column": 25}}, {"id": 172, "type": "long", "text": "long", "parent": 170, "children": [], "start_point": {"row": 97, "column": 26}, "end_point": {"row": 97, "column": 30}}, {"id": 173, "type": "primitive_type", "text": "int", "parent": 170, "children": [], "start_point": {"row": 97, "column": 31}, "end_point": {"row": 97, "column": 34}}, {"id": 174, "type": "parenthesized_expression", "text": "(\n sizeof(\n struct feed_page_node))", "parent": 168, "children": [175], "start_point": {"row": 97, "column": 35}, "end_point": {"row": 99, "column": 47}}, {"id": 175, "type": "sizeof_expression", "text": "sizeof(\n struct feed_page_node)", "parent": 174, "children": [176], "start_point": {"row": 98, "column": 20}, "end_point": {"row": 99, "column": 46}}, {"id": 176, "type": "type_descriptor", "text": "struct feed_page_node", "parent": 175, "children": [177], "start_point": {"row": 99, "column": 24}, "end_point": {"row": 99, "column": 45}}, {"id": 177, "type": "struct_specifier", "text": "struct feed_page_node", "parent": 176, "children": [178, 179], "start_point": {"row": 99, "column": 24}, "end_point": {"row": 99, "column": 45}}, {"id": 178, "type": "struct", "text": "struct", "parent": 177, "children": [], "start_point": {"row": 99, "column": 24}, "end_point": {"row": 99, "column": 30}}, {"id": 179, "type": "type_identifier", "text": "feed_page_node", "parent": 177, "children": [], "start_point": {"row": 99, "column": 31}, "end_point": {"row": 99, "column": 45}}, {"id": 180, "type": "if_statement", "text": "if (\n p_page_node)\n {\n feed_list_init(\n &(\n p_page_node->o_list));\n\n p_page_node->o_view_descriptor =\n *(\n p_view_descriptor);\n\n feed_list_join(\n &(\n p_page_node->o_list),\n &(\n p_page->o_pages));\n\n p_page->i_page_count ++;\n }", "parent": 111, "children": [181], "start_point": {"row": 101, "column": 4}, "end_point": {"row": 119, "column": 5}}, {"id": 181, "type": "parenthesized_expression", "text": "(\n p_page_node)", "parent": 180, "children": [182], "start_point": {"row": 101, "column": 7}, "end_point": {"row": 102, "column": 20}}, {"id": 182, "type": "identifier", "text": "p_page_node", "parent": 181, "children": [], "start_point": {"row": 102, "column": 8}, "end_point": {"row": 102, "column": 19}}, {"id": 183, "type": "call_expression", "text": "feed_list_init(\n &(\n p_page_node->o_list))", "parent": 180, "children": [184, 185], "start_point": {"row": 104, "column": 8}, "end_point": {"row": 106, "column": 37}}, {"id": 184, "type": "identifier", "text": "feed_list_init", "parent": 183, "children": [], "start_point": {"row": 104, "column": 8}, "end_point": {"row": 104, "column": 22}}, {"id": 185, "type": "argument_list", "text": "(\n &(\n p_page_node->o_list))", "parent": 183, "children": [186], "start_point": {"row": 104, "column": 22}, "end_point": {"row": 106, "column": 37}}, {"id": 186, "type": "pointer_expression", "text": "&(\n p_page_node->o_list)", "parent": 185, "children": [187], "start_point": {"row": 105, "column": 12}, "end_point": {"row": 106, "column": 36}}, {"id": 187, "type": "parenthesized_expression", "text": "(\n p_page_node->o_list)", "parent": 186, "children": [188], "start_point": {"row": 105, "column": 13}, "end_point": {"row": 106, "column": 36}}, {"id": 188, "type": "field_expression", "text": "p_page_node->o_list", "parent": 187, "children": [189, 190], "start_point": {"row": 106, "column": 16}, "end_point": {"row": 106, "column": 35}}, {"id": 189, "type": "identifier", "text": "p_page_node", "parent": 188, "children": [], "start_point": {"row": 106, "column": 16}, "end_point": {"row": 106, "column": 27}}, {"id": 190, "type": "field_identifier", "text": "o_list", "parent": 188, "children": [], "start_point": {"row": 106, "column": 29}, "end_point": {"row": 106, "column": 35}}, {"id": 191, "type": "assignment_expression", "text": "p_page_node->o_view_descriptor =\n *(\n p_view_descriptor)", "parent": 180, "children": [192, 195, 196], "start_point": {"row": 108, "column": 8}, "end_point": {"row": 110, "column": 34}}, {"id": 192, "type": "field_expression", "text": "p_page_node->o_view_descriptor", "parent": 191, "children": [193, 194], "start_point": {"row": 108, "column": 8}, "end_point": {"row": 108, "column": 38}}, {"id": 193, "type": "identifier", "text": "p_page_node", "parent": 192, "children": [], "start_point": {"row": 108, "column": 8}, "end_point": {"row": 108, "column": 19}}, {"id": 194, "type": "field_identifier", "text": "o_view_descriptor", "parent": 192, "children": [], "start_point": {"row": 108, "column": 21}, "end_point": {"row": 108, "column": 38}}, {"id": 195, "type": "=", "text": "=", "parent": 191, "children": [], "start_point": {"row": 108, "column": 39}, "end_point": {"row": 108, "column": 40}}, {"id": 196, "type": "pointer_expression", "text": "*(\n p_view_descriptor)", "parent": 191, "children": [197, 198], "start_point": {"row": 109, "column": 12}, "end_point": {"row": 110, "column": 34}}, {"id": 197, "type": "*", "text": "*", "parent": 196, "children": [], "start_point": {"row": 109, "column": 12}, "end_point": {"row": 109, "column": 13}}, {"id": 198, "type": "parenthesized_expression", "text": "(\n p_view_descriptor)", "parent": 196, "children": [199], "start_point": {"row": 109, "column": 13}, "end_point": {"row": 110, "column": 34}}, {"id": 199, "type": "identifier", "text": "p_view_descriptor", "parent": 198, "children": [], "start_point": {"row": 110, "column": 16}, "end_point": {"row": 110, "column": 33}}, {"id": 200, "type": "call_expression", "text": "feed_list_join(\n &(\n p_page_node->o_list),\n &(\n p_page->o_pages))", "parent": 180, "children": [201, 202], "start_point": {"row": 112, "column": 8}, "end_point": {"row": 116, "column": 33}}, {"id": 201, "type": "identifier", "text": "feed_list_join", "parent": 200, "children": [], "start_point": {"row": 112, "column": 8}, "end_point": {"row": 112, "column": 22}}, {"id": 202, "type": "argument_list", "text": "(\n &(\n p_page_node->o_list),\n &(\n p_page->o_pages))", "parent": 200, "children": [203, 208], "start_point": {"row": 112, "column": 22}, "end_point": {"row": 116, "column": 33}}, {"id": 203, "type": "pointer_expression", "text": "&(\n p_page_node->o_list)", "parent": 202, "children": [204], "start_point": {"row": 113, "column": 12}, "end_point": {"row": 114, "column": 36}}, {"id": 204, "type": "parenthesized_expression", "text": "(\n p_page_node->o_list)", "parent": 203, "children": [205], "start_point": {"row": 113, "column": 13}, "end_point": {"row": 114, "column": 36}}, {"id": 205, "type": "field_expression", "text": "p_page_node->o_list", "parent": 204, "children": [206, 207], "start_point": {"row": 114, "column": 16}, "end_point": {"row": 114, "column": 35}}, {"id": 206, "type": "identifier", "text": "p_page_node", "parent": 205, "children": [], "start_point": {"row": 114, "column": 16}, "end_point": {"row": 114, "column": 27}}, {"id": 207, "type": "field_identifier", "text": "o_list", "parent": 205, "children": [], "start_point": {"row": 114, "column": 29}, "end_point": {"row": 114, "column": 35}}, {"id": 208, "type": "pointer_expression", "text": "&(\n p_page->o_pages)", "parent": 202, "children": [209], "start_point": {"row": 115, "column": 12}, "end_point": {"row": 116, "column": 32}}, {"id": 209, "type": "parenthesized_expression", "text": "(\n p_page->o_pages)", "parent": 208, "children": [210], "start_point": {"row": 115, "column": 13}, "end_point": {"row": 116, "column": 32}}, {"id": 210, "type": "field_expression", "text": "p_page->o_pages", "parent": 209, "children": [211, 212], "start_point": {"row": 116, "column": 16}, "end_point": {"row": 116, "column": 31}}, {"id": 211, "type": "identifier", "text": "p_page", "parent": 210, "children": [], "start_point": {"row": 116, "column": 16}, "end_point": {"row": 116, "column": 22}}, {"id": 212, "type": "field_identifier", "text": "o_pages", "parent": 210, "children": [], "start_point": {"row": 116, "column": 24}, "end_point": {"row": 116, "column": 31}}, {"id": 213, "type": "update_expression", "text": "p_page->i_page_count ++", "parent": 180, "children": [214, 217], "start_point": {"row": 118, "column": 8}, "end_point": {"row": 118, "column": 31}}, {"id": 214, "type": "field_expression", "text": "p_page->i_page_count", "parent": 213, "children": [215, 216], "start_point": {"row": 118, "column": 8}, "end_point": {"row": 118, "column": 28}}, {"id": 215, "type": "identifier", "text": "p_page", "parent": 214, "children": [], "start_point": {"row": 118, "column": 8}, "end_point": {"row": 118, "column": 14}}, {"id": 216, "type": "field_identifier", "text": "i_page_count", "parent": 214, "children": [], "start_point": {"row": 118, "column": 16}, "end_point": {"row": 118, "column": 28}}, {"id": 217, "type": "++", "text": "++", "parent": 213, "children": [], "start_point": {"row": 118, "column": 29}, "end_point": {"row": 118, "column": 31}}, {"id": 218, "type": "function_definition", "text": "char\nfeed_page_pop(\n struct feed_page_history * const\n p_page,\n struct feed_view_descriptor * const\n p_view_descriptor)\n{\n char\n b_result;\n\n if (\n p_page->i_page_count)\n {\n struct feed_page_node *\n p_page_node;\n\n struct feed_heap *\n p_heap;\n\n p_heap =\n feed_client_get_heap(\n p_page->p_client);\n\n p_page_node =\n (struct feed_page_node *)(\n p_page->o_pages.p_prev);\n\n feed_list_join(\n &(\n p_page_node->o_list),\n &(\n p_page_node->o_list));\n\n *(\n p_view_descriptor) =\n p_page_node->o_view_descriptor;\n\n feed_heap_free(\n p_heap,\n (void *)(\n p_page_node));\n\n p_page->i_page_count --;\n\n b_result =\n 1;\n }\n else\n {\n b_result =\n 0;\n }\n\n return\n b_result;\n\n}", "parent": null, "children": [219, 220], "start_point": {"row": 122, "column": 0}, "end_point": {"row": 178, "column": 1}}, {"id": 219, "type": "primitive_type", "text": "char", "parent": 218, "children": [], "start_point": {"row": 122, "column": 0}, "end_point": {"row": 122, "column": 4}}, {"id": 220, "type": "function_declarator", "text": "feed_page_pop(\n struct feed_page_history * const\n p_page,\n struct feed_view_descriptor * const\n p_view_descriptor)", "parent": 218, "children": [221, 222], "start_point": {"row": 123, "column": 0}, "end_point": {"row": 127, "column": 26}}, {"id": 221, "type": "identifier", "text": "feed_page_pop", "parent": 220, "children": [], "start_point": {"row": 123, "column": 0}, "end_point": {"row": 123, "column": 13}}, {"id": 222, "type": "parameter_list", "text": "(\n struct feed_page_history * const\n p_page,\n struct feed_view_descriptor * const\n p_view_descriptor)", "parent": 220, "children": [223, 230], "start_point": {"row": 123, "column": 13}, "end_point": {"row": 127, "column": 26}}, {"id": 223, "type": "parameter_declaration", "text": "struct feed_page_history * const\n p_page", "parent": 222, "children": [224, 227], "start_point": {"row": 124, "column": 4}, "end_point": {"row": 125, "column": 14}}, {"id": 224, "type": "struct_specifier", "text": "struct feed_page_history", "parent": 223, "children": [225, 226], "start_point": {"row": 124, "column": 4}, "end_point": {"row": 124, "column": 28}}, {"id": 225, "type": "struct", "text": "struct", "parent": 224, "children": [], "start_point": {"row": 124, "column": 4}, "end_point": {"row": 124, "column": 10}}, {"id": 226, "type": "type_identifier", "text": "feed_page_history", "parent": 224, "children": [], "start_point": {"row": 124, "column": 11}, "end_point": {"row": 124, "column": 28}}, {"id": 227, "type": "pointer_declarator", "text": "* const\n p_page", "parent": 223, "children": [228, 229], "start_point": {"row": 124, "column": 29}, "end_point": {"row": 125, "column": 14}}, {"id": 228, "type": "*", "text": "*", "parent": 227, "children": [], "start_point": {"row": 124, "column": 29}, "end_point": {"row": 124, "column": 30}}, {"id": 229, "type": "identifier", "text": "p_page", "parent": 227, "children": [], "start_point": {"row": 125, "column": 8}, "end_point": {"row": 125, "column": 14}}, {"id": 230, "type": "parameter_declaration", "text": "struct feed_view_descriptor * const\n p_view_descriptor", "parent": 222, "children": [231, 234], "start_point": {"row": 126, "column": 4}, "end_point": {"row": 127, "column": 25}}, {"id": 231, "type": "struct_specifier", "text": "struct feed_view_descriptor", "parent": 230, "children": [232, 233], "start_point": {"row": 126, "column": 4}, "end_point": {"row": 126, "column": 31}}, {"id": 232, "type": "struct", "text": "struct", "parent": 231, "children": [], "start_point": {"row": 126, "column": 4}, "end_point": {"row": 126, "column": 10}}, {"id": 233, "type": "type_identifier", "text": "feed_view_descriptor", "parent": 231, "children": [], "start_point": {"row": 126, "column": 11}, "end_point": {"row": 126, "column": 31}}, {"id": 234, "type": "pointer_declarator", "text": "* const\n p_view_descriptor", "parent": 230, "children": [235, 236], "start_point": {"row": 126, "column": 32}, "end_point": {"row": 127, "column": 25}}, {"id": 235, "type": "*", "text": "*", "parent": 234, "children": [], "start_point": {"row": 126, "column": 32}, "end_point": {"row": 126, "column": 33}}, {"id": 236, "type": "identifier", "text": "p_view_descriptor", "parent": 234, "children": [], "start_point": {"row": 127, "column": 8}, "end_point": {"row": 127, "column": 25}}, {"id": 237, "type": "declaration", "text": "char\n b_result;", "parent": 218, "children": [238, 239], "start_point": {"row": 129, "column": 4}, "end_point": {"row": 130, "column": 17}}, {"id": 238, "type": "primitive_type", "text": "char", "parent": 237, "children": [], "start_point": {"row": 129, "column": 4}, "end_point": {"row": 129, "column": 8}}, {"id": 239, "type": "identifier", "text": "b_result", "parent": 237, "children": [], "start_point": {"row": 130, "column": 8}, "end_point": {"row": 130, "column": 16}}, {"id": 240, "type": "if_statement", "text": "if (\n p_page->i_page_count)\n {\n struct feed_page_node *\n p_page_node;\n\n struct feed_heap *\n p_heap;\n\n p_heap =\n feed_client_get_heap(\n p_page->p_client);\n\n p_page_node =\n (struct feed_page_node *)(\n p_page->o_pages.p_prev);\n\n feed_list_join(\n &(\n p_page_node->o_list),\n &(\n p_page_node->o_list));\n\n *(\n p_view_descriptor) =\n p_page_node->o_view_descriptor;\n\n feed_heap_free(\n p_heap,\n (void *)(\n p_page_node));\n\n p_page->i_page_count --;\n\n b_result =\n 1;\n }\n else\n {\n b_result =\n 0;\n }", "parent": 218, "children": [241, 326], "start_point": {"row": 132, "column": 4}, "end_point": {"row": 173, "column": 5}}, {"id": 241, "type": "parenthesized_expression", "text": "(\n p_page->i_page_count)", "parent": 240, "children": [242], "start_point": {"row": 132, "column": 7}, "end_point": {"row": 133, "column": 29}}, {"id": 242, "type": "field_expression", "text": "p_page->i_page_count", "parent": 241, "children": [243, 244], "start_point": {"row": 133, "column": 8}, "end_point": {"row": 133, "column": 28}}, {"id": 243, "type": "identifier", "text": "p_page", "parent": 242, "children": [], "start_point": {"row": 133, "column": 8}, "end_point": {"row": 133, "column": 14}}, {"id": 244, "type": "field_identifier", "text": "i_page_count", "parent": 242, "children": [], "start_point": {"row": 133, "column": 16}, "end_point": {"row": 133, "column": 28}}, {"id": 245, "type": "declaration", "text": "struct feed_page_node *\n p_page_node;", "parent": 240, "children": [246, 249], "start_point": {"row": 135, "column": 8}, "end_point": {"row": 136, "column": 24}}, {"id": 246, "type": "struct_specifier", "text": "struct feed_page_node", "parent": 245, "children": [247, 248], "start_point": {"row": 135, "column": 8}, "end_point": {"row": 135, "column": 29}}, {"id": 247, "type": "struct", "text": "struct", "parent": 246, "children": [], "start_point": {"row": 135, "column": 8}, "end_point": {"row": 135, "column": 14}}, {"id": 248, "type": "type_identifier", "text": "feed_page_node", "parent": 246, "children": [], "start_point": {"row": 135, "column": 15}, "end_point": {"row": 135, "column": 29}}, {"id": 249, "type": "pointer_declarator", "text": "*\n p_page_node", "parent": 245, "children": [250, 251], "start_point": {"row": 135, "column": 30}, "end_point": {"row": 136, "column": 23}}, {"id": 250, "type": "*", "text": "*", "parent": 249, "children": [], "start_point": {"row": 135, "column": 30}, "end_point": {"row": 135, "column": 31}}, {"id": 251, "type": "identifier", "text": "p_page_node", "parent": 249, "children": [], "start_point": {"row": 136, "column": 12}, "end_point": {"row": 136, "column": 23}}, {"id": 252, "type": "declaration", "text": "struct feed_heap *\n p_heap;", "parent": 240, "children": [253, 256], "start_point": {"row": 138, "column": 8}, "end_point": {"row": 139, "column": 19}}, {"id": 253, "type": "struct_specifier", "text": "struct feed_heap", "parent": 252, "children": [254, 255], "start_point": {"row": 138, "column": 8}, "end_point": {"row": 138, "column": 24}}, {"id": 254, "type": "struct", "text": "struct", "parent": 253, "children": [], "start_point": {"row": 138, "column": 8}, "end_point": {"row": 138, "column": 14}}, {"id": 255, "type": "type_identifier", "text": "feed_heap", "parent": 253, "children": [], "start_point": {"row": 138, "column": 15}, "end_point": {"row": 138, "column": 24}}, {"id": 256, "type": "pointer_declarator", "text": "*\n p_heap", "parent": 252, "children": [257, 258], "start_point": {"row": 138, "column": 25}, "end_point": {"row": 139, "column": 18}}, {"id": 257, "type": "*", "text": "*", "parent": 256, "children": [], "start_point": {"row": 138, "column": 25}, "end_point": {"row": 138, "column": 26}}, {"id": 258, "type": "identifier", "text": "p_heap", "parent": 256, "children": [], "start_point": {"row": 139, "column": 12}, "end_point": {"row": 139, "column": 18}}, {"id": 259, "type": "assignment_expression", "text": "p_heap =\n feed_client_get_heap(\n p_page->p_client)", "parent": 240, "children": [260, 261, 262], "start_point": {"row": 141, "column": 8}, "end_point": {"row": 143, "column": 33}}, {"id": 260, "type": "identifier", "text": "p_heap", "parent": 259, "children": [], "start_point": {"row": 141, "column": 8}, "end_point": {"row": 141, "column": 14}}, {"id": 261, "type": "=", "text": "=", "parent": 259, "children": [], "start_point": {"row": 141, "column": 15}, "end_point": {"row": 141, "column": 16}}, {"id": 262, "type": "call_expression", "text": "feed_client_get_heap(\n p_page->p_client)", "parent": 259, "children": [263, 264], "start_point": {"row": 142, "column": 12}, "end_point": {"row": 143, "column": 33}}, {"id": 263, "type": "identifier", "text": "feed_client_get_heap", "parent": 262, "children": [], "start_point": {"row": 142, "column": 12}, "end_point": {"row": 142, "column": 32}}, {"id": 264, "type": "argument_list", "text": "(\n p_page->p_client)", "parent": 262, "children": [265], "start_point": {"row": 142, "column": 32}, "end_point": {"row": 143, "column": 33}}, {"id": 265, "type": "field_expression", "text": "p_page->p_client", "parent": 264, "children": [266, 267], "start_point": {"row": 143, "column": 16}, "end_point": {"row": 143, "column": 32}}, {"id": 266, "type": "identifier", "text": "p_page", "parent": 265, "children": [], "start_point": {"row": 143, "column": 16}, "end_point": {"row": 143, "column": 22}}, {"id": 267, "type": "field_identifier", "text": "p_client", "parent": 265, "children": [], "start_point": {"row": 143, "column": 24}, "end_point": {"row": 143, "column": 32}}, {"id": 268, "type": "assignment_expression", "text": "p_page_node =\n (struct feed_page_node *)(\n p_page->o_pages.p_prev)", "parent": 240, "children": [269, 270, 271], "start_point": {"row": 145, "column": 8}, "end_point": {"row": 147, "column": 39}}, {"id": 269, "type": "identifier", "text": "p_page_node", "parent": 268, "children": [], "start_point": {"row": 145, "column": 8}, "end_point": {"row": 145, "column": 19}}, {"id": 270, "type": "=", "text": "=", "parent": 268, "children": [], "start_point": {"row": 145, "column": 20}, "end_point": {"row": 145, "column": 21}}, {"id": 271, "type": "cast_expression", "text": "(struct feed_page_node *)(\n p_page->o_pages.p_prev)", "parent": 268, "children": [272, 278], "start_point": {"row": 146, "column": 12}, "end_point": {"row": 147, "column": 39}}, {"id": 272, "type": "type_descriptor", "text": "struct feed_page_node *", "parent": 271, "children": [273, 276], "start_point": {"row": 146, "column": 13}, "end_point": {"row": 146, "column": 36}}, {"id": 273, "type": "struct_specifier", "text": "struct feed_page_node", "parent": 272, "children": [274, 275], "start_point": {"row": 146, "column": 13}, "end_point": {"row": 146, "column": 34}}, {"id": 274, "type": "struct", "text": "struct", "parent": 273, "children": [], "start_point": {"row": 146, "column": 13}, "end_point": {"row": 146, "column": 19}}, {"id": 275, "type": "type_identifier", "text": "feed_page_node", "parent": 273, "children": [], "start_point": {"row": 146, "column": 20}, "end_point": {"row": 146, "column": 34}}, {"id": 276, "type": "abstract_pointer_declarator", "text": "*", "parent": 272, "children": [277], "start_point": {"row": 146, "column": 35}, "end_point": {"row": 146, "column": 36}}, {"id": 277, "type": "*", "text": "*", "parent": 276, "children": [], "start_point": {"row": 146, "column": 35}, "end_point": {"row": 146, "column": 36}}, {"id": 278, "type": "parenthesized_expression", "text": "(\n p_page->o_pages.p_prev)", "parent": 271, "children": [279], "start_point": {"row": 146, "column": 37}, "end_point": {"row": 147, "column": 39}}, {"id": 279, "type": "field_expression", "text": "p_page->o_pages.p_prev", "parent": 278, "children": [280, 283], "start_point": {"row": 147, "column": 16}, "end_point": {"row": 147, "column": 38}}, {"id": 280, "type": "field_expression", "text": "p_page->o_pages", "parent": 279, "children": [281, 282], "start_point": {"row": 147, "column": 16}, "end_point": {"row": 147, "column": 31}}, {"id": 281, "type": "identifier", "text": "p_page", "parent": 280, "children": [], "start_point": {"row": 147, "column": 16}, "end_point": {"row": 147, "column": 22}}, {"id": 282, "type": "field_identifier", "text": "o_pages", "parent": 280, "children": [], "start_point": {"row": 147, "column": 24}, "end_point": {"row": 147, "column": 31}}, {"id": 283, "type": "field_identifier", "text": "p_prev", "parent": 279, "children": [], "start_point": {"row": 147, "column": 32}, "end_point": {"row": 147, "column": 38}}, {"id": 284, "type": "call_expression", "text": "feed_list_join(\n &(\n p_page_node->o_list),\n &(\n p_page_node->o_list))", "parent": 240, "children": [285, 286], "start_point": {"row": 149, "column": 8}, "end_point": {"row": 153, "column": 37}}, {"id": 285, "type": "identifier", "text": "feed_list_join", "parent": 284, "children": [], "start_point": {"row": 149, "column": 8}, "end_point": {"row": 149, "column": 22}}, {"id": 286, "type": "argument_list", "text": "(\n &(\n p_page_node->o_list),\n &(\n p_page_node->o_list))", "parent": 284, "children": [287, 292], "start_point": {"row": 149, "column": 22}, "end_point": {"row": 153, "column": 37}}, {"id": 287, "type": "pointer_expression", "text": "&(\n p_page_node->o_list)", "parent": 286, "children": [288], "start_point": {"row": 150, "column": 12}, "end_point": {"row": 151, "column": 36}}, {"id": 288, "type": "parenthesized_expression", "text": "(\n p_page_node->o_list)", "parent": 287, "children": [289], "start_point": {"row": 150, "column": 13}, "end_point": {"row": 151, "column": 36}}, {"id": 289, "type": "field_expression", "text": "p_page_node->o_list", "parent": 288, "children": [290, 291], "start_point": {"row": 151, "column": 16}, "end_point": {"row": 151, "column": 35}}, {"id": 290, "type": "identifier", "text": "p_page_node", "parent": 289, "children": [], "start_point": {"row": 151, "column": 16}, "end_point": {"row": 151, "column": 27}}, {"id": 291, "type": "field_identifier", "text": "o_list", "parent": 289, "children": [], "start_point": {"row": 151, "column": 29}, "end_point": {"row": 151, "column": 35}}, {"id": 292, "type": "pointer_expression", "text": "&(\n p_page_node->o_list)", "parent": 286, "children": [293], "start_point": {"row": 152, "column": 12}, "end_point": {"row": 153, "column": 36}}, {"id": 293, "type": "parenthesized_expression", "text": "(\n p_page_node->o_list)", "parent": 292, "children": [294], "start_point": {"row": 152, "column": 13}, "end_point": {"row": 153, "column": 36}}, {"id": 294, "type": "field_expression", "text": "p_page_node->o_list", "parent": 293, "children": [295, 296], "start_point": {"row": 153, "column": 16}, "end_point": {"row": 153, "column": 35}}, {"id": 295, "type": "identifier", "text": "p_page_node", "parent": 294, "children": [], "start_point": {"row": 153, "column": 16}, "end_point": {"row": 153, "column": 27}}, {"id": 296, "type": "field_identifier", "text": "o_list", "parent": 294, "children": [], "start_point": {"row": 153, "column": 29}, "end_point": {"row": 153, "column": 35}}, {"id": 297, "type": "assignment_expression", "text": "*(\n p_view_descriptor) =\n p_page_node->o_view_descriptor", "parent": 240, "children": [298, 302, 303], "start_point": {"row": 155, "column": 8}, "end_point": {"row": 157, "column": 42}}, {"id": 298, "type": "pointer_expression", "text": "*(\n p_view_descriptor)", "parent": 297, "children": [299, 300], "start_point": {"row": 155, "column": 8}, "end_point": {"row": 156, "column": 30}}, {"id": 299, "type": "*", "text": "*", "parent": 298, "children": [], "start_point": {"row": 155, "column": 8}, "end_point": {"row": 155, "column": 9}}, {"id": 300, "type": "parenthesized_expression", "text": "(\n p_view_descriptor)", "parent": 298, "children": [301], "start_point": {"row": 155, "column": 9}, "end_point": {"row": 156, "column": 30}}, {"id": 301, "type": "identifier", "text": "p_view_descriptor", "parent": 300, "children": [], "start_point": {"row": 156, "column": 12}, "end_point": {"row": 156, "column": 29}}, {"id": 302, "type": "=", "text": "=", "parent": 297, "children": [], "start_point": {"row": 156, "column": 31}, "end_point": {"row": 156, "column": 32}}, {"id": 303, "type": "field_expression", "text": "p_page_node->o_view_descriptor", "parent": 297, "children": [304, 305], "start_point": {"row": 157, "column": 12}, "end_point": {"row": 157, "column": 42}}, {"id": 304, "type": "identifier", "text": "p_page_node", "parent": 303, "children": [], "start_point": {"row": 157, "column": 12}, "end_point": {"row": 157, "column": 23}}, {"id": 305, "type": "field_identifier", "text": "o_view_descriptor", "parent": 303, "children": [], "start_point": {"row": 157, "column": 25}, "end_point": {"row": 157, "column": 42}}, {"id": 306, "type": "call_expression", "text": "feed_heap_free(\n p_heap,\n (void *)(\n p_page_node))", "parent": 240, "children": [307, 308], "start_point": {"row": 159, "column": 8}, "end_point": {"row": 162, "column": 29}}, {"id": 307, "type": "identifier", "text": "feed_heap_free", "parent": 306, "children": [], "start_point": {"row": 159, "column": 8}, "end_point": {"row": 159, "column": 22}}, {"id": 308, "type": "argument_list", "text": "(\n p_heap,\n (void *)(\n p_page_node))", "parent": 306, "children": [309, 310], "start_point": {"row": 159, "column": 22}, "end_point": {"row": 162, "column": 29}}, {"id": 309, "type": "identifier", "text": "p_heap", "parent": 308, "children": [], "start_point": {"row": 160, "column": 12}, "end_point": {"row": 160, "column": 18}}, {"id": 310, "type": "cast_expression", "text": "(void *)(\n p_page_node)", "parent": 308, "children": [311, 315], "start_point": {"row": 161, "column": 12}, "end_point": {"row": 162, "column": 28}}, {"id": 311, "type": "type_descriptor", "text": "void *", "parent": 310, "children": [312, 313], "start_point": {"row": 161, "column": 13}, "end_point": {"row": 161, "column": 19}}, {"id": 312, "type": "primitive_type", "text": "void", "parent": 311, "children": [], "start_point": {"row": 161, "column": 13}, "end_point": {"row": 161, "column": 17}}, {"id": 313, "type": "abstract_pointer_declarator", "text": "*", "parent": 311, "children": [314], "start_point": {"row": 161, "column": 18}, "end_point": {"row": 161, "column": 19}}, {"id": 314, "type": "*", "text": "*", "parent": 313, "children": [], "start_point": {"row": 161, "column": 18}, "end_point": {"row": 161, "column": 19}}, {"id": 315, "type": "parenthesized_expression", "text": "(\n p_page_node)", "parent": 310, "children": [316], "start_point": {"row": 161, "column": 20}, "end_point": {"row": 162, "column": 28}}, {"id": 316, "type": "identifier", "text": "p_page_node", "parent": 315, "children": [], "start_point": {"row": 162, "column": 16}, "end_point": {"row": 162, "column": 27}}, {"id": 317, "type": "update_expression", "text": "p_page->i_page_count --", "parent": 240, "children": [318, 321], "start_point": {"row": 164, "column": 8}, "end_point": {"row": 164, "column": 31}}, {"id": 318, "type": "field_expression", "text": "p_page->i_page_count", "parent": 317, "children": [319, 320], "start_point": {"row": 164, "column": 8}, "end_point": {"row": 164, "column": 28}}, {"id": 319, "type": "identifier", "text": "p_page", "parent": 318, "children": [], "start_point": {"row": 164, "column": 8}, "end_point": {"row": 164, "column": 14}}, {"id": 320, "type": "field_identifier", "text": "i_page_count", "parent": 318, "children": [], "start_point": {"row": 164, "column": 16}, "end_point": {"row": 164, "column": 28}}, {"id": 321, "type": "--", "text": "--", "parent": 317, "children": [], "start_point": {"row": 164, "column": 29}, "end_point": {"row": 164, "column": 31}}, {"id": 322, "type": "assignment_expression", "text": "b_result =\n 1", "parent": 240, "children": [323, 324, 325], "start_point": {"row": 166, "column": 8}, "end_point": {"row": 167, "column": 13}}, {"id": 323, "type": "identifier", "text": "b_result", "parent": 322, "children": [], "start_point": {"row": 166, "column": 8}, "end_point": {"row": 166, "column": 16}}, {"id": 324, "type": "=", "text": "=", "parent": 322, "children": [], "start_point": {"row": 166, "column": 17}, "end_point": {"row": 166, "column": 18}}, {"id": 325, "type": "number_literal", "text": "1", "parent": 322, "children": [], "start_point": {"row": 167, "column": 12}, "end_point": {"row": 167, "column": 13}}, {"id": 326, "type": "else_clause", "text": "else\n {\n b_result =\n 0;\n }", "parent": 240, "children": [], "start_point": {"row": 169, "column": 4}, "end_point": {"row": 173, "column": 5}}, {"id": 327, "type": "assignment_expression", "text": "b_result =\n 0", "parent": 326, "children": [328, 329, 330], "start_point": {"row": 171, "column": 8}, "end_point": {"row": 172, "column": 13}}, {"id": 328, "type": "identifier", "text": "b_result", "parent": 327, "children": [], "start_point": {"row": 171, "column": 8}, "end_point": {"row": 171, "column": 16}}, {"id": 329, "type": "=", "text": "=", "parent": 327, "children": [], "start_point": {"row": 171, "column": 17}, "end_point": {"row": 171, "column": 18}}, {"id": 330, "type": "number_literal", "text": "0", "parent": 327, "children": [], "start_point": {"row": 172, "column": 12}, "end_point": {"row": 172, "column": 13}}, {"id": 331, "type": "return_statement", "text": "return\n b_result;", "parent": 218, "children": [332], "start_point": {"row": 175, "column": 4}, "end_point": {"row": 176, "column": 17}}, {"id": 332, "type": "identifier", "text": "b_result", "parent": 331, "children": [], "start_point": {"row": 176, "column": 8}, "end_point": {"row": 176, "column": 16}}]}, "node_categories": {"declarations": {"functions": [30, 32, 69, 71, 85, 87, 111, 113, 218, 220], "variables": [35, 42, 74, 90, 97, 116, 123, 130, 137, 223, 230, 237, 245, 252], "classes": [36, 37, 43, 44, 75, 76, 91, 92, 98, 99, 117, 118, 124, 125, 131, 132, 138, 139, 158, 159, 177, 178, 224, 225, 231, 232, 246, 247, 253, 254, 273, 274], "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": [50, 55, 58, 59, 60, 64, 81, 103, 104, 108, 109, 147, 150, 156, 163, 164, 168, 174, 175, 181, 183, 186, 187, 188, 192, 196, 198, 200, 203, 204, 205, 208, 209, 210, 213, 214, 241, 242, 262, 265, 271, 278, 279, 280, 284, 287, 288, 289, 292, 293, 294, 298, 300, 303, 306, 310, 315, 317, 318], "assignments": [49, 63, 144, 153, 191, 259, 268, 297, 322, 327], "loops": [102], "conditionals": [33, 38, 41, 45, 48, 51, 52, 54, 56, 61, 62, 65, 66, 72, 77, 80, 82, 84, 88, 93, 96, 100, 101, 105, 107, 110, 114, 119, 122, 126, 129, 133, 136, 140, 143, 145, 148, 151, 152, 154, 160, 165, 167, 170, 179, 180, 182, 184, 189, 190, 193, 194, 199, 201, 206, 207, 211, 212, 215, 216, 221, 226, 229, 233, 236, 239, 240, 243, 244, 248, 251, 255, 258, 260, 263, 266, 267, 269, 275, 281, 282, 283, 285, 290, 291, 295, 296, 301, 304, 305, 307, 309, 316, 319, 320, 323, 328, 332], "returns": [331], "exceptions": []}, "expressions": {"calls": [], "literals": [2, 5, 8, 11, 14, 17, 20, 23, 26, 29, 68, 325, 330], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [{"node_id": 30, "universal_type": "function", "name": "feed_page_init", "text_snippet": "void\nfeed_page_init(\n struct feed_page_history * const\n p_page,\n struct feed_client * c"}, {"node_id": 32, "universal_type": "function", "name": "feed_page_history", "text_snippet": "feed_page_init(\n struct feed_page_history * const\n p_page,\n struct feed_client * const\n"}, {"node_id": 69, "universal_type": "function", "name": "feed_page_cleanup", "text_snippet": "void\nfeed_page_cleanup(\n struct feed_page_history * const\n p_page)\n{\n feed_page_reset(\n"}, {"node_id": 71, "universal_type": "function", "name": "feed_page_history", "text_snippet": "feed_page_cleanup(\n struct feed_page_history * const\n p_page)"}, {"node_id": 85, "universal_type": "function", "name": "feed_page_reset", "text_snippet": "void\nfeed_page_reset(\n struct feed_page_history * const\n p_page)\n{\n struct feed_view_de"}, {"node_id": 87, "universal_type": "function", "name": "feed_page_history", "text_snippet": "feed_page_reset(\n struct feed_page_history * const\n p_page)"}, {"node_id": 111, "universal_type": "function", "name": "feed_page_push", "text_snippet": "void\nfeed_page_push(\n struct feed_page_history * const\n p_page,\n struct feed_view_descr"}, {"node_id": 113, "universal_type": "function", "name": "feed_page_history", "text_snippet": "feed_page_push(\n struct feed_page_history * const\n p_page,\n struct feed_view_descriptor"}, {"node_id": 218, "universal_type": "function", "name": "feed_page_history", "text_snippet": "char\nfeed_page_pop(\n struct feed_page_history * const\n p_page,\n struct feed_view_descri"}, {"node_id": 220, "universal_type": "function", "name": "feed_page_history", "text_snippet": "feed_page_pop(\n struct feed_page_history * const\n p_page,\n struct feed_view_descriptor "}], "class_declarations": [{"node_id": 36, "universal_type": "class", "name": "feed_page_history", "text_snippet": "struct feed_page_history"}, {"node_id": 37, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 43, "universal_type": "class", "name": "feed_client", "text_snippet": "struct feed_client"}, {"node_id": 44, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 75, "universal_type": "class", "name": "feed_page_history", "text_snippet": "struct feed_page_history"}, {"node_id": 76, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 91, "universal_type": "class", "name": "feed_page_history", "text_snippet": "struct feed_page_history"}, {"node_id": 92, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 98, "universal_type": "class", "name": "feed_view_descriptor", "text_snippet": "struct feed_view_descriptor"}, {"node_id": 99, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 117, "universal_type": "class", "name": "feed_page_history", "text_snippet": "struct feed_page_history"}, {"node_id": 118, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 124, "universal_type": "class", "name": "feed_view_descriptor", "text_snippet": "struct feed_view_descriptor"}, {"node_id": 125, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 131, "universal_type": "class", "name": "feed_page_node", "text_snippet": "struct feed_page_node"}, {"node_id": 132, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 138, "universal_type": "class", "name": "feed_heap", "text_snippet": "struct feed_heap"}, {"node_id": 139, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 158, "universal_type": "class", "name": "feed_page_node", "text_snippet": "struct feed_page_node"}, {"node_id": 159, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 177, "universal_type": "class", "name": "feed_page_node", "text_snippet": "struct feed_page_node"}, {"node_id": 178, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 224, "universal_type": "class", "name": "feed_page_history", "text_snippet": "struct feed_page_history"}, {"node_id": 225, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 231, "universal_type": "class", "name": "feed_view_descriptor", "text_snippet": "struct feed_view_descriptor"}, {"node_id": 232, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 246, "universal_type": "class", "name": "feed_page_node", "text_snippet": "struct feed_page_node"}, {"node_id": 247, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 253, "universal_type": "class", "name": "feed_heap", "text_snippet": "struct feed_heap"}, {"node_id": 254, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 273, "universal_type": "class", "name": "feed_page_node", "text_snippet": "struct feed_page_node"}, {"node_id": 274, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}], "import_statements": [{"node_id": 0, "text": "#include \"feed_os.h\"\n"}, {"node_id": 1, "text": "#include"}, {"node_id": 3, "text": "#include \"feed_cfg.h\"\n"}, {"node_id": 4, "text": "#include"}, {"node_id": 6, "text": "#include \"feed_prompt_iterator.h\"\n"}, {"node_id": 7, "text": "#include"}, {"node_id": 9, "text": "#include \"feed_text_iterator.h\"\n"}, {"node_id": 10, "text": "#include"}, {"node_id": 12, "text": "#include \"feed_screen_iterator.h\"\n"}, {"node_id": 13, "text": "#include"}, {"node_id": 15, "text": "#include \"feed_view.h\"\n"}, {"node_id": 16, "text": "#include"}, {"node_id": 18, "text": "#include \"feed_list.h\"\n"}, {"node_id": 19, "text": "#include"}, {"node_id": 21, "text": "#include \"feed_page.h\"\n"}, {"node_id": 22, "text": "#include"}, {"node_id": 24, "text": "#include \"feed_client.h\"\n"}, {"node_id": 25, "text": "#include"}, {"node_id": 27, "text": "#include \"feed_heap.h\"\n"}, {"node_id": 28, "text": "#include"}]}, "original_source_code": "/* See LICENSE for license details */\n\n/*\n\nModule: feed_page.c\n\nDescription:\n\n History of visited pages.\n\n*/\n\n#include \"feed_os.h\"\n\n#include \"feed_cfg.h\"\n\n#include \"feed_prompt_iterator.h\"\n\n#include \"feed_text_iterator.h\"\n\n#include \"feed_screen_iterator.h\"\n\n#include \"feed_view.h\"\n\n#include \"feed_list.h\"\n\n#include \"feed_page.h\"\n\n#include \"feed_client.h\"\n\n#include \"feed_heap.h\"\n\nvoid\nfeed_page_init(\n struct feed_page_history * const\n p_page,\n struct feed_client * const\n p_client)\n{\n p_page->p_client =\n p_client;\n\n feed_list_init(\n &(\n p_page->o_pages));\n\n p_page->i_page_count =\n 0ul;\n\n}\n\nvoid\nfeed_page_cleanup(\n struct feed_page_history * const\n p_page)\n{\n feed_page_reset(\n p_page);\n\n}\n\nvoid\nfeed_page_reset(\n struct feed_page_history * const\n p_page)\n{\n struct feed_view_descriptor\n o_view_descriptor;\n\n while (\n feed_page_pop(\n p_page,\n &(\n o_view_descriptor)));\n}\n\nvoid\nfeed_page_push(\n struct feed_page_history * const\n p_page,\n struct feed_view_descriptor const * const\n p_view_descriptor)\n{\n struct feed_page_node *\n p_page_node;\n\n struct feed_heap *\n p_heap;\n\n p_heap =\n feed_client_get_heap(\n p_page->p_client);\n\n p_page_node =\n (struct feed_page_node *)(\n feed_heap_alloc(\n p_heap,\n (unsigned long int)(\n sizeof(\n struct feed_page_node))));\n\n if (\n p_page_node)\n {\n feed_list_init(\n &(\n p_page_node->o_list));\n\n p_page_node->o_view_descriptor =\n *(\n p_view_descriptor);\n\n feed_list_join(\n &(\n p_page_node->o_list),\n &(\n p_page->o_pages));\n\n p_page->i_page_count ++;\n }\n}\n\nchar\nfeed_page_pop(\n struct feed_page_history * const\n p_page,\n struct feed_view_descriptor * const\n p_view_descriptor)\n{\n char\n b_result;\n\n if (\n p_page->i_page_count)\n {\n struct feed_page_node *\n p_page_node;\n\n struct feed_heap *\n p_heap;\n\n p_heap =\n feed_client_get_heap(\n p_page->p_client);\n\n p_page_node =\n (struct feed_page_node *)(\n p_page->o_pages.p_prev);\n\n feed_list_join(\n &(\n p_page_node->o_list),\n &(\n p_page_node->o_list));\n\n *(\n p_view_descriptor) =\n p_page_node->o_view_descriptor;\n\n feed_heap_free(\n p_heap,\n (void *)(\n p_page_node));\n\n p_page->i_page_count --;\n\n b_result =\n 1;\n }\n else\n {\n b_result =\n 0;\n }\n\n return\n b_result;\n\n}\n\n"}
80,067
c
@interface _LSQueryResult : NSObject @end
20
2
(translation_unit) "@interface _LSQueryResult : NSObject\n\n@end\n" (ERROR) "@interface _LSQueryResult : NSObject\n\n@end" (ERROR) "@" (type_identifier) "interface" (identifier) "_LSQueryResult" (:) ":" (identifier) "NSObject" (ERROR) "@" (identifier) "end"
9
3
{"language": "c", "success": true, "metadata": {"lines": 2, "avg_line_length": 20.0, "nodes": 6, "errors": 0, "source_hash": "b04b4639c1970b474d0b6248fb367c3a98b8bdc834efbf17ec7ac983a16677e5", "categorized_nodes": 3}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "ERROR", "text": "@interface _LSQueryResult : NSObject\n\n@end", "parent": null, "children": [1, 2, 3, 4, 5], "start_point": {"row": 0, "column": 0}, "end_point": {"row": 2, "column": 4}}, {"id": 1, "type": "ERROR", "text": "@", "parent": 0, "children": [], "start_point": {"row": 0, "column": 0}, "end_point": {"row": 0, "column": 1}}, {"id": 2, "type": "type_identifier", "text": "interface", "parent": 0, "children": [], "start_point": {"row": 0, "column": 1}, "end_point": {"row": 0, "column": 10}}, {"id": 3, "type": "identifier", "text": "_LSQueryResult", "parent": 0, "children": [], "start_point": {"row": 0, "column": 11}, "end_point": {"row": 0, "column": 25}}, {"id": 4, "type": "identifier", "text": "NSObject", "parent": 0, "children": [], "start_point": {"row": 0, "column": 28}, "end_point": {"row": 0, "column": 36}}, {"id": 5, "type": "ERROR", "text": "@", "parent": 0, "children": [], "start_point": {"row": 2, "column": 0}, "end_point": {"row": 2, "column": 1}}]}, "node_categories": {"declarations": {"functions": [], "variables": [], "classes": [], "imports": [], "modules": [], "enums": []}, "statements": {"expressions": [], "assignments": [], "loops": [], "conditionals": [2, 3, 4], "returns": [], "exceptions": []}, "expressions": {"calls": [], "literals": [], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [], "class_declarations": [], "import_statements": []}, "original_source_code": "@interface _LSQueryResult : NSObject\n\n@end\n"}
80,068
c
#include <stdio.h> int main() { int x = 1; int y = 2; int z = 3; printf("(x,y,z) = (%d,%d,%d)\n",x,y,z); { int x = 100; y = 2; if (x > y) { z = x; } else { z = y; } printf("(x,y,z) = (%d,%d,%d)\n",x,y,z); { int z = y; y = 200; printf("(x,y,z) = (%d,%d,%d)\n",x,y,z); } printf("(x,y,z) = (%d,%d,%d)\n",x,y,z); } printf("(x,y,z) = (%d,%d,%d)\n",x,y,z); return 0; }
19.58
26
(translation_unit) "#include <stdio.h>\n\nint main() {\n int x = 1;\n int y = 2;\n int z = 3;\n\n printf("(x,y,z) = (%d,%d,%d)\n",x,y,z);\n\n {\n int x = 100;\n y = 2;\n if (x > y) {\n z = x;\n }\n else {\n z = y;\n }\n\n printf("(x,y,z) = (%d,%d,%d)\n",x,y,z);\n\n {\n int z = y;\n y = 200;\n\n printf("(x,y,z) = (%d,%d,%d)\n",x,y,z);\n }\n printf("(x,y,z) = (%d,%d,%d)\n",x,y,z);\n }\n printf("(x,y,z) = (%d,%d,%d)\n",x,y,z);\n\n return 0;\n}\n" (preproc_include) "#include <stdio.h>\n" (#include) "#include" (system_lib_string) "<stdio.h>" (function_definition) "int main() {\n int x = 1;\n int y = 2;\n int z = 3;\n\n printf("(x,y,z) = (%d,%d,%d)\n",x,y,z);\n\n {\n int x = 100;\n y = 2;\n if (x > y) {\n z = x;\n }\n else {\n z = y;\n }\n\n printf("(x,y,z) = (%d,%d,%d)\n",x,y,z);\n\n {\n int z = y;\n y = 200;\n\n printf("(x,y,z) = (%d,%d,%d)\n",x,y,z);\n }\n printf("(x,y,z) = (%d,%d,%d)\n",x,y,z);\n }\n printf("(x,y,z) = (%d,%d,%d)\n",x,y,z);\n\n return 0;\n}" (primitive_type) "int" (function_declarator) "main()" (identifier) "main" (parameter_list) "()" (() "(" ()) ")" (compound_statement) "{\n int x = 1;\n int y = 2;\n int z = 3;\n\n printf("(x,y,z) = (%d,%d,%d)\n",x,y,z);\n\n {\n int x = 100;\n y = 2;\n if (x > y) {\n z = x;\n }\n else {\n z = y;\n }\n\n printf("(x,y,z) = (%d,%d,%d)\n",x,y,z);\n\n {\n int z = y;\n y = 200;\n\n printf("(x,y,z) = (%d,%d,%d)\n",x,y,z);\n }\n printf("(x,y,z) = (%d,%d,%d)\n",x,y,z);\n }\n printf("(x,y,z) = (%d,%d,%d)\n",x,y,z);\n\n return 0;\n}" ({) "{" (declaration) "int x = 1;" (primitive_type) "int" (init_declarator) "x = 1" (identifier) "x" (=) "=" (number_literal) "1" (;) ";" (declaration) "int y = 2;" (primitive_type) "int" (init_declarator) "y = 2" (identifier) "y" (=) "=" (number_literal) "2" (;) ";" (declaration) "int z = 3;" (primitive_type) "int" (init_declarator) "z = 3" (identifier) "z" (=) "=" (number_literal) "3" (;) ";" (expression_statement) "printf("(x,y,z) = (%d,%d,%d)\n",x,y,z);" (call_expression) "printf("(x,y,z) = (%d,%d,%d)\n",x,y,z)" (identifier) "printf" (argument_list) "("(x,y,z) = (%d,%d,%d)\n",x,y,z)" (() "(" (string_literal) ""(x,y,z) = (%d,%d,%d)\n"" (") """ (string_content) "(x,y,z) = (%d,%d,%d)" (escape_sequence) "\n" (") """ (,) "," (identifier) "x" (,) "," (identifier) "y" (,) "," (identifier) "z" ()) ")" (;) ";" (compound_statement) "{\n int x = 100;\n y = 2;\n if (x > y) {\n z = x;\n }\n else {\n z = y;\n }\n\n printf("(x,y,z) = (%d,%d,%d)\n",x,y,z);\n\n {\n int z = y;\n y = 200;\n\n printf("(x,y,z) = (%d,%d,%d)\n",x,y,z);\n }\n printf("(x,y,z) = (%d,%d,%d)\n",x,y,z);\n }" ({) "{" (declaration) "int x = 100;" (primitive_type) "int" (init_declarator) "x = 100" (identifier) "x" (=) "=" (number_literal) "100" (;) ";" (expression_statement) "y = 2;" (assignment_expression) "y = 2" (identifier) "y" (=) "=" (number_literal) "2" (;) ";" (if_statement) "if (x > y) {\n z = x;\n }\n else {\n z = y;\n }" (if) "if" (parenthesized_expression) "(x > y)" (() "(" (binary_expression) "x > y" (identifier) "x" (>) ">" (identifier) "y" ()) ")" (compound_statement) "{\n z = x;\n }" ({) "{" (expression_statement) "z = x;" (assignment_expression) "z = x" (identifier) "z" (=) "=" (identifier) "x" (;) ";" (}) "}" (else_clause) "else {\n z = y;\n }" (else) "else" (compound_statement) "{\n z = y;\n }" ({) "{" (expression_statement) "z = y;" (assignment_expression) "z = y" (identifier) "z" (=) "=" (identifier) "y" (;) ";" (}) "}" (expression_statement) "printf("(x,y,z) = (%d,%d,%d)\n",x,y,z);" (call_expression) "printf("(x,y,z) = (%d,%d,%d)\n",x,y,z)" (identifier) "printf" (argument_list) "("(x,y,z) = (%d,%d,%d)\n",x,y,z)" (() "(" (string_literal) ""(x,y,z) = (%d,%d,%d)\n"" (") """ (string_content) "(x,y,z) = (%d,%d,%d)" (escape_sequence) "\n" (") """ (,) "," (identifier) "x" (,) "," (identifier) "y" (,) "," (identifier) "z" ()) ")" (;) ";" (compound_statement) "{\n int z = y;\n y = 200;\n\n printf("(x,y,z) = (%d,%d,%d)\n",x,y,z);\n }" ({) "{" (declaration) "int z = y;" (primitive_type) "int" (init_declarator) "z = y" (identifier) "z" (=) "=" (identifier) "y" (;) ";" (expression_statement) "y = 200;" (assignment_expression) "y = 200" (identifier) "y" (=) "=" (number_literal) "200" (;) ";" (expression_statement) "printf("(x,y,z) = (%d,%d,%d)\n",x,y,z);" (call_expression) "printf("(x,y,z) = (%d,%d,%d)\n",x,y,z)" (identifier) "printf" (argument_list) "("(x,y,z) = (%d,%d,%d)\n",x,y,z)" (() "(" (string_literal) ""(x,y,z) = (%d,%d,%d)\n"" (") """ (string_content) "(x,y,z) = (%d,%d,%d)" (escape_sequence) "\n" (") """ (,) "," (identifier) "x" (,) "," (identifier) "y" (,) "," (identifier) "z" ()) ")" (;) ";" (}) "}" (expression_statement) "printf("(x,y,z) = (%d,%d,%d)\n",x,y,z);" (call_expression) "printf("(x,y,z) = (%d,%d,%d)\n",x,y,z)" (identifier) "printf" (argument_list) "("(x,y,z) = (%d,%d,%d)\n",x,y,z)" (() "(" (string_literal) ""(x,y,z) = (%d,%d,%d)\n"" (") """ (string_content) "(x,y,z) = (%d,%d,%d)" (escape_sequence) "\n" (") """ (,) "," (identifier) "x" (,) "," (identifier) "y" (,) "," (identifier) "z" ()) ")" (;) ";" (}) "}" (expression_statement) "printf("(x,y,z) = (%d,%d,%d)\n",x,y,z);" (call_expression) "printf("(x,y,z) = (%d,%d,%d)\n",x,y,z)" (identifier) "printf" (argument_list) "("(x,y,z) = (%d,%d,%d)\n",x,y,z)" (() "(" (string_literal) ""(x,y,z) = (%d,%d,%d)\n"" (") """ (string_content) "(x,y,z) = (%d,%d,%d)" (escape_sequence) "\n" (") """ (,) "," (identifier) "x" (,) "," (identifier) "y" (,) "," (identifier) "z" ()) ")" (;) ";" (return_statement) "return 0;" (return) "return" (number_literal) "0" (;) ";" (}) "}"
190
0
{"language": "c", "success": true, "metadata": {"lines": 26, "avg_line_length": 19.58, "nodes": 103, "errors": 0, "source_hash": "ca6c500c2c89a3170ce09931e677dfb5a34f4d124adb7a7f618bf0487a25c466", "categorized_nodes": 70}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#include <stdio.h>\n", "parent": null, "children": [1, 2], "start_point": {"row": 0, "column": 0}, "end_point": {"row": 1, "column": 0}}, {"id": 1, "type": "#include", "text": "#include", "parent": 0, "children": [], "start_point": {"row": 0, "column": 0}, "end_point": {"row": 0, "column": 8}}, {"id": 2, "type": "system_lib_string", "text": "<stdio.h>", "parent": 0, "children": [], "start_point": {"row": 0, "column": 9}, "end_point": {"row": 0, "column": 18}}, {"id": 3, "type": "function_definition", "text": "int main() {\n int x = 1;\n int y = 2;\n int z = 3;\n\n printf(\"(x,y,z) = (%d,%d,%d)\\n\",x,y,z);\n\n {\n int x = 100;\n y = 2;\n if (x > y) {\n z = x;\n }\n else {\n z = y;\n }\n\n printf(\"(x,y,z) = (%d,%d,%d)\\n\",x,y,z);\n\n {\n int z = y;\n y = 200;\n\n printf(\"(x,y,z) = (%d,%d,%d)\\n\",x,y,z);\n }\n printf(\"(x,y,z) = (%d,%d,%d)\\n\",x,y,z);\n }\n printf(\"(x,y,z) = (%d,%d,%d)\\n\",x,y,z);\n\n return 0;\n}", "parent": null, "children": [4, 5], "start_point": {"row": 2, "column": 0}, "end_point": {"row": 32, "column": 1}}, {"id": 4, "type": "primitive_type", "text": "int", "parent": 3, "children": [], "start_point": {"row": 2, "column": 0}, "end_point": {"row": 2, "column": 3}}, {"id": 5, "type": "function_declarator", "text": "main()", "parent": 3, "children": [6, 7], "start_point": {"row": 2, "column": 4}, "end_point": {"row": 2, "column": 10}}, {"id": 6, "type": "identifier", "text": "main", "parent": 5, "children": [], "start_point": {"row": 2, "column": 4}, "end_point": {"row": 2, "column": 8}}, {"id": 7, "type": "parameter_list", "text": "()", "parent": 5, "children": [], "start_point": {"row": 2, "column": 8}, "end_point": {"row": 2, "column": 10}}, {"id": 8, "type": "declaration", "text": "int x = 1;", "parent": 3, "children": [9, 10], "start_point": {"row": 3, "column": 4}, "end_point": {"row": 3, "column": 14}}, {"id": 9, "type": "primitive_type", "text": "int", "parent": 8, "children": [], "start_point": {"row": 3, "column": 4}, "end_point": {"row": 3, "column": 7}}, {"id": 10, "type": "init_declarator", "text": "x = 1", "parent": 8, "children": [11, 12, 13], "start_point": {"row": 3, "column": 8}, "end_point": {"row": 3, "column": 13}}, {"id": 11, "type": "identifier", "text": "x", "parent": 10, "children": [], "start_point": {"row": 3, "column": 8}, "end_point": {"row": 3, "column": 9}}, {"id": 12, "type": "=", "text": "=", "parent": 10, "children": [], "start_point": {"row": 3, "column": 10}, "end_point": {"row": 3, "column": 11}}, {"id": 13, "type": "number_literal", "text": "1", "parent": 10, "children": [], "start_point": {"row": 3, "column": 12}, "end_point": {"row": 3, "column": 13}}, {"id": 14, "type": "declaration", "text": "int y = 2;", "parent": 3, "children": [15, 16], "start_point": {"row": 4, "column": 4}, "end_point": {"row": 4, "column": 14}}, {"id": 15, "type": "primitive_type", "text": "int", "parent": 14, "children": [], "start_point": {"row": 4, "column": 4}, "end_point": {"row": 4, "column": 7}}, {"id": 16, "type": "init_declarator", "text": "y = 2", "parent": 14, "children": [17, 18, 19], "start_point": {"row": 4, "column": 8}, "end_point": {"row": 4, "column": 13}}, {"id": 17, "type": "identifier", "text": "y", "parent": 16, "children": [], "start_point": {"row": 4, "column": 8}, "end_point": {"row": 4, "column": 9}}, {"id": 18, "type": "=", "text": "=", "parent": 16, "children": [], "start_point": {"row": 4, "column": 10}, "end_point": {"row": 4, "column": 11}}, {"id": 19, "type": "number_literal", "text": "2", "parent": 16, "children": [], "start_point": {"row": 4, "column": 12}, "end_point": {"row": 4, "column": 13}}, {"id": 20, "type": "declaration", "text": "int z = 3;", "parent": 3, "children": [21, 22], "start_point": {"row": 5, "column": 4}, "end_point": {"row": 5, "column": 14}}, {"id": 21, "type": "primitive_type", "text": "int", "parent": 20, "children": [], "start_point": {"row": 5, "column": 4}, "end_point": {"row": 5, "column": 7}}, {"id": 22, "type": "init_declarator", "text": "z = 3", "parent": 20, "children": [23, 24, 25], "start_point": {"row": 5, "column": 8}, "end_point": {"row": 5, "column": 13}}, {"id": 23, "type": "identifier", "text": "z", "parent": 22, "children": [], "start_point": {"row": 5, "column": 8}, "end_point": {"row": 5, "column": 9}}, {"id": 24, "type": "=", "text": "=", "parent": 22, "children": [], "start_point": {"row": 5, "column": 10}, "end_point": {"row": 5, "column": 11}}, {"id": 25, "type": "number_literal", "text": "3", "parent": 22, "children": [], "start_point": {"row": 5, "column": 12}, "end_point": {"row": 5, "column": 13}}, {"id": 26, "type": "call_expression", "text": "printf(\"(x,y,z) = (%d,%d,%d)\\n\",x,y,z)", "parent": 3, "children": [27, 28], "start_point": {"row": 7, "column": 4}, "end_point": {"row": 7, "column": 42}}, {"id": 27, "type": "identifier", "text": "printf", "parent": 26, "children": [], "start_point": {"row": 7, "column": 4}, "end_point": {"row": 7, "column": 10}}, {"id": 28, "type": "argument_list", "text": "(\"(x,y,z) = (%d,%d,%d)\\n\",x,y,z)", "parent": 26, "children": [29, 31, 32, 33], "start_point": {"row": 7, "column": 10}, "end_point": {"row": 7, "column": 42}}, {"id": 29, "type": "string_literal", "text": "\"(x,y,z) = (%d,%d,%d)\\n\"", "parent": 28, "children": [30], "start_point": {"row": 7, "column": 11}, "end_point": {"row": 7, "column": 35}}, {"id": 30, "type": "escape_sequence", "text": "\\n", "parent": 29, "children": [], "start_point": {"row": 7, "column": 32}, "end_point": {"row": 7, "column": 34}}, {"id": 31, "type": "identifier", "text": "x", "parent": 28, "children": [], "start_point": {"row": 7, "column": 36}, "end_point": {"row": 7, "column": 37}}, {"id": 32, "type": "identifier", "text": "y", "parent": 28, "children": [], "start_point": {"row": 7, "column": 38}, "end_point": {"row": 7, "column": 39}}, {"id": 33, "type": "identifier", "text": "z", "parent": 28, "children": [], "start_point": {"row": 7, "column": 40}, "end_point": {"row": 7, "column": 41}}, {"id": 34, "type": "declaration", "text": "int x = 100;", "parent": 3, "children": [35, 36], "start_point": {"row": 10, "column": 8}, "end_point": {"row": 10, "column": 20}}, {"id": 35, "type": "primitive_type", "text": "int", "parent": 34, "children": [], "start_point": {"row": 10, "column": 8}, "end_point": {"row": 10, "column": 11}}, {"id": 36, "type": "init_declarator", "text": "x = 100", "parent": 34, "children": [37, 38, 39], "start_point": {"row": 10, "column": 12}, "end_point": {"row": 10, "column": 19}}, {"id": 37, "type": "identifier", "text": "x", "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": "number_literal", "text": "100", "parent": 36, "children": [], "start_point": {"row": 10, "column": 16}, "end_point": {"row": 10, "column": 19}}, {"id": 40, "type": "assignment_expression", "text": "y = 2", "parent": 3, "children": [41, 42, 43], "start_point": {"row": 11, "column": 8}, "end_point": {"row": 11, "column": 13}}, {"id": 41, "type": "identifier", "text": "y", "parent": 40, "children": [], "start_point": {"row": 11, "column": 8}, "end_point": {"row": 11, "column": 9}}, {"id": 42, "type": "=", "text": "=", "parent": 40, "children": [], "start_point": {"row": 11, "column": 10}, "end_point": {"row": 11, "column": 11}}, {"id": 43, "type": "number_literal", "text": "2", "parent": 40, "children": [], "start_point": {"row": 11, "column": 12}, "end_point": {"row": 11, "column": 13}}, {"id": 44, "type": "if_statement", "text": "if (x > y) {\n z = x;\n }\n else {\n z = y;\n }", "parent": 3, "children": [45, 54], "start_point": {"row": 12, "column": 8}, "end_point": {"row": 17, "column": 9}}, {"id": 45, "type": "parenthesized_expression", "text": "(x > y)", "parent": 44, "children": [46], "start_point": {"row": 12, "column": 11}, "end_point": {"row": 12, "column": 18}}, {"id": 46, "type": "binary_expression", "text": "x > y", "parent": 45, "children": [47, 48, 49], "start_point": {"row": 12, "column": 12}, "end_point": {"row": 12, "column": 17}}, {"id": 47, "type": "identifier", "text": "x", "parent": 46, "children": [], "start_point": {"row": 12, "column": 12}, "end_point": {"row": 12, "column": 13}}, {"id": 48, "type": ">", "text": ">", "parent": 46, "children": [], "start_point": {"row": 12, "column": 14}, "end_point": {"row": 12, "column": 15}}, {"id": 49, "type": "identifier", "text": "y", "parent": 46, "children": [], "start_point": {"row": 12, "column": 16}, "end_point": {"row": 12, "column": 17}}, {"id": 50, "type": "assignment_expression", "text": "z = x", "parent": 44, "children": [51, 52, 53], "start_point": {"row": 13, "column": 12}, "end_point": {"row": 13, "column": 17}}, {"id": 51, "type": "identifier", "text": "z", "parent": 50, "children": [], "start_point": {"row": 13, "column": 12}, "end_point": {"row": 13, "column": 13}}, {"id": 52, "type": "=", "text": "=", "parent": 50, "children": [], "start_point": {"row": 13, "column": 14}, "end_point": {"row": 13, "column": 15}}, {"id": 53, "type": "identifier", "text": "x", "parent": 50, "children": [], "start_point": {"row": 13, "column": 16}, "end_point": {"row": 13, "column": 17}}, {"id": 54, "type": "else_clause", "text": "else {\n z = y;\n }", "parent": 44, "children": [], "start_point": {"row": 15, "column": 8}, "end_point": {"row": 17, "column": 9}}, {"id": 55, "type": "assignment_expression", "text": "z = y", "parent": 54, "children": [56, 57, 58], "start_point": {"row": 16, "column": 12}, "end_point": {"row": 16, "column": 17}}, {"id": 56, "type": "identifier", "text": "z", "parent": 55, "children": [], "start_point": {"row": 16, "column": 12}, "end_point": {"row": 16, "column": 13}}, {"id": 57, "type": "=", "text": "=", "parent": 55, "children": [], "start_point": {"row": 16, "column": 14}, "end_point": {"row": 16, "column": 15}}, {"id": 58, "type": "identifier", "text": "y", "parent": 55, "children": [], "start_point": {"row": 16, "column": 16}, "end_point": {"row": 16, "column": 17}}, {"id": 59, "type": "call_expression", "text": "printf(\"(x,y,z) = (%d,%d,%d)\\n\",x,y,z)", "parent": 3, "children": [60, 61], "start_point": {"row": 19, "column": 8}, "end_point": {"row": 19, "column": 46}}, {"id": 60, "type": "identifier", "text": "printf", "parent": 59, "children": [], "start_point": {"row": 19, "column": 8}, "end_point": {"row": 19, "column": 14}}, {"id": 61, "type": "argument_list", "text": "(\"(x,y,z) = (%d,%d,%d)\\n\",x,y,z)", "parent": 59, "children": [62, 64, 65, 66], "start_point": {"row": 19, "column": 14}, "end_point": {"row": 19, "column": 46}}, {"id": 62, "type": "string_literal", "text": "\"(x,y,z) = (%d,%d,%d)\\n\"", "parent": 61, "children": [63], "start_point": {"row": 19, "column": 15}, "end_point": {"row": 19, "column": 39}}, {"id": 63, "type": "escape_sequence", "text": "\\n", "parent": 62, "children": [], "start_point": {"row": 19, "column": 36}, "end_point": {"row": 19, "column": 38}}, {"id": 64, "type": "identifier", "text": "x", "parent": 61, "children": [], "start_point": {"row": 19, "column": 40}, "end_point": {"row": 19, "column": 41}}, {"id": 65, "type": "identifier", "text": "y", "parent": 61, "children": [], "start_point": {"row": 19, "column": 42}, "end_point": {"row": 19, "column": 43}}, {"id": 66, "type": "identifier", "text": "z", "parent": 61, "children": [], "start_point": {"row": 19, "column": 44}, "end_point": {"row": 19, "column": 45}}, {"id": 67, "type": "declaration", "text": "int z = y;", "parent": 3, "children": [68, 69], "start_point": {"row": 22, "column": 12}, "end_point": {"row": 22, "column": 22}}, {"id": 68, "type": "primitive_type", "text": "int", "parent": 67, "children": [], "start_point": {"row": 22, "column": 12}, "end_point": {"row": 22, "column": 15}}, {"id": 69, "type": "init_declarator", "text": "z = y", "parent": 67, "children": [70, 71, 72], "start_point": {"row": 22, "column": 16}, "end_point": {"row": 22, "column": 21}}, {"id": 70, "type": "identifier", "text": "z", "parent": 69, "children": [], "start_point": {"row": 22, "column": 16}, "end_point": {"row": 22, "column": 17}}, {"id": 71, "type": "=", "text": "=", "parent": 69, "children": [], "start_point": {"row": 22, "column": 18}, "end_point": {"row": 22, "column": 19}}, {"id": 72, "type": "identifier", "text": "y", "parent": 69, "children": [], "start_point": {"row": 22, "column": 20}, "end_point": {"row": 22, "column": 21}}, {"id": 73, "type": "assignment_expression", "text": "y = 200", "parent": 3, "children": [74, 75, 76], "start_point": {"row": 23, "column": 12}, "end_point": {"row": 23, "column": 19}}, {"id": 74, "type": "identifier", "text": "y", "parent": 73, "children": [], "start_point": {"row": 23, "column": 12}, "end_point": {"row": 23, "column": 13}}, {"id": 75, "type": "=", "text": "=", "parent": 73, "children": [], "start_point": {"row": 23, "column": 14}, "end_point": {"row": 23, "column": 15}}, {"id": 76, "type": "number_literal", "text": "200", "parent": 73, "children": [], "start_point": {"row": 23, "column": 16}, "end_point": {"row": 23, "column": 19}}, {"id": 77, "type": "call_expression", "text": "printf(\"(x,y,z) = (%d,%d,%d)\\n\",x,y,z)", "parent": 3, "children": [78, 79], "start_point": {"row": 25, "column": 12}, "end_point": {"row": 25, "column": 50}}, {"id": 78, "type": "identifier", "text": "printf", "parent": 77, "children": [], "start_point": {"row": 25, "column": 12}, "end_point": {"row": 25, "column": 18}}, {"id": 79, "type": "argument_list", "text": "(\"(x,y,z) = (%d,%d,%d)\\n\",x,y,z)", "parent": 77, "children": [80, 82, 83, 84], "start_point": {"row": 25, "column": 18}, "end_point": {"row": 25, "column": 50}}, {"id": 80, "type": "string_literal", "text": "\"(x,y,z) = (%d,%d,%d)\\n\"", "parent": 79, "children": [81], "start_point": {"row": 25, "column": 19}, "end_point": {"row": 25, "column": 43}}, {"id": 81, "type": "escape_sequence", "text": "\\n", "parent": 80, "children": [], "start_point": {"row": 25, "column": 40}, "end_point": {"row": 25, "column": 42}}, {"id": 82, "type": "identifier", "text": "x", "parent": 79, "children": [], "start_point": {"row": 25, "column": 44}, "end_point": {"row": 25, "column": 45}}, {"id": 83, "type": "identifier", "text": "y", "parent": 79, "children": [], "start_point": {"row": 25, "column": 46}, "end_point": {"row": 25, "column": 47}}, {"id": 84, "type": "identifier", "text": "z", "parent": 79, "children": [], "start_point": {"row": 25, "column": 48}, "end_point": {"row": 25, "column": 49}}, {"id": 85, "type": "call_expression", "text": "printf(\"(x,y,z) = (%d,%d,%d)\\n\",x,y,z)", "parent": 3, "children": [86, 87], "start_point": {"row": 27, "column": 8}, "end_point": {"row": 27, "column": 46}}, {"id": 86, "type": "identifier", "text": "printf", "parent": 85, "children": [], "start_point": {"row": 27, "column": 8}, "end_point": {"row": 27, "column": 14}}, {"id": 87, "type": "argument_list", "text": "(\"(x,y,z) = (%d,%d,%d)\\n\",x,y,z)", "parent": 85, "children": [88, 90, 91, 92], "start_point": {"row": 27, "column": 14}, "end_point": {"row": 27, "column": 46}}, {"id": 88, "type": "string_literal", "text": "\"(x,y,z) = (%d,%d,%d)\\n\"", "parent": 87, "children": [89], "start_point": {"row": 27, "column": 15}, "end_point": {"row": 27, "column": 39}}, {"id": 89, "type": "escape_sequence", "text": "\\n", "parent": 88, "children": [], "start_point": {"row": 27, "column": 36}, "end_point": {"row": 27, "column": 38}}, {"id": 90, "type": "identifier", "text": "x", "parent": 87, "children": [], "start_point": {"row": 27, "column": 40}, "end_point": {"row": 27, "column": 41}}, {"id": 91, "type": "identifier", "text": "y", "parent": 87, "children": [], "start_point": {"row": 27, "column": 42}, "end_point": {"row": 27, "column": 43}}, {"id": 92, "type": "identifier", "text": "z", "parent": 87, "children": [], "start_point": {"row": 27, "column": 44}, "end_point": {"row": 27, "column": 45}}, {"id": 93, "type": "call_expression", "text": "printf(\"(x,y,z) = (%d,%d,%d)\\n\",x,y,z)", "parent": 3, "children": [94, 95], "start_point": {"row": 29, "column": 4}, "end_point": {"row": 29, "column": 42}}, {"id": 94, "type": "identifier", "text": "printf", "parent": 93, "children": [], "start_point": {"row": 29, "column": 4}, "end_point": {"row": 29, "column": 10}}, {"id": 95, "type": "argument_list", "text": "(\"(x,y,z) = (%d,%d,%d)\\n\",x,y,z)", "parent": 93, "children": [96, 98, 99, 100], "start_point": {"row": 29, "column": 10}, "end_point": {"row": 29, "column": 42}}, {"id": 96, "type": "string_literal", "text": "\"(x,y,z) = (%d,%d,%d)\\n\"", "parent": 95, "children": [97], "start_point": {"row": 29, "column": 11}, "end_point": {"row": 29, "column": 35}}, {"id": 97, "type": "escape_sequence", "text": "\\n", "parent": 96, "children": [], "start_point": {"row": 29, "column": 32}, "end_point": {"row": 29, "column": 34}}, {"id": 98, "type": "identifier", "text": "x", "parent": 95, "children": [], "start_point": {"row": 29, "column": 36}, "end_point": {"row": 29, "column": 37}}, {"id": 99, "type": "identifier", "text": "y", "parent": 95, "children": [], "start_point": {"row": 29, "column": 38}, "end_point": {"row": 29, "column": 39}}, {"id": 100, "type": "identifier", "text": "z", "parent": 95, "children": [], "start_point": {"row": 29, "column": 40}, "end_point": {"row": 29, "column": 41}}, {"id": 101, "type": "return_statement", "text": "return 0;", "parent": 3, "children": [102], "start_point": {"row": 31, "column": 4}, "end_point": {"row": 31, "column": 13}}, {"id": 102, "type": "number_literal", "text": "0", "parent": 101, "children": [], "start_point": {"row": 31, "column": 11}, "end_point": {"row": 31, "column": 12}}]}, "node_categories": {"declarations": {"functions": [3, 5], "variables": [8, 14, 20, 34, 67], "classes": [], "imports": [0, 1], "modules": [], "enums": []}, "statements": {"expressions": [26, 45, 46, 59, 77, 85, 93], "assignments": [40, 50, 55, 73], "loops": [], "conditionals": [6, 11, 17, 23, 27, 31, 32, 33, 37, 41, 44, 47, 49, 51, 53, 56, 58, 60, 64, 65, 66, 70, 72, 74, 78, 82, 83, 84, 86, 90, 91, 92, 94, 98, 99, 100], "returns": [101], "exceptions": []}, "expressions": {"calls": [], "literals": [2, 13, 19, 25, 29, 39, 43, 62, 76, 80, 88, 96, 102], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [{"node_id": 3, "universal_type": "function", "name": "main", "text_snippet": "int main() {\n int x = 1;\n int y = 2;\n int z = 3;\n\n printf(\"(x,y,z) = (%d,%d,%d)\\n\",x,y,z"}, {"node_id": 5, "universal_type": "function", "name": "unknown", "text_snippet": "main()"}], "class_declarations": [], "import_statements": [{"node_id": 0, "text": "#include <stdio.h>\n"}, {"node_id": 1, "text": "#include"}]}, "original_source_code": "#include <stdio.h>\n\nint main() {\n int x = 1;\n int y = 2;\n int z = 3;\n\n printf(\"(x,y,z) = (%d,%d,%d)\\n\",x,y,z);\n\n {\n int x = 100;\n y = 2;\n if (x > y) {\n z = x;\n }\n else {\n z = y;\n }\n\n printf(\"(x,y,z) = (%d,%d,%d)\\n\",x,y,z);\n\n {\n int z = y;\n y = 200;\n\n printf(\"(x,y,z) = (%d,%d,%d)\\n\",x,y,z);\n }\n printf(\"(x,y,z) = (%d,%d,%d)\\n\",x,y,z);\n }\n printf(\"(x,y,z) = (%d,%d,%d)\\n\",x,y,z);\n\n return 0;\n}\n"}
80,069
c
// // ProgressView.h // Ad Hoc Distribution Assistant // // Created by <NAME> on 20.06.10. // Copyright 2010 DEETUNE. All rights reserved. // #import <Cocoa/Cocoa.h> @interface ProgressSheet : NSWindow { IBOutlet NSTextField *label; IBOutlet NSProgressIndicator *progressIndicator; } @property (nonatomic, assign) NSTextField *label; @property (nonatomic, assign) NSProgressIndicator *progressIndicator; @end
25
16
(translation_unit) "//\n// ProgressView.h\n// Ad Hoc Distribution Assistant\n//\n// Created by <NAME> on 20.06.10.\n// Copyright 2010 DEETUNE. All rights reserved.\n//\n\n#import <Cocoa/Cocoa.h>\n\n\n@interface ProgressSheet : NSWindow {\n IBOutlet NSTextField *label;\n IBOutlet NSProgressIndicator *progressIndicator;\n}\n\n@property (nonatomic, assign) NSTextField *label;\n@property (nonatomic, assign) NSProgressIndicator *progressIndicator;\n\n@end\n" (comment) "//" (comment) "// ProgressView.h" (comment) "// Ad Hoc Distribution Assistant" (comment) "//" (comment) "// Created by <NAME> on 20.06.10." (comment) "// Copyright 2010 DEETUNE. All rights reserved." (comment) "//" (preproc_call) "#import <Cocoa/Cocoa.h>\n" (preproc_directive) "#import" (preproc_arg) "<Cocoa/Cocoa.h>" (ERROR) "@" (ERROR) "@" (function_definition) "interface ProgressSheet : NSWindow {\n IBOutlet NSTextField *label;\n IBOutlet NSProgressIndicator *progressIndicator;\n}" (type_identifier) "interface" (identifier) "ProgressSheet" (ERROR) ": NSWindow" (:) ":" (identifier) "NSWindow" (compound_statement) "{\n IBOutlet NSTextField *label;\n IBOutlet NSProgressIndicator *progressIndicator;\n}" ({) "{" (declaration) "IBOutlet NSTextField" (type_identifier) "IBOutlet" (identifier) "NSTextField" (;) "" (expression_statement) "*label;" (pointer_expression) "*label" (*) "*" (identifier) "label" (;) ";" (declaration) "IBOutlet NSProgressIndicator" (type_identifier) "IBOutlet" (identifier) "NSProgressIndicator" (;) "" (expression_statement) "*progressIndicator;" (pointer_expression) "*progressIndicator" (*) "*" (identifier) "progressIndicator" (;) ";" (}) "}" (ERROR) "@" (ERROR) "@" (expression_statement) "property (nonatomic, assign)" (call_expression) "property (nonatomic, assign)" (identifier) "property" (argument_list) "(nonatomic, assign)" (() "(" (identifier) "nonatomic" (,) "," (identifier) "assign" ()) ")" (;) "" (declaration) "NSTextField *label;" (type_identifier) "NSTextField" (pointer_declarator) "*label" (*) "*" (identifier) "label" (;) ";" (ERROR) "@" (ERROR) "@" (expression_statement) "property (nonatomic, assign)" (call_expression) "property (nonatomic, assign)" (identifier) "property" (argument_list) "(nonatomic, assign)" (() "(" (identifier) "nonatomic" (,) "," (identifier) "assign" ()) ")" (;) "" (declaration) "NSProgressIndicator *progressIndicator;" (type_identifier) "NSProgressIndicator" (pointer_declarator) "*progressIndicator" (*) "*" (identifier) "progressIndicator" (;) ";" (ERROR) "@" (ERROR) "@" (expression_statement) "end" (identifier) "end" (;) ""
81
9
{"language": "c", "success": true, "metadata": {"lines": 16, "avg_line_length": 25.0, "nodes": 48, "errors": 0, "source_hash": "408837c5e2488ce762215abb3a0910b7ef69e8eafd50ef1cd7a608b363aba4c1", "categorized_nodes": 29}, "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": 11, "column": 0}, "end_point": {"row": 11, "column": 1}}, {"id": 4, "type": "ERROR", "text": "@", "parent": 3, "children": [], "start_point": {"row": 11, "column": 0}, "end_point": {"row": 11, "column": 1}}, {"id": 5, "type": "function_definition", "text": "interface ProgressSheet : NSWindow {\n\tIBOutlet NSTextField *label;\n\tIBOutlet NSProgressIndicator *progressIndicator;\n}", "parent": null, "children": [6, 7, 8], "start_point": {"row": 11, "column": 1}, "end_point": {"row": 14, "column": 1}}, {"id": 6, "type": "type_identifier", "text": "interface", "parent": 5, "children": [], "start_point": {"row": 11, "column": 1}, "end_point": {"row": 11, "column": 10}}, {"id": 7, "type": "identifier", "text": "ProgressSheet", "parent": 5, "children": [], "start_point": {"row": 11, "column": 11}, "end_point": {"row": 11, "column": 24}}, {"id": 8, "type": "ERROR", "text": ": NSWindow", "parent": 5, "children": [9], "start_point": {"row": 11, "column": 25}, "end_point": {"row": 11, "column": 35}}, {"id": 9, "type": "identifier", "text": "NSWindow", "parent": 8, "children": [], "start_point": {"row": 11, "column": 27}, "end_point": {"row": 11, "column": 35}}, {"id": 10, "type": "declaration", "text": "IBOutlet NSTextField", "parent": 5, "children": [11, 12], "start_point": {"row": 12, "column": 1}, "end_point": {"row": 12, "column": 21}}, {"id": 11, "type": "type_identifier", "text": "IBOutlet", "parent": 10, "children": [], "start_point": {"row": 12, "column": 1}, "end_point": {"row": 12, "column": 9}}, {"id": 12, "type": "identifier", "text": "NSTextField", "parent": 10, "children": [], "start_point": {"row": 12, "column": 10}, "end_point": {"row": 12, "column": 21}}, {"id": 13, "type": "pointer_expression", "text": "*label", "parent": 5, "children": [14, 15], "start_point": {"row": 12, "column": 22}, "end_point": {"row": 12, "column": 28}}, {"id": 14, "type": "*", "text": "*", "parent": 13, "children": [], "start_point": {"row": 12, "column": 22}, "end_point": {"row": 12, "column": 23}}, {"id": 15, "type": "identifier", "text": "label", "parent": 13, "children": [], "start_point": {"row": 12, "column": 23}, "end_point": {"row": 12, "column": 28}}, {"id": 16, "type": "declaration", "text": "IBOutlet NSProgressIndicator", "parent": 5, "children": [17, 18], "start_point": {"row": 13, "column": 1}, "end_point": {"row": 13, "column": 29}}, {"id": 17, "type": "type_identifier", "text": "IBOutlet", "parent": 16, "children": [], "start_point": {"row": 13, "column": 1}, "end_point": {"row": 13, "column": 9}}, {"id": 18, "type": "identifier", "text": "NSProgressIndicator", "parent": 16, "children": [], "start_point": {"row": 13, "column": 10}, "end_point": {"row": 13, "column": 29}}, {"id": 19, "type": "pointer_expression", "text": "*progressIndicator", "parent": 5, "children": [20, 21], "start_point": {"row": 13, "column": 30}, "end_point": {"row": 13, "column": 48}}, {"id": 20, "type": "*", "text": "*", "parent": 19, "children": [], "start_point": {"row": 13, "column": 30}, "end_point": {"row": 13, "column": 31}}, {"id": 21, "type": "identifier", "text": "progressIndicator", "parent": 19, "children": [], "start_point": {"row": 13, "column": 31}, "end_point": {"row": 13, "column": 48}}, {"id": 22, "type": "ERROR", "text": "@", "parent": null, "children": [23], "start_point": {"row": 16, "column": 0}, "end_point": {"row": 16, "column": 1}}, {"id": 23, "type": "ERROR", "text": "@", "parent": 22, "children": [], "start_point": {"row": 16, "column": 0}, "end_point": {"row": 16, "column": 1}}, {"id": 24, "type": "call_expression", "text": "property (nonatomic, assign)", "parent": null, "children": [25, 26], "start_point": {"row": 16, "column": 1}, "end_point": {"row": 16, "column": 29}}, {"id": 25, "type": "identifier", "text": "property", "parent": 24, "children": [], "start_point": {"row": 16, "column": 1}, "end_point": {"row": 16, "column": 9}}, {"id": 26, "type": "argument_list", "text": "(nonatomic, assign)", "parent": 24, "children": [27, 28], "start_point": {"row": 16, "column": 10}, "end_point": {"row": 16, "column": 29}}, {"id": 27, "type": "identifier", "text": "nonatomic", "parent": 26, "children": [], "start_point": {"row": 16, "column": 11}, "end_point": {"row": 16, "column": 20}}, {"id": 28, "type": "identifier", "text": "assign", "parent": 26, "children": [], "start_point": {"row": 16, "column": 22}, "end_point": {"row": 16, "column": 28}}, {"id": 29, "type": "declaration", "text": "NSTextField *label;", "parent": null, "children": [30, 31], "start_point": {"row": 16, "column": 30}, "end_point": {"row": 16, "column": 49}}, {"id": 30, "type": "type_identifier", "text": "NSTextField", "parent": 29, "children": [], "start_point": {"row": 16, "column": 30}, "end_point": {"row": 16, "column": 41}}, {"id": 31, "type": "pointer_declarator", "text": "*label", "parent": 29, "children": [32, 33], "start_point": {"row": 16, "column": 42}, "end_point": {"row": 16, "column": 48}}, {"id": 32, "type": "*", "text": "*", "parent": 31, "children": [], "start_point": {"row": 16, "column": 42}, "end_point": {"row": 16, "column": 43}}, {"id": 33, "type": "identifier", "text": "label", "parent": 31, "children": [], "start_point": {"row": 16, "column": 43}, "end_point": {"row": 16, "column": 48}}, {"id": 34, "type": "ERROR", "text": "@", "parent": null, "children": [35], "start_point": {"row": 17, "column": 0}, "end_point": {"row": 17, "column": 1}}, {"id": 35, "type": "ERROR", "text": "@", "parent": 34, "children": [], "start_point": {"row": 17, "column": 0}, "end_point": {"row": 17, "column": 1}}, {"id": 36, "type": "call_expression", "text": "property (nonatomic, assign)", "parent": null, "children": [37, 38], "start_point": {"row": 17, "column": 1}, "end_point": {"row": 17, "column": 29}}, {"id": 37, "type": "identifier", "text": "property", "parent": 36, "children": [], "start_point": {"row": 17, "column": 1}, "end_point": {"row": 17, "column": 9}}, {"id": 38, "type": "argument_list", "text": "(nonatomic, assign)", "parent": 36, "children": [39, 40], "start_point": {"row": 17, "column": 10}, "end_point": {"row": 17, "column": 29}}, {"id": 39, "type": "identifier", "text": "nonatomic", "parent": 38, "children": [], "start_point": {"row": 17, "column": 11}, "end_point": {"row": 17, "column": 20}}, {"id": 40, "type": "identifier", "text": "assign", "parent": 38, "children": [], "start_point": {"row": 17, "column": 22}, "end_point": {"row": 17, "column": 28}}, {"id": 41, "type": "declaration", "text": "NSProgressIndicator *progressIndicator;", "parent": null, "children": [42, 43], "start_point": {"row": 17, "column": 30}, "end_point": {"row": 17, "column": 69}}, {"id": 42, "type": "type_identifier", "text": "NSProgressIndicator", "parent": 41, "children": [], "start_point": {"row": 17, "column": 30}, "end_point": {"row": 17, "column": 49}}, {"id": 43, "type": "pointer_declarator", "text": "*progressIndicator", "parent": 41, "children": [44, 45], "start_point": {"row": 17, "column": 50}, "end_point": {"row": 17, "column": 68}}, {"id": 44, "type": "*", "text": "*", "parent": 43, "children": [], "start_point": {"row": 17, "column": 50}, "end_point": {"row": 17, "column": 51}}, {"id": 45, "type": "identifier", "text": "progressIndicator", "parent": 43, "children": [], "start_point": {"row": 17, "column": 51}, "end_point": {"row": 17, "column": 68}}, {"id": 46, "type": "ERROR", "text": "@", "parent": null, "children": [47], "start_point": {"row": 19, "column": 0}, "end_point": {"row": 19, "column": 1}}, {"id": 47, "type": "ERROR", "text": "@", "parent": 46, "children": [], "start_point": {"row": 19, "column": 0}, "end_point": {"row": 19, "column": 1}}]}, "node_categories": {"declarations": {"functions": [5], "variables": [10, 16, 29, 41], "classes": [], "imports": [], "modules": [], "enums": []}, "statements": {"expressions": [13, 19, 24, 36], "assignments": [], "loops": [], "conditionals": [6, 7, 9, 11, 12, 15, 17, 18, 21, 25, 27, 28, 30, 33, 37, 39, 40, 42, 45], "returns": [], "exceptions": []}, "expressions": {"calls": [0], "literals": [], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [{"node_id": 5, "universal_type": "function", "name": "ProgressSheet", "text_snippet": "interface ProgressSheet : NSWindow {\n\tIBOutlet NSTextField *label;\n\tIBOutlet NSProgressIndicator *pr"}], "class_declarations": [], "import_statements": []}, "original_source_code": "//\n// ProgressView.h\n// Ad Hoc Distribution Assistant\n//\n// Created by <NAME> on 20.06.10.\n// Copyright 2010 DEETUNE. All rights reserved.\n//\n\n#import <Cocoa/Cocoa.h>\n\n\n@interface ProgressSheet : NSWindow {\n\tIBOutlet NSTextField *label;\n\tIBOutlet NSProgressIndicator *progressIndicator;\n}\n\n@property (nonatomic, assign) NSTextField *label;\n@property (nonatomic, assign) NSProgressIndicator *progressIndicator;\n\n@end\n"}
80,070
c
// https://www.codewars.com/kata/55fd2d567d94ac3bc9000064 #include <inttypes.h> #include <math.h> uint64_t rowSumOddNumbers(uint32_t n) { uint64_t m = n; return m * m * m; }
21.75
8
(translation_unit) "// https://www.codewars.com/kata/55fd2d567d94ac3bc9000064\n\n#include <inttypes.h>\n#include <math.h>\n\nuint64_t rowSumOddNumbers(uint32_t n)\n{\n uint64_t m = n;\n return m * m * m;\n}\n\n" (comment) "// https://www.codewars.com/kata/55fd2d567d94ac3bc9000064" (preproc_include) "#include <inttypes.h>\n" (#include) "#include" (system_lib_string) "<inttypes.h>" (preproc_include) "#include <math.h>\n" (#include) "#include" (system_lib_string) "<math.h>" (function_definition) "uint64_t rowSumOddNumbers(uint32_t n)\n{\n uint64_t m = n;\n return m * m * m;\n}" (primitive_type) "uint64_t" (function_declarator) "rowSumOddNumbers(uint32_t n)" (identifier) "rowSumOddNumbers" (parameter_list) "(uint32_t n)" (() "(" (parameter_declaration) "uint32_t n" (primitive_type) "uint32_t" (identifier) "n" ()) ")" (compound_statement) "{\n uint64_t m = n;\n return m * m * m;\n}" ({) "{" (declaration) "uint64_t m = n;" (primitive_type) "uint64_t" (init_declarator) "m = n" (identifier) "m" (=) "=" (identifier) "n" (;) ";" (return_statement) "return m * m * m;" (return) "return" (binary_expression) "m * m * m" (binary_expression) "m * m" (identifier) "m" (*) "*" (identifier) "m" (*) "*" (identifier) "m" (;) ";" (}) "}"
38
0
{"language": "c", "success": true, "metadata": {"lines": 8, "avg_line_length": 21.75, "nodes": 28, "errors": 0, "source_hash": "c29e62918a96e82b8763ee4ef26f95b4b6c99977de8407359bdb013332e1fda2", "categorized_nodes": 20}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#include <inttypes.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": "<inttypes.h>", "parent": 0, "children": [], "start_point": {"row": 2, "column": 9}, "end_point": {"row": 2, "column": 21}}, {"id": 3, "type": "preproc_include", "text": "#include <math.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": "<math.h>", "parent": 3, "children": [], "start_point": {"row": 3, "column": 9}, "end_point": {"row": 3, "column": 17}}, {"id": 6, "type": "function_definition", "text": "uint64_t rowSumOddNumbers(uint32_t n)\n{\n uint64_t m = n;\n return m * m * m;\n}", "parent": null, "children": [7, 8], "start_point": {"row": 5, "column": 0}, "end_point": {"row": 9, "column": 1}}, {"id": 7, "type": "primitive_type", "text": "uint64_t", "parent": 6, "children": [], "start_point": {"row": 5, "column": 0}, "end_point": {"row": 5, "column": 8}}, {"id": 8, "type": "function_declarator", "text": "rowSumOddNumbers(uint32_t n)", "parent": 6, "children": [9, 10], "start_point": {"row": 5, "column": 9}, "end_point": {"row": 5, "column": 37}}, {"id": 9, "type": "identifier", "text": "rowSumOddNumbers", "parent": 8, "children": [], "start_point": {"row": 5, "column": 9}, "end_point": {"row": 5, "column": 25}}, {"id": 10, "type": "parameter_list", "text": "(uint32_t n)", "parent": 8, "children": [11], "start_point": {"row": 5, "column": 25}, "end_point": {"row": 5, "column": 37}}, {"id": 11, "type": "parameter_declaration", "text": "uint32_t n", "parent": 10, "children": [12, 13], "start_point": {"row": 5, "column": 26}, "end_point": {"row": 5, "column": 36}}, {"id": 12, "type": "primitive_type", "text": "uint32_t", "parent": 11, "children": [], "start_point": {"row": 5, "column": 26}, "end_point": {"row": 5, "column": 34}}, {"id": 13, "type": "identifier", "text": "n", "parent": 11, "children": [], "start_point": {"row": 5, "column": 35}, "end_point": {"row": 5, "column": 36}}, {"id": 14, "type": "declaration", "text": "uint64_t m = n;", "parent": 6, "children": [15, 16], "start_point": {"row": 7, "column": 4}, "end_point": {"row": 7, "column": 19}}, {"id": 15, "type": "primitive_type", "text": "uint64_t", "parent": 14, "children": [], "start_point": {"row": 7, "column": 4}, "end_point": {"row": 7, "column": 12}}, {"id": 16, "type": "init_declarator", "text": "m = n", "parent": 14, "children": [17, 18, 19], "start_point": {"row": 7, "column": 13}, "end_point": {"row": 7, "column": 18}}, {"id": 17, "type": "identifier", "text": "m", "parent": 16, "children": [], "start_point": {"row": 7, "column": 13}, "end_point": {"row": 7, "column": 14}}, {"id": 18, "type": "=", "text": "=", "parent": 16, "children": [], "start_point": {"row": 7, "column": 15}, "end_point": {"row": 7, "column": 16}}, {"id": 19, "type": "identifier", "text": "n", "parent": 16, "children": [], "start_point": {"row": 7, "column": 17}, "end_point": {"row": 7, "column": 18}}, {"id": 20, "type": "return_statement", "text": "return m * m * m;", "parent": 6, "children": [21], "start_point": {"row": 8, "column": 4}, "end_point": {"row": 8, "column": 21}}, {"id": 21, "type": "binary_expression", "text": "m * m * m", "parent": 20, "children": [22, 26, 27], "start_point": {"row": 8, "column": 11}, "end_point": {"row": 8, "column": 20}}, {"id": 22, "type": "binary_expression", "text": "m * m", "parent": 21, "children": [23, 24, 25], "start_point": {"row": 8, "column": 11}, "end_point": {"row": 8, "column": 16}}, {"id": 23, "type": "identifier", "text": "m", "parent": 22, "children": [], "start_point": {"row": 8, "column": 11}, "end_point": {"row": 8, "column": 12}}, {"id": 24, "type": "*", "text": "*", "parent": 22, "children": [], "start_point": {"row": 8, "column": 13}, "end_point": {"row": 8, "column": 14}}, {"id": 25, "type": "identifier", "text": "m", "parent": 22, "children": [], "start_point": {"row": 8, "column": 15}, "end_point": {"row": 8, "column": 16}}, {"id": 26, "type": "*", "text": "*", "parent": 21, "children": [], "start_point": {"row": 8, "column": 17}, "end_point": {"row": 8, "column": 18}}, {"id": 27, "type": "identifier", "text": "m", "parent": 21, "children": [], "start_point": {"row": 8, "column": 19}, "end_point": {"row": 8, "column": 20}}]}, "node_categories": {"declarations": {"functions": [6, 8], "variables": [11, 14], "classes": [], "imports": [0, 1, 3, 4], "modules": [], "enums": []}, "statements": {"expressions": [21, 22], "assignments": [], "loops": [], "conditionals": [9, 13, 17, 19, 23, 25, 27], "returns": [20], "exceptions": []}, "expressions": {"calls": [], "literals": [2, 5], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [{"node_id": 6, "universal_type": "function", "name": "unknown", "text_snippet": "uint64_t rowSumOddNumbers(uint32_t n)\n{\n uint64_t m = n;\n return m * m * m;\n}"}, {"node_id": 8, "universal_type": "function", "name": "unknown", "text_snippet": "rowSumOddNumbers(uint32_t n)"}], "class_declarations": [], "import_statements": [{"node_id": 0, "text": "#include <inttypes.h>\n"}, {"node_id": 1, "text": "#include"}, {"node_id": 3, "text": "#include <math.h>\n"}, {"node_id": 4, "text": "#include"}]}, "original_source_code": "// https://www.codewars.com/kata/55fd2d567d94ac3bc9000064\n\n#include <inttypes.h>\n#include <math.h>\n\nuint64_t rowSumOddNumbers(uint32_t n)\n{\n uint64_t m = n;\n return m * m * m;\n}\n\n"}
80,071
c
// // FirstRootController.h // TestReactiveNative // // Created by zhangpoor on 16/7/21. // Copyright © 2016年 zhangpoor. All rights reserved. // #import <UIKit/UIKit.h> @interface FirstRootController : UIViewController @end
21.8
10
(translation_unit) "//\n// FirstRootController.h\n// TestReactiveNative\n//\n// Created by zhangpoor on 16/7/21.\n// Copyright © 2016年 zhangpoor. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n\n@interface FirstRootController : UIViewController\n\n@end\n" (comment) "//" (comment) "// FirstRootController.h" (comment) "// TestReactiveNative" (comment) "//" (comment) "// Created by zhangpoor on 16/7/21." (comment) "// Copyright © 2016年 zhangpoor. 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 FirstRootController : UIViewController\n\n@end\n" (ERROR) "t" (type_identifier) "erface Fi" (identifier) "stRootController : " (:) "I" (identifier) "iewController\n\n@" (ERROR) "d" (identifier) "\n"
19
3
{"language": "c", "success": true, "metadata": {"lines": 10, "avg_line_length": 21.8, "nodes": 10, "errors": 0, "source_hash": "44dbc57085db85c4dfecd118e7b58284025ec20e21971411d2f2856208e5aff8", "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 FirstRootController : 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 Fi", "parent": 3, "children": [], "start_point": {"row": 10, "column": 1}, "end_point": {"row": 10, "column": 10}}, {"id": 6, "type": "identifier", "text": "stRootController : ", "parent": 3, "children": [], "start_point": {"row": 10, "column": 11}, "end_point": {"row": 10, "column": 30}}, {"id": 7, "type": "identifier", "text": "iewController\n\n@", "parent": 3, "children": [], "start_point": {"row": 10, "column": 33}, "end_point": {"row": 10, "column": 49}}, {"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// FirstRootController.h\n// TestReactiveNative\n//\n// Created by zhangpoor on 16/7/21.\n// Copyright \u00a9 2016\u5e74 zhangpoor. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n\n@interface FirstRootController : UIViewController\n\n@end\n"}
80,072
c
#include "ringbuffer.h" #include "mem.h" struct RingBuffer { int size; jack_ringbuffer_t *buf; }; RingBuffer *ringbuf_new(int size) { RingBuffer *rb = malloc_exit(sizeof(RingBuffer)); rb->size = size; rb->buf = jack_ringbuffer_create(sizeof(void *) * size); return rb; } void ringbuf_free(RingBuffer * rb) { jack_ringbuffer_free(rb->buf); free(rb); } int ringbuf_size(RingBuffer * rb) { return rb->size; } inline int ringbuf_count(RingBuffer * rb) { return jack_ringbuffer_read_space(rb->buf) / sizeof(void *); } inline bool ringbuf_put(RingBuffer * rb, void *data) { int writeSpace = jack_ringbuffer_write_space(rb->buf); if (writeSpace < sizeof(void *)) { return false; } jack_ringbuffer_write(rb->buf, (char *)(&data), sizeof(void *)); return true; } inline void *ringbuf_get(RingBuffer * rb) { if (ringbuf_count(rb) == 0) { return NULL; } void *data; jack_ringbuffer_read(rb->buf, (char *)(&data), sizeof(void *)); return data; }
22.41
44
(translation_unit) "#include "ringbuffer.h"\n#include "mem.h"\n\nstruct RingBuffer {\n int size;\n jack_ringbuffer_t *buf;\n};\n\nRingBuffer *ringbuf_new(int size)\n{\n RingBuffer *rb = malloc_exit(sizeof(RingBuffer));\n rb->size = size;\n rb->buf = jack_ringbuffer_create(sizeof(void *) * size);\n return rb;\n}\n\nvoid ringbuf_free(RingBuffer * rb)\n{\n jack_ringbuffer_free(rb->buf);\n free(rb);\n}\n\nint ringbuf_size(RingBuffer * rb)\n{\n return rb->size;\n}\n\ninline int ringbuf_count(RingBuffer * rb)\n{\n return jack_ringbuffer_read_space(rb->buf) / sizeof(void *);\n}\n\ninline bool ringbuf_put(RingBuffer * rb, void *data)\n{\n int writeSpace = jack_ringbuffer_write_space(rb->buf);\n if (writeSpace < sizeof(void *)) {\n return false;\n }\n jack_ringbuffer_write(rb->buf, (char *)(&data), sizeof(void *));\n return true;\n}\n\ninline void *ringbuf_get(RingBuffer * rb)\n{\n if (ringbuf_count(rb) == 0) {\n return NULL;\n }\n void *data;\n jack_ringbuffer_read(rb->buf, (char *)(&data), sizeof(void *));\n return data;\n}\n" (preproc_include) "#include "ringbuffer.h"\n" (#include) "#include" (string_literal) ""ringbuffer.h"" (") """ (string_content) "ringbuffer.h" (") """ (preproc_include) "#include "mem.h"\n" (#include) "#include" (string_literal) ""mem.h"" (") """ (string_content) "mem.h" (") """ (struct_specifier) "struct RingBuffer {\n int size;\n jack_ringbuffer_t *buf;\n}" (struct) "struct" (type_identifier) "RingBuffer" (field_declaration_list) "{\n int size;\n jack_ringbuffer_t *buf;\n}" ({) "{" (field_declaration) "int size;" (primitive_type) "int" (field_identifier) "size" (;) ";" (field_declaration) "jack_ringbuffer_t *buf;" (type_identifier) "jack_ringbuffer_t" (pointer_declarator) "*buf" (*) "*" (field_identifier) "buf" (;) ";" (}) "}" (;) ";" (function_definition) "RingBuffer *ringbuf_new(int size)\n{\n RingBuffer *rb = malloc_exit(sizeof(RingBuffer));\n rb->size = size;\n rb->buf = jack_ringbuffer_create(sizeof(void *) * size);\n return rb;\n}" (type_identifier) "RingBuffer" (pointer_declarator) "*ringbuf_new(int size)" (*) "*" (function_declarator) "ringbuf_new(int size)" (identifier) "ringbuf_new" (parameter_list) "(int size)" (() "(" (parameter_declaration) "int size" (primitive_type) "int" (identifier) "size" ()) ")" (compound_statement) "{\n RingBuffer *rb = malloc_exit(sizeof(RingBuffer));\n rb->size = size;\n rb->buf = jack_ringbuffer_create(sizeof(void *) * size);\n return rb;\n}" ({) "{" (declaration) "RingBuffer *rb = malloc_exit(sizeof(RingBuffer));" (type_identifier) "RingBuffer" (init_declarator) "*rb = malloc_exit(sizeof(RingBuffer))" (pointer_declarator) "*rb" (*) "*" (identifier) "rb" (=) "=" (call_expression) "malloc_exit(sizeof(RingBuffer))" (identifier) "malloc_exit" (argument_list) "(sizeof(RingBuffer))" (() "(" (sizeof_expression) "sizeof(RingBuffer)" (sizeof) "sizeof" (parenthesized_expression) "(RingBuffer)" (() "(" (identifier) "RingBuffer" ()) ")" ()) ")" (;) ";" (expression_statement) "rb->size = size;" (assignment_expression) "rb->size = size" (field_expression) "rb->size" (identifier) "rb" (->) "->" (field_identifier) "size" (=) "=" (identifier) "size" (;) ";" (expression_statement) "rb->buf = jack_ringbuffer_create(sizeof(void *) * size);" (assignment_expression) "rb->buf = jack_ringbuffer_create(sizeof(void *) * size)" (field_expression) "rb->buf" (identifier) "rb" (->) "->" (field_identifier) "buf" (=) "=" (call_expression) "jack_ringbuffer_create(sizeof(void *) * size)" (identifier) "jack_ringbuffer_create" (argument_list) "(sizeof(void *) * size)" (() "(" (binary_expression) "sizeof(void *) * size" (sizeof_expression) "sizeof(void *)" (sizeof) "sizeof" (() "(" (type_descriptor) "void *" (primitive_type) "void" (abstract_pointer_declarator) "*" (*) "*" ()) ")" (*) "*" (identifier) "size" ()) ")" (;) ";" (return_statement) "return rb;" (return) "return" (identifier) "rb" (;) ";" (}) "}" (function_definition) "void ringbuf_free(RingBuffer * rb)\n{\n jack_ringbuffer_free(rb->buf);\n free(rb);\n}" (primitive_type) "void" (function_declarator) "ringbuf_free(RingBuffer * rb)" (identifier) "ringbuf_free" (parameter_list) "(RingBuffer * rb)" (() "(" (parameter_declaration) "RingBuffer * rb" (type_identifier) "RingBuffer" (pointer_declarator) "* rb" (*) "*" (identifier) "rb" ()) ")" (compound_statement) "{\n jack_ringbuffer_free(rb->buf);\n free(rb);\n}" ({) "{" (expression_statement) "jack_ringbuffer_free(rb->buf);" (call_expression) "jack_ringbuffer_free(rb->buf)" (identifier) "jack_ringbuffer_free" (argument_list) "(rb->buf)" (() "(" (field_expression) "rb->buf" (identifier) "rb" (->) "->" (field_identifier) "buf" ()) ")" (;) ";" (expression_statement) "free(rb);" (call_expression) "free(rb)" (identifier) "free" (argument_list) "(rb)" (() "(" (identifier) "rb" ()) ")" (;) ";" (}) "}" (function_definition) "int ringbuf_size(RingBuffer * rb)\n{\n return rb->size;\n}" (primitive_type) "int" (function_declarator) "ringbuf_size(RingBuffer * rb)" (identifier) "ringbuf_size" (parameter_list) "(RingBuffer * rb)" (() "(" (parameter_declaration) "RingBuffer * rb" (type_identifier) "RingBuffer" (pointer_declarator) "* rb" (*) "*" (identifier) "rb" ()) ")" (compound_statement) "{\n return rb->size;\n}" ({) "{" (return_statement) "return rb->size;" (return) "return" (field_expression) "rb->size" (identifier) "rb" (->) "->" (field_identifier) "size" (;) ";" (}) "}" (function_definition) "inline int ringbuf_count(RingBuffer * rb)\n{\n return jack_ringbuffer_read_space(rb->buf) / sizeof(void *);\n}" (storage_class_specifier) "inline" (inline) "inline" (primitive_type) "int" (function_declarator) "ringbuf_count(RingBuffer * rb)" (identifier) "ringbuf_count" (parameter_list) "(RingBuffer * rb)" (() "(" (parameter_declaration) "RingBuffer * rb" (type_identifier) "RingBuffer" (pointer_declarator) "* rb" (*) "*" (identifier) "rb" ()) ")" (compound_statement) "{\n return jack_ringbuffer_read_space(rb->buf) / sizeof(void *);\n}" ({) "{" (return_statement) "return jack_ringbuffer_read_space(rb->buf) / sizeof(void *);" (return) "return" (binary_expression) "jack_ringbuffer_read_space(rb->buf) / sizeof(void *)" (call_expression) "jack_ringbuffer_read_space(rb->buf)" (identifier) "jack_ringbuffer_read_space" (argument_list) "(rb->buf)" (() "(" (field_expression) "rb->buf" (identifier) "rb" (->) "->" (field_identifier) "buf" ()) ")" (/) "/" (sizeof_expression) "sizeof(void *)" (sizeof) "sizeof" (() "(" (type_descriptor) "void *" (primitive_type) "void" (abstract_pointer_declarator) "*" (*) "*" ()) ")" (;) ";" (}) "}" (function_definition) "inline bool ringbuf_put(RingBuffer * rb, void *data)\n{\n int writeSpace = jack_ringbuffer_write_space(rb->buf);\n if (writeSpace < sizeof(void *)) {\n return false;\n }\n jack_ringbuffer_write(rb->buf, (char *)(&data), sizeof(void *));\n return true;\n}" (storage_class_specifier) "inline" (inline) "inline" (primitive_type) "bool" (function_declarator) "ringbuf_put(RingBuffer * rb, void *data)" (identifier) "ringbuf_put" (parameter_list) "(RingBuffer * rb, void *data)" (() "(" (parameter_declaration) "RingBuffer * rb" (type_identifier) "RingBuffer" (pointer_declarator) "* rb" (*) "*" (identifier) "rb" (,) "," (parameter_declaration) "void *data" (primitive_type) "void" (pointer_declarator) "*data" (*) "*" (identifier) "data" ()) ")" (compound_statement) "{\n int writeSpace = jack_ringbuffer_write_space(rb->buf);\n if (writeSpace < sizeof(void *)) {\n return false;\n }\n jack_ringbuffer_write(rb->buf, (char *)(&data), sizeof(void *));\n return true;\n}" ({) "{" (declaration) "int writeSpace = jack_ringbuffer_write_space(rb->buf);" (primitive_type) "int" (init_declarator) "writeSpace = jack_ringbuffer_write_space(rb->buf)" (identifier) "writeSpace" (=) "=" (call_expression) "jack_ringbuffer_write_space(rb->buf)" (identifier) "jack_ringbuffer_write_space" (argument_list) "(rb->buf)" (() "(" (field_expression) "rb->buf" (identifier) "rb" (->) "->" (field_identifier) "buf" ()) ")" (;) ";" (if_statement) "if (writeSpace < sizeof(void *)) {\n return false;\n }" (if) "if" (parenthesized_expression) "(writeSpace < sizeof(void *))" (() "(" (binary_expression) "writeSpace < sizeof(void *)" (identifier) "writeSpace" (<) "<" (sizeof_expression) "sizeof(void *)" (sizeof) "sizeof" (() "(" (type_descriptor) "void *" (primitive_type) "void" (abstract_pointer_declarator) "*" (*) "*" ()) ")" ()) ")" (compound_statement) "{\n return false;\n }" ({) "{" (return_statement) "return false;" (return) "return" (false) "false" (;) ";" (}) "}" (expression_statement) "jack_ringbuffer_write(rb->buf, (char *)(&data), sizeof(void *));" (call_expression) "jack_ringbuffer_write(rb->buf, (char *)(&data), sizeof(void *))" (identifier) "jack_ringbuffer_write" (argument_list) "(rb->buf, (char *)(&data), sizeof(void *))" (() "(" (field_expression) "rb->buf" (identifier) "rb" (->) "->" (field_identifier) "buf" (,) "," (cast_expression) "(char *)(&data)" (() "(" (type_descriptor) "char *" (primitive_type) "char" (abstract_pointer_declarator) "*" (*) "*" ()) ")" (parenthesized_expression) "(&data)" (() "(" (pointer_expression) "&data" (&) "&" (identifier) "data" ()) ")" (,) "," (sizeof_expression) "sizeof(void *)" (sizeof) "sizeof" (() "(" (type_descriptor) "void *" (primitive_type) "void" (abstract_pointer_declarator) "*" (*) "*" ()) ")" ()) ")" (;) ";" (return_statement) "return true;" (return) "return" (true) "true" (;) ";" (}) "}" (function_definition) "inline void *ringbuf_get(RingBuffer * rb)\n{\n if (ringbuf_count(rb) == 0) {\n return NULL;\n }\n void *data;\n jack_ringbuffer_read(rb->buf, (char *)(&data), sizeof(void *));\n return data;\n}" (storage_class_specifier) "inline" (inline) "inline" (primitive_type) "void" (pointer_declarator) "*ringbuf_get(RingBuffer * rb)" (*) "*" (function_declarator) "ringbuf_get(RingBuffer * rb)" (identifier) "ringbuf_get" (parameter_list) "(RingBuffer * rb)" (() "(" (parameter_declaration) "RingBuffer * rb" (type_identifier) "RingBuffer" (pointer_declarator) "* rb" (*) "*" (identifier) "rb" ()) ")" (compound_statement) "{\n if (ringbuf_count(rb) == 0) {\n return NULL;\n }\n void *data;\n jack_ringbuffer_read(rb->buf, (char *)(&data), sizeof(void *));\n return data;\n}" ({) "{" (if_statement) "if (ringbuf_count(rb) == 0) {\n return NULL;\n }" (if) "if" (parenthesized_expression) "(ringbuf_count(rb) == 0)" (() "(" (binary_expression) "ringbuf_count(rb) == 0" (call_expression) "ringbuf_count(rb)" (identifier) "ringbuf_count" (argument_list) "(rb)" (() "(" (identifier) "rb" ()) ")" (==) "==" (number_literal) "0" ()) ")" (compound_statement) "{\n return NULL;\n }" ({) "{" (return_statement) "return NULL;" (return) "return" (null) "NULL" (NULL) "NULL" (;) ";" (}) "}" (declaration) "void *data;" (primitive_type) "void" (pointer_declarator) "*data" (*) "*" (identifier) "data" (;) ";" (expression_statement) "jack_ringbuffer_read(rb->buf, (char *)(&data), sizeof(void *));" (call_expression) "jack_ringbuffer_read(rb->buf, (char *)(&data), sizeof(void *))" (identifier) "jack_ringbuffer_read" (argument_list) "(rb->buf, (char *)(&data), sizeof(void *))" (() "(" (field_expression) "rb->buf" (identifier) "rb" (->) "->" (field_identifier) "buf" (,) "," (cast_expression) "(char *)(&data)" (() "(" (type_descriptor) "char *" (primitive_type) "char" (abstract_pointer_declarator) "*" (*) "*" ()) ")" (parenthesized_expression) "(&data)" (() "(" (pointer_expression) "&data" (&) "&" (identifier) "data" ()) ")" (,) "," (sizeof_expression) "sizeof(void *)" (sizeof) "sizeof" (() "(" (type_descriptor) "void *" (primitive_type) "void" (abstract_pointer_declarator) "*" (*) "*" ()) ")" ()) ")" (;) ";" (return_statement) "return data;" (return) "return" (identifier) "data" (;) ";" (}) "}"
380
0
{"language": "c", "success": true, "metadata": {"lines": 44, "avg_line_length": 22.41, "nodes": 237, "errors": 0, "source_hash": "c5b367ed7d3fb8269faf14ccd190d103d8a83b6f1684a97b7a1cd480aaa1bc86", "categorized_nodes": 145}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#include \"ringbuffer.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": "\"ringbuffer.h\"", "parent": 0, "children": [], "start_point": {"row": 0, "column": 9}, "end_point": {"row": 0, "column": 23}}, {"id": 3, "type": "preproc_include", "text": "#include \"mem.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": "\"mem.h\"", "parent": 3, "children": [], "start_point": {"row": 1, "column": 9}, "end_point": {"row": 1, "column": 16}}, {"id": 6, "type": "struct_specifier", "text": "struct RingBuffer {\n int size;\n jack_ringbuffer_t *buf;\n}", "parent": null, "children": [7, 8], "start_point": {"row": 3, "column": 0}, "end_point": {"row": 6, "column": 1}}, {"id": 7, "type": "struct", "text": "struct", "parent": 6, "children": [], "start_point": {"row": 3, "column": 0}, "end_point": {"row": 3, "column": 6}}, {"id": 8, "type": "type_identifier", "text": "RingBuffer", "parent": 6, "children": [], "start_point": {"row": 3, "column": 7}, "end_point": {"row": 3, "column": 17}}, {"id": 9, "type": "field_declaration", "text": "int size;", "parent": 6, "children": [10, 11], "start_point": {"row": 4, "column": 4}, "end_point": {"row": 4, "column": 13}}, {"id": 10, "type": "primitive_type", "text": "int", "parent": 9, "children": [], "start_point": {"row": 4, "column": 4}, "end_point": {"row": 4, "column": 7}}, {"id": 11, "type": "field_identifier", "text": "size", "parent": 9, "children": [], "start_point": {"row": 4, "column": 8}, "end_point": {"row": 4, "column": 12}}, {"id": 12, "type": "field_declaration", "text": "jack_ringbuffer_t *buf;", "parent": 6, "children": [13, 14], "start_point": {"row": 5, "column": 4}, "end_point": {"row": 5, "column": 27}}, {"id": 13, "type": "type_identifier", "text": "jack_ringbuffer_t", "parent": 12, "children": [], "start_point": {"row": 5, "column": 4}, "end_point": {"row": 5, "column": 21}}, {"id": 14, "type": "pointer_declarator", "text": "*buf", "parent": 12, "children": [15, 16], "start_point": {"row": 5, "column": 22}, "end_point": {"row": 5, "column": 26}}, {"id": 15, "type": "*", "text": "*", "parent": 14, "children": [], "start_point": {"row": 5, "column": 22}, "end_point": {"row": 5, "column": 23}}, {"id": 16, "type": "field_identifier", "text": "buf", "parent": 14, "children": [], "start_point": {"row": 5, "column": 23}, "end_point": {"row": 5, "column": 26}}, {"id": 17, "type": "function_definition", "text": "RingBuffer *ringbuf_new(int size)\n{\n RingBuffer *rb = malloc_exit(sizeof(RingBuffer));\n rb->size = size;\n rb->buf = jack_ringbuffer_create(sizeof(void *) * size);\n return rb;\n}", "parent": null, "children": [18, 19], "start_point": {"row": 8, "column": 0}, "end_point": {"row": 14, "column": 1}}, {"id": 18, "type": "type_identifier", "text": "RingBuffer", "parent": 17, "children": [], "start_point": {"row": 8, "column": 0}, "end_point": {"row": 8, "column": 10}}, {"id": 19, "type": "pointer_declarator", "text": "*ringbuf_new(int size)", "parent": 17, "children": [20, 21], "start_point": {"row": 8, "column": 11}, "end_point": {"row": 8, "column": 33}}, {"id": 20, "type": "*", "text": "*", "parent": 19, "children": [], "start_point": {"row": 8, "column": 11}, "end_point": {"row": 8, "column": 12}}, {"id": 21, "type": "function_declarator", "text": "ringbuf_new(int size)", "parent": 19, "children": [22, 23], "start_point": {"row": 8, "column": 12}, "end_point": {"row": 8, "column": 33}}, {"id": 22, "type": "identifier", "text": "ringbuf_new", "parent": 21, "children": [], "start_point": {"row": 8, "column": 12}, "end_point": {"row": 8, "column": 23}}, {"id": 23, "type": "parameter_list", "text": "(int size)", "parent": 21, "children": [24], "start_point": {"row": 8, "column": 23}, "end_point": {"row": 8, "column": 33}}, {"id": 24, "type": "parameter_declaration", "text": "int size", "parent": 23, "children": [25, 26], "start_point": {"row": 8, "column": 24}, "end_point": {"row": 8, "column": 32}}, {"id": 25, "type": "primitive_type", "text": "int", "parent": 24, "children": [], "start_point": {"row": 8, "column": 24}, "end_point": {"row": 8, "column": 27}}, {"id": 26, "type": "identifier", "text": "size", "parent": 24, "children": [], "start_point": {"row": 8, "column": 28}, "end_point": {"row": 8, "column": 32}}, {"id": 27, "type": "declaration", "text": "RingBuffer *rb = malloc_exit(sizeof(RingBuffer));", "parent": 17, "children": [28, 29], "start_point": {"row": 10, "column": 4}, "end_point": {"row": 10, "column": 53}}, {"id": 28, "type": "type_identifier", "text": "RingBuffer", "parent": 27, "children": [], "start_point": {"row": 10, "column": 4}, "end_point": {"row": 10, "column": 14}}, {"id": 29, "type": "init_declarator", "text": "*rb = malloc_exit(sizeof(RingBuffer))", "parent": 27, "children": [30, 33, 34], "start_point": {"row": 10, "column": 15}, "end_point": {"row": 10, "column": 52}}, {"id": 30, "type": "pointer_declarator", "text": "*rb", "parent": 29, "children": [31, 32], "start_point": {"row": 10, "column": 15}, "end_point": {"row": 10, "column": 18}}, {"id": 31, "type": "*", "text": "*", "parent": 30, "children": [], "start_point": {"row": 10, "column": 15}, "end_point": {"row": 10, "column": 16}}, {"id": 32, "type": "identifier", "text": "rb", "parent": 30, "children": [], "start_point": {"row": 10, "column": 16}, "end_point": {"row": 10, "column": 18}}, {"id": 33, "type": "=", "text": "=", "parent": 29, "children": [], "start_point": {"row": 10, "column": 19}, "end_point": {"row": 10, "column": 20}}, {"id": 34, "type": "call_expression", "text": "malloc_exit(sizeof(RingBuffer))", "parent": 29, "children": [35, 36], "start_point": {"row": 10, "column": 21}, "end_point": {"row": 10, "column": 52}}, {"id": 35, "type": "identifier", "text": "malloc_exit", "parent": 34, "children": [], "start_point": {"row": 10, "column": 21}, "end_point": {"row": 10, "column": 32}}, {"id": 36, "type": "argument_list", "text": "(sizeof(RingBuffer))", "parent": 34, "children": [37], "start_point": {"row": 10, "column": 32}, "end_point": {"row": 10, "column": 52}}, {"id": 37, "type": "sizeof_expression", "text": "sizeof(RingBuffer)", "parent": 36, "children": [38], "start_point": {"row": 10, "column": 33}, "end_point": {"row": 10, "column": 51}}, {"id": 38, "type": "parenthesized_expression", "text": "(RingBuffer)", "parent": 37, "children": [39], "start_point": {"row": 10, "column": 39}, "end_point": {"row": 10, "column": 51}}, {"id": 39, "type": "identifier", "text": "RingBuffer", "parent": 38, "children": [], "start_point": {"row": 10, "column": 40}, "end_point": {"row": 10, "column": 50}}, {"id": 40, "type": "assignment_expression", "text": "rb->size = size", "parent": 17, "children": [41, 44, 45], "start_point": {"row": 11, "column": 4}, "end_point": {"row": 11, "column": 19}}, {"id": 41, "type": "field_expression", "text": "rb->size", "parent": 40, "children": [42, 43], "start_point": {"row": 11, "column": 4}, "end_point": {"row": 11, "column": 12}}, {"id": 42, "type": "identifier", "text": "rb", "parent": 41, "children": [], "start_point": {"row": 11, "column": 4}, "end_point": {"row": 11, "column": 6}}, {"id": 43, "type": "field_identifier", "text": "size", "parent": 41, "children": [], "start_point": {"row": 11, "column": 8}, "end_point": {"row": 11, "column": 12}}, {"id": 44, "type": "=", "text": "=", "parent": 40, "children": [], "start_point": {"row": 11, "column": 13}, "end_point": {"row": 11, "column": 14}}, {"id": 45, "type": "identifier", "text": "size", "parent": 40, "children": [], "start_point": {"row": 11, "column": 15}, "end_point": {"row": 11, "column": 19}}, {"id": 46, "type": "assignment_expression", "text": "rb->buf = jack_ringbuffer_create(sizeof(void *) * size)", "parent": 17, "children": [47, 50, 51], "start_point": {"row": 12, "column": 4}, "end_point": {"row": 12, "column": 59}}, {"id": 47, "type": "field_expression", "text": "rb->buf", "parent": 46, "children": [48, 49], "start_point": {"row": 12, "column": 4}, "end_point": {"row": 12, "column": 11}}, {"id": 48, "type": "identifier", "text": "rb", "parent": 47, "children": [], "start_point": {"row": 12, "column": 4}, "end_point": {"row": 12, "column": 6}}, {"id": 49, "type": "field_identifier", "text": "buf", "parent": 47, "children": [], "start_point": {"row": 12, "column": 8}, "end_point": {"row": 12, "column": 11}}, {"id": 50, "type": "=", "text": "=", "parent": 46, "children": [], "start_point": {"row": 12, "column": 12}, "end_point": {"row": 12, "column": 13}}, {"id": 51, "type": "call_expression", "text": "jack_ringbuffer_create(sizeof(void *) * size)", "parent": 46, "children": [52, 53], "start_point": {"row": 12, "column": 14}, "end_point": {"row": 12, "column": 59}}, {"id": 52, "type": "identifier", "text": "jack_ringbuffer_create", "parent": 51, "children": [], "start_point": {"row": 12, "column": 14}, "end_point": {"row": 12, "column": 36}}, {"id": 53, "type": "argument_list", "text": "(sizeof(void *) * size)", "parent": 51, "children": [54], "start_point": {"row": 12, "column": 36}, "end_point": {"row": 12, "column": 59}}, {"id": 54, "type": "binary_expression", "text": "sizeof(void *) * size", "parent": 53, "children": [55, 60, 61], "start_point": {"row": 12, "column": 37}, "end_point": {"row": 12, "column": 58}}, {"id": 55, "type": "sizeof_expression", "text": "sizeof(void *)", "parent": 54, "children": [56], "start_point": {"row": 12, "column": 37}, "end_point": {"row": 12, "column": 51}}, {"id": 56, "type": "type_descriptor", "text": "void *", "parent": 55, "children": [57, 58], "start_point": {"row": 12, "column": 44}, "end_point": {"row": 12, "column": 50}}, {"id": 57, "type": "primitive_type", "text": "void", "parent": 56, "children": [], "start_point": {"row": 12, "column": 44}, "end_point": {"row": 12, "column": 48}}, {"id": 58, "type": "abstract_pointer_declarator", "text": "*", "parent": 56, "children": [59], "start_point": {"row": 12, "column": 49}, "end_point": {"row": 12, "column": 50}}, {"id": 59, "type": "*", "text": "*", "parent": 58, "children": [], "start_point": {"row": 12, "column": 49}, "end_point": {"row": 12, "column": 50}}, {"id": 60, "type": "*", "text": "*", "parent": 54, "children": [], "start_point": {"row": 12, "column": 52}, "end_point": {"row": 12, "column": 53}}, {"id": 61, "type": "identifier", "text": "size", "parent": 54, "children": [], "start_point": {"row": 12, "column": 54}, "end_point": {"row": 12, "column": 58}}, {"id": 62, "type": "return_statement", "text": "return rb;", "parent": 17, "children": [63], "start_point": {"row": 13, "column": 4}, "end_point": {"row": 13, "column": 14}}, {"id": 63, "type": "identifier", "text": "rb", "parent": 62, "children": [], "start_point": {"row": 13, "column": 11}, "end_point": {"row": 13, "column": 13}}, {"id": 64, "type": "function_definition", "text": "void ringbuf_free(RingBuffer * rb)\n{\n jack_ringbuffer_free(rb->buf);\n free(rb);\n}", "parent": null, "children": [65, 66], "start_point": {"row": 16, "column": 0}, "end_point": {"row": 20, "column": 1}}, {"id": 65, "type": "primitive_type", "text": "void", "parent": 64, "children": [], "start_point": {"row": 16, "column": 0}, "end_point": {"row": 16, "column": 4}}, {"id": 66, "type": "function_declarator", "text": "ringbuf_free(RingBuffer * rb)", "parent": 64, "children": [67, 68], "start_point": {"row": 16, "column": 5}, "end_point": {"row": 16, "column": 34}}, {"id": 67, "type": "identifier", "text": "ringbuf_free", "parent": 66, "children": [], "start_point": {"row": 16, "column": 5}, "end_point": {"row": 16, "column": 17}}, {"id": 68, "type": "parameter_list", "text": "(RingBuffer * rb)", "parent": 66, "children": [69], "start_point": {"row": 16, "column": 17}, "end_point": {"row": 16, "column": 34}}, {"id": 69, "type": "parameter_declaration", "text": "RingBuffer * rb", "parent": 68, "children": [70, 71], "start_point": {"row": 16, "column": 18}, "end_point": {"row": 16, "column": 33}}, {"id": 70, "type": "type_identifier", "text": "RingBuffer", "parent": 69, "children": [], "start_point": {"row": 16, "column": 18}, "end_point": {"row": 16, "column": 28}}, {"id": 71, "type": "pointer_declarator", "text": "* rb", "parent": 69, "children": [72, 73], "start_point": {"row": 16, "column": 29}, "end_point": {"row": 16, "column": 33}}, {"id": 72, "type": "*", "text": "*", "parent": 71, "children": [], "start_point": {"row": 16, "column": 29}, "end_point": {"row": 16, "column": 30}}, {"id": 73, "type": "identifier", "text": "rb", "parent": 71, "children": [], "start_point": {"row": 16, "column": 31}, "end_point": {"row": 16, "column": 33}}, {"id": 74, "type": "call_expression", "text": "jack_ringbuffer_free(rb->buf)", "parent": 64, "children": [75, 76], "start_point": {"row": 18, "column": 4}, "end_point": {"row": 18, "column": 33}}, {"id": 75, "type": "identifier", "text": "jack_ringbuffer_free", "parent": 74, "children": [], "start_point": {"row": 18, "column": 4}, "end_point": {"row": 18, "column": 24}}, {"id": 76, "type": "argument_list", "text": "(rb->buf)", "parent": 74, "children": [77], "start_point": {"row": 18, "column": 24}, "end_point": {"row": 18, "column": 33}}, {"id": 77, "type": "field_expression", "text": "rb->buf", "parent": 76, "children": [78, 79], "start_point": {"row": 18, "column": 25}, "end_point": {"row": 18, "column": 32}}, {"id": 78, "type": "identifier", "text": "rb", "parent": 77, "children": [], "start_point": {"row": 18, "column": 25}, "end_point": {"row": 18, "column": 27}}, {"id": 79, "type": "field_identifier", "text": "buf", "parent": 77, "children": [], "start_point": {"row": 18, "column": 29}, "end_point": {"row": 18, "column": 32}}, {"id": 80, "type": "call_expression", "text": "free(rb)", "parent": 64, "children": [81, 82], "start_point": {"row": 19, "column": 4}, "end_point": {"row": 19, "column": 12}}, {"id": 81, "type": "identifier", "text": "free", "parent": 80, "children": [], "start_point": {"row": 19, "column": 4}, "end_point": {"row": 19, "column": 8}}, {"id": 82, "type": "argument_list", "text": "(rb)", "parent": 80, "children": [83], "start_point": {"row": 19, "column": 8}, "end_point": {"row": 19, "column": 12}}, {"id": 83, "type": "identifier", "text": "rb", "parent": 82, "children": [], "start_point": {"row": 19, "column": 9}, "end_point": {"row": 19, "column": 11}}, {"id": 84, "type": "function_definition", "text": "int ringbuf_size(RingBuffer * rb)\n{\n return rb->size;\n}", "parent": null, "children": [85, 86], "start_point": {"row": 22, "column": 0}, "end_point": {"row": 25, "column": 1}}, {"id": 85, "type": "primitive_type", "text": "int", "parent": 84, "children": [], "start_point": {"row": 22, "column": 0}, "end_point": {"row": 22, "column": 3}}, {"id": 86, "type": "function_declarator", "text": "ringbuf_size(RingBuffer * rb)", "parent": 84, "children": [87, 88], "start_point": {"row": 22, "column": 4}, "end_point": {"row": 22, "column": 33}}, {"id": 87, "type": "identifier", "text": "ringbuf_size", "parent": 86, "children": [], "start_point": {"row": 22, "column": 4}, "end_point": {"row": 22, "column": 16}}, {"id": 88, "type": "parameter_list", "text": "(RingBuffer * rb)", "parent": 86, "children": [89], "start_point": {"row": 22, "column": 16}, "end_point": {"row": 22, "column": 33}}, {"id": 89, "type": "parameter_declaration", "text": "RingBuffer * rb", "parent": 88, "children": [90, 91], "start_point": {"row": 22, "column": 17}, "end_point": {"row": 22, "column": 32}}, {"id": 90, "type": "type_identifier", "text": "RingBuffer", "parent": 89, "children": [], "start_point": {"row": 22, "column": 17}, "end_point": {"row": 22, "column": 27}}, {"id": 91, "type": "pointer_declarator", "text": "* rb", "parent": 89, "children": [92, 93], "start_point": {"row": 22, "column": 28}, "end_point": {"row": 22, "column": 32}}, {"id": 92, "type": "*", "text": "*", "parent": 91, "children": [], "start_point": {"row": 22, "column": 28}, "end_point": {"row": 22, "column": 29}}, {"id": 93, "type": "identifier", "text": "rb", "parent": 91, "children": [], "start_point": {"row": 22, "column": 30}, "end_point": {"row": 22, "column": 32}}, {"id": 94, "type": "return_statement", "text": "return rb->size;", "parent": 84, "children": [95], "start_point": {"row": 24, "column": 4}, "end_point": {"row": 24, "column": 20}}, {"id": 95, "type": "field_expression", "text": "rb->size", "parent": 94, "children": [96, 97], "start_point": {"row": 24, "column": 11}, "end_point": {"row": 24, "column": 19}}, {"id": 96, "type": "identifier", "text": "rb", "parent": 95, "children": [], "start_point": {"row": 24, "column": 11}, "end_point": {"row": 24, "column": 13}}, {"id": 97, "type": "field_identifier", "text": "size", "parent": 95, "children": [], "start_point": {"row": 24, "column": 15}, "end_point": {"row": 24, "column": 19}}, {"id": 98, "type": "function_definition", "text": "inline int ringbuf_count(RingBuffer * rb)\n{\n return jack_ringbuffer_read_space(rb->buf) / sizeof(void *);\n}", "parent": null, "children": [99, 101, 102], "start_point": {"row": 27, "column": 0}, "end_point": {"row": 30, "column": 1}}, {"id": 99, "type": "storage_class_specifier", "text": "inline", "parent": 98, "children": [100], "start_point": {"row": 27, "column": 0}, "end_point": {"row": 27, "column": 6}}, {"id": 100, "type": "inline", "text": "inline", "parent": 99, "children": [], "start_point": {"row": 27, "column": 0}, "end_point": {"row": 27, "column": 6}}, {"id": 101, "type": "primitive_type", "text": "int", "parent": 98, "children": [], "start_point": {"row": 27, "column": 7}, "end_point": {"row": 27, "column": 10}}, {"id": 102, "type": "function_declarator", "text": "ringbuf_count(RingBuffer * rb)", "parent": 98, "children": [103, 104], "start_point": {"row": 27, "column": 11}, "end_point": {"row": 27, "column": 41}}, {"id": 103, "type": "identifier", "text": "ringbuf_count", "parent": 102, "children": [], "start_point": {"row": 27, "column": 11}, "end_point": {"row": 27, "column": 24}}, {"id": 104, "type": "parameter_list", "text": "(RingBuffer * rb)", "parent": 102, "children": [105], "start_point": {"row": 27, "column": 24}, "end_point": {"row": 27, "column": 41}}, {"id": 105, "type": "parameter_declaration", "text": "RingBuffer * rb", "parent": 104, "children": [106, 107], "start_point": {"row": 27, "column": 25}, "end_point": {"row": 27, "column": 40}}, {"id": 106, "type": "type_identifier", "text": "RingBuffer", "parent": 105, "children": [], "start_point": {"row": 27, "column": 25}, "end_point": {"row": 27, "column": 35}}, {"id": 107, "type": "pointer_declarator", "text": "* rb", "parent": 105, "children": [108, 109], "start_point": {"row": 27, "column": 36}, "end_point": {"row": 27, "column": 40}}, {"id": 108, "type": "*", "text": "*", "parent": 107, "children": [], "start_point": {"row": 27, "column": 36}, "end_point": {"row": 27, "column": 37}}, {"id": 109, "type": "identifier", "text": "rb", "parent": 107, "children": [], "start_point": {"row": 27, "column": 38}, "end_point": {"row": 27, "column": 40}}, {"id": 110, "type": "return_statement", "text": "return jack_ringbuffer_read_space(rb->buf) / sizeof(void *);", "parent": 98, "children": [111], "start_point": {"row": 29, "column": 4}, "end_point": {"row": 29, "column": 64}}, {"id": 111, "type": "binary_expression", "text": "jack_ringbuffer_read_space(rb->buf) / sizeof(void *)", "parent": 110, "children": [112, 118, 119], "start_point": {"row": 29, "column": 11}, "end_point": {"row": 29, "column": 63}}, {"id": 112, "type": "call_expression", "text": "jack_ringbuffer_read_space(rb->buf)", "parent": 111, "children": [113, 114], "start_point": {"row": 29, "column": 11}, "end_point": {"row": 29, "column": 46}}, {"id": 113, "type": "identifier", "text": "jack_ringbuffer_read_space", "parent": 112, "children": [], "start_point": {"row": 29, "column": 11}, "end_point": {"row": 29, "column": 37}}, {"id": 114, "type": "argument_list", "text": "(rb->buf)", "parent": 112, "children": [115], "start_point": {"row": 29, "column": 37}, "end_point": {"row": 29, "column": 46}}, {"id": 115, "type": "field_expression", "text": "rb->buf", "parent": 114, "children": [116, 117], "start_point": {"row": 29, "column": 38}, "end_point": {"row": 29, "column": 45}}, {"id": 116, "type": "identifier", "text": "rb", "parent": 115, "children": [], "start_point": {"row": 29, "column": 38}, "end_point": {"row": 29, "column": 40}}, {"id": 117, "type": "field_identifier", "text": "buf", "parent": 115, "children": [], "start_point": {"row": 29, "column": 42}, "end_point": {"row": 29, "column": 45}}, {"id": 118, "type": "/", "text": "/", "parent": 111, "children": [], "start_point": {"row": 29, "column": 47}, "end_point": {"row": 29, "column": 48}}, {"id": 119, "type": "sizeof_expression", "text": "sizeof(void *)", "parent": 111, "children": [120], "start_point": {"row": 29, "column": 49}, "end_point": {"row": 29, "column": 63}}, {"id": 120, "type": "type_descriptor", "text": "void *", "parent": 119, "children": [121, 122], "start_point": {"row": 29, "column": 56}, "end_point": {"row": 29, "column": 62}}, {"id": 121, "type": "primitive_type", "text": "void", "parent": 120, "children": [], "start_point": {"row": 29, "column": 56}, "end_point": {"row": 29, "column": 60}}, {"id": 122, "type": "abstract_pointer_declarator", "text": "*", "parent": 120, "children": [123], "start_point": {"row": 29, "column": 61}, "end_point": {"row": 29, "column": 62}}, {"id": 123, "type": "*", "text": "*", "parent": 122, "children": [], "start_point": {"row": 29, "column": 61}, "end_point": {"row": 29, "column": 62}}, {"id": 124, "type": "function_definition", "text": "inline bool ringbuf_put(RingBuffer * rb, void *data)\n{\n int writeSpace = jack_ringbuffer_write_space(rb->buf);\n if (writeSpace < sizeof(void *)) {\n return false;\n }\n jack_ringbuffer_write(rb->buf, (char *)(&data), sizeof(void *));\n return true;\n}", "parent": null, "children": [125, 127, 128], "start_point": {"row": 32, "column": 0}, "end_point": {"row": 40, "column": 1}}, {"id": 125, "type": "storage_class_specifier", "text": "inline", "parent": 124, "children": [126], "start_point": {"row": 32, "column": 0}, "end_point": {"row": 32, "column": 6}}, {"id": 126, "type": "inline", "text": "inline", "parent": 125, "children": [], "start_point": {"row": 32, "column": 0}, "end_point": {"row": 32, "column": 6}}, {"id": 127, "type": "primitive_type", "text": "bool", "parent": 124, "children": [], "start_point": {"row": 32, "column": 7}, "end_point": {"row": 32, "column": 11}}, {"id": 128, "type": "function_declarator", "text": "ringbuf_put(RingBuffer * rb, void *data)", "parent": 124, "children": [129, 130], "start_point": {"row": 32, "column": 12}, "end_point": {"row": 32, "column": 52}}, {"id": 129, "type": "identifier", "text": "ringbuf_put", "parent": 128, "children": [], "start_point": {"row": 32, "column": 12}, "end_point": {"row": 32, "column": 23}}, {"id": 130, "type": "parameter_list", "text": "(RingBuffer * rb, void *data)", "parent": 128, "children": [131, 136], "start_point": {"row": 32, "column": 23}, "end_point": {"row": 32, "column": 52}}, {"id": 131, "type": "parameter_declaration", "text": "RingBuffer * rb", "parent": 130, "children": [132, 133], "start_point": {"row": 32, "column": 24}, "end_point": {"row": 32, "column": 39}}, {"id": 132, "type": "type_identifier", "text": "RingBuffer", "parent": 131, "children": [], "start_point": {"row": 32, "column": 24}, "end_point": {"row": 32, "column": 34}}, {"id": 133, "type": "pointer_declarator", "text": "* rb", "parent": 131, "children": [134, 135], "start_point": {"row": 32, "column": 35}, "end_point": {"row": 32, "column": 39}}, {"id": 134, "type": "*", "text": "*", "parent": 133, "children": [], "start_point": {"row": 32, "column": 35}, "end_point": {"row": 32, "column": 36}}, {"id": 135, "type": "identifier", "text": "rb", "parent": 133, "children": [], "start_point": {"row": 32, "column": 37}, "end_point": {"row": 32, "column": 39}}, {"id": 136, "type": "parameter_declaration", "text": "void *data", "parent": 130, "children": [137, 138], "start_point": {"row": 32, "column": 41}, "end_point": {"row": 32, "column": 51}}, {"id": 137, "type": "primitive_type", "text": "void", "parent": 136, "children": [], "start_point": {"row": 32, "column": 41}, "end_point": {"row": 32, "column": 45}}, {"id": 138, "type": "pointer_declarator", "text": "*data", "parent": 136, "children": [139, 140], "start_point": {"row": 32, "column": 46}, "end_point": {"row": 32, "column": 51}}, {"id": 139, "type": "*", "text": "*", "parent": 138, "children": [], "start_point": {"row": 32, "column": 46}, "end_point": {"row": 32, "column": 47}}, {"id": 140, "type": "identifier", "text": "data", "parent": 138, "children": [], "start_point": {"row": 32, "column": 47}, "end_point": {"row": 32, "column": 51}}, {"id": 141, "type": "declaration", "text": "int writeSpace = jack_ringbuffer_write_space(rb->buf);", "parent": 124, "children": [142, 143], "start_point": {"row": 34, "column": 4}, "end_point": {"row": 34, "column": 58}}, {"id": 142, "type": "primitive_type", "text": "int", "parent": 141, "children": [], "start_point": {"row": 34, "column": 4}, "end_point": {"row": 34, "column": 7}}, {"id": 143, "type": "init_declarator", "text": "writeSpace = jack_ringbuffer_write_space(rb->buf)", "parent": 141, "children": [144, 145, 146], "start_point": {"row": 34, "column": 8}, "end_point": {"row": 34, "column": 57}}, {"id": 144, "type": "identifier", "text": "writeSpace", "parent": 143, "children": [], "start_point": {"row": 34, "column": 8}, "end_point": {"row": 34, "column": 18}}, {"id": 145, "type": "=", "text": "=", "parent": 143, "children": [], "start_point": {"row": 34, "column": 19}, "end_point": {"row": 34, "column": 20}}, {"id": 146, "type": "call_expression", "text": "jack_ringbuffer_write_space(rb->buf)", "parent": 143, "children": [147, 148], "start_point": {"row": 34, "column": 21}, "end_point": {"row": 34, "column": 57}}, {"id": 147, "type": "identifier", "text": "jack_ringbuffer_write_space", "parent": 146, "children": [], "start_point": {"row": 34, "column": 21}, "end_point": {"row": 34, "column": 48}}, {"id": 148, "type": "argument_list", "text": "(rb->buf)", "parent": 146, "children": [149], "start_point": {"row": 34, "column": 48}, "end_point": {"row": 34, "column": 57}}, {"id": 149, "type": "field_expression", "text": "rb->buf", "parent": 148, "children": [150, 151], "start_point": {"row": 34, "column": 49}, "end_point": {"row": 34, "column": 56}}, {"id": 150, "type": "identifier", "text": "rb", "parent": 149, "children": [], "start_point": {"row": 34, "column": 49}, "end_point": {"row": 34, "column": 51}}, {"id": 151, "type": "field_identifier", "text": "buf", "parent": 149, "children": [], "start_point": {"row": 34, "column": 53}, "end_point": {"row": 34, "column": 56}}, {"id": 152, "type": "if_statement", "text": "if (writeSpace < sizeof(void *)) {\n return false;\n }", "parent": 124, "children": [153], "start_point": {"row": 35, "column": 4}, "end_point": {"row": 37, "column": 5}}, {"id": 153, "type": "parenthesized_expression", "text": "(writeSpace < sizeof(void *))", "parent": 152, "children": [154], "start_point": {"row": 35, "column": 7}, "end_point": {"row": 35, "column": 36}}, {"id": 154, "type": "binary_expression", "text": "writeSpace < sizeof(void *)", "parent": 153, "children": [155, 156, 157], "start_point": {"row": 35, "column": 8}, "end_point": {"row": 35, "column": 35}}, {"id": 155, "type": "identifier", "text": "writeSpace", "parent": 154, "children": [], "start_point": {"row": 35, "column": 8}, "end_point": {"row": 35, "column": 18}}, {"id": 156, "type": "<", "text": "<", "parent": 154, "children": [], "start_point": {"row": 35, "column": 19}, "end_point": {"row": 35, "column": 20}}, {"id": 157, "type": "sizeof_expression", "text": "sizeof(void *)", "parent": 154, "children": [158], "start_point": {"row": 35, "column": 21}, "end_point": {"row": 35, "column": 35}}, {"id": 158, "type": "type_descriptor", "text": "void *", "parent": 157, "children": [159, 160], "start_point": {"row": 35, "column": 28}, "end_point": {"row": 35, "column": 34}}, {"id": 159, "type": "primitive_type", "text": "void", "parent": 158, "children": [], "start_point": {"row": 35, "column": 28}, "end_point": {"row": 35, "column": 32}}, {"id": 160, "type": "abstract_pointer_declarator", "text": "*", "parent": 158, "children": [161], "start_point": {"row": 35, "column": 33}, "end_point": {"row": 35, "column": 34}}, {"id": 161, "type": "*", "text": "*", "parent": 160, "children": [], "start_point": {"row": 35, "column": 33}, "end_point": {"row": 35, "column": 34}}, {"id": 162, "type": "return_statement", "text": "return false;", "parent": 152, "children": [163], "start_point": {"row": 36, "column": 8}, "end_point": {"row": 36, "column": 21}}, {"id": 163, "type": "false", "text": "false", "parent": 162, "children": [], "start_point": {"row": 36, "column": 15}, "end_point": {"row": 36, "column": 20}}, {"id": 164, "type": "call_expression", "text": "jack_ringbuffer_write(rb->buf, (char *)(&data), sizeof(void *))", "parent": 124, "children": [165, 166], "start_point": {"row": 38, "column": 4}, "end_point": {"row": 38, "column": 67}}, {"id": 165, "type": "identifier", "text": "jack_ringbuffer_write", "parent": 164, "children": [], "start_point": {"row": 38, "column": 4}, "end_point": {"row": 38, "column": 25}}, {"id": 166, "type": "argument_list", "text": "(rb->buf, (char *)(&data), sizeof(void *))", "parent": 164, "children": [167, 170, 178], "start_point": {"row": 38, "column": 25}, "end_point": {"row": 38, "column": 67}}, {"id": 167, "type": "field_expression", "text": "rb->buf", "parent": 166, "children": [168, 169], "start_point": {"row": 38, "column": 26}, "end_point": {"row": 38, "column": 33}}, {"id": 168, "type": "identifier", "text": "rb", "parent": 167, "children": [], "start_point": {"row": 38, "column": 26}, "end_point": {"row": 38, "column": 28}}, {"id": 169, "type": "field_identifier", "text": "buf", "parent": 167, "children": [], "start_point": {"row": 38, "column": 30}, "end_point": {"row": 38, "column": 33}}, {"id": 170, "type": "cast_expression", "text": "(char *)(&data)", "parent": 166, "children": [171, 175], "start_point": {"row": 38, "column": 35}, "end_point": {"row": 38, "column": 50}}, {"id": 171, "type": "type_descriptor", "text": "char *", "parent": 170, "children": [172, 173], "start_point": {"row": 38, "column": 36}, "end_point": {"row": 38, "column": 42}}, {"id": 172, "type": "primitive_type", "text": "char", "parent": 171, "children": [], "start_point": {"row": 38, "column": 36}, "end_point": {"row": 38, "column": 40}}, {"id": 173, "type": "abstract_pointer_declarator", "text": "*", "parent": 171, "children": [174], "start_point": {"row": 38, "column": 41}, "end_point": {"row": 38, "column": 42}}, {"id": 174, "type": "*", "text": "*", "parent": 173, "children": [], "start_point": {"row": 38, "column": 41}, "end_point": {"row": 38, "column": 42}}, {"id": 175, "type": "parenthesized_expression", "text": "(&data)", "parent": 170, "children": [176], "start_point": {"row": 38, "column": 43}, "end_point": {"row": 38, "column": 50}}, {"id": 176, "type": "pointer_expression", "text": "&data", "parent": 175, "children": [177], "start_point": {"row": 38, "column": 44}, "end_point": {"row": 38, "column": 49}}, {"id": 177, "type": "identifier", "text": "data", "parent": 176, "children": [], "start_point": {"row": 38, "column": 45}, "end_point": {"row": 38, "column": 49}}, {"id": 178, "type": "sizeof_expression", "text": "sizeof(void *)", "parent": 166, "children": [179], "start_point": {"row": 38, "column": 52}, "end_point": {"row": 38, "column": 66}}, {"id": 179, "type": "type_descriptor", "text": "void *", "parent": 178, "children": [180, 181], "start_point": {"row": 38, "column": 59}, "end_point": {"row": 38, "column": 65}}, {"id": 180, "type": "primitive_type", "text": "void", "parent": 179, "children": [], "start_point": {"row": 38, "column": 59}, "end_point": {"row": 38, "column": 63}}, {"id": 181, "type": "abstract_pointer_declarator", "text": "*", "parent": 179, "children": [182], "start_point": {"row": 38, "column": 64}, "end_point": {"row": 38, "column": 65}}, {"id": 182, "type": "*", "text": "*", "parent": 181, "children": [], "start_point": {"row": 38, "column": 64}, "end_point": {"row": 38, "column": 65}}, {"id": 183, "type": "return_statement", "text": "return true;", "parent": 124, "children": [184], "start_point": {"row": 39, "column": 4}, "end_point": {"row": 39, "column": 16}}, {"id": 184, "type": "true", "text": "true", "parent": 183, "children": [], "start_point": {"row": 39, "column": 11}, "end_point": {"row": 39, "column": 15}}, {"id": 185, "type": "function_definition", "text": "inline void *ringbuf_get(RingBuffer * rb)\n{\n if (ringbuf_count(rb) == 0) {\n return NULL;\n }\n void *data;\n jack_ringbuffer_read(rb->buf, (char *)(&data), sizeof(void *));\n return data;\n}", "parent": null, "children": [186, 188, 189], "start_point": {"row": 42, "column": 0}, "end_point": {"row": 50, "column": 1}}, {"id": 186, "type": "storage_class_specifier", "text": "inline", "parent": 185, "children": [187], "start_point": {"row": 42, "column": 0}, "end_point": {"row": 42, "column": 6}}, {"id": 187, "type": "inline", "text": "inline", "parent": 186, "children": [], "start_point": {"row": 42, "column": 0}, "end_point": {"row": 42, "column": 6}}, {"id": 188, "type": "primitive_type", "text": "void", "parent": 185, "children": [], "start_point": {"row": 42, "column": 7}, "end_point": {"row": 42, "column": 11}}, {"id": 189, "type": "pointer_declarator", "text": "*ringbuf_get(RingBuffer * rb)", "parent": 185, "children": [190, 191], "start_point": {"row": 42, "column": 12}, "end_point": {"row": 42, "column": 41}}, {"id": 190, "type": "*", "text": "*", "parent": 189, "children": [], "start_point": {"row": 42, "column": 12}, "end_point": {"row": 42, "column": 13}}, {"id": 191, "type": "function_declarator", "text": "ringbuf_get(RingBuffer * rb)", "parent": 189, "children": [192, 193], "start_point": {"row": 42, "column": 13}, "end_point": {"row": 42, "column": 41}}, {"id": 192, "type": "identifier", "text": "ringbuf_get", "parent": 191, "children": [], "start_point": {"row": 42, "column": 13}, "end_point": {"row": 42, "column": 24}}, {"id": 193, "type": "parameter_list", "text": "(RingBuffer * rb)", "parent": 191, "children": [194], "start_point": {"row": 42, "column": 24}, "end_point": {"row": 42, "column": 41}}, {"id": 194, "type": "parameter_declaration", "text": "RingBuffer * rb", "parent": 193, "children": [195, 196], "start_point": {"row": 42, "column": 25}, "end_point": {"row": 42, "column": 40}}, {"id": 195, "type": "type_identifier", "text": "RingBuffer", "parent": 194, "children": [], "start_point": {"row": 42, "column": 25}, "end_point": {"row": 42, "column": 35}}, {"id": 196, "type": "pointer_declarator", "text": "* rb", "parent": 194, "children": [197, 198], "start_point": {"row": 42, "column": 36}, "end_point": {"row": 42, "column": 40}}, {"id": 197, "type": "*", "text": "*", "parent": 196, "children": [], "start_point": {"row": 42, "column": 36}, "end_point": {"row": 42, "column": 37}}, {"id": 198, "type": "identifier", "text": "rb", "parent": 196, "children": [], "start_point": {"row": 42, "column": 38}, "end_point": {"row": 42, "column": 40}}, {"id": 199, "type": "if_statement", "text": "if (ringbuf_count(rb) == 0) {\n return NULL;\n }", "parent": 185, "children": [200], "start_point": {"row": 44, "column": 4}, "end_point": {"row": 46, "column": 5}}, {"id": 200, "type": "parenthesized_expression", "text": "(ringbuf_count(rb) == 0)", "parent": 199, "children": [201], "start_point": {"row": 44, "column": 7}, "end_point": {"row": 44, "column": 31}}, {"id": 201, "type": "binary_expression", "text": "ringbuf_count(rb) == 0", "parent": 200, "children": [202, 206, 207], "start_point": {"row": 44, "column": 8}, "end_point": {"row": 44, "column": 30}}, {"id": 202, "type": "call_expression", "text": "ringbuf_count(rb)", "parent": 201, "children": [203, 204], "start_point": {"row": 44, "column": 8}, "end_point": {"row": 44, "column": 25}}, {"id": 203, "type": "identifier", "text": "ringbuf_count", "parent": 202, "children": [], "start_point": {"row": 44, "column": 8}, "end_point": {"row": 44, "column": 21}}, {"id": 204, "type": "argument_list", "text": "(rb)", "parent": 202, "children": [205], "start_point": {"row": 44, "column": 21}, "end_point": {"row": 44, "column": 25}}, {"id": 205, "type": "identifier", "text": "rb", "parent": 204, "children": [], "start_point": {"row": 44, "column": 22}, "end_point": {"row": 44, "column": 24}}, {"id": 206, "type": "==", "text": "==", "parent": 201, "children": [], "start_point": {"row": 44, "column": 26}, "end_point": {"row": 44, "column": 28}}, {"id": 207, "type": "number_literal", "text": "0", "parent": 201, "children": [], "start_point": {"row": 44, "column": 29}, "end_point": {"row": 44, "column": 30}}, {"id": 208, "type": "return_statement", "text": "return NULL;", "parent": 199, "children": [209], "start_point": {"row": 45, "column": 8}, "end_point": {"row": 45, "column": 20}}, {"id": 209, "type": "null", "text": "NULL", "parent": 208, "children": [210], "start_point": {"row": 45, "column": 15}, "end_point": {"row": 45, "column": 19}}, {"id": 210, "type": "NULL", "text": "NULL", "parent": 209, "children": [], "start_point": {"row": 45, "column": 15}, "end_point": {"row": 45, "column": 19}}, {"id": 211, "type": "declaration", "text": "void *data;", "parent": 185, "children": [212, 213], "start_point": {"row": 47, "column": 4}, "end_point": {"row": 47, "column": 15}}, {"id": 212, "type": "primitive_type", "text": "void", "parent": 211, "children": [], "start_point": {"row": 47, "column": 4}, "end_point": {"row": 47, "column": 8}}, {"id": 213, "type": "pointer_declarator", "text": "*data", "parent": 211, "children": [214, 215], "start_point": {"row": 47, "column": 9}, "end_point": {"row": 47, "column": 14}}, {"id": 214, "type": "*", "text": "*", "parent": 213, "children": [], "start_point": {"row": 47, "column": 9}, "end_point": {"row": 47, "column": 10}}, {"id": 215, "type": "identifier", "text": "data", "parent": 213, "children": [], "start_point": {"row": 47, "column": 10}, "end_point": {"row": 47, "column": 14}}, {"id": 216, "type": "call_expression", "text": "jack_ringbuffer_read(rb->buf, (char *)(&data), sizeof(void *))", "parent": 185, "children": [217, 218], "start_point": {"row": 48, "column": 4}, "end_point": {"row": 48, "column": 66}}, {"id": 217, "type": "identifier", "text": "jack_ringbuffer_read", "parent": 216, "children": [], "start_point": {"row": 48, "column": 4}, "end_point": {"row": 48, "column": 24}}, {"id": 218, "type": "argument_list", "text": "(rb->buf, (char *)(&data), sizeof(void *))", "parent": 216, "children": [219, 222, 230], "start_point": {"row": 48, "column": 24}, "end_point": {"row": 48, "column": 66}}, {"id": 219, "type": "field_expression", "text": "rb->buf", "parent": 218, "children": [220, 221], "start_point": {"row": 48, "column": 25}, "end_point": {"row": 48, "column": 32}}, {"id": 220, "type": "identifier", "text": "rb", "parent": 219, "children": [], "start_point": {"row": 48, "column": 25}, "end_point": {"row": 48, "column": 27}}, {"id": 221, "type": "field_identifier", "text": "buf", "parent": 219, "children": [], "start_point": {"row": 48, "column": 29}, "end_point": {"row": 48, "column": 32}}, {"id": 222, "type": "cast_expression", "text": "(char *)(&data)", "parent": 218, "children": [223, 227], "start_point": {"row": 48, "column": 34}, "end_point": {"row": 48, "column": 49}}, {"id": 223, "type": "type_descriptor", "text": "char *", "parent": 222, "children": [224, 225], "start_point": {"row": 48, "column": 35}, "end_point": {"row": 48, "column": 41}}, {"id": 224, "type": "primitive_type", "text": "char", "parent": 223, "children": [], "start_point": {"row": 48, "column": 35}, "end_point": {"row": 48, "column": 39}}, {"id": 225, "type": "abstract_pointer_declarator", "text": "*", "parent": 223, "children": [226], "start_point": {"row": 48, "column": 40}, "end_point": {"row": 48, "column": 41}}, {"id": 226, "type": "*", "text": "*", "parent": 225, "children": [], "start_point": {"row": 48, "column": 40}, "end_point": {"row": 48, "column": 41}}, {"id": 227, "type": "parenthesized_expression", "text": "(&data)", "parent": 222, "children": [228], "start_point": {"row": 48, "column": 42}, "end_point": {"row": 48, "column": 49}}, {"id": 228, "type": "pointer_expression", "text": "&data", "parent": 227, "children": [229], "start_point": {"row": 48, "column": 43}, "end_point": {"row": 48, "column": 48}}, {"id": 229, "type": "identifier", "text": "data", "parent": 228, "children": [], "start_point": {"row": 48, "column": 44}, "end_point": {"row": 48, "column": 48}}, {"id": 230, "type": "sizeof_expression", "text": "sizeof(void *)", "parent": 218, "children": [231], "start_point": {"row": 48, "column": 51}, "end_point": {"row": 48, "column": 65}}, {"id": 231, "type": "type_descriptor", "text": "void *", "parent": 230, "children": [232, 233], "start_point": {"row": 48, "column": 58}, "end_point": {"row": 48, "column": 64}}, {"id": 232, "type": "primitive_type", "text": "void", "parent": 231, "children": [], "start_point": {"row": 48, "column": 58}, "end_point": {"row": 48, "column": 62}}, {"id": 233, "type": "abstract_pointer_declarator", "text": "*", "parent": 231, "children": [234], "start_point": {"row": 48, "column": 63}, "end_point": {"row": 48, "column": 64}}, {"id": 234, "type": "*", "text": "*", "parent": 233, "children": [], "start_point": {"row": 48, "column": 63}, "end_point": {"row": 48, "column": 64}}, {"id": 235, "type": "return_statement", "text": "return data;", "parent": 185, "children": [236], "start_point": {"row": 49, "column": 4}, "end_point": {"row": 49, "column": 16}}, {"id": 236, "type": "identifier", "text": "data", "parent": 235, "children": [], "start_point": {"row": 49, "column": 11}, "end_point": {"row": 49, "column": 15}}]}, "node_categories": {"declarations": {"functions": [17, 21, 64, 66, 84, 86, 98, 102, 124, 128, 185, 191], "variables": [9, 12, 24, 27, 69, 89, 105, 131, 136, 141, 194, 211], "classes": [6, 7, 99, 125, 186], "imports": [0, 1, 3, 4], "modules": [], "enums": []}, "statements": {"expressions": [34, 37, 38, 41, 47, 51, 54, 55, 74, 77, 80, 95, 111, 112, 115, 119, 146, 149, 153, 154, 157, 164, 167, 170, 175, 176, 178, 200, 201, 202, 216, 219, 222, 227, 228, 230], "assignments": [40, 46], "loops": [], "conditionals": [8, 11, 13, 16, 18, 22, 26, 28, 32, 35, 39, 42, 43, 45, 48, 49, 52, 61, 63, 67, 70, 73, 75, 78, 79, 81, 83, 87, 90, 93, 96, 97, 103, 106, 109, 113, 116, 117, 129, 132, 135, 140, 144, 147, 150, 151, 152, 155, 165, 168, 169, 177, 192, 195, 198, 199, 203, 205, 215, 217, 220, 221, 229, 236], "returns": [62, 94, 110, 162, 183, 208, 235], "exceptions": []}, "expressions": {"calls": [], "literals": [2, 5, 207], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [{"node_id": 17, "universal_type": "function", "name": "unknown", "text_snippet": "RingBuffer *ringbuf_new(int size)\n{\n RingBuffer *rb = malloc_exit(sizeof(RingBuffer));\n rb->si"}, {"node_id": 21, "universal_type": "function", "name": "unknown", "text_snippet": "ringbuf_new(int size)"}, {"node_id": 64, "universal_type": "function", "name": "ringbuf_free", "text_snippet": "void ringbuf_free(RingBuffer * rb)\n{\n jack_ringbuffer_free(rb->buf);\n free(rb);\n}"}, {"node_id": 66, "universal_type": "function", "name": "unknown", "text_snippet": "ringbuf_free(RingBuffer * rb)"}, {"node_id": 84, "universal_type": "function", "name": "ringbuf_size", "text_snippet": "int ringbuf_size(RingBuffer * rb)\n{\n return rb->size;\n}"}, {"node_id": 86, "universal_type": "function", "name": "unknown", "text_snippet": "ringbuf_size(RingBuffer * rb)"}, {"node_id": 98, "universal_type": "function", "name": "ringbuf_count", "text_snippet": "inline int ringbuf_count(RingBuffer * rb)\n{\n return jack_ringbuffer_read_space(rb->buf) / sizeof("}, {"node_id": 102, "universal_type": "function", "name": "unknown", "text_snippet": "ringbuf_count(RingBuffer * rb)"}, {"node_id": 124, "universal_type": "function", "name": "ringbuf_put", "text_snippet": "inline bool ringbuf_put(RingBuffer * rb, void *data)\n{\n int writeSpace = jack_ringbuffer_write_sp"}, {"node_id": 128, "universal_type": "function", "name": "*data)", "text_snippet": "ringbuf_put(RingBuffer * rb, void *data)"}, {"node_id": 185, "universal_type": "function", "name": "*ringbuf_get", "text_snippet": "inline void *ringbuf_get(RingBuffer * rb)\n{\n if (ringbuf_count(rb) == 0) {\n return NULL;\n "}, {"node_id": 191, "universal_type": "function", "name": "unknown", "text_snippet": "ringbuf_get(RingBuffer * rb)"}], "class_declarations": [{"node_id": 6, "universal_type": "class", "name": "RingBuffer", "text_snippet": "struct RingBuffer {\n int size;\n jack_ringbuffer_t *buf;\n}"}, {"node_id": 7, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 99, "universal_type": "class", "name": "unknown", "text_snippet": "inline"}, {"node_id": 125, "universal_type": "class", "name": "unknown", "text_snippet": "inline"}, {"node_id": 186, "universal_type": "class", "name": "unknown", "text_snippet": "inline"}], "import_statements": [{"node_id": 0, "text": "#include \"ringbuffer.h\"\n"}, {"node_id": 1, "text": "#include"}, {"node_id": 3, "text": "#include \"mem.h\"\n"}, {"node_id": 4, "text": "#include"}]}, "original_source_code": "#include \"ringbuffer.h\"\n#include \"mem.h\"\n\nstruct RingBuffer {\n int size;\n jack_ringbuffer_t *buf;\n};\n\nRingBuffer *ringbuf_new(int size)\n{\n RingBuffer *rb = malloc_exit(sizeof(RingBuffer));\n rb->size = size;\n rb->buf = jack_ringbuffer_create(sizeof(void *) * size);\n return rb;\n}\n\nvoid ringbuf_free(RingBuffer * rb)\n{\n jack_ringbuffer_free(rb->buf);\n free(rb);\n}\n\nint ringbuf_size(RingBuffer * rb)\n{\n return rb->size;\n}\n\ninline int ringbuf_count(RingBuffer * rb)\n{\n return jack_ringbuffer_read_space(rb->buf) / sizeof(void *);\n}\n\ninline bool ringbuf_put(RingBuffer * rb, void *data)\n{\n int writeSpace = jack_ringbuffer_write_space(rb->buf);\n if (writeSpace < sizeof(void *)) {\n return false;\n }\n jack_ringbuffer_write(rb->buf, (char *)(&data), sizeof(void *));\n return true;\n}\n\ninline void *ringbuf_get(RingBuffer * rb)\n{\n if (ringbuf_count(rb) == 0) {\n return NULL;\n }\n void *data;\n jack_ringbuffer_read(rb->buf, (char *)(&data), sizeof(void *));\n return data;\n}\n"}
80,073
c
/* * Copyright (c) Facebook, Inc. and its affiliates. * * 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 <folly/io/async/AsyncSSLSocket.h> #include <folly/io/async/SSLContext.h> #include <folly/ssl/OpenSSLPtrTypes.h> #include <wangle/client/ssl/SSLSessionCacheUtils.h> #include <wangle/ssl/SSLUtil.h> #include <openssl/ssl.h> #ifdef OPENSSL_NO_TLSEXT #define OPENSSL_TICKETS 0 #else #define OPENSSL_TICKETS OPENSSL_VERSION_NUMBER >= 0x1000105fL #endif namespace wangle { /** * Callbacks related to SSL session cache * * This class contains three methods, setSSLSession() to store existing SSL * session data to cache, getSSLSession() to retreive cached session * data in cache, and removeSSLSession() to remove session data from cache. */ class SSLSessionCallbacks { public: /** * Store the session data of the specified identity in cache. Note that the * implementation must make it's own memory copy of the session data to put * into the cache. */ virtual void setSSLSession( const std::string& identity, folly::ssl::SSLSessionUniquePtr session) noexcept = 0; /** * Return a SSL session if the cache contained session information for the * specified identity. It is the caller's responsibility to decrement the * reference count of the returned session pointer. */ virtual folly::ssl::SSLSessionUniquePtr getSSLSession( const std::string& identity) const noexcept = 0; /** * Remove session data of the specified identity from cache. Return true if * there was session data associated with the identity before removal, or * false otherwise. */ virtual bool removeSSLSession(const std::string& identity) noexcept = 0; /** * Return true if the underlying cache supports persistence */ virtual bool supportsPersistence() const noexcept { return false; } virtual size_t size() const { return 0; } virtual ~SSLSessionCallbacks() {} /** * Sets up SSL Session callbacks on a context. The application is * responsible for detaching the callbacks from the context. */ static void attachCallbacksToContext( folly::SSLContext* context, SSLSessionCallbacks* callbacks); /** * Detach the passed in callbacks from the context. If the callbacks are not * set on the context, it is unchanged. */ static void detachCallbacksFromContext( folly::SSLContext* context, SSLSessionCallbacks* callbacks); static SSLSessionCallbacks* getCacheFromContext(SSL_CTX* ctx); protected: /** * Called by ContextSessionCallbacks::onNewSession prior to insertion * into the session cache. */ virtual void onNewSession(SSL*, SSL_SESSION*) {} private: struct ContextSessionCallbacks : public folly::SSLContext::SessionLifecycleCallbacks { void onNewSession(SSL* ssl, folly::ssl::SSLSessionUniquePtr sessionPtr) override; }; static std::string getSessionKeyFromSSL(SSL* ssl); static void removeSessionCallback(SSL_CTX* ctx, SSL_SESSION* session); static int32_t& getCacheIndex() { static int32_t sExDataIndex = -1; return sExDataIndex; } }; } // namespace wangle
34.59
103
(translation_unit) "/*\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * Licensed under the Apache License, Version 2.0 (the "License");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an "AS IS" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n#pragma once\n\n#include <folly/io/async/AsyncSSLSocket.h>\n#include <folly/io/async/SSLContext.h>\n#include <folly/ssl/OpenSSLPtrTypes.h>\n#include <wangle/client/ssl/SSLSessionCacheUtils.h>\n#include <wangle/ssl/SSLUtil.h>\n\n#include <openssl/ssl.h>\n\n#ifdef OPENSSL_NO_TLSEXT\n#define OPENSSL_TICKETS 0\n#else\n#define OPENSSL_TICKETS OPENSSL_VERSION_NUMBER >= 0x1000105fL\n#endif\n\nnamespace wangle {\n\n/**\n * Callbacks related to SSL session cache\n *\n * This class contains three methods, setSSLSession() to store existing SSL\n * session data to cache, getSSLSession() to retreive cached session\n * data in cache, and removeSSLSession() to remove session data from cache.\n */\nclass SSLSessionCallbacks {\n public:\n /**\n * Store the session data of the specified identity in cache. Note that the\n * implementation must make it's own memory copy of the session data to put\n * into the cache.\n */\n virtual void setSSLSession(\n const std::string& identity,\n folly::ssl::SSLSessionUniquePtr session) noexcept = 0;\n\n /**\n * Return a SSL session if the cache contained session information for the\n * specified identity. It is the caller's responsibility to decrement the\n * reference count of the returned session pointer.\n */\n virtual folly::ssl::SSLSessionUniquePtr getSSLSession(\n const std::string& identity) const noexcept = 0;\n\n /**\n * Remove session data of the specified identity from cache. Return true if\n * there was session data associated with the identity before removal, or\n * false otherwise.\n */\n virtual bool removeSSLSession(const std::string& identity) noexcept = 0;\n\n /**\n * Return true if the underlying cache supports persistence\n */\n virtual bool supportsPersistence() const noexcept {\n return false;\n }\n\n virtual size_t size() const {\n return 0;\n }\n\n virtual ~SSLSessionCallbacks() {}\n\n /**\n * Sets up SSL Session callbacks on a context. The application is\n * responsible for detaching the callbacks from the context.\n */\n static void attachCallbacksToContext(\n folly::SSLContext* context,\n SSLSessionCallbacks* callbacks);\n\n /**\n * Detach the passed in callbacks from the context. If the callbacks are not\n * set on the context, it is unchanged.\n */\n static void detachCallbacksFromContext(\n folly::SSLContext* context,\n SSLSessionCallbacks* callbacks);\n\n static SSLSessionCallbacks* getCacheFromContext(SSL_CTX* ctx);\n\n protected:\n /**\n * Called by ContextSessionCallbacks::onNewSession prior to insertion\n * into the session cache.\n */\n virtual void onNewSession(SSL*, SSL_SESSION*) {}\n\n private:\n struct ContextSessionCallbacks\n : public folly::SSLContext::SessionLifecycleCallbacks {\n void onNewSession(SSL* ssl, folly::ssl::SSLSessionUniquePtr sessionPtr)\n override;\n };\n\n static std::string getSessionKeyFromSSL(SSL* ssl);\n\n static void removeSessionCallback(SSL_CTX* ctx, SSL_SESSION* session);\n\n static int32_t& getCacheIndex() {\n static int32_t sExDataIndex = -1;\n return sExDataIndex;\n }\n};\n\n} // namespace wangle\n" (comment) "/*\n * Copyright (c) Facebook, Inc. and its affiliates.\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 <folly/io/async/AsyncSSLSocket.h>\n" (#include) "#include" (system_lib_string) "<folly/io/async/AsyncSSLSocket.h>" (preproc_include) "#include <folly/io/async/SSLContext.h>\n" (#include) "#include" (system_lib_string) "<folly/io/async/SSLContext.h>" (preproc_include) "#include <folly/ssl/OpenSSLPtrTypes.h>\n" (#include) "#include" (system_lib_string) "<folly/ssl/OpenSSLPtrTypes.h>" (preproc_include) "#include <wangle/client/ssl/SSLSessionCacheUtils.h>\n" (#include) "#include" (system_lib_string) "<wangle/client/ssl/SSLSessionCacheUtils.h>" (preproc_include) "#include <wangle/ssl/SSLUtil.h>\n" (#include) "#include" (system_lib_string) "<wangle/ssl/SSLUtil.h>" (preproc_include) "#include <openssl/ssl.h>\n" (#include) "#include" (system_lib_string) "<openssl/ssl.h>" (preproc_ifdef) "#ifdef OPENSSL_NO_TLSEXT\n#define OPENSSL_TICKETS 0\n#else\n#define OPENSSL_TICKETS OPENSSL_VERSION_NUMBER >= 0x1000105fL\n#endif" (#ifdef) "#ifdef" (identifier) "OPENSSL_NO_TLSEXT" (preproc_def) "#define OPENSSL_TICKETS 0\n" (#define) "#define" (identifier) "OPENSSL_TICKETS" (preproc_arg) "0" (preproc_else) "#else\n#define OPENSSL_TICKETS OPENSSL_VERSION_NUMBER >= 0x1000105fL\n" (#else) "#else" (preproc_def) "#define OPENSSL_TICKETS OPENSSL_VERSION_NUMBER >= 0x1000105fL\n" (#define) "#define" (identifier) "OPENSSL_TICKETS" (preproc_arg) "OPENSSL_VERSION_NUMBER >= 0x1000105fL" (#endif) "#endif" (function_definition) "namespace wangle {\n\n/**\n * Callbacks related to SSL session cache\n *\n * This class contains three methods, setSSLSession() to store existing SSL\n * session data to cache, getSSLSession() to retreive cached session\n * data in cache, and removeSSLSession() to remove session data from cache.\n */\nclass SSLSessionCallbacks {\n public:\n /**\n * Store the session data of the specified identity in cache. Note that the\n * implementation must make it's own memory copy of the session data to put\n * into the cache.\n */\n virtual void setSSLSession(\n const std::string& identity,\n folly::ssl::SSLSessionUniquePtr session) noexcept = 0;\n\n /**\n * Return a SSL session if the cache contained session information for the\n * specified identity. It is the caller's responsibility to decrement the\n * reference count of the returned session pointer.\n */\n virtual folly::ssl::SSLSessionUniquePtr getSSLSession(\n const std::string& identity) const noexcept = 0;\n\n /**\n * Remove session data of the specified identity from cache. Return true if\n * there was session data associated with the identity before removal, or\n * false otherwise.\n */\n virtual bool removeSSLSession(const std::string& identity) noexcept = 0;\n\n /**\n * Return true if the underlying cache supports persistence\n */\n virtual bool supportsPersistence() const noexcept {\n return false;\n }\n\n virtual size_t size() const {\n return 0;\n }\n\n virtual ~SSLSessionCallbacks() {}\n\n /**\n * Sets up SSL Session callbacks on a context. The application is\n * responsible for detaching the callbacks from the context.\n */\n static void attachCallbacksToContext(\n folly::SSLContext* context,\n SSLSessionCallbacks* callbacks);\n\n /**\n * Detach the passed in callbacks from the context. If the callbacks are not\n * set on the context, it is unchanged.\n */\n static void detachCallbacksFromContext(\n folly::SSLContext* context,\n SSLSessionCallbacks* callbacks);\n\n static SSLSessionCallbacks* getCacheFromContext(SSL_CTX* ctx);\n\n protected:\n /**\n * Called by ContextSessionCallbacks::onNewSession prior to insertion\n * into the session cache.\n */\n virtual void onNewSession(SSL*, SSL_SESSION*) {}\n\n private:\n struct ContextSessionCallbacks\n : public folly::SSLContext::SessionLifecycleCallbacks {\n void onNewSession(SSL* ssl, folly::ssl::SSLSessionUniquePtr sessionPtr)\n override;\n };\n\n static std::string getSessionKeyFromSSL(SSL* ssl);\n\n static void removeSessionCallback(SSL_CTX* ctx, SSL_SESSION* session);\n\n static int32_t& getCacheIndex() {\n static int32_t sExDataIndex = -1;\n return sExDataIndex;\n }\n};\n\n}" (type_identifier) "namespace" (identifier) "wangle" (compound_statement) "{\n\n/**\n * Callbacks related to SSL session cache\n *\n * This class contains three methods, setSSLSession() to store existing SSL\n * session data to cache, getSSLSession() to retreive cached session\n * data in cache, and removeSSLSession() to remove session data from cache.\n */\nclass SSLSessionCallbacks {\n public:\n /**\n * Store the session data of the specified identity in cache. Note that the\n * implementation must make it's own memory copy of the session data to put\n * into the cache.\n */\n virtual void setSSLSession(\n const std::string& identity,\n folly::ssl::SSLSessionUniquePtr session) noexcept = 0;\n\n /**\n * Return a SSL session if the cache contained session information for the\n * specified identity. It is the caller's responsibility to decrement the\n * reference count of the returned session pointer.\n */\n virtual folly::ssl::SSLSessionUniquePtr getSSLSession(\n const std::string& identity) const noexcept = 0;\n\n /**\n * Remove session data of the specified identity from cache. Return true if\n * there was session data associated with the identity before removal, or\n * false otherwise.\n */\n virtual bool removeSSLSession(const std::string& identity) noexcept = 0;\n\n /**\n * Return true if the underlying cache supports persistence\n */\n virtual bool supportsPersistence() const noexcept {\n return false;\n }\n\n virtual size_t size() const {\n return 0;\n }\n\n virtual ~SSLSessionCallbacks() {}\n\n /**\n * Sets up SSL Session callbacks on a context. The application is\n * responsible for detaching the callbacks from the context.\n */\n static void attachCallbacksToContext(\n folly::SSLContext* context,\n SSLSessionCallbacks* callbacks);\n\n /**\n * Detach the passed in callbacks from the context. If the callbacks are not\n * set on the context, it is unchanged.\n */\n static void detachCallbacksFromContext(\n folly::SSLContext* context,\n SSLSessionCallbacks* callbacks);\n\n static SSLSessionCallbacks* getCacheFromContext(SSL_CTX* ctx);\n\n protected:\n /**\n * Called by ContextSessionCallbacks::onNewSession prior to insertion\n * into the session cache.\n */\n virtual void onNewSession(SSL*, SSL_SESSION*) {}\n\n private:\n struct ContextSessionCallbacks\n : public folly::SSLContext::SessionLifecycleCallbacks {\n void onNewSession(SSL* ssl, folly::ssl::SSLSessionUniquePtr sessionPtr)\n override;\n };\n\n static std::string getSessionKeyFromSSL(SSL* ssl);\n\n static void removeSessionCallback(SSL_CTX* ctx, SSL_SESSION* session);\n\n static int32_t& getCacheIndex() {\n static int32_t sExDataIndex = -1;\n return sExDataIndex;\n }\n};\n\n}" ({) "{" (comment) "/**\n * Callbacks related to SSL session cache\n *\n * This class contains three methods, setSSLSession() to store existing SSL\n * session data to cache, getSSLSession() to retreive cached session\n * data in cache, and removeSSLSession() to remove session data from cache.\n */" (function_definition) "class SSLSessionCallbacks {\n public:\n /**\n * Store the session data of the specified identity in cache. Note that the\n * implementation must make it's own memory copy of the session data to put\n * into the cache.\n */\n virtual void setSSLSession(\n const std::string& identity,\n folly::ssl::SSLSessionUniquePtr session) noexcept = 0;\n\n /**\n * Return a SSL session if the cache contained session information for the\n * specified identity. It is the caller's responsibility to decrement the\n * reference count of the returned session pointer.\n */\n virtual folly::ssl::SSLSessionUniquePtr getSSLSession(\n const std::string& identity) const noexcept = 0;\n\n /**\n * Remove session data of the specified identity from cache. Return true if\n * there was session data associated with the identity before removal, or\n * false otherwise.\n */\n virtual bool removeSSLSession(const std::string& identity) noexcept = 0;\n\n /**\n * Return true if the underlying cache supports persistence\n */\n virtual bool supportsPersistence() const noexcept {\n return false;\n }\n\n virtual size_t size() const {\n return 0;\n }\n\n virtual ~SSLSessionCallbacks() {}\n\n /**\n * Sets up SSL Session callbacks on a context. The application is\n * responsible for detaching the callbacks from the context.\n */\n static void attachCallbacksToContext(\n folly::SSLContext* context,\n SSLSessionCallbacks* callbacks);\n\n /**\n * Detach the passed in callbacks from the context. If the callbacks are not\n * set on the context, it is unchanged.\n */\n static void detachCallbacksFromContext(\n folly::SSLContext* context,\n SSLSessionCallbacks* callbacks);\n\n static SSLSessionCallbacks* getCacheFromContext(SSL_CTX* ctx);\n\n protected:\n /**\n * Called by ContextSessionCallbacks::onNewSession prior to insertion\n * into the session cache.\n */\n virtual void onNewSession(SSL*, SSL_SESSION*) {}\n\n private:\n struct ContextSessionCallbacks\n : public folly::SSLContext::SessionLifecycleCallbacks {\n void onNewSession(SSL* ssl, folly::ssl::SSLSessionUniquePtr sessionPtr)\n override;\n };\n\n static std::string getSessionKeyFromSSL(SSL* ssl);\n\n static void removeSessionCallback(SSL_CTX* ctx, SSL_SESSION* session);\n\n static int32_t& getCacheIndex() {\n static int32_t sExDataIndex = -1;\n return sExDataIndex;\n }\n}" (type_identifier) "class" (identifier) "SSLSessionCallbacks" (compound_statement) "{\n public:\n /**\n * Store the session data of the specified identity in cache. Note that the\n * implementation must make it's own memory copy of the session data to put\n * into the cache.\n */\n virtual void setSSLSession(\n const std::string& identity,\n folly::ssl::SSLSessionUniquePtr session) noexcept = 0;\n\n /**\n * Return a SSL session if the cache contained session information for the\n * specified identity. It is the caller's responsibility to decrement the\n * reference count of the returned session pointer.\n */\n virtual folly::ssl::SSLSessionUniquePtr getSSLSession(\n const std::string& identity) const noexcept = 0;\n\n /**\n * Remove session data of the specified identity from cache. Return true if\n * there was session data associated with the identity before removal, or\n * false otherwise.\n */\n virtual bool removeSSLSession(const std::string& identity) noexcept = 0;\n\n /**\n * Return true if the underlying cache supports persistence\n */\n virtual bool supportsPersistence() const noexcept {\n return false;\n }\n\n virtual size_t size() const {\n return 0;\n }\n\n virtual ~SSLSessionCallbacks() {}\n\n /**\n * Sets up SSL Session callbacks on a context. The application is\n * responsible for detaching the callbacks from the context.\n */\n static void attachCallbacksToContext(\n folly::SSLContext* context,\n SSLSessionCallbacks* callbacks);\n\n /**\n * Detach the passed in callbacks from the context. If the callbacks are not\n * set on the context, it is unchanged.\n */\n static void detachCallbacksFromContext(\n folly::SSLContext* context,\n SSLSessionCallbacks* callbacks);\n\n static SSLSessionCallbacks* getCacheFromContext(SSL_CTX* ctx);\n\n protected:\n /**\n * Called by ContextSessionCallbacks::onNewSession prior to insertion\n * into the session cache.\n */\n virtual void onNewSession(SSL*, SSL_SESSION*) {}\n\n private:\n struct ContextSessionCallbacks\n : public folly::SSLContext::SessionLifecycleCallbacks {\n void onNewSession(SSL* ssl, folly::ssl::SSLSessionUniquePtr sessionPtr)\n override;\n };\n\n static std::string getSessionKeyFromSSL(SSL* ssl);\n\n static void removeSessionCallback(SSL_CTX* ctx, SSL_SESSION* session);\n\n static int32_t& getCacheIndex() {\n static int32_t sExDataIndex = -1;\n return sExDataIndex;\n }\n}" ({) "{" (labeled_statement) "public:\n /**\n * Store the session data of the specified identity in cache. Note that the\n * implementation must make it's own memory copy of the session data to put\n * into the cache.\n */\n virtual void setSSLSession(\n const std::string& identity,\n folly::ssl::SSLSessionUniquePtr session) noexcept = 0;" (statement_identifier) "public" (:) ":" (comment) "/**\n * Store the session data of the specified identity in cache. Note that the\n * implementation must make it's own memory copy of the session data to put\n * into the cache.\n */" (declaration) "virtual void setSSLSession(\n const std::string& identity,\n folly::ssl::SSLSessionUniquePtr session) noexcept = 0;" (type_identifier) "virtual" (ERROR) "void" (identifier) "void" (init_declarator) "setSSLSession(\n const std::string& identity,\n folly::ssl::SSLSessionUniquePtr session) noexcept = 0" (function_declarator) "setSSLSession(\n const std::string& identity,\n folly::ssl::SSLSessionUniquePtr session) noexcept" (identifier) "setSSLSession" (parameter_list) "(\n const std::string& identity,\n folly::ssl::SSLSessionUniquePtr session)" (() "(" (parameter_declaration) "const std::string& identity" (type_qualifier) "const" (const) "const" (type_identifier) "std" (ERROR) "::string&" (:) ":" (:) ":" (identifier) "string" (&) "&" (identifier) "identity" (,) "," (parameter_declaration) "folly::ssl::SSLSessionUniquePtr session" (type_identifier) "folly" (ERROR) "::ssl::SSLSessionUniquePtr" (:) ":" (:) ":" (identifier) "ssl" (:) ":" (:) ":" (identifier) "SSLSessionUniquePtr" (identifier) "session" ()) ")" (identifier) "noexcept" (=) "=" (number_literal) "0" (;) ";" (comment) "/**\n * Return a SSL session if the cache contained session information for the\n * specified identity. It is the caller's responsibility to decrement the\n * reference count of the returned session pointer.\n */" (declaration) "virtual folly::ssl::SSLSessionUniquePtr getSSLSession(\n const std::string& identity) const noexcept = 0;" (type_identifier) "virtual" (ERROR) "folly::ssl::SSLSessionUniquePtr" (identifier) "folly" (:) ":" (:) ":" (identifier) "ssl" (:) ":" (:) ":" (identifier) "SSLSessionUniquePtr" (init_declarator) "getSSLSession(\n const std::string& identity) const noexcept = 0" (function_declarator) "getSSLSession(\n const std::string& identity) const noexcept" (identifier) "getSSLSession" (parameter_list) "(\n const std::string& identity)" (() "(" (parameter_declaration) "const std::string& identity" (type_qualifier) "const" (const) "const" (type_identifier) "std" (ERROR) "::string&" (:) ":" (:) ":" (identifier) "string" (&) "&" (identifier) "identity" ()) ")" (identifier) "const" (identifier) "noexcept" (=) "=" (number_literal) "0" (;) ";" (comment) "/**\n * Remove session data of the specified identity from cache. Return true if\n * there was session data associated with the identity before removal, or\n * false otherwise.\n */" (declaration) "virtual bool removeSSLSession(const std::string& identity) noexcept = 0;" (type_identifier) "virtual" (ERROR) "bool" (identifier) "bool" (init_declarator) "removeSSLSession(const std::string& identity) noexcept = 0" (function_declarator) "removeSSLSession(const std::string& identity) noexcept" (identifier) "removeSSLSession" (parameter_list) "(const std::string& identity)" (() "(" (parameter_declaration) "const std::string& identity" (type_qualifier) "const" (const) "const" (type_identifier) "std" (ERROR) "::string&" (:) ":" (:) ":" (identifier) "string" (&) "&" (identifier) "identity" ()) ")" (identifier) "noexcept" (=) "=" (number_literal) "0" (;) ";" (comment) "/**\n * Return true if the underlying cache supports persistence\n */" (ERROR) "virtual bool supportsPersistence() const noexcept" (type_identifier) "virtual" (ERROR) "bool" (identifier) "bool" (function_declarator) "supportsPersistence()" (identifier) "supportsPersistence" (parameter_list) "()" (() "(" ()) ")" (type_qualifier) "const" (const) "const" (type_identifier) "noexcept" (compound_statement) "{\n return false;\n }" ({) "{" (return_statement) "return false;" (return) "return" (false) "false" (;) ";" (}) "}" (ERROR) "virtual size_t size() const" (type_identifier) "virtual" (ERROR) "size_t" (identifier) "size_t" (function_declarator) "size()" (identifier) "size" (parameter_list) "()" (() "(" ()) ")" (type_qualifier) "const" (const) "const" (compound_statement) "{\n return 0;\n }" ({) "{" (return_statement) "return 0;" (return) "return" (number_literal) "0" (;) ";" (}) "}" (function_definition) "virtual ~SSLSessionCallbacks() {}" (type_identifier) "virtual" (ERROR) "~" (~) "~" (function_declarator) "SSLSessionCallbacks()" (identifier) "SSLSessionCallbacks" (parameter_list) "()" (() "(" ()) ")" (compound_statement) "{}" ({) "{" (}) "}" (comment) "/**\n * Sets up SSL Session callbacks on a context. The application is\n * responsible for detaching the callbacks from the context.\n */" (declaration) "static void attachCallbacksToContext(\n folly::SSLContext* context,\n SSLSessionCallbacks* callbacks);" (storage_class_specifier) "static" (static) "static" (primitive_type) "void" (function_declarator) "attachCallbacksToContext(\n folly::SSLContext* context,\n SSLSessionCallbacks* callbacks)" (identifier) "attachCallbacksToContext" (parameter_list) "(\n folly::SSLContext* context,\n SSLSessionCallbacks* callbacks)" (() "(" (parameter_declaration) "folly::SSLContext* context" (type_identifier) "folly" (ERROR) "::SSLContext" (:) ":" (:) ":" (identifier) "SSLContext" (pointer_declarator) "* context" (*) "*" (identifier) "context" (,) "," (parameter_declaration) "SSLSessionCallbacks* callbacks" (type_identifier) "SSLSessionCallbacks" (pointer_declarator) "* callbacks" (*) "*" (identifier) "callbacks" ()) ")" (;) ";" (comment) "/**\n * Detach the passed in callbacks from the context. If the callbacks are not\n * set on the context, it is unchanged.\n */" (declaration) "static void detachCallbacksFromContext(\n folly::SSLContext* context,\n SSLSessionCallbacks* callbacks);" (storage_class_specifier) "static" (static) "static" (primitive_type) "void" (function_declarator) "detachCallbacksFromContext(\n folly::SSLContext* context,\n SSLSessionCallbacks* callbacks)" (identifier) "detachCallbacksFromContext" (parameter_list) "(\n folly::SSLContext* context,\n SSLSessionCallbacks* callbacks)" (() "(" (parameter_declaration) "folly::SSLContext* context" (type_identifier) "folly" (ERROR) "::SSLContext" (:) ":" (:) ":" (identifier) "SSLContext" (pointer_declarator) "* context" (*) "*" (identifier) "context" (,) "," (parameter_declaration) "SSLSessionCallbacks* callbacks" (type_identifier) "SSLSessionCallbacks" (pointer_declarator) "* callbacks" (*) "*" (identifier) "callbacks" ()) ")" (;) ";" (declaration) "static SSLSessionCallbacks* getCacheFromContext(SSL_CTX* ctx);" (storage_class_specifier) "static" (static) "static" (type_identifier) "SSLSessionCallbacks" (pointer_declarator) "* getCacheFromContext(SSL_CTX* ctx)" (*) "*" (function_declarator) "getCacheFromContext(SSL_CTX* ctx)" (identifier) "getCacheFromContext" (parameter_list) "(SSL_CTX* ctx)" (() "(" (parameter_declaration) "SSL_CTX* ctx" (type_identifier) "SSL_CTX" (pointer_declarator) "* ctx" (*) "*" (identifier) "ctx" ()) ")" (;) ";" (labeled_statement) "protected:\n /**\n * Called by ContextSessionCallbacks::onNewSession prior to insertion\n * into the session cache.\n */\n virtual void onNewSession(SSL*, SSL_SESSION*) {}\n\n private:\n struct ContextSessionCallbacks\n : public" (statement_identifier) "protected" (:) ":" (comment) "/**\n * Called by ContextSessionCallbacks::onNewSession prior to insertion\n * into the session cache.\n */" (declaration) "virtual void onNewSession(SSL*, SSL_SESSION*) {}\n\n private:\n struct ContextSessionCallbacks\n : public" (type_identifier) "virtual" (ERROR) "void onNewSession(SSL*, SSL_SESSION*) {}\n\n private:\n struct ContextSessionCallbacks\n :" (identifier) "void" (function_declarator) "onNewSession(SSL*, SSL_SESSION*)" (identifier) "onNewSession" (parameter_list) "(SSL*, SSL_SESSION*)" (() "(" (parameter_declaration) "SSL*" (type_identifier) "SSL" (abstract_pointer_declarator) "*" (*) "*" (,) "," (parameter_declaration) "SSL_SESSION*" (type_identifier) "SSL_SESSION" (abstract_pointer_declarator) "*" (*) "*" ()) ")" ({) "{" (}) "}" (identifier) "private" (:) ":" (struct) "struct" (identifier) "ContextSessionCallbacks" (:) ":" (identifier) "public" (;) "" (labeled_statement) "folly::SSLContext::SessionLifecycleCallbacks {\n void onNewSession(SSL* ssl, folly::ssl::SSLSessionUniquePtr sessionPtr)\n override;\n }" (statement_identifier) "folly" (:) ":" (ERROR) ":" (:) ":" (labeled_statement) "SSLContext::SessionLifecycleCallbacks {\n void onNewSession(SSL* ssl, folly::ssl::SSLSessionUniquePtr sessionPtr)\n override;\n }" (statement_identifier) "SSLContext" (:) ":" (ERROR) ":SessionLifecycleCallbacks" (:) ":" (identifier) "SessionLifecycleCallbacks" (compound_statement) "{\n void onNewSession(SSL* ssl, folly::ssl::SSLSessionUniquePtr sessionPtr)\n override;\n }" ({) "{" (ERROR) "void onNewSession(SSL* ssl, folly::ssl::SSLSessionUniquePtr sessionPtr)\n override" (primitive_type) "void" (function_declarator) "onNewSession(SSL* ssl, folly::ssl::SSLSessionUniquePtr sessionPtr)\n override" (identifier) "onNewSession" (parameter_list) "(SSL* ssl, folly::ssl::SSLSessionUniquePtr sessionPtr)" (() "(" (parameter_declaration) "SSL* ssl" (type_identifier) "SSL" (pointer_declarator) "* ssl" (*) "*" (identifier) "ssl" (,) "," (parameter_declaration) "folly::ssl::SSLSessionUniquePtr sessionPtr" (type_identifier) "folly" (ERROR) "::ssl::SSLSessionUniquePtr" (:) ":" (:) ":" (identifier) "ssl" (:) ":" (:) ":" (identifier) "SSLSessionUniquePtr" (identifier) "sessionPtr" ()) ")" (identifier) "override" (expression_statement) ";" (;) ";" (}) "}" (expression_statement) ";" (;) ";" (declaration) "static std::string getSessionKeyFromSSL(SSL* ssl);" (storage_class_specifier) "static" (static) "static" (type_identifier) "std" (ERROR) "::string" (:) ":" (:) ":" (identifier) "string" (function_declarator) "getSessionKeyFromSSL(SSL* ssl)" (identifier) "getSessionKeyFromSSL" (parameter_list) "(SSL* ssl)" (() "(" (parameter_declaration) "SSL* ssl" (type_identifier) "SSL" (pointer_declarator) "* ssl" (*) "*" (identifier) "ssl" ()) ")" (;) ";" (declaration) "static void removeSessionCallback(SSL_CTX* ctx, SSL_SESSION* session);" (storage_class_specifier) "static" (static) "static" (primitive_type) "void" (function_declarator) "removeSessionCallback(SSL_CTX* ctx, SSL_SESSION* session)" (identifier) "removeSessionCallback" (parameter_list) "(SSL_CTX* ctx, SSL_SESSION* session)" (() "(" (parameter_declaration) "SSL_CTX* ctx" (type_identifier) "SSL_CTX" (pointer_declarator) "* ctx" (*) "*" (identifier) "ctx" (,) "," (parameter_declaration) "SSL_SESSION* session" (type_identifier) "SSL_SESSION" (pointer_declarator) "* session" (*) "*" (identifier) "session" ()) ")" (;) ";" (function_definition) "static int32_t& getCacheIndex() {\n static int32_t sExDataIndex = -1;\n return sExDataIndex;\n }" (storage_class_specifier) "static" (static) "static" (primitive_type) "int32_t" (ERROR) "&" (&) "&" (function_declarator) "getCacheIndex()" (identifier) "getCacheIndex" (parameter_list) "()" (() "(" ()) ")" (compound_statement) "{\n static int32_t sExDataIndex = -1;\n return sExDataIndex;\n }" ({) "{" (declaration) "static int32_t sExDataIndex = -1;" (storage_class_specifier) "static" (static) "static" (primitive_type) "int32_t" (init_declarator) "sExDataIndex = -1" (identifier) "sExDataIndex" (=) "=" (number_literal) "-1" (;) ";" (return_statement) "return sExDataIndex;" (return) "return" (identifier) "sExDataIndex" (;) ";" (}) "}" (}) "}" (expression_statement) ";" (;) ";" (}) "}" (comment) "// namespace wangle"
408
21
{"language": "c", "success": true, "metadata": {"lines": 103, "avg_line_length": 34.59, "nodes": 250, "errors": 0, "source_hash": "f5df488eba28968cd5ef78c8a898ddb47385f5e34a52f18c0d0c22dd78c20fe9", "categorized_nodes": 163}, "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 <folly/io/async/AsyncSSLSocket.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": "<folly/io/async/AsyncSSLSocket.h>", "parent": 3, "children": [], "start_point": {"row": 18, "column": 9}, "end_point": {"row": 18, "column": 42}}, {"id": 6, "type": "preproc_include", "text": "#include <folly/io/async/SSLContext.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": "system_lib_string", "text": "<folly/io/async/SSLContext.h>", "parent": 6, "children": [], "start_point": {"row": 19, "column": 9}, "end_point": {"row": 19, "column": 38}}, {"id": 9, "type": "preproc_include", "text": "#include <folly/ssl/OpenSSLPtrTypes.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": "system_lib_string", "text": "<folly/ssl/OpenSSLPtrTypes.h>", "parent": 9, "children": [], "start_point": {"row": 20, "column": 9}, "end_point": {"row": 20, "column": 38}}, {"id": 12, "type": "preproc_include", "text": "#include <wangle/client/ssl/SSLSessionCacheUtils.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": "system_lib_string", "text": "<wangle/client/ssl/SSLSessionCacheUtils.h>", "parent": 12, "children": [], "start_point": {"row": 21, "column": 9}, "end_point": {"row": 21, "column": 51}}, {"id": 15, "type": "preproc_include", "text": "#include <wangle/ssl/SSLUtil.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": "system_lib_string", "text": "<wangle/ssl/SSLUtil.h>", "parent": 15, "children": [], "start_point": {"row": 22, "column": 9}, "end_point": {"row": 22, "column": 31}}, {"id": 18, "type": "preproc_include", "text": "#include <openssl/ssl.h>\n", "parent": null, "children": [19, 20], "start_point": {"row": 24, "column": 0}, "end_point": {"row": 25, "column": 0}}, {"id": 19, "type": "#include", "text": "#include", "parent": 18, "children": [], "start_point": {"row": 24, "column": 0}, "end_point": {"row": 24, "column": 8}}, {"id": 20, "type": "system_lib_string", "text": "<openssl/ssl.h>", "parent": 18, "children": [], "start_point": {"row": 24, "column": 9}, "end_point": {"row": 24, "column": 24}}, {"id": 21, "type": "preproc_ifdef", "text": "#ifdef OPENSSL_NO_TLSEXT\n#define OPENSSL_TICKETS 0\n#else\n#define OPENSSL_TICKETS OPENSSL_VERSION_NUMBER >= 0x1000105fL\n#endif", "parent": null, "children": [22, 23, 24, 28, 34], "start_point": {"row": 26, "column": 0}, "end_point": {"row": 30, "column": 6}}, {"id": 22, "type": "#ifdef", "text": "#ifdef", "parent": 21, "children": [], "start_point": {"row": 26, "column": 0}, "end_point": {"row": 26, "column": 6}}, {"id": 23, "type": "identifier", "text": "OPENSSL_NO_TLSEXT", "parent": 21, "children": [], "start_point": {"row": 26, "column": 7}, "end_point": {"row": 26, "column": 24}}, {"id": 24, "type": "preproc_def", "text": "#define OPENSSL_TICKETS 0\n", "parent": 21, "children": [25, 26, 27], "start_point": {"row": 27, "column": 0}, "end_point": {"row": 28, "column": 0}}, {"id": 25, "type": "#define", "text": "#define", "parent": 24, "children": [], "start_point": {"row": 27, "column": 0}, "end_point": {"row": 27, "column": 7}}, {"id": 26, "type": "identifier", "text": "OPENSSL_TICKETS", "parent": 24, "children": [], "start_point": {"row": 27, "column": 8}, "end_point": {"row": 27, "column": 23}}, {"id": 27, "type": "preproc_arg", "text": "0", "parent": 24, "children": [], "start_point": {"row": 27, "column": 24}, "end_point": {"row": 27, "column": 25}}, {"id": 28, "type": "preproc_else", "text": "#else\n#define OPENSSL_TICKETS OPENSSL_VERSION_NUMBER >= 0x1000105fL\n", "parent": 21, "children": [29, 30], "start_point": {"row": 28, "column": 0}, "end_point": {"row": 30, "column": 0}}, {"id": 29, "type": "#else", "text": "#else", "parent": 28, "children": [], "start_point": {"row": 28, "column": 0}, "end_point": {"row": 28, "column": 5}}, {"id": 30, "type": "preproc_def", "text": "#define OPENSSL_TICKETS OPENSSL_VERSION_NUMBER >= 0x1000105fL\n", "parent": 28, "children": [31, 32, 33], "start_point": {"row": 29, "column": 0}, "end_point": {"row": 30, "column": 0}}, {"id": 31, "type": "#define", "text": "#define", "parent": 30, "children": [], "start_point": {"row": 29, "column": 0}, "end_point": {"row": 29, "column": 7}}, {"id": 32, "type": "identifier", "text": "OPENSSL_TICKETS", "parent": 30, "children": [], "start_point": {"row": 29, "column": 8}, "end_point": {"row": 29, "column": 23}}, {"id": 33, "type": "preproc_arg", "text": "OPENSSL_VERSION_NUMBER >= 0x1000105fL", "parent": 30, "children": [], "start_point": {"row": 29, "column": 24}, "end_point": {"row": 29, "column": 61}}, {"id": 34, "type": "#endif", "text": "#endif", "parent": 21, "children": [], "start_point": {"row": 30, "column": 0}, "end_point": {"row": 30, "column": 6}}, {"id": 35, "type": "function_definition", "text": "namespace wangle {\n\n/**\n * Callbacks related to SSL session cache\n *\n * This class contains three methods, setSSLSession() to store existing SSL\n * session data to cache, getSSLSession() to retreive cached session\n * data in cache, and removeSSLSession() to remove session data from cache.\n */\nclass SSLSessionCallbacks {\n public:\n /**\n * Store the session data of the specified identity in cache. Note that the\n * implementation must make it's own memory copy of the session data to put\n * into the cache.\n */\n virtual void setSSLSession(\n const std::string& identity,\n folly::ssl::SSLSessionUniquePtr session) noexcept = 0;\n\n /**\n * Return a SSL session if the cache contained session information for the\n * specified identity. It is the caller's responsibility to decrement the\n * reference count of the returned session pointer.\n */\n virtual folly::ssl::SSLSessionUniquePtr getSSLSession(\n const std::string& identity) const noexcept = 0;\n\n /**\n * Remove session data of the specified identity from cache. Return true if\n * there was session data associated with the identity before removal, or\n * false otherwise.\n */\n virtual bool removeSSLSession(const std::string& identity) noexcept = 0;\n\n /**\n * Return true if the underlying cache supports persistence\n */\n virtual bool supportsPersistence() const noexcept {\n return false;\n }\n\n virtual size_t size() const {\n return 0;\n }\n\n virtual ~SSLSessionCallbacks() {}\n\n /**\n * Sets up SSL Session callbacks on a context. The application is\n * responsible for detaching the callbacks from the context.\n */\n static void attachCallbacksToContext(\n folly::SSLContext* context,\n SSLSessionCallbacks* callbacks);\n\n /**\n * Detach the passed in callbacks from the context. If the callbacks are not\n * set on the context, it is unchanged.\n */\n static void detachCallbacksFromContext(\n folly::SSLContext* context,\n SSLSessionCallbacks* callbacks);\n\n static SSLSessionCallbacks* getCacheFromContext(SSL_CTX* ctx);\n\n protected:\n /**\n * Called by ContextSessionCallbacks::onNewSession prior to insertion\n * into the session cache.\n */\n virtual void onNewSession(SSL*, SSL_SESSION*) {}\n\n private:\n struct ContextSessionCallbacks\n : public folly::SSLContext::SessionLifecycleCallbacks {\n void onNewSession(SSL* ssl, folly::ssl::SSLSessionUniquePtr sessionPtr)\n override;\n };\n\n static std::string getSessionKeyFromSSL(SSL* ssl);\n\n static void removeSessionCallback(SSL_CTX* ctx, SSL_SESSION* session);\n\n static int32_t& getCacheIndex() {\n static int32_t sExDataIndex = -1;\n return sExDataIndex;\n }\n};\n\n}", "parent": null, "children": [36, 37], "start_point": {"row": 32, "column": 0}, "end_point": {"row": 122, "column": 1}}, {"id": 36, "type": "type_identifier", "text": "namespace", "parent": 35, "children": [], "start_point": {"row": 32, "column": 0}, "end_point": {"row": 32, "column": 9}}, {"id": 37, "type": "identifier", "text": "wangle", "parent": 35, "children": [], "start_point": {"row": 32, "column": 10}, "end_point": {"row": 32, "column": 16}}, {"id": 38, "type": "function_definition", "text": "class SSLSessionCallbacks {\n public:\n /**\n * Store the session data of the specified identity in cache. Note that the\n * implementation must make it's own memory copy of the session data to put\n * into the cache.\n */\n virtual void setSSLSession(\n const std::string& identity,\n folly::ssl::SSLSessionUniquePtr session) noexcept = 0;\n\n /**\n * Return a SSL session if the cache contained session information for the\n * specified identity. It is the caller's responsibility to decrement the\n * reference count of the returned session pointer.\n */\n virtual folly::ssl::SSLSessionUniquePtr getSSLSession(\n const std::string& identity) const noexcept = 0;\n\n /**\n * Remove session data of the specified identity from cache. Return true if\n * there was session data associated with the identity before removal, or\n * false otherwise.\n */\n virtual bool removeSSLSession(const std::string& identity) noexcept = 0;\n\n /**\n * Return true if the underlying cache supports persistence\n */\n virtual bool supportsPersistence() const noexcept {\n return false;\n }\n\n virtual size_t size() const {\n return 0;\n }\n\n virtual ~SSLSessionCallbacks() {}\n\n /**\n * Sets up SSL Session callbacks on a context. The application is\n * responsible for detaching the callbacks from the context.\n */\n static void attachCallbacksToContext(\n folly::SSLContext* context,\n SSLSessionCallbacks* callbacks);\n\n /**\n * Detach the passed in callbacks from the context. If the callbacks are not\n * set on the context, it is unchanged.\n */\n static void detachCallbacksFromContext(\n folly::SSLContext* context,\n SSLSessionCallbacks* callbacks);\n\n static SSLSessionCallbacks* getCacheFromContext(SSL_CTX* ctx);\n\n protected:\n /**\n * Called by ContextSessionCallbacks::onNewSession prior to insertion\n * into the session cache.\n */\n virtual void onNewSession(SSL*, SSL_SESSION*) {}\n\n private:\n struct ContextSessionCallbacks\n : public folly::SSLContext::SessionLifecycleCallbacks {\n void onNewSession(SSL* ssl, folly::ssl::SSLSessionUniquePtr sessionPtr)\n override;\n };\n\n static std::string getSessionKeyFromSSL(SSL* ssl);\n\n static void removeSessionCallback(SSL_CTX* ctx, SSL_SESSION* session);\n\n static int32_t& getCacheIndex() {\n static int32_t sExDataIndex = -1;\n return sExDataIndex;\n }\n}", "parent": 35, "children": [39], "start_point": {"row": 41, "column": 0}, "end_point": {"row": 120, "column": 1}}, {"id": 39, "type": "identifier", "text": "SSLSessionCallbacks", "parent": 38, "children": [], "start_point": {"row": 41, "column": 6}, "end_point": {"row": 41, "column": 25}}, {"id": 40, "type": "labeled_statement", "text": "public:\n /**\n * Store the session data of the specified identity in cache. Note that the\n * implementation must make it's own memory copy of the session data to put\n * into the cache.\n */\n virtual void setSSLSession(\n const std::string& identity,\n folly::ssl::SSLSessionUniquePtr session) noexcept = 0;", "parent": 38, "children": [41], "start_point": {"row": 42, "column": 1}, "end_point": {"row": 50, "column": 60}}, {"id": 41, "type": "declaration", "text": "virtual void setSSLSession(\n const std::string& identity,\n folly::ssl::SSLSessionUniquePtr session) noexcept = 0;", "parent": 40, "children": [42, 43, 45], "start_point": {"row": 48, "column": 2}, "end_point": {"row": 50, "column": 60}}, {"id": 42, "type": "type_identifier", "text": "virtual", "parent": 41, "children": [], "start_point": {"row": 48, "column": 2}, "end_point": {"row": 48, "column": 9}}, {"id": 43, "type": "ERROR", "text": "void", "parent": 41, "children": [44], "start_point": {"row": 48, "column": 10}, "end_point": {"row": 48, "column": 14}}, {"id": 44, "type": "identifier", "text": "void", "parent": 43, "children": [], "start_point": {"row": 48, "column": 10}, "end_point": {"row": 48, "column": 14}}, {"id": 45, "type": "init_declarator", "text": "setSSLSession(\n const std::string& identity,\n folly::ssl::SSLSessionUniquePtr session) noexcept = 0", "parent": 41, "children": [46, 61, 62], "start_point": {"row": 48, "column": 15}, "end_point": {"row": 50, "column": 59}}, {"id": 46, "type": "function_declarator", "text": "setSSLSession(\n const std::string& identity,\n folly::ssl::SSLSessionUniquePtr session) noexcept", "parent": 45, "children": [47, 48, 60], "start_point": {"row": 48, "column": 15}, "end_point": {"row": 50, "column": 55}}, {"id": 47, "type": "identifier", "text": "setSSLSession", "parent": 46, "children": [], "start_point": {"row": 48, "column": 15}, "end_point": {"row": 48, "column": 28}}, {"id": 48, "type": "parameter_list", "text": "(\n const std::string& identity,\n folly::ssl::SSLSessionUniquePtr session)", "parent": 46, "children": [49, 54], "start_point": {"row": 48, "column": 28}, "end_point": {"row": 50, "column": 46}}, {"id": 49, "type": "parameter_declaration", "text": "const std::string& identity", "parent": 48, "children": [50, 51, 53], "start_point": {"row": 49, "column": 6}, "end_point": {"row": 49, "column": 33}}, {"id": 50, "type": "type_identifier", "text": "std", "parent": 49, "children": [], "start_point": {"row": 49, "column": 12}, "end_point": {"row": 49, "column": 15}}, {"id": 51, "type": "ERROR", "text": "::string&", "parent": 49, "children": [52], "start_point": {"row": 49, "column": 15}, "end_point": {"row": 49, "column": 24}}, {"id": 52, "type": "identifier", "text": "string", "parent": 51, "children": [], "start_point": {"row": 49, "column": 17}, "end_point": {"row": 49, "column": 23}}, {"id": 53, "type": "identifier", "text": "identity", "parent": 49, "children": [], "start_point": {"row": 49, "column": 25}, "end_point": {"row": 49, "column": 33}}, {"id": 54, "type": "parameter_declaration", "text": "folly::ssl::SSLSessionUniquePtr session", "parent": 48, "children": [55, 56, 59], "start_point": {"row": 50, "column": 6}, "end_point": {"row": 50, "column": 45}}, {"id": 55, "type": "type_identifier", "text": "folly", "parent": 54, "children": [], "start_point": {"row": 50, "column": 6}, "end_point": {"row": 50, "column": 11}}, {"id": 56, "type": "ERROR", "text": "::ssl::SSLSessionUniquePtr", "parent": 54, "children": [57, 58], "start_point": {"row": 50, "column": 11}, "end_point": {"row": 50, "column": 37}}, {"id": 57, "type": "identifier", "text": "ssl", "parent": 56, "children": [], "start_point": {"row": 50, "column": 13}, "end_point": {"row": 50, "column": 16}}, {"id": 58, "type": "identifier", "text": "SSLSessionUniquePtr", "parent": 56, "children": [], "start_point": {"row": 50, "column": 18}, "end_point": {"row": 50, "column": 37}}, {"id": 59, "type": "identifier", "text": "session", "parent": 54, "children": [], "start_point": {"row": 50, "column": 38}, "end_point": {"row": 50, "column": 45}}, {"id": 60, "type": "identifier", "text": "noexcept", "parent": 46, "children": [], "start_point": {"row": 50, "column": 47}, "end_point": {"row": 50, "column": 55}}, {"id": 61, "type": "=", "text": "=", "parent": 45, "children": [], "start_point": {"row": 50, "column": 56}, "end_point": {"row": 50, "column": 57}}, {"id": 62, "type": "number_literal", "text": "0", "parent": 45, "children": [], "start_point": {"row": 50, "column": 58}, "end_point": {"row": 50, "column": 59}}, {"id": 63, "type": "declaration", "text": "virtual folly::ssl::SSLSessionUniquePtr getSSLSession(\n const std::string& identity) const noexcept = 0;", "parent": 38, "children": [64, 65, 69], "start_point": {"row": 57, "column": 2}, "end_point": {"row": 58, "column": 54}}, {"id": 64, "type": "type_identifier", "text": "virtual", "parent": 63, "children": [], "start_point": {"row": 57, "column": 2}, "end_point": {"row": 57, "column": 9}}, {"id": 65, "type": "ERROR", "text": "folly::ssl::SSLSessionUniquePtr", "parent": 63, "children": [66, 67, 68], "start_point": {"row": 57, "column": 10}, "end_point": {"row": 57, "column": 41}}, {"id": 66, "type": "identifier", "text": "folly", "parent": 65, "children": [], "start_point": {"row": 57, "column": 10}, "end_point": {"row": 57, "column": 15}}, {"id": 67, "type": "identifier", "text": "ssl", "parent": 65, "children": [], "start_point": {"row": 57, "column": 17}, "end_point": {"row": 57, "column": 20}}, {"id": 68, "type": "identifier", "text": "SSLSessionUniquePtr", "parent": 65, "children": [], "start_point": {"row": 57, "column": 22}, "end_point": {"row": 57, "column": 41}}, {"id": 69, "type": "init_declarator", "text": "getSSLSession(\n const std::string& identity) const noexcept = 0", "parent": 63, "children": [70, 79, 80], "start_point": {"row": 57, "column": 42}, "end_point": {"row": 58, "column": 53}}, {"id": 70, "type": "function_declarator", "text": "getSSLSession(\n const std::string& identity) const noexcept", "parent": 69, "children": [71, 72, 78], "start_point": {"row": 57, "column": 42}, "end_point": {"row": 58, "column": 49}}, {"id": 71, "type": "identifier", "text": "getSSLSession", "parent": 70, "children": [], "start_point": {"row": 57, "column": 42}, "end_point": {"row": 57, "column": 55}}, {"id": 72, "type": "parameter_list", "text": "(\n const std::string& identity)", "parent": 70, "children": [73], "start_point": {"row": 57, "column": 55}, "end_point": {"row": 58, "column": 34}}, {"id": 73, "type": "parameter_declaration", "text": "const std::string& identity", "parent": 72, "children": [74, 75, 77], "start_point": {"row": 58, "column": 6}, "end_point": {"row": 58, "column": 33}}, {"id": 74, "type": "type_identifier", "text": "std", "parent": 73, "children": [], "start_point": {"row": 58, "column": 12}, "end_point": {"row": 58, "column": 15}}, {"id": 75, "type": "ERROR", "text": "::string&", "parent": 73, "children": [76], "start_point": {"row": 58, "column": 15}, "end_point": {"row": 58, "column": 24}}, {"id": 76, "type": "identifier", "text": "string", "parent": 75, "children": [], "start_point": {"row": 58, "column": 17}, "end_point": {"row": 58, "column": 23}}, {"id": 77, "type": "identifier", "text": "identity", "parent": 73, "children": [], "start_point": {"row": 58, "column": 25}, "end_point": {"row": 58, "column": 33}}, {"id": 78, "type": "identifier", "text": "noexcept", "parent": 70, "children": [], "start_point": {"row": 58, "column": 41}, "end_point": {"row": 58, "column": 49}}, {"id": 79, "type": "=", "text": "=", "parent": 69, "children": [], "start_point": {"row": 58, "column": 50}, "end_point": {"row": 58, "column": 51}}, {"id": 80, "type": "number_literal", "text": "0", "parent": 69, "children": [], "start_point": {"row": 58, "column": 52}, "end_point": {"row": 58, "column": 53}}, {"id": 81, "type": "declaration", "text": "virtual bool removeSSLSession(const std::string& identity) noexcept = 0;", "parent": 38, "children": [82, 83, 85], "start_point": {"row": 65, "column": 2}, "end_point": {"row": 65, "column": 74}}, {"id": 82, "type": "type_identifier", "text": "virtual", "parent": 81, "children": [], "start_point": {"row": 65, "column": 2}, "end_point": {"row": 65, "column": 9}}, {"id": 83, "type": "ERROR", "text": "bool", "parent": 81, "children": [84], "start_point": {"row": 65, "column": 10}, "end_point": {"row": 65, "column": 14}}, {"id": 84, "type": "identifier", "text": "bool", "parent": 83, "children": [], "start_point": {"row": 65, "column": 10}, "end_point": {"row": 65, "column": 14}}, {"id": 85, "type": "init_declarator", "text": "removeSSLSession(const std::string& identity) noexcept = 0", "parent": 81, "children": [86, 95, 96], "start_point": {"row": 65, "column": 15}, "end_point": {"row": 65, "column": 73}}, {"id": 86, "type": "function_declarator", "text": "removeSSLSession(const std::string& identity) noexcept", "parent": 85, "children": [87, 88, 94], "start_point": {"row": 65, "column": 15}, "end_point": {"row": 65, "column": 69}}, {"id": 87, "type": "identifier", "text": "removeSSLSession", "parent": 86, "children": [], "start_point": {"row": 65, "column": 15}, "end_point": {"row": 65, "column": 31}}, {"id": 88, "type": "parameter_list", "text": "(const std::string& identity)", "parent": 86, "children": [89], "start_point": {"row": 65, "column": 31}, "end_point": {"row": 65, "column": 60}}, {"id": 89, "type": "parameter_declaration", "text": "const std::string& identity", "parent": 88, "children": [90, 91, 93], "start_point": {"row": 65, "column": 32}, "end_point": {"row": 65, "column": 59}}, {"id": 90, "type": "type_identifier", "text": "std", "parent": 89, "children": [], "start_point": {"row": 65, "column": 38}, "end_point": {"row": 65, "column": 41}}, {"id": 91, "type": "ERROR", "text": "::string&", "parent": 89, "children": [92], "start_point": {"row": 65, "column": 41}, "end_point": {"row": 65, "column": 50}}, {"id": 92, "type": "identifier", "text": "string", "parent": 91, "children": [], "start_point": {"row": 65, "column": 43}, "end_point": {"row": 65, "column": 49}}, {"id": 93, "type": "identifier", "text": "identity", "parent": 89, "children": [], "start_point": {"row": 65, "column": 51}, "end_point": {"row": 65, "column": 59}}, {"id": 94, "type": "identifier", "text": "noexcept", "parent": 86, "children": [], "start_point": {"row": 65, "column": 61}, "end_point": {"row": 65, "column": 69}}, {"id": 95, "type": "=", "text": "=", "parent": 85, "children": [], "start_point": {"row": 65, "column": 70}, "end_point": {"row": 65, "column": 71}}, {"id": 96, "type": "number_literal", "text": "0", "parent": 85, "children": [], "start_point": {"row": 65, "column": 72}, "end_point": {"row": 65, "column": 73}}, {"id": 97, "type": "ERROR", "text": "virtual bool supportsPersistence() const noexcept", "parent": 38, "children": [98, 99, 101, 104], "start_point": {"row": 70, "column": 2}, "end_point": {"row": 70, "column": 51}}, {"id": 98, "type": "type_identifier", "text": "virtual", "parent": 97, "children": [], "start_point": {"row": 70, "column": 2}, "end_point": {"row": 70, "column": 9}}, {"id": 99, "type": "ERROR", "text": "bool", "parent": 97, "children": [100], "start_point": {"row": 70, "column": 10}, "end_point": {"row": 70, "column": 14}}, {"id": 100, "type": "identifier", "text": "bool", "parent": 99, "children": [], "start_point": {"row": 70, "column": 10}, "end_point": {"row": 70, "column": 14}}, {"id": 101, "type": "function_declarator", "text": "supportsPersistence()", "parent": 97, "children": [102, 103], "start_point": {"row": 70, "column": 15}, "end_point": {"row": 70, "column": 36}}, {"id": 102, "type": "identifier", "text": "supportsPersistence", "parent": 101, "children": [], "start_point": {"row": 70, "column": 15}, "end_point": {"row": 70, "column": 34}}, {"id": 103, "type": "parameter_list", "text": "()", "parent": 101, "children": [], "start_point": {"row": 70, "column": 34}, "end_point": {"row": 70, "column": 36}}, {"id": 104, "type": "type_identifier", "text": "noexcept", "parent": 97, "children": [], "start_point": {"row": 70, "column": 43}, "end_point": {"row": 70, "column": 51}}, {"id": 105, "type": "return_statement", "text": "return false;", "parent": 38, "children": [106], "start_point": {"row": 71, "column": 4}, "end_point": {"row": 71, "column": 17}}, {"id": 106, "type": "false", "text": "false", "parent": 105, "children": [], "start_point": {"row": 71, "column": 11}, "end_point": {"row": 71, "column": 16}}, {"id": 107, "type": "ERROR", "text": "virtual size_t size() const", "parent": 38, "children": [108, 109, 111], "start_point": {"row": 74, "column": 2}, "end_point": {"row": 74, "column": 29}}, {"id": 108, "type": "type_identifier", "text": "virtual", "parent": 107, "children": [], "start_point": {"row": 74, "column": 2}, "end_point": {"row": 74, "column": 9}}, {"id": 109, "type": "ERROR", "text": "size_t", "parent": 107, "children": [110], "start_point": {"row": 74, "column": 10}, "end_point": {"row": 74, "column": 16}}, {"id": 110, "type": "identifier", "text": "size_t", "parent": 109, "children": [], "start_point": {"row": 74, "column": 10}, "end_point": {"row": 74, "column": 16}}, {"id": 111, "type": "function_declarator", "text": "size()", "parent": 107, "children": [112, 113], "start_point": {"row": 74, "column": 17}, "end_point": {"row": 74, "column": 23}}, {"id": 112, "type": "identifier", "text": "size", "parent": 111, "children": [], "start_point": {"row": 74, "column": 17}, "end_point": {"row": 74, "column": 21}}, {"id": 113, "type": "parameter_list", "text": "()", "parent": 111, "children": [], "start_point": {"row": 74, "column": 21}, "end_point": {"row": 74, "column": 23}}, {"id": 114, "type": "return_statement", "text": "return 0;", "parent": 38, "children": [115], "start_point": {"row": 75, "column": 4}, "end_point": {"row": 75, "column": 13}}, {"id": 115, "type": "number_literal", "text": "0", "parent": 114, "children": [], "start_point": {"row": 75, "column": 11}, "end_point": {"row": 75, "column": 12}}, {"id": 116, "type": "function_definition", "text": "virtual ~SSLSessionCallbacks() {}", "parent": 38, "children": [117, 118, 120], "start_point": {"row": 78, "column": 2}, "end_point": {"row": 78, "column": 35}}, {"id": 117, "type": "type_identifier", "text": "virtual", "parent": 116, "children": [], "start_point": {"row": 78, "column": 2}, "end_point": {"row": 78, "column": 9}}, {"id": 118, "type": "ERROR", "text": "~", "parent": 116, "children": [119], "start_point": {"row": 78, "column": 10}, "end_point": {"row": 78, "column": 11}}, {"id": 119, "type": "~", "text": "~", "parent": 118, "children": [], "start_point": {"row": 78, "column": 10}, "end_point": {"row": 78, "column": 11}}, {"id": 120, "type": "function_declarator", "text": "SSLSessionCallbacks()", "parent": 116, "children": [121, 122], "start_point": {"row": 78, "column": 11}, "end_point": {"row": 78, "column": 32}}, {"id": 121, "type": "identifier", "text": "SSLSessionCallbacks", "parent": 120, "children": [], "start_point": {"row": 78, "column": 11}, "end_point": {"row": 78, "column": 30}}, {"id": 122, "type": "parameter_list", "text": "()", "parent": 120, "children": [], "start_point": {"row": 78, "column": 30}, "end_point": {"row": 78, "column": 32}}, {"id": 123, "type": "declaration", "text": "static void attachCallbacksToContext(\n folly::SSLContext* context,\n SSLSessionCallbacks* callbacks);", "parent": 38, "children": [124, 125], "start_point": {"row": 84, "column": 2}, "end_point": {"row": 86, "column": 38}}, {"id": 124, "type": "primitive_type", "text": "void", "parent": 123, "children": [], "start_point": {"row": 84, "column": 9}, "end_point": {"row": 84, "column": 13}}, {"id": 125, "type": "function_declarator", "text": "attachCallbacksToContext(\n folly::SSLContext* context,\n SSLSessionCallbacks* callbacks)", "parent": 123, "children": [126, 127], "start_point": {"row": 84, "column": 14}, "end_point": {"row": 86, "column": 37}}, {"id": 126, "type": "identifier", "text": "attachCallbacksToContext", "parent": 125, "children": [], "start_point": {"row": 84, "column": 14}, "end_point": {"row": 84, "column": 38}}, {"id": 127, "type": "parameter_list", "text": "(\n folly::SSLContext* context,\n SSLSessionCallbacks* callbacks)", "parent": 125, "children": [128, 135], "start_point": {"row": 84, "column": 38}, "end_point": {"row": 86, "column": 37}}, {"id": 128, "type": "parameter_declaration", "text": "folly::SSLContext* context", "parent": 127, "children": [129, 130, 132], "start_point": {"row": 85, "column": 6}, "end_point": {"row": 85, "column": 32}}, {"id": 129, "type": "type_identifier", "text": "folly", "parent": 128, "children": [], "start_point": {"row": 85, "column": 6}, "end_point": {"row": 85, "column": 11}}, {"id": 130, "type": "ERROR", "text": "::SSLContext", "parent": 128, "children": [131], "start_point": {"row": 85, "column": 11}, "end_point": {"row": 85, "column": 23}}, {"id": 131, "type": "identifier", "text": "SSLContext", "parent": 130, "children": [], "start_point": {"row": 85, "column": 13}, "end_point": {"row": 85, "column": 23}}, {"id": 132, "type": "pointer_declarator", "text": "* context", "parent": 128, "children": [133, 134], "start_point": {"row": 85, "column": 23}, "end_point": {"row": 85, "column": 32}}, {"id": 133, "type": "*", "text": "*", "parent": 132, "children": [], "start_point": {"row": 85, "column": 23}, "end_point": {"row": 85, "column": 24}}, {"id": 134, "type": "identifier", "text": "context", "parent": 132, "children": [], "start_point": {"row": 85, "column": 25}, "end_point": {"row": 85, "column": 32}}, {"id": 135, "type": "parameter_declaration", "text": "SSLSessionCallbacks* callbacks", "parent": 127, "children": [136, 137], "start_point": {"row": 86, "column": 6}, "end_point": {"row": 86, "column": 36}}, {"id": 136, "type": "type_identifier", "text": "SSLSessionCallbacks", "parent": 135, "children": [], "start_point": {"row": 86, "column": 6}, "end_point": {"row": 86, "column": 25}}, {"id": 137, "type": "pointer_declarator", "text": "* callbacks", "parent": 135, "children": [138, 139], "start_point": {"row": 86, "column": 25}, "end_point": {"row": 86, "column": 36}}, {"id": 138, "type": "*", "text": "*", "parent": 137, "children": [], "start_point": {"row": 86, "column": 25}, "end_point": {"row": 86, "column": 26}}, {"id": 139, "type": "identifier", "text": "callbacks", "parent": 137, "children": [], "start_point": {"row": 86, "column": 27}, "end_point": {"row": 86, "column": 36}}, {"id": 140, "type": "declaration", "text": "static void detachCallbacksFromContext(\n folly::SSLContext* context,\n SSLSessionCallbacks* callbacks);", "parent": 38, "children": [141, 142], "start_point": {"row": 92, "column": 2}, "end_point": {"row": 94, "column": 38}}, {"id": 141, "type": "primitive_type", "text": "void", "parent": 140, "children": [], "start_point": {"row": 92, "column": 9}, "end_point": {"row": 92, "column": 13}}, {"id": 142, "type": "function_declarator", "text": "detachCallbacksFromContext(\n folly::SSLContext* context,\n SSLSessionCallbacks* callbacks)", "parent": 140, "children": [143, 144], "start_point": {"row": 92, "column": 14}, "end_point": {"row": 94, "column": 37}}, {"id": 143, "type": "identifier", "text": "detachCallbacksFromContext", "parent": 142, "children": [], "start_point": {"row": 92, "column": 14}, "end_point": {"row": 92, "column": 40}}, {"id": 144, "type": "parameter_list", "text": "(\n folly::SSLContext* context,\n SSLSessionCallbacks* callbacks)", "parent": 142, "children": [145, 152], "start_point": {"row": 92, "column": 40}, "end_point": {"row": 94, "column": 37}}, {"id": 145, "type": "parameter_declaration", "text": "folly::SSLContext* context", "parent": 144, "children": [146, 147, 149], "start_point": {"row": 93, "column": 6}, "end_point": {"row": 93, "column": 32}}, {"id": 146, "type": "type_identifier", "text": "folly", "parent": 145, "children": [], "start_point": {"row": 93, "column": 6}, "end_point": {"row": 93, "column": 11}}, {"id": 147, "type": "ERROR", "text": "::SSLContext", "parent": 145, "children": [148], "start_point": {"row": 93, "column": 11}, "end_point": {"row": 93, "column": 23}}, {"id": 148, "type": "identifier", "text": "SSLContext", "parent": 147, "children": [], "start_point": {"row": 93, "column": 13}, "end_point": {"row": 93, "column": 23}}, {"id": 149, "type": "pointer_declarator", "text": "* context", "parent": 145, "children": [150, 151], "start_point": {"row": 93, "column": 23}, "end_point": {"row": 93, "column": 32}}, {"id": 150, "type": "*", "text": "*", "parent": 149, "children": [], "start_point": {"row": 93, "column": 23}, "end_point": {"row": 93, "column": 24}}, {"id": 151, "type": "identifier", "text": "context", "parent": 149, "children": [], "start_point": {"row": 93, "column": 25}, "end_point": {"row": 93, "column": 32}}, {"id": 152, "type": "parameter_declaration", "text": "SSLSessionCallbacks* callbacks", "parent": 144, "children": [153, 154], "start_point": {"row": 94, "column": 6}, "end_point": {"row": 94, "column": 36}}, {"id": 153, "type": "type_identifier", "text": "SSLSessionCallbacks", "parent": 152, "children": [], "start_point": {"row": 94, "column": 6}, "end_point": {"row": 94, "column": 25}}, {"id": 154, "type": "pointer_declarator", "text": "* callbacks", "parent": 152, "children": [155, 156], "start_point": {"row": 94, "column": 25}, "end_point": {"row": 94, "column": 36}}, {"id": 155, "type": "*", "text": "*", "parent": 154, "children": [], "start_point": {"row": 94, "column": 25}, "end_point": {"row": 94, "column": 26}}, {"id": 156, "type": "identifier", "text": "callbacks", "parent": 154, "children": [], "start_point": {"row": 94, "column": 27}, "end_point": {"row": 94, "column": 36}}, {"id": 157, "type": "declaration", "text": "static SSLSessionCallbacks* getCacheFromContext(SSL_CTX* ctx);", "parent": 38, "children": [158, 159], "start_point": {"row": 96, "column": 2}, "end_point": {"row": 96, "column": 64}}, {"id": 158, "type": "type_identifier", "text": "SSLSessionCallbacks", "parent": 157, "children": [], "start_point": {"row": 96, "column": 9}, "end_point": {"row": 96, "column": 28}}, {"id": 159, "type": "pointer_declarator", "text": "* getCacheFromContext(SSL_CTX* ctx)", "parent": 157, "children": [160, 161], "start_point": {"row": 96, "column": 28}, "end_point": {"row": 96, "column": 63}}, {"id": 160, "type": "*", "text": "*", "parent": 159, "children": [], "start_point": {"row": 96, "column": 28}, "end_point": {"row": 96, "column": 29}}, {"id": 161, "type": "function_declarator", "text": "getCacheFromContext(SSL_CTX* ctx)", "parent": 159, "children": [162, 163], "start_point": {"row": 96, "column": 30}, "end_point": {"row": 96, "column": 63}}, {"id": 162, "type": "identifier", "text": "getCacheFromContext", "parent": 161, "children": [], "start_point": {"row": 96, "column": 30}, "end_point": {"row": 96, "column": 49}}, {"id": 163, "type": "parameter_list", "text": "(SSL_CTX* ctx)", "parent": 161, "children": [164], "start_point": {"row": 96, "column": 49}, "end_point": {"row": 96, "column": 63}}, {"id": 164, "type": "parameter_declaration", "text": "SSL_CTX* ctx", "parent": 163, "children": [165, 166], "start_point": {"row": 96, "column": 50}, "end_point": {"row": 96, "column": 62}}, {"id": 165, "type": "type_identifier", "text": "SSL_CTX", "parent": 164, "children": [], "start_point": {"row": 96, "column": 50}, "end_point": {"row": 96, "column": 57}}, {"id": 166, "type": "pointer_declarator", "text": "* ctx", "parent": 164, "children": [167, 168], "start_point": {"row": 96, "column": 57}, "end_point": {"row": 96, "column": 62}}, {"id": 167, "type": "*", "text": "*", "parent": 166, "children": [], "start_point": {"row": 96, "column": 57}, "end_point": {"row": 96, "column": 58}}, {"id": 168, "type": "identifier", "text": "ctx", "parent": 166, "children": [], "start_point": {"row": 96, "column": 59}, "end_point": {"row": 96, "column": 62}}, {"id": 169, "type": "labeled_statement", "text": "protected:\n /**\n * Called by ContextSessionCallbacks::onNewSession prior to insertion\n * into the session cache.\n */\n virtual void onNewSession(SSL*, SSL_SESSION*) {}\n\n private:\n struct ContextSessionCallbacks\n : public", "parent": 38, "children": [170], "start_point": {"row": 98, "column": 1}, "end_point": {"row": 107, "column": 14}}, {"id": 170, "type": "declaration", "text": "virtual void onNewSession(SSL*, SSL_SESSION*) {}\n\n private:\n struct ContextSessionCallbacks\n : public", "parent": 169, "children": [171, 172], "start_point": {"row": 103, "column": 2}, "end_point": {"row": 107, "column": 14}}, {"id": 171, "type": "type_identifier", "text": "virtual", "parent": 170, "children": [], "start_point": {"row": 103, "column": 2}, "end_point": {"row": 103, "column": 9}}, {"id": 172, "type": "ERROR", "text": "void onNewSession(SSL*, SSL_SESSION*) {}\n\n private:\n struct ContextSessionCallbacks\n :", "parent": 170, "children": [173, 174, 185, 186], "start_point": {"row": 103, "column": 10}, "end_point": {"row": 107, "column": 7}}, {"id": 173, "type": "identifier", "text": "void", "parent": 172, "children": [], "start_point": {"row": 103, "column": 10}, "end_point": {"row": 103, "column": 14}}, {"id": 174, "type": "function_declarator", "text": "onNewSession(SSL*, SSL_SESSION*)", "parent": 172, "children": [175, 176], "start_point": {"row": 103, "column": 15}, "end_point": {"row": 103, "column": 47}}, {"id": 175, "type": "identifier", "text": "onNewSession", "parent": 174, "children": [], "start_point": {"row": 103, "column": 15}, "end_point": {"row": 103, "column": 27}}, {"id": 176, "type": "parameter_list", "text": "(SSL*, SSL_SESSION*)", "parent": 174, "children": [177, 181], "start_point": {"row": 103, "column": 27}, "end_point": {"row": 103, "column": 47}}, {"id": 177, "type": "parameter_declaration", "text": "SSL*", "parent": 176, "children": [178, 179], "start_point": {"row": 103, "column": 28}, "end_point": {"row": 103, "column": 32}}, {"id": 178, "type": "type_identifier", "text": "SSL", "parent": 177, "children": [], "start_point": {"row": 103, "column": 28}, "end_point": {"row": 103, "column": 31}}, {"id": 179, "type": "abstract_pointer_declarator", "text": "*", "parent": 177, "children": [180], "start_point": {"row": 103, "column": 31}, "end_point": {"row": 103, "column": 32}}, {"id": 180, "type": "*", "text": "*", "parent": 179, "children": [], "start_point": {"row": 103, "column": 31}, "end_point": {"row": 103, "column": 32}}, {"id": 181, "type": "parameter_declaration", "text": "SSL_SESSION*", "parent": 176, "children": [182, 183], "start_point": {"row": 103, "column": 34}, "end_point": {"row": 103, "column": 46}}, {"id": 182, "type": "type_identifier", "text": "SSL_SESSION", "parent": 181, "children": [], "start_point": {"row": 103, "column": 34}, "end_point": {"row": 103, "column": 45}}, {"id": 183, "type": "abstract_pointer_declarator", "text": "*", "parent": 181, "children": [184], "start_point": {"row": 103, "column": 45}, "end_point": {"row": 103, "column": 46}}, {"id": 184, "type": "*", "text": "*", "parent": 183, "children": [], "start_point": {"row": 103, "column": 45}, "end_point": {"row": 103, "column": 46}}, {"id": 185, "type": "struct", "text": "struct", "parent": 172, "children": [], "start_point": {"row": 106, "column": 2}, "end_point": {"row": 106, "column": 8}}, {"id": 186, "type": "identifier", "text": "ContextSessionCallbacks", "parent": 172, "children": [], "start_point": {"row": 106, "column": 9}, "end_point": {"row": 106, "column": 32}}, {"id": 187, "type": "labeled_statement", "text": "folly::SSLContext::SessionLifecycleCallbacks {\n void onNewSession(SSL* ssl, folly::ssl::SSLSessionUniquePtr sessionPtr)\n override;\n }", "parent": 38, "children": [188, 189], "start_point": {"row": 107, "column": 15}, "end_point": {"row": 110, "column": 3}}, {"id": 188, "type": "statement_identifier", "text": "folly", "parent": 187, "children": [], "start_point": {"row": 107, "column": 15}, "end_point": {"row": 107, "column": 20}}, {"id": 189, "type": "labeled_statement", "text": "SSLContext::SessionLifecycleCallbacks {\n void onNewSession(SSL* ssl, folly::ssl::SSLSessionUniquePtr sessionPtr)\n override;\n }", "parent": 187, "children": [190, 191], "start_point": {"row": 107, "column": 22}, "end_point": {"row": 110, "column": 3}}, {"id": 190, "type": "statement_identifier", "text": "SSLContext", "parent": 189, "children": [], "start_point": {"row": 107, "column": 22}, "end_point": {"row": 107, "column": 32}}, {"id": 191, "type": "ERROR", "text": ":SessionLifecycleCallbacks", "parent": 189, "children": [192], "start_point": {"row": 107, "column": 33}, "end_point": {"row": 107, "column": 59}}, {"id": 192, "type": "identifier", "text": "SessionLifecycleCallbacks", "parent": 191, "children": [], "start_point": {"row": 107, "column": 34}, "end_point": {"row": 107, "column": 59}}, {"id": 193, "type": "ERROR", "text": "void onNewSession(SSL* ssl, folly::ssl::SSLSessionUniquePtr sessionPtr)\n override", "parent": 189, "children": [194, 195], "start_point": {"row": 108, "column": 4}, "end_point": {"row": 109, "column": 16}}, {"id": 194, "type": "primitive_type", "text": "void", "parent": 193, "children": [], "start_point": {"row": 108, "column": 4}, "end_point": {"row": 108, "column": 8}}, {"id": 195, "type": "function_declarator", "text": "onNewSession(SSL* ssl, folly::ssl::SSLSessionUniquePtr sessionPtr)\n override", "parent": 193, "children": [196, 197, 209], "start_point": {"row": 108, "column": 9}, "end_point": {"row": 109, "column": 16}}, {"id": 196, "type": "identifier", "text": "onNewSession", "parent": 195, "children": [], "start_point": {"row": 108, "column": 9}, "end_point": {"row": 108, "column": 21}}, {"id": 197, "type": "parameter_list", "text": "(SSL* ssl, folly::ssl::SSLSessionUniquePtr sessionPtr)", "parent": 195, "children": [198, 203], "start_point": {"row": 108, "column": 21}, "end_point": {"row": 108, "column": 75}}, {"id": 198, "type": "parameter_declaration", "text": "SSL* ssl", "parent": 197, "children": [199, 200], "start_point": {"row": 108, "column": 22}, "end_point": {"row": 108, "column": 30}}, {"id": 199, "type": "type_identifier", "text": "SSL", "parent": 198, "children": [], "start_point": {"row": 108, "column": 22}, "end_point": {"row": 108, "column": 25}}, {"id": 200, "type": "pointer_declarator", "text": "* ssl", "parent": 198, "children": [201, 202], "start_point": {"row": 108, "column": 25}, "end_point": {"row": 108, "column": 30}}, {"id": 201, "type": "*", "text": "*", "parent": 200, "children": [], "start_point": {"row": 108, "column": 25}, "end_point": {"row": 108, "column": 26}}, {"id": 202, "type": "identifier", "text": "ssl", "parent": 200, "children": [], "start_point": {"row": 108, "column": 27}, "end_point": {"row": 108, "column": 30}}, {"id": 203, "type": "parameter_declaration", "text": "folly::ssl::SSLSessionUniquePtr sessionPtr", "parent": 197, "children": [204, 205, 208], "start_point": {"row": 108, "column": 32}, "end_point": {"row": 108, "column": 74}}, {"id": 204, "type": "type_identifier", "text": "folly", "parent": 203, "children": [], "start_point": {"row": 108, "column": 32}, "end_point": {"row": 108, "column": 37}}, {"id": 205, "type": "ERROR", "text": "::ssl::SSLSessionUniquePtr", "parent": 203, "children": [206, 207], "start_point": {"row": 108, "column": 37}, "end_point": {"row": 108, "column": 63}}, {"id": 206, "type": "identifier", "text": "ssl", "parent": 205, "children": [], "start_point": {"row": 108, "column": 39}, "end_point": {"row": 108, "column": 42}}, {"id": 207, "type": "identifier", "text": "SSLSessionUniquePtr", "parent": 205, "children": [], "start_point": {"row": 108, "column": 44}, "end_point": {"row": 108, "column": 63}}, {"id": 208, "type": "identifier", "text": "sessionPtr", "parent": 203, "children": [], "start_point": {"row": 108, "column": 64}, "end_point": {"row": 108, "column": 74}}, {"id": 209, "type": "identifier", "text": "override", "parent": 195, "children": [], "start_point": {"row": 109, "column": 8}, "end_point": {"row": 109, "column": 16}}, {"id": 210, "type": "declaration", "text": "static std::string getSessionKeyFromSSL(SSL* ssl);", "parent": 38, "children": [211, 212, 214], "start_point": {"row": 112, "column": 2}, "end_point": {"row": 112, "column": 52}}, {"id": 211, "type": "type_identifier", "text": "std", "parent": 210, "children": [], "start_point": {"row": 112, "column": 9}, "end_point": {"row": 112, "column": 12}}, {"id": 212, "type": "ERROR", "text": "::string", "parent": 210, "children": [213], "start_point": {"row": 112, "column": 12}, "end_point": {"row": 112, "column": 20}}, {"id": 213, "type": "identifier", "text": "string", "parent": 212, "children": [], "start_point": {"row": 112, "column": 14}, "end_point": {"row": 112, "column": 20}}, {"id": 214, "type": "function_declarator", "text": "getSessionKeyFromSSL(SSL* ssl)", "parent": 210, "children": [215, 216], "start_point": {"row": 112, "column": 21}, "end_point": {"row": 112, "column": 51}}, {"id": 215, "type": "identifier", "text": "getSessionKeyFromSSL", "parent": 214, "children": [], "start_point": {"row": 112, "column": 21}, "end_point": {"row": 112, "column": 41}}, {"id": 216, "type": "parameter_list", "text": "(SSL* ssl)", "parent": 214, "children": [217], "start_point": {"row": 112, "column": 41}, "end_point": {"row": 112, "column": 51}}, {"id": 217, "type": "parameter_declaration", "text": "SSL* ssl", "parent": 216, "children": [218, 219], "start_point": {"row": 112, "column": 42}, "end_point": {"row": 112, "column": 50}}, {"id": 218, "type": "type_identifier", "text": "SSL", "parent": 217, "children": [], "start_point": {"row": 112, "column": 42}, "end_point": {"row": 112, "column": 45}}, {"id": 219, "type": "pointer_declarator", "text": "* ssl", "parent": 217, "children": [220, 221], "start_point": {"row": 112, "column": 45}, "end_point": {"row": 112, "column": 50}}, {"id": 220, "type": "*", "text": "*", "parent": 219, "children": [], "start_point": {"row": 112, "column": 45}, "end_point": {"row": 112, "column": 46}}, {"id": 221, "type": "identifier", "text": "ssl", "parent": 219, "children": [], "start_point": {"row": 112, "column": 47}, "end_point": {"row": 112, "column": 50}}, {"id": 222, "type": "declaration", "text": "static void removeSessionCallback(SSL_CTX* ctx, SSL_SESSION* session);", "parent": 38, "children": [223, 224], "start_point": {"row": 114, "column": 2}, "end_point": {"row": 114, "column": 72}}, {"id": 223, "type": "primitive_type", "text": "void", "parent": 222, "children": [], "start_point": {"row": 114, "column": 9}, "end_point": {"row": 114, "column": 13}}, {"id": 224, "type": "function_declarator", "text": "removeSessionCallback(SSL_CTX* ctx, SSL_SESSION* session)", "parent": 222, "children": [225, 226], "start_point": {"row": 114, "column": 14}, "end_point": {"row": 114, "column": 71}}, {"id": 225, "type": "identifier", "text": "removeSessionCallback", "parent": 224, "children": [], "start_point": {"row": 114, "column": 14}, "end_point": {"row": 114, "column": 35}}, {"id": 226, "type": "parameter_list", "text": "(SSL_CTX* ctx, SSL_SESSION* session)", "parent": 224, "children": [227, 232], "start_point": {"row": 114, "column": 35}, "end_point": {"row": 114, "column": 71}}, {"id": 227, "type": "parameter_declaration", "text": "SSL_CTX* ctx", "parent": 226, "children": [228, 229], "start_point": {"row": 114, "column": 36}, "end_point": {"row": 114, "column": 48}}, {"id": 228, "type": "type_identifier", "text": "SSL_CTX", "parent": 227, "children": [], "start_point": {"row": 114, "column": 36}, "end_point": {"row": 114, "column": 43}}, {"id": 229, "type": "pointer_declarator", "text": "* ctx", "parent": 227, "children": [230, 231], "start_point": {"row": 114, "column": 43}, "end_point": {"row": 114, "column": 48}}, {"id": 230, "type": "*", "text": "*", "parent": 229, "children": [], "start_point": {"row": 114, "column": 43}, "end_point": {"row": 114, "column": 44}}, {"id": 231, "type": "identifier", "text": "ctx", "parent": 229, "children": [], "start_point": {"row": 114, "column": 45}, "end_point": {"row": 114, "column": 48}}, {"id": 232, "type": "parameter_declaration", "text": "SSL_SESSION* session", "parent": 226, "children": [233, 234], "start_point": {"row": 114, "column": 50}, "end_point": {"row": 114, "column": 70}}, {"id": 233, "type": "type_identifier", "text": "SSL_SESSION", "parent": 232, "children": [], "start_point": {"row": 114, "column": 50}, "end_point": {"row": 114, "column": 61}}, {"id": 234, "type": "pointer_declarator", "text": "* session", "parent": 232, "children": [235, 236], "start_point": {"row": 114, "column": 61}, "end_point": {"row": 114, "column": 70}}, {"id": 235, "type": "*", "text": "*", "parent": 234, "children": [], "start_point": {"row": 114, "column": 61}, "end_point": {"row": 114, "column": 62}}, {"id": 236, "type": "identifier", "text": "session", "parent": 234, "children": [], "start_point": {"row": 114, "column": 63}, "end_point": {"row": 114, "column": 70}}, {"id": 237, "type": "function_definition", "text": "static int32_t& getCacheIndex() {\n static int32_t sExDataIndex = -1;\n return sExDataIndex;\n }", "parent": 38, "children": [238, 239], "start_point": {"row": 116, "column": 2}, "end_point": {"row": 119, "column": 3}}, {"id": 238, "type": "primitive_type", "text": "int32_t", "parent": 237, "children": [], "start_point": {"row": 116, "column": 9}, "end_point": {"row": 116, "column": 16}}, {"id": 239, "type": "function_declarator", "text": "getCacheIndex()", "parent": 237, "children": [240, 241], "start_point": {"row": 116, "column": 18}, "end_point": {"row": 116, "column": 33}}, {"id": 240, "type": "identifier", "text": "getCacheIndex", "parent": 239, "children": [], "start_point": {"row": 116, "column": 18}, "end_point": {"row": 116, "column": 31}}, {"id": 241, "type": "parameter_list", "text": "()", "parent": 239, "children": [], "start_point": {"row": 116, "column": 31}, "end_point": {"row": 116, "column": 33}}, {"id": 242, "type": "declaration", "text": "static int32_t sExDataIndex = -1;", "parent": 237, "children": [243, 244], "start_point": {"row": 117, "column": 4}, "end_point": {"row": 117, "column": 37}}, {"id": 243, "type": "primitive_type", "text": "int32_t", "parent": 242, "children": [], "start_point": {"row": 117, "column": 11}, "end_point": {"row": 117, "column": 18}}, {"id": 244, "type": "init_declarator", "text": "sExDataIndex = -1", "parent": 242, "children": [245, 246, 247], "start_point": {"row": 117, "column": 19}, "end_point": {"row": 117, "column": 36}}, {"id": 245, "type": "identifier", "text": "sExDataIndex", "parent": 244, "children": [], "start_point": {"row": 117, "column": 19}, "end_point": {"row": 117, "column": 31}}, {"id": 246, "type": "=", "text": "=", "parent": 244, "children": [], "start_point": {"row": 117, "column": 32}, "end_point": {"row": 117, "column": 33}}, {"id": 247, "type": "number_literal", "text": "-1", "parent": 244, "children": [], "start_point": {"row": 117, "column": 34}, "end_point": {"row": 117, "column": 36}}, {"id": 248, "type": "return_statement", "text": "return sExDataIndex;", "parent": 237, "children": [249], "start_point": {"row": 118, "column": 4}, "end_point": {"row": 118, "column": 24}}, {"id": 249, "type": "identifier", "text": "sExDataIndex", "parent": 248, "children": [], "start_point": {"row": 118, "column": 11}, "end_point": {"row": 118, "column": 23}}]}, "node_categories": {"declarations": {"functions": [35, 38, 46, 70, 86, 101, 111, 116, 120, 125, 142, 161, 174, 195, 214, 224, 237, 239], "variables": [41, 49, 54, 63, 73, 81, 89, 123, 128, 135, 140, 145, 152, 157, 164, 170, 177, 181, 198, 203, 210, 217, 222, 227, 232, 242], "classes": [185], "imports": [3, 4, 6, 7, 9, 10, 12, 13, 15, 16, 18, 19], "modules": [], "enums": []}, "statements": {"expressions": [], "assignments": [], "loops": [], "conditionals": [21, 22, 23, 26, 32, 34, 36, 37, 39, 42, 44, 47, 50, 52, 53, 55, 57, 58, 59, 60, 64, 66, 67, 68, 71, 74, 76, 77, 78, 82, 84, 87, 90, 92, 93, 94, 98, 100, 102, 104, 108, 110, 112, 117, 121, 126, 129, 131, 134, 136, 139, 143, 146, 148, 151, 153, 156, 158, 162, 165, 168, 171, 173, 175, 178, 182, 186, 188, 190, 192, 196, 199, 202, 204, 206, 207, 208, 209, 211, 213, 215, 218, 221, 225, 228, 231, 233, 236, 240, 245, 249], "returns": [105, 114, 248], "exceptions": []}, "expressions": {"calls": [0], "literals": [5, 8, 11, 14, 17, 20, 62, 80, 96, 115, 247], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [{"node_id": 35, "universal_type": "function", "name": "contains", "text_snippet": "namespace wangle {\n\n/**\n * Callbacks related to SSL session cache\n *\n * This class contains three me"}, {"node_id": 38, "universal_type": "function", "name": "SSLSessionCallbacks", "text_snippet": "class SSLSessionCallbacks {\n public:\n /**\n * Store the session data of the specified identity in "}, {"node_id": 46, "universal_type": "function", "name": "unknown", "text_snippet": "setSSLSession(\n const std::string& identity,\n folly::ssl::SSLSessionUniquePtr session) noe"}, {"node_id": 70, "universal_type": "function", "name": "unknown", "text_snippet": "getSSLSession(\n const std::string& identity) const noexcept"}, {"node_id": 86, "universal_type": "function", "name": "unknown", "text_snippet": "removeSSLSession(const std::string& identity) noexcept"}, {"node_id": 101, "universal_type": "function", "name": "unknown", "text_snippet": "supportsPersistence()"}, {"node_id": 111, "universal_type": "function", "name": "unknown", "text_snippet": "size()"}, {"node_id": 116, "universal_type": "function", "name": "unknown", "text_snippet": "virtual ~SSLSessionCallbacks() {}"}, {"node_id": 120, "universal_type": "function", "name": "unknown", "text_snippet": "SSLSessionCallbacks()"}, {"node_id": 125, "universal_type": "function", "name": "unknown", "text_snippet": "attachCallbacksToContext(\n folly::SSLContext* context,\n SSLSessionCallbacks* callbacks)"}, {"node_id": 142, "universal_type": "function", "name": "unknown", "text_snippet": "detachCallbacksFromContext(\n folly::SSLContext* context,\n SSLSessionCallbacks* callbacks)"}, {"node_id": 161, "universal_type": "function", "name": "unknown", "text_snippet": "getCacheFromContext(SSL_CTX* ctx)"}, {"node_id": 174, "universal_type": "function", "name": "unknown", "text_snippet": "onNewSession(SSL*, SSL_SESSION*)"}, {"node_id": 195, "universal_type": "function", "name": "unknown", "text_snippet": "onNewSession(SSL* ssl, folly::ssl::SSLSessionUniquePtr sessionPtr)\n override"}, {"node_id": 214, "universal_type": "function", "name": "unknown", "text_snippet": "getSessionKeyFromSSL(SSL* ssl)"}, {"node_id": 224, "universal_type": "function", "name": "unknown", "text_snippet": "removeSessionCallback(SSL_CTX* ctx, SSL_SESSION* session)"}, {"node_id": 237, "universal_type": "function", "name": "unknown", "text_snippet": "static int32_t& getCacheIndex() {\n static int32_t sExDataIndex = -1;\n return sExDataIndex;\n }"}, {"node_id": 239, "universal_type": "function", "name": "unknown", "text_snippet": "getCacheIndex()"}], "class_declarations": [{"node_id": 185, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}], "import_statements": [{"node_id": 3, "text": "#include <folly/io/async/AsyncSSLSocket.h>\n"}, {"node_id": 4, "text": "#include"}, {"node_id": 6, "text": "#include <folly/io/async/SSLContext.h>\n"}, {"node_id": 7, "text": "#include"}, {"node_id": 9, "text": "#include <folly/ssl/OpenSSLPtrTypes.h>\n"}, {"node_id": 10, "text": "#include"}, {"node_id": 12, "text": "#include <wangle/client/ssl/SSLSessionCacheUtils.h>\n"}, {"node_id": 13, "text": "#include"}, {"node_id": 15, "text": "#include <wangle/ssl/SSLUtil.h>\n"}, {"node_id": 16, "text": "#include"}, {"node_id": 18, "text": "#include <openssl/ssl.h>\n"}, {"node_id": 19, "text": "#include"}]}, "original_source_code": "/*\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n#pragma once\n\n#include <folly/io/async/AsyncSSLSocket.h>\n#include <folly/io/async/SSLContext.h>\n#include <folly/ssl/OpenSSLPtrTypes.h>\n#include <wangle/client/ssl/SSLSessionCacheUtils.h>\n#include <wangle/ssl/SSLUtil.h>\n\n#include <openssl/ssl.h>\n\n#ifdef OPENSSL_NO_TLSEXT\n#define OPENSSL_TICKETS 0\n#else\n#define OPENSSL_TICKETS OPENSSL_VERSION_NUMBER >= 0x1000105fL\n#endif\n\nnamespace wangle {\n\n/**\n * Callbacks related to SSL session cache\n *\n * This class contains three methods, setSSLSession() to store existing SSL\n * session data to cache, getSSLSession() to retreive cached session\n * data in cache, and removeSSLSession() to remove session data from cache.\n */\nclass SSLSessionCallbacks {\n public:\n /**\n * Store the session data of the specified identity in cache. Note that the\n * implementation must make it's own memory copy of the session data to put\n * into the cache.\n */\n virtual void setSSLSession(\n const std::string& identity,\n folly::ssl::SSLSessionUniquePtr session) noexcept = 0;\n\n /**\n * Return a SSL session if the cache contained session information for the\n * specified identity. It is the caller's responsibility to decrement the\n * reference count of the returned session pointer.\n */\n virtual folly::ssl::SSLSessionUniquePtr getSSLSession(\n const std::string& identity) const noexcept = 0;\n\n /**\n * Remove session data of the specified identity from cache. Return true if\n * there was session data associated with the identity before removal, or\n * false otherwise.\n */\n virtual bool removeSSLSession(const std::string& identity) noexcept = 0;\n\n /**\n * Return true if the underlying cache supports persistence\n */\n virtual bool supportsPersistence() const noexcept {\n return false;\n }\n\n virtual size_t size() const {\n return 0;\n }\n\n virtual ~SSLSessionCallbacks() {}\n\n /**\n * Sets up SSL Session callbacks on a context. The application is\n * responsible for detaching the callbacks from the context.\n */\n static void attachCallbacksToContext(\n folly::SSLContext* context,\n SSLSessionCallbacks* callbacks);\n\n /**\n * Detach the passed in callbacks from the context. If the callbacks are not\n * set on the context, it is unchanged.\n */\n static void detachCallbacksFromContext(\n folly::SSLContext* context,\n SSLSessionCallbacks* callbacks);\n\n static SSLSessionCallbacks* getCacheFromContext(SSL_CTX* ctx);\n\n protected:\n /**\n * Called by ContextSessionCallbacks::onNewSession prior to insertion\n * into the session cache.\n */\n virtual void onNewSession(SSL*, SSL_SESSION*) {}\n\n private:\n struct ContextSessionCallbacks\n : public folly::SSLContext::SessionLifecycleCallbacks {\n void onNewSession(SSL* ssl, folly::ssl::SSLSessionUniquePtr sessionPtr)\n override;\n };\n\n static std::string getSessionKeyFromSSL(SSL* ssl);\n\n static void removeSessionCallback(SSL_CTX* ctx, SSL_SESSION* session);\n\n static int32_t& getCacheIndex() {\n static int32_t sExDataIndex = -1;\n return sExDataIndex;\n }\n};\n\n} // namespace wangle\n"}
80,074
c
/* // Dao Graphics Engine // http://www.daovm.net // // Copyright (c) 2012, <NAME> // All rights reserved. // // Redistribution and use in source and binary forms, with or without modification, // are permitted provided that the following conditions are met: // // * Redistributions of source code must retain the above copyright notice, // this list of conditions and the following disclaimer. // * Redistributions in binary form must reproduce the above copyright notice, // this list of conditions and the following disclaimer in the documentation // and/or other materials provided with the distribution. // // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY // EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES // OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT // SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, // SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT // OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, // OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS // SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ #ifndef __DAO_OPENGL_H__ #define __DAO_OPENGL_H__ #if defined(__APPLE__) //#include <OpenGL/gl.h> #include <OpenGL/gl3.h> #include <GLUT/glut.h> #else #define GL3_PROTOTYPES //#include <GL/gl.h> #include <GL/gl3.h> #define __gl_h_ #include <GL/glut.h> #ifdef FREEGLUT #include <GL/freeglut.h> #endif #endif #include "dao_canvas.h" typedef struct DaoGLVertex2D DaoGLVertex2D; typedef struct DaoGLVertex3D DaoGLVertex3D; typedef struct DaoGLVertex3DVG DaoGLVertex3DVG; typedef struct DaoGLTriangle DaoGLTriangle; typedef struct DaoxShader DaoxShader; typedef struct DaoxBuffer DaoxBuffer; enum DaoxSamplerID { DAOX_DASH_SAMPLER = 2 , DAOX_GRADIENT_SAMPLER }; struct DaoGLVertex2D { struct{ GLfloat x, y; } point; struct{ GLfloat k, l, m, o; } texKLMO; /* texture coordinates or KLM for bezier curves; */ }; struct DaoGLVertex3D { struct{ GLfloat x, y, z; } point; struct{ GLfloat x, y, z; } norm; struct{ GLfloat x, y; } texUV; }; struct DaoGLVertex3DVG { struct{ GLfloat x, y, z; } point; struct{ GLfloat x, y, z; } norm; struct{ GLfloat k, l, m, o; } texKLMO; }; struct DaoGLTriangle { GLint index[3]; }; struct DaoxShader { uint_t vertexShader; uint_t fragmentShader; uint_t program; struct { uint_t vectorGraphics; uint_t projMatrix; uint_t viewMatrix; uint_t modelMatrix; uint_t cameraPosition; uint_t lightCount; uint_t lightSource; uint_t lightIntensity; uint_t ambientColor; uint_t diffuseColor; uint_t specularColor; uint_t fade_factor; uint_t material; uint_t textureCount; uint_t textures[2]; uint_t alphaBlending; uint_t pathLength; uint_t brushColor; uint_t dashCount; uint_t dashSampler; uint_t gradientType; uint_t gradientStops; uint_t gradientPoint1; uint_t gradientPoint2; uint_t gradientRadius; uint_t gradientSampler; } uniforms; struct { uint_t position; uint_t normal; uint_t texCoord; uint_t texMO; uint_t texKLMO; } attributes; struct { uint_t dashSampler; uint_t gradientSampler; } textures; DArray *vertexSources; DArray *fragmentSources; }; void DaoxShader_Init2D( DaoxShader *self ); void DaoxShader_Init3D( DaoxShader *self ); void DaoxShader_Free( DaoxShader *self ); void DaoxShader_AddShader( DaoxShader *self, int type, const char *source ); void DaoxShader_Finalize2D( DaoxShader *self ); void DaoxShader_Finalize3D( DaoxShader *self ); void DaoxShader_MakeGradientSampler( DaoxShader *self, DaoxColorGradient *gradient, int fill ); void DaoxShader_MakeDashSampler( DaoxShader *self, DaoxCanvasState *state ); struct DaoxBuffer { uint_t vertexVAO; uint_t vertexVBO; uint_t triangleVBO; uint_t vertexOffset; uint_t vertexCapacity; uint_t triangleOffset; uint_t triangleCapacity; uint_t vertexSize; /* size of each vertex; */ uint_t triangleSize; /* size of each triangle; */ uint_t traitCount; struct { uint_t uniform; uint_t count; void *offset; } traits[4]; }; void DaoxBuffer_Init( DaoxBuffer *self ); void DaoxBuffer_Init2D( DaoxBuffer *self, int pos, int klmo ); void DaoxBuffer_Init3D( DaoxBuffer *self, int pos, int norm, int texuv, int texmo ); void DaoxBuffer_Init3DVG( DaoxBuffer *self, int pos, int norm, int texuv, int texmo ); void DaoxBuffer_Free( DaoxBuffer *self ); void* DaoxBuffer_MapVertices( DaoxBuffer *self, int count ); DaoGLVertex2D* DaoxBuffer_MapVertices2D( DaoxBuffer *self, int count ); DaoGLVertex3D* DaoxBuffer_MapVertices3D( DaoxBuffer *self, int count ); DaoGLVertex3DVG* DaoxBuffer_MapVertices3DVG( DaoxBuffer *self, int count ); DaoGLTriangle* DaoxBuffer_MapTriangles( DaoxBuffer *self, int count ); void DaoxMatrix4D_Export( DaoxMatrix4D *self, GLfloat matrix[16] ); #endif
29.3
172
(translation_unit) "/*\n// Dao Graphics Engine\n// http://www.daovm.net\n//\n// Copyright (c) 2012, <NAME>\n// All rights reserved.\n//\n// Redistribution and use in source and binary forms, with or without modification,\n// are permitted provided that the following conditions are met:\n//\n// * Redistributions of source code must retain the above copyright notice,\n// this list of conditions and the following disclaimer.\n// * Redistributions in binary form must reproduce the above copyright notice,\n// this list of conditions and the following disclaimer in the documentation\n// and/or other materials provided with the distribution.\n//\n// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY\n// EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES\n// OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT\n// SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,\n// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT\n// OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)\n// HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,\n// OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS\n// SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\n*/\n\n#ifndef __DAO_OPENGL_H__\n#define __DAO_OPENGL_H__\n\n\n\n#if defined(__APPLE__)\n\n //#include <OpenGL/gl.h>\n #include <OpenGL/gl3.h>\n #include <GLUT/glut.h>\n\n#else\n\n #define GL3_PROTOTYPES\n //#include <GL/gl.h>\n #include <GL/gl3.h>\n #define __gl_h_\n #include <GL/glut.h>\n #ifdef FREEGLUT\n #include <GL/freeglut.h>\n #endif\n#endif\n\n\n\n#include "dao_canvas.h"\n\n\n\ntypedef struct DaoGLVertex2D DaoGLVertex2D;\ntypedef struct DaoGLVertex3D DaoGLVertex3D;\ntypedef struct DaoGLVertex3DVG DaoGLVertex3DVG;\ntypedef struct DaoGLTriangle DaoGLTriangle;\ntypedef struct DaoxShader DaoxShader;\ntypedef struct DaoxBuffer DaoxBuffer;\n\n\nenum DaoxSamplerID\n{\n DAOX_DASH_SAMPLER = 2 ,\n DAOX_GRADIENT_SAMPLER\n};\n\n\n\n\nstruct DaoGLVertex2D\n{\n struct{ GLfloat x, y; } point;\n struct{ GLfloat k, l, m, o; } texKLMO; /* texture coordinates or KLM for bezier curves; */\n};\n\nstruct DaoGLVertex3D\n{\n struct{ GLfloat x, y, z; } point;\n struct{ GLfloat x, y, z; } norm;\n struct{ GLfloat x, y; } texUV;\n};\n\nstruct DaoGLVertex3DVG\n{\n struct{ GLfloat x, y, z; } point;\n struct{ GLfloat x, y, z; } norm;\n struct{ GLfloat k, l, m, o; } texKLMO;\n};\n\nstruct DaoGLTriangle\n{\n GLint index[3];\n};\n\n\n\n\n\nstruct DaoxShader\n{\n uint_t vertexShader;\n uint_t fragmentShader;\n uint_t program;\n\n struct {\n uint_t vectorGraphics;\n uint_t projMatrix;\n uint_t viewMatrix;\n uint_t modelMatrix;\n uint_t cameraPosition;\n uint_t lightCount;\n uint_t lightSource;\n uint_t lightIntensity;\n uint_t ambientColor;\n uint_t diffuseColor;\n uint_t specularColor;\n uint_t fade_factor;\n uint_t material;\n uint_t textureCount;\n uint_t textures[2];\n uint_t alphaBlending;\n uint_t pathLength;\n uint_t brushColor;\n uint_t dashCount;\n uint_t dashSampler;\n uint_t gradientType;\n uint_t gradientStops;\n uint_t gradientPoint1;\n uint_t gradientPoint2;\n uint_t gradientRadius;\n uint_t gradientSampler;\n } uniforms;\n\n struct {\n uint_t position;\n uint_t normal;\n uint_t texCoord;\n uint_t texMO;\n uint_t texKLMO;\n } attributes;\n\n struct {\n uint_t dashSampler;\n uint_t gradientSampler;\n } textures;\n\n DArray *vertexSources;\n DArray *fragmentSources;\n};\n\nvoid DaoxShader_Init2D( DaoxShader *self );\nvoid DaoxShader_Init3D( DaoxShader *self );\nvoid DaoxShader_Free( DaoxShader *self );\nvoid DaoxShader_AddShader( DaoxShader *self, int type, const char *source );\nvoid DaoxShader_Finalize2D( DaoxShader *self );\nvoid DaoxShader_Finalize3D( DaoxShader *self );\nvoid DaoxShader_MakeGradientSampler( DaoxShader *self, DaoxColorGradient *gradient, int fill );\nvoid DaoxShader_MakeDashSampler( DaoxShader *self, DaoxCanvasState *state );\n\n\n\n\nstruct DaoxBuffer\n{\n uint_t vertexVAO;\n uint_t vertexVBO;\n uint_t triangleVBO;\n\n uint_t vertexOffset;\n uint_t vertexCapacity;\n uint_t triangleOffset;\n uint_t triangleCapacity;\n\n uint_t vertexSize; /* size of each vertex; */\n uint_t triangleSize; /* size of each triangle; */\n uint_t traitCount;\n\n struct {\n uint_t uniform;\n uint_t count;\n void *offset;\n } traits[4];\n};\n\nvoid DaoxBuffer_Init( DaoxBuffer *self );\nvoid DaoxBuffer_Init2D( DaoxBuffer *self, int pos, int klmo );\nvoid DaoxBuffer_Init3D( DaoxBuffer *self, int pos, int norm, int texuv, int texmo );\nvoid DaoxBuffer_Init3DVG( DaoxBuffer *self, int pos, int norm, int texuv, int texmo );\nvoid DaoxBuffer_Free( DaoxBuffer *self );\n\nvoid* DaoxBuffer_MapVertices( DaoxBuffer *self, int count );\nDaoGLVertex2D* DaoxBuffer_MapVertices2D( DaoxBuffer *self, int count );\nDaoGLVertex3D* DaoxBuffer_MapVertices3D( DaoxBuffer *self, int count );\nDaoGLVertex3DVG* DaoxBuffer_MapVertices3DVG( DaoxBuffer *self, int count );\nDaoGLTriangle* DaoxBuffer_MapTriangles( DaoxBuffer *self, int count );\n\n\n\n\nvoid DaoxMatrix4D_Export( DaoxMatrix4D *self, GLfloat matrix[16] );\n\n#endif\n" (comment) "/*\n// Dao Graphics Engine\n// http://www.daovm.net\n//\n// Copyright (c) 2012, <NAME>\n// All rights reserved.\n//\n// Redistribution and use in source and binary forms, with or without modification,\n// are permitted provided that the following conditions are met:\n//\n// * Redistributions of source code must retain the above copyright notice,\n// this list of conditions and the following disclaimer.\n// * Redistributions in binary form must reproduce the above copyright notice,\n// this list of conditions and the following disclaimer in the documentation\n// and/or other materials provided with the distribution.\n//\n// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY\n// EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES\n// OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT\n// SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,\n// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT\n// OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)\n// HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,\n// OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS\n// SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\n*/" (preproc_ifdef) "#ifndef __DAO_OPENGL_H__\n#define __DAO_OPENGL_H__\n\n\n\n#if defined(__APPLE__)\n\n //#include <OpenGL/gl.h>\n #include <OpenGL/gl3.h>\n #include <GLUT/glut.h>\n\n#else\n\n #define GL3_PROTOTYPES\n //#include <GL/gl.h>\n #include <GL/gl3.h>\n #define __gl_h_\n #include <GL/glut.h>\n #ifdef FREEGLUT\n #include <GL/freeglut.h>\n #endif\n#endif\n\n\n\n#include "dao_canvas.h"\n\n\n\ntypedef struct DaoGLVertex2D DaoGLVertex2D;\ntypedef struct DaoGLVertex3D DaoGLVertex3D;\ntypedef struct DaoGLVertex3DVG DaoGLVertex3DVG;\ntypedef struct DaoGLTriangle DaoGLTriangle;\ntypedef struct DaoxShader DaoxShader;\ntypedef struct DaoxBuffer DaoxBuffer;\n\n\nenum DaoxSamplerID\n{\n DAOX_DASH_SAMPLER = 2 ,\n DAOX_GRADIENT_SAMPLER\n};\n\n\n\n\nstruct DaoGLVertex2D\n{\n struct{ GLfloat x, y; } point;\n struct{ GLfloat k, l, m, o; } texKLMO; /* texture coordinates or KLM for bezier curves; */\n};\n\nstruct DaoGLVertex3D\n{\n struct{ GLfloat x, y, z; } point;\n struct{ GLfloat x, y, z; } norm;\n struct{ GLfloat x, y; } texUV;\n};\n\nstruct DaoGLVertex3DVG\n{\n struct{ GLfloat x, y, z; } point;\n struct{ GLfloat x, y, z; } norm;\n struct{ GLfloat k, l, m, o; } texKLMO;\n};\n\nstruct DaoGLTriangle\n{\n GLint index[3];\n};\n\n\n\n\n\nstruct DaoxShader\n{\n uint_t vertexShader;\n uint_t fragmentShader;\n uint_t program;\n\n struct {\n uint_t vectorGraphics;\n uint_t projMatrix;\n uint_t viewMatrix;\n uint_t modelMatrix;\n uint_t cameraPosition;\n uint_t lightCount;\n uint_t lightSource;\n uint_t lightIntensity;\n uint_t ambientColor;\n uint_t diffuseColor;\n uint_t specularColor;\n uint_t fade_factor;\n uint_t material;\n uint_t textureCount;\n uint_t textures[2];\n uint_t alphaBlending;\n uint_t pathLength;\n uint_t brushColor;\n uint_t dashCount;\n uint_t dashSampler;\n uint_t gradientType;\n uint_t gradientStops;\n uint_t gradientPoint1;\n uint_t gradientPoint2;\n uint_t gradientRadius;\n uint_t gradientSampler;\n } uniforms;\n\n struct {\n uint_t position;\n uint_t normal;\n uint_t texCoord;\n uint_t texMO;\n uint_t texKLMO;\n } attributes;\n\n struct {\n uint_t dashSampler;\n uint_t gradientSampler;\n } textures;\n\n DArray *vertexSources;\n DArray *fragmentSources;\n};\n\nvoid DaoxShader_Init2D( DaoxShader *self );\nvoid DaoxShader_Init3D( DaoxShader *self );\nvoid DaoxShader_Free( DaoxShader *self );\nvoid DaoxShader_AddShader( DaoxShader *self, int type, const char *source );\nvoid DaoxShader_Finalize2D( DaoxShader *self );\nvoid DaoxShader_Finalize3D( DaoxShader *self );\nvoid DaoxShader_MakeGradientSampler( DaoxShader *self, DaoxColorGradient *gradient, int fill );\nvoid DaoxShader_MakeDashSampler( DaoxShader *self, DaoxCanvasState *state );\n\n\n\n\nstruct DaoxBuffer\n{\n uint_t vertexVAO;\n uint_t vertexVBO;\n uint_t triangleVBO;\n\n uint_t vertexOffset;\n uint_t vertexCapacity;\n uint_t triangleOffset;\n uint_t triangleCapacity;\n\n uint_t vertexSize; /* size of each vertex; */\n uint_t triangleSize; /* size of each triangle; */\n uint_t traitCount;\n\n struct {\n uint_t uniform;\n uint_t count;\n void *offset;\n } traits[4];\n};\n\nvoid DaoxBuffer_Init( DaoxBuffer *self );\nvoid DaoxBuffer_Init2D( DaoxBuffer *self, int pos, int klmo );\nvoid DaoxBuffer_Init3D( DaoxBuffer *self, int pos, int norm, int texuv, int texmo );\nvoid DaoxBuffer_Init3DVG( DaoxBuffer *self, int pos, int norm, int texuv, int texmo );\nvoid DaoxBuffer_Free( DaoxBuffer *self );\n\nvoid* DaoxBuffer_MapVertices( DaoxBuffer *self, int count );\nDaoGLVertex2D* DaoxBuffer_MapVertices2D( DaoxBuffer *self, int count );\nDaoGLVertex3D* DaoxBuffer_MapVertices3D( DaoxBuffer *self, int count );\nDaoGLVertex3DVG* DaoxBuffer_MapVertices3DVG( DaoxBuffer *self, int count );\nDaoGLTriangle* DaoxBuffer_MapTriangles( DaoxBuffer *self, int count );\n\n\n\n\nvoid DaoxMatrix4D_Export( DaoxMatrix4D *self, GLfloat matrix[16] );\n\n#endif" (#ifndef) "#ifndef" (identifier) "__DAO_OPENGL_H__" (preproc_def) "#define __DAO_OPENGL_H__\n" (#define) "#define" (identifier) "__DAO_OPENGL_H__" (preproc_if) "#if defined(__APPLE__)\n\n //#include <OpenGL/gl.h>\n #include <OpenGL/gl3.h>\n #include <GLUT/glut.h>\n\n#else\n\n #define GL3_PROTOTYPES\n //#include <GL/gl.h>\n #include <GL/gl3.h>\n #define __gl_h_\n #include <GL/glut.h>\n #ifdef FREEGLUT\n #include <GL/freeglut.h>\n #endif\n#endif" (#if) "#if" (preproc_defined) "defined(__APPLE__)" (defined) "defined" (() "(" (identifier) "__APPLE__" ()) ")" ( ) "\n\n" (comment) "//#include <OpenGL/gl.h>" (preproc_include) "#include <OpenGL/gl3.h>\n" (#include) "#include" (system_lib_string) "<OpenGL/gl3.h>" (preproc_include) "#include <GLUT/glut.h>\n" (#include) "#include" (system_lib_string) "<GLUT/glut.h>" (preproc_else) "#else\n\n #define GL3_PROTOTYPES\n //#include <GL/gl.h>\n #include <GL/gl3.h>\n #define __gl_h_\n #include <GL/glut.h>\n #ifdef FREEGLUT\n #include <GL/freeglut.h>\n #endif" (#else) "#else" (preproc_def) "#define GL3_PROTOTYPES\n" (#define) "#define" (identifier) "GL3_PROTOTYPES" (comment) "//#include <GL/gl.h>" (preproc_include) "#include <GL/gl3.h>\n" (#include) "#include" (system_lib_string) "<GL/gl3.h>" (preproc_def) "#define __gl_h_\n" (#define) "#define" (identifier) "__gl_h_" (preproc_include) "#include <GL/glut.h>\n" (#include) "#include" (system_lib_string) "<GL/glut.h>" (preproc_ifdef) "#ifdef FREEGLUT\n #include <GL/freeglut.h>\n #endif" (#ifdef) "#ifdef" (identifier) "FREEGLUT" (preproc_include) "#include <GL/freeglut.h>\n" (#include) "#include" (system_lib_string) "<GL/freeglut.h>" (#endif) "#endif" (#endif) "#endif" (preproc_include) "#include "dao_canvas.h"\n" (#include) "#include" (string_literal) ""dao_canvas.h"" (") """ (string_content) "dao_canvas.h" (") """ (type_definition) "typedef struct DaoGLVertex2D DaoGLVertex2D;" (typedef) "typedef" (struct_specifier) "struct DaoGLVertex2D" (struct) "struct" (type_identifier) "DaoGLVertex2D" (type_identifier) "DaoGLVertex2D" (;) ";" (type_definition) "typedef struct DaoGLVertex3D DaoGLVertex3D;" (typedef) "typedef" (struct_specifier) "struct DaoGLVertex3D" (struct) "struct" (type_identifier) "DaoGLVertex3D" (type_identifier) "DaoGLVertex3D" (;) ";" (type_definition) "typedef struct DaoGLVertex3DVG DaoGLVertex3DVG;" (typedef) "typedef" (struct_specifier) "struct DaoGLVertex3DVG" (struct) "struct" (type_identifier) "DaoGLVertex3DVG" (type_identifier) "DaoGLVertex3DVG" (;) ";" (type_definition) "typedef struct DaoGLTriangle DaoGLTriangle;" (typedef) "typedef" (struct_specifier) "struct DaoGLTriangle" (struct) "struct" (type_identifier) "DaoGLTriangle" (type_identifier) "DaoGLTriangle" (;) ";" (type_definition) "typedef struct DaoxShader DaoxShader;" (typedef) "typedef" (struct_specifier) "struct DaoxShader" (struct) "struct" (type_identifier) "DaoxShader" (type_identifier) "DaoxShader" (;) ";" (type_definition) "typedef struct DaoxBuffer DaoxBuffer;" (typedef) "typedef" (struct_specifier) "struct DaoxBuffer" (struct) "struct" (type_identifier) "DaoxBuffer" (type_identifier) "DaoxBuffer" (;) ";" (enum_specifier) "enum DaoxSamplerID\n{\n DAOX_DASH_SAMPLER = 2 ,\n DAOX_GRADIENT_SAMPLER\n}" (enum) "enum" (type_identifier) "DaoxSamplerID" (enumerator_list) "{\n DAOX_DASH_SAMPLER = 2 ,\n DAOX_GRADIENT_SAMPLER\n}" ({) "{" (enumerator) "DAOX_DASH_SAMPLER = 2" (identifier) "DAOX_DASH_SAMPLER" (=) "=" (number_literal) "2" (,) "," (enumerator) "DAOX_GRADIENT_SAMPLER" (identifier) "DAOX_GRADIENT_SAMPLER" (}) "}" (;) ";" (struct_specifier) "struct DaoGLVertex2D\n{\n struct{ GLfloat x, y; } point;\n struct{ GLfloat k, l, m, o; } texKLMO; /* texture coordinates or KLM for bezier curves; */\n}" (struct) "struct" (type_identifier) "DaoGLVertex2D" (field_declaration_list) "{\n struct{ GLfloat x, y; } point;\n struct{ GLfloat k, l, m, o; } texKLMO; /* texture coordinates or KLM for bezier curves; */\n}" ({) "{" (field_declaration) "struct{ GLfloat x, y; } point;" (struct_specifier) "struct{ GLfloat x, y; }" (struct) "struct" (field_declaration_list) "{ GLfloat x, y; }" ({) "{" (field_declaration) "GLfloat x, y;" (type_identifier) "GLfloat" (field_identifier) "x" (,) "," (field_identifier) "y" (;) ";" (}) "}" (field_identifier) "point" (;) ";" (field_declaration) "struct{ GLfloat k, l, m, o; } texKLMO;" (struct_specifier) "struct{ GLfloat k, l, m, o; }" (struct) "struct" (field_declaration_list) "{ GLfloat k, l, m, o; }" ({) "{" (field_declaration) "GLfloat k, l, m, o;" (type_identifier) "GLfloat" (field_identifier) "k" (,) "," (field_identifier) "l" (,) "," (field_identifier) "m" (,) "," (field_identifier) "o" (;) ";" (}) "}" (field_identifier) "texKLMO" (;) ";" (comment) "/* texture coordinates or KLM for bezier curves; */" (}) "}" (;) ";" (struct_specifier) "struct DaoGLVertex3D\n{\n struct{ GLfloat x, y, z; } point;\n struct{ GLfloat x, y, z; } norm;\n struct{ GLfloat x, y; } texUV;\n}" (struct) "struct" (type_identifier) "DaoGLVertex3D" (field_declaration_list) "{\n struct{ GLfloat x, y, z; } point;\n struct{ GLfloat x, y, z; } norm;\n struct{ GLfloat x, y; } texUV;\n}" ({) "{" (field_declaration) "struct{ GLfloat x, y, z; } point;" (struct_specifier) "struct{ GLfloat x, y, z; }" (struct) "struct" (field_declaration_list) "{ GLfloat x, y, z; }" ({) "{" (field_declaration) "GLfloat x, y, z;" (type_identifier) "GLfloat" (field_identifier) "x" (,) "," (field_identifier) "y" (,) "," (field_identifier) "z" (;) ";" (}) "}" (field_identifier) "point" (;) ";" (field_declaration) "struct{ GLfloat x, y, z; } norm;" (struct_specifier) "struct{ GLfloat x, y, z; }" (struct) "struct" (field_declaration_list) "{ GLfloat x, y, z; }" ({) "{" (field_declaration) "GLfloat x, y, z;" (type_identifier) "GLfloat" (field_identifier) "x" (,) "," (field_identifier) "y" (,) "," (field_identifier) "z" (;) ";" (}) "}" (field_identifier) "norm" (;) ";" (field_declaration) "struct{ GLfloat x, y; } texUV;" (struct_specifier) "struct{ GLfloat x, y; }" (struct) "struct" (field_declaration_list) "{ GLfloat x, y; }" ({) "{" (field_declaration) "GLfloat x, y;" (type_identifier) "GLfloat" (field_identifier) "x" (,) "," (field_identifier) "y" (;) ";" (}) "}" (field_identifier) "texUV" (;) ";" (}) "}" (;) ";" (struct_specifier) "struct DaoGLVertex3DVG\n{\n struct{ GLfloat x, y, z; } point;\n struct{ GLfloat x, y, z; } norm;\n struct{ GLfloat k, l, m, o; } texKLMO;\n}" (struct) "struct" (type_identifier) "DaoGLVertex3DVG" (field_declaration_list) "{\n struct{ GLfloat x, y, z; } point;\n struct{ GLfloat x, y, z; } norm;\n struct{ GLfloat k, l, m, o; } texKLMO;\n}" ({) "{" (field_declaration) "struct{ GLfloat x, y, z; } point;" (struct_specifier) "struct{ GLfloat x, y, z; }" (struct) "struct" (field_declaration_list) "{ GLfloat x, y, z; }" ({) "{" (field_declaration) "GLfloat x, y, z;" (type_identifier) "GLfloat" (field_identifier) "x" (,) "," (field_identifier) "y" (,) "," (field_identifier) "z" (;) ";" (}) "}" (field_identifier) "point" (;) ";" (field_declaration) "struct{ GLfloat x, y, z; } norm;" (struct_specifier) "struct{ GLfloat x, y, z; }" (struct) "struct" (field_declaration_list) "{ GLfloat x, y, z; }" ({) "{" (field_declaration) "GLfloat x, y, z;" (type_identifier) "GLfloat" (field_identifier) "x" (,) "," (field_identifier) "y" (,) "," (field_identifier) "z" (;) ";" (}) "}" (field_identifier) "norm" (;) ";" (field_declaration) "struct{ GLfloat k, l, m, o; } texKLMO;" (struct_specifier) "struct{ GLfloat k, l, m, o; }" (struct) "struct" (field_declaration_list) "{ GLfloat k, l, m, o; }" ({) "{" (field_declaration) "GLfloat k, l, m, o;" (type_identifier) "GLfloat" (field_identifier) "k" (,) "," (field_identifier) "l" (,) "," (field_identifier) "m" (,) "," (field_identifier) "o" (;) ";" (}) "}" (field_identifier) "texKLMO" (;) ";" (}) "}" (;) ";" (struct_specifier) "struct DaoGLTriangle\n{\n GLint index[3];\n}" (struct) "struct" (type_identifier) "DaoGLTriangle" (field_declaration_list) "{\n GLint index[3];\n}" ({) "{" (field_declaration) "GLint index[3];" (type_identifier) "GLint" (array_declarator) "index[3]" (field_identifier) "index" ([) "[" (number_literal) "3" (]) "]" (;) ";" (}) "}" (;) ";" (struct_specifier) "struct DaoxShader\n{\n uint_t vertexShader;\n uint_t fragmentShader;\n uint_t program;\n\n struct {\n uint_t vectorGraphics;\n uint_t projMatrix;\n uint_t viewMatrix;\n uint_t modelMatrix;\n uint_t cameraPosition;\n uint_t lightCount;\n uint_t lightSource;\n uint_t lightIntensity;\n uint_t ambientColor;\n uint_t diffuseColor;\n uint_t specularColor;\n uint_t fade_factor;\n uint_t material;\n uint_t textureCount;\n uint_t textures[2];\n uint_t alphaBlending;\n uint_t pathLength;\n uint_t brushColor;\n uint_t dashCount;\n uint_t dashSampler;\n uint_t gradientType;\n uint_t gradientStops;\n uint_t gradientPoint1;\n uint_t gradientPoint2;\n uint_t gradientRadius;\n uint_t gradientSampler;\n } uniforms;\n\n struct {\n uint_t position;\n uint_t normal;\n uint_t texCoord;\n uint_t texMO;\n uint_t texKLMO;\n } attributes;\n\n struct {\n uint_t dashSampler;\n uint_t gradientSampler;\n } textures;\n\n DArray *vertexSources;\n DArray *fragmentSources;\n}" (struct) "struct" (type_identifier) "DaoxShader" (field_declaration_list) "{\n uint_t vertexShader;\n uint_t fragmentShader;\n uint_t program;\n\n struct {\n uint_t vectorGraphics;\n uint_t projMatrix;\n uint_t viewMatrix;\n uint_t modelMatrix;\n uint_t cameraPosition;\n uint_t lightCount;\n uint_t lightSource;\n uint_t lightIntensity;\n uint_t ambientColor;\n uint_t diffuseColor;\n uint_t specularColor;\n uint_t fade_factor;\n uint_t material;\n uint_t textureCount;\n uint_t textures[2];\n uint_t alphaBlending;\n uint_t pathLength;\n uint_t brushColor;\n uint_t dashCount;\n uint_t dashSampler;\n uint_t gradientType;\n uint_t gradientStops;\n uint_t gradientPoint1;\n uint_t gradientPoint2;\n uint_t gradientRadius;\n uint_t gradientSampler;\n } uniforms;\n\n struct {\n uint_t position;\n uint_t normal;\n uint_t texCoord;\n uint_t texMO;\n uint_t texKLMO;\n } attributes;\n\n struct {\n uint_t dashSampler;\n uint_t gradientSampler;\n } textures;\n\n DArray *vertexSources;\n DArray *fragmentSources;\n}" ({) "{" (field_declaration) "uint_t vertexShader;" (type_identifier) "uint_t" (field_identifier) "vertexShader" (;) ";" (field_declaration) "uint_t fragmentShader;" (type_identifier) "uint_t" (field_identifier) "fragmentShader" (;) ";" (field_declaration) "uint_t program;" (type_identifier) "uint_t" (field_identifier) "program" (;) ";" (field_declaration) "struct {\n uint_t vectorGraphics;\n uint_t projMatrix;\n uint_t viewMatrix;\n uint_t modelMatrix;\n uint_t cameraPosition;\n uint_t lightCount;\n uint_t lightSource;\n uint_t lightIntensity;\n uint_t ambientColor;\n uint_t diffuseColor;\n uint_t specularColor;\n uint_t fade_factor;\n uint_t material;\n uint_t textureCount;\n uint_t textures[2];\n uint_t alphaBlending;\n uint_t pathLength;\n uint_t brushColor;\n uint_t dashCount;\n uint_t dashSampler;\n uint_t gradientType;\n uint_t gradientStops;\n uint_t gradientPoint1;\n uint_t gradientPoint2;\n uint_t gradientRadius;\n uint_t gradientSampler;\n } uniforms;" (struct_specifier) "struct {\n uint_t vectorGraphics;\n uint_t projMatrix;\n uint_t viewMatrix;\n uint_t modelMatrix;\n uint_t cameraPosition;\n uint_t lightCount;\n uint_t lightSource;\n uint_t lightIntensity;\n uint_t ambientColor;\n uint_t diffuseColor;\n uint_t specularColor;\n uint_t fade_factor;\n uint_t material;\n uint_t textureCount;\n uint_t textures[2];\n uint_t alphaBlending;\n uint_t pathLength;\n uint_t brushColor;\n uint_t dashCount;\n uint_t dashSampler;\n uint_t gradientType;\n uint_t gradientStops;\n uint_t gradientPoint1;\n uint_t gradientPoint2;\n uint_t gradientRadius;\n uint_t gradientSampler;\n }" (struct) "struct" (field_declaration_list) "{\n uint_t vectorGraphics;\n uint_t projMatrix;\n uint_t viewMatrix;\n uint_t modelMatrix;\n uint_t cameraPosition;\n uint_t lightCount;\n uint_t lightSource;\n uint_t lightIntensity;\n uint_t ambientColor;\n uint_t diffuseColor;\n uint_t specularColor;\n uint_t fade_factor;\n uint_t material;\n uint_t textureCount;\n uint_t textures[2];\n uint_t alphaBlending;\n uint_t pathLength;\n uint_t brushColor;\n uint_t dashCount;\n uint_t dashSampler;\n uint_t gradientType;\n uint_t gradientStops;\n uint_t gradientPoint1;\n uint_t gradientPoint2;\n uint_t gradientRadius;\n uint_t gradientSampler;\n }" ({) "{" (field_declaration) "uint_t vectorGraphics;" (type_identifier) "uint_t" (field_identifier) "vectorGraphics" (;) ";" (field_declaration) "uint_t projMatrix;" (type_identifier) "uint_t" (field_identifier) "projMatrix" (;) ";" (field_declaration) "uint_t viewMatrix;" (type_identifier) "uint_t" (field_identifier) "viewMatrix" (;) ";" (field_declaration) "uint_t modelMatrix;" (type_identifier) "uint_t" (field_identifier) "modelMatrix" (;) ";" (field_declaration) "uint_t cameraPosition;" (type_identifier) "uint_t" (field_identifier) "cameraPosition" (;) ";" (field_declaration) "uint_t lightCount;" (type_identifier) "uint_t" (field_identifier) "lightCount" (;) ";" (field_declaration) "uint_t lightSource;" (type_identifier) "uint_t" (field_identifier) "lightSource" (;) ";" (field_declaration) "uint_t lightIntensity;" (type_identifier) "uint_t" (field_identifier) "lightIntensity" (;) ";" (field_declaration) "uint_t ambientColor;" (type_identifier) "uint_t" (field_identifier) "ambientColor" (;) ";" (field_declaration) "uint_t diffuseColor;" (type_identifier) "uint_t" (field_identifier) "diffuseColor" (;) ";" (field_declaration) "uint_t specularColor;" (type_identifier) "uint_t" (field_identifier) "specularColor" (;) ";" (field_declaration) "uint_t fade_factor;" (type_identifier) "uint_t" (field_identifier) "fade_factor" (;) ";" (field_declaration) "uint_t material;" (type_identifier) "uint_t" (field_identifier) "material" (;) ";" (field_declaration) "uint_t textureCount;" (type_identifier) "uint_t" (field_identifier) "textureCount" (;) ";" (field_declaration) "uint_t textures[2];" (type_identifier) "uint_t" (array_declarator) "textures[2]" (field_identifier) "textures" ([) "[" (number_literal) "2" (]) "]" (;) ";" (field_declaration) "uint_t alphaBlending;" (type_identifier) "uint_t" (field_identifier) "alphaBlending" (;) ";" (field_declaration) "uint_t pathLength;" (type_identifier) "uint_t" (field_identifier) "pathLength" (;) ";" (field_declaration) "uint_t brushColor;" (type_identifier) "uint_t" (field_identifier) "brushColor" (;) ";" (field_declaration) "uint_t dashCount;" (type_identifier) "uint_t" (field_identifier) "dashCount" (;) ";" (field_declaration) "uint_t dashSampler;" (type_identifier) "uint_t" (field_identifier) "dashSampler" (;) ";" (field_declaration) "uint_t gradientType;" (type_identifier) "uint_t" (field_identifier) "gradientType" (;) ";" (field_declaration) "uint_t gradientStops;" (type_identifier) "uint_t" (field_identifier) "gradientStops" (;) ";" (field_declaration) "uint_t gradientPoint1;" (type_identifier) "uint_t" (field_identifier) "gradientPoint1" (;) ";" (field_declaration) "uint_t gradientPoint2;" (type_identifier) "uint_t" (field_identifier) "gradientPoint2" (;) ";" (field_declaration) "uint_t gradientRadius;" (type_identifier) "uint_t" (field_identifier) "gradientRadius" (;) ";" (field_declaration) "uint_t gradientSampler;" (type_identifier) "uint_t" (field_identifier) "gradientSampler" (;) ";" (}) "}" (field_identifier) "uniforms" (;) ";" (field_declaration) "struct {\n uint_t position;\n uint_t normal;\n uint_t texCoord;\n uint_t texMO;\n uint_t texKLMO;\n } attributes;" (struct_specifier) "struct {\n uint_t position;\n uint_t normal;\n uint_t texCoord;\n uint_t texMO;\n uint_t texKLMO;\n }" (struct) "struct" (field_declaration_list) "{\n uint_t position;\n uint_t normal;\n uint_t texCoord;\n uint_t texMO;\n uint_t texKLMO;\n }" ({) "{" (field_declaration) "uint_t position;" (type_identifier) "uint_t" (field_identifier) "position" (;) ";" (field_declaration) "uint_t normal;" (type_identifier) "uint_t" (field_identifier) "normal" (;) ";" (field_declaration) "uint_t texCoord;" (type_identifier) "uint_t" (field_identifier) "texCoord" (;) ";" (field_declaration) "uint_t texMO;" (type_identifier) "uint_t" (field_identifier) "texMO" (;) ";" (field_declaration) "uint_t texKLMO;" (type_identifier) "uint_t" (field_identifier) "texKLMO" (;) ";" (}) "}" (field_identifier) "attributes" (;) ";" (field_declaration) "struct {\n uint_t dashSampler;\n uint_t gradientSampler;\n } textures;" (struct_specifier) "struct {\n uint_t dashSampler;\n uint_t gradientSampler;\n }" (struct) "struct" (field_declaration_list) "{\n uint_t dashSampler;\n uint_t gradientSampler;\n }" ({) "{" (field_declaration) "uint_t dashSampler;" (type_identifier) "uint_t" (field_identifier) "dashSampler" (;) ";" (field_declaration) "uint_t gradientSampler;" (type_identifier) "uint_t" (field_identifier) "gradientSampler" (;) ";" (}) "}" (field_identifier) "textures" (;) ";" (field_declaration) "DArray *vertexSources;" (type_identifier) "DArray" (pointer_declarator) "*vertexSources" (*) "*" (field_identifier) "vertexSources" (;) ";" (field_declaration) "DArray *fragmentSources;" (type_identifier) "DArray" (pointer_declarator) "*fragmentSources" (*) "*" (field_identifier) "fragmentSources" (;) ";" (}) "}" (;) ";" (declaration) "void DaoxShader_Init2D( DaoxShader *self );" (primitive_type) "void" (function_declarator) "DaoxShader_Init2D( DaoxShader *self )" (identifier) "DaoxShader_Init2D" (parameter_list) "( DaoxShader *self )" (() "(" (parameter_declaration) "DaoxShader *self" (type_identifier) "DaoxShader" (pointer_declarator) "*self" (*) "*" (identifier) "self" ()) ")" (;) ";" (declaration) "void DaoxShader_Init3D( DaoxShader *self );" (primitive_type) "void" (function_declarator) "DaoxShader_Init3D( DaoxShader *self )" (identifier) "DaoxShader_Init3D" (parameter_list) "( DaoxShader *self )" (() "(" (parameter_declaration) "DaoxShader *self" (type_identifier) "DaoxShader" (pointer_declarator) "*self" (*) "*" (identifier) "self" ()) ")" (;) ";" (declaration) "void DaoxShader_Free( DaoxShader *self );" (primitive_type) "void" (function_declarator) "DaoxShader_Free( DaoxShader *self )" (identifier) "DaoxShader_Free" (parameter_list) "( DaoxShader *self )" (() "(" (parameter_declaration) "DaoxShader *self" (type_identifier) "DaoxShader" (pointer_declarator) "*self" (*) "*" (identifier) "self" ()) ")" (;) ";" (declaration) "void DaoxShader_AddShader( DaoxShader *self, int type, const char *source );" (primitive_type) "void" (function_declarator) "DaoxShader_AddShader( DaoxShader *self, int type, const char *source )" (identifier) "DaoxShader_AddShader" (parameter_list) "( DaoxShader *self, int type, const char *source )" (() "(" (parameter_declaration) "DaoxShader *self" (type_identifier) "DaoxShader" (pointer_declarator) "*self" (*) "*" (identifier) "self" (,) "," (parameter_declaration) "int type" (primitive_type) "int" (identifier) "type" (,) "," (parameter_declaration) "const char *source" (type_qualifier) "const" (const) "const" (primitive_type) "char" (pointer_declarator) "*source" (*) "*" (identifier) "source" ()) ")" (;) ";" (declaration) "void DaoxShader_Finalize2D( DaoxShader *self );" (primitive_type) "void" (function_declarator) "DaoxShader_Finalize2D( DaoxShader *self )" (identifier) "DaoxShader_Finalize2D" (parameter_list) "( DaoxShader *self )" (() "(" (parameter_declaration) "DaoxShader *self" (type_identifier) "DaoxShader" (pointer_declarator) "*self" (*) "*" (identifier) "self" ()) ")" (;) ";" (declaration) "void DaoxShader_Finalize3D( DaoxShader *self );" (primitive_type) "void" (function_declarator) "DaoxShader_Finalize3D( DaoxShader *self )" (identifier) "DaoxShader_Finalize3D" (parameter_list) "( DaoxShader *self )" (() "(" (parameter_declaration) "DaoxShader *self" (type_identifier) "DaoxShader" (pointer_declarator) "*self" (*) "*" (identifier) "self" ()) ")" (;) ";" (declaration) "void DaoxShader_MakeGradientSampler( DaoxShader *self, DaoxColorGradient *gradient, int fill );" (primitive_type) "void" (function_declarator) "DaoxShader_MakeGradientSampler( DaoxShader *self, DaoxColorGradient *gradient, int fill )" (identifier) "DaoxShader_MakeGradientSampler" (parameter_list) "( DaoxShader *self, DaoxColorGradient *gradient, int fill )" (() "(" (parameter_declaration) "DaoxShader *self" (type_identifier) "DaoxShader" (pointer_declarator) "*self" (*) "*" (identifier) "self" (,) "," (parameter_declaration) "DaoxColorGradient *gradient" (type_identifier) "DaoxColorGradient" (pointer_declarator) "*gradient" (*) "*" (identifier) "gradient" (,) "," (parameter_declaration) "int fill" (primitive_type) "int" (identifier) "fill" ()) ")" (;) ";" (declaration) "void DaoxShader_MakeDashSampler( DaoxShader *self, DaoxCanvasState *state );" (primitive_type) "void" (function_declarator) "DaoxShader_MakeDashSampler( DaoxShader *self, DaoxCanvasState *state )" (identifier) "DaoxShader_MakeDashSampler" (parameter_list) "( DaoxShader *self, DaoxCanvasState *state )" (() "(" (parameter_declaration) "DaoxShader *self" (type_identifier) "DaoxShader" (pointer_declarator) "*self" (*) "*" (identifier) "self" (,) "," (parameter_declaration) "DaoxCanvasState *state" (type_identifier) "DaoxCanvasState" (pointer_declarator) "*state" (*) "*" (identifier) "state" ()) ")" (;) ";" (struct_specifier) "struct DaoxBuffer\n{\n uint_t vertexVAO;\n uint_t vertexVBO;\n uint_t triangleVBO;\n\n uint_t vertexOffset;\n uint_t vertexCapacity;\n uint_t triangleOffset;\n uint_t triangleCapacity;\n\n uint_t vertexSize; /* size of each vertex; */\n uint_t triangleSize; /* size of each triangle; */\n uint_t traitCount;\n\n struct {\n uint_t uniform;\n uint_t count;\n void *offset;\n } traits[4];\n}" (struct) "struct" (type_identifier) "DaoxBuffer" (field_declaration_list) "{\n uint_t vertexVAO;\n uint_t vertexVBO;\n uint_t triangleVBO;\n\n uint_t vertexOffset;\n uint_t vertexCapacity;\n uint_t triangleOffset;\n uint_t triangleCapacity;\n\n uint_t vertexSize; /* size of each vertex; */\n uint_t triangleSize; /* size of each triangle; */\n uint_t traitCount;\n\n struct {\n uint_t uniform;\n uint_t count;\n void *offset;\n } traits[4];\n}" ({) "{" (field_declaration) "uint_t vertexVAO;" (type_identifier) "uint_t" (field_identifier) "vertexVAO" (;) ";" (field_declaration) "uint_t vertexVBO;" (type_identifier) "uint_t" (field_identifier) "vertexVBO" (;) ";" (field_declaration) "uint_t triangleVBO;" (type_identifier) "uint_t" (field_identifier) "triangleVBO" (;) ";" (field_declaration) "uint_t vertexOffset;" (type_identifier) "uint_t" (field_identifier) "vertexOffset" (;) ";" (field_declaration) "uint_t vertexCapacity;" (type_identifier) "uint_t" (field_identifier) "vertexCapacity" (;) ";" (field_declaration) "uint_t triangleOffset;" (type_identifier) "uint_t" (field_identifier) "triangleOffset" (;) ";" (field_declaration) "uint_t triangleCapacity;" (type_identifier) "uint_t" (field_identifier) "triangleCapacity" (;) ";" (field_declaration) "uint_t vertexSize;" (type_identifier) "uint_t" (field_identifier) "vertexSize" (;) ";" (comment) "/* size of each vertex; */" (field_declaration) "uint_t triangleSize;" (type_identifier) "uint_t" (field_identifier) "triangleSize" (;) ";" (comment) "/* size of each triangle; */" (field_declaration) "uint_t traitCount;" (type_identifier) "uint_t" (field_identifier) "traitCount" (;) ";" (field_declaration) "struct {\n uint_t uniform;\n uint_t count;\n void *offset;\n } traits[4];" (struct_specifier) "struct {\n uint_t uniform;\n uint_t count;\n void *offset;\n }" (struct) "struct" (field_declaration_list) "{\n uint_t uniform;\n uint_t count;\n void *offset;\n }" ({) "{" (field_declaration) "uint_t uniform;" (type_identifier) "uint_t" (field_identifier) "uniform" (;) ";" (field_declaration) "uint_t count;" (type_identifier) "uint_t" (field_identifier) "count" (;) ";" (field_declaration) "void *offset;" (primitive_type) "void" (pointer_declarator) "*offset" (*) "*" (field_identifier) "offset" (;) ";" (}) "}" (array_declarator) "traits[4]" (field_identifier) "traits" ([) "[" (number_literal) "4" (]) "]" (;) ";" (}) "}" (;) ";" (declaration) "void DaoxBuffer_Init( DaoxBuffer *self );" (primitive_type) "void" (function_declarator) "DaoxBuffer_Init( DaoxBuffer *self )" (identifier) "DaoxBuffer_Init" (parameter_list) "( DaoxBuffer *self )" (() "(" (parameter_declaration) "DaoxBuffer *self" (type_identifier) "DaoxBuffer" (pointer_declarator) "*self" (*) "*" (identifier) "self" ()) ")" (;) ";" (declaration) "void DaoxBuffer_Init2D( DaoxBuffer *self, int pos, int klmo );" (primitive_type) "void" (function_declarator) "DaoxBuffer_Init2D( DaoxBuffer *self, int pos, int klmo )" (identifier) "DaoxBuffer_Init2D" (parameter_list) "( DaoxBuffer *self, int pos, int klmo )" (() "(" (parameter_declaration) "DaoxBuffer *self" (type_identifier) "DaoxBuffer" (pointer_declarator) "*self" (*) "*" (identifier) "self" (,) "," (parameter_declaration) "int pos" (primitive_type) "int" (identifier) "pos" (,) "," (parameter_declaration) "int klmo" (primitive_type) "int" (identifier) "klmo" ()) ")" (;) ";" (declaration) "void DaoxBuffer_Init3D( DaoxBuffer *self, int pos, int norm, int texuv, int texmo );" (primitive_type) "void" (function_declarator) "DaoxBuffer_Init3D( DaoxBuffer *self, int pos, int norm, int texuv, int texmo )" (identifier) "DaoxBuffer_Init3D" (parameter_list) "( DaoxBuffer *self, int pos, int norm, int texuv, int texmo )" (() "(" (parameter_declaration) "DaoxBuffer *self" (type_identifier) "DaoxBuffer" (pointer_declarator) "*self" (*) "*" (identifier) "self" (,) "," (parameter_declaration) "int pos" (primitive_type) "int" (identifier) "pos" (,) "," (parameter_declaration) "int norm" (primitive_type) "int" (identifier) "norm" (,) "," (parameter_declaration) "int texuv" (primitive_type) "int" (identifier) "texuv" (,) "," (parameter_declaration) "int texmo" (primitive_type) "int" (identifier) "texmo" ()) ")" (;) ";" (declaration) "void DaoxBuffer_Init3DVG( DaoxBuffer *self, int pos, int norm, int texuv, int texmo );" (primitive_type) "void" (function_declarator) "DaoxBuffer_Init3DVG( DaoxBuffer *self, int pos, int norm, int texuv, int texmo )" (identifier) "DaoxBuffer_Init3DVG" (parameter_list) "( DaoxBuffer *self, int pos, int norm, int texuv, int texmo )" (() "(" (parameter_declaration) "DaoxBuffer *self" (type_identifier) "DaoxBuffer" (pointer_declarator) "*self" (*) "*" (identifier) "self" (,) "," (parameter_declaration) "int pos" (primitive_type) "int" (identifier) "pos" (,) "," (parameter_declaration) "int norm" (primitive_type) "int" (identifier) "norm" (,) "," (parameter_declaration) "int texuv" (primitive_type) "int" (identifier) "texuv" (,) "," (parameter_declaration) "int texmo" (primitive_type) "int" (identifier) "texmo" ()) ")" (;) ";" (declaration) "void DaoxBuffer_Free( DaoxBuffer *self );" (primitive_type) "void" (function_declarator) "DaoxBuffer_Free( DaoxBuffer *self )" (identifier) "DaoxBuffer_Free" (parameter_list) "( DaoxBuffer *self )" (() "(" (parameter_declaration) "DaoxBuffer *self" (type_identifier) "DaoxBuffer" (pointer_declarator) "*self" (*) "*" (identifier) "self" ()) ")" (;) ";" (declaration) "void* DaoxBuffer_MapVertices( DaoxBuffer *self, int count );" (primitive_type) "void" (pointer_declarator) "* DaoxBuffer_MapVertices( DaoxBuffer *self, int count )" (*) "*" (function_declarator) "DaoxBuffer_MapVertices( DaoxBuffer *self, int count )" (identifier) "DaoxBuffer_MapVertices" (parameter_list) "( DaoxBuffer *self, int count )" (() "(" (parameter_declaration) "DaoxBuffer *self" (type_identifier) "DaoxBuffer" (pointer_declarator) "*self" (*) "*" (identifier) "self" (,) "," (parameter_declaration) "int count" (primitive_type) "int" (identifier) "count" ()) ")" (;) ";" (declaration) "DaoGLVertex2D* DaoxBuffer_MapVertices2D( DaoxBuffer *self, int count );" (type_identifier) "DaoGLVertex2D" (pointer_declarator) "* DaoxBuffer_MapVertices2D( DaoxBuffer *self, int count )" (*) "*" (function_declarator) "DaoxBuffer_MapVertices2D( DaoxBuffer *self, int count )" (identifier) "DaoxBuffer_MapVertices2D" (parameter_list) "( DaoxBuffer *self, int count )" (() "(" (parameter_declaration) "DaoxBuffer *self" (type_identifier) "DaoxBuffer" (pointer_declarator) "*self" (*) "*" (identifier) "self" (,) "," (parameter_declaration) "int count" (primitive_type) "int" (identifier) "count" ()) ")" (;) ";" (declaration) "DaoGLVertex3D* DaoxBuffer_MapVertices3D( DaoxBuffer *self, int count );" (type_identifier) "DaoGLVertex3D" (pointer_declarator) "* DaoxBuffer_MapVertices3D( DaoxBuffer *self, int count )" (*) "*" (function_declarator) "DaoxBuffer_MapVertices3D( DaoxBuffer *self, int count )" (identifier) "DaoxBuffer_MapVertices3D" (parameter_list) "( DaoxBuffer *self, int count )" (() "(" (parameter_declaration) "DaoxBuffer *self" (type_identifier) "DaoxBuffer" (pointer_declarator) "*self" (*) "*" (identifier) "self" (,) "," (parameter_declaration) "int count" (primitive_type) "int" (identifier) "count" ()) ")" (;) ";" (declaration) "DaoGLVertex3DVG* DaoxBuffer_MapVertices3DVG( DaoxBuffer *self, int count );" (type_identifier) "DaoGLVertex3DVG" (pointer_declarator) "* DaoxBuffer_MapVertices3DVG( DaoxBuffer *self, int count )" (*) "*" (function_declarator) "DaoxBuffer_MapVertices3DVG( DaoxBuffer *self, int count )" (identifier) "DaoxBuffer_MapVertices3DVG" (parameter_list) "( DaoxBuffer *self, int count )" (() "(" (parameter_declaration) "DaoxBuffer *self" (type_identifier) "DaoxBuffer" (pointer_declarator) "*self" (*) "*" (identifier) "self" (,) "," (parameter_declaration) "int count" (primitive_type) "int" (identifier) "count" ()) ")" (;) ";" (declaration) "DaoGLTriangle* DaoxBuffer_MapTriangles( DaoxBuffer *self, int count );" (type_identifier) "DaoGLTriangle" (pointer_declarator) "* DaoxBuffer_MapTriangles( DaoxBuffer *self, int count )" (*) "*" (function_declarator) "DaoxBuffer_MapTriangles( DaoxBuffer *self, int count )" (identifier) "DaoxBuffer_MapTriangles" (parameter_list) "( DaoxBuffer *self, int count )" (() "(" (parameter_declaration) "DaoxBuffer *self" (type_identifier) "DaoxBuffer" (pointer_declarator) "*self" (*) "*" (identifier) "self" (,) "," (parameter_declaration) "int count" (primitive_type) "int" (identifier) "count" ()) ")" (;) ";" (declaration) "void DaoxMatrix4D_Export( DaoxMatrix4D *self, GLfloat matrix[16] );" (primitive_type) "void" (function_declarator) "DaoxMatrix4D_Export( DaoxMatrix4D *self, GLfloat matrix[16] )" (identifier) "DaoxMatrix4D_Export" (parameter_list) "( DaoxMatrix4D *self, GLfloat matrix[16] )" (() "(" (parameter_declaration) "DaoxMatrix4D *self" (type_identifier) "DaoxMatrix4D" (pointer_declarator) "*self" (*) "*" (identifier) "self" (,) "," (parameter_declaration) "GLfloat matrix[16]" (type_identifier) "GLfloat" (array_declarator) "matrix[16]" (identifier) "matrix" ([) "[" (number_literal) "16" (]) "]" ()) ")" (;) ";" (#endif) "#endif"
893
0
{"language": "c", "success": true, "metadata": {"lines": 172, "avg_line_length": 29.3, "nodes": 635, "errors": 0, "source_hash": "e7fd266492b4cc031d5403dd070036055c565816a6ae5ac21f30165db1df330e", "categorized_nodes": 500}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef __DAO_OPENGL_H__\n#define __DAO_OPENGL_H__\n\n\n\n#if defined(__APPLE__)\n\n //#include <OpenGL/gl.h>\n #include <OpenGL/gl3.h>\n #include <GLUT/glut.h>\n\n#else\n\n #define GL3_PROTOTYPES\n //#include <GL/gl.h>\n #include <GL/gl3.h>\n #define __gl_h_\n #include <GL/glut.h>\n #ifdef FREEGLUT\n #include <GL/freeglut.h>\n #endif\n#endif\n\n\n\n#include \"dao_canvas.h\"\n\n\n\ntypedef struct DaoGLVertex2D DaoGLVertex2D;\ntypedef struct DaoGLVertex3D DaoGLVertex3D;\ntypedef struct DaoGLVertex3DVG DaoGLVertex3DVG;\ntypedef struct DaoGLTriangle DaoGLTriangle;\ntypedef struct DaoxShader DaoxShader;\ntypedef struct DaoxBuffer DaoxBuffer;\n\n\nenum DaoxSamplerID\n{\n\tDAOX_DASH_SAMPLER = 2 ,\n\tDAOX_GRADIENT_SAMPLER\n};\n\n\n\n\nstruct DaoGLVertex2D\n{\n\tstruct{ GLfloat x, y; } point;\n\tstruct{ GLfloat k, l, m, o; } texKLMO; /* texture coordinates or KLM for bezier curves; */\n};\n\nstruct DaoGLVertex3D\n{\n\tstruct{ GLfloat x, y, z; } point;\n\tstruct{ GLfloat x, y, z; } norm;\n\tstruct{ GLfloat x, y; } texUV;\n};\n\nstruct DaoGLVertex3DVG\n{\n\tstruct{ GLfloat x, y, z; } point;\n\tstruct{ GLfloat x, y, z; } norm;\n\tstruct{ GLfloat k, l, m, o; } texKLMO;\n};\n\nstruct DaoGLTriangle\n{\n\tGLint index[3];\n};\n\n\n\n\n\nstruct DaoxShader\n{\n\tuint_t vertexShader;\n\tuint_t fragmentShader;\n\tuint_t program;\n\n\tstruct {\n\t\tuint_t vectorGraphics;\n\t\tuint_t projMatrix;\n\t\tuint_t viewMatrix;\n\t\tuint_t modelMatrix;\n\t\tuint_t cameraPosition;\n\t\tuint_t lightCount;\n\t\tuint_t lightSource;\n\t\tuint_t lightIntensity;\n\t\tuint_t ambientColor;\n\t\tuint_t diffuseColor;\n\t\tuint_t specularColor;\n\t\tuint_t fade_factor;\n\t\tuint_t material;\n\t\tuint_t textureCount;\n\t\tuint_t textures[2];\n\t\tuint_t alphaBlending;\n\t\tuint_t pathLength;\n\t\tuint_t brushColor;\n\t\tuint_t dashCount;\n\t\tuint_t dashSampler;\n\t\tuint_t gradientType;\n\t\tuint_t gradientStops;\n\t\tuint_t gradientPoint1;\n\t\tuint_t gradientPoint2;\n\t\tuint_t gradientRadius;\n\t\tuint_t gradientSampler;\n\t} uniforms;\n\n\tstruct {\n\t\tuint_t position;\n\t\tuint_t normal;\n\t\tuint_t texCoord;\n\t\tuint_t texMO;\n\t\tuint_t texKLMO;\n\t} attributes;\n\n\tstruct {\n\t\tuint_t dashSampler;\n\t\tuint_t gradientSampler;\n\t} textures;\n\n\tDArray *vertexSources;\n\tDArray *fragmentSources;\n};\n\nvoid DaoxShader_Init2D( DaoxShader *self );\nvoid DaoxShader_Init3D( DaoxShader *self );\nvoid DaoxShader_Free( DaoxShader *self );\nvoid DaoxShader_AddShader( DaoxShader *self, int type, const char *source );\nvoid DaoxShader_Finalize2D( DaoxShader *self );\nvoid DaoxShader_Finalize3D( DaoxShader *self );\nvoid DaoxShader_MakeGradientSampler( DaoxShader *self, DaoxColorGradient *gradient, int fill );\nvoid DaoxShader_MakeDashSampler( DaoxShader *self, DaoxCanvasState *state );\n\n\n\n\nstruct DaoxBuffer\n{\n\tuint_t vertexVAO;\n\tuint_t vertexVBO;\n\tuint_t triangleVBO;\n\n\tuint_t vertexOffset;\n\tuint_t vertexCapacity;\n\tuint_t triangleOffset;\n\tuint_t triangleCapacity;\n\n\tuint_t vertexSize; /* size of each vertex; */\n\tuint_t triangleSize; /* size of each triangle; */\n\tuint_t traitCount;\n\n\tstruct {\n\t\tuint_t uniform;\n\t\tuint_t count;\n\t\tvoid *offset;\n\t} traits[4];\n};\n\nvoid DaoxBuffer_Init( DaoxBuffer *self );\nvoid DaoxBuffer_Init2D( DaoxBuffer *self, int pos, int klmo );\nvoid DaoxBuffer_Init3D( DaoxBuffer *self, int pos, int norm, int texuv, int texmo );\nvoid DaoxBuffer_Init3DVG( DaoxBuffer *self, int pos, int norm, int texuv, int texmo );\nvoid DaoxBuffer_Free( DaoxBuffer *self );\n\nvoid* DaoxBuffer_MapVertices( DaoxBuffer *self, int count );\nDaoGLVertex2D* DaoxBuffer_MapVertices2D( DaoxBuffer *self, int count );\nDaoGLVertex3D* DaoxBuffer_MapVertices3D( DaoxBuffer *self, int count );\nDaoGLVertex3DVG* DaoxBuffer_MapVertices3DVG( DaoxBuffer *self, int count );\nDaoGLTriangle* DaoxBuffer_MapTriangles( DaoxBuffer *self, int count );\n\n\n\n\nvoid DaoxMatrix4D_Export( DaoxMatrix4D *self, GLfloat matrix[16] );\n\n#endif", "parent": null, "children": [1, 2, 3, 6, 40, 43, 49, 55, 61, 67, 73, 79, 89, 110, 139, 170, 178, 313, 323, 333, 343, 361, 371, 381, 399, 414, 464, 474, 490, 512, 534, 544, 559, 574, 589, 604, 619, 634], "start_point": {"row": 27, "column": 0}, "end_point": {"row": 205, "column": 6}}, {"id": 1, "type": "#ifndef", "text": "#ifndef", "parent": 0, "children": [], "start_point": {"row": 27, "column": 0}, "end_point": {"row": 27, "column": 7}}, {"id": 2, "type": "identifier", "text": "__DAO_OPENGL_H__", "parent": 0, "children": [], "start_point": {"row": 27, "column": 8}, "end_point": {"row": 27, "column": 24}}, {"id": 3, "type": "preproc_def", "text": "#define __DAO_OPENGL_H__\n", "parent": 0, "children": [4, 5], "start_point": {"row": 28, "column": 0}, "end_point": {"row": 29, "column": 0}}, {"id": 4, "type": "#define", "text": "#define", "parent": 3, "children": [], "start_point": {"row": 28, "column": 0}, "end_point": {"row": 28, "column": 7}}, {"id": 5, "type": "identifier", "text": "__DAO_OPENGL_H__", "parent": 3, "children": [], "start_point": {"row": 28, "column": 8}, "end_point": {"row": 28, "column": 24}}, {"id": 6, "type": "preproc_if", "text": "#if defined(__APPLE__)\n\n //#include <OpenGL/gl.h>\n #include <OpenGL/gl3.h>\n #include <GLUT/glut.h>\n\n#else\n\n #define GL3_PROTOTYPES\n //#include <GL/gl.h>\n #include <GL/gl3.h>\n #define __gl_h_\n #include <GL/glut.h>\n #ifdef FREEGLUT\n #include <GL/freeglut.h>\n #endif\n#endif", "parent": 0, "children": [7, 8, 11, 12, 15, 18, 39], "start_point": {"row": 32, "column": 0}, "end_point": {"row": 48, "column": 6}}, {"id": 7, "type": "#if", "text": "#if", "parent": 6, "children": [], "start_point": {"row": 32, "column": 0}, "end_point": {"row": 32, "column": 3}}, {"id": 8, "type": "preproc_defined", "text": "defined(__APPLE__)", "parent": 6, "children": [9, 10], "start_point": {"row": 32, "column": 4}, "end_point": {"row": 32, "column": 22}}, {"id": 9, "type": "defined", "text": "defined", "parent": 8, "children": [], "start_point": {"row": 32, "column": 4}, "end_point": {"row": 32, "column": 11}}, {"id": 10, "type": "identifier", "text": "__APPLE__", "parent": 8, "children": [], "start_point": {"row": 32, "column": 12}, "end_point": {"row": 32, "column": 21}}, {"id": 11, "type": "\n", "text": "\n\n", "parent": 6, "children": [], "start_point": {"row": 32, "column": 22}, "end_point": {"row": 34, "column": 0}}, {"id": 12, "type": "preproc_include", "text": "#include <OpenGL/gl3.h>\n", "parent": 6, "children": [13, 14], "start_point": {"row": 35, "column": 2}, "end_point": {"row": 36, "column": 0}}, {"id": 13, "type": "#include", "text": "#include", "parent": 12, "children": [], "start_point": {"row": 35, "column": 2}, "end_point": {"row": 35, "column": 10}}, {"id": 14, "type": "system_lib_string", "text": "<OpenGL/gl3.h>", "parent": 12, "children": [], "start_point": {"row": 35, "column": 11}, "end_point": {"row": 35, "column": 25}}, {"id": 15, "type": "preproc_include", "text": "#include <GLUT/glut.h>\n", "parent": 6, "children": [16, 17], "start_point": {"row": 36, "column": 2}, "end_point": {"row": 37, "column": 0}}, {"id": 16, "type": "#include", "text": "#include", "parent": 15, "children": [], "start_point": {"row": 36, "column": 2}, "end_point": {"row": 36, "column": 10}}, {"id": 17, "type": "system_lib_string", "text": "<GLUT/glut.h>", "parent": 15, "children": [], "start_point": {"row": 36, "column": 11}, "end_point": {"row": 36, "column": 24}}, {"id": 18, "type": "preproc_else", "text": "#else\n\n #define GL3_PROTOTYPES\n //#include <GL/gl.h>\n #include <GL/gl3.h>\n #define __gl_h_\n #include <GL/glut.h>\n #ifdef FREEGLUT\n #include <GL/freeglut.h>\n #endif", "parent": 6, "children": [19, 20, 23, 26, 29, 32], "start_point": {"row": 38, "column": 0}, "end_point": {"row": 47, "column": 8}}, {"id": 19, "type": "#else", "text": "#else", "parent": 18, "children": [], "start_point": {"row": 38, "column": 0}, "end_point": {"row": 38, "column": 5}}, {"id": 20, "type": "preproc_def", "text": "#define GL3_PROTOTYPES\n", "parent": 18, "children": [21, 22], "start_point": {"row": 40, "column": 2}, "end_point": {"row": 41, "column": 0}}, {"id": 21, "type": "#define", "text": "#define", "parent": 20, "children": [], "start_point": {"row": 40, "column": 2}, "end_point": {"row": 40, "column": 9}}, {"id": 22, "type": "identifier", "text": "GL3_PROTOTYPES", "parent": 20, "children": [], "start_point": {"row": 40, "column": 10}, "end_point": {"row": 40, "column": 24}}, {"id": 23, "type": "preproc_include", "text": "#include <GL/gl3.h>\n", "parent": 18, "children": [24, 25], "start_point": {"row": 42, "column": 2}, "end_point": {"row": 43, "column": 0}}, {"id": 24, "type": "#include", "text": "#include", "parent": 23, "children": [], "start_point": {"row": 42, "column": 2}, "end_point": {"row": 42, "column": 10}}, {"id": 25, "type": "system_lib_string", "text": "<GL/gl3.h>", "parent": 23, "children": [], "start_point": {"row": 42, "column": 11}, "end_point": {"row": 42, "column": 21}}, {"id": 26, "type": "preproc_def", "text": "#define __gl_h_\n", "parent": 18, "children": [27, 28], "start_point": {"row": 43, "column": 2}, "end_point": {"row": 44, "column": 0}}, {"id": 27, "type": "#define", "text": "#define", "parent": 26, "children": [], "start_point": {"row": 43, "column": 2}, "end_point": {"row": 43, "column": 9}}, {"id": 28, "type": "identifier", "text": "__gl_h_", "parent": 26, "children": [], "start_point": {"row": 43, "column": 10}, "end_point": {"row": 43, "column": 17}}, {"id": 29, "type": "preproc_include", "text": "#include <GL/glut.h>\n", "parent": 18, "children": [30, 31], "start_point": {"row": 44, "column": 2}, "end_point": {"row": 45, "column": 0}}, {"id": 30, "type": "#include", "text": "#include", "parent": 29, "children": [], "start_point": {"row": 44, "column": 2}, "end_point": {"row": 44, "column": 10}}, {"id": 31, "type": "system_lib_string", "text": "<GL/glut.h>", "parent": 29, "children": [], "start_point": {"row": 44, "column": 11}, "end_point": {"row": 44, "column": 22}}, {"id": 32, "type": "preproc_ifdef", "text": "#ifdef FREEGLUT\n #include <GL/freeglut.h>\n #endif", "parent": 18, "children": [33, 34, 35, 38], "start_point": {"row": 45, "column": 2}, "end_point": {"row": 47, "column": 8}}, {"id": 33, "type": "#ifdef", "text": "#ifdef", "parent": 32, "children": [], "start_point": {"row": 45, "column": 2}, "end_point": {"row": 45, "column": 8}}, {"id": 34, "type": "identifier", "text": "FREEGLUT", "parent": 32, "children": [], "start_point": {"row": 45, "column": 9}, "end_point": {"row": 45, "column": 17}}, {"id": 35, "type": "preproc_include", "text": "#include <GL/freeglut.h>\n", "parent": 32, "children": [36, 37], "start_point": {"row": 46, "column": 4}, "end_point": {"row": 47, "column": 0}}, {"id": 36, "type": "#include", "text": "#include", "parent": 35, "children": [], "start_point": {"row": 46, "column": 4}, "end_point": {"row": 46, "column": 12}}, {"id": 37, "type": "system_lib_string", "text": "<GL/freeglut.h>", "parent": 35, "children": [], "start_point": {"row": 46, "column": 13}, "end_point": {"row": 46, "column": 28}}, {"id": 38, "type": "#endif", "text": "#endif", "parent": 32, "children": [], "start_point": {"row": 47, "column": 2}, "end_point": {"row": 47, "column": 8}}, {"id": 39, "type": "#endif", "text": "#endif", "parent": 6, "children": [], "start_point": {"row": 48, "column": 0}, "end_point": {"row": 48, "column": 6}}, {"id": 40, "type": "preproc_include", "text": "#include \"dao_canvas.h\"\n", "parent": 0, "children": [41, 42], "start_point": {"row": 52, "column": 0}, "end_point": {"row": 53, "column": 0}}, {"id": 41, "type": "#include", "text": "#include", "parent": 40, "children": [], "start_point": {"row": 52, "column": 0}, "end_point": {"row": 52, "column": 8}}, {"id": 42, "type": "string_literal", "text": "\"dao_canvas.h\"", "parent": 40, "children": [], "start_point": {"row": 52, "column": 9}, "end_point": {"row": 52, "column": 23}}, {"id": 43, "type": "type_definition", "text": "typedef struct DaoGLVertex2D DaoGLVertex2D;", "parent": 0, "children": [44, 45, 48], "start_point": {"row": 56, "column": 0}, "end_point": {"row": 56, "column": 46}}, {"id": 44, "type": "typedef", "text": "typedef", "parent": 43, "children": [], "start_point": {"row": 56, "column": 0}, "end_point": {"row": 56, "column": 7}}, {"id": 45, "type": "struct_specifier", "text": "struct DaoGLVertex2D", "parent": 43, "children": [46, 47], "start_point": {"row": 56, "column": 8}, "end_point": {"row": 56, "column": 28}}, {"id": 46, "type": "struct", "text": "struct", "parent": 45, "children": [], "start_point": {"row": 56, "column": 8}, "end_point": {"row": 56, "column": 14}}, {"id": 47, "type": "type_identifier", "text": "DaoGLVertex2D", "parent": 45, "children": [], "start_point": {"row": 56, "column": 15}, "end_point": {"row": 56, "column": 28}}, {"id": 48, "type": "type_identifier", "text": "DaoGLVertex2D", "parent": 43, "children": [], "start_point": {"row": 56, "column": 32}, "end_point": {"row": 56, "column": 45}}, {"id": 49, "type": "type_definition", "text": "typedef struct DaoGLVertex3D DaoGLVertex3D;", "parent": 0, "children": [50, 51, 54], "start_point": {"row": 57, "column": 0}, "end_point": {"row": 57, "column": 46}}, {"id": 50, "type": "typedef", "text": "typedef", "parent": 49, "children": [], "start_point": {"row": 57, "column": 0}, "end_point": {"row": 57, "column": 7}}, {"id": 51, "type": "struct_specifier", "text": "struct DaoGLVertex3D", "parent": 49, "children": [52, 53], "start_point": {"row": 57, "column": 8}, "end_point": {"row": 57, "column": 28}}, {"id": 52, "type": "struct", "text": "struct", "parent": 51, "children": [], "start_point": {"row": 57, "column": 8}, "end_point": {"row": 57, "column": 14}}, {"id": 53, "type": "type_identifier", "text": "DaoGLVertex3D", "parent": 51, "children": [], "start_point": {"row": 57, "column": 15}, "end_point": {"row": 57, "column": 28}}, {"id": 54, "type": "type_identifier", "text": "DaoGLVertex3D", "parent": 49, "children": [], "start_point": {"row": 57, "column": 32}, "end_point": {"row": 57, "column": 45}}, {"id": 55, "type": "type_definition", "text": "typedef struct DaoGLVertex3DVG DaoGLVertex3DVG;", "parent": 0, "children": [56, 57, 60], "start_point": {"row": 58, "column": 0}, "end_point": {"row": 58, "column": 48}}, {"id": 56, "type": "typedef", "text": "typedef", "parent": 55, "children": [], "start_point": {"row": 58, "column": 0}, "end_point": {"row": 58, "column": 7}}, {"id": 57, "type": "struct_specifier", "text": "struct DaoGLVertex3DVG", "parent": 55, "children": [58, 59], "start_point": {"row": 58, "column": 8}, "end_point": {"row": 58, "column": 30}}, {"id": 58, "type": "struct", "text": "struct", "parent": 57, "children": [], "start_point": {"row": 58, "column": 8}, "end_point": {"row": 58, "column": 14}}, {"id": 59, "type": "type_identifier", "text": "DaoGLVertex3DVG", "parent": 57, "children": [], "start_point": {"row": 58, "column": 15}, "end_point": {"row": 58, "column": 30}}, {"id": 60, "type": "type_identifier", "text": "DaoGLVertex3DVG", "parent": 55, "children": [], "start_point": {"row": 58, "column": 32}, "end_point": {"row": 58, "column": 47}}, {"id": 61, "type": "type_definition", "text": "typedef struct DaoGLTriangle DaoGLTriangle;", "parent": 0, "children": [62, 63, 66], "start_point": {"row": 59, "column": 0}, "end_point": {"row": 59, "column": 46}}, {"id": 62, "type": "typedef", "text": "typedef", "parent": 61, "children": [], "start_point": {"row": 59, "column": 0}, "end_point": {"row": 59, "column": 7}}, {"id": 63, "type": "struct_specifier", "text": "struct DaoGLTriangle", "parent": 61, "children": [64, 65], "start_point": {"row": 59, "column": 8}, "end_point": {"row": 59, "column": 28}}, {"id": 64, "type": "struct", "text": "struct", "parent": 63, "children": [], "start_point": {"row": 59, "column": 8}, "end_point": {"row": 59, "column": 14}}, {"id": 65, "type": "type_identifier", "text": "DaoGLTriangle", "parent": 63, "children": [], "start_point": {"row": 59, "column": 15}, "end_point": {"row": 59, "column": 28}}, {"id": 66, "type": "type_identifier", "text": "DaoGLTriangle", "parent": 61, "children": [], "start_point": {"row": 59, "column": 32}, "end_point": {"row": 59, "column": 45}}, {"id": 67, "type": "type_definition", "text": "typedef struct DaoxShader DaoxShader;", "parent": 0, "children": [68, 69, 72], "start_point": {"row": 60, "column": 0}, "end_point": {"row": 60, "column": 43}}, {"id": 68, "type": "typedef", "text": "typedef", "parent": 67, "children": [], "start_point": {"row": 60, "column": 0}, "end_point": {"row": 60, "column": 7}}, {"id": 69, "type": "struct_specifier", "text": "struct DaoxShader", "parent": 67, "children": [70, 71], "start_point": {"row": 60, "column": 8}, "end_point": {"row": 60, "column": 25}}, {"id": 70, "type": "struct", "text": "struct", "parent": 69, "children": [], "start_point": {"row": 60, "column": 8}, "end_point": {"row": 60, "column": 14}}, {"id": 71, "type": "type_identifier", "text": "DaoxShader", "parent": 69, "children": [], "start_point": {"row": 60, "column": 15}, "end_point": {"row": 60, "column": 25}}, {"id": 72, "type": "type_identifier", "text": "DaoxShader", "parent": 67, "children": [], "start_point": {"row": 60, "column": 32}, "end_point": {"row": 60, "column": 42}}, {"id": 73, "type": "type_definition", "text": "typedef struct DaoxBuffer DaoxBuffer;", "parent": 0, "children": [74, 75, 78], "start_point": {"row": 61, "column": 0}, "end_point": {"row": 61, "column": 43}}, {"id": 74, "type": "typedef", "text": "typedef", "parent": 73, "children": [], "start_point": {"row": 61, "column": 0}, "end_point": {"row": 61, "column": 7}}, {"id": 75, "type": "struct_specifier", "text": "struct DaoxBuffer", "parent": 73, "children": [76, 77], "start_point": {"row": 61, "column": 8}, "end_point": {"row": 61, "column": 25}}, {"id": 76, "type": "struct", "text": "struct", "parent": 75, "children": [], "start_point": {"row": 61, "column": 8}, "end_point": {"row": 61, "column": 14}}, {"id": 77, "type": "type_identifier", "text": "DaoxBuffer", "parent": 75, "children": [], "start_point": {"row": 61, "column": 15}, "end_point": {"row": 61, "column": 25}}, {"id": 78, "type": "type_identifier", "text": "DaoxBuffer", "parent": 73, "children": [], "start_point": {"row": 61, "column": 32}, "end_point": {"row": 61, "column": 42}}, {"id": 79, "type": "enum_specifier", "text": "enum DaoxSamplerID\n{\n\tDAOX_DASH_SAMPLER = 2 ,\n\tDAOX_GRADIENT_SAMPLER\n}", "parent": 0, "children": [80, 81, 82], "start_point": {"row": 64, "column": 0}, "end_point": {"row": 68, "column": 1}}, {"id": 80, "type": "enum", "text": "enum", "parent": 79, "children": [], "start_point": {"row": 64, "column": 0}, "end_point": {"row": 64, "column": 4}}, {"id": 81, "type": "type_identifier", "text": "DaoxSamplerID", "parent": 79, "children": [], "start_point": {"row": 64, "column": 5}, "end_point": {"row": 64, "column": 18}}, {"id": 82, "type": "enumerator_list", "text": "{\n\tDAOX_DASH_SAMPLER = 2 ,\n\tDAOX_GRADIENT_SAMPLER\n}", "parent": 79, "children": [83, 87], "start_point": {"row": 65, "column": 0}, "end_point": {"row": 68, "column": 1}}, {"id": 83, "type": "enumerator", "text": "DAOX_DASH_SAMPLER = 2", "parent": 82, "children": [84, 85, 86], "start_point": {"row": 66, "column": 1}, "end_point": {"row": 66, "column": 22}}, {"id": 84, "type": "identifier", "text": "DAOX_DASH_SAMPLER", "parent": 83, "children": [], "start_point": {"row": 66, "column": 1}, "end_point": {"row": 66, "column": 18}}, {"id": 85, "type": "=", "text": "=", "parent": 83, "children": [], "start_point": {"row": 66, "column": 19}, "end_point": {"row": 66, "column": 20}}, {"id": 86, "type": "number_literal", "text": "2", "parent": 83, "children": [], "start_point": {"row": 66, "column": 21}, "end_point": {"row": 66, "column": 22}}, {"id": 87, "type": "enumerator", "text": "DAOX_GRADIENT_SAMPLER", "parent": 82, "children": [88], "start_point": {"row": 67, "column": 1}, "end_point": {"row": 67, "column": 22}}, {"id": 88, "type": "identifier", "text": "DAOX_GRADIENT_SAMPLER", "parent": 87, "children": [], "start_point": {"row": 67, "column": 1}, "end_point": {"row": 67, "column": 22}}, {"id": 89, "type": "struct_specifier", "text": "struct DaoGLVertex2D\n{\n\tstruct{ GLfloat x, y; } point;\n\tstruct{ GLfloat k, l, m, o; } texKLMO; /* texture coordinates or KLM for bezier curves; */\n}", "parent": 0, "children": [90, 91], "start_point": {"row": 73, "column": 0}, "end_point": {"row": 77, "column": 1}}, {"id": 90, "type": "struct", "text": "struct", "parent": 89, "children": [], "start_point": {"row": 73, "column": 0}, "end_point": {"row": 73, "column": 6}}, {"id": 91, "type": "type_identifier", "text": "DaoGLVertex2D", "parent": 89, "children": [], "start_point": {"row": 73, "column": 7}, "end_point": {"row": 73, "column": 20}}, {"id": 92, "type": "field_declaration", "text": "struct{ GLfloat x, y; } point;", "parent": 89, "children": [93, 99], "start_point": {"row": 75, "column": 1}, "end_point": {"row": 75, "column": 39}}, {"id": 93, "type": "struct_specifier", "text": "struct{ GLfloat x, y; }", "parent": 92, "children": [94], "start_point": {"row": 75, "column": 1}, "end_point": {"row": 75, "column": 25}}, {"id": 94, "type": "struct", "text": "struct", "parent": 93, "children": [], "start_point": {"row": 75, "column": 1}, "end_point": {"row": 75, "column": 7}}, {"id": 95, "type": "field_declaration", "text": "GLfloat x, y;", "parent": 93, "children": [96, 97, 98], "start_point": {"row": 75, "column": 9}, "end_point": {"row": 75, "column": 23}}, {"id": 96, "type": "type_identifier", "text": "GLfloat", "parent": 95, "children": [], "start_point": {"row": 75, "column": 9}, "end_point": {"row": 75, "column": 16}}, {"id": 97, "type": "field_identifier", "text": "x", "parent": 95, "children": [], "start_point": {"row": 75, "column": 18}, "end_point": {"row": 75, "column": 19}}, {"id": 98, "type": "field_identifier", "text": "y", "parent": 95, "children": [], "start_point": {"row": 75, "column": 21}, "end_point": {"row": 75, "column": 22}}, {"id": 99, "type": "field_identifier", "text": "point", "parent": 92, "children": [], "start_point": {"row": 75, "column": 33}, "end_point": {"row": 75, "column": 38}}, {"id": 100, "type": "field_declaration", "text": "struct{ GLfloat k, l, m, o; } texKLMO;", "parent": 89, "children": [101, 109], "start_point": {"row": 76, "column": 1}, "end_point": {"row": 76, "column": 41}}, {"id": 101, "type": "struct_specifier", "text": "struct{ GLfloat k, l, m, o; }", "parent": 100, "children": [102], "start_point": {"row": 76, "column": 1}, "end_point": {"row": 76, "column": 31}}, {"id": 102, "type": "struct", "text": "struct", "parent": 101, "children": [], "start_point": {"row": 76, "column": 1}, "end_point": {"row": 76, "column": 7}}, {"id": 103, "type": "field_declaration", "text": "GLfloat k, l, m, o;", "parent": 101, "children": [104, 105, 106, 107, 108], "start_point": {"row": 76, "column": 9}, "end_point": {"row": 76, "column": 29}}, {"id": 104, "type": "type_identifier", "text": "GLfloat", "parent": 103, "children": [], "start_point": {"row": 76, "column": 9}, "end_point": {"row": 76, "column": 16}}, {"id": 105, "type": "field_identifier", "text": "k", "parent": 103, "children": [], "start_point": {"row": 76, "column": 18}, "end_point": {"row": 76, "column": 19}}, {"id": 106, "type": "field_identifier", "text": "l", "parent": 103, "children": [], "start_point": {"row": 76, "column": 21}, "end_point": {"row": 76, "column": 22}}, {"id": 107, "type": "field_identifier", "text": "m", "parent": 103, "children": [], "start_point": {"row": 76, "column": 24}, "end_point": {"row": 76, "column": 25}}, {"id": 108, "type": "field_identifier", "text": "o", "parent": 103, "children": [], "start_point": {"row": 76, "column": 27}, "end_point": {"row": 76, "column": 28}}, {"id": 109, "type": "field_identifier", "text": "texKLMO", "parent": 100, "children": [], "start_point": {"row": 76, "column": 33}, "end_point": {"row": 76, "column": 40}}, {"id": 110, "type": "struct_specifier", "text": "struct DaoGLVertex3D\n{\n\tstruct{ GLfloat x, y, z; } point;\n\tstruct{ GLfloat x, y, z; } norm;\n\tstruct{ GLfloat x, y; } texUV;\n}", "parent": 0, "children": [111, 112], "start_point": {"row": 79, "column": 0}, "end_point": {"row": 84, "column": 1}}, {"id": 111, "type": "struct", "text": "struct", "parent": 110, "children": [], "start_point": {"row": 79, "column": 0}, "end_point": {"row": 79, "column": 6}}, {"id": 112, "type": "type_identifier", "text": "DaoGLVertex3D", "parent": 110, "children": [], "start_point": {"row": 79, "column": 7}, "end_point": {"row": 79, "column": 20}}, {"id": 113, "type": "field_declaration", "text": "struct{ GLfloat x, y, z; } point;", "parent": 110, "children": [114, 121], "start_point": {"row": 81, "column": 1}, "end_point": {"row": 81, "column": 36}}, {"id": 114, "type": "struct_specifier", "text": "struct{ GLfloat x, y, z; }", "parent": 113, "children": [115], "start_point": {"row": 81, "column": 1}, "end_point": {"row": 81, "column": 28}}, {"id": 115, "type": "struct", "text": "struct", "parent": 114, "children": [], "start_point": {"row": 81, "column": 1}, "end_point": {"row": 81, "column": 7}}, {"id": 116, "type": "field_declaration", "text": "GLfloat x, y, z;", "parent": 114, "children": [117, 118, 119, 120], "start_point": {"row": 81, "column": 9}, "end_point": {"row": 81, "column": 26}}, {"id": 117, "type": "type_identifier", "text": "GLfloat", "parent": 116, "children": [], "start_point": {"row": 81, "column": 9}, "end_point": {"row": 81, "column": 16}}, {"id": 118, "type": "field_identifier", "text": "x", "parent": 116, "children": [], "start_point": {"row": 81, "column": 18}, "end_point": {"row": 81, "column": 19}}, {"id": 119, "type": "field_identifier", "text": "y", "parent": 116, "children": [], "start_point": {"row": 81, "column": 21}, "end_point": {"row": 81, "column": 22}}, {"id": 120, "type": "field_identifier", "text": "z", "parent": 116, "children": [], "start_point": {"row": 81, "column": 24}, "end_point": {"row": 81, "column": 25}}, {"id": 121, "type": "field_identifier", "text": "point", "parent": 113, "children": [], "start_point": {"row": 81, "column": 30}, "end_point": {"row": 81, "column": 35}}, {"id": 122, "type": "field_declaration", "text": "struct{ GLfloat x, y, z; } norm;", "parent": 110, "children": [123, 130], "start_point": {"row": 82, "column": 1}, "end_point": {"row": 82, "column": 35}}, {"id": 123, "type": "struct_specifier", "text": "struct{ GLfloat x, y, z; }", "parent": 122, "children": [124], "start_point": {"row": 82, "column": 1}, "end_point": {"row": 82, "column": 28}}, {"id": 124, "type": "struct", "text": "struct", "parent": 123, "children": [], "start_point": {"row": 82, "column": 1}, "end_point": {"row": 82, "column": 7}}, {"id": 125, "type": "field_declaration", "text": "GLfloat x, y, z;", "parent": 123, "children": [126, 127, 128, 129], "start_point": {"row": 82, "column": 9}, "end_point": {"row": 82, "column": 26}}, {"id": 126, "type": "type_identifier", "text": "GLfloat", "parent": 125, "children": [], "start_point": {"row": 82, "column": 9}, "end_point": {"row": 82, "column": 16}}, {"id": 127, "type": "field_identifier", "text": "x", "parent": 125, "children": [], "start_point": {"row": 82, "column": 18}, "end_point": {"row": 82, "column": 19}}, {"id": 128, "type": "field_identifier", "text": "y", "parent": 125, "children": [], "start_point": {"row": 82, "column": 21}, "end_point": {"row": 82, "column": 22}}, {"id": 129, "type": "field_identifier", "text": "z", "parent": 125, "children": [], "start_point": {"row": 82, "column": 24}, "end_point": {"row": 82, "column": 25}}, {"id": 130, "type": "field_identifier", "text": "norm", "parent": 122, "children": [], "start_point": {"row": 82, "column": 30}, "end_point": {"row": 82, "column": 34}}, {"id": 131, "type": "field_declaration", "text": "struct{ GLfloat x, y; } texUV;", "parent": 110, "children": [132, 138], "start_point": {"row": 83, "column": 1}, "end_point": {"row": 83, "column": 36}}, {"id": 132, "type": "struct_specifier", "text": "struct{ GLfloat x, y; }", "parent": 131, "children": [133], "start_point": {"row": 83, "column": 1}, "end_point": {"row": 83, "column": 25}}, {"id": 133, "type": "struct", "text": "struct", "parent": 132, "children": [], "start_point": {"row": 83, "column": 1}, "end_point": {"row": 83, "column": 7}}, {"id": 134, "type": "field_declaration", "text": "GLfloat x, y;", "parent": 132, "children": [135, 136, 137], "start_point": {"row": 83, "column": 9}, "end_point": {"row": 83, "column": 23}}, {"id": 135, "type": "type_identifier", "text": "GLfloat", "parent": 134, "children": [], "start_point": {"row": 83, "column": 9}, "end_point": {"row": 83, "column": 16}}, {"id": 136, "type": "field_identifier", "text": "x", "parent": 134, "children": [], "start_point": {"row": 83, "column": 18}, "end_point": {"row": 83, "column": 19}}, {"id": 137, "type": "field_identifier", "text": "y", "parent": 134, "children": [], "start_point": {"row": 83, "column": 21}, "end_point": {"row": 83, "column": 22}}, {"id": 138, "type": "field_identifier", "text": "texUV", "parent": 131, "children": [], "start_point": {"row": 83, "column": 30}, "end_point": {"row": 83, "column": 35}}, {"id": 139, "type": "struct_specifier", "text": "struct DaoGLVertex3DVG\n{\n\tstruct{ GLfloat x, y, z; } point;\n\tstruct{ GLfloat x, y, z; } norm;\n\tstruct{ GLfloat k, l, m, o; } texKLMO;\n}", "parent": 0, "children": [140, 141], "start_point": {"row": 86, "column": 0}, "end_point": {"row": 91, "column": 1}}, {"id": 140, "type": "struct", "text": "struct", "parent": 139, "children": [], "start_point": {"row": 86, "column": 0}, "end_point": {"row": 86, "column": 6}}, {"id": 141, "type": "type_identifier", "text": "DaoGLVertex3DVG", "parent": 139, "children": [], "start_point": {"row": 86, "column": 7}, "end_point": {"row": 86, "column": 22}}, {"id": 142, "type": "field_declaration", "text": "struct{ GLfloat x, y, z; } point;", "parent": 139, "children": [143, 150], "start_point": {"row": 88, "column": 1}, "end_point": {"row": 88, "column": 39}}, {"id": 143, "type": "struct_specifier", "text": "struct{ GLfloat x, y, z; }", "parent": 142, "children": [144], "start_point": {"row": 88, "column": 1}, "end_point": {"row": 88, "column": 28}}, {"id": 144, "type": "struct", "text": "struct", "parent": 143, "children": [], "start_point": {"row": 88, "column": 1}, "end_point": {"row": 88, "column": 7}}, {"id": 145, "type": "field_declaration", "text": "GLfloat x, y, z;", "parent": 143, "children": [146, 147, 148, 149], "start_point": {"row": 88, "column": 9}, "end_point": {"row": 88, "column": 26}}, {"id": 146, "type": "type_identifier", "text": "GLfloat", "parent": 145, "children": [], "start_point": {"row": 88, "column": 9}, "end_point": {"row": 88, "column": 16}}, {"id": 147, "type": "field_identifier", "text": "x", "parent": 145, "children": [], "start_point": {"row": 88, "column": 18}, "end_point": {"row": 88, "column": 19}}, {"id": 148, "type": "field_identifier", "text": "y", "parent": 145, "children": [], "start_point": {"row": 88, "column": 21}, "end_point": {"row": 88, "column": 22}}, {"id": 149, "type": "field_identifier", "text": "z", "parent": 145, "children": [], "start_point": {"row": 88, "column": 24}, "end_point": {"row": 88, "column": 25}}, {"id": 150, "type": "field_identifier", "text": "point", "parent": 142, "children": [], "start_point": {"row": 88, "column": 33}, "end_point": {"row": 88, "column": 38}}, {"id": 151, "type": "field_declaration", "text": "struct{ GLfloat x, y, z; } norm;", "parent": 139, "children": [152, 159], "start_point": {"row": 89, "column": 1}, "end_point": {"row": 89, "column": 38}}, {"id": 152, "type": "struct_specifier", "text": "struct{ GLfloat x, y, z; }", "parent": 151, "children": [153], "start_point": {"row": 89, "column": 1}, "end_point": {"row": 89, "column": 28}}, {"id": 153, "type": "struct", "text": "struct", "parent": 152, "children": [], "start_point": {"row": 89, "column": 1}, "end_point": {"row": 89, "column": 7}}, {"id": 154, "type": "field_declaration", "text": "GLfloat x, y, z;", "parent": 152, "children": [155, 156, 157, 158], "start_point": {"row": 89, "column": 9}, "end_point": {"row": 89, "column": 26}}, {"id": 155, "type": "type_identifier", "text": "GLfloat", "parent": 154, "children": [], "start_point": {"row": 89, "column": 9}, "end_point": {"row": 89, "column": 16}}, {"id": 156, "type": "field_identifier", "text": "x", "parent": 154, "children": [], "start_point": {"row": 89, "column": 18}, "end_point": {"row": 89, "column": 19}}, {"id": 157, "type": "field_identifier", "text": "y", "parent": 154, "children": [], "start_point": {"row": 89, "column": 21}, "end_point": {"row": 89, "column": 22}}, {"id": 158, "type": "field_identifier", "text": "z", "parent": 154, "children": [], "start_point": {"row": 89, "column": 24}, "end_point": {"row": 89, "column": 25}}, {"id": 159, "type": "field_identifier", "text": "norm", "parent": 151, "children": [], "start_point": {"row": 89, "column": 33}, "end_point": {"row": 89, "column": 37}}, {"id": 160, "type": "field_declaration", "text": "struct{ GLfloat k, l, m, o; } texKLMO;", "parent": 139, "children": [161, 169], "start_point": {"row": 90, "column": 1}, "end_point": {"row": 90, "column": 41}}, {"id": 161, "type": "struct_specifier", "text": "struct{ GLfloat k, l, m, o; }", "parent": 160, "children": [162], "start_point": {"row": 90, "column": 1}, "end_point": {"row": 90, "column": 31}}, {"id": 162, "type": "struct", "text": "struct", "parent": 161, "children": [], "start_point": {"row": 90, "column": 1}, "end_point": {"row": 90, "column": 7}}, {"id": 163, "type": "field_declaration", "text": "GLfloat k, l, m, o;", "parent": 161, "children": [164, 165, 166, 167, 168], "start_point": {"row": 90, "column": 9}, "end_point": {"row": 90, "column": 29}}, {"id": 164, "type": "type_identifier", "text": "GLfloat", "parent": 163, "children": [], "start_point": {"row": 90, "column": 9}, "end_point": {"row": 90, "column": 16}}, {"id": 165, "type": "field_identifier", "text": "k", "parent": 163, "children": [], "start_point": {"row": 90, "column": 18}, "end_point": {"row": 90, "column": 19}}, {"id": 166, "type": "field_identifier", "text": "l", "parent": 163, "children": [], "start_point": {"row": 90, "column": 21}, "end_point": {"row": 90, "column": 22}}, {"id": 167, "type": "field_identifier", "text": "m", "parent": 163, "children": [], "start_point": {"row": 90, "column": 24}, "end_point": {"row": 90, "column": 25}}, {"id": 168, "type": "field_identifier", "text": "o", "parent": 163, "children": [], "start_point": {"row": 90, "column": 27}, "end_point": {"row": 90, "column": 28}}, {"id": 169, "type": "field_identifier", "text": "texKLMO", "parent": 160, "children": [], "start_point": {"row": 90, "column": 33}, "end_point": {"row": 90, "column": 40}}, {"id": 170, "type": "struct_specifier", "text": "struct DaoGLTriangle\n{\n\tGLint index[3];\n}", "parent": 0, "children": [171, 172], "start_point": {"row": 93, "column": 0}, "end_point": {"row": 96, "column": 1}}, {"id": 171, "type": "struct", "text": "struct", "parent": 170, "children": [], "start_point": {"row": 93, "column": 0}, "end_point": {"row": 93, "column": 6}}, {"id": 172, "type": "type_identifier", "text": "DaoGLTriangle", "parent": 170, "children": [], "start_point": {"row": 93, "column": 7}, "end_point": {"row": 93, "column": 20}}, {"id": 173, "type": "field_declaration", "text": "GLint index[3];", "parent": 170, "children": [174, 175], "start_point": {"row": 95, "column": 1}, "end_point": {"row": 95, "column": 16}}, {"id": 174, "type": "type_identifier", "text": "GLint", "parent": 173, "children": [], "start_point": {"row": 95, "column": 1}, "end_point": {"row": 95, "column": 6}}, {"id": 175, "type": "array_declarator", "text": "index[3]", "parent": 173, "children": [176, 177], "start_point": {"row": 95, "column": 7}, "end_point": {"row": 95, "column": 15}}, {"id": 176, "type": "field_identifier", "text": "index", "parent": 175, "children": [], "start_point": {"row": 95, "column": 7}, "end_point": {"row": 95, "column": 12}}, {"id": 177, "type": "number_literal", "text": "3", "parent": 175, "children": [], "start_point": {"row": 95, "column": 13}, "end_point": {"row": 95, "column": 14}}, {"id": 178, "type": "struct_specifier", "text": "struct DaoxShader\n{\n\tuint_t vertexShader;\n\tuint_t fragmentShader;\n\tuint_t program;\n\n\tstruct {\n\t\tuint_t vectorGraphics;\n\t\tuint_t projMatrix;\n\t\tuint_t viewMatrix;\n\t\tuint_t modelMatrix;\n\t\tuint_t cameraPosition;\n\t\tuint_t lightCount;\n\t\tuint_t lightSource;\n\t\tuint_t lightIntensity;\n\t\tuint_t ambientColor;\n\t\tuint_t diffuseColor;\n\t\tuint_t specularColor;\n\t\tuint_t fade_factor;\n\t\tuint_t material;\n\t\tuint_t textureCount;\n\t\tuint_t textures[2];\n\t\tuint_t alphaBlending;\n\t\tuint_t pathLength;\n\t\tuint_t brushColor;\n\t\tuint_t dashCount;\n\t\tuint_t dashSampler;\n\t\tuint_t gradientType;\n\t\tuint_t gradientStops;\n\t\tuint_t gradientPoint1;\n\t\tuint_t gradientPoint2;\n\t\tuint_t gradientRadius;\n\t\tuint_t gradientSampler;\n\t} uniforms;\n\n\tstruct {\n\t\tuint_t position;\n\t\tuint_t normal;\n\t\tuint_t texCoord;\n\t\tuint_t texMO;\n\t\tuint_t texKLMO;\n\t} attributes;\n\n\tstruct {\n\t\tuint_t dashSampler;\n\t\tuint_t gradientSampler;\n\t} textures;\n\n\tDArray *vertexSources;\n\tDArray *fragmentSources;\n}", "parent": 0, "children": [179, 180], "start_point": {"row": 102, "column": 0}, "end_point": {"row": 152, "column": 1}}, {"id": 179, "type": "struct", "text": "struct", "parent": 178, "children": [], "start_point": {"row": 102, "column": 0}, "end_point": {"row": 102, "column": 6}}, {"id": 180, "type": "type_identifier", "text": "DaoxShader", "parent": 178, "children": [], "start_point": {"row": 102, "column": 7}, "end_point": {"row": 102, "column": 17}}, {"id": 181, "type": "field_declaration", "text": "uint_t vertexShader;", "parent": 178, "children": [182, 183], "start_point": {"row": 104, "column": 1}, "end_point": {"row": 104, "column": 22}}, {"id": 182, "type": "type_identifier", "text": "uint_t", "parent": 181, "children": [], "start_point": {"row": 104, "column": 1}, "end_point": {"row": 104, "column": 7}}, {"id": 183, "type": "field_identifier", "text": "vertexShader", "parent": 181, "children": [], "start_point": {"row": 104, "column": 9}, "end_point": {"row": 104, "column": 21}}, {"id": 184, "type": "field_declaration", "text": "uint_t fragmentShader;", "parent": 178, "children": [185, 186], "start_point": {"row": 105, "column": 1}, "end_point": {"row": 105, "column": 24}}, {"id": 185, "type": "type_identifier", "text": "uint_t", "parent": 184, "children": [], "start_point": {"row": 105, "column": 1}, "end_point": {"row": 105, "column": 7}}, {"id": 186, "type": "field_identifier", "text": "fragmentShader", "parent": 184, "children": [], "start_point": {"row": 105, "column": 9}, "end_point": {"row": 105, "column": 23}}, {"id": 187, "type": "field_declaration", "text": "uint_t program;", "parent": 178, "children": [188, 189], "start_point": {"row": 106, "column": 1}, "end_point": {"row": 106, "column": 17}}, {"id": 188, "type": "type_identifier", "text": "uint_t", "parent": 187, "children": [], "start_point": {"row": 106, "column": 1}, "end_point": {"row": 106, "column": 7}}, {"id": 189, "type": "field_identifier", "text": "program", "parent": 187, "children": [], "start_point": {"row": 106, "column": 9}, "end_point": {"row": 106, "column": 16}}, {"id": 190, "type": "field_declaration", "text": "struct {\n\t\tuint_t vectorGraphics;\n\t\tuint_t projMatrix;\n\t\tuint_t viewMatrix;\n\t\tuint_t modelMatrix;\n\t\tuint_t cameraPosition;\n\t\tuint_t lightCount;\n\t\tuint_t lightSource;\n\t\tuint_t lightIntensity;\n\t\tuint_t ambientColor;\n\t\tuint_t diffuseColor;\n\t\tuint_t specularColor;\n\t\tuint_t fade_factor;\n\t\tuint_t material;\n\t\tuint_t textureCount;\n\t\tuint_t textures[2];\n\t\tuint_t alphaBlending;\n\t\tuint_t pathLength;\n\t\tuint_t brushColor;\n\t\tuint_t dashCount;\n\t\tuint_t dashSampler;\n\t\tuint_t gradientType;\n\t\tuint_t gradientStops;\n\t\tuint_t gradientPoint1;\n\t\tuint_t gradientPoint2;\n\t\tuint_t gradientRadius;\n\t\tuint_t gradientSampler;\n\t} uniforms;", "parent": 178, "children": [191, 273], "start_point": {"row": 108, "column": 1}, "end_point": {"row": 135, "column": 12}}, {"id": 191, "type": "struct_specifier", "text": "struct {\n\t\tuint_t vectorGraphics;\n\t\tuint_t projMatrix;\n\t\tuint_t viewMatrix;\n\t\tuint_t modelMatrix;\n\t\tuint_t cameraPosition;\n\t\tuint_t lightCount;\n\t\tuint_t lightSource;\n\t\tuint_t lightIntensity;\n\t\tuint_t ambientColor;\n\t\tuint_t diffuseColor;\n\t\tuint_t specularColor;\n\t\tuint_t fade_factor;\n\t\tuint_t material;\n\t\tuint_t textureCount;\n\t\tuint_t textures[2];\n\t\tuint_t alphaBlending;\n\t\tuint_t pathLength;\n\t\tuint_t brushColor;\n\t\tuint_t dashCount;\n\t\tuint_t dashSampler;\n\t\tuint_t gradientType;\n\t\tuint_t gradientStops;\n\t\tuint_t gradientPoint1;\n\t\tuint_t gradientPoint2;\n\t\tuint_t gradientRadius;\n\t\tuint_t gradientSampler;\n\t}", "parent": 190, "children": [192], "start_point": {"row": 108, "column": 1}, "end_point": {"row": 135, "column": 2}}, {"id": 192, "type": "struct", "text": "struct", "parent": 191, "children": [], "start_point": {"row": 108, "column": 1}, "end_point": {"row": 108, "column": 7}}, {"id": 193, "type": "field_declaration", "text": "uint_t vectorGraphics;", "parent": 191, "children": [194, 195], "start_point": {"row": 109, "column": 2}, "end_point": {"row": 109, "column": 25}}, {"id": 194, "type": "type_identifier", "text": "uint_t", "parent": 193, "children": [], "start_point": {"row": 109, "column": 2}, "end_point": {"row": 109, "column": 8}}, {"id": 195, "type": "field_identifier", "text": "vectorGraphics", "parent": 193, "children": [], "start_point": {"row": 109, "column": 10}, "end_point": {"row": 109, "column": 24}}, {"id": 196, "type": "field_declaration", "text": "uint_t projMatrix;", "parent": 191, "children": [197, 198], "start_point": {"row": 110, "column": 2}, "end_point": {"row": 110, "column": 21}}, {"id": 197, "type": "type_identifier", "text": "uint_t", "parent": 196, "children": [], "start_point": {"row": 110, "column": 2}, "end_point": {"row": 110, "column": 8}}, {"id": 198, "type": "field_identifier", "text": "projMatrix", "parent": 196, "children": [], "start_point": {"row": 110, "column": 10}, "end_point": {"row": 110, "column": 20}}, {"id": 199, "type": "field_declaration", "text": "uint_t viewMatrix;", "parent": 191, "children": [200, 201], "start_point": {"row": 111, "column": 2}, "end_point": {"row": 111, "column": 21}}, {"id": 200, "type": "type_identifier", "text": "uint_t", "parent": 199, "children": [], "start_point": {"row": 111, "column": 2}, "end_point": {"row": 111, "column": 8}}, {"id": 201, "type": "field_identifier", "text": "viewMatrix", "parent": 199, "children": [], "start_point": {"row": 111, "column": 10}, "end_point": {"row": 111, "column": 20}}, {"id": 202, "type": "field_declaration", "text": "uint_t modelMatrix;", "parent": 191, "children": [203, 204], "start_point": {"row": 112, "column": 2}, "end_point": {"row": 112, "column": 22}}, {"id": 203, "type": "type_identifier", "text": "uint_t", "parent": 202, "children": [], "start_point": {"row": 112, "column": 2}, "end_point": {"row": 112, "column": 8}}, {"id": 204, "type": "field_identifier", "text": "modelMatrix", "parent": 202, "children": [], "start_point": {"row": 112, "column": 10}, "end_point": {"row": 112, "column": 21}}, {"id": 205, "type": "field_declaration", "text": "uint_t cameraPosition;", "parent": 191, "children": [206, 207], "start_point": {"row": 113, "column": 2}, "end_point": {"row": 113, "column": 25}}, {"id": 206, "type": "type_identifier", "text": "uint_t", "parent": 205, "children": [], "start_point": {"row": 113, "column": 2}, "end_point": {"row": 113, "column": 8}}, {"id": 207, "type": "field_identifier", "text": "cameraPosition", "parent": 205, "children": [], "start_point": {"row": 113, "column": 10}, "end_point": {"row": 113, "column": 24}}, {"id": 208, "type": "field_declaration", "text": "uint_t lightCount;", "parent": 191, "children": [209, 210], "start_point": {"row": 114, "column": 2}, "end_point": {"row": 114, "column": 21}}, {"id": 209, "type": "type_identifier", "text": "uint_t", "parent": 208, "children": [], "start_point": {"row": 114, "column": 2}, "end_point": {"row": 114, "column": 8}}, {"id": 210, "type": "field_identifier", "text": "lightCount", "parent": 208, "children": [], "start_point": {"row": 114, "column": 10}, "end_point": {"row": 114, "column": 20}}, {"id": 211, "type": "field_declaration", "text": "uint_t lightSource;", "parent": 191, "children": [212, 213], "start_point": {"row": 115, "column": 2}, "end_point": {"row": 115, "column": 22}}, {"id": 212, "type": "type_identifier", "text": "uint_t", "parent": 211, "children": [], "start_point": {"row": 115, "column": 2}, "end_point": {"row": 115, "column": 8}}, {"id": 213, "type": "field_identifier", "text": "lightSource", "parent": 211, "children": [], "start_point": {"row": 115, "column": 10}, "end_point": {"row": 115, "column": 21}}, {"id": 214, "type": "field_declaration", "text": "uint_t lightIntensity;", "parent": 191, "children": [215, 216], "start_point": {"row": 116, "column": 2}, "end_point": {"row": 116, "column": 25}}, {"id": 215, "type": "type_identifier", "text": "uint_t", "parent": 214, "children": [], "start_point": {"row": 116, "column": 2}, "end_point": {"row": 116, "column": 8}}, {"id": 216, "type": "field_identifier", "text": "lightIntensity", "parent": 214, "children": [], "start_point": {"row": 116, "column": 10}, "end_point": {"row": 116, "column": 24}}, {"id": 217, "type": "field_declaration", "text": "uint_t ambientColor;", "parent": 191, "children": [218, 219], "start_point": {"row": 117, "column": 2}, "end_point": {"row": 117, "column": 23}}, {"id": 218, "type": "type_identifier", "text": "uint_t", "parent": 217, "children": [], "start_point": {"row": 117, "column": 2}, "end_point": {"row": 117, "column": 8}}, {"id": 219, "type": "field_identifier", "text": "ambientColor", "parent": 217, "children": [], "start_point": {"row": 117, "column": 10}, "end_point": {"row": 117, "column": 22}}, {"id": 220, "type": "field_declaration", "text": "uint_t diffuseColor;", "parent": 191, "children": [221, 222], "start_point": {"row": 118, "column": 2}, "end_point": {"row": 118, "column": 23}}, {"id": 221, "type": "type_identifier", "text": "uint_t", "parent": 220, "children": [], "start_point": {"row": 118, "column": 2}, "end_point": {"row": 118, "column": 8}}, {"id": 222, "type": "field_identifier", "text": "diffuseColor", "parent": 220, "children": [], "start_point": {"row": 118, "column": 10}, "end_point": {"row": 118, "column": 22}}, {"id": 223, "type": "field_declaration", "text": "uint_t specularColor;", "parent": 191, "children": [224, 225], "start_point": {"row": 119, "column": 2}, "end_point": {"row": 119, "column": 24}}, {"id": 224, "type": "type_identifier", "text": "uint_t", "parent": 223, "children": [], "start_point": {"row": 119, "column": 2}, "end_point": {"row": 119, "column": 8}}, {"id": 225, "type": "field_identifier", "text": "specularColor", "parent": 223, "children": [], "start_point": {"row": 119, "column": 10}, "end_point": {"row": 119, "column": 23}}, {"id": 226, "type": "field_declaration", "text": "uint_t fade_factor;", "parent": 191, "children": [227, 228], "start_point": {"row": 120, "column": 2}, "end_point": {"row": 120, "column": 22}}, {"id": 227, "type": "type_identifier", "text": "uint_t", "parent": 226, "children": [], "start_point": {"row": 120, "column": 2}, "end_point": {"row": 120, "column": 8}}, {"id": 228, "type": "field_identifier", "text": "fade_factor", "parent": 226, "children": [], "start_point": {"row": 120, "column": 10}, "end_point": {"row": 120, "column": 21}}, {"id": 229, "type": "field_declaration", "text": "uint_t material;", "parent": 191, "children": [230, 231], "start_point": {"row": 121, "column": 2}, "end_point": {"row": 121, "column": 19}}, {"id": 230, "type": "type_identifier", "text": "uint_t", "parent": 229, "children": [], "start_point": {"row": 121, "column": 2}, "end_point": {"row": 121, "column": 8}}, {"id": 231, "type": "field_identifier", "text": "material", "parent": 229, "children": [], "start_point": {"row": 121, "column": 10}, "end_point": {"row": 121, "column": 18}}, {"id": 232, "type": "field_declaration", "text": "uint_t textureCount;", "parent": 191, "children": [233, 234], "start_point": {"row": 122, "column": 2}, "end_point": {"row": 122, "column": 23}}, {"id": 233, "type": "type_identifier", "text": "uint_t", "parent": 232, "children": [], "start_point": {"row": 122, "column": 2}, "end_point": {"row": 122, "column": 8}}, {"id": 234, "type": "field_identifier", "text": "textureCount", "parent": 232, "children": [], "start_point": {"row": 122, "column": 10}, "end_point": {"row": 122, "column": 22}}, {"id": 235, "type": "field_declaration", "text": "uint_t textures[2];", "parent": 191, "children": [236, 237], "start_point": {"row": 123, "column": 2}, "end_point": {"row": 123, "column": 22}}, {"id": 236, "type": "type_identifier", "text": "uint_t", "parent": 235, "children": [], "start_point": {"row": 123, "column": 2}, "end_point": {"row": 123, "column": 8}}, {"id": 237, "type": "array_declarator", "text": "textures[2]", "parent": 235, "children": [238, 239], "start_point": {"row": 123, "column": 10}, "end_point": {"row": 123, "column": 21}}, {"id": 238, "type": "field_identifier", "text": "textures", "parent": 237, "children": [], "start_point": {"row": 123, "column": 10}, "end_point": {"row": 123, "column": 18}}, {"id": 239, "type": "number_literal", "text": "2", "parent": 237, "children": [], "start_point": {"row": 123, "column": 19}, "end_point": {"row": 123, "column": 20}}, {"id": 240, "type": "field_declaration", "text": "uint_t alphaBlending;", "parent": 191, "children": [241, 242], "start_point": {"row": 124, "column": 2}, "end_point": {"row": 124, "column": 24}}, {"id": 241, "type": "type_identifier", "text": "uint_t", "parent": 240, "children": [], "start_point": {"row": 124, "column": 2}, "end_point": {"row": 124, "column": 8}}, {"id": 242, "type": "field_identifier", "text": "alphaBlending", "parent": 240, "children": [], "start_point": {"row": 124, "column": 10}, "end_point": {"row": 124, "column": 23}}, {"id": 243, "type": "field_declaration", "text": "uint_t pathLength;", "parent": 191, "children": [244, 245], "start_point": {"row": 125, "column": 2}, "end_point": {"row": 125, "column": 21}}, {"id": 244, "type": "type_identifier", "text": "uint_t", "parent": 243, "children": [], "start_point": {"row": 125, "column": 2}, "end_point": {"row": 125, "column": 8}}, {"id": 245, "type": "field_identifier", "text": "pathLength", "parent": 243, "children": [], "start_point": {"row": 125, "column": 10}, "end_point": {"row": 125, "column": 20}}, {"id": 246, "type": "field_declaration", "text": "uint_t brushColor;", "parent": 191, "children": [247, 248], "start_point": {"row": 126, "column": 2}, "end_point": {"row": 126, "column": 21}}, {"id": 247, "type": "type_identifier", "text": "uint_t", "parent": 246, "children": [], "start_point": {"row": 126, "column": 2}, "end_point": {"row": 126, "column": 8}}, {"id": 248, "type": "field_identifier", "text": "brushColor", "parent": 246, "children": [], "start_point": {"row": 126, "column": 10}, "end_point": {"row": 126, "column": 20}}, {"id": 249, "type": "field_declaration", "text": "uint_t dashCount;", "parent": 191, "children": [250, 251], "start_point": {"row": 127, "column": 2}, "end_point": {"row": 127, "column": 20}}, {"id": 250, "type": "type_identifier", "text": "uint_t", "parent": 249, "children": [], "start_point": {"row": 127, "column": 2}, "end_point": {"row": 127, "column": 8}}, {"id": 251, "type": "field_identifier", "text": "dashCount", "parent": 249, "children": [], "start_point": {"row": 127, "column": 10}, "end_point": {"row": 127, "column": 19}}, {"id": 252, "type": "field_declaration", "text": "uint_t dashSampler;", "parent": 191, "children": [253, 254], "start_point": {"row": 128, "column": 2}, "end_point": {"row": 128, "column": 22}}, {"id": 253, "type": "type_identifier", "text": "uint_t", "parent": 252, "children": [], "start_point": {"row": 128, "column": 2}, "end_point": {"row": 128, "column": 8}}, {"id": 254, "type": "field_identifier", "text": "dashSampler", "parent": 252, "children": [], "start_point": {"row": 128, "column": 10}, "end_point": {"row": 128, "column": 21}}, {"id": 255, "type": "field_declaration", "text": "uint_t gradientType;", "parent": 191, "children": [256, 257], "start_point": {"row": 129, "column": 2}, "end_point": {"row": 129, "column": 23}}, {"id": 256, "type": "type_identifier", "text": "uint_t", "parent": 255, "children": [], "start_point": {"row": 129, "column": 2}, "end_point": {"row": 129, "column": 8}}, {"id": 257, "type": "field_identifier", "text": "gradientType", "parent": 255, "children": [], "start_point": {"row": 129, "column": 10}, "end_point": {"row": 129, "column": 22}}, {"id": 258, "type": "field_declaration", "text": "uint_t gradientStops;", "parent": 191, "children": [259, 260], "start_point": {"row": 130, "column": 2}, "end_point": {"row": 130, "column": 24}}, {"id": 259, "type": "type_identifier", "text": "uint_t", "parent": 258, "children": [], "start_point": {"row": 130, "column": 2}, "end_point": {"row": 130, "column": 8}}, {"id": 260, "type": "field_identifier", "text": "gradientStops", "parent": 258, "children": [], "start_point": {"row": 130, "column": 10}, "end_point": {"row": 130, "column": 23}}, {"id": 261, "type": "field_declaration", "text": "uint_t gradientPoint1;", "parent": 191, "children": [262, 263], "start_point": {"row": 131, "column": 2}, "end_point": {"row": 131, "column": 25}}, {"id": 262, "type": "type_identifier", "text": "uint_t", "parent": 261, "children": [], "start_point": {"row": 131, "column": 2}, "end_point": {"row": 131, "column": 8}}, {"id": 263, "type": "field_identifier", "text": "gradientPoint1", "parent": 261, "children": [], "start_point": {"row": 131, "column": 10}, "end_point": {"row": 131, "column": 24}}, {"id": 264, "type": "field_declaration", "text": "uint_t gradientPoint2;", "parent": 191, "children": [265, 266], "start_point": {"row": 132, "column": 2}, "end_point": {"row": 132, "column": 25}}, {"id": 265, "type": "type_identifier", "text": "uint_t", "parent": 264, "children": [], "start_point": {"row": 132, "column": 2}, "end_point": {"row": 132, "column": 8}}, {"id": 266, "type": "field_identifier", "text": "gradientPoint2", "parent": 264, "children": [], "start_point": {"row": 132, "column": 10}, "end_point": {"row": 132, "column": 24}}, {"id": 267, "type": "field_declaration", "text": "uint_t gradientRadius;", "parent": 191, "children": [268, 269], "start_point": {"row": 133, "column": 2}, "end_point": {"row": 133, "column": 25}}, {"id": 268, "type": "type_identifier", "text": "uint_t", "parent": 267, "children": [], "start_point": {"row": 133, "column": 2}, "end_point": {"row": 133, "column": 8}}, {"id": 269, "type": "field_identifier", "text": "gradientRadius", "parent": 267, "children": [], "start_point": {"row": 133, "column": 10}, "end_point": {"row": 133, "column": 24}}, {"id": 270, "type": "field_declaration", "text": "uint_t gradientSampler;", "parent": 191, "children": [271, 272], "start_point": {"row": 134, "column": 2}, "end_point": {"row": 134, "column": 26}}, {"id": 271, "type": "type_identifier", "text": "uint_t", "parent": 270, "children": [], "start_point": {"row": 134, "column": 2}, "end_point": {"row": 134, "column": 8}}, {"id": 272, "type": "field_identifier", "text": "gradientSampler", "parent": 270, "children": [], "start_point": {"row": 134, "column": 10}, "end_point": {"row": 134, "column": 25}}, {"id": 273, "type": "field_identifier", "text": "uniforms", "parent": 190, "children": [], "start_point": {"row": 135, "column": 3}, "end_point": {"row": 135, "column": 11}}, {"id": 274, "type": "field_declaration", "text": "struct {\n\t\tuint_t position;\n\t\tuint_t normal;\n\t\tuint_t texCoord;\n\t\tuint_t texMO;\n\t\tuint_t texKLMO;\n\t} attributes;", "parent": 178, "children": [275, 292], "start_point": {"row": 137, "column": 1}, "end_point": {"row": 143, "column": 14}}, {"id": 275, "type": "struct_specifier", "text": "struct {\n\t\tuint_t position;\n\t\tuint_t normal;\n\t\tuint_t texCoord;\n\t\tuint_t texMO;\n\t\tuint_t texKLMO;\n\t}", "parent": 274, "children": [276], "start_point": {"row": 137, "column": 1}, "end_point": {"row": 143, "column": 2}}, {"id": 276, "type": "struct", "text": "struct", "parent": 275, "children": [], "start_point": {"row": 137, "column": 1}, "end_point": {"row": 137, "column": 7}}, {"id": 277, "type": "field_declaration", "text": "uint_t position;", "parent": 275, "children": [278, 279], "start_point": {"row": 138, "column": 2}, "end_point": {"row": 138, "column": 19}}, {"id": 278, "type": "type_identifier", "text": "uint_t", "parent": 277, "children": [], "start_point": {"row": 138, "column": 2}, "end_point": {"row": 138, "column": 8}}, {"id": 279, "type": "field_identifier", "text": "position", "parent": 277, "children": [], "start_point": {"row": 138, "column": 10}, "end_point": {"row": 138, "column": 18}}, {"id": 280, "type": "field_declaration", "text": "uint_t normal;", "parent": 275, "children": [281, 282], "start_point": {"row": 139, "column": 2}, "end_point": {"row": 139, "column": 17}}, {"id": 281, "type": "type_identifier", "text": "uint_t", "parent": 280, "children": [], "start_point": {"row": 139, "column": 2}, "end_point": {"row": 139, "column": 8}}, {"id": 282, "type": "field_identifier", "text": "normal", "parent": 280, "children": [], "start_point": {"row": 139, "column": 10}, "end_point": {"row": 139, "column": 16}}, {"id": 283, "type": "field_declaration", "text": "uint_t texCoord;", "parent": 275, "children": [284, 285], "start_point": {"row": 140, "column": 2}, "end_point": {"row": 140, "column": 19}}, {"id": 284, "type": "type_identifier", "text": "uint_t", "parent": 283, "children": [], "start_point": {"row": 140, "column": 2}, "end_point": {"row": 140, "column": 8}}, {"id": 285, "type": "field_identifier", "text": "texCoord", "parent": 283, "children": [], "start_point": {"row": 140, "column": 10}, "end_point": {"row": 140, "column": 18}}, {"id": 286, "type": "field_declaration", "text": "uint_t texMO;", "parent": 275, "children": [287, 288], "start_point": {"row": 141, "column": 2}, "end_point": {"row": 141, "column": 16}}, {"id": 287, "type": "type_identifier", "text": "uint_t", "parent": 286, "children": [], "start_point": {"row": 141, "column": 2}, "end_point": {"row": 141, "column": 8}}, {"id": 288, "type": "field_identifier", "text": "texMO", "parent": 286, "children": [], "start_point": {"row": 141, "column": 10}, "end_point": {"row": 141, "column": 15}}, {"id": 289, "type": "field_declaration", "text": "uint_t texKLMO;", "parent": 275, "children": [290, 291], "start_point": {"row": 142, "column": 2}, "end_point": {"row": 142, "column": 18}}, {"id": 290, "type": "type_identifier", "text": "uint_t", "parent": 289, "children": [], "start_point": {"row": 142, "column": 2}, "end_point": {"row": 142, "column": 8}}, {"id": 291, "type": "field_identifier", "text": "texKLMO", "parent": 289, "children": [], "start_point": {"row": 142, "column": 10}, "end_point": {"row": 142, "column": 17}}, {"id": 292, "type": "field_identifier", "text": "attributes", "parent": 274, "children": [], "start_point": {"row": 143, "column": 3}, "end_point": {"row": 143, "column": 13}}, {"id": 293, "type": "field_declaration", "text": "struct {\n\t\tuint_t dashSampler;\n\t\tuint_t gradientSampler;\n\t} textures;", "parent": 178, "children": [294, 302], "start_point": {"row": 145, "column": 1}, "end_point": {"row": 148, "column": 12}}, {"id": 294, "type": "struct_specifier", "text": "struct {\n\t\tuint_t dashSampler;\n\t\tuint_t gradientSampler;\n\t}", "parent": 293, "children": [295], "start_point": {"row": 145, "column": 1}, "end_point": {"row": 148, "column": 2}}, {"id": 295, "type": "struct", "text": "struct", "parent": 294, "children": [], "start_point": {"row": 145, "column": 1}, "end_point": {"row": 145, "column": 7}}, {"id": 296, "type": "field_declaration", "text": "uint_t dashSampler;", "parent": 294, "children": [297, 298], "start_point": {"row": 146, "column": 2}, "end_point": {"row": 146, "column": 22}}, {"id": 297, "type": "type_identifier", "text": "uint_t", "parent": 296, "children": [], "start_point": {"row": 146, "column": 2}, "end_point": {"row": 146, "column": 8}}, {"id": 298, "type": "field_identifier", "text": "dashSampler", "parent": 296, "children": [], "start_point": {"row": 146, "column": 10}, "end_point": {"row": 146, "column": 21}}, {"id": 299, "type": "field_declaration", "text": "uint_t gradientSampler;", "parent": 294, "children": [300, 301], "start_point": {"row": 147, "column": 2}, "end_point": {"row": 147, "column": 26}}, {"id": 300, "type": "type_identifier", "text": "uint_t", "parent": 299, "children": [], "start_point": {"row": 147, "column": 2}, "end_point": {"row": 147, "column": 8}}, {"id": 301, "type": "field_identifier", "text": "gradientSampler", "parent": 299, "children": [], "start_point": {"row": 147, "column": 10}, "end_point": {"row": 147, "column": 25}}, {"id": 302, "type": "field_identifier", "text": "textures", "parent": 293, "children": [], "start_point": {"row": 148, "column": 3}, "end_point": {"row": 148, "column": 11}}, {"id": 303, "type": "field_declaration", "text": "DArray *vertexSources;", "parent": 178, "children": [304, 305], "start_point": {"row": 150, "column": 1}, "end_point": {"row": 150, "column": 24}}, {"id": 304, "type": "type_identifier", "text": "DArray", "parent": 303, "children": [], "start_point": {"row": 150, "column": 1}, "end_point": {"row": 150, "column": 7}}, {"id": 305, "type": "pointer_declarator", "text": "*vertexSources", "parent": 303, "children": [306, 307], "start_point": {"row": 150, "column": 9}, "end_point": {"row": 150, "column": 23}}, {"id": 306, "type": "*", "text": "*", "parent": 305, "children": [], "start_point": {"row": 150, "column": 9}, "end_point": {"row": 150, "column": 10}}, {"id": 307, "type": "field_identifier", "text": "vertexSources", "parent": 305, "children": [], "start_point": {"row": 150, "column": 10}, "end_point": {"row": 150, "column": 23}}, {"id": 308, "type": "field_declaration", "text": "DArray *fragmentSources;", "parent": 178, "children": [309, 310], "start_point": {"row": 151, "column": 1}, "end_point": {"row": 151, "column": 26}}, {"id": 309, "type": "type_identifier", "text": "DArray", "parent": 308, "children": [], "start_point": {"row": 151, "column": 1}, "end_point": {"row": 151, "column": 7}}, {"id": 310, "type": "pointer_declarator", "text": "*fragmentSources", "parent": 308, "children": [311, 312], "start_point": {"row": 151, "column": 9}, "end_point": {"row": 151, "column": 25}}, {"id": 311, "type": "*", "text": "*", "parent": 310, "children": [], "start_point": {"row": 151, "column": 9}, "end_point": {"row": 151, "column": 10}}, {"id": 312, "type": "field_identifier", "text": "fragmentSources", "parent": 310, "children": [], "start_point": {"row": 151, "column": 10}, "end_point": {"row": 151, "column": 25}}, {"id": 313, "type": "declaration", "text": "void DaoxShader_Init2D( DaoxShader *self );", "parent": 0, "children": [314, 315], "start_point": {"row": 154, "column": 0}, "end_point": {"row": 154, "column": 43}}, {"id": 314, "type": "primitive_type", "text": "void", "parent": 313, "children": [], "start_point": {"row": 154, "column": 0}, "end_point": {"row": 154, "column": 4}}, {"id": 315, "type": "function_declarator", "text": "DaoxShader_Init2D( DaoxShader *self )", "parent": 313, "children": [316, 317], "start_point": {"row": 154, "column": 5}, "end_point": {"row": 154, "column": 42}}, {"id": 316, "type": "identifier", "text": "DaoxShader_Init2D", "parent": 315, "children": [], "start_point": {"row": 154, "column": 5}, "end_point": {"row": 154, "column": 22}}, {"id": 317, "type": "parameter_list", "text": "( DaoxShader *self )", "parent": 315, "children": [318], "start_point": {"row": 154, "column": 22}, "end_point": {"row": 154, "column": 42}}, {"id": 318, "type": "parameter_declaration", "text": "DaoxShader *self", "parent": 317, "children": [319, 320], "start_point": {"row": 154, "column": 24}, "end_point": {"row": 154, "column": 40}}, {"id": 319, "type": "type_identifier", "text": "DaoxShader", "parent": 318, "children": [], "start_point": {"row": 154, "column": 24}, "end_point": {"row": 154, "column": 34}}, {"id": 320, "type": "pointer_declarator", "text": "*self", "parent": 318, "children": [321, 322], "start_point": {"row": 154, "column": 35}, "end_point": {"row": 154, "column": 40}}, {"id": 321, "type": "*", "text": "*", "parent": 320, "children": [], "start_point": {"row": 154, "column": 35}, "end_point": {"row": 154, "column": 36}}, {"id": 322, "type": "identifier", "text": "self", "parent": 320, "children": [], "start_point": {"row": 154, "column": 36}, "end_point": {"row": 154, "column": 40}}, {"id": 323, "type": "declaration", "text": "void DaoxShader_Init3D( DaoxShader *self );", "parent": 0, "children": [324, 325], "start_point": {"row": 155, "column": 0}, "end_point": {"row": 155, "column": 43}}, {"id": 324, "type": "primitive_type", "text": "void", "parent": 323, "children": [], "start_point": {"row": 155, "column": 0}, "end_point": {"row": 155, "column": 4}}, {"id": 325, "type": "function_declarator", "text": "DaoxShader_Init3D( DaoxShader *self )", "parent": 323, "children": [326, 327], "start_point": {"row": 155, "column": 5}, "end_point": {"row": 155, "column": 42}}, {"id": 326, "type": "identifier", "text": "DaoxShader_Init3D", "parent": 325, "children": [], "start_point": {"row": 155, "column": 5}, "end_point": {"row": 155, "column": 22}}, {"id": 327, "type": "parameter_list", "text": "( DaoxShader *self )", "parent": 325, "children": [328], "start_point": {"row": 155, "column": 22}, "end_point": {"row": 155, "column": 42}}, {"id": 328, "type": "parameter_declaration", "text": "DaoxShader *self", "parent": 327, "children": [329, 330], "start_point": {"row": 155, "column": 24}, "end_point": {"row": 155, "column": 40}}, {"id": 329, "type": "type_identifier", "text": "DaoxShader", "parent": 328, "children": [], "start_point": {"row": 155, "column": 24}, "end_point": {"row": 155, "column": 34}}, {"id": 330, "type": "pointer_declarator", "text": "*self", "parent": 328, "children": [331, 332], "start_point": {"row": 155, "column": 35}, "end_point": {"row": 155, "column": 40}}, {"id": 331, "type": "*", "text": "*", "parent": 330, "children": [], "start_point": {"row": 155, "column": 35}, "end_point": {"row": 155, "column": 36}}, {"id": 332, "type": "identifier", "text": "self", "parent": 330, "children": [], "start_point": {"row": 155, "column": 36}, "end_point": {"row": 155, "column": 40}}, {"id": 333, "type": "declaration", "text": "void DaoxShader_Free( DaoxShader *self );", "parent": 0, "children": [334, 335], "start_point": {"row": 156, "column": 0}, "end_point": {"row": 156, "column": 41}}, {"id": 334, "type": "primitive_type", "text": "void", "parent": 333, "children": [], "start_point": {"row": 156, "column": 0}, "end_point": {"row": 156, "column": 4}}, {"id": 335, "type": "function_declarator", "text": "DaoxShader_Free( DaoxShader *self )", "parent": 333, "children": [336, 337], "start_point": {"row": 156, "column": 5}, "end_point": {"row": 156, "column": 40}}, {"id": 336, "type": "identifier", "text": "DaoxShader_Free", "parent": 335, "children": [], "start_point": {"row": 156, "column": 5}, "end_point": {"row": 156, "column": 20}}, {"id": 337, "type": "parameter_list", "text": "( DaoxShader *self )", "parent": 335, "children": [338], "start_point": {"row": 156, "column": 20}, "end_point": {"row": 156, "column": 40}}, {"id": 338, "type": "parameter_declaration", "text": "DaoxShader *self", "parent": 337, "children": [339, 340], "start_point": {"row": 156, "column": 22}, "end_point": {"row": 156, "column": 38}}, {"id": 339, "type": "type_identifier", "text": "DaoxShader", "parent": 338, "children": [], "start_point": {"row": 156, "column": 22}, "end_point": {"row": 156, "column": 32}}, {"id": 340, "type": "pointer_declarator", "text": "*self", "parent": 338, "children": [341, 342], "start_point": {"row": 156, "column": 33}, "end_point": {"row": 156, "column": 38}}, {"id": 341, "type": "*", "text": "*", "parent": 340, "children": [], "start_point": {"row": 156, "column": 33}, "end_point": {"row": 156, "column": 34}}, {"id": 342, "type": "identifier", "text": "self", "parent": 340, "children": [], "start_point": {"row": 156, "column": 34}, "end_point": {"row": 156, "column": 38}}, {"id": 343, "type": "declaration", "text": "void DaoxShader_AddShader( DaoxShader *self, int type, const char *source );", "parent": 0, "children": [344, 345], "start_point": {"row": 157, "column": 0}, "end_point": {"row": 157, "column": 76}}, {"id": 344, "type": "primitive_type", "text": "void", "parent": 343, "children": [], "start_point": {"row": 157, "column": 0}, "end_point": {"row": 157, "column": 4}}, {"id": 345, "type": "function_declarator", "text": "DaoxShader_AddShader( DaoxShader *self, int type, const char *source )", "parent": 343, "children": [346, 347], "start_point": {"row": 157, "column": 5}, "end_point": {"row": 157, "column": 75}}, {"id": 346, "type": "identifier", "text": "DaoxShader_AddShader", "parent": 345, "children": [], "start_point": {"row": 157, "column": 5}, "end_point": {"row": 157, "column": 25}}, {"id": 347, "type": "parameter_list", "text": "( DaoxShader *self, int type, const char *source )", "parent": 345, "children": [348, 353, 356], "start_point": {"row": 157, "column": 25}, "end_point": {"row": 157, "column": 75}}, {"id": 348, "type": "parameter_declaration", "text": "DaoxShader *self", "parent": 347, "children": [349, 350], "start_point": {"row": 157, "column": 27}, "end_point": {"row": 157, "column": 43}}, {"id": 349, "type": "type_identifier", "text": "DaoxShader", "parent": 348, "children": [], "start_point": {"row": 157, "column": 27}, "end_point": {"row": 157, "column": 37}}, {"id": 350, "type": "pointer_declarator", "text": "*self", "parent": 348, "children": [351, 352], "start_point": {"row": 157, "column": 38}, "end_point": {"row": 157, "column": 43}}, {"id": 351, "type": "*", "text": "*", "parent": 350, "children": [], "start_point": {"row": 157, "column": 38}, "end_point": {"row": 157, "column": 39}}, {"id": 352, "type": "identifier", "text": "self", "parent": 350, "children": [], "start_point": {"row": 157, "column": 39}, "end_point": {"row": 157, "column": 43}}, {"id": 353, "type": "parameter_declaration", "text": "int type", "parent": 347, "children": [354, 355], "start_point": {"row": 157, "column": 45}, "end_point": {"row": 157, "column": 53}}, {"id": 354, "type": "primitive_type", "text": "int", "parent": 353, "children": [], "start_point": {"row": 157, "column": 45}, "end_point": {"row": 157, "column": 48}}, {"id": 355, "type": "identifier", "text": "type", "parent": 353, "children": [], "start_point": {"row": 157, "column": 49}, "end_point": {"row": 157, "column": 53}}, {"id": 356, "type": "parameter_declaration", "text": "const char *source", "parent": 347, "children": [357, 358], "start_point": {"row": 157, "column": 55}, "end_point": {"row": 157, "column": 73}}, {"id": 357, "type": "primitive_type", "text": "char", "parent": 356, "children": [], "start_point": {"row": 157, "column": 61}, "end_point": {"row": 157, "column": 65}}, {"id": 358, "type": "pointer_declarator", "text": "*source", "parent": 356, "children": [359, 360], "start_point": {"row": 157, "column": 66}, "end_point": {"row": 157, "column": 73}}, {"id": 359, "type": "*", "text": "*", "parent": 358, "children": [], "start_point": {"row": 157, "column": 66}, "end_point": {"row": 157, "column": 67}}, {"id": 360, "type": "identifier", "text": "source", "parent": 358, "children": [], "start_point": {"row": 157, "column": 67}, "end_point": {"row": 157, "column": 73}}, {"id": 361, "type": "declaration", "text": "void DaoxShader_Finalize2D( DaoxShader *self );", "parent": 0, "children": [362, 363], "start_point": {"row": 158, "column": 0}, "end_point": {"row": 158, "column": 47}}, {"id": 362, "type": "primitive_type", "text": "void", "parent": 361, "children": [], "start_point": {"row": 158, "column": 0}, "end_point": {"row": 158, "column": 4}}, {"id": 363, "type": "function_declarator", "text": "DaoxShader_Finalize2D( DaoxShader *self )", "parent": 361, "children": [364, 365], "start_point": {"row": 158, "column": 5}, "end_point": {"row": 158, "column": 46}}, {"id": 364, "type": "identifier", "text": "DaoxShader_Finalize2D", "parent": 363, "children": [], "start_point": {"row": 158, "column": 5}, "end_point": {"row": 158, "column": 26}}, {"id": 365, "type": "parameter_list", "text": "( DaoxShader *self )", "parent": 363, "children": [366], "start_point": {"row": 158, "column": 26}, "end_point": {"row": 158, "column": 46}}, {"id": 366, "type": "parameter_declaration", "text": "DaoxShader *self", "parent": 365, "children": [367, 368], "start_point": {"row": 158, "column": 28}, "end_point": {"row": 158, "column": 44}}, {"id": 367, "type": "type_identifier", "text": "DaoxShader", "parent": 366, "children": [], "start_point": {"row": 158, "column": 28}, "end_point": {"row": 158, "column": 38}}, {"id": 368, "type": "pointer_declarator", "text": "*self", "parent": 366, "children": [369, 370], "start_point": {"row": 158, "column": 39}, "end_point": {"row": 158, "column": 44}}, {"id": 369, "type": "*", "text": "*", "parent": 368, "children": [], "start_point": {"row": 158, "column": 39}, "end_point": {"row": 158, "column": 40}}, {"id": 370, "type": "identifier", "text": "self", "parent": 368, "children": [], "start_point": {"row": 158, "column": 40}, "end_point": {"row": 158, "column": 44}}, {"id": 371, "type": "declaration", "text": "void DaoxShader_Finalize3D( DaoxShader *self );", "parent": 0, "children": [372, 373], "start_point": {"row": 159, "column": 0}, "end_point": {"row": 159, "column": 47}}, {"id": 372, "type": "primitive_type", "text": "void", "parent": 371, "children": [], "start_point": {"row": 159, "column": 0}, "end_point": {"row": 159, "column": 4}}, {"id": 373, "type": "function_declarator", "text": "DaoxShader_Finalize3D( DaoxShader *self )", "parent": 371, "children": [374, 375], "start_point": {"row": 159, "column": 5}, "end_point": {"row": 159, "column": 46}}, {"id": 374, "type": "identifier", "text": "DaoxShader_Finalize3D", "parent": 373, "children": [], "start_point": {"row": 159, "column": 5}, "end_point": {"row": 159, "column": 26}}, {"id": 375, "type": "parameter_list", "text": "( DaoxShader *self )", "parent": 373, "children": [376], "start_point": {"row": 159, "column": 26}, "end_point": {"row": 159, "column": 46}}, {"id": 376, "type": "parameter_declaration", "text": "DaoxShader *self", "parent": 375, "children": [377, 378], "start_point": {"row": 159, "column": 28}, "end_point": {"row": 159, "column": 44}}, {"id": 377, "type": "type_identifier", "text": "DaoxShader", "parent": 376, "children": [], "start_point": {"row": 159, "column": 28}, "end_point": {"row": 159, "column": 38}}, {"id": 378, "type": "pointer_declarator", "text": "*self", "parent": 376, "children": [379, 380], "start_point": {"row": 159, "column": 39}, "end_point": {"row": 159, "column": 44}}, {"id": 379, "type": "*", "text": "*", "parent": 378, "children": [], "start_point": {"row": 159, "column": 39}, "end_point": {"row": 159, "column": 40}}, {"id": 380, "type": "identifier", "text": "self", "parent": 378, "children": [], "start_point": {"row": 159, "column": 40}, "end_point": {"row": 159, "column": 44}}, {"id": 381, "type": "declaration", "text": "void DaoxShader_MakeGradientSampler( DaoxShader *self, DaoxColorGradient *gradient, int fill );", "parent": 0, "children": [382, 383], "start_point": {"row": 160, "column": 0}, "end_point": {"row": 160, "column": 95}}, {"id": 382, "type": "primitive_type", "text": "void", "parent": 381, "children": [], "start_point": {"row": 160, "column": 0}, "end_point": {"row": 160, "column": 4}}, {"id": 383, "type": "function_declarator", "text": "DaoxShader_MakeGradientSampler( DaoxShader *self, DaoxColorGradient *gradient, int fill )", "parent": 381, "children": [384, 385], "start_point": {"row": 160, "column": 5}, "end_point": {"row": 160, "column": 94}}, {"id": 384, "type": "identifier", "text": "DaoxShader_MakeGradientSampler", "parent": 383, "children": [], "start_point": {"row": 160, "column": 5}, "end_point": {"row": 160, "column": 35}}, {"id": 385, "type": "parameter_list", "text": "( DaoxShader *self, DaoxColorGradient *gradient, int fill )", "parent": 383, "children": [386, 391, 396], "start_point": {"row": 160, "column": 35}, "end_point": {"row": 160, "column": 94}}, {"id": 386, "type": "parameter_declaration", "text": "DaoxShader *self", "parent": 385, "children": [387, 388], "start_point": {"row": 160, "column": 37}, "end_point": {"row": 160, "column": 53}}, {"id": 387, "type": "type_identifier", "text": "DaoxShader", "parent": 386, "children": [], "start_point": {"row": 160, "column": 37}, "end_point": {"row": 160, "column": 47}}, {"id": 388, "type": "pointer_declarator", "text": "*self", "parent": 386, "children": [389, 390], "start_point": {"row": 160, "column": 48}, "end_point": {"row": 160, "column": 53}}, {"id": 389, "type": "*", "text": "*", "parent": 388, "children": [], "start_point": {"row": 160, "column": 48}, "end_point": {"row": 160, "column": 49}}, {"id": 390, "type": "identifier", "text": "self", "parent": 388, "children": [], "start_point": {"row": 160, "column": 49}, "end_point": {"row": 160, "column": 53}}, {"id": 391, "type": "parameter_declaration", "text": "DaoxColorGradient *gradient", "parent": 385, "children": [392, 393], "start_point": {"row": 160, "column": 55}, "end_point": {"row": 160, "column": 82}}, {"id": 392, "type": "type_identifier", "text": "DaoxColorGradient", "parent": 391, "children": [], "start_point": {"row": 160, "column": 55}, "end_point": {"row": 160, "column": 72}}, {"id": 393, "type": "pointer_declarator", "text": "*gradient", "parent": 391, "children": [394, 395], "start_point": {"row": 160, "column": 73}, "end_point": {"row": 160, "column": 82}}, {"id": 394, "type": "*", "text": "*", "parent": 393, "children": [], "start_point": {"row": 160, "column": 73}, "end_point": {"row": 160, "column": 74}}, {"id": 395, "type": "identifier", "text": "gradient", "parent": 393, "children": [], "start_point": {"row": 160, "column": 74}, "end_point": {"row": 160, "column": 82}}, {"id": 396, "type": "parameter_declaration", "text": "int fill", "parent": 385, "children": [397, 398], "start_point": {"row": 160, "column": 84}, "end_point": {"row": 160, "column": 92}}, {"id": 397, "type": "primitive_type", "text": "int", "parent": 396, "children": [], "start_point": {"row": 160, "column": 84}, "end_point": {"row": 160, "column": 87}}, {"id": 398, "type": "identifier", "text": "fill", "parent": 396, "children": [], "start_point": {"row": 160, "column": 88}, "end_point": {"row": 160, "column": 92}}, {"id": 399, "type": "declaration", "text": "void DaoxShader_MakeDashSampler( DaoxShader *self, DaoxCanvasState *state );", "parent": 0, "children": [400, 401], "start_point": {"row": 161, "column": 0}, "end_point": {"row": 161, "column": 76}}, {"id": 400, "type": "primitive_type", "text": "void", "parent": 399, "children": [], "start_point": {"row": 161, "column": 0}, "end_point": {"row": 161, "column": 4}}, {"id": 401, "type": "function_declarator", "text": "DaoxShader_MakeDashSampler( DaoxShader *self, DaoxCanvasState *state )", "parent": 399, "children": [402, 403], "start_point": {"row": 161, "column": 5}, "end_point": {"row": 161, "column": 75}}, {"id": 402, "type": "identifier", "text": "DaoxShader_MakeDashSampler", "parent": 401, "children": [], "start_point": {"row": 161, "column": 5}, "end_point": {"row": 161, "column": 31}}, {"id": 403, "type": "parameter_list", "text": "( DaoxShader *self, DaoxCanvasState *state )", "parent": 401, "children": [404, 409], "start_point": {"row": 161, "column": 31}, "end_point": {"row": 161, "column": 75}}, {"id": 404, "type": "parameter_declaration", "text": "DaoxShader *self", "parent": 403, "children": [405, 406], "start_point": {"row": 161, "column": 33}, "end_point": {"row": 161, "column": 49}}, {"id": 405, "type": "type_identifier", "text": "DaoxShader", "parent": 404, "children": [], "start_point": {"row": 161, "column": 33}, "end_point": {"row": 161, "column": 43}}, {"id": 406, "type": "pointer_declarator", "text": "*self", "parent": 404, "children": [407, 408], "start_point": {"row": 161, "column": 44}, "end_point": {"row": 161, "column": 49}}, {"id": 407, "type": "*", "text": "*", "parent": 406, "children": [], "start_point": {"row": 161, "column": 44}, "end_point": {"row": 161, "column": 45}}, {"id": 408, "type": "identifier", "text": "self", "parent": 406, "children": [], "start_point": {"row": 161, "column": 45}, "end_point": {"row": 161, "column": 49}}, {"id": 409, "type": "parameter_declaration", "text": "DaoxCanvasState *state", "parent": 403, "children": [410, 411], "start_point": {"row": 161, "column": 51}, "end_point": {"row": 161, "column": 73}}, {"id": 410, "type": "type_identifier", "text": "DaoxCanvasState", "parent": 409, "children": [], "start_point": {"row": 161, "column": 51}, "end_point": {"row": 161, "column": 66}}, {"id": 411, "type": "pointer_declarator", "text": "*state", "parent": 409, "children": [412, 413], "start_point": {"row": 161, "column": 67}, "end_point": {"row": 161, "column": 73}}, {"id": 412, "type": "*", "text": "*", "parent": 411, "children": [], "start_point": {"row": 161, "column": 67}, "end_point": {"row": 161, "column": 68}}, {"id": 413, "type": "identifier", "text": "state", "parent": 411, "children": [], "start_point": {"row": 161, "column": 68}, "end_point": {"row": 161, "column": 73}}, {"id": 414, "type": "struct_specifier", "text": "struct DaoxBuffer\n{\n\tuint_t vertexVAO;\n\tuint_t vertexVBO;\n\tuint_t triangleVBO;\n\n\tuint_t vertexOffset;\n\tuint_t vertexCapacity;\n\tuint_t triangleOffset;\n\tuint_t triangleCapacity;\n\n\tuint_t vertexSize; /* size of each vertex; */\n\tuint_t triangleSize; /* size of each triangle; */\n\tuint_t traitCount;\n\n\tstruct {\n\t\tuint_t uniform;\n\t\tuint_t count;\n\t\tvoid *offset;\n\t} traits[4];\n}", "parent": 0, "children": [415, 416], "start_point": {"row": 166, "column": 0}, "end_point": {"row": 186, "column": 1}}, {"id": 415, "type": "struct", "text": "struct", "parent": 414, "children": [], "start_point": {"row": 166, "column": 0}, "end_point": {"row": 166, "column": 6}}, {"id": 416, "type": "type_identifier", "text": "DaoxBuffer", "parent": 414, "children": [], "start_point": {"row": 166, "column": 7}, "end_point": {"row": 166, "column": 17}}, {"id": 417, "type": "field_declaration", "text": "uint_t vertexVAO;", "parent": 414, "children": [418, 419], "start_point": {"row": 168, "column": 1}, "end_point": {"row": 168, "column": 20}}, {"id": 418, "type": "type_identifier", "text": "uint_t", "parent": 417, "children": [], "start_point": {"row": 168, "column": 1}, "end_point": {"row": 168, "column": 7}}, {"id": 419, "type": "field_identifier", "text": "vertexVAO", "parent": 417, "children": [], "start_point": {"row": 168, "column": 10}, "end_point": {"row": 168, "column": 19}}, {"id": 420, "type": "field_declaration", "text": "uint_t vertexVBO;", "parent": 414, "children": [421, 422], "start_point": {"row": 169, "column": 1}, "end_point": {"row": 169, "column": 20}}, {"id": 421, "type": "type_identifier", "text": "uint_t", "parent": 420, "children": [], "start_point": {"row": 169, "column": 1}, "end_point": {"row": 169, "column": 7}}, {"id": 422, "type": "field_identifier", "text": "vertexVBO", "parent": 420, "children": [], "start_point": {"row": 169, "column": 10}, "end_point": {"row": 169, "column": 19}}, {"id": 423, "type": "field_declaration", "text": "uint_t triangleVBO;", "parent": 414, "children": [424, 425], "start_point": {"row": 170, "column": 1}, "end_point": {"row": 170, "column": 22}}, {"id": 424, "type": "type_identifier", "text": "uint_t", "parent": 423, "children": [], "start_point": {"row": 170, "column": 1}, "end_point": {"row": 170, "column": 7}}, {"id": 425, "type": "field_identifier", "text": "triangleVBO", "parent": 423, "children": [], "start_point": {"row": 170, "column": 10}, "end_point": {"row": 170, "column": 21}}, {"id": 426, "type": "field_declaration", "text": "uint_t vertexOffset;", "parent": 414, "children": [427, 428], "start_point": {"row": 172, "column": 1}, "end_point": {"row": 172, "column": 23}}, {"id": 427, "type": "type_identifier", "text": "uint_t", "parent": 426, "children": [], "start_point": {"row": 172, "column": 1}, "end_point": {"row": 172, "column": 7}}, {"id": 428, "type": "field_identifier", "text": "vertexOffset", "parent": 426, "children": [], "start_point": {"row": 172, "column": 10}, "end_point": {"row": 172, "column": 22}}, {"id": 429, "type": "field_declaration", "text": "uint_t vertexCapacity;", "parent": 414, "children": [430, 431], "start_point": {"row": 173, "column": 1}, "end_point": {"row": 173, "column": 25}}, {"id": 430, "type": "type_identifier", "text": "uint_t", "parent": 429, "children": [], "start_point": {"row": 173, "column": 1}, "end_point": {"row": 173, "column": 7}}, {"id": 431, "type": "field_identifier", "text": "vertexCapacity", "parent": 429, "children": [], "start_point": {"row": 173, "column": 10}, "end_point": {"row": 173, "column": 24}}, {"id": 432, "type": "field_declaration", "text": "uint_t triangleOffset;", "parent": 414, "children": [433, 434], "start_point": {"row": 174, "column": 1}, "end_point": {"row": 174, "column": 25}}, {"id": 433, "type": "type_identifier", "text": "uint_t", "parent": 432, "children": [], "start_point": {"row": 174, "column": 1}, "end_point": {"row": 174, "column": 7}}, {"id": 434, "type": "field_identifier", "text": "triangleOffset", "parent": 432, "children": [], "start_point": {"row": 174, "column": 10}, "end_point": {"row": 174, "column": 24}}, {"id": 435, "type": "field_declaration", "text": "uint_t triangleCapacity;", "parent": 414, "children": [436, 437], "start_point": {"row": 175, "column": 1}, "end_point": {"row": 175, "column": 27}}, {"id": 436, "type": "type_identifier", "text": "uint_t", "parent": 435, "children": [], "start_point": {"row": 175, "column": 1}, "end_point": {"row": 175, "column": 7}}, {"id": 437, "type": "field_identifier", "text": "triangleCapacity", "parent": 435, "children": [], "start_point": {"row": 175, "column": 10}, "end_point": {"row": 175, "column": 26}}, {"id": 438, "type": "field_declaration", "text": "uint_t vertexSize;", "parent": 414, "children": [439, 440], "start_point": {"row": 177, "column": 1}, "end_point": {"row": 177, "column": 21}}, {"id": 439, "type": "type_identifier", "text": "uint_t", "parent": 438, "children": [], "start_point": {"row": 177, "column": 1}, "end_point": {"row": 177, "column": 7}}, {"id": 440, "type": "field_identifier", "text": "vertexSize", "parent": 438, "children": [], "start_point": {"row": 177, "column": 10}, "end_point": {"row": 177, "column": 20}}, {"id": 441, "type": "field_declaration", "text": "uint_t triangleSize;", "parent": 414, "children": [442, 443], "start_point": {"row": 178, "column": 1}, "end_point": {"row": 178, "column": 23}}, {"id": 442, "type": "type_identifier", "text": "uint_t", "parent": 441, "children": [], "start_point": {"row": 178, "column": 1}, "end_point": {"row": 178, "column": 7}}, {"id": 443, "type": "field_identifier", "text": "triangleSize", "parent": 441, "children": [], "start_point": {"row": 178, "column": 10}, "end_point": {"row": 178, "column": 22}}, {"id": 444, "type": "field_declaration", "text": "uint_t traitCount;", "parent": 414, "children": [445, 446], "start_point": {"row": 179, "column": 1}, "end_point": {"row": 179, "column": 21}}, {"id": 445, "type": "type_identifier", "text": "uint_t", "parent": 444, "children": [], "start_point": {"row": 179, "column": 1}, "end_point": {"row": 179, "column": 7}}, {"id": 446, "type": "field_identifier", "text": "traitCount", "parent": 444, "children": [], "start_point": {"row": 179, "column": 10}, "end_point": {"row": 179, "column": 20}}, {"id": 447, "type": "field_declaration", "text": "struct {\n\t\tuint_t uniform;\n\t\tuint_t count;\n\t\tvoid *offset;\n\t} traits[4];", "parent": 414, "children": [448, 461], "start_point": {"row": 181, "column": 1}, "end_point": {"row": 185, "column": 13}}, {"id": 448, "type": "struct_specifier", "text": "struct {\n\t\tuint_t uniform;\n\t\tuint_t count;\n\t\tvoid *offset;\n\t}", "parent": 447, "children": [449], "start_point": {"row": 181, "column": 1}, "end_point": {"row": 185, "column": 2}}, {"id": 449, "type": "struct", "text": "struct", "parent": 448, "children": [], "start_point": {"row": 181, "column": 1}, "end_point": {"row": 181, "column": 7}}, {"id": 450, "type": "field_declaration", "text": "uint_t uniform;", "parent": 448, "children": [451, 452], "start_point": {"row": 182, "column": 2}, "end_point": {"row": 182, "column": 18}}, {"id": 451, "type": "type_identifier", "text": "uint_t", "parent": 450, "children": [], "start_point": {"row": 182, "column": 2}, "end_point": {"row": 182, "column": 8}}, {"id": 452, "type": "field_identifier", "text": "uniform", "parent": 450, "children": [], "start_point": {"row": 182, "column": 10}, "end_point": {"row": 182, "column": 17}}, {"id": 453, "type": "field_declaration", "text": "uint_t count;", "parent": 448, "children": [454, 455], "start_point": {"row": 183, "column": 2}, "end_point": {"row": 183, "column": 16}}, {"id": 454, "type": "type_identifier", "text": "uint_t", "parent": 453, "children": [], "start_point": {"row": 183, "column": 2}, "end_point": {"row": 183, "column": 8}}, {"id": 455, "type": "field_identifier", "text": "count", "parent": 453, "children": [], "start_point": {"row": 183, "column": 10}, "end_point": {"row": 183, "column": 15}}, {"id": 456, "type": "field_declaration", "text": "void *offset;", "parent": 448, "children": [457, 458], "start_point": {"row": 184, "column": 2}, "end_point": {"row": 184, "column": 17}}, {"id": 457, "type": "primitive_type", "text": "void", "parent": 456, "children": [], "start_point": {"row": 184, "column": 2}, "end_point": {"row": 184, "column": 6}}, {"id": 458, "type": "pointer_declarator", "text": "*offset", "parent": 456, "children": [459, 460], "start_point": {"row": 184, "column": 9}, "end_point": {"row": 184, "column": 16}}, {"id": 459, "type": "*", "text": "*", "parent": 458, "children": [], "start_point": {"row": 184, "column": 9}, "end_point": {"row": 184, "column": 10}}, {"id": 460, "type": "field_identifier", "text": "offset", "parent": 458, "children": [], "start_point": {"row": 184, "column": 10}, "end_point": {"row": 184, "column": 16}}, {"id": 461, "type": "array_declarator", "text": "traits[4]", "parent": 447, "children": [462, 463], "start_point": {"row": 185, "column": 3}, "end_point": {"row": 185, "column": 12}}, {"id": 462, "type": "field_identifier", "text": "traits", "parent": 461, "children": [], "start_point": {"row": 185, "column": 3}, "end_point": {"row": 185, "column": 9}}, {"id": 463, "type": "number_literal", "text": "4", "parent": 461, "children": [], "start_point": {"row": 185, "column": 10}, "end_point": {"row": 185, "column": 11}}, {"id": 464, "type": "declaration", "text": "void DaoxBuffer_Init( DaoxBuffer *self );", "parent": 0, "children": [465, 466], "start_point": {"row": 188, "column": 0}, "end_point": {"row": 188, "column": 41}}, {"id": 465, "type": "primitive_type", "text": "void", "parent": 464, "children": [], "start_point": {"row": 188, "column": 0}, "end_point": {"row": 188, "column": 4}}, {"id": 466, "type": "function_declarator", "text": "DaoxBuffer_Init( DaoxBuffer *self )", "parent": 464, "children": [467, 468], "start_point": {"row": 188, "column": 5}, "end_point": {"row": 188, "column": 40}}, {"id": 467, "type": "identifier", "text": "DaoxBuffer_Init", "parent": 466, "children": [], "start_point": {"row": 188, "column": 5}, "end_point": {"row": 188, "column": 20}}, {"id": 468, "type": "parameter_list", "text": "( DaoxBuffer *self )", "parent": 466, "children": [469], "start_point": {"row": 188, "column": 20}, "end_point": {"row": 188, "column": 40}}, {"id": 469, "type": "parameter_declaration", "text": "DaoxBuffer *self", "parent": 468, "children": [470, 471], "start_point": {"row": 188, "column": 22}, "end_point": {"row": 188, "column": 38}}, {"id": 470, "type": "type_identifier", "text": "DaoxBuffer", "parent": 469, "children": [], "start_point": {"row": 188, "column": 22}, "end_point": {"row": 188, "column": 32}}, {"id": 471, "type": "pointer_declarator", "text": "*self", "parent": 469, "children": [472, 473], "start_point": {"row": 188, "column": 33}, "end_point": {"row": 188, "column": 38}}, {"id": 472, "type": "*", "text": "*", "parent": 471, "children": [], "start_point": {"row": 188, "column": 33}, "end_point": {"row": 188, "column": 34}}, {"id": 473, "type": "identifier", "text": "self", "parent": 471, "children": [], "start_point": {"row": 188, "column": 34}, "end_point": {"row": 188, "column": 38}}, {"id": 474, "type": "declaration", "text": "void DaoxBuffer_Init2D( DaoxBuffer *self, int pos, int klmo );", "parent": 0, "children": [475, 476], "start_point": {"row": 189, "column": 0}, "end_point": {"row": 189, "column": 62}}, {"id": 475, "type": "primitive_type", "text": "void", "parent": 474, "children": [], "start_point": {"row": 189, "column": 0}, "end_point": {"row": 189, "column": 4}}, {"id": 476, "type": "function_declarator", "text": "DaoxBuffer_Init2D( DaoxBuffer *self, int pos, int klmo )", "parent": 474, "children": [477, 478], "start_point": {"row": 189, "column": 5}, "end_point": {"row": 189, "column": 61}}, {"id": 477, "type": "identifier", "text": "DaoxBuffer_Init2D", "parent": 476, "children": [], "start_point": {"row": 189, "column": 5}, "end_point": {"row": 189, "column": 22}}, {"id": 478, "type": "parameter_list", "text": "( DaoxBuffer *self, int pos, int klmo )", "parent": 476, "children": [479, 484, 487], "start_point": {"row": 189, "column": 22}, "end_point": {"row": 189, "column": 61}}, {"id": 479, "type": "parameter_declaration", "text": "DaoxBuffer *self", "parent": 478, "children": [480, 481], "start_point": {"row": 189, "column": 24}, "end_point": {"row": 189, "column": 40}}, {"id": 480, "type": "type_identifier", "text": "DaoxBuffer", "parent": 479, "children": [], "start_point": {"row": 189, "column": 24}, "end_point": {"row": 189, "column": 34}}, {"id": 481, "type": "pointer_declarator", "text": "*self", "parent": 479, "children": [482, 483], "start_point": {"row": 189, "column": 35}, "end_point": {"row": 189, "column": 40}}, {"id": 482, "type": "*", "text": "*", "parent": 481, "children": [], "start_point": {"row": 189, "column": 35}, "end_point": {"row": 189, "column": 36}}, {"id": 483, "type": "identifier", "text": "self", "parent": 481, "children": [], "start_point": {"row": 189, "column": 36}, "end_point": {"row": 189, "column": 40}}, {"id": 484, "type": "parameter_declaration", "text": "int pos", "parent": 478, "children": [485, 486], "start_point": {"row": 189, "column": 42}, "end_point": {"row": 189, "column": 49}}, {"id": 485, "type": "primitive_type", "text": "int", "parent": 484, "children": [], "start_point": {"row": 189, "column": 42}, "end_point": {"row": 189, "column": 45}}, {"id": 486, "type": "identifier", "text": "pos", "parent": 484, "children": [], "start_point": {"row": 189, "column": 46}, "end_point": {"row": 189, "column": 49}}, {"id": 487, "type": "parameter_declaration", "text": "int klmo", "parent": 478, "children": [488, 489], "start_point": {"row": 189, "column": 51}, "end_point": {"row": 189, "column": 59}}, {"id": 488, "type": "primitive_type", "text": "int", "parent": 487, "children": [], "start_point": {"row": 189, "column": 51}, "end_point": {"row": 189, "column": 54}}, {"id": 489, "type": "identifier", "text": "klmo", "parent": 487, "children": [], "start_point": {"row": 189, "column": 55}, "end_point": {"row": 189, "column": 59}}, {"id": 490, "type": "declaration", "text": "void DaoxBuffer_Init3D( DaoxBuffer *self, int pos, int norm, int texuv, int texmo );", "parent": 0, "children": [491, 492], "start_point": {"row": 190, "column": 0}, "end_point": {"row": 190, "column": 84}}, {"id": 491, "type": "primitive_type", "text": "void", "parent": 490, "children": [], "start_point": {"row": 190, "column": 0}, "end_point": {"row": 190, "column": 4}}, {"id": 492, "type": "function_declarator", "text": "DaoxBuffer_Init3D( DaoxBuffer *self, int pos, int norm, int texuv, int texmo )", "parent": 490, "children": [493, 494], "start_point": {"row": 190, "column": 5}, "end_point": {"row": 190, "column": 83}}, {"id": 493, "type": "identifier", "text": "DaoxBuffer_Init3D", "parent": 492, "children": [], "start_point": {"row": 190, "column": 5}, "end_point": {"row": 190, "column": 22}}, {"id": 494, "type": "parameter_list", "text": "( DaoxBuffer *self, int pos, int norm, int texuv, int texmo )", "parent": 492, "children": [495, 500, 503, 506, 509], "start_point": {"row": 190, "column": 22}, "end_point": {"row": 190, "column": 83}}, {"id": 495, "type": "parameter_declaration", "text": "DaoxBuffer *self", "parent": 494, "children": [496, 497], "start_point": {"row": 190, "column": 24}, "end_point": {"row": 190, "column": 40}}, {"id": 496, "type": "type_identifier", "text": "DaoxBuffer", "parent": 495, "children": [], "start_point": {"row": 190, "column": 24}, "end_point": {"row": 190, "column": 34}}, {"id": 497, "type": "pointer_declarator", "text": "*self", "parent": 495, "children": [498, 499], "start_point": {"row": 190, "column": 35}, "end_point": {"row": 190, "column": 40}}, {"id": 498, "type": "*", "text": "*", "parent": 497, "children": [], "start_point": {"row": 190, "column": 35}, "end_point": {"row": 190, "column": 36}}, {"id": 499, "type": "identifier", "text": "self", "parent": 497, "children": [], "start_point": {"row": 190, "column": 36}, "end_point": {"row": 190, "column": 40}}, {"id": 500, "type": "parameter_declaration", "text": "int pos", "parent": 494, "children": [501, 502], "start_point": {"row": 190, "column": 42}, "end_point": {"row": 190, "column": 49}}, {"id": 501, "type": "primitive_type", "text": "int", "parent": 500, "children": [], "start_point": {"row": 190, "column": 42}, "end_point": {"row": 190, "column": 45}}, {"id": 502, "type": "identifier", "text": "pos", "parent": 500, "children": [], "start_point": {"row": 190, "column": 46}, "end_point": {"row": 190, "column": 49}}, {"id": 503, "type": "parameter_declaration", "text": "int norm", "parent": 494, "children": [504, 505], "start_point": {"row": 190, "column": 51}, "end_point": {"row": 190, "column": 59}}, {"id": 504, "type": "primitive_type", "text": "int", "parent": 503, "children": [], "start_point": {"row": 190, "column": 51}, "end_point": {"row": 190, "column": 54}}, {"id": 505, "type": "identifier", "text": "norm", "parent": 503, "children": [], "start_point": {"row": 190, "column": 55}, "end_point": {"row": 190, "column": 59}}, {"id": 506, "type": "parameter_declaration", "text": "int texuv", "parent": 494, "children": [507, 508], "start_point": {"row": 190, "column": 61}, "end_point": {"row": 190, "column": 70}}, {"id": 507, "type": "primitive_type", "text": "int", "parent": 506, "children": [], "start_point": {"row": 190, "column": 61}, "end_point": {"row": 190, "column": 64}}, {"id": 508, "type": "identifier", "text": "texuv", "parent": 506, "children": [], "start_point": {"row": 190, "column": 65}, "end_point": {"row": 190, "column": 70}}, {"id": 509, "type": "parameter_declaration", "text": "int texmo", "parent": 494, "children": [510, 511], "start_point": {"row": 190, "column": 72}, "end_point": {"row": 190, "column": 81}}, {"id": 510, "type": "primitive_type", "text": "int", "parent": 509, "children": [], "start_point": {"row": 190, "column": 72}, "end_point": {"row": 190, "column": 75}}, {"id": 511, "type": "identifier", "text": "texmo", "parent": 509, "children": [], "start_point": {"row": 190, "column": 76}, "end_point": {"row": 190, "column": 81}}, {"id": 512, "type": "declaration", "text": "void DaoxBuffer_Init3DVG( DaoxBuffer *self, int pos, int norm, int texuv, int texmo );", "parent": 0, "children": [513, 514], "start_point": {"row": 191, "column": 0}, "end_point": {"row": 191, "column": 86}}, {"id": 513, "type": "primitive_type", "text": "void", "parent": 512, "children": [], "start_point": {"row": 191, "column": 0}, "end_point": {"row": 191, "column": 4}}, {"id": 514, "type": "function_declarator", "text": "DaoxBuffer_Init3DVG( DaoxBuffer *self, int pos, int norm, int texuv, int texmo )", "parent": 512, "children": [515, 516], "start_point": {"row": 191, "column": 5}, "end_point": {"row": 191, "column": 85}}, {"id": 515, "type": "identifier", "text": "DaoxBuffer_Init3DVG", "parent": 514, "children": [], "start_point": {"row": 191, "column": 5}, "end_point": {"row": 191, "column": 24}}, {"id": 516, "type": "parameter_list", "text": "( DaoxBuffer *self, int pos, int norm, int texuv, int texmo )", "parent": 514, "children": [517, 522, 525, 528, 531], "start_point": {"row": 191, "column": 24}, "end_point": {"row": 191, "column": 85}}, {"id": 517, "type": "parameter_declaration", "text": "DaoxBuffer *self", "parent": 516, "children": [518, 519], "start_point": {"row": 191, "column": 26}, "end_point": {"row": 191, "column": 42}}, {"id": 518, "type": "type_identifier", "text": "DaoxBuffer", "parent": 517, "children": [], "start_point": {"row": 191, "column": 26}, "end_point": {"row": 191, "column": 36}}, {"id": 519, "type": "pointer_declarator", "text": "*self", "parent": 517, "children": [520, 521], "start_point": {"row": 191, "column": 37}, "end_point": {"row": 191, "column": 42}}, {"id": 520, "type": "*", "text": "*", "parent": 519, "children": [], "start_point": {"row": 191, "column": 37}, "end_point": {"row": 191, "column": 38}}, {"id": 521, "type": "identifier", "text": "self", "parent": 519, "children": [], "start_point": {"row": 191, "column": 38}, "end_point": {"row": 191, "column": 42}}, {"id": 522, "type": "parameter_declaration", "text": "int pos", "parent": 516, "children": [523, 524], "start_point": {"row": 191, "column": 44}, "end_point": {"row": 191, "column": 51}}, {"id": 523, "type": "primitive_type", "text": "int", "parent": 522, "children": [], "start_point": {"row": 191, "column": 44}, "end_point": {"row": 191, "column": 47}}, {"id": 524, "type": "identifier", "text": "pos", "parent": 522, "children": [], "start_point": {"row": 191, "column": 48}, "end_point": {"row": 191, "column": 51}}, {"id": 525, "type": "parameter_declaration", "text": "int norm", "parent": 516, "children": [526, 527], "start_point": {"row": 191, "column": 53}, "end_point": {"row": 191, "column": 61}}, {"id": 526, "type": "primitive_type", "text": "int", "parent": 525, "children": [], "start_point": {"row": 191, "column": 53}, "end_point": {"row": 191, "column": 56}}, {"id": 527, "type": "identifier", "text": "norm", "parent": 525, "children": [], "start_point": {"row": 191, "column": 57}, "end_point": {"row": 191, "column": 61}}, {"id": 528, "type": "parameter_declaration", "text": "int texuv", "parent": 516, "children": [529, 530], "start_point": {"row": 191, "column": 63}, "end_point": {"row": 191, "column": 72}}, {"id": 529, "type": "primitive_type", "text": "int", "parent": 528, "children": [], "start_point": {"row": 191, "column": 63}, "end_point": {"row": 191, "column": 66}}, {"id": 530, "type": "identifier", "text": "texuv", "parent": 528, "children": [], "start_point": {"row": 191, "column": 67}, "end_point": {"row": 191, "column": 72}}, {"id": 531, "type": "parameter_declaration", "text": "int texmo", "parent": 516, "children": [532, 533], "start_point": {"row": 191, "column": 74}, "end_point": {"row": 191, "column": 83}}, {"id": 532, "type": "primitive_type", "text": "int", "parent": 531, "children": [], "start_point": {"row": 191, "column": 74}, "end_point": {"row": 191, "column": 77}}, {"id": 533, "type": "identifier", "text": "texmo", "parent": 531, "children": [], "start_point": {"row": 191, "column": 78}, "end_point": {"row": 191, "column": 83}}, {"id": 534, "type": "declaration", "text": "void DaoxBuffer_Free( DaoxBuffer *self );", "parent": 0, "children": [535, 536], "start_point": {"row": 192, "column": 0}, "end_point": {"row": 192, "column": 41}}, {"id": 535, "type": "primitive_type", "text": "void", "parent": 534, "children": [], "start_point": {"row": 192, "column": 0}, "end_point": {"row": 192, "column": 4}}, {"id": 536, "type": "function_declarator", "text": "DaoxBuffer_Free( DaoxBuffer *self )", "parent": 534, "children": [537, 538], "start_point": {"row": 192, "column": 5}, "end_point": {"row": 192, "column": 40}}, {"id": 537, "type": "identifier", "text": "DaoxBuffer_Free", "parent": 536, "children": [], "start_point": {"row": 192, "column": 5}, "end_point": {"row": 192, "column": 20}}, {"id": 538, "type": "parameter_list", "text": "( DaoxBuffer *self )", "parent": 536, "children": [539], "start_point": {"row": 192, "column": 20}, "end_point": {"row": 192, "column": 40}}, {"id": 539, "type": "parameter_declaration", "text": "DaoxBuffer *self", "parent": 538, "children": [540, 541], "start_point": {"row": 192, "column": 22}, "end_point": {"row": 192, "column": 38}}, {"id": 540, "type": "type_identifier", "text": "DaoxBuffer", "parent": 539, "children": [], "start_point": {"row": 192, "column": 22}, "end_point": {"row": 192, "column": 32}}, {"id": 541, "type": "pointer_declarator", "text": "*self", "parent": 539, "children": [542, 543], "start_point": {"row": 192, "column": 33}, "end_point": {"row": 192, "column": 38}}, {"id": 542, "type": "*", "text": "*", "parent": 541, "children": [], "start_point": {"row": 192, "column": 33}, "end_point": {"row": 192, "column": 34}}, {"id": 543, "type": "identifier", "text": "self", "parent": 541, "children": [], "start_point": {"row": 192, "column": 34}, "end_point": {"row": 192, "column": 38}}, {"id": 544, "type": "declaration", "text": "void* DaoxBuffer_MapVertices( DaoxBuffer *self, int count );", "parent": 0, "children": [545, 546], "start_point": {"row": 194, "column": 0}, "end_point": {"row": 194, "column": 60}}, {"id": 545, "type": "primitive_type", "text": "void", "parent": 544, "children": [], "start_point": {"row": 194, "column": 0}, "end_point": {"row": 194, "column": 4}}, {"id": 546, "type": "pointer_declarator", "text": "* DaoxBuffer_MapVertices( DaoxBuffer *self, int count )", "parent": 544, "children": [547, 548], "start_point": {"row": 194, "column": 4}, "end_point": {"row": 194, "column": 59}}, {"id": 547, "type": "*", "text": "*", "parent": 546, "children": [], "start_point": {"row": 194, "column": 4}, "end_point": {"row": 194, "column": 5}}, {"id": 548, "type": "function_declarator", "text": "DaoxBuffer_MapVertices( DaoxBuffer *self, int count )", "parent": 546, "children": [549, 550], "start_point": {"row": 194, "column": 6}, "end_point": {"row": 194, "column": 59}}, {"id": 549, "type": "identifier", "text": "DaoxBuffer_MapVertices", "parent": 548, "children": [], "start_point": {"row": 194, "column": 6}, "end_point": {"row": 194, "column": 28}}, {"id": 550, "type": "parameter_list", "text": "( DaoxBuffer *self, int count )", "parent": 548, "children": [551, 556], "start_point": {"row": 194, "column": 28}, "end_point": {"row": 194, "column": 59}}, {"id": 551, "type": "parameter_declaration", "text": "DaoxBuffer *self", "parent": 550, "children": [552, 553], "start_point": {"row": 194, "column": 30}, "end_point": {"row": 194, "column": 46}}, {"id": 552, "type": "type_identifier", "text": "DaoxBuffer", "parent": 551, "children": [], "start_point": {"row": 194, "column": 30}, "end_point": {"row": 194, "column": 40}}, {"id": 553, "type": "pointer_declarator", "text": "*self", "parent": 551, "children": [554, 555], "start_point": {"row": 194, "column": 41}, "end_point": {"row": 194, "column": 46}}, {"id": 554, "type": "*", "text": "*", "parent": 553, "children": [], "start_point": {"row": 194, "column": 41}, "end_point": {"row": 194, "column": 42}}, {"id": 555, "type": "identifier", "text": "self", "parent": 553, "children": [], "start_point": {"row": 194, "column": 42}, "end_point": {"row": 194, "column": 46}}, {"id": 556, "type": "parameter_declaration", "text": "int count", "parent": 550, "children": [557, 558], "start_point": {"row": 194, "column": 48}, "end_point": {"row": 194, "column": 57}}, {"id": 557, "type": "primitive_type", "text": "int", "parent": 556, "children": [], "start_point": {"row": 194, "column": 48}, "end_point": {"row": 194, "column": 51}}, {"id": 558, "type": "identifier", "text": "count", "parent": 556, "children": [], "start_point": {"row": 194, "column": 52}, "end_point": {"row": 194, "column": 57}}, {"id": 559, "type": "declaration", "text": "DaoGLVertex2D* DaoxBuffer_MapVertices2D( DaoxBuffer *self, int count );", "parent": 0, "children": [560, 561], "start_point": {"row": 195, "column": 0}, "end_point": {"row": 195, "column": 73}}, {"id": 560, "type": "type_identifier", "text": "DaoGLVertex2D", "parent": 559, "children": [], "start_point": {"row": 195, "column": 0}, "end_point": {"row": 195, "column": 13}}, {"id": 561, "type": "pointer_declarator", "text": "* DaoxBuffer_MapVertices2D( DaoxBuffer *self, int count )", "parent": 559, "children": [562, 563], "start_point": {"row": 195, "column": 13}, "end_point": {"row": 195, "column": 72}}, {"id": 562, "type": "*", "text": "*", "parent": 561, "children": [], "start_point": {"row": 195, "column": 13}, "end_point": {"row": 195, "column": 14}}, {"id": 563, "type": "function_declarator", "text": "DaoxBuffer_MapVertices2D( DaoxBuffer *self, int count )", "parent": 561, "children": [564, 565], "start_point": {"row": 195, "column": 17}, "end_point": {"row": 195, "column": 72}}, {"id": 564, "type": "identifier", "text": "DaoxBuffer_MapVertices2D", "parent": 563, "children": [], "start_point": {"row": 195, "column": 17}, "end_point": {"row": 195, "column": 41}}, {"id": 565, "type": "parameter_list", "text": "( DaoxBuffer *self, int count )", "parent": 563, "children": [566, 571], "start_point": {"row": 195, "column": 41}, "end_point": {"row": 195, "column": 72}}, {"id": 566, "type": "parameter_declaration", "text": "DaoxBuffer *self", "parent": 565, "children": [567, 568], "start_point": {"row": 195, "column": 43}, "end_point": {"row": 195, "column": 59}}, {"id": 567, "type": "type_identifier", "text": "DaoxBuffer", "parent": 566, "children": [], "start_point": {"row": 195, "column": 43}, "end_point": {"row": 195, "column": 53}}, {"id": 568, "type": "pointer_declarator", "text": "*self", "parent": 566, "children": [569, 570], "start_point": {"row": 195, "column": 54}, "end_point": {"row": 195, "column": 59}}, {"id": 569, "type": "*", "text": "*", "parent": 568, "children": [], "start_point": {"row": 195, "column": 54}, "end_point": {"row": 195, "column": 55}}, {"id": 570, "type": "identifier", "text": "self", "parent": 568, "children": [], "start_point": {"row": 195, "column": 55}, "end_point": {"row": 195, "column": 59}}, {"id": 571, "type": "parameter_declaration", "text": "int count", "parent": 565, "children": [572, 573], "start_point": {"row": 195, "column": 61}, "end_point": {"row": 195, "column": 70}}, {"id": 572, "type": "primitive_type", "text": "int", "parent": 571, "children": [], "start_point": {"row": 195, "column": 61}, "end_point": {"row": 195, "column": 64}}, {"id": 573, "type": "identifier", "text": "count", "parent": 571, "children": [], "start_point": {"row": 195, "column": 65}, "end_point": {"row": 195, "column": 70}}, {"id": 574, "type": "declaration", "text": "DaoGLVertex3D* DaoxBuffer_MapVertices3D( DaoxBuffer *self, int count );", "parent": 0, "children": [575, 576], "start_point": {"row": 196, "column": 0}, "end_point": {"row": 196, "column": 73}}, {"id": 575, "type": "type_identifier", "text": "DaoGLVertex3D", "parent": 574, "children": [], "start_point": {"row": 196, "column": 0}, "end_point": {"row": 196, "column": 13}}, {"id": 576, "type": "pointer_declarator", "text": "* DaoxBuffer_MapVertices3D( DaoxBuffer *self, int count )", "parent": 574, "children": [577, 578], "start_point": {"row": 196, "column": 13}, "end_point": {"row": 196, "column": 72}}, {"id": 577, "type": "*", "text": "*", "parent": 576, "children": [], "start_point": {"row": 196, "column": 13}, "end_point": {"row": 196, "column": 14}}, {"id": 578, "type": "function_declarator", "text": "DaoxBuffer_MapVertices3D( DaoxBuffer *self, int count )", "parent": 576, "children": [579, 580], "start_point": {"row": 196, "column": 17}, "end_point": {"row": 196, "column": 72}}, {"id": 579, "type": "identifier", "text": "DaoxBuffer_MapVertices3D", "parent": 578, "children": [], "start_point": {"row": 196, "column": 17}, "end_point": {"row": 196, "column": 41}}, {"id": 580, "type": "parameter_list", "text": "( DaoxBuffer *self, int count )", "parent": 578, "children": [581, 586], "start_point": {"row": 196, "column": 41}, "end_point": {"row": 196, "column": 72}}, {"id": 581, "type": "parameter_declaration", "text": "DaoxBuffer *self", "parent": 580, "children": [582, 583], "start_point": {"row": 196, "column": 43}, "end_point": {"row": 196, "column": 59}}, {"id": 582, "type": "type_identifier", "text": "DaoxBuffer", "parent": 581, "children": [], "start_point": {"row": 196, "column": 43}, "end_point": {"row": 196, "column": 53}}, {"id": 583, "type": "pointer_declarator", "text": "*self", "parent": 581, "children": [584, 585], "start_point": {"row": 196, "column": 54}, "end_point": {"row": 196, "column": 59}}, {"id": 584, "type": "*", "text": "*", "parent": 583, "children": [], "start_point": {"row": 196, "column": 54}, "end_point": {"row": 196, "column": 55}}, {"id": 585, "type": "identifier", "text": "self", "parent": 583, "children": [], "start_point": {"row": 196, "column": 55}, "end_point": {"row": 196, "column": 59}}, {"id": 586, "type": "parameter_declaration", "text": "int count", "parent": 580, "children": [587, 588], "start_point": {"row": 196, "column": 61}, "end_point": {"row": 196, "column": 70}}, {"id": 587, "type": "primitive_type", "text": "int", "parent": 586, "children": [], "start_point": {"row": 196, "column": 61}, "end_point": {"row": 196, "column": 64}}, {"id": 588, "type": "identifier", "text": "count", "parent": 586, "children": [], "start_point": {"row": 196, "column": 65}, "end_point": {"row": 196, "column": 70}}, {"id": 589, "type": "declaration", "text": "DaoGLVertex3DVG* DaoxBuffer_MapVertices3DVG( DaoxBuffer *self, int count );", "parent": 0, "children": [590, 591], "start_point": {"row": 197, "column": 0}, "end_point": {"row": 197, "column": 75}}, {"id": 590, "type": "type_identifier", "text": "DaoGLVertex3DVG", "parent": 589, "children": [], "start_point": {"row": 197, "column": 0}, "end_point": {"row": 197, "column": 15}}, {"id": 591, "type": "pointer_declarator", "text": "* DaoxBuffer_MapVertices3DVG( DaoxBuffer *self, int count )", "parent": 589, "children": [592, 593], "start_point": {"row": 197, "column": 15}, "end_point": {"row": 197, "column": 74}}, {"id": 592, "type": "*", "text": "*", "parent": 591, "children": [], "start_point": {"row": 197, "column": 15}, "end_point": {"row": 197, "column": 16}}, {"id": 593, "type": "function_declarator", "text": "DaoxBuffer_MapVertices3DVG( DaoxBuffer *self, int count )", "parent": 591, "children": [594, 595], "start_point": {"row": 197, "column": 17}, "end_point": {"row": 197, "column": 74}}, {"id": 594, "type": "identifier", "text": "DaoxBuffer_MapVertices3DVG", "parent": 593, "children": [], "start_point": {"row": 197, "column": 17}, "end_point": {"row": 197, "column": 43}}, {"id": 595, "type": "parameter_list", "text": "( DaoxBuffer *self, int count )", "parent": 593, "children": [596, 601], "start_point": {"row": 197, "column": 43}, "end_point": {"row": 197, "column": 74}}, {"id": 596, "type": "parameter_declaration", "text": "DaoxBuffer *self", "parent": 595, "children": [597, 598], "start_point": {"row": 197, "column": 45}, "end_point": {"row": 197, "column": 61}}, {"id": 597, "type": "type_identifier", "text": "DaoxBuffer", "parent": 596, "children": [], "start_point": {"row": 197, "column": 45}, "end_point": {"row": 197, "column": 55}}, {"id": 598, "type": "pointer_declarator", "text": "*self", "parent": 596, "children": [599, 600], "start_point": {"row": 197, "column": 56}, "end_point": {"row": 197, "column": 61}}, {"id": 599, "type": "*", "text": "*", "parent": 598, "children": [], "start_point": {"row": 197, "column": 56}, "end_point": {"row": 197, "column": 57}}, {"id": 600, "type": "identifier", "text": "self", "parent": 598, "children": [], "start_point": {"row": 197, "column": 57}, "end_point": {"row": 197, "column": 61}}, {"id": 601, "type": "parameter_declaration", "text": "int count", "parent": 595, "children": [602, 603], "start_point": {"row": 197, "column": 63}, "end_point": {"row": 197, "column": 72}}, {"id": 602, "type": "primitive_type", "text": "int", "parent": 601, "children": [], "start_point": {"row": 197, "column": 63}, "end_point": {"row": 197, "column": 66}}, {"id": 603, "type": "identifier", "text": "count", "parent": 601, "children": [], "start_point": {"row": 197, "column": 67}, "end_point": {"row": 197, "column": 72}}, {"id": 604, "type": "declaration", "text": "DaoGLTriangle* DaoxBuffer_MapTriangles( DaoxBuffer *self, int count );", "parent": 0, "children": [605, 606], "start_point": {"row": 198, "column": 0}, "end_point": {"row": 198, "column": 72}}, {"id": 605, "type": "type_identifier", "text": "DaoGLTriangle", "parent": 604, "children": [], "start_point": {"row": 198, "column": 0}, "end_point": {"row": 198, "column": 13}}, {"id": 606, "type": "pointer_declarator", "text": "* DaoxBuffer_MapTriangles( DaoxBuffer *self, int count )", "parent": 604, "children": [607, 608], "start_point": {"row": 198, "column": 13}, "end_point": {"row": 198, "column": 71}}, {"id": 607, "type": "*", "text": "*", "parent": 606, "children": [], "start_point": {"row": 198, "column": 13}, "end_point": {"row": 198, "column": 14}}, {"id": 608, "type": "function_declarator", "text": "DaoxBuffer_MapTriangles( DaoxBuffer *self, int count )", "parent": 606, "children": [609, 610], "start_point": {"row": 198, "column": 17}, "end_point": {"row": 198, "column": 71}}, {"id": 609, "type": "identifier", "text": "DaoxBuffer_MapTriangles", "parent": 608, "children": [], "start_point": {"row": 198, "column": 17}, "end_point": {"row": 198, "column": 40}}, {"id": 610, "type": "parameter_list", "text": "( DaoxBuffer *self, int count )", "parent": 608, "children": [611, 616], "start_point": {"row": 198, "column": 40}, "end_point": {"row": 198, "column": 71}}, {"id": 611, "type": "parameter_declaration", "text": "DaoxBuffer *self", "parent": 610, "children": [612, 613], "start_point": {"row": 198, "column": 42}, "end_point": {"row": 198, "column": 58}}, {"id": 612, "type": "type_identifier", "text": "DaoxBuffer", "parent": 611, "children": [], "start_point": {"row": 198, "column": 42}, "end_point": {"row": 198, "column": 52}}, {"id": 613, "type": "pointer_declarator", "text": "*self", "parent": 611, "children": [614, 615], "start_point": {"row": 198, "column": 53}, "end_point": {"row": 198, "column": 58}}, {"id": 614, "type": "*", "text": "*", "parent": 613, "children": [], "start_point": {"row": 198, "column": 53}, "end_point": {"row": 198, "column": 54}}, {"id": 615, "type": "identifier", "text": "self", "parent": 613, "children": [], "start_point": {"row": 198, "column": 54}, "end_point": {"row": 198, "column": 58}}, {"id": 616, "type": "parameter_declaration", "text": "int count", "parent": 610, "children": [617, 618], "start_point": {"row": 198, "column": 60}, "end_point": {"row": 198, "column": 69}}, {"id": 617, "type": "primitive_type", "text": "int", "parent": 616, "children": [], "start_point": {"row": 198, "column": 60}, "end_point": {"row": 198, "column": 63}}, {"id": 618, "type": "identifier", "text": "count", "parent": 616, "children": [], "start_point": {"row": 198, "column": 64}, "end_point": {"row": 198, "column": 69}}, {"id": 619, "type": "declaration", "text": "void DaoxMatrix4D_Export( DaoxMatrix4D *self, GLfloat matrix[16] );", "parent": 0, "children": [620, 621], "start_point": {"row": 203, "column": 0}, "end_point": {"row": 203, "column": 67}}, {"id": 620, "type": "primitive_type", "text": "void", "parent": 619, "children": [], "start_point": {"row": 203, "column": 0}, "end_point": {"row": 203, "column": 4}}, {"id": 621, "type": "function_declarator", "text": "DaoxMatrix4D_Export( DaoxMatrix4D *self, GLfloat matrix[16] )", "parent": 619, "children": [622, 623], "start_point": {"row": 203, "column": 5}, "end_point": {"row": 203, "column": 66}}, {"id": 622, "type": "identifier", "text": "DaoxMatrix4D_Export", "parent": 621, "children": [], "start_point": {"row": 203, "column": 5}, "end_point": {"row": 203, "column": 24}}, {"id": 623, "type": "parameter_list", "text": "( DaoxMatrix4D *self, GLfloat matrix[16] )", "parent": 621, "children": [624, 629], "start_point": {"row": 203, "column": 24}, "end_point": {"row": 203, "column": 66}}, {"id": 624, "type": "parameter_declaration", "text": "DaoxMatrix4D *self", "parent": 623, "children": [625, 626], "start_point": {"row": 203, "column": 26}, "end_point": {"row": 203, "column": 44}}, {"id": 625, "type": "type_identifier", "text": "DaoxMatrix4D", "parent": 624, "children": [], "start_point": {"row": 203, "column": 26}, "end_point": {"row": 203, "column": 38}}, {"id": 626, "type": "pointer_declarator", "text": "*self", "parent": 624, "children": [627, 628], "start_point": {"row": 203, "column": 39}, "end_point": {"row": 203, "column": 44}}, {"id": 627, "type": "*", "text": "*", "parent": 626, "children": [], "start_point": {"row": 203, "column": 39}, "end_point": {"row": 203, "column": 40}}, {"id": 628, "type": "identifier", "text": "self", "parent": 626, "children": [], "start_point": {"row": 203, "column": 40}, "end_point": {"row": 203, "column": 44}}, {"id": 629, "type": "parameter_declaration", "text": "GLfloat matrix[16]", "parent": 623, "children": [630, 631], "start_point": {"row": 203, "column": 46}, "end_point": {"row": 203, "column": 64}}, {"id": 630, "type": "type_identifier", "text": "GLfloat", "parent": 629, "children": [], "start_point": {"row": 203, "column": 46}, "end_point": {"row": 203, "column": 53}}, {"id": 631, "type": "array_declarator", "text": "matrix[16]", "parent": 629, "children": [632, 633], "start_point": {"row": 203, "column": 54}, "end_point": {"row": 203, "column": 64}}, {"id": 632, "type": "identifier", "text": "matrix", "parent": 631, "children": [], "start_point": {"row": 203, "column": 54}, "end_point": {"row": 203, "column": 60}}, {"id": 633, "type": "number_literal", "text": "16", "parent": 631, "children": [], "start_point": {"row": 203, "column": 61}, "end_point": {"row": 203, "column": 63}}, {"id": 634, "type": "#endif", "text": "#endif", "parent": 0, "children": [], "start_point": {"row": 205, "column": 0}, "end_point": {"row": 205, "column": 6}}]}, "node_categories": {"declarations": {"functions": [315, 325, 335, 345, 363, 373, 383, 401, 466, 476, 492, 514, 536, 548, 563, 578, 593, 608, 621], "variables": [43, 49, 55, 61, 67, 73, 92, 95, 100, 103, 113, 116, 122, 125, 131, 134, 142, 145, 151, 154, 160, 163, 173, 181, 184, 187, 190, 193, 196, 199, 202, 205, 208, 211, 214, 217, 220, 223, 226, 229, 232, 235, 240, 243, 246, 249, 252, 255, 258, 261, 264, 267, 270, 274, 277, 280, 283, 286, 289, 293, 296, 299, 303, 308, 313, 318, 323, 328, 333, 338, 343, 348, 353, 356, 361, 366, 371, 376, 381, 386, 391, 396, 399, 404, 409, 417, 420, 423, 426, 429, 432, 435, 438, 441, 444, 447, 450, 453, 456, 464, 469, 474, 479, 484, 487, 490, 495, 500, 503, 506, 509, 512, 517, 522, 525, 528, 531, 534, 539, 544, 551, 556, 559, 566, 571, 574, 581, 586, 589, 596, 601, 604, 611, 616, 619, 624, 629], "classes": [45, 46, 51, 52, 57, 58, 63, 64, 69, 70, 75, 76, 89, 90, 93, 94, 101, 102, 110, 111, 114, 115, 123, 124, 132, 133, 139, 140, 143, 144, 152, 153, 161, 162, 170, 171, 178, 179, 191, 192, 275, 276, 294, 295, 414, 415, 448, 449], "imports": [12, 13, 15, 16, 23, 24, 29, 30, 35, 36, 40, 41], "modules": [], "enums": [79, 80, 82, 83, 87]}, "statements": {"expressions": [], "assignments": [], "loops": [], "conditionals": [0, 1, 2, 5, 6, 7, 10, 22, 28, 32, 33, 34, 38, 39, 47, 48, 53, 54, 59, 60, 65, 66, 71, 72, 77, 78, 81, 84, 88, 91, 96, 97, 98, 99, 104, 105, 106, 107, 108, 109, 112, 117, 118, 119, 120, 121, 126, 127, 128, 129, 130, 135, 136, 137, 138, 141, 146, 147, 148, 149, 150, 155, 156, 157, 158, 159, 164, 165, 166, 167, 168, 169, 172, 174, 176, 180, 182, 183, 185, 186, 188, 189, 194, 195, 197, 198, 200, 201, 203, 204, 206, 207, 209, 210, 212, 213, 215, 216, 218, 219, 221, 222, 224, 225, 227, 228, 230, 231, 233, 234, 236, 238, 241, 242, 244, 245, 247, 248, 250, 251, 253, 254, 256, 257, 259, 260, 262, 263, 265, 266, 268, 269, 271, 272, 273, 278, 279, 281, 282, 284, 285, 287, 288, 290, 291, 292, 297, 298, 300, 301, 302, 304, 307, 309, 312, 316, 319, 322, 326, 329, 332, 336, 339, 342, 346, 349, 352, 355, 360, 364, 367, 370, 374, 377, 380, 384, 387, 390, 392, 395, 398, 402, 405, 408, 410, 413, 416, 418, 419, 421, 422, 424, 425, 427, 428, 430, 431, 433, 434, 436, 437, 439, 440, 442, 443, 445, 446, 451, 452, 454, 455, 460, 462, 467, 470, 473, 477, 480, 483, 486, 489, 493, 496, 499, 502, 505, 508, 511, 515, 518, 521, 524, 527, 530, 533, 537, 540, 543, 549, 552, 555, 558, 560, 564, 567, 570, 573, 575, 579, 582, 585, 588, 590, 594, 597, 600, 603, 605, 609, 612, 615, 618, 622, 625, 628, 630, 632, 634], "returns": [], "exceptions": []}, "expressions": {"calls": [], "literals": [14, 17, 25, 31, 37, 42, 86, 177, 239, 463, 633], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [{"node_id": 315, "universal_type": "function", "name": "unknown", "text_snippet": "DaoxShader_Init2D( DaoxShader *self )"}, {"node_id": 325, "universal_type": "function", "name": "unknown", "text_snippet": "DaoxShader_Init3D( DaoxShader *self )"}, {"node_id": 335, "universal_type": "function", "name": "unknown", "text_snippet": "DaoxShader_Free( DaoxShader *self )"}, {"node_id": 345, "universal_type": "function", "name": "type,", "text_snippet": "DaoxShader_AddShader( DaoxShader *self, int type, const char *source )"}, {"node_id": 363, "universal_type": "function", "name": "unknown", "text_snippet": "DaoxShader_Finalize2D( DaoxShader *self )"}, {"node_id": 373, "universal_type": "function", "name": "unknown", "text_snippet": "DaoxShader_Finalize3D( DaoxShader *self )"}, {"node_id": 383, "universal_type": "function", "name": "fill", "text_snippet": "DaoxShader_MakeGradientSampler( DaoxShader *self, DaoxColorGradient *gradient, int fill )"}, {"node_id": 401, "universal_type": "function", "name": "unknown", "text_snippet": "DaoxShader_MakeDashSampler( DaoxShader *self, DaoxCanvasState *state )"}, {"node_id": 466, "universal_type": "function", "name": "unknown", "text_snippet": "DaoxBuffer_Init( DaoxBuffer *self )"}, {"node_id": 476, "universal_type": "function", "name": "pos,", "text_snippet": "DaoxBuffer_Init2D( DaoxBuffer *self, int pos, int klmo )"}, {"node_id": 492, "universal_type": "function", "name": "pos,", "text_snippet": "DaoxBuffer_Init3D( DaoxBuffer *self, int pos, int norm, int texuv, int texmo )"}, {"node_id": 514, "universal_type": "function", "name": "pos,", "text_snippet": "DaoxBuffer_Init3DVG( DaoxBuffer *self, int pos, int norm, int texuv, int texmo )"}, {"node_id": 536, "universal_type": "function", "name": "unknown", "text_snippet": "DaoxBuffer_Free( DaoxBuffer *self )"}, {"node_id": 548, "universal_type": "function", "name": "count", "text_snippet": "DaoxBuffer_MapVertices( DaoxBuffer *self, int count )"}, {"node_id": 563, "universal_type": "function", "name": "count", "text_snippet": "DaoxBuffer_MapVertices2D( DaoxBuffer *self, int count )"}, {"node_id": 578, "universal_type": "function", "name": "count", "text_snippet": "DaoxBuffer_MapVertices3D( DaoxBuffer *self, int count )"}, {"node_id": 593, "universal_type": "function", "name": "count", "text_snippet": "DaoxBuffer_MapVertices3DVG( DaoxBuffer *self, int count )"}, {"node_id": 608, "universal_type": "function", "name": "count", "text_snippet": "DaoxBuffer_MapTriangles( DaoxBuffer *self, int count )"}, {"node_id": 621, "universal_type": "function", "name": "unknown", "text_snippet": "DaoxMatrix4D_Export( DaoxMatrix4D *self, GLfloat matrix[16] )"}], "class_declarations": [{"node_id": 45, "universal_type": "class", "name": "DaoGLVertex2D", "text_snippet": "struct DaoGLVertex2D"}, {"node_id": 46, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 51, "universal_type": "class", "name": "DaoGLVertex3D", "text_snippet": "struct DaoGLVertex3D"}, {"node_id": 52, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 57, "universal_type": "class", "name": "DaoGLVertex3DVG", "text_snippet": "struct DaoGLVertex3DVG"}, {"node_id": 58, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 63, "universal_type": "class", "name": "DaoGLTriangle", "text_snippet": "struct DaoGLTriangle"}, {"node_id": 64, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 69, "universal_type": "class", "name": "DaoxShader", "text_snippet": "struct DaoxShader"}, {"node_id": 70, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 75, "universal_type": "class", "name": "DaoxBuffer", "text_snippet": "struct DaoxBuffer"}, {"node_id": 76, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 89, "universal_type": "class", "name": "DaoGLVertex2D", "text_snippet": "struct DaoGLVertex2D\n{\n\tstruct{ GLfloat x, y; } point;\n\tstruct{ GLfloat k, l, m, o; } texK"}, {"node_id": 90, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 93, "universal_type": "class", "name": "unknown", "text_snippet": "struct{ GLfloat x, y; }"}, {"node_id": 94, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 101, "universal_type": "class", "name": "unknown", "text_snippet": "struct{ GLfloat k, l, m, o; }"}, {"node_id": 102, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 110, "universal_type": "class", "name": "DaoGLVertex3D", "text_snippet": "struct DaoGLVertex3D\n{\n\tstruct{ GLfloat x, y, z; } point;\n\tstruct{ GLfloat x, y, z; } norm;\n\tstr"}, {"node_id": 111, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 114, "universal_type": "class", "name": "unknown", "text_snippet": "struct{ GLfloat x, y, z; }"}, {"node_id": 115, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 123, "universal_type": "class", "name": "unknown", "text_snippet": "struct{ GLfloat x, y, z; }"}, {"node_id": 124, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 132, "universal_type": "class", "name": "unknown", "text_snippet": "struct{ GLfloat x, y; }"}, {"node_id": 133, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 139, "universal_type": "class", "name": "DaoGLVertex3DVG", "text_snippet": "struct DaoGLVertex3DVG\n{\n\tstruct{ GLfloat x, y, z; } point;\n\tstruct{ GLfloat x, y, z; } no"}, {"node_id": 140, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 143, "universal_type": "class", "name": "unknown", "text_snippet": "struct{ GLfloat x, y, z; }"}, {"node_id": 144, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 152, "universal_type": "class", "name": "unknown", "text_snippet": "struct{ GLfloat x, y, z; }"}, {"node_id": 153, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 161, "universal_type": "class", "name": "unknown", "text_snippet": "struct{ GLfloat k, l, m, o; }"}, {"node_id": 162, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 170, "universal_type": "class", "name": "DaoGLTriangle", "text_snippet": "struct DaoGLTriangle\n{\n\tGLint index[3];\n}"}, {"node_id": 171, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 178, "universal_type": "class", "name": "DaoxShader", "text_snippet": "struct DaoxShader\n{\n\tuint_t vertexShader;\n\tuint_t fragmentShader;\n\tuint_t program;\n\n\tstruct {\n\t\tu"}, {"node_id": 179, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 191, "universal_type": "class", "name": "{", "text_snippet": "struct {\n\t\tuint_t vectorGraphics;\n\t\tuint_t projMatrix;\n\t\tuint_t viewMatrix;\n\t\tuint_t modelMatrix"}, {"node_id": 192, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 275, "universal_type": "class", "name": "{", "text_snippet": "struct {\n\t\tuint_t position;\n\t\tuint_t normal;\n\t\tuint_t texCoord;\n\t\tuint_t texMO;\n\t\tuint_t texKLM"}, {"node_id": 276, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 294, "universal_type": "class", "name": "{", "text_snippet": "struct {\n\t\tuint_t dashSampler;\n\t\tuint_t gradientSampler;\n\t}"}, {"node_id": 295, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 414, "universal_type": "class", "name": "DaoxBuffer", "text_snippet": "struct DaoxBuffer\n{\n\tuint_t vertexVAO;\n\tuint_t vertexVBO;\n\tuint_t triangleVBO;\n\n\tuint_t vert"}, {"node_id": 415, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 448, "universal_type": "class", "name": "{", "text_snippet": "struct {\n\t\tuint_t uniform;\n\t\tuint_t count;\n\t\tvoid *offset;\n\t}"}, {"node_id": 449, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}], "import_statements": [{"node_id": 12, "text": "#include <OpenGL/gl3.h>\n"}, {"node_id": 13, "text": "#include"}, {"node_id": 15, "text": "#include <GLUT/glut.h>\n"}, {"node_id": 16, "text": "#include"}, {"node_id": 23, "text": "#include <GL/gl3.h>\n"}, {"node_id": 24, "text": "#include"}, {"node_id": 29, "text": "#include <GL/glut.h>\n"}, {"node_id": 30, "text": "#include"}, {"node_id": 35, "text": "#include <GL/freeglut.h>\n"}, {"node_id": 36, "text": "#include"}, {"node_id": 40, "text": "#include \"dao_canvas.h\"\n"}, {"node_id": 41, "text": "#include"}]}, "original_source_code": "/*\n// Dao Graphics Engine\n// http://www.daovm.net\n//\n// Copyright (c) 2012, <NAME>\n// All rights reserved.\n//\n// Redistribution and use in source and binary forms, with or without modification,\n// are permitted provided that the following conditions are met:\n//\n// * Redistributions of source code must retain the above copyright notice,\n// this list of conditions and the following disclaimer.\n// * Redistributions in binary form must reproduce the above copyright notice,\n// this list of conditions and the following disclaimer in the documentation\n// and/or other materials provided with the distribution.\n//\n// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS \"AS IS\" AND ANY\n// EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES\n// OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT\n// SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,\n// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT\n// OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)\n// HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,\n// OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS\n// SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\n*/\n\n#ifndef __DAO_OPENGL_H__\n#define __DAO_OPENGL_H__\n\n\n\n#if defined(__APPLE__)\n\n //#include <OpenGL/gl.h>\n #include <OpenGL/gl3.h>\n #include <GLUT/glut.h>\n\n#else\n\n #define GL3_PROTOTYPES\n //#include <GL/gl.h>\n #include <GL/gl3.h>\n #define __gl_h_\n #include <GL/glut.h>\n #ifdef FREEGLUT\n #include <GL/freeglut.h>\n #endif\n#endif\n\n\n\n#include \"dao_canvas.h\"\n\n\n\ntypedef struct DaoGLVertex2D DaoGLVertex2D;\ntypedef struct DaoGLVertex3D DaoGLVertex3D;\ntypedef struct DaoGLVertex3DVG DaoGLVertex3DVG;\ntypedef struct DaoGLTriangle DaoGLTriangle;\ntypedef struct DaoxShader DaoxShader;\ntypedef struct DaoxBuffer DaoxBuffer;\n\n\nenum DaoxSamplerID\n{\n\tDAOX_DASH_SAMPLER = 2 ,\n\tDAOX_GRADIENT_SAMPLER\n};\n\n\n\n\nstruct DaoGLVertex2D\n{\n\tstruct{ GLfloat x, y; } point;\n\tstruct{ GLfloat k, l, m, o; } texKLMO; /* texture coordinates or KLM for bezier curves; */\n};\n\nstruct DaoGLVertex3D\n{\n\tstruct{ GLfloat x, y, z; } point;\n\tstruct{ GLfloat x, y, z; } norm;\n\tstruct{ GLfloat x, y; } texUV;\n};\n\nstruct DaoGLVertex3DVG\n{\n\tstruct{ GLfloat x, y, z; } point;\n\tstruct{ GLfloat x, y, z; } norm;\n\tstruct{ GLfloat k, l, m, o; } texKLMO;\n};\n\nstruct DaoGLTriangle\n{\n\tGLint index[3];\n};\n\n\n\n\n\nstruct DaoxShader\n{\n\tuint_t vertexShader;\n\tuint_t fragmentShader;\n\tuint_t program;\n\n\tstruct {\n\t\tuint_t vectorGraphics;\n\t\tuint_t projMatrix;\n\t\tuint_t viewMatrix;\n\t\tuint_t modelMatrix;\n\t\tuint_t cameraPosition;\n\t\tuint_t lightCount;\n\t\tuint_t lightSource;\n\t\tuint_t lightIntensity;\n\t\tuint_t ambientColor;\n\t\tuint_t diffuseColor;\n\t\tuint_t specularColor;\n\t\tuint_t fade_factor;\n\t\tuint_t material;\n\t\tuint_t textureCount;\n\t\tuint_t textures[2];\n\t\tuint_t alphaBlending;\n\t\tuint_t pathLength;\n\t\tuint_t brushColor;\n\t\tuint_t dashCount;\n\t\tuint_t dashSampler;\n\t\tuint_t gradientType;\n\t\tuint_t gradientStops;\n\t\tuint_t gradientPoint1;\n\t\tuint_t gradientPoint2;\n\t\tuint_t gradientRadius;\n\t\tuint_t gradientSampler;\n\t} uniforms;\n\n\tstruct {\n\t\tuint_t position;\n\t\tuint_t normal;\n\t\tuint_t texCoord;\n\t\tuint_t texMO;\n\t\tuint_t texKLMO;\n\t} attributes;\n\n\tstruct {\n\t\tuint_t dashSampler;\n\t\tuint_t gradientSampler;\n\t} textures;\n\n\tDArray *vertexSources;\n\tDArray *fragmentSources;\n};\n\nvoid DaoxShader_Init2D( DaoxShader *self );\nvoid DaoxShader_Init3D( DaoxShader *self );\nvoid DaoxShader_Free( DaoxShader *self );\nvoid DaoxShader_AddShader( DaoxShader *self, int type, const char *source );\nvoid DaoxShader_Finalize2D( DaoxShader *self );\nvoid DaoxShader_Finalize3D( DaoxShader *self );\nvoid DaoxShader_MakeGradientSampler( DaoxShader *self, DaoxColorGradient *gradient, int fill );\nvoid DaoxShader_MakeDashSampler( DaoxShader *self, DaoxCanvasState *state );\n\n\n\n\nstruct DaoxBuffer\n{\n\tuint_t vertexVAO;\n\tuint_t vertexVBO;\n\tuint_t triangleVBO;\n\n\tuint_t vertexOffset;\n\tuint_t vertexCapacity;\n\tuint_t triangleOffset;\n\tuint_t triangleCapacity;\n\n\tuint_t vertexSize; /* size of each vertex; */\n\tuint_t triangleSize; /* size of each triangle; */\n\tuint_t traitCount;\n\n\tstruct {\n\t\tuint_t uniform;\n\t\tuint_t count;\n\t\tvoid *offset;\n\t} traits[4];\n};\n\nvoid DaoxBuffer_Init( DaoxBuffer *self );\nvoid DaoxBuffer_Init2D( DaoxBuffer *self, int pos, int klmo );\nvoid DaoxBuffer_Init3D( DaoxBuffer *self, int pos, int norm, int texuv, int texmo );\nvoid DaoxBuffer_Init3DVG( DaoxBuffer *self, int pos, int norm, int texuv, int texmo );\nvoid DaoxBuffer_Free( DaoxBuffer *self );\n\nvoid* DaoxBuffer_MapVertices( DaoxBuffer *self, int count );\nDaoGLVertex2D* DaoxBuffer_MapVertices2D( DaoxBuffer *self, int count );\nDaoGLVertex3D* DaoxBuffer_MapVertices3D( DaoxBuffer *self, int count );\nDaoGLVertex3DVG* DaoxBuffer_MapVertices3DVG( DaoxBuffer *self, int count );\nDaoGLTriangle* DaoxBuffer_MapTriangles( DaoxBuffer *self, int count );\n\n\n\n\nvoid DaoxMatrix4D_Export( DaoxMatrix4D *self, GLfloat matrix[16] );\n\n#endif\n"}
80,075
c
/* * This file is part of the Visual Computing Library (VCL) release under the * MIT license. * * Copyright (c) 2015 <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. */ #pragma once // VCL configuration #include <vcl/config/global.h> // C++ standard library #include <array> #include <random> #include <vector> // VCL #include <vcl/core/contract.h> #include <vcl/core/span.h> namespace Vcl { namespace Util { /*! * Wavelet noise implementation by <NAME> and <NAME> */ template<int N> class WaveletNoise { public: // Type definitions using Vec3 = std::array<float, 3>; using Mat33 = std::array<std::array<float, 3>, 3>; public: WaveletNoise() noexcept; WaveletNoise(unsigned int seed); WaveletNoise(std::mt19937& rnd_gen); public: // Evaluation float evaluate(const Vec3& p) const noexcept; float evaluate(const Vec3& p, const Vec3& normal) const; float evaluate(const Vec3& p, float s, const Vec3* normal, int first_band, int nr_bands, stdext::span<const float> w) const; float dx(const Vec3& p) const noexcept; float dy(const Vec3& p) const noexcept; float dz(const Vec3& p) const noexcept; void dxDyDz(const Vec3& p, Mat33& final) const noexcept; Vec3 velocity(const Vec3& p) const noexcept; public: // Properties float minValue() const noexcept { return _min; } float maxValue() const noexcept { return _max; } public: // Access int getNoiseTileSize() const noexcept { return N; } const float* getNoiseTileData() const noexcept { return _noiseTileData.data(); } protected: // Helper methods //! Special constructor taking an initialized set of random numbers WaveletNoise(stdext::span<const float> noise_data_base); //! Initialize the noise data void initializeNoise(stdext::span<const float> noise_data_base); private: //! Noise data std::vector<float> _noiseTileData; float _min; //!< Minimum noise data float _max; //!< Maximum noise data }; }} namespace Vcl { namespace Util { #ifndef VCL_UTIL_WAVELETNOISE_INST extern template class WaveletNoise<32>; extern template class WaveletNoise<64>; extern template class WaveletNoise<128>; #endif // VCL_UTIL_WAVELETNOISE_INST }}
37.87
82
(translation_unit) "/*\n * This file is part of the Visual Computing Library (VCL) release under the\n * MIT license.\n *\n * Copyright (c) 2015 <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 */\n#pragma once\n\n// VCL configuration\n#include <vcl/config/global.h>\n\n// C++ standard library\n#include <array>\n#include <random>\n#include <vector>\n\n// VCL\n#include <vcl/core/contract.h>\n#include <vcl/core/span.h>\n\nnamespace Vcl { namespace Util {\n /*!\n * Wavelet noise implementation by <NAME> and <NAME>\n */\n template<int N>\n class WaveletNoise\n {\n public: // Type definitions\n using Vec3 = std::array<float, 3>;\n using Mat33 = std::array<std::array<float, 3>, 3>;\n\n public:\n WaveletNoise() noexcept;\n WaveletNoise(unsigned int seed);\n WaveletNoise(std::mt19937& rnd_gen);\n\n public: // Evaluation\n float evaluate(const Vec3& p) const noexcept;\n float evaluate(const Vec3& p, const Vec3& normal) const;\n float evaluate(const Vec3& p, float s, const Vec3* normal, int first_band, int nr_bands, stdext::span<const float> w) const;\n\n float dx(const Vec3& p) const noexcept;\n float dy(const Vec3& p) const noexcept;\n float dz(const Vec3& p) const noexcept;\n void dxDyDz(const Vec3& p, Mat33& final) const noexcept;\n\n Vec3 velocity(const Vec3& p) const noexcept;\n\n public: // Properties\n float minValue() const noexcept { return _min; }\n float maxValue() const noexcept { return _max; }\n\n public: // Access\n int getNoiseTileSize() const noexcept { return N; }\n const float* getNoiseTileData() const noexcept { return _noiseTileData.data(); }\n\n protected: // Helper methods\n //! Special constructor taking an initialized set of random numbers\n WaveletNoise(stdext::span<const float> noise_data_base);\n\n //! Initialize the noise data\n void initializeNoise(stdext::span<const float> noise_data_base);\n\n private:\n //! Noise data\n std::vector<float> _noiseTileData;\n\n float _min; //!< Minimum noise data\n float _max; //!< Maximum noise data\n };\n}}\n\nnamespace Vcl { namespace Util {\n#ifndef VCL_UTIL_WAVELETNOISE_INST\n extern template class WaveletNoise<32>;\n extern template class WaveletNoise<64>;\n extern template class WaveletNoise<128>;\n#endif // VCL_UTIL_WAVELETNOISE_INST\n}}\n" (comment) "/*\n * This file is part of the Visual Computing Library (VCL) release under the\n * MIT license.\n *\n * Copyright (c) 2015 <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 */" (preproc_call) "#pragma once\n" (preproc_directive) "#pragma" (preproc_arg) "once" (comment) "// VCL configuration" (preproc_include) "#include <vcl/config/global.h>\n" (#include) "#include" (system_lib_string) "<vcl/config/global.h>" (comment) "// C++ standard library" (preproc_include) "#include <array>\n" (#include) "#include" (system_lib_string) "<array>" (preproc_include) "#include <random>\n" (#include) "#include" (system_lib_string) "<random>" (preproc_include) "#include <vector>\n" (#include) "#include" (system_lib_string) "<vector>" (comment) "// VCL" (preproc_include) "#include <vcl/core/contract.h>\n" (#include) "#include" (system_lib_string) "<vcl/core/contract.h>" (preproc_include) "#include <vcl/core/span.h>\n" (#include) "#include" (system_lib_string) "<vcl/core/span.h>" (function_definition) "namespace Vcl { namespace Util {\n /*!\n * Wavelet noise implementation by <NAME> and <NAME>\n */\n template<int N>\n class WaveletNoise\n {\n public: // Type definitions\n using Vec3 = std::array<float, 3>;\n using Mat33 = std::array<std::array<float, 3>, 3>;\n\n public:\n WaveletNoise() noexcept;\n WaveletNoise(unsigned int seed);\n WaveletNoise(std::mt19937& rnd_gen);\n\n public: // Evaluation\n float evaluate(const Vec3& p) const noexcept;\n float evaluate(const Vec3& p, const Vec3& normal) const;\n float evaluate(const Vec3& p, float s, const Vec3* normal, int first_band, int nr_bands, stdext::span<const float> w) const;\n\n float dx(const Vec3& p) const noexcept;\n float dy(const Vec3& p) const noexcept;\n float dz(const Vec3& p) const noexcept;\n void dxDyDz(const Vec3& p, Mat33& final) const noexcept;\n\n Vec3 velocity(const Vec3& p) const noexcept;\n\n public: // Properties\n float minValue() const noexcept { return _min; }\n float maxValue() const noexcept { return _max; }\n\n public: // Access\n int getNoiseTileSize() const noexcept { return N; }\n const float* getNoiseTileData() const noexcept { return _noiseTileData.data(); }\n\n protected: // Helper methods\n //! Special constructor taking an initialized set of random numbers\n WaveletNoise(stdext::span<const float> noise_data_base);\n\n //! Initialize the noise data\n void initializeNoise(stdext::span<const float> noise_data_base);\n\n private:\n //! Noise data\n std::vector<float> _noiseTileData;\n\n float _min; //!< Minimum noise data\n float _max; //!< Maximum noise data\n };\n}}" (type_identifier) "namespace" (identifier) "Vcl" (compound_statement) "{ namespace Util {\n /*!\n * Wavelet noise implementation by <NAME> and <NAME>\n */\n template<int N>\n class WaveletNoise\n {\n public: // Type definitions\n using Vec3 = std::array<float, 3>;\n using Mat33 = std::array<std::array<float, 3>, 3>;\n\n public:\n WaveletNoise() noexcept;\n WaveletNoise(unsigned int seed);\n WaveletNoise(std::mt19937& rnd_gen);\n\n public: // Evaluation\n float evaluate(const Vec3& p) const noexcept;\n float evaluate(const Vec3& p, const Vec3& normal) const;\n float evaluate(const Vec3& p, float s, const Vec3* normal, int first_band, int nr_bands, stdext::span<const float> w) const;\n\n float dx(const Vec3& p) const noexcept;\n float dy(const Vec3& p) const noexcept;\n float dz(const Vec3& p) const noexcept;\n void dxDyDz(const Vec3& p, Mat33& final) const noexcept;\n\n Vec3 velocity(const Vec3& p) const noexcept;\n\n public: // Properties\n float minValue() const noexcept { return _min; }\n float maxValue() const noexcept { return _max; }\n\n public: // Access\n int getNoiseTileSize() const noexcept { return N; }\n const float* getNoiseTileData() const noexcept { return _noiseTileData.data(); }\n\n protected: // Helper methods\n //! Special constructor taking an initialized set of random numbers\n WaveletNoise(stdext::span<const float> noise_data_base);\n\n //! Initialize the noise data\n void initializeNoise(stdext::span<const float> noise_data_base);\n\n private:\n //! Noise data\n std::vector<float> _noiseTileData;\n\n float _min; //!< Minimum noise data\n float _max; //!< Maximum noise data\n };\n}}" ({) "{" (function_definition) "namespace Util {\n /*!\n * Wavelet noise implementation by <NAME> and <NAME>\n */\n template<int N>\n class WaveletNoise\n {\n public: // Type definitions\n using Vec3 = std::array<float, 3>;\n using Mat33 = std::array<std::array<float, 3>, 3>;\n\n public:\n WaveletNoise() noexcept;\n WaveletNoise(unsigned int seed);\n WaveletNoise(std::mt19937& rnd_gen);\n\n public: // Evaluation\n float evaluate(const Vec3& p) const noexcept;\n float evaluate(const Vec3& p, const Vec3& normal) const;\n float evaluate(const Vec3& p, float s, const Vec3* normal, int first_band, int nr_bands, stdext::span<const float> w) const;\n\n float dx(const Vec3& p) const noexcept;\n float dy(const Vec3& p) const noexcept;\n float dz(const Vec3& p) const noexcept;\n void dxDyDz(const Vec3& p, Mat33& final) const noexcept;\n\n Vec3 velocity(const Vec3& p) const noexcept;\n\n public: // Properties\n float minValue() const noexcept { return _min; }\n float maxValue() const noexcept { return _max; }\n\n public: // Access\n int getNoiseTileSize() const noexcept { return N; }\n const float* getNoiseTileData() const noexcept { return _noiseTileData.data(); }\n\n protected: // Helper methods\n //! Special constructor taking an initialized set of random numbers\n WaveletNoise(stdext::span<const float> noise_data_base);\n\n //! Initialize the noise data\n void initializeNoise(stdext::span<const float> noise_data_base);\n\n private:\n //! Noise data\n std::vector<float> _noiseTileData;\n\n float _min; //!< Minimum noise data\n float _max; //!< Maximum noise data\n };\n}" (type_identifier) "namespace" (identifier) "Util" (compound_statement) "{\n /*!\n * Wavelet noise implementation by <NAME> and <NAME>\n */\n template<int N>\n class WaveletNoise\n {\n public: // Type definitions\n using Vec3 = std::array<float, 3>;\n using Mat33 = std::array<std::array<float, 3>, 3>;\n\n public:\n WaveletNoise() noexcept;\n WaveletNoise(unsigned int seed);\n WaveletNoise(std::mt19937& rnd_gen);\n\n public: // Evaluation\n float evaluate(const Vec3& p) const noexcept;\n float evaluate(const Vec3& p, const Vec3& normal) const;\n float evaluate(const Vec3& p, float s, const Vec3* normal, int first_band, int nr_bands, stdext::span<const float> w) const;\n\n float dx(const Vec3& p) const noexcept;\n float dy(const Vec3& p) const noexcept;\n float dz(const Vec3& p) const noexcept;\n void dxDyDz(const Vec3& p, Mat33& final) const noexcept;\n\n Vec3 velocity(const Vec3& p) const noexcept;\n\n public: // Properties\n float minValue() const noexcept { return _min; }\n float maxValue() const noexcept { return _max; }\n\n public: // Access\n int getNoiseTileSize() const noexcept { return N; }\n const float* getNoiseTileData() const noexcept { return _noiseTileData.data(); }\n\n protected: // Helper methods\n //! Special constructor taking an initialized set of random numbers\n WaveletNoise(stdext::span<const float> noise_data_base);\n\n //! Initialize the noise data\n void initializeNoise(stdext::span<const float> noise_data_base);\n\n private:\n //! Noise data\n std::vector<float> _noiseTileData;\n\n float _min; //!< Minimum noise data\n float _max; //!< Maximum noise data\n };\n}" ({) "{" (comment) "/*!\n * Wavelet noise implementation by <NAME> and <NAME>\n */" (ERROR) "template<int N>\n class WaveletNoise" (binary_expression) "template<int N>\n class" (binary_expression) "template<int" (identifier) "template" (<) "<" (identifier) "int" (ERROR) "N" (identifier) "N" (>) ">" (identifier) "class" (identifier) "WaveletNoise" (compound_statement) "{\n public: // Type definitions\n using Vec3 = std::array<float, 3>;\n using Mat33 = std::array<std::array<float, 3>, 3>;\n\n public:\n WaveletNoise() noexcept;\n WaveletNoise(unsigned int seed);\n WaveletNoise(std::mt19937& rnd_gen);\n\n public: // Evaluation\n float evaluate(const Vec3& p) const noexcept;\n float evaluate(const Vec3& p, const Vec3& normal) const;\n float evaluate(const Vec3& p, float s, const Vec3* normal, int first_band, int nr_bands, stdext::span<const float> w) const;\n\n float dx(const Vec3& p) const noexcept;\n float dy(const Vec3& p) const noexcept;\n float dz(const Vec3& p) const noexcept;\n void dxDyDz(const Vec3& p, Mat33& final) const noexcept;\n\n Vec3 velocity(const Vec3& p) const noexcept;\n\n public: // Properties\n float minValue() const noexcept { return _min; }\n float maxValue() const noexcept { return _max; }\n\n public: // Access\n int getNoiseTileSize() const noexcept { return N; }\n const float* getNoiseTileData() const noexcept { return _noiseTileData.data(); }\n\n protected: // Helper methods\n //! Special constructor taking an initialized set of random numbers\n WaveletNoise(stdext::span<const float> noise_data_base);\n\n //! Initialize the noise data\n void initializeNoise(stdext::span<const float> noise_data_base);\n\n private:\n //! Noise data\n std::vector<float> _noiseTileData;\n\n float _min; //!< Minimum noise data\n float _max; //!< Maximum noise data\n }" ({) "{" (labeled_statement) "public: // Type definitions\n using Vec3 = std::array<float, 3>;" (statement_identifier) "public" (ERROR) ": // Type definitions\n using Vec3 = std:" (:) ":" (comment) "// Type definitions" (type_identifier) "using" (init_declarator) "Vec3 = std" (identifier) "Vec3" (=) "=" (identifier) "std" (:) ":" (:) ":" (expression_statement) "array<float, 3>;" (comma_expression) "array<float, 3" (binary_expression) "array<float" (identifier) "array" (<) "<" (identifier) "float" (,) "," (number_literal) "3" (ERROR) ">" (>) ">" (;) ";" (declaration) "using Mat33 = std::array<std::array<float, 3>, 3>;" (type_identifier) "using" (init_declarator) "Mat33 = std::array<std::array<float" (identifier) "Mat33" (=) "=" (ERROR) "std::array<std::" (identifier) "std" (:) ":" (:) ":" (binary_expression) "array<std" (identifier) "array" (<) "<" (identifier) "std" (:) ":" (:) ":" (binary_expression) "array<float" (identifier) "array" (<) "<" (identifier) "float" (ERROR) ", 3>, 3>" (,) "," (number_literal) "3" (>) ">" (,) "," (number_literal) "3" (>) ">" (;) ";" (labeled_statement) "public:\n WaveletNoise() noexcept;" (statement_identifier) "public" (:) ":" (expression_statement) "WaveletNoise() noexcept;" (call_expression) "WaveletNoise()" (identifier) "WaveletNoise" (argument_list) "()" (() "(" ()) ")" (ERROR) "noexcept" (identifier) "noexcept" (;) ";" (macro_type_specifier) "WaveletNoise(unsigned int seed)" (identifier) "WaveletNoise" (() "(" (type_descriptor) "unsigned int" (sized_type_specifier) "unsigned int" (unsigned) "unsigned" (primitive_type) "int" (ERROR) "seed" (identifier) "seed" ()) ")" (;) ";" (labeled_statement) "WaveletNoise(std::mt19937& rnd_gen);" (statement_identifier) "WaveletNoise" (ERROR) "(std:" (() "(" (type_descriptor) "std" (type_identifier) "std" (:) ":" (:) ":" (expression_statement) "mt19937& rnd_gen);" (binary_expression) "mt19937& rnd_gen" (identifier) "mt19937" (&) "&" (identifier) "rnd_gen" (ERROR) ")" ()) ")" (;) ";" (labeled_statement) "public: // Evaluation\n float evaluate(const Vec3& p) const noexcept;" (statement_identifier) "public" (:) ":" (comment) "// Evaluation" (ERROR) "float evaluate(const Vec3& p) const noexcept" (primitive_type) "float" (function_declarator) "evaluate(const Vec3& p) const noexcept" (identifier) "evaluate" (parameter_list) "(const Vec3& p)" (() "(" (parameter_declaration) "const Vec3& p" (type_qualifier) "const" (const) "const" (type_identifier) "Vec3" (ERROR) "&" (&) "&" (identifier) "p" ()) ")" (identifier) "const" (identifier) "noexcept" (expression_statement) ";" (;) ";" (ERROR) "float evaluate(const Vec3& p, const Vec3& normal) const" (primitive_type) "float" (function_declarator) "evaluate(const Vec3& p, const Vec3& normal) const" (identifier) "evaluate" (parameter_list) "(const Vec3& p, const Vec3& normal)" (() "(" (parameter_declaration) "const Vec3& p" (type_qualifier) "const" (const) "const" (type_identifier) "Vec3" (ERROR) "&" (&) "&" (identifier) "p" (,) "," (parameter_declaration) "const Vec3& normal" (type_qualifier) "const" (const) "const" (type_identifier) "Vec3" (ERROR) "&" (&) "&" (identifier) "normal" ()) ")" (identifier) "const" (expression_statement) ";" (;) ";" (ERROR) "float evaluate(const Vec3& p, float s, const Vec3* normal, int first_band, int nr_bands, stdext::span<const float> w) const" (primitive_type) "float" (function_declarator) "evaluate(const Vec3& p, float s, const Vec3* normal, int first_band, int nr_bands, stdext::span<const float> w) const" (identifier) "evaluate" (parameter_list) "(const Vec3& p, float s, const Vec3* normal, int first_band, int nr_bands, stdext::span<const float> w)" (() "(" (parameter_declaration) "const Vec3& p" (type_qualifier) "const" (const) "const" (type_identifier) "Vec3" (ERROR) "&" (&) "&" (identifier) "p" (,) "," (parameter_declaration) "float s" (primitive_type) "float" (identifier) "s" (,) "," (parameter_declaration) "const Vec3* normal" (type_qualifier) "const" (const) "const" (type_identifier) "Vec3" (pointer_declarator) "* normal" (*) "*" (identifier) "normal" (,) "," (parameter_declaration) "int first_band" (primitive_type) "int" (identifier) "first_band" (,) "," (parameter_declaration) "int nr_bands" (primitive_type) "int" (identifier) "nr_bands" (,) "," (parameter_declaration) "stdext::span<const float> w" (type_identifier) "stdext" (ERROR) "::span<const float>" (:) ":" (:) ":" (identifier) "span" (<) "<" (const) "const" (primitive_type) "float" (>) ">" (identifier) "w" ()) ")" (identifier) "const" (expression_statement) ";" (;) ";" (ERROR) "float dx(const Vec3& p) const noexcept" (primitive_type) "float" (function_declarator) "dx(const Vec3& p) const noexcept" (identifier) "dx" (parameter_list) "(const Vec3& p)" (() "(" (parameter_declaration) "const Vec3& p" (type_qualifier) "const" (const) "const" (type_identifier) "Vec3" (ERROR) "&" (&) "&" (identifier) "p" ()) ")" (identifier) "const" (identifier) "noexcept" (expression_statement) ";" (;) ";" (ERROR) "float dy(const Vec3& p) const noexcept" (primitive_type) "float" (function_declarator) "dy(const Vec3& p) const noexcept" (identifier) "dy" (parameter_list) "(const Vec3& p)" (() "(" (parameter_declaration) "const Vec3& p" (type_qualifier) "const" (const) "const" (type_identifier) "Vec3" (ERROR) "&" (&) "&" (identifier) "p" ()) ")" (identifier) "const" (identifier) "noexcept" (expression_statement) ";" (;) ";" (ERROR) "float dz(const Vec3& p) const noexcept" (primitive_type) "float" (function_declarator) "dz(const Vec3& p) const noexcept" (identifier) "dz" (parameter_list) "(const Vec3& p)" (() "(" (parameter_declaration) "const Vec3& p" (type_qualifier) "const" (const) "const" (type_identifier) "Vec3" (ERROR) "&" (&) "&" (identifier) "p" ()) ")" (identifier) "const" (identifier) "noexcept" (expression_statement) ";" (;) ";" (ERROR) "void dxDyDz(const Vec3& p, Mat33& final) const noexcept" (primitive_type) "void" (function_declarator) "dxDyDz(const Vec3& p, Mat33& final) const noexcept" (identifier) "dxDyDz" (parameter_list) "(const Vec3& p, Mat33& final)" (() "(" (parameter_declaration) "const Vec3& p" (type_qualifier) "const" (const) "const" (type_identifier) "Vec3" (ERROR) "&" (&) "&" (identifier) "p" (,) "," (parameter_declaration) "Mat33& final" (type_identifier) "Mat33" (ERROR) "&" (&) "&" (identifier) "final" ()) ")" (identifier) "const" (identifier) "noexcept" (expression_statement) ";" (;) ";" (ERROR) "Vec3 velocity(const Vec3& p) const noexcept" (type_identifier) "Vec3" (function_declarator) "velocity(const Vec3& p) const noexcept" (identifier) "velocity" (parameter_list) "(const Vec3& p)" (() "(" (parameter_declaration) "const Vec3& p" (type_qualifier) "const" (const) "const" (type_identifier) "Vec3" (ERROR) "&" (&) "&" (identifier) "p" ()) ")" (identifier) "const" (identifier) "noexcept" (expression_statement) ";" (;) ";" (labeled_statement) "public: // Properties\n float minValue() const noexcept { return _min; }" (statement_identifier) "public" (:) ":" (comment) "// Properties" (ERROR) "float minValue() const noexcept" (primitive_type) "float" (function_declarator) "minValue() const noexcept" (identifier) "minValue" (parameter_list) "()" (() "(" ()) ")" (identifier) "const" (identifier) "noexcept" (compound_statement) "{ return _min; }" ({) "{" (return_statement) "return _min;" (return) "return" (identifier) "_min" (;) ";" (}) "}" (ERROR) "float maxValue() const noexcept" (primitive_type) "float" (function_declarator) "maxValue()" (identifier) "maxValue" (parameter_list) "()" (() "(" ()) ")" (type_qualifier) "const" (const) "const" (type_identifier) "noexcept" (compound_statement) "{ return _max; }" ({) "{" (return_statement) "return _max;" (return) "return" (identifier) "_max" (;) ";" (}) "}" (labeled_statement) "public: // Access\n int getNoiseTileSize() const noexcept { return N; }" (statement_identifier) "public" (:) ":" (comment) "// Access" (ERROR) "int getNoiseTileSize() const noexcept" (primitive_type) "int" (function_declarator) "getNoiseTileSize() const noexcept" (identifier) "getNoiseTileSize" (parameter_list) "()" (() "(" ()) ")" (identifier) "const" (identifier) "noexcept" (compound_statement) "{ return N; }" ({) "{" (return_statement) "return N;" (return) "return" (identifier) "N" (;) ";" (}) "}" (function_definition) "const float* getNoiseTileData() const noexcept { return _noiseTileData.data(); }" (type_qualifier) "const" (const) "const" (primitive_type) "float" (pointer_declarator) "* getNoiseTileData() const noexcept" (*) "*" (function_declarator) "getNoiseTileData() const noexcept" (identifier) "getNoiseTileData" (parameter_list) "()" (() "(" ()) ")" (identifier) "const" (identifier) "noexcept" (compound_statement) "{ return _noiseTileData.data(); }" ({) "{" (return_statement) "return _noiseTileData.data();" (return) "return" (call_expression) "_noiseTileData.data()" (field_expression) "_noiseTileData.data" (identifier) "_noiseTileData" (.) "." (field_identifier) "data" (argument_list) "()" (() "(" ()) ")" (;) ";" (}) "}" (labeled_statement) "protected: // Helper methods\n //! Special constructor taking an initialized set of random numbers\n WaveletNoise(stdext::span<const float> noise_data_base);" (statement_identifier) "protected" (:) ":" (comment) "// Helper methods" (comment) "//! Special constructor taking an initialized set of random numbers" (labeled_statement) "WaveletNoise(stdext::span<const float> noise_data_base);" (statement_identifier) "WaveletNoise" (ERROR) "(stdext:" (() "(" (type_descriptor) "stdext" (type_identifier) "stdext" (:) ":" (:) ":" (expression_statement) "span<const float> noise_data_base);" (binary_expression) "span<const float> noise_data_base" (binary_expression) "span<const" (identifier) "span" (<) "<" (identifier) "const" (ERROR) "float" (identifier) "float" (>) ">" (identifier) "noise_data_base" (ERROR) ")" ()) ")" (;) ";" (comment) "//! Initialize the noise data" (declaration) "void initializeNoise(stdext::span<const float> noise_data_base);" (primitive_type) "void" (function_declarator) "initializeNoise(stdext::span<const float> noise_data_base)" (identifier) "initializeNoise" (parameter_list) "(stdext::span<const float> noise_data_base)" (() "(" (ERROR) "stdext::span<" (parameter_declaration) "stdext::span" (type_identifier) "stdext" (ERROR) "::" (:) ":" (:) ":" (identifier) "span" (<) "<" (parameter_declaration) "const float> noise_data_base" (type_qualifier) "const" (const) "const" (primitive_type) "float" (ERROR) ">" (>) ">" (identifier) "noise_data_base" ()) ")" (;) ";" (labeled_statement) "private:\n //! Noise data\n std::vector<float> _noiseTileData;" (statement_identifier) "private" (:) ":" (comment) "//! Noise data" (labeled_statement) "std::vector<float> _noiseTileData;" (statement_identifier) "std" (:) ":" (ERROR) ":" (:) ":" (expression_statement) "vector<float> _noiseTileData;" (binary_expression) "vector<float> _noiseTileData" (binary_expression) "vector<float" (identifier) "vector" (<) "<" (identifier) "float" (>) ">" (identifier) "_noiseTileData" (;) ";" (declaration) "float _min;" (primitive_type) "float" (identifier) "_min" (;) ";" (comment) "//!< Minimum noise data" (declaration) "float _max;" (primitive_type) "float" (identifier) "_max" (;) ";" (comment) "//!< Maximum noise data" (}) "}" (expression_statement) ";" (;) ";" (}) "}" (}) "}" (function_definition) "namespace Vcl { namespace Util {\n#ifndef VCL_UTIL_WAVELETNOISE_INST\n extern template class WaveletNoise<32>;\n extern template class WaveletNoise<64>;\n extern template class WaveletNoise<128>;\n#endif // VCL_UTIL_WAVELETNOISE_INST\n}}" (type_identifier) "namespace" (identifier) "Vcl" (compound_statement) "{ namespace Util {\n#ifndef VCL_UTIL_WAVELETNOISE_INST\n extern template class WaveletNoise<32>;\n extern template class WaveletNoise<64>;\n extern template class WaveletNoise<128>;\n#endif // VCL_UTIL_WAVELETNOISE_INST\n}}" ({) "{" (function_definition) "namespace Util {\n#ifndef VCL_UTIL_WAVELETNOISE_INST\n extern template class WaveletNoise<32>;\n extern template class WaveletNoise<64>;\n extern template class WaveletNoise<128>;\n#endif // VCL_UTIL_WAVELETNOISE_INST\n}" (type_identifier) "namespace" (identifier) "Util" (compound_statement) "{\n#ifndef VCL_UTIL_WAVELETNOISE_INST\n extern template class WaveletNoise<32>;\n extern template class WaveletNoise<64>;\n extern template class WaveletNoise<128>;\n#endif // VCL_UTIL_WAVELETNOISE_INST\n}" ({) "{" (preproc_ifdef) "#ifndef VCL_UTIL_WAVELETNOISE_INST\n extern template class WaveletNoise<32>;\n extern template class WaveletNoise<64>;\n extern template class WaveletNoise<128>;\n#endif" (#ifndef) "#ifndef" (identifier) "VCL_UTIL_WAVELETNOISE_INST" (declaration) "extern template class" (storage_class_specifier) "extern" (extern) "extern" (type_identifier) "template" (identifier) "class" (;) "" (expression_statement) "WaveletNoise<32>;" (binary_expression) "WaveletNoise<32>" (binary_expression) "WaveletNoise<32" (identifier) "WaveletNoise" (<) "<" (number_literal) "32" (>) ">" (identifier) "" (;) ";" (declaration) "extern template class" (storage_class_specifier) "extern" (extern) "extern" (type_identifier) "template" (identifier) "class" (;) "" (expression_statement) "WaveletNoise<64>;" (binary_expression) "WaveletNoise<64>" (binary_expression) "WaveletNoise<64" (identifier) "WaveletNoise" (<) "<" (number_literal) "64" (>) ">" (identifier) "" (;) ";" (declaration) "extern template class" (storage_class_specifier) "extern" (extern) "extern" (type_identifier) "template" (identifier) "class" (;) "" (expression_statement) "WaveletNoise<128>;" (binary_expression) "WaveletNoise<128>" (binary_expression) "WaveletNoise<128" (identifier) "WaveletNoise" (<) "<" (number_literal) "128" (>) ">" (identifier) "" (;) ";" (#endif) "#endif" (comment) "// VCL_UTIL_WAVELETNOISE_INST" (}) "}" (}) "}"
560
39
{"language": "c", "success": true, "metadata": {"lines": 82, "avg_line_length": 37.87, "nodes": 321, "errors": 0, "source_hash": "a2a25c18f0abfb4062a840c3890961285e47c2acd756f72072e0ab2d552560c3", "categorized_nodes": 212}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma once\n", "parent": null, "children": [1, 2], "start_point": {"row": 24, "column": 0}, "end_point": {"row": 25, "column": 0}}, {"id": 1, "type": "preproc_directive", "text": "#pragma", "parent": 0, "children": [], "start_point": {"row": 24, "column": 0}, "end_point": {"row": 24, "column": 7}}, {"id": 2, "type": "preproc_arg", "text": "once", "parent": 0, "children": [], "start_point": {"row": 24, "column": 8}, "end_point": {"row": 24, "column": 12}}, {"id": 3, "type": "preproc_include", "text": "#include <vcl/config/global.h>\n", "parent": null, "children": [4, 5], "start_point": {"row": 27, "column": 0}, "end_point": {"row": 28, "column": 0}}, {"id": 4, "type": "#include", "text": "#include", "parent": 3, "children": [], "start_point": {"row": 27, "column": 0}, "end_point": {"row": 27, "column": 8}}, {"id": 5, "type": "system_lib_string", "text": "<vcl/config/global.h>", "parent": 3, "children": [], "start_point": {"row": 27, "column": 9}, "end_point": {"row": 27, "column": 30}}, {"id": 6, "type": "preproc_include", "text": "#include <array>\n", "parent": null, "children": [7, 8], "start_point": {"row": 30, "column": 0}, "end_point": {"row": 31, "column": 0}}, {"id": 7, "type": "#include", "text": "#include", "parent": 6, "children": [], "start_point": {"row": 30, "column": 0}, "end_point": {"row": 30, "column": 8}}, {"id": 8, "type": "system_lib_string", "text": "<array>", "parent": 6, "children": [], "start_point": {"row": 30, "column": 9}, "end_point": {"row": 30, "column": 16}}, {"id": 9, "type": "preproc_include", "text": "#include <random>\n", "parent": null, "children": [10, 11], "start_point": {"row": 31, "column": 0}, "end_point": {"row": 32, "column": 0}}, {"id": 10, "type": "#include", "text": "#include", "parent": 9, "children": [], "start_point": {"row": 31, "column": 0}, "end_point": {"row": 31, "column": 8}}, {"id": 11, "type": "system_lib_string", "text": "<random>", "parent": 9, "children": [], "start_point": {"row": 31, "column": 9}, "end_point": {"row": 31, "column": 17}}, {"id": 12, "type": "preproc_include", "text": "#include <vector>\n", "parent": null, "children": [13, 14], "start_point": {"row": 32, "column": 0}, "end_point": {"row": 33, "column": 0}}, {"id": 13, "type": "#include", "text": "#include", "parent": 12, "children": [], "start_point": {"row": 32, "column": 0}, "end_point": {"row": 32, "column": 8}}, {"id": 14, "type": "system_lib_string", "text": "<vector>", "parent": 12, "children": [], "start_point": {"row": 32, "column": 9}, "end_point": {"row": 32, "column": 17}}, {"id": 15, "type": "preproc_include", "text": "#include <vcl/core/contract.h>\n", "parent": null, "children": [16, 17], "start_point": {"row": 35, "column": 0}, "end_point": {"row": 36, "column": 0}}, {"id": 16, "type": "#include", "text": "#include", "parent": 15, "children": [], "start_point": {"row": 35, "column": 0}, "end_point": {"row": 35, "column": 8}}, {"id": 17, "type": "system_lib_string", "text": "<vcl/core/contract.h>", "parent": 15, "children": [], "start_point": {"row": 35, "column": 9}, "end_point": {"row": 35, "column": 30}}, {"id": 18, "type": "preproc_include", "text": "#include <vcl/core/span.h>\n", "parent": null, "children": [19, 20], "start_point": {"row": 36, "column": 0}, "end_point": {"row": 37, "column": 0}}, {"id": 19, "type": "#include", "text": "#include", "parent": 18, "children": [], "start_point": {"row": 36, "column": 0}, "end_point": {"row": 36, "column": 8}}, {"id": 20, "type": "system_lib_string", "text": "<vcl/core/span.h>", "parent": 18, "children": [], "start_point": {"row": 36, "column": 9}, "end_point": {"row": 36, "column": 26}}, {"id": 21, "type": "function_definition", "text": "namespace Vcl { namespace Util {\n\t/*!\n\t *\tWavelet noise implementation by <NAME> and <NAME>\n\t */\n\ttemplate<int N>\n\tclass WaveletNoise\n\t{\n\tpublic: // Type definitions\n\t\tusing Vec3 = std::array<float, 3>;\n\t\tusing Mat33 = std::array<std::array<float, 3>, 3>;\n\n\tpublic:\n\t\tWaveletNoise() noexcept;\n\t\tWaveletNoise(unsigned int seed);\n\t\tWaveletNoise(std::mt19937& rnd_gen);\n\n\tpublic: // Evaluation\n\t\tfloat evaluate(const Vec3& p) const noexcept;\n\t\tfloat evaluate(const Vec3& p, const Vec3& normal) const;\n\t\tfloat evaluate(const Vec3& p, float s, const Vec3* normal, int first_band, int nr_bands, stdext::span<const float> w) const;\n\n\t\tfloat dx(const Vec3& p) const noexcept;\n\t\tfloat dy(const Vec3& p) const noexcept;\n\t\tfloat dz(const Vec3& p) const noexcept;\n\t\tvoid dxDyDz(const Vec3& p, Mat33& final) const noexcept;\n\n\t\tVec3 velocity(const Vec3& p) const noexcept;\n\n\tpublic: // Properties\n\t\tfloat minValue() const noexcept { return _min; }\n\t\tfloat maxValue() const noexcept { return _max; }\n\n\tpublic: // Access\n\t\tint getNoiseTileSize() const noexcept { return N; }\n\t\tconst float* getNoiseTileData() const noexcept { return _noiseTileData.data(); }\n\n\tprotected: // Helper methods\n\t\t//! Special constructor taking an initialized set of random numbers\n\t\tWaveletNoise(stdext::span<const float> noise_data_base);\n\n\t\t//! Initialize the noise data\n\t\tvoid initializeNoise(stdext::span<const float> noise_data_base);\n\n\tprivate:\n\t\t//! Noise data\n\t\tstd::vector<float> _noiseTileData;\n\n\t\tfloat _min; //!< Minimum noise data\n\t\tfloat _max; //!< Maximum noise data\n\t};\n}}", "parent": null, "children": [22, 23], "start_point": {"row": 38, "column": 0}, "end_point": {"row": 88, "column": 2}}, {"id": 22, "type": "type_identifier", "text": "namespace", "parent": 21, "children": [], "start_point": {"row": 38, "column": 0}, "end_point": {"row": 38, "column": 9}}, {"id": 23, "type": "identifier", "text": "Vcl", "parent": 21, "children": [], "start_point": {"row": 38, "column": 10}, "end_point": {"row": 38, "column": 13}}, {"id": 24, "type": "function_definition", "text": "namespace Util {\n\t/*!\n\t *\tWavelet noise implementation by <NAME> and <NAME>\n\t */\n\ttemplate<int N>\n\tclass WaveletNoise\n\t{\n\tpublic: // Type definitions\n\t\tusing Vec3 = std::array<float, 3>;\n\t\tusing Mat33 = std::array<std::array<float, 3>, 3>;\n\n\tpublic:\n\t\tWaveletNoise() noexcept;\n\t\tWaveletNoise(unsigned int seed);\n\t\tWaveletNoise(std::mt19937& rnd_gen);\n\n\tpublic: // Evaluation\n\t\tfloat evaluate(const Vec3& p) const noexcept;\n\t\tfloat evaluate(const Vec3& p, const Vec3& normal) const;\n\t\tfloat evaluate(const Vec3& p, float s, const Vec3* normal, int first_band, int nr_bands, stdext::span<const float> w) const;\n\n\t\tfloat dx(const Vec3& p) const noexcept;\n\t\tfloat dy(const Vec3& p) const noexcept;\n\t\tfloat dz(const Vec3& p) const noexcept;\n\t\tvoid dxDyDz(const Vec3& p, Mat33& final) const noexcept;\n\n\t\tVec3 velocity(const Vec3& p) const noexcept;\n\n\tpublic: // Properties\n\t\tfloat minValue() const noexcept { return _min; }\n\t\tfloat maxValue() const noexcept { return _max; }\n\n\tpublic: // Access\n\t\tint getNoiseTileSize() const noexcept { return N; }\n\t\tconst float* getNoiseTileData() const noexcept { return _noiseTileData.data(); }\n\n\tprotected: // Helper methods\n\t\t//! Special constructor taking an initialized set of random numbers\n\t\tWaveletNoise(stdext::span<const float> noise_data_base);\n\n\t\t//! Initialize the noise data\n\t\tvoid initializeNoise(stdext::span<const float> noise_data_base);\n\n\tprivate:\n\t\t//! Noise data\n\t\tstd::vector<float> _noiseTileData;\n\n\t\tfloat _min; //!< Minimum noise data\n\t\tfloat _max; //!< Maximum noise data\n\t};\n}", "parent": 21, "children": [25, 26], "start_point": {"row": 38, "column": 16}, "end_point": {"row": 88, "column": 1}}, {"id": 25, "type": "type_identifier", "text": "namespace", "parent": 24, "children": [], "start_point": {"row": 38, "column": 16}, "end_point": {"row": 38, "column": 25}}, {"id": 26, "type": "identifier", "text": "Util", "parent": 24, "children": [], "start_point": {"row": 38, "column": 26}, "end_point": {"row": 38, "column": 30}}, {"id": 27, "type": "ERROR", "text": "template<int N>\n\tclass WaveletNoise", "parent": 24, "children": [28, 36], "start_point": {"row": 42, "column": 1}, "end_point": {"row": 43, "column": 19}}, {"id": 28, "type": "binary_expression", "text": "template<int N>\n\tclass", "parent": 27, "children": [29, 33, 35], "start_point": {"row": 42, "column": 1}, "end_point": {"row": 43, "column": 6}}, {"id": 29, "type": "binary_expression", "text": "template<int", "parent": 28, "children": [30, 31, 32], "start_point": {"row": 42, "column": 1}, "end_point": {"row": 42, "column": 13}}, {"id": 30, "type": "identifier", "text": "template", "parent": 29, "children": [], "start_point": {"row": 42, "column": 1}, "end_point": {"row": 42, "column": 9}}, {"id": 31, "type": "<", "text": "<", "parent": 29, "children": [], "start_point": {"row": 42, "column": 9}, "end_point": {"row": 42, "column": 10}}, {"id": 32, "type": "identifier", "text": "int", "parent": 29, "children": [], "start_point": {"row": 42, "column": 10}, "end_point": {"row": 42, "column": 13}}, {"id": 33, "type": "ERROR", "text": "N", "parent": 28, "children": [34], "start_point": {"row": 42, "column": 14}, "end_point": {"row": 42, "column": 15}}, {"id": 34, "type": "identifier", "text": "N", "parent": 33, "children": [], "start_point": {"row": 42, "column": 14}, "end_point": {"row": 42, "column": 15}}, {"id": 35, "type": ">", "text": ">", "parent": 28, "children": [], "start_point": {"row": 42, "column": 15}, "end_point": {"row": 42, "column": 16}}, {"id": 36, "type": "identifier", "text": "WaveletNoise", "parent": 27, "children": [], "start_point": {"row": 43, "column": 7}, "end_point": {"row": 43, "column": 19}}, {"id": 37, "type": "labeled_statement", "text": "public: // Type definitions\n\t\tusing Vec3 = std::array<float, 3>;", "parent": 24, "children": [38], "start_point": {"row": 45, "column": 1}, "end_point": {"row": 46, "column": 36}}, {"id": 38, "type": "ERROR", "text": ": // Type definitions\n\t\tusing Vec3 = std:", "parent": 37, "children": [39, 40], "start_point": {"row": 45, "column": 7}, "end_point": {"row": 46, "column": 19}}, {"id": 39, "type": "type_identifier", "text": "using", "parent": 38, "children": [], "start_point": {"row": 46, "column": 2}, "end_point": {"row": 46, "column": 7}}, {"id": 40, "type": "init_declarator", "text": "Vec3 = std", "parent": 38, "children": [41, 42, 43], "start_point": {"row": 46, "column": 8}, "end_point": {"row": 46, "column": 18}}, {"id": 41, "type": "identifier", "text": "Vec3", "parent": 40, "children": [], "start_point": {"row": 46, "column": 8}, "end_point": {"row": 46, "column": 12}}, {"id": 42, "type": "=", "text": "=", "parent": 40, "children": [], "start_point": {"row": 46, "column": 13}, "end_point": {"row": 46, "column": 14}}, {"id": 43, "type": "identifier", "text": "std", "parent": 40, "children": [], "start_point": {"row": 46, "column": 15}, "end_point": {"row": 46, "column": 18}}, {"id": 44, "type": "comma_expression", "text": "array<float, 3", "parent": 37, "children": [45, 49], "start_point": {"row": 46, "column": 20}, "end_point": {"row": 46, "column": 34}}, {"id": 45, "type": "binary_expression", "text": "array<float", "parent": 44, "children": [46, 47, 48], "start_point": {"row": 46, "column": 20}, "end_point": {"row": 46, "column": 31}}, {"id": 46, "type": "identifier", "text": "array", "parent": 45, "children": [], "start_point": {"row": 46, "column": 20}, "end_point": {"row": 46, "column": 25}}, {"id": 47, "type": "<", "text": "<", "parent": 45, "children": [], "start_point": {"row": 46, "column": 25}, "end_point": {"row": 46, "column": 26}}, {"id": 48, "type": "identifier", "text": "float", "parent": 45, "children": [], "start_point": {"row": 46, "column": 26}, "end_point": {"row": 46, "column": 31}}, {"id": 49, "type": "number_literal", "text": "3", "parent": 44, "children": [], "start_point": {"row": 46, "column": 33}, "end_point": {"row": 46, "column": 34}}, {"id": 50, "type": "ERROR", "text": ">", "parent": 37, "children": [51], "start_point": {"row": 46, "column": 34}, "end_point": {"row": 46, "column": 35}}, {"id": 51, "type": ">", "text": ">", "parent": 50, "children": [], "start_point": {"row": 46, "column": 34}, "end_point": {"row": 46, "column": 35}}, {"id": 52, "type": "declaration", "text": "using Mat33 = std::array<std::array<float, 3>, 3>;", "parent": 24, "children": [53, 54, 67], "start_point": {"row": 47, "column": 2}, "end_point": {"row": 47, "column": 52}}, {"id": 53, "type": "type_identifier", "text": "using", "parent": 52, "children": [], "start_point": {"row": 47, "column": 2}, "end_point": {"row": 47, "column": 7}}, {"id": 54, "type": "init_declarator", "text": "Mat33 = std::array<std::array<float", "parent": 52, "children": [55, 56, 57, 63], "start_point": {"row": 47, "column": 8}, "end_point": {"row": 47, "column": 43}}, {"id": 55, "type": "identifier", "text": "Mat33", "parent": 54, "children": [], "start_point": {"row": 47, "column": 8}, "end_point": {"row": 47, "column": 13}}, {"id": 56, "type": "=", "text": "=", "parent": 54, "children": [], "start_point": {"row": 47, "column": 14}, "end_point": {"row": 47, "column": 15}}, {"id": 57, "type": "ERROR", "text": "std::array<std::", "parent": 54, "children": [58, 59], "start_point": {"row": 47, "column": 16}, "end_point": {"row": 47, "column": 32}}, {"id": 58, "type": "identifier", "text": "std", "parent": 57, "children": [], "start_point": {"row": 47, "column": 16}, "end_point": {"row": 47, "column": 19}}, {"id": 59, "type": "binary_expression", "text": "array<std", "parent": 57, "children": [60, 61, 62], "start_point": {"row": 47, "column": 21}, "end_point": {"row": 47, "column": 30}}, {"id": 60, "type": "identifier", "text": "array", "parent": 59, "children": [], "start_point": {"row": 47, "column": 21}, "end_point": {"row": 47, "column": 26}}, {"id": 61, "type": "<", "text": "<", "parent": 59, "children": [], "start_point": {"row": 47, "column": 26}, "end_point": {"row": 47, "column": 27}}, {"id": 62, "type": "identifier", "text": "std", "parent": 59, "children": [], "start_point": {"row": 47, "column": 27}, "end_point": {"row": 47, "column": 30}}, {"id": 63, "type": "binary_expression", "text": "array<float", "parent": 54, "children": [64, 65, 66], "start_point": {"row": 47, "column": 32}, "end_point": {"row": 47, "column": 43}}, {"id": 64, "type": "identifier", "text": "array", "parent": 63, "children": [], "start_point": {"row": 47, "column": 32}, "end_point": {"row": 47, "column": 37}}, {"id": 65, "type": "<", "text": "<", "parent": 63, "children": [], "start_point": {"row": 47, "column": 37}, "end_point": {"row": 47, "column": 38}}, {"id": 66, "type": "identifier", "text": "float", "parent": 63, "children": [], "start_point": {"row": 47, "column": 38}, "end_point": {"row": 47, "column": 43}}, {"id": 67, "type": "ERROR", "text": ", 3>, 3>", "parent": 52, "children": [68, 69, 70, 71], "start_point": {"row": 47, "column": 43}, "end_point": {"row": 47, "column": 51}}, {"id": 68, "type": "number_literal", "text": "3", "parent": 67, "children": [], "start_point": {"row": 47, "column": 45}, "end_point": {"row": 47, "column": 46}}, {"id": 69, "type": ">", "text": ">", "parent": 67, "children": [], "start_point": {"row": 47, "column": 46}, "end_point": {"row": 47, "column": 47}}, {"id": 70, "type": "number_literal", "text": "3", "parent": 67, "children": [], "start_point": {"row": 47, "column": 49}, "end_point": {"row": 47, "column": 50}}, {"id": 71, "type": ">", "text": ">", "parent": 67, "children": [], "start_point": {"row": 47, "column": 50}, "end_point": {"row": 47, "column": 51}}, {"id": 72, "type": "labeled_statement", "text": "public:\n\t\tWaveletNoise() noexcept;", "parent": 24, "children": [], "start_point": {"row": 49, "column": 1}, "end_point": {"row": 50, "column": 26}}, {"id": 73, "type": "call_expression", "text": "WaveletNoise()", "parent": 72, "children": [74, 75], "start_point": {"row": 50, "column": 2}, "end_point": {"row": 50, "column": 16}}, {"id": 74, "type": "identifier", "text": "WaveletNoise", "parent": 73, "children": [], "start_point": {"row": 50, "column": 2}, "end_point": {"row": 50, "column": 14}}, {"id": 75, "type": "argument_list", "text": "()", "parent": 73, "children": [], "start_point": {"row": 50, "column": 14}, "end_point": {"row": 50, "column": 16}}, {"id": 76, "type": "ERROR", "text": "noexcept", "parent": 72, "children": [77], "start_point": {"row": 50, "column": 17}, "end_point": {"row": 50, "column": 25}}, {"id": 77, "type": "identifier", "text": "noexcept", "parent": 76, "children": [], "start_point": {"row": 50, "column": 17}, "end_point": {"row": 50, "column": 25}}, {"id": 78, "type": "macro_type_specifier", "text": "WaveletNoise(unsigned int seed)", "parent": 24, "children": [79, 80, 84], "start_point": {"row": 51, "column": 2}, "end_point": {"row": 51, "column": 33}}, {"id": 79, "type": "identifier", "text": "WaveletNoise", "parent": 78, "children": [], "start_point": {"row": 51, "column": 2}, "end_point": {"row": 51, "column": 14}}, {"id": 80, "type": "type_descriptor", "text": "unsigned int", "parent": 78, "children": [81], "start_point": {"row": 51, "column": 15}, "end_point": {"row": 51, "column": 27}}, {"id": 81, "type": "sized_type_specifier", "text": "unsigned int", "parent": 80, "children": [82, 83], "start_point": {"row": 51, "column": 15}, "end_point": {"row": 51, "column": 27}}, {"id": 82, "type": "unsigned", "text": "unsigned", "parent": 81, "children": [], "start_point": {"row": 51, "column": 15}, "end_point": {"row": 51, "column": 23}}, {"id": 83, "type": "primitive_type", "text": "int", "parent": 81, "children": [], "start_point": {"row": 51, "column": 24}, "end_point": {"row": 51, "column": 27}}, {"id": 84, "type": "ERROR", "text": "seed", "parent": 78, "children": [85], "start_point": {"row": 51, "column": 28}, "end_point": {"row": 51, "column": 32}}, {"id": 85, "type": "identifier", "text": "seed", "parent": 84, "children": [], "start_point": {"row": 51, "column": 28}, "end_point": {"row": 51, "column": 32}}, {"id": 86, "type": "labeled_statement", "text": "WaveletNoise(std::mt19937& rnd_gen);", "parent": 24, "children": [87, 88], "start_point": {"row": 52, "column": 2}, "end_point": {"row": 52, "column": 38}}, {"id": 87, "type": "statement_identifier", "text": "WaveletNoise", "parent": 86, "children": [], "start_point": {"row": 52, "column": 2}, "end_point": {"row": 52, "column": 14}}, {"id": 88, "type": "ERROR", "text": "(std:", "parent": 86, "children": [89], "start_point": {"row": 52, "column": 14}, "end_point": {"row": 52, "column": 19}}, {"id": 89, "type": "type_descriptor", "text": "std", "parent": 88, "children": [90], "start_point": {"row": 52, "column": 15}, "end_point": {"row": 52, "column": 18}}, {"id": 90, "type": "type_identifier", "text": "std", "parent": 89, "children": [], "start_point": {"row": 52, "column": 15}, "end_point": {"row": 52, "column": 18}}, {"id": 91, "type": "binary_expression", "text": "mt19937& rnd_gen", "parent": 86, "children": [92, 93], "start_point": {"row": 52, "column": 20}, "end_point": {"row": 52, "column": 36}}, {"id": 92, "type": "identifier", "text": "mt19937", "parent": 91, "children": [], "start_point": {"row": 52, "column": 20}, "end_point": {"row": 52, "column": 27}}, {"id": 93, "type": "identifier", "text": "rnd_gen", "parent": 91, "children": [], "start_point": {"row": 52, "column": 29}, "end_point": {"row": 52, "column": 36}}, {"id": 94, "type": "labeled_statement", "text": "public: // Evaluation\n\t\tfloat evaluate(const Vec3& p) const noexcept;", "parent": 24, "children": [95], "start_point": {"row": 54, "column": 1}, "end_point": {"row": 55, "column": 47}}, {"id": 95, "type": "ERROR", "text": "float evaluate(const Vec3& p) const noexcept", "parent": 94, "children": [96, 97], "start_point": {"row": 55, "column": 2}, "end_point": {"row": 55, "column": 46}}, {"id": 96, "type": "primitive_type", "text": "float", "parent": 95, "children": [], "start_point": {"row": 55, "column": 2}, "end_point": {"row": 55, "column": 7}}, {"id": 97, "type": "function_declarator", "text": "evaluate(const Vec3& p) const noexcept", "parent": 95, "children": [98, 99, 103], "start_point": {"row": 55, "column": 8}, "end_point": {"row": 55, "column": 46}}, {"id": 98, "type": "identifier", "text": "evaluate", "parent": 97, "children": [], "start_point": {"row": 55, "column": 8}, "end_point": {"row": 55, "column": 16}}, {"id": 99, "type": "parameter_list", "text": "(const Vec3& p)", "parent": 97, "children": [100], "start_point": {"row": 55, "column": 16}, "end_point": {"row": 55, "column": 31}}, {"id": 100, "type": "parameter_declaration", "text": "const Vec3& p", "parent": 99, "children": [101, 102], "start_point": {"row": 55, "column": 17}, "end_point": {"row": 55, "column": 30}}, {"id": 101, "type": "type_identifier", "text": "Vec3", "parent": 100, "children": [], "start_point": {"row": 55, "column": 23}, "end_point": {"row": 55, "column": 27}}, {"id": 102, "type": "identifier", "text": "p", "parent": 100, "children": [], "start_point": {"row": 55, "column": 29}, "end_point": {"row": 55, "column": 30}}, {"id": 103, "type": "identifier", "text": "noexcept", "parent": 97, "children": [], "start_point": {"row": 55, "column": 38}, "end_point": {"row": 55, "column": 46}}, {"id": 104, "type": "ERROR", "text": "float evaluate(const Vec3& p, const Vec3& normal) const", "parent": 24, "children": [105, 106], "start_point": {"row": 56, "column": 2}, "end_point": {"row": 56, "column": 57}}, {"id": 105, "type": "primitive_type", "text": "float", "parent": 104, "children": [], "start_point": {"row": 56, "column": 2}, "end_point": {"row": 56, "column": 7}}, {"id": 106, "type": "function_declarator", "text": "evaluate(const Vec3& p, const Vec3& normal) const", "parent": 104, "children": [107, 108], "start_point": {"row": 56, "column": 8}, "end_point": {"row": 56, "column": 57}}, {"id": 107, "type": "identifier", "text": "evaluate", "parent": 106, "children": [], "start_point": {"row": 56, "column": 8}, "end_point": {"row": 56, "column": 16}}, {"id": 108, "type": "parameter_list", "text": "(const Vec3& p, const Vec3& normal)", "parent": 106, "children": [109, 112], "start_point": {"row": 56, "column": 16}, "end_point": {"row": 56, "column": 51}}, {"id": 109, "type": "parameter_declaration", "text": "const Vec3& p", "parent": 108, "children": [110, 111], "start_point": {"row": 56, "column": 17}, "end_point": {"row": 56, "column": 30}}, {"id": 110, "type": "type_identifier", "text": "Vec3", "parent": 109, "children": [], "start_point": {"row": 56, "column": 23}, "end_point": {"row": 56, "column": 27}}, {"id": 111, "type": "identifier", "text": "p", "parent": 109, "children": [], "start_point": {"row": 56, "column": 29}, "end_point": {"row": 56, "column": 30}}, {"id": 112, "type": "parameter_declaration", "text": "const Vec3& normal", "parent": 108, "children": [113, 114], "start_point": {"row": 56, "column": 32}, "end_point": {"row": 56, "column": 50}}, {"id": 113, "type": "type_identifier", "text": "Vec3", "parent": 112, "children": [], "start_point": {"row": 56, "column": 38}, "end_point": {"row": 56, "column": 42}}, {"id": 114, "type": "identifier", "text": "normal", "parent": 112, "children": [], "start_point": {"row": 56, "column": 44}, "end_point": {"row": 56, "column": 50}}, {"id": 115, "type": "ERROR", "text": "float evaluate(const Vec3& p, float s, const Vec3* normal, int first_band, int nr_bands, stdext::span<const float> w) const", "parent": 24, "children": [116, 117], "start_point": {"row": 57, "column": 2}, "end_point": {"row": 57, "column": 125}}, {"id": 116, "type": "primitive_type", "text": "float", "parent": 115, "children": [], "start_point": {"row": 57, "column": 2}, "end_point": {"row": 57, "column": 7}}, {"id": 117, "type": "function_declarator", "text": "evaluate(const Vec3& p, float s, const Vec3* normal, int first_band, int nr_bands, stdext::span<const float> w) const", "parent": 115, "children": [118, 119], "start_point": {"row": 57, "column": 8}, "end_point": {"row": 57, "column": 125}}, {"id": 118, "type": "identifier", "text": "evaluate", "parent": 117, "children": [], "start_point": {"row": 57, "column": 8}, "end_point": {"row": 57, "column": 16}}, {"id": 119, "type": "parameter_list", "text": "(const Vec3& p, float s, const Vec3* normal, int first_band, int nr_bands, stdext::span<const float> w)", "parent": 117, "children": [120, 123, 126, 131, 134, 137], "start_point": {"row": 57, "column": 16}, "end_point": {"row": 57, "column": 119}}, {"id": 120, "type": "parameter_declaration", "text": "const Vec3& p", "parent": 119, "children": [121, 122], "start_point": {"row": 57, "column": 17}, "end_point": {"row": 57, "column": 30}}, {"id": 121, "type": "type_identifier", "text": "Vec3", "parent": 120, "children": [], "start_point": {"row": 57, "column": 23}, "end_point": {"row": 57, "column": 27}}, {"id": 122, "type": "identifier", "text": "p", "parent": 120, "children": [], "start_point": {"row": 57, "column": 29}, "end_point": {"row": 57, "column": 30}}, {"id": 123, "type": "parameter_declaration", "text": "float s", "parent": 119, "children": [124, 125], "start_point": {"row": 57, "column": 32}, "end_point": {"row": 57, "column": 39}}, {"id": 124, "type": "primitive_type", "text": "float", "parent": 123, "children": [], "start_point": {"row": 57, "column": 32}, "end_point": {"row": 57, "column": 37}}, {"id": 125, "type": "identifier", "text": "s", "parent": 123, "children": [], "start_point": {"row": 57, "column": 38}, "end_point": {"row": 57, "column": 39}}, {"id": 126, "type": "parameter_declaration", "text": "const Vec3* normal", "parent": 119, "children": [127, 128], "start_point": {"row": 57, "column": 41}, "end_point": {"row": 57, "column": 59}}, {"id": 127, "type": "type_identifier", "text": "Vec3", "parent": 126, "children": [], "start_point": {"row": 57, "column": 47}, "end_point": {"row": 57, "column": 51}}, {"id": 128, "type": "pointer_declarator", "text": "* normal", "parent": 126, "children": [129, 130], "start_point": {"row": 57, "column": 51}, "end_point": {"row": 57, "column": 59}}, {"id": 129, "type": "*", "text": "*", "parent": 128, "children": [], "start_point": {"row": 57, "column": 51}, "end_point": {"row": 57, "column": 52}}, {"id": 130, "type": "identifier", "text": "normal", "parent": 128, "children": [], "start_point": {"row": 57, "column": 53}, "end_point": {"row": 57, "column": 59}}, {"id": 131, "type": "parameter_declaration", "text": "int first_band", "parent": 119, "children": [132, 133], "start_point": {"row": 57, "column": 61}, "end_point": {"row": 57, "column": 75}}, {"id": 132, "type": "primitive_type", "text": "int", "parent": 131, "children": [], "start_point": {"row": 57, "column": 61}, "end_point": {"row": 57, "column": 64}}, {"id": 133, "type": "identifier", "text": "first_band", "parent": 131, "children": [], "start_point": {"row": 57, "column": 65}, "end_point": {"row": 57, "column": 75}}, {"id": 134, "type": "parameter_declaration", "text": "int nr_bands", "parent": 119, "children": [135, 136], "start_point": {"row": 57, "column": 77}, "end_point": {"row": 57, "column": 89}}, {"id": 135, "type": "primitive_type", "text": "int", "parent": 134, "children": [], "start_point": {"row": 57, "column": 77}, "end_point": {"row": 57, "column": 80}}, {"id": 136, "type": "identifier", "text": "nr_bands", "parent": 134, "children": [], "start_point": {"row": 57, "column": 81}, "end_point": {"row": 57, "column": 89}}, {"id": 137, "type": "parameter_declaration", "text": "stdext::span<const float> w", "parent": 119, "children": [138, 139, 144], "start_point": {"row": 57, "column": 91}, "end_point": {"row": 57, "column": 118}}, {"id": 138, "type": "type_identifier", "text": "stdext", "parent": 137, "children": [], "start_point": {"row": 57, "column": 91}, "end_point": {"row": 57, "column": 97}}, {"id": 139, "type": "ERROR", "text": "::span<const float>", "parent": 137, "children": [140, 141, 142, 143], "start_point": {"row": 57, "column": 97}, "end_point": {"row": 57, "column": 116}}, {"id": 140, "type": "identifier", "text": "span", "parent": 139, "children": [], "start_point": {"row": 57, "column": 99}, "end_point": {"row": 57, "column": 103}}, {"id": 141, "type": "<", "text": "<", "parent": 139, "children": [], "start_point": {"row": 57, "column": 103}, "end_point": {"row": 57, "column": 104}}, {"id": 142, "type": "primitive_type", "text": "float", "parent": 139, "children": [], "start_point": {"row": 57, "column": 110}, "end_point": {"row": 57, "column": 115}}, {"id": 143, "type": ">", "text": ">", "parent": 139, "children": [], "start_point": {"row": 57, "column": 115}, "end_point": {"row": 57, "column": 116}}, {"id": 144, "type": "identifier", "text": "w", "parent": 137, "children": [], "start_point": {"row": 57, "column": 117}, "end_point": {"row": 57, "column": 118}}, {"id": 145, "type": "ERROR", "text": "float dx(const Vec3& p) const noexcept", "parent": 24, "children": [146, 147], "start_point": {"row": 59, "column": 2}, "end_point": {"row": 59, "column": 40}}, {"id": 146, "type": "primitive_type", "text": "float", "parent": 145, "children": [], "start_point": {"row": 59, "column": 2}, "end_point": {"row": 59, "column": 7}}, {"id": 147, "type": "function_declarator", "text": "dx(const Vec3& p) const noexcept", "parent": 145, "children": [148, 149, 153], "start_point": {"row": 59, "column": 8}, "end_point": {"row": 59, "column": 40}}, {"id": 148, "type": "identifier", "text": "dx", "parent": 147, "children": [], "start_point": {"row": 59, "column": 8}, "end_point": {"row": 59, "column": 10}}, {"id": 149, "type": "parameter_list", "text": "(const Vec3& p)", "parent": 147, "children": [150], "start_point": {"row": 59, "column": 10}, "end_point": {"row": 59, "column": 25}}, {"id": 150, "type": "parameter_declaration", "text": "const Vec3& p", "parent": 149, "children": [151, 152], "start_point": {"row": 59, "column": 11}, "end_point": {"row": 59, "column": 24}}, {"id": 151, "type": "type_identifier", "text": "Vec3", "parent": 150, "children": [], "start_point": {"row": 59, "column": 17}, "end_point": {"row": 59, "column": 21}}, {"id": 152, "type": "identifier", "text": "p", "parent": 150, "children": [], "start_point": {"row": 59, "column": 23}, "end_point": {"row": 59, "column": 24}}, {"id": 153, "type": "identifier", "text": "noexcept", "parent": 147, "children": [], "start_point": {"row": 59, "column": 32}, "end_point": {"row": 59, "column": 40}}, {"id": 154, "type": "ERROR", "text": "float dy(const Vec3& p) const noexcept", "parent": 24, "children": [155, 156], "start_point": {"row": 60, "column": 2}, "end_point": {"row": 60, "column": 40}}, {"id": 155, "type": "primitive_type", "text": "float", "parent": 154, "children": [], "start_point": {"row": 60, "column": 2}, "end_point": {"row": 60, "column": 7}}, {"id": 156, "type": "function_declarator", "text": "dy(const Vec3& p) const noexcept", "parent": 154, "children": [157, 158, 162], "start_point": {"row": 60, "column": 8}, "end_point": {"row": 60, "column": 40}}, {"id": 157, "type": "identifier", "text": "dy", "parent": 156, "children": [], "start_point": {"row": 60, "column": 8}, "end_point": {"row": 60, "column": 10}}, {"id": 158, "type": "parameter_list", "text": "(const Vec3& p)", "parent": 156, "children": [159], "start_point": {"row": 60, "column": 10}, "end_point": {"row": 60, "column": 25}}, {"id": 159, "type": "parameter_declaration", "text": "const Vec3& p", "parent": 158, "children": [160, 161], "start_point": {"row": 60, "column": 11}, "end_point": {"row": 60, "column": 24}}, {"id": 160, "type": "type_identifier", "text": "Vec3", "parent": 159, "children": [], "start_point": {"row": 60, "column": 17}, "end_point": {"row": 60, "column": 21}}, {"id": 161, "type": "identifier", "text": "p", "parent": 159, "children": [], "start_point": {"row": 60, "column": 23}, "end_point": {"row": 60, "column": 24}}, {"id": 162, "type": "identifier", "text": "noexcept", "parent": 156, "children": [], "start_point": {"row": 60, "column": 32}, "end_point": {"row": 60, "column": 40}}, {"id": 163, "type": "ERROR", "text": "float dz(const Vec3& p) const noexcept", "parent": 24, "children": [164, 165], "start_point": {"row": 61, "column": 2}, "end_point": {"row": 61, "column": 40}}, {"id": 164, "type": "primitive_type", "text": "float", "parent": 163, "children": [], "start_point": {"row": 61, "column": 2}, "end_point": {"row": 61, "column": 7}}, {"id": 165, "type": "function_declarator", "text": "dz(const Vec3& p) const noexcept", "parent": 163, "children": [166, 167, 171], "start_point": {"row": 61, "column": 8}, "end_point": {"row": 61, "column": 40}}, {"id": 166, "type": "identifier", "text": "dz", "parent": 165, "children": [], "start_point": {"row": 61, "column": 8}, "end_point": {"row": 61, "column": 10}}, {"id": 167, "type": "parameter_list", "text": "(const Vec3& p)", "parent": 165, "children": [168], "start_point": {"row": 61, "column": 10}, "end_point": {"row": 61, "column": 25}}, {"id": 168, "type": "parameter_declaration", "text": "const Vec3& p", "parent": 167, "children": [169, 170], "start_point": {"row": 61, "column": 11}, "end_point": {"row": 61, "column": 24}}, {"id": 169, "type": "type_identifier", "text": "Vec3", "parent": 168, "children": [], "start_point": {"row": 61, "column": 17}, "end_point": {"row": 61, "column": 21}}, {"id": 170, "type": "identifier", "text": "p", "parent": 168, "children": [], "start_point": {"row": 61, "column": 23}, "end_point": {"row": 61, "column": 24}}, {"id": 171, "type": "identifier", "text": "noexcept", "parent": 165, "children": [], "start_point": {"row": 61, "column": 32}, "end_point": {"row": 61, "column": 40}}, {"id": 172, "type": "ERROR", "text": "void dxDyDz(const Vec3& p, Mat33& final) const noexcept", "parent": 24, "children": [173, 174], "start_point": {"row": 62, "column": 2}, "end_point": {"row": 62, "column": 57}}, {"id": 173, "type": "primitive_type", "text": "void", "parent": 172, "children": [], "start_point": {"row": 62, "column": 2}, "end_point": {"row": 62, "column": 6}}, {"id": 174, "type": "function_declarator", "text": "dxDyDz(const Vec3& p, Mat33& final) const noexcept", "parent": 172, "children": [175, 176, 183], "start_point": {"row": 62, "column": 7}, "end_point": {"row": 62, "column": 57}}, {"id": 175, "type": "identifier", "text": "dxDyDz", "parent": 174, "children": [], "start_point": {"row": 62, "column": 7}, "end_point": {"row": 62, "column": 13}}, {"id": 176, "type": "parameter_list", "text": "(const Vec3& p, Mat33& final)", "parent": 174, "children": [177, 180], "start_point": {"row": 62, "column": 13}, "end_point": {"row": 62, "column": 42}}, {"id": 177, "type": "parameter_declaration", "text": "const Vec3& p", "parent": 176, "children": [178, 179], "start_point": {"row": 62, "column": 14}, "end_point": {"row": 62, "column": 27}}, {"id": 178, "type": "type_identifier", "text": "Vec3", "parent": 177, "children": [], "start_point": {"row": 62, "column": 20}, "end_point": {"row": 62, "column": 24}}, {"id": 179, "type": "identifier", "text": "p", "parent": 177, "children": [], "start_point": {"row": 62, "column": 26}, "end_point": {"row": 62, "column": 27}}, {"id": 180, "type": "parameter_declaration", "text": "Mat33& final", "parent": 176, "children": [181, 182], "start_point": {"row": 62, "column": 29}, "end_point": {"row": 62, "column": 41}}, {"id": 181, "type": "type_identifier", "text": "Mat33", "parent": 180, "children": [], "start_point": {"row": 62, "column": 29}, "end_point": {"row": 62, "column": 34}}, {"id": 182, "type": "identifier", "text": "final", "parent": 180, "children": [], "start_point": {"row": 62, "column": 36}, "end_point": {"row": 62, "column": 41}}, {"id": 183, "type": "identifier", "text": "noexcept", "parent": 174, "children": [], "start_point": {"row": 62, "column": 49}, "end_point": {"row": 62, "column": 57}}, {"id": 184, "type": "ERROR", "text": "Vec3 velocity(const Vec3& p) const noexcept", "parent": 24, "children": [185, 186], "start_point": {"row": 64, "column": 2}, "end_point": {"row": 64, "column": 45}}, {"id": 185, "type": "type_identifier", "text": "Vec3", "parent": 184, "children": [], "start_point": {"row": 64, "column": 2}, "end_point": {"row": 64, "column": 6}}, {"id": 186, "type": "function_declarator", "text": "velocity(const Vec3& p) const noexcept", "parent": 184, "children": [187, 188, 192], "start_point": {"row": 64, "column": 7}, "end_point": {"row": 64, "column": 45}}, {"id": 187, "type": "identifier", "text": "velocity", "parent": 186, "children": [], "start_point": {"row": 64, "column": 7}, "end_point": {"row": 64, "column": 15}}, {"id": 188, "type": "parameter_list", "text": "(const Vec3& p)", "parent": 186, "children": [189], "start_point": {"row": 64, "column": 15}, "end_point": {"row": 64, "column": 30}}, {"id": 189, "type": "parameter_declaration", "text": "const Vec3& p", "parent": 188, "children": [190, 191], "start_point": {"row": 64, "column": 16}, "end_point": {"row": 64, "column": 29}}, {"id": 190, "type": "type_identifier", "text": "Vec3", "parent": 189, "children": [], "start_point": {"row": 64, "column": 22}, "end_point": {"row": 64, "column": 26}}, {"id": 191, "type": "identifier", "text": "p", "parent": 189, "children": [], "start_point": {"row": 64, "column": 28}, "end_point": {"row": 64, "column": 29}}, {"id": 192, "type": "identifier", "text": "noexcept", "parent": 186, "children": [], "start_point": {"row": 64, "column": 37}, "end_point": {"row": 64, "column": 45}}, {"id": 193, "type": "labeled_statement", "text": "public: // Properties\n\t\tfloat minValue() const noexcept { return _min; }", "parent": 24, "children": [194], "start_point": {"row": 66, "column": 1}, "end_point": {"row": 67, "column": 50}}, {"id": 194, "type": "ERROR", "text": "float minValue() const noexcept", "parent": 193, "children": [195, 196], "start_point": {"row": 67, "column": 2}, "end_point": {"row": 67, "column": 33}}, {"id": 195, "type": "primitive_type", "text": "float", "parent": 194, "children": [], "start_point": {"row": 67, "column": 2}, "end_point": {"row": 67, "column": 7}}, {"id": 196, "type": "function_declarator", "text": "minValue() const noexcept", "parent": 194, "children": [197, 198, 199], "start_point": {"row": 67, "column": 8}, "end_point": {"row": 67, "column": 33}}, {"id": 197, "type": "identifier", "text": "minValue", "parent": 196, "children": [], "start_point": {"row": 67, "column": 8}, "end_point": {"row": 67, "column": 16}}, {"id": 198, "type": "parameter_list", "text": "()", "parent": 196, "children": [], "start_point": {"row": 67, "column": 16}, "end_point": {"row": 67, "column": 18}}, {"id": 199, "type": "identifier", "text": "noexcept", "parent": 196, "children": [], "start_point": {"row": 67, "column": 25}, "end_point": {"row": 67, "column": 33}}, {"id": 200, "type": "return_statement", "text": "return _min;", "parent": 193, "children": [201], "start_point": {"row": 67, "column": 36}, "end_point": {"row": 67, "column": 48}}, {"id": 201, "type": "identifier", "text": "_min", "parent": 200, "children": [], "start_point": {"row": 67, "column": 43}, "end_point": {"row": 67, "column": 47}}, {"id": 202, "type": "ERROR", "text": "float maxValue() const noexcept", "parent": 24, "children": [203, 204, 207], "start_point": {"row": 68, "column": 2}, "end_point": {"row": 68, "column": 33}}, {"id": 203, "type": "primitive_type", "text": "float", "parent": 202, "children": [], "start_point": {"row": 68, "column": 2}, "end_point": {"row": 68, "column": 7}}, {"id": 204, "type": "function_declarator", "text": "maxValue()", "parent": 202, "children": [205, 206], "start_point": {"row": 68, "column": 8}, "end_point": {"row": 68, "column": 18}}, {"id": 205, "type": "identifier", "text": "maxValue", "parent": 204, "children": [], "start_point": {"row": 68, "column": 8}, "end_point": {"row": 68, "column": 16}}, {"id": 206, "type": "parameter_list", "text": "()", "parent": 204, "children": [], "start_point": {"row": 68, "column": 16}, "end_point": {"row": 68, "column": 18}}, {"id": 207, "type": "type_identifier", "text": "noexcept", "parent": 202, "children": [], "start_point": {"row": 68, "column": 25}, "end_point": {"row": 68, "column": 33}}, {"id": 208, "type": "return_statement", "text": "return _max;", "parent": 24, "children": [209], "start_point": {"row": 68, "column": 36}, "end_point": {"row": 68, "column": 48}}, {"id": 209, "type": "identifier", "text": "_max", "parent": 208, "children": [], "start_point": {"row": 68, "column": 43}, "end_point": {"row": 68, "column": 47}}, {"id": 210, "type": "labeled_statement", "text": "public: // Access\n\t\tint getNoiseTileSize() const noexcept { return N; }", "parent": 24, "children": [211], "start_point": {"row": 70, "column": 1}, "end_point": {"row": 71, "column": 53}}, {"id": 211, "type": "ERROR", "text": "int getNoiseTileSize() const noexcept", "parent": 210, "children": [212, 213], "start_point": {"row": 71, "column": 2}, "end_point": {"row": 71, "column": 39}}, {"id": 212, "type": "primitive_type", "text": "int", "parent": 211, "children": [], "start_point": {"row": 71, "column": 2}, "end_point": {"row": 71, "column": 5}}, {"id": 213, "type": "function_declarator", "text": "getNoiseTileSize() const noexcept", "parent": 211, "children": [214, 215, 216], "start_point": {"row": 71, "column": 6}, "end_point": {"row": 71, "column": 39}}, {"id": 214, "type": "identifier", "text": "getNoiseTileSize", "parent": 213, "children": [], "start_point": {"row": 71, "column": 6}, "end_point": {"row": 71, "column": 22}}, {"id": 215, "type": "parameter_list", "text": "()", "parent": 213, "children": [], "start_point": {"row": 71, "column": 22}, "end_point": {"row": 71, "column": 24}}, {"id": 216, "type": "identifier", "text": "noexcept", "parent": 213, "children": [], "start_point": {"row": 71, "column": 31}, "end_point": {"row": 71, "column": 39}}, {"id": 217, "type": "return_statement", "text": "return N;", "parent": 210, "children": [218], "start_point": {"row": 71, "column": 42}, "end_point": {"row": 71, "column": 51}}, {"id": 218, "type": "identifier", "text": "N", "parent": 217, "children": [], "start_point": {"row": 71, "column": 49}, "end_point": {"row": 71, "column": 50}}, {"id": 219, "type": "function_definition", "text": "const float* getNoiseTileData() const noexcept { return _noiseTileData.data(); }", "parent": 24, "children": [220, 221], "start_point": {"row": 72, "column": 2}, "end_point": {"row": 72, "column": 82}}, {"id": 220, "type": "primitive_type", "text": "float", "parent": 219, "children": [], "start_point": {"row": 72, "column": 8}, "end_point": {"row": 72, "column": 13}}, {"id": 221, "type": "pointer_declarator", "text": "* getNoiseTileData() const noexcept", "parent": 219, "children": [222, 223], "start_point": {"row": 72, "column": 13}, "end_point": {"row": 72, "column": 48}}, {"id": 222, "type": "*", "text": "*", "parent": 221, "children": [], "start_point": {"row": 72, "column": 13}, "end_point": {"row": 72, "column": 14}}, {"id": 223, "type": "function_declarator", "text": "getNoiseTileData() const noexcept", "parent": 221, "children": [224, 225, 226], "start_point": {"row": 72, "column": 15}, "end_point": {"row": 72, "column": 48}}, {"id": 224, "type": "identifier", "text": "getNoiseTileData", "parent": 223, "children": [], "start_point": {"row": 72, "column": 15}, "end_point": {"row": 72, "column": 31}}, {"id": 225, "type": "parameter_list", "text": "()", "parent": 223, "children": [], "start_point": {"row": 72, "column": 31}, "end_point": {"row": 72, "column": 33}}, {"id": 226, "type": "identifier", "text": "noexcept", "parent": 223, "children": [], "start_point": {"row": 72, "column": 40}, "end_point": {"row": 72, "column": 48}}, {"id": 227, "type": "return_statement", "text": "return _noiseTileData.data();", "parent": 219, "children": [228], "start_point": {"row": 72, "column": 51}, "end_point": {"row": 72, "column": 80}}, {"id": 228, "type": "call_expression", "text": "_noiseTileData.data()", "parent": 227, "children": [229, 232], "start_point": {"row": 72, "column": 58}, "end_point": {"row": 72, "column": 79}}, {"id": 229, "type": "field_expression", "text": "_noiseTileData.data", "parent": 228, "children": [230, 231], "start_point": {"row": 72, "column": 58}, "end_point": {"row": 72, "column": 77}}, {"id": 230, "type": "identifier", "text": "_noiseTileData", "parent": 229, "children": [], "start_point": {"row": 72, "column": 58}, "end_point": {"row": 72, "column": 72}}, {"id": 231, "type": "field_identifier", "text": "data", "parent": 229, "children": [], "start_point": {"row": 72, "column": 73}, "end_point": {"row": 72, "column": 77}}, {"id": 232, "type": "argument_list", "text": "()", "parent": 228, "children": [], "start_point": {"row": 72, "column": 77}, "end_point": {"row": 72, "column": 79}}, {"id": 233, "type": "labeled_statement", "text": "protected: // Helper methods\n\t\t//! Special constructor taking an initialized set of random numbers\n\t\tWaveletNoise(stdext::span<const float> noise_data_base);", "parent": 24, "children": [234], "start_point": {"row": 74, "column": 1}, "end_point": {"row": 76, "column": 58}}, {"id": 234, "type": "labeled_statement", "text": "WaveletNoise(stdext::span<const float> noise_data_base);", "parent": 233, "children": [235, 236], "start_point": {"row": 76, "column": 2}, "end_point": {"row": 76, "column": 58}}, {"id": 235, "type": "statement_identifier", "text": "WaveletNoise", "parent": 234, "children": [], "start_point": {"row": 76, "column": 2}, "end_point": {"row": 76, "column": 14}}, {"id": 236, "type": "ERROR", "text": "(stdext:", "parent": 234, "children": [237], "start_point": {"row": 76, "column": 14}, "end_point": {"row": 76, "column": 22}}, {"id": 237, "type": "type_descriptor", "text": "stdext", "parent": 236, "children": [238], "start_point": {"row": 76, "column": 15}, "end_point": {"row": 76, "column": 21}}, {"id": 238, "type": "type_identifier", "text": "stdext", "parent": 237, "children": [], "start_point": {"row": 76, "column": 15}, "end_point": {"row": 76, "column": 21}}, {"id": 239, "type": "binary_expression", "text": "span<const float> noise_data_base", "parent": 234, "children": [240, 243, 245, 246], "start_point": {"row": 76, "column": 23}, "end_point": {"row": 76, "column": 56}}, {"id": 240, "type": "binary_expression", "text": "span<const", "parent": 239, "children": [241, 242], "start_point": {"row": 76, "column": 23}, "end_point": {"row": 76, "column": 33}}, {"id": 241, "type": "identifier", "text": "span", "parent": 240, "children": [], "start_point": {"row": 76, "column": 23}, "end_point": {"row": 76, "column": 27}}, {"id": 242, "type": "<", "text": "<", "parent": 240, "children": [], "start_point": {"row": 76, "column": 27}, "end_point": {"row": 76, "column": 28}}, {"id": 243, "type": "ERROR", "text": "float", "parent": 239, "children": [244], "start_point": {"row": 76, "column": 34}, "end_point": {"row": 76, "column": 39}}, {"id": 244, "type": "identifier", "text": "float", "parent": 243, "children": [], "start_point": {"row": 76, "column": 34}, "end_point": {"row": 76, "column": 39}}, {"id": 245, "type": ">", "text": ">", "parent": 239, "children": [], "start_point": {"row": 76, "column": 39}, "end_point": {"row": 76, "column": 40}}, {"id": 246, "type": "identifier", "text": "noise_data_base", "parent": 239, "children": [], "start_point": {"row": 76, "column": 41}, "end_point": {"row": 76, "column": 56}}, {"id": 247, "type": "declaration", "text": "void initializeNoise(stdext::span<const float> noise_data_base);", "parent": 24, "children": [248, 249], "start_point": {"row": 79, "column": 2}, "end_point": {"row": 79, "column": 66}}, {"id": 248, "type": "primitive_type", "text": "void", "parent": 247, "children": [], "start_point": {"row": 79, "column": 2}, "end_point": {"row": 79, "column": 6}}, {"id": 249, "type": "function_declarator", "text": "initializeNoise(stdext::span<const float> noise_data_base)", "parent": 247, "children": [250, 251], "start_point": {"row": 79, "column": 7}, "end_point": {"row": 79, "column": 65}}, {"id": 250, "type": "identifier", "text": "initializeNoise", "parent": 249, "children": [], "start_point": {"row": 79, "column": 7}, "end_point": {"row": 79, "column": 22}}, {"id": 251, "type": "parameter_list", "text": "(stdext::span<const float> noise_data_base)", "parent": 249, "children": [252, 257], "start_point": {"row": 79, "column": 22}, "end_point": {"row": 79, "column": 65}}, {"id": 252, "type": "ERROR", "text": "stdext::span<", "parent": 251, "children": [253, 256], "start_point": {"row": 79, "column": 23}, "end_point": {"row": 79, "column": 36}}, {"id": 253, "type": "parameter_declaration", "text": "stdext::span", "parent": 252, "children": [254, 255], "start_point": {"row": 79, "column": 23}, "end_point": {"row": 79, "column": 35}}, {"id": 254, "type": "type_identifier", "text": "stdext", "parent": 253, "children": [], "start_point": {"row": 79, "column": 23}, "end_point": {"row": 79, "column": 29}}, {"id": 255, "type": "identifier", "text": "span", "parent": 253, "children": [], "start_point": {"row": 79, "column": 31}, "end_point": {"row": 79, "column": 35}}, {"id": 256, "type": "<", "text": "<", "parent": 252, "children": [], "start_point": {"row": 79, "column": 35}, "end_point": {"row": 79, "column": 36}}, {"id": 257, "type": "parameter_declaration", "text": "const float> noise_data_base", "parent": 251, "children": [258, 259, 261], "start_point": {"row": 79, "column": 36}, "end_point": {"row": 79, "column": 64}}, {"id": 258, "type": "primitive_type", "text": "float", "parent": 257, "children": [], "start_point": {"row": 79, "column": 42}, "end_point": {"row": 79, "column": 47}}, {"id": 259, "type": "ERROR", "text": ">", "parent": 257, "children": [260], "start_point": {"row": 79, "column": 47}, "end_point": {"row": 79, "column": 48}}, {"id": 260, "type": ">", "text": ">", "parent": 259, "children": [], "start_point": {"row": 79, "column": 47}, "end_point": {"row": 79, "column": 48}}, {"id": 261, "type": "identifier", "text": "noise_data_base", "parent": 257, "children": [], "start_point": {"row": 79, "column": 49}, "end_point": {"row": 79, "column": 64}}, {"id": 262, "type": "labeled_statement", "text": "private:\n\t\t//! Noise data\n\t\tstd::vector<float> _noiseTileData;", "parent": 24, "children": [263], "start_point": {"row": 81, "column": 1}, "end_point": {"row": 83, "column": 36}}, {"id": 263, "type": "labeled_statement", "text": "std::vector<float> _noiseTileData;", "parent": 262, "children": [264], "start_point": {"row": 83, "column": 2}, "end_point": {"row": 83, "column": 36}}, {"id": 264, "type": "statement_identifier", "text": "std", "parent": 263, "children": [], "start_point": {"row": 83, "column": 2}, "end_point": {"row": 83, "column": 5}}, {"id": 265, "type": "binary_expression", "text": "vector<float> _noiseTileData", "parent": 263, "children": [266, 270, 271], "start_point": {"row": 83, "column": 7}, "end_point": {"row": 83, "column": 35}}, {"id": 266, "type": "binary_expression", "text": "vector<float", "parent": 265, "children": [267, 268, 269], "start_point": {"row": 83, "column": 7}, "end_point": {"row": 83, "column": 19}}, {"id": 267, "type": "identifier", "text": "vector", "parent": 266, "children": [], "start_point": {"row": 83, "column": 7}, "end_point": {"row": 83, "column": 13}}, {"id": 268, "type": "<", "text": "<", "parent": 266, "children": [], "start_point": {"row": 83, "column": 13}, "end_point": {"row": 83, "column": 14}}, {"id": 269, "type": "identifier", "text": "float", "parent": 266, "children": [], "start_point": {"row": 83, "column": 14}, "end_point": {"row": 83, "column": 19}}, {"id": 270, "type": ">", "text": ">", "parent": 265, "children": [], "start_point": {"row": 83, "column": 19}, "end_point": {"row": 83, "column": 20}}, {"id": 271, "type": "identifier", "text": "_noiseTileData", "parent": 265, "children": [], "start_point": {"row": 83, "column": 21}, "end_point": {"row": 83, "column": 35}}, {"id": 272, "type": "declaration", "text": "float _min;", "parent": 24, "children": [273, 274], "start_point": {"row": 85, "column": 2}, "end_point": {"row": 85, "column": 13}}, {"id": 273, "type": "primitive_type", "text": "float", "parent": 272, "children": [], "start_point": {"row": 85, "column": 2}, "end_point": {"row": 85, "column": 7}}, {"id": 274, "type": "identifier", "text": "_min", "parent": 272, "children": [], "start_point": {"row": 85, "column": 8}, "end_point": {"row": 85, "column": 12}}, {"id": 275, "type": "declaration", "text": "float _max;", "parent": 24, "children": [276, 277], "start_point": {"row": 86, "column": 2}, "end_point": {"row": 86, "column": 13}}, {"id": 276, "type": "primitive_type", "text": "float", "parent": 275, "children": [], "start_point": {"row": 86, "column": 2}, "end_point": {"row": 86, "column": 7}}, {"id": 277, "type": "identifier", "text": "_max", "parent": 275, "children": [], "start_point": {"row": 86, "column": 8}, "end_point": {"row": 86, "column": 12}}, {"id": 278, "type": "function_definition", "text": "namespace Vcl { namespace Util {\n#ifndef VCL_UTIL_WAVELETNOISE_INST\n\textern template class WaveletNoise<32>;\n\textern template class WaveletNoise<64>;\n\textern template class WaveletNoise<128>;\n#endif // VCL_UTIL_WAVELETNOISE_INST\n}}", "parent": null, "children": [279, 280], "start_point": {"row": 90, "column": 0}, "end_point": {"row": 96, "column": 2}}, {"id": 279, "type": "type_identifier", "text": "namespace", "parent": 278, "children": [], "start_point": {"row": 90, "column": 0}, "end_point": {"row": 90, "column": 9}}, {"id": 280, "type": "identifier", "text": "Vcl", "parent": 278, "children": [], "start_point": {"row": 90, "column": 10}, "end_point": {"row": 90, "column": 13}}, {"id": 281, "type": "function_definition", "text": "namespace Util {\n#ifndef VCL_UTIL_WAVELETNOISE_INST\n\textern template class WaveletNoise<32>;\n\textern template class WaveletNoise<64>;\n\textern template class WaveletNoise<128>;\n#endif // VCL_UTIL_WAVELETNOISE_INST\n}", "parent": 278, "children": [282, 283], "start_point": {"row": 90, "column": 16}, "end_point": {"row": 96, "column": 1}}, {"id": 282, "type": "type_identifier", "text": "namespace", "parent": 281, "children": [], "start_point": {"row": 90, "column": 16}, "end_point": {"row": 90, "column": 25}}, {"id": 283, "type": "identifier", "text": "Util", "parent": 281, "children": [], "start_point": {"row": 90, "column": 26}, "end_point": {"row": 90, "column": 30}}, {"id": 284, "type": "preproc_ifdef", "text": "#ifndef VCL_UTIL_WAVELETNOISE_INST\n\textern template class WaveletNoise<32>;\n\textern template class WaveletNoise<64>;\n\textern template class WaveletNoise<128>;\n#endif", "parent": 281, "children": [285, 286, 287, 298, 309, 320], "start_point": {"row": 91, "column": 0}, "end_point": {"row": 95, "column": 6}}, {"id": 285, "type": "#ifndef", "text": "#ifndef", "parent": 284, "children": [], "start_point": {"row": 91, "column": 0}, "end_point": {"row": 91, "column": 7}}, {"id": 286, "type": "identifier", "text": "VCL_UTIL_WAVELETNOISE_INST", "parent": 284, "children": [], "start_point": {"row": 91, "column": 8}, "end_point": {"row": 91, "column": 34}}, {"id": 287, "type": "declaration", "text": "extern template class", "parent": 284, "children": [288, 290], "start_point": {"row": 92, "column": 1}, "end_point": {"row": 92, "column": 22}}, {"id": 288, "type": "storage_class_specifier", "text": "extern", "parent": 287, "children": [289], "start_point": {"row": 92, "column": 1}, "end_point": {"row": 92, "column": 7}}, {"id": 289, "type": "extern", "text": "extern", "parent": 288, "children": [], "start_point": {"row": 92, "column": 1}, "end_point": {"row": 92, "column": 7}}, {"id": 290, "type": "type_identifier", "text": "template", "parent": 287, "children": [], "start_point": {"row": 92, "column": 8}, "end_point": {"row": 92, "column": 16}}, {"id": 291, "type": "binary_expression", "text": "WaveletNoise<32>", "parent": 284, "children": [292, 296, 297], "start_point": {"row": 92, "column": 23}, "end_point": {"row": 92, "column": 39}}, {"id": 292, "type": "binary_expression", "text": "WaveletNoise<32", "parent": 291, "children": [293, 294, 295], "start_point": {"row": 92, "column": 23}, "end_point": {"row": 92, "column": 38}}, {"id": 293, "type": "identifier", "text": "WaveletNoise", "parent": 292, "children": [], "start_point": {"row": 92, "column": 23}, "end_point": {"row": 92, "column": 35}}, {"id": 294, "type": "<", "text": "<", "parent": 292, "children": [], "start_point": {"row": 92, "column": 35}, "end_point": {"row": 92, "column": 36}}, {"id": 295, "type": "number_literal", "text": "32", "parent": 292, "children": [], "start_point": {"row": 92, "column": 36}, "end_point": {"row": 92, "column": 38}}, {"id": 296, "type": ">", "text": ">", "parent": 291, "children": [], "start_point": {"row": 92, "column": 38}, "end_point": {"row": 92, "column": 39}}, {"id": 297, "type": "identifier", "text": "", "parent": 291, "children": [], "start_point": {"row": 92, "column": 39}, "end_point": {"row": 92, "column": 39}}, {"id": 298, "type": "declaration", "text": "extern template class", "parent": 284, "children": [299, 301], "start_point": {"row": 93, "column": 1}, "end_point": {"row": 93, "column": 22}}, {"id": 299, "type": "storage_class_specifier", "text": "extern", "parent": 298, "children": [300], "start_point": {"row": 93, "column": 1}, "end_point": {"row": 93, "column": 7}}, {"id": 300, "type": "extern", "text": "extern", "parent": 299, "children": [], "start_point": {"row": 93, "column": 1}, "end_point": {"row": 93, "column": 7}}, {"id": 301, "type": "type_identifier", "text": "template", "parent": 298, "children": [], "start_point": {"row": 93, "column": 8}, "end_point": {"row": 93, "column": 16}}, {"id": 302, "type": "binary_expression", "text": "WaveletNoise<64>", "parent": 284, "children": [303, 307, 308], "start_point": {"row": 93, "column": 23}, "end_point": {"row": 93, "column": 39}}, {"id": 303, "type": "binary_expression", "text": "WaveletNoise<64", "parent": 302, "children": [304, 305, 306], "start_point": {"row": 93, "column": 23}, "end_point": {"row": 93, "column": 38}}, {"id": 304, "type": "identifier", "text": "WaveletNoise", "parent": 303, "children": [], "start_point": {"row": 93, "column": 23}, "end_point": {"row": 93, "column": 35}}, {"id": 305, "type": "<", "text": "<", "parent": 303, "children": [], "start_point": {"row": 93, "column": 35}, "end_point": {"row": 93, "column": 36}}, {"id": 306, "type": "number_literal", "text": "64", "parent": 303, "children": [], "start_point": {"row": 93, "column": 36}, "end_point": {"row": 93, "column": 38}}, {"id": 307, "type": ">", "text": ">", "parent": 302, "children": [], "start_point": {"row": 93, "column": 38}, "end_point": {"row": 93, "column": 39}}, {"id": 308, "type": "identifier", "text": "", "parent": 302, "children": [], "start_point": {"row": 93, "column": 39}, "end_point": {"row": 93, "column": 39}}, {"id": 309, "type": "declaration", "text": "extern template class", "parent": 284, "children": [310, 312], "start_point": {"row": 94, "column": 1}, "end_point": {"row": 94, "column": 22}}, {"id": 310, "type": "storage_class_specifier", "text": "extern", "parent": 309, "children": [311], "start_point": {"row": 94, "column": 1}, "end_point": {"row": 94, "column": 7}}, {"id": 311, "type": "extern", "text": "extern", "parent": 310, "children": [], "start_point": {"row": 94, "column": 1}, "end_point": {"row": 94, "column": 7}}, {"id": 312, "type": "type_identifier", "text": "template", "parent": 309, "children": [], "start_point": {"row": 94, "column": 8}, "end_point": {"row": 94, "column": 16}}, {"id": 313, "type": "binary_expression", "text": "WaveletNoise<128>", "parent": 284, "children": [314, 318, 319], "start_point": {"row": 94, "column": 23}, "end_point": {"row": 94, "column": 40}}, {"id": 314, "type": "binary_expression", "text": "WaveletNoise<128", "parent": 313, "children": [315, 316, 317], "start_point": {"row": 94, "column": 23}, "end_point": {"row": 94, "column": 39}}, {"id": 315, "type": "identifier", "text": "WaveletNoise", "parent": 314, "children": [], "start_point": {"row": 94, "column": 23}, "end_point": {"row": 94, "column": 35}}, {"id": 316, "type": "<", "text": "<", "parent": 314, "children": [], "start_point": {"row": 94, "column": 35}, "end_point": {"row": 94, "column": 36}}, {"id": 317, "type": "number_literal", "text": "128", "parent": 314, "children": [], "start_point": {"row": 94, "column": 36}, "end_point": {"row": 94, "column": 39}}, {"id": 318, "type": ">", "text": ">", "parent": 313, "children": [], "start_point": {"row": 94, "column": 39}, "end_point": {"row": 94, "column": 40}}, {"id": 319, "type": "identifier", "text": "", "parent": 313, "children": [], "start_point": {"row": 94, "column": 40}, "end_point": {"row": 94, "column": 40}}, {"id": 320, "type": "#endif", "text": "#endif", "parent": 284, "children": [], "start_point": {"row": 95, "column": 0}, "end_point": {"row": 95, "column": 6}}]}, "node_categories": {"declarations": {"functions": [21, 24, 97, 106, 117, 147, 156, 165, 174, 186, 196, 204, 213, 219, 223, 249, 278, 281], "variables": [52, 100, 109, 112, 120, 123, 126, 131, 134, 137, 150, 159, 168, 177, 180, 189, 247, 253, 257, 272, 275, 287, 298, 309], "classes": [288, 299, 310], "imports": [3, 4, 6, 7, 9, 10, 12, 13, 15, 16, 18, 19], "modules": [], "enums": []}, "statements": {"expressions": [28, 29, 44, 45, 59, 63, 73, 91, 228, 229, 239, 240, 265, 266, 291, 292, 302, 303, 313, 314], "assignments": [], "loops": [], "conditionals": [22, 23, 25, 26, 30, 32, 34, 36, 39, 41, 43, 46, 48, 53, 55, 58, 60, 62, 64, 66, 74, 77, 78, 79, 81, 85, 87, 90, 92, 93, 98, 101, 102, 103, 107, 110, 111, 113, 114, 118, 121, 122, 125, 127, 130, 133, 136, 138, 140, 144, 148, 151, 152, 153, 157, 160, 161, 162, 166, 169, 170, 171, 175, 178, 179, 181, 182, 183, 185, 187, 190, 191, 192, 197, 199, 201, 205, 207, 209, 214, 216, 218, 224, 226, 230, 231, 235, 238, 241, 244, 246, 250, 254, 255, 261, 264, 267, 269, 271, 274, 277, 279, 280, 282, 283, 284, 285, 286, 290, 293, 297, 301, 304, 308, 312, 315, 319, 320], "returns": [200, 208, 217, 227], "exceptions": []}, "expressions": {"calls": [0], "literals": [5, 8, 11, 14, 17, 20, 49, 68, 70, 295, 306, 317], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [{"node_id": 21, "universal_type": "function", "name": "WaveletNoise", "text_snippet": "namespace Vcl { namespace Util {\n\t/*!\n\t *\tWavelet noise implementation by <NAME> and <NAME>\n\t */\n\tte"}, {"node_id": 24, "universal_type": "function", "name": "WaveletNoise", "text_snippet": "namespace Util {\n\t/*!\n\t *\tWavelet noise implementation by <NAME> and <NAME>\n\t */\n\ttemplate<int N>\n\tc"}, {"node_id": 97, "universal_type": "function", "name": "unknown", "text_snippet": "evaluate(const Vec3& p) const noexcept"}, {"node_id": 106, "universal_type": "function", "name": "unknown", "text_snippet": "evaluate(const Vec3& p, const Vec3& normal) const"}, {"node_id": 117, "universal_type": "function", "name": "first_band,", "text_snippet": "evaluate(const Vec3& p, float s, const Vec3* normal, int first_band, int nr_bands, stdext::span<cons"}, {"node_id": 147, "universal_type": "function", "name": "unknown", "text_snippet": "dx(const Vec3& p) const noexcept"}, {"node_id": 156, "universal_type": "function", "name": "unknown", "text_snippet": "dy(const Vec3& p) const noexcept"}, {"node_id": 165, "universal_type": "function", "name": "unknown", "text_snippet": "dz(const Vec3& p) const noexcept"}, {"node_id": 174, "universal_type": "function", "name": "unknown", "text_snippet": "dxDyDz(const Vec3& p, Mat33& final) const noexcept"}, {"node_id": 186, "universal_type": "function", "name": "unknown", "text_snippet": "velocity(const Vec3& p) const noexcept"}, {"node_id": 196, "universal_type": "function", "name": "unknown", "text_snippet": "minValue() const noexcept"}, {"node_id": 204, "universal_type": "function", "name": "unknown", "text_snippet": "maxValue()"}, {"node_id": 213, "universal_type": "function", "name": "unknown", "text_snippet": "getNoiseTileSize() const noexcept"}, {"node_id": 219, "universal_type": "function", "name": "unknown", "text_snippet": "const float* getNoiseTileData() const noexcept { return _noiseTileData.data(); }"}, {"node_id": 223, "universal_type": "function", "name": "unknown", "text_snippet": "getNoiseTileData() const noexcept"}, {"node_id": 249, "universal_type": "function", "name": "unknown", "text_snippet": "initializeNoise(stdext::span<const float> noise_data_base)"}, {"node_id": 278, "universal_type": "function", "name": "WaveletNoise<32>;", "text_snippet": "namespace Vcl { namespace Util {\n#ifndef VCL_UTIL_WAVELETNOISE_INST\n\textern template class WaveletNo"}, {"node_id": 281, "universal_type": "function", "name": "WaveletNoise<32>;", "text_snippet": "namespace Util {\n#ifndef VCL_UTIL_WAVELETNOISE_INST\n\textern template class WaveletNoise<32>;\n\textern"}], "class_declarations": [{"node_id": 288, "universal_type": "class", "name": "unknown", "text_snippet": "extern"}, {"node_id": 299, "universal_type": "class", "name": "unknown", "text_snippet": "extern"}, {"node_id": 310, "universal_type": "class", "name": "unknown", "text_snippet": "extern"}], "import_statements": [{"node_id": 3, "text": "#include <vcl/config/global.h>\n"}, {"node_id": 4, "text": "#include"}, {"node_id": 6, "text": "#include <array>\n"}, {"node_id": 7, "text": "#include"}, {"node_id": 9, "text": "#include <random>\n"}, {"node_id": 10, "text": "#include"}, {"node_id": 12, "text": "#include <vector>\n"}, {"node_id": 13, "text": "#include"}, {"node_id": 15, "text": "#include <vcl/core/contract.h>\n"}, {"node_id": 16, "text": "#include"}, {"node_id": 18, "text": "#include <vcl/core/span.h>\n"}, {"node_id": 19, "text": "#include"}]}, "original_source_code": "/*\n * This file is part of the Visual Computing Library (VCL) release under the\n * MIT license.\n *\n * Copyright (c) 2015 <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 */\n#pragma once\n\n// VCL configuration\n#include <vcl/config/global.h>\n\n// C++ standard library\n#include <array>\n#include <random>\n#include <vector>\n\n// VCL\n#include <vcl/core/contract.h>\n#include <vcl/core/span.h>\n\nnamespace Vcl { namespace Util {\n\t/*!\n\t *\tWavelet noise implementation by <NAME> and <NAME>\n\t */\n\ttemplate<int N>\n\tclass WaveletNoise\n\t{\n\tpublic: // Type definitions\n\t\tusing Vec3 = std::array<float, 3>;\n\t\tusing Mat33 = std::array<std::array<float, 3>, 3>;\n\n\tpublic:\n\t\tWaveletNoise() noexcept;\n\t\tWaveletNoise(unsigned int seed);\n\t\tWaveletNoise(std::mt19937& rnd_gen);\n\n\tpublic: // Evaluation\n\t\tfloat evaluate(const Vec3& p) const noexcept;\n\t\tfloat evaluate(const Vec3& p, const Vec3& normal) const;\n\t\tfloat evaluate(const Vec3& p, float s, const Vec3* normal, int first_band, int nr_bands, stdext::span<const float> w) const;\n\n\t\tfloat dx(const Vec3& p) const noexcept;\n\t\tfloat dy(const Vec3& p) const noexcept;\n\t\tfloat dz(const Vec3& p) const noexcept;\n\t\tvoid dxDyDz(const Vec3& p, Mat33& final) const noexcept;\n\n\t\tVec3 velocity(const Vec3& p) const noexcept;\n\n\tpublic: // Properties\n\t\tfloat minValue() const noexcept { return _min; }\n\t\tfloat maxValue() const noexcept { return _max; }\n\n\tpublic: // Access\n\t\tint getNoiseTileSize() const noexcept { return N; }\n\t\tconst float* getNoiseTileData() const noexcept { return _noiseTileData.data(); }\n\n\tprotected: // Helper methods\n\t\t//! Special constructor taking an initialized set of random numbers\n\t\tWaveletNoise(stdext::span<const float> noise_data_base);\n\n\t\t//! Initialize the noise data\n\t\tvoid initializeNoise(stdext::span<const float> noise_data_base);\n\n\tprivate:\n\t\t//! Noise data\n\t\tstd::vector<float> _noiseTileData;\n\n\t\tfloat _min; //!< Minimum noise data\n\t\tfloat _max; //!< Maximum noise data\n\t};\n}}\n\nnamespace Vcl { namespace Util {\n#ifndef VCL_UTIL_WAVELETNOISE_INST\n\textern template class WaveletNoise<32>;\n\textern template class WaveletNoise<64>;\n\textern template class WaveletNoise<128>;\n#endif // VCL_UTIL_WAVELETNOISE_INST\n}}\n"}
80,076
c
#pragma once #include <stdlib.h> #include <string.h> #include <inttypes.h> #include <limits.h> #define ERROR_INVALID_PARAMETER 87 #define ERROR_OUTOFMEMORY 14 #define ERROR_BAD_ENVIRONMENT 0x0000000A #define ERROR_TOO_MANY_OPEN_FILES 0x00000004 #define ERROR_INSUFFICIENT_BUFFER 0x0000007A #define ERROR_NO_ASSOCIATION 0x00000483 #define ERROR_NO_SUCH_USER 0x00000525 #define ERROR_INVALID_FUNCTION 0x00000001 #define ERROR_INVALID_ADDRESS 0x000001e7 #define ERROR_GEN_FAILURE 0x0000001F #define ERROR_ACCESS_DENIED 0x00000005 #define ERROR_INVALID_NAME 0x0000007B #define ERROR_STOPPED_ON_SYMLINK 0x000002A9 #define ERROR_BUFFER_OVERFLOW 0x0000006F #define ERROR_FILE_NOT_FOUND 0x00000002 #define ERROR_BAD_PATH_NAME 0x000000A1 #define ERROR_BAD_NET_NAME 0x00000043 #define ERROR_DISK_FULL 0x00000070 #define ERROR_FILE_EXISTS 0x00000050 #define ERROR_TOO_MANY_LINKS 0x00000476 /* **============================================================================== ** ** PAL_BEGIN_EXTERNC ** PAL_END_EXTERNC ** **============================================================================== */ #if defined(__cplusplus) # define PAL_BEGIN_EXTERNC extern "C" { # define PAL_END_EXTERNC } #else # define PAL_BEGIN_EXTERNC # define PAL_END_EXTERNC #endif
30.25
40
(translation_unit) "#pragma once\n\n#include <stdlib.h>\n#include <string.h>\n#include <inttypes.h>\n#include <limits.h>\n\n#define ERROR_INVALID_PARAMETER 87\n#define ERROR_OUTOFMEMORY 14\n#define ERROR_BAD_ENVIRONMENT 0x0000000A\n#define ERROR_TOO_MANY_OPEN_FILES 0x00000004\n#define ERROR_INSUFFICIENT_BUFFER 0x0000007A\n#define ERROR_NO_ASSOCIATION 0x00000483\n#define ERROR_NO_SUCH_USER 0x00000525\n#define ERROR_INVALID_FUNCTION 0x00000001\n#define ERROR_INVALID_ADDRESS 0x000001e7\n#define ERROR_GEN_FAILURE 0x0000001F\n#define ERROR_ACCESS_DENIED 0x00000005\n#define ERROR_INVALID_NAME 0x0000007B\n#define ERROR_STOPPED_ON_SYMLINK 0x000002A9\n#define ERROR_BUFFER_OVERFLOW 0x0000006F\n#define ERROR_FILE_NOT_FOUND 0x00000002\n#define ERROR_BAD_PATH_NAME 0x000000A1\n#define ERROR_BAD_NET_NAME 0x00000043\n#define ERROR_DISK_FULL 0x00000070\n#define ERROR_FILE_EXISTS 0x00000050\n#define ERROR_TOO_MANY_LINKS 0x00000476\n\n/*\n**==============================================================================\n**\n** PAL_BEGIN_EXTERNC\n** PAL_END_EXTERNC\n**\n**==============================================================================\n*/\n\n#if defined(__cplusplus)\n# define PAL_BEGIN_EXTERNC extern "C" {\n# define PAL_END_EXTERNC }\n#else\n# define PAL_BEGIN_EXTERNC\n# define PAL_END_EXTERNC\n#endif\n\n" (preproc_call) "#pragma once\n" (preproc_directive) "#pragma" (preproc_arg) "once" (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 <inttypes.h>\n" (#include) "#include" (system_lib_string) "<inttypes.h>" (preproc_include) "#include <limits.h>\n" (#include) "#include" (system_lib_string) "<limits.h>" (preproc_def) "#define ERROR_INVALID_PARAMETER 87\n" (#define) "#define" (identifier) "ERROR_INVALID_PARAMETER" (preproc_arg) "87" (preproc_def) "#define ERROR_OUTOFMEMORY 14\n" (#define) "#define" (identifier) "ERROR_OUTOFMEMORY" (preproc_arg) "14" (preproc_def) "#define ERROR_BAD_ENVIRONMENT 0x0000000A\n" (#define) "#define" (identifier) "ERROR_BAD_ENVIRONMENT" (preproc_arg) "0x0000000A" (preproc_def) "#define ERROR_TOO_MANY_OPEN_FILES 0x00000004\n" (#define) "#define" (identifier) "ERROR_TOO_MANY_OPEN_FILES" (preproc_arg) "0x00000004" (preproc_def) "#define ERROR_INSUFFICIENT_BUFFER 0x0000007A\n" (#define) "#define" (identifier) "ERROR_INSUFFICIENT_BUFFER" (preproc_arg) "0x0000007A" (preproc_def) "#define ERROR_NO_ASSOCIATION 0x00000483\n" (#define) "#define" (identifier) "ERROR_NO_ASSOCIATION" (preproc_arg) "0x00000483" (preproc_def) "#define ERROR_NO_SUCH_USER 0x00000525\n" (#define) "#define" (identifier) "ERROR_NO_SUCH_USER" (preproc_arg) "0x00000525" (preproc_def) "#define ERROR_INVALID_FUNCTION 0x00000001\n" (#define) "#define" (identifier) "ERROR_INVALID_FUNCTION" (preproc_arg) "0x00000001" (preproc_def) "#define ERROR_INVALID_ADDRESS 0x000001e7\n" (#define) "#define" (identifier) "ERROR_INVALID_ADDRESS" (preproc_arg) "0x000001e7" (preproc_def) "#define ERROR_GEN_FAILURE 0x0000001F\n" (#define) "#define" (identifier) "ERROR_GEN_FAILURE" (preproc_arg) "0x0000001F" (preproc_def) "#define ERROR_ACCESS_DENIED 0x00000005\n" (#define) "#define" (identifier) "ERROR_ACCESS_DENIED" (preproc_arg) "0x00000005" (preproc_def) "#define ERROR_INVALID_NAME 0x0000007B\n" (#define) "#define" (identifier) "ERROR_INVALID_NAME" (preproc_arg) "0x0000007B" (preproc_def) "#define ERROR_STOPPED_ON_SYMLINK 0x000002A9\n" (#define) "#define" (identifier) "ERROR_STOPPED_ON_SYMLINK" (preproc_arg) "0x000002A9" (preproc_def) "#define ERROR_BUFFER_OVERFLOW 0x0000006F\n" (#define) "#define" (identifier) "ERROR_BUFFER_OVERFLOW" (preproc_arg) "0x0000006F" (preproc_def) "#define ERROR_FILE_NOT_FOUND 0x00000002\n" (#define) "#define" (identifier) "ERROR_FILE_NOT_FOUND" (preproc_arg) "0x00000002" (preproc_def) "#define ERROR_BAD_PATH_NAME 0x000000A1\n" (#define) "#define" (identifier) "ERROR_BAD_PATH_NAME" (preproc_arg) "0x000000A1" (preproc_def) "#define ERROR_BAD_NET_NAME 0x00000043\n" (#define) "#define" (identifier) "ERROR_BAD_NET_NAME" (preproc_arg) "0x00000043" (preproc_def) "#define ERROR_DISK_FULL 0x00000070\n" (#define) "#define" (identifier) "ERROR_DISK_FULL" (preproc_arg) "0x00000070" (preproc_def) "#define ERROR_FILE_EXISTS 0x00000050\n" (#define) "#define" (identifier) "ERROR_FILE_EXISTS" (preproc_arg) "0x00000050" (preproc_def) "#define ERROR_TOO_MANY_LINKS 0x00000476\n" (#define) "#define" (identifier) "ERROR_TOO_MANY_LINKS" (preproc_arg) "0x00000476" (comment) "/*\n**==============================================================================\n**\n** PAL_BEGIN_EXTERNC\n** PAL_END_EXTERNC\n**\n**==============================================================================\n*/" (preproc_if) "#if defined(__cplusplus)\n# define PAL_BEGIN_EXTERNC extern "C" {\n# define PAL_END_EXTERNC }\n#else\n# define PAL_BEGIN_EXTERNC\n# define PAL_END_EXTERNC\n#endif" (#if) "#if" (preproc_defined) "defined(__cplusplus)" (defined) "defined" (() "(" (identifier) "__cplusplus" ()) ")" ( ) "\n" (preproc_def) "# define PAL_BEGIN_EXTERNC extern "C" {\n" (#define) "# define" (identifier) "PAL_BEGIN_EXTERNC" (preproc_arg) "extern "C" {" (preproc_def) "# define PAL_END_EXTERNC }\n" (#define) "# define" (identifier) "PAL_END_EXTERNC" (preproc_arg) "}" (preproc_else) "#else\n# define PAL_BEGIN_EXTERNC\n# define PAL_END_EXTERNC\n" (#else) "#else" (preproc_def) "# define PAL_BEGIN_EXTERNC\n" (#define) "# define" (identifier) "PAL_BEGIN_EXTERNC" (preproc_def) "# define PAL_END_EXTERNC\n" (#define) "# define" (identifier) "PAL_END_EXTERNC" (#endif) "#endif"
122
0
{"language": "c", "success": true, "metadata": {"lines": 40, "avg_line_length": 30.25, "nodes": 117, "errors": 0, "source_hash": "73479f2084407fcce14d2830fb063db745b37b3bfa490fe674283210b7d89192", "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 <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": 9}, "end_point": {"row": 2, "column": 19}}, {"id": 6, "type": "preproc_include", "text": "#include <string.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": "<string.h>", "parent": 6, "children": [], "start_point": {"row": 3, "column": 9}, "end_point": {"row": 3, "column": 19}}, {"id": 9, "type": "preproc_include", "text": "#include <inttypes.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": "<inttypes.h>", "parent": 9, "children": [], "start_point": {"row": 4, "column": 9}, "end_point": {"row": 4, "column": 21}}, {"id": 12, "type": "preproc_include", "text": "#include <limits.h>\n", "parent": null, "children": [13, 14], "start_point": {"row": 5, "column": 0}, "end_point": {"row": 6, "column": 0}}, {"id": 13, "type": "#include", "text": "#include", "parent": 12, "children": [], "start_point": {"row": 5, "column": 0}, "end_point": {"row": 5, "column": 8}}, {"id": 14, "type": "system_lib_string", "text": "<limits.h>", "parent": 12, "children": [], "start_point": {"row": 5, "column": 9}, "end_point": {"row": 5, "column": 19}}, {"id": 15, "type": "preproc_def", "text": "#define ERROR_INVALID_PARAMETER 87\n", "parent": null, "children": [16, 17, 18], "start_point": {"row": 7, "column": 0}, "end_point": {"row": 8, "column": 0}}, {"id": 16, "type": "#define", "text": "#define", "parent": 15, "children": [], "start_point": {"row": 7, "column": 0}, "end_point": {"row": 7, "column": 7}}, {"id": 17, "type": "identifier", "text": "ERROR_INVALID_PARAMETER", "parent": 15, "children": [], "start_point": {"row": 7, "column": 8}, "end_point": {"row": 7, "column": 31}}, {"id": 18, "type": "preproc_arg", "text": "87", "parent": 15, "children": [], "start_point": {"row": 7, "column": 32}, "end_point": {"row": 7, "column": 34}}, {"id": 19, "type": "preproc_def", "text": "#define ERROR_OUTOFMEMORY 14\n", "parent": null, "children": [20, 21, 22], "start_point": {"row": 8, "column": 0}, "end_point": {"row": 9, "column": 0}}, {"id": 20, "type": "#define", "text": "#define", "parent": 19, "children": [], "start_point": {"row": 8, "column": 0}, "end_point": {"row": 8, "column": 7}}, {"id": 21, "type": "identifier", "text": "ERROR_OUTOFMEMORY", "parent": 19, "children": [], "start_point": {"row": 8, "column": 8}, "end_point": {"row": 8, "column": 25}}, {"id": 22, "type": "preproc_arg", "text": "14", "parent": 19, "children": [], "start_point": {"row": 8, "column": 26}, "end_point": {"row": 8, "column": 28}}, {"id": 23, "type": "preproc_def", "text": "#define ERROR_BAD_ENVIRONMENT 0x0000000A\n", "parent": null, "children": [24, 25, 26], "start_point": {"row": 9, "column": 0}, "end_point": {"row": 10, "column": 0}}, {"id": 24, "type": "#define", "text": "#define", "parent": 23, "children": [], "start_point": {"row": 9, "column": 0}, "end_point": {"row": 9, "column": 7}}, {"id": 25, "type": "identifier", "text": "ERROR_BAD_ENVIRONMENT", "parent": 23, "children": [], "start_point": {"row": 9, "column": 8}, "end_point": {"row": 9, "column": 29}}, {"id": 26, "type": "preproc_arg", "text": "0x0000000A", "parent": 23, "children": [], "start_point": {"row": 9, "column": 30}, "end_point": {"row": 9, "column": 40}}, {"id": 27, "type": "preproc_def", "text": "#define ERROR_TOO_MANY_OPEN_FILES 0x00000004\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": "ERROR_TOO_MANY_OPEN_FILES", "parent": 27, "children": [], "start_point": {"row": 10, "column": 8}, "end_point": {"row": 10, "column": 33}}, {"id": 30, "type": "preproc_arg", "text": "0x00000004", "parent": 27, "children": [], "start_point": {"row": 10, "column": 34}, "end_point": {"row": 10, "column": 44}}, {"id": 31, "type": "preproc_def", "text": "#define ERROR_INSUFFICIENT_BUFFER 0x0000007A\n", "parent": null, "children": [32, 33, 34], "start_point": {"row": 11, "column": 0}, "end_point": {"row": 12, "column": 0}}, {"id": 32, "type": "#define", "text": "#define", "parent": 31, "children": [], "start_point": {"row": 11, "column": 0}, "end_point": {"row": 11, "column": 7}}, {"id": 33, "type": "identifier", "text": "ERROR_INSUFFICIENT_BUFFER", "parent": 31, "children": [], "start_point": {"row": 11, "column": 8}, "end_point": {"row": 11, "column": 33}}, {"id": 34, "type": "preproc_arg", "text": "0x0000007A", "parent": 31, "children": [], "start_point": {"row": 11, "column": 34}, "end_point": {"row": 11, "column": 44}}, {"id": 35, "type": "preproc_def", "text": "#define ERROR_NO_ASSOCIATION 0x00000483\n", "parent": null, "children": [36, 37, 38], "start_point": {"row": 12, "column": 0}, "end_point": {"row": 13, "column": 0}}, {"id": 36, "type": "#define", "text": "#define", "parent": 35, "children": [], "start_point": {"row": 12, "column": 0}, "end_point": {"row": 12, "column": 7}}, {"id": 37, "type": "identifier", "text": "ERROR_NO_ASSOCIATION", "parent": 35, "children": [], "start_point": {"row": 12, "column": 8}, "end_point": {"row": 12, "column": 28}}, {"id": 38, "type": "preproc_arg", "text": "0x00000483", "parent": 35, "children": [], "start_point": {"row": 12, "column": 29}, "end_point": {"row": 12, "column": 39}}, {"id": 39, "type": "preproc_def", "text": "#define ERROR_NO_SUCH_USER 0x00000525\n", "parent": null, "children": [40, 41, 42], "start_point": {"row": 13, "column": 0}, "end_point": {"row": 14, "column": 0}}, {"id": 40, "type": "#define", "text": "#define", "parent": 39, "children": [], "start_point": {"row": 13, "column": 0}, "end_point": {"row": 13, "column": 7}}, {"id": 41, "type": "identifier", "text": "ERROR_NO_SUCH_USER", "parent": 39, "children": [], "start_point": {"row": 13, "column": 8}, "end_point": {"row": 13, "column": 26}}, {"id": 42, "type": "preproc_arg", "text": "0x00000525", "parent": 39, "children": [], "start_point": {"row": 13, "column": 27}, "end_point": {"row": 13, "column": 37}}, {"id": 43, "type": "preproc_def", "text": "#define ERROR_INVALID_FUNCTION 0x00000001\n", "parent": null, "children": [44, 45, 46], "start_point": {"row": 14, "column": 0}, "end_point": {"row": 15, "column": 0}}, {"id": 44, "type": "#define", "text": "#define", "parent": 43, "children": [], "start_point": {"row": 14, "column": 0}, "end_point": {"row": 14, "column": 7}}, {"id": 45, "type": "identifier", "text": "ERROR_INVALID_FUNCTION", "parent": 43, "children": [], "start_point": {"row": 14, "column": 8}, "end_point": {"row": 14, "column": 30}}, {"id": 46, "type": "preproc_arg", "text": "0x00000001", "parent": 43, "children": [], "start_point": {"row": 14, "column": 31}, "end_point": {"row": 14, "column": 41}}, {"id": 47, "type": "preproc_def", "text": "#define ERROR_INVALID_ADDRESS 0x000001e7\n", "parent": null, "children": [48, 49, 50], "start_point": {"row": 15, "column": 0}, "end_point": {"row": 16, "column": 0}}, {"id": 48, "type": "#define", "text": "#define", "parent": 47, "children": [], "start_point": {"row": 15, "column": 0}, "end_point": {"row": 15, "column": 7}}, {"id": 49, "type": "identifier", "text": "ERROR_INVALID_ADDRESS", "parent": 47, "children": [], "start_point": {"row": 15, "column": 8}, "end_point": {"row": 15, "column": 29}}, {"id": 50, "type": "preproc_arg", "text": "0x000001e7", "parent": 47, "children": [], "start_point": {"row": 15, "column": 30}, "end_point": {"row": 15, "column": 40}}, {"id": 51, "type": "preproc_def", "text": "#define ERROR_GEN_FAILURE 0x0000001F\n", "parent": null, "children": [52, 53, 54], "start_point": {"row": 16, "column": 0}, "end_point": {"row": 17, "column": 0}}, {"id": 52, "type": "#define", "text": "#define", "parent": 51, "children": [], "start_point": {"row": 16, "column": 0}, "end_point": {"row": 16, "column": 7}}, {"id": 53, "type": "identifier", "text": "ERROR_GEN_FAILURE", "parent": 51, "children": [], "start_point": {"row": 16, "column": 8}, "end_point": {"row": 16, "column": 25}}, {"id": 54, "type": "preproc_arg", "text": "0x0000001F", "parent": 51, "children": [], "start_point": {"row": 16, "column": 26}, "end_point": {"row": 16, "column": 36}}, {"id": 55, "type": "preproc_def", "text": "#define ERROR_ACCESS_DENIED 0x00000005\n", "parent": null, "children": [56, 57, 58], "start_point": {"row": 17, "column": 0}, "end_point": {"row": 18, "column": 0}}, {"id": 56, "type": "#define", "text": "#define", "parent": 55, "children": [], "start_point": {"row": 17, "column": 0}, "end_point": {"row": 17, "column": 7}}, {"id": 57, "type": "identifier", "text": "ERROR_ACCESS_DENIED", "parent": 55, "children": [], "start_point": {"row": 17, "column": 8}, "end_point": {"row": 17, "column": 27}}, {"id": 58, "type": "preproc_arg", "text": "0x00000005", "parent": 55, "children": [], "start_point": {"row": 17, "column": 28}, "end_point": {"row": 17, "column": 38}}, {"id": 59, "type": "preproc_def", "text": "#define ERROR_INVALID_NAME 0x0000007B\n", "parent": null, "children": [60, 61, 62], "start_point": {"row": 18, "column": 0}, "end_point": {"row": 19, "column": 0}}, {"id": 60, "type": "#define", "text": "#define", "parent": 59, "children": [], "start_point": {"row": 18, "column": 0}, "end_point": {"row": 18, "column": 7}}, {"id": 61, "type": "identifier", "text": "ERROR_INVALID_NAME", "parent": 59, "children": [], "start_point": {"row": 18, "column": 8}, "end_point": {"row": 18, "column": 26}}, {"id": 62, "type": "preproc_arg", "text": "0x0000007B", "parent": 59, "children": [], "start_point": {"row": 18, "column": 27}, "end_point": {"row": 18, "column": 37}}, {"id": 63, "type": "preproc_def", "text": "#define ERROR_STOPPED_ON_SYMLINK 0x000002A9\n", "parent": null, "children": [64, 65, 66], "start_point": {"row": 19, "column": 0}, "end_point": {"row": 20, "column": 0}}, {"id": 64, "type": "#define", "text": "#define", "parent": 63, "children": [], "start_point": {"row": 19, "column": 0}, "end_point": {"row": 19, "column": 7}}, {"id": 65, "type": "identifier", "text": "ERROR_STOPPED_ON_SYMLINK", "parent": 63, "children": [], "start_point": {"row": 19, "column": 8}, "end_point": {"row": 19, "column": 32}}, {"id": 66, "type": "preproc_arg", "text": "0x000002A9", "parent": 63, "children": [], "start_point": {"row": 19, "column": 33}, "end_point": {"row": 19, "column": 43}}, {"id": 67, "type": "preproc_def", "text": "#define ERROR_BUFFER_OVERFLOW 0x0000006F\n", "parent": null, "children": [68, 69, 70], "start_point": {"row": 20, "column": 0}, "end_point": {"row": 21, "column": 0}}, {"id": 68, "type": "#define", "text": "#define", "parent": 67, "children": [], "start_point": {"row": 20, "column": 0}, "end_point": {"row": 20, "column": 7}}, {"id": 69, "type": "identifier", "text": "ERROR_BUFFER_OVERFLOW", "parent": 67, "children": [], "start_point": {"row": 20, "column": 8}, "end_point": {"row": 20, "column": 29}}, {"id": 70, "type": "preproc_arg", "text": "0x0000006F", "parent": 67, "children": [], "start_point": {"row": 20, "column": 30}, "end_point": {"row": 20, "column": 40}}, {"id": 71, "type": "preproc_def", "text": "#define ERROR_FILE_NOT_FOUND 0x00000002\n", "parent": null, "children": [72, 73, 74], "start_point": {"row": 21, "column": 0}, "end_point": {"row": 22, "column": 0}}, {"id": 72, "type": "#define", "text": "#define", "parent": 71, "children": [], "start_point": {"row": 21, "column": 0}, "end_point": {"row": 21, "column": 7}}, {"id": 73, "type": "identifier", "text": "ERROR_FILE_NOT_FOUND", "parent": 71, "children": [], "start_point": {"row": 21, "column": 8}, "end_point": {"row": 21, "column": 28}}, {"id": 74, "type": "preproc_arg", "text": "0x00000002", "parent": 71, "children": [], "start_point": {"row": 21, "column": 29}, "end_point": {"row": 21, "column": 39}}, {"id": 75, "type": "preproc_def", "text": "#define ERROR_BAD_PATH_NAME 0x000000A1\n", "parent": null, "children": [76, 77, 78], "start_point": {"row": 22, "column": 0}, "end_point": {"row": 23, "column": 0}}, {"id": 76, "type": "#define", "text": "#define", "parent": 75, "children": [], "start_point": {"row": 22, "column": 0}, "end_point": {"row": 22, "column": 7}}, {"id": 77, "type": "identifier", "text": "ERROR_BAD_PATH_NAME", "parent": 75, "children": [], "start_point": {"row": 22, "column": 8}, "end_point": {"row": 22, "column": 27}}, {"id": 78, "type": "preproc_arg", "text": "0x000000A1", "parent": 75, "children": [], "start_point": {"row": 22, "column": 28}, "end_point": {"row": 22, "column": 38}}, {"id": 79, "type": "preproc_def", "text": "#define ERROR_BAD_NET_NAME 0x00000043\n", "parent": null, "children": [80, 81, 82], "start_point": {"row": 23, "column": 0}, "end_point": {"row": 24, "column": 0}}, {"id": 80, "type": "#define", "text": "#define", "parent": 79, "children": [], "start_point": {"row": 23, "column": 0}, "end_point": {"row": 23, "column": 7}}, {"id": 81, "type": "identifier", "text": "ERROR_BAD_NET_NAME", "parent": 79, "children": [], "start_point": {"row": 23, "column": 8}, "end_point": {"row": 23, "column": 26}}, {"id": 82, "type": "preproc_arg", "text": "0x00000043", "parent": 79, "children": [], "start_point": {"row": 23, "column": 27}, "end_point": {"row": 23, "column": 37}}, {"id": 83, "type": "preproc_def", "text": "#define ERROR_DISK_FULL 0x00000070\n", "parent": null, "children": [84, 85, 86], "start_point": {"row": 24, "column": 0}, "end_point": {"row": 25, "column": 0}}, {"id": 84, "type": "#define", "text": "#define", "parent": 83, "children": [], "start_point": {"row": 24, "column": 0}, "end_point": {"row": 24, "column": 7}}, {"id": 85, "type": "identifier", "text": "ERROR_DISK_FULL", "parent": 83, "children": [], "start_point": {"row": 24, "column": 8}, "end_point": {"row": 24, "column": 23}}, {"id": 86, "type": "preproc_arg", "text": "0x00000070", "parent": 83, "children": [], "start_point": {"row": 24, "column": 24}, "end_point": {"row": 24, "column": 34}}, {"id": 87, "type": "preproc_def", "text": "#define ERROR_FILE_EXISTS 0x00000050\n", "parent": null, "children": [88, 89, 90], "start_point": {"row": 25, "column": 0}, "end_point": {"row": 26, "column": 0}}, {"id": 88, "type": "#define", "text": "#define", "parent": 87, "children": [], "start_point": {"row": 25, "column": 0}, "end_point": {"row": 25, "column": 7}}, {"id": 89, "type": "identifier", "text": "ERROR_FILE_EXISTS", "parent": 87, "children": [], "start_point": {"row": 25, "column": 8}, "end_point": {"row": 25, "column": 25}}, {"id": 90, "type": "preproc_arg", "text": "0x00000050", "parent": 87, "children": [], "start_point": {"row": 25, "column": 26}, "end_point": {"row": 25, "column": 36}}, {"id": 91, "type": "preproc_def", "text": "#define ERROR_TOO_MANY_LINKS 0x00000476\n", "parent": null, "children": [92, 93, 94], "start_point": {"row": 26, "column": 0}, "end_point": {"row": 27, "column": 0}}, {"id": 92, "type": "#define", "text": "#define", "parent": 91, "children": [], "start_point": {"row": 26, "column": 0}, "end_point": {"row": 26, "column": 7}}, {"id": 93, "type": "identifier", "text": "ERROR_TOO_MANY_LINKS", "parent": 91, "children": [], "start_point": {"row": 26, "column": 8}, "end_point": {"row": 26, "column": 28}}, {"id": 94, "type": "preproc_arg", "text": "0x00000476", "parent": 91, "children": [], "start_point": {"row": 26, "column": 29}, "end_point": {"row": 26, "column": 39}}, {"id": 95, "type": "preproc_if", "text": "#if defined(__cplusplus)\n# define PAL_BEGIN_EXTERNC extern \"C\" {\n# define PAL_END_EXTERNC }\n#else\n# define PAL_BEGIN_EXTERNC\n# define PAL_END_EXTERNC\n#endif", "parent": null, "children": [96, 97, 100, 101, 105, 108, 116], "start_point": {"row": 37, "column": 0}, "end_point": {"row": 43, "column": 6}}, {"id": 96, "type": "#if", "text": "#if", "parent": 95, "children": [], "start_point": {"row": 37, "column": 0}, "end_point": {"row": 37, "column": 3}}, {"id": 97, "type": "preproc_defined", "text": "defined(__cplusplus)", "parent": 95, "children": [98, 99], "start_point": {"row": 37, "column": 4}, "end_point": {"row": 37, "column": 24}}, {"id": 98, "type": "defined", "text": "defined", "parent": 97, "children": [], "start_point": {"row": 37, "column": 4}, "end_point": {"row": 37, "column": 11}}, {"id": 99, "type": "identifier", "text": "__cplusplus", "parent": 97, "children": [], "start_point": {"row": 37, "column": 12}, "end_point": {"row": 37, "column": 23}}, {"id": 100, "type": "\n", "text": "\n", "parent": 95, "children": [], "start_point": {"row": 37, "column": 24}, "end_point": {"row": 38, "column": 0}}, {"id": 101, "type": "preproc_def", "text": "# define PAL_BEGIN_EXTERNC extern \"C\" {\n", "parent": 95, "children": [102, 103, 104], "start_point": {"row": 38, "column": 0}, "end_point": {"row": 39, "column": 0}}, {"id": 102, "type": "#define", "text": "# define", "parent": 101, "children": [], "start_point": {"row": 38, "column": 0}, "end_point": {"row": 38, "column": 8}}, {"id": 103, "type": "identifier", "text": "PAL_BEGIN_EXTERNC", "parent": 101, "children": [], "start_point": {"row": 38, "column": 9}, "end_point": {"row": 38, "column": 26}}, {"id": 104, "type": "preproc_arg", "text": "extern \"C\" {", "parent": 101, "children": [], "start_point": {"row": 38, "column": 27}, "end_point": {"row": 38, "column": 39}}, {"id": 105, "type": "preproc_def", "text": "# define PAL_END_EXTERNC }\n", "parent": 95, "children": [106, 107], "start_point": {"row": 39, "column": 0}, "end_point": {"row": 40, "column": 0}}, {"id": 106, "type": "#define", "text": "# define", "parent": 105, "children": [], "start_point": {"row": 39, "column": 0}, "end_point": {"row": 39, "column": 8}}, {"id": 107, "type": "identifier", "text": "PAL_END_EXTERNC", "parent": 105, "children": [], "start_point": {"row": 39, "column": 9}, "end_point": {"row": 39, "column": 24}}, {"id": 108, "type": "preproc_else", "text": "#else\n# define PAL_BEGIN_EXTERNC\n# define PAL_END_EXTERNC\n", "parent": 95, "children": [109, 110, 113], "start_point": {"row": 40, "column": 0}, "end_point": {"row": 43, "column": 0}}, {"id": 109, "type": "#else", "text": "#else", "parent": 108, "children": [], "start_point": {"row": 40, "column": 0}, "end_point": {"row": 40, "column": 5}}, {"id": 110, "type": "preproc_def", "text": "# define PAL_BEGIN_EXTERNC\n", "parent": 108, "children": [111, 112], "start_point": {"row": 41, "column": 0}, "end_point": {"row": 42, "column": 0}}, {"id": 111, "type": "#define", "text": "# define", "parent": 110, "children": [], "start_point": {"row": 41, "column": 0}, "end_point": {"row": 41, "column": 8}}, {"id": 112, "type": "identifier", "text": "PAL_BEGIN_EXTERNC", "parent": 110, "children": [], "start_point": {"row": 41, "column": 9}, "end_point": {"row": 41, "column": 26}}, {"id": 113, "type": "preproc_def", "text": "# define PAL_END_EXTERNC\n", "parent": 108, "children": [114, 115], "start_point": {"row": 42, "column": 0}, "end_point": {"row": 43, "column": 0}}, {"id": 114, "type": "#define", "text": "# define", "parent": 113, "children": [], "start_point": {"row": 42, "column": 0}, "end_point": {"row": 42, "column": 8}}, {"id": 115, "type": "identifier", "text": "PAL_END_EXTERNC", "parent": 113, "children": [], "start_point": {"row": 42, "column": 9}, "end_point": {"row": 42, "column": 24}}, {"id": 116, "type": "#endif", "text": "#endif", "parent": 95, "children": [], "start_point": {"row": 43, "column": 0}, "end_point": {"row": 43, "column": 6}}]}, "node_categories": {"declarations": {"functions": [], "variables": [], "classes": [], "imports": [3, 4, 6, 7, 9, 10, 12, 13], "modules": [], "enums": []}, "statements": {"expressions": [], "assignments": [], "loops": [], "conditionals": [17, 21, 25, 29, 33, 37, 41, 45, 49, 53, 57, 61, 65, 69, 73, 77, 81, 85, 89, 93, 95, 96, 99, 103, 107, 112, 115, 116], "returns": [], "exceptions": []}, "expressions": {"calls": [0], "literals": [5, 8, 11, 14], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [], "class_declarations": [], "import_statements": [{"node_id": 3, "text": "#include <stdlib.h>\n"}, {"node_id": 4, "text": "#include"}, {"node_id": 6, "text": "#include <string.h>\n"}, {"node_id": 7, "text": "#include"}, {"node_id": 9, "text": "#include <inttypes.h>\n"}, {"node_id": 10, "text": "#include"}, {"node_id": 12, "text": "#include <limits.h>\n"}, {"node_id": 13, "text": "#include"}]}, "original_source_code": "#pragma once\n\n#include <stdlib.h>\n#include <string.h>\n#include <inttypes.h>\n#include <limits.h>\n\n#define ERROR_INVALID_PARAMETER 87\n#define ERROR_OUTOFMEMORY 14\n#define ERROR_BAD_ENVIRONMENT 0x0000000A\n#define ERROR_TOO_MANY_OPEN_FILES 0x00000004\n#define ERROR_INSUFFICIENT_BUFFER 0x0000007A\n#define ERROR_NO_ASSOCIATION 0x00000483\n#define ERROR_NO_SUCH_USER 0x00000525\n#define ERROR_INVALID_FUNCTION 0x00000001\n#define ERROR_INVALID_ADDRESS 0x000001e7\n#define ERROR_GEN_FAILURE 0x0000001F\n#define ERROR_ACCESS_DENIED 0x00000005\n#define ERROR_INVALID_NAME 0x0000007B\n#define ERROR_STOPPED_ON_SYMLINK 0x000002A9\n#define ERROR_BUFFER_OVERFLOW 0x0000006F\n#define ERROR_FILE_NOT_FOUND 0x00000002\n#define ERROR_BAD_PATH_NAME 0x000000A1\n#define ERROR_BAD_NET_NAME 0x00000043\n#define ERROR_DISK_FULL 0x00000070\n#define ERROR_FILE_EXISTS 0x00000050\n#define ERROR_TOO_MANY_LINKS 0x00000476\n\n/*\n**==============================================================================\n**\n** PAL_BEGIN_EXTERNC\n** PAL_END_EXTERNC\n**\n**==============================================================================\n*/\n\n#if defined(__cplusplus)\n# define PAL_BEGIN_EXTERNC extern \"C\" {\n# define PAL_END_EXTERNC }\n#else\n# define PAL_BEGIN_EXTERNC\n# define PAL_END_EXTERNC\n#endif\n\n"}
80,077
c
// // SILKSplashSlideUpButton.h // SILKDouYin // // Created by 张骞 on 2022/4/10. // #import <UIKit/UIKit.h> NS_ASSUME_NONNULL_BEGIN @interface SILKSplashSlideUpButton : UIView @property (nonatomic, strong) UILabel *tipsLabel; @end NS_ASSUME_NONNULL_END
20.25
12
(translation_unit) "//\n// SILKSplashSlideUpButton.h\n// SILKDouYin\n//\n// Created by 张骞 on 2022/4/10.\n//\n\n#import <UIKit/UIKit.h>\n\nNS_ASSUME_NONNULL_BEGIN\n\n@interface SILKSplashSlideUpButton : UIView\n\n@property (nonatomic, strong) UILabel *tipsLabel;\n\n@end\n\nNS_ASSUME_NONNULL_END\n" (comment) "//" (comment) "// SILKSplashSlideUpButton.h" (comment) "// SILKDouYin" (comment) "//" (comment) "// Created by 张骞 on 2022/4/10.\n//\n" (comment) "#i" (preproc_call) "ort <UIKit/UIKit.h>\n\nNS_" (preproc_directive) "ort <UI" (preproc_arg) "it/UIKit.h>\n\nNS" (declaration) "SSUME_NONNULL_BEGIN\n\n@interface SIL" (type_identifier) "SSUME_NONNULL_BEGIN\n\n@i" (ERROR) "e" (ERROR) "e" (identifier) "rface SIL" (;) "" (labeled_statement) "SplashSlideUpButton : UIView\n\n@property (nonatomic, strong) UILabel *tipsLabel;\n\n@e" (statement_identifier) "SplashSlideUpButton : U" (:) "V" (declaration) "ew\n\n@property (nonatomic, strong) UILabel *tipsLabel;\n\n@e" (type_identifier) "ew\n\n@p" (ERROR) "perty (nonatomic, strong) UILabel *ti" (ERROR) "p" (function_declarator) "erty (nonatomic, strong) UILabel *ti" (identifier) "erty (no" (parameter_list) "atomic, strong) UIL" (() "a" (parameter_declaration) "tomic, st" (type_identifier) "tomic, st" (,) "r" (parameter_declaration) "ng) UI" (type_identifier) "ng) UI" ()) "L" (identifier) "bel *ti" (pointer_declarator) "sLabel;\n\n@" (*) "s" (identifier) "Label;\n\n@" (;) "e" (ERROR) "\n" (ERROR) "\n" (declaration) "\nNS_ASSUME_NONNULL_END\n" (type_identifier) "\nNS" (identifier) "SSUME_NONNULL_END\n" (;) ""
44
6
{"language": "c", "success": true, "metadata": {"lines": 12, "avg_line_length": 20.25, "nodes": 30, "errors": 0, "source_hash": "4544f38014f3f1036db451ca41033af2d68ff8acf7e143580889150b9f246f8b", "categorized_nodes": 18}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "ort <UIKit/UIKit.h>\n\nNS_", "parent": null, "children": [1, 2], "start_point": {"row": 7, "column": 0}, "end_point": {"row": 8, "column": 0}}, {"id": 1, "type": "preproc_directive", "text": "ort <UI", "parent": 0, "children": [], "start_point": {"row": 7, "column": 0}, "end_point": {"row": 7, "column": 7}}, {"id": 2, "type": "preproc_arg", "text": "it/UIKit.h>\n\nNS", "parent": 0, "children": [], "start_point": {"row": 7, "column": 8}, "end_point": {"row": 7, "column": 23}}, {"id": 3, "type": "declaration", "text": "SSUME_NONNULL_BEGIN\n\n@interface SIL", "parent": null, "children": [4, 5, 7], "start_point": {"row": 9, "column": 0}, "end_point": {"row": 11, "column": 10}}, {"id": 4, "type": "type_identifier", "text": "SSUME_NONNULL_BEGIN\n\n@i", "parent": 3, "children": [], "start_point": {"row": 9, "column": 0}, "end_point": {"row": 9, "column": 23}}, {"id": 5, "type": "ERROR", "text": "e", "parent": 3, "children": [6], "start_point": {"row": 11, "column": 0}, "end_point": {"row": 11, "column": 1}}, {"id": 6, "type": "ERROR", "text": "e", "parent": 5, "children": [], "start_point": {"row": 11, "column": 0}, "end_point": {"row": 11, "column": 1}}, {"id": 7, "type": "identifier", "text": "rface SIL", "parent": 3, "children": [], "start_point": {"row": 11, "column": 1}, "end_point": {"row": 11, "column": 10}}, {"id": 8, "type": "labeled_statement", "text": "SplashSlideUpButton : UIView\n\n@property (nonatomic, strong) UILabel *tipsLabel;\n\n@e", "parent": null, "children": [9, 10], "start_point": {"row": 11, "column": 11}, "end_point": {"row": 13, "column": 49}}, {"id": 9, "type": "statement_identifier", "text": "SplashSlideUpButton : U", "parent": 8, "children": [], "start_point": {"row": 11, "column": 11}, "end_point": {"row": 11, "column": 34}}, {"id": 10, "type": "declaration", "text": "ew\n\n@property (nonatomic, strong) UILabel *tipsLabel;\n\n@e", "parent": 8, "children": [11, 12, 22], "start_point": {"row": 11, "column": 37}, "end_point": {"row": 13, "column": 49}}, {"id": 11, "type": "type_identifier", "text": "ew\n\n@p", "parent": 10, "children": [], "start_point": {"row": 11, "column": 37}, "end_point": {"row": 11, "column": 43}}, {"id": 12, "type": "ERROR", "text": "perty (nonatomic, strong) UILabel *ti", "parent": 10, "children": [13, 14], "start_point": {"row": 13, "column": 0}, "end_point": {"row": 13, "column": 37}}, {"id": 13, "type": "ERROR", "text": "p", "parent": 12, "children": [], "start_point": {"row": 13, "column": 0}, "end_point": {"row": 13, "column": 1}}, {"id": 14, "type": "function_declarator", "text": "erty (nonatomic, strong) UILabel *ti", "parent": 12, "children": [15, 16, 21], "start_point": {"row": 13, "column": 1}, "end_point": {"row": 13, "column": 37}}, {"id": 15, "type": "identifier", "text": "erty (no", "parent": 14, "children": [], "start_point": {"row": 13, "column": 1}, "end_point": {"row": 13, "column": 9}}, {"id": 16, "type": "parameter_list", "text": "atomic, strong) UIL", "parent": 14, "children": [17, 19], "start_point": {"row": 13, "column": 10}, "end_point": {"row": 13, "column": 29}}, {"id": 17, "type": "parameter_declaration", "text": "tomic, st", "parent": 16, "children": [18], "start_point": {"row": 13, "column": 11}, "end_point": {"row": 13, "column": 20}}, {"id": 18, "type": "type_identifier", "text": "tomic, st", "parent": 17, "children": [], "start_point": {"row": 13, "column": 11}, "end_point": {"row": 13, "column": 20}}, {"id": 19, "type": "parameter_declaration", "text": "ng) UI", "parent": 16, "children": [20], "start_point": {"row": 13, "column": 22}, "end_point": {"row": 13, "column": 28}}, {"id": 20, "type": "type_identifier", "text": "ng) UI", "parent": 19, "children": [], "start_point": {"row": 13, "column": 22}, "end_point": {"row": 13, "column": 28}}, {"id": 21, "type": "identifier", "text": "bel *ti", "parent": 14, "children": [], "start_point": {"row": 13, "column": 30}, "end_point": {"row": 13, "column": 37}}, {"id": 22, "type": "pointer_declarator", "text": "sLabel;\n\n@", "parent": 10, "children": [23, 24], "start_point": {"row": 13, "column": 38}, "end_point": {"row": 13, "column": 48}}, {"id": 23, "type": "*", "text": "s", "parent": 22, "children": [], "start_point": {"row": 13, "column": 38}, "end_point": {"row": 13, "column": 39}}, {"id": 24, "type": "identifier", "text": "Label;\n\n@", "parent": 22, "children": [], "start_point": {"row": 13, "column": 39}, "end_point": {"row": 13, "column": 48}}, {"id": 25, "type": "ERROR", "text": "\n", "parent": null, "children": [26], "start_point": {"row": 15, "column": 0}, "end_point": {"row": 15, "column": 1}}, {"id": 26, "type": "ERROR", "text": "\n", "parent": 25, "children": [], "start_point": {"row": 15, "column": 0}, "end_point": {"row": 15, "column": 1}}, {"id": 27, "type": "declaration", "text": "\nNS_ASSUME_NONNULL_END\n", "parent": null, "children": [28, 29], "start_point": {"row": 15, "column": 1}, "end_point": {"row": 17, "column": 21}}, {"id": 28, "type": "type_identifier", "text": "\nNS", "parent": 27, "children": [], "start_point": {"row": 15, "column": 1}, "end_point": {"row": 15, "column": 4}}, {"id": 29, "type": "identifier", "text": "SSUME_NONNULL_END\n", "parent": 27, "children": [], "start_point": {"row": 17, "column": 0}, "end_point": {"row": 17, "column": 21}}]}, "node_categories": {"declarations": {"functions": [14], "variables": [3, 10, 17, 19, 27], "classes": [], "imports": [], "modules": [], "enums": []}, "statements": {"expressions": [], "assignments": [], "loops": [], "conditionals": [4, 7, 9, 11, 15, 18, 20, 21, 24, 28, 29], "returns": [], "exceptions": []}, "expressions": {"calls": [0], "literals": [], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [{"node_id": 14, "universal_type": "function", "name": "unknown", "text_snippet": "erty (nonatomic, strong) UILabel *ti"}], "class_declarations": [], "import_statements": []}, "original_source_code": "//\n// SILKSplashSlideUpButton.h\n// SILKDouYin\n//\n// Created by \u5f20\u9a9e on 2022/4/10.\n//\n\n#import <UIKit/UIKit.h>\n\nNS_ASSUME_NONNULL_BEGIN\n\n@interface SILKSplashSlideUpButton : UIView\n\n@property (nonatomic, strong) UILabel *tipsLabel;\n\n@end\n\nNS_ASSUME_NONNULL_END\n"}
80,078
c
/* * Copyright (C) 2017 Apple Inc. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions and the following disclaimer. * 2. Redistributions in binary form must reproduce the above copyright * notice, this list of conditions and the following disclaimer in the * documentation and/or other materials provided with the distribution. * * THIS SOFTWARE IS PROVIDED BY APPLE INC. ``AS IS'' AND ANY * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL APPLE INC. OR * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ #pragma once #include "DeferredDecommitInlines.h" #include "DeferredTriggerInlines.h" #include "EligibilityResultInlines.h" #include "FreeListInlines.h" #include "IsoAllocatorInlines.h" #include "IsoDeallocatorInlines.h" #include "IsoDirectoryInlines.h" #include "IsoDirectoryPageInlines.h" #include "IsoHeapImplInlines.h" #include "IsoHeap.h" #include "IsoPageInlines.h" #include "IsoTLSAllocatorEntryInlines.h" #include "IsoTLSDeallocatorEntryInlines.h" #include "IsoTLSEntryInlines.h" #include "IsoTLSInlines.h" namespace bmalloc { namespace api { template<typename Type> void* IsoHeap<Type>::allocate() { bool abortOnFailure = true; return IsoTLS::allocate(*this, abortOnFailure); } template<typename Type> void* IsoHeap<Type>::tryAllocate() { bool abortOnFailure = false; return IsoTLS::allocate(*this, abortOnFailure); } template<typename Type> void IsoHeap<Type>::deallocate(void* p) { IsoTLS::deallocate(*this, p); } template<typename Type> void IsoHeap<Type>::scavenge() { IsoTLS::scavenge(*this); } template<typename Type> bool IsoHeap<Type>::isInitialized() { auto* atomic = reinterpret_cast<std::atomic<IsoHeapImpl<Config>*>*>(&m_impl); return atomic->load(std::memory_order_acquire); } template<typename Type> void IsoHeap<Type>::initialize() { // We are using m_impl field as a guard variable of the initialization of IsoHeap. // IsoHeap::isInitialized gets m_impl with "acquire", and IsoHeap::initialize stores // the value to m_impl with "release". To make IsoHeap changes visible to any threads // when IsoHeap::isInitialized returns true, we need to store the value to m_impl *after* // all the initialization finishes. auto* heap = new IsoHeapImpl<Config>(); setAllocatorOffset(heap->allocatorOffset()); setDeallocatorOffset(heap->deallocatorOffset()); auto* atomic = reinterpret_cast<std::atomic<IsoHeapImpl<Config>*>*>(&m_impl); atomic->store(heap, std::memory_order_release); } template<typename Type> auto IsoHeap<Type>::impl() -> IsoHeapImpl<Config>& { IsoTLS::ensureHeap(*this); return *m_impl; } // This is most appropraite for template classes. #define MAKE_BISO_MALLOCED_INLINE(isoType) \ public: \ static ::bmalloc::api::IsoHeap<isoType>& bisoHeap() \ { \ static ::bmalloc::api::IsoHeap<isoType> heap; \ return heap; \ } \ \ void* operator new(size_t, void* p) { return p; } \ void* operator new[](size_t, void* p) { return p; } \ \ void* operator new(size_t size) \ { \ RELEASE_BASSERT(size == sizeof(isoType)); \ return bisoHeap().allocate(); \ } \ \ void operator delete(void* p) \ { \ bisoHeap().deallocate(p); \ } \ \ void* operator new[](size_t size) = delete; \ void operator delete[](void* p) = delete; \ using webkitFastMalloced = int; \ private: \ using __makeBisoMallocedInlineMacroSemicolonifier = int #define MAKE_BISO_MALLOCED_IMPL(isoType) \ ::bmalloc::api::IsoHeap<isoType>& isoType::bisoHeap() \ { \ static ::bmalloc::api::IsoHeap<isoType> heap; \ return heap; \ } \ \ void* isoType::operator new(size_t size) \ { \ RELEASE_BASSERT(size == sizeof(isoType)); \ return bisoHeap().allocate(); \ } \ \ void isoType::operator delete(void* p) \ { \ bisoHeap().deallocate(p); \ } \ \ struct MakeBisoMallocedImplMacroSemicolonifier##isoType { } #define MAKE_BISO_MALLOCED_IMPL_TEMPLATE(isoType) \ template<> \ ::bmalloc::api::IsoHeap<isoType>& isoType::bisoHeap() \ { \ static ::bmalloc::api::IsoHeap<isoType> heap; \ return heap; \ } \ \ template<> \ void* isoType::operator new(size_t size) \ { \ RELEASE_BASSERT(size == sizeof(isoType)); \ return bisoHeap().allocate(); \ } \ \ template<> \ void isoType::operator delete(void* p) \ { \ bisoHeap().deallocate(p); \ } \ \ struct MakeBisoMallocedImplMacroSemicolonifier##isoType { } } } // namespace bmalloc::api
40.16
127
(translation_unit) "/*\n * Copyright (C) 2017 Apple Inc. All rights reserved.\n *\n * Redistribution and use in source and binary forms, with or without\n * modification, are permitted provided that the following conditions\n * are met:\n * 1. Redistributions of source code must retain the above copyright\n * notice, this list of conditions and the following disclaimer.\n * 2. Redistributions in binary form must reproduce the above copyright\n * notice, this list of conditions and the following disclaimer in the\n * documentation and/or other materials provided with the distribution.\n *\n * THIS SOFTWARE IS PROVIDED BY APPLE INC. ``AS IS'' AND ANY\n * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE\n * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR\n * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL APPLE INC. OR\n * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,\n * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,\n * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR\n * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY\n * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT\n * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE\n * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. \n */\n\n#pragma once\n\n#include "DeferredDecommitInlines.h"\n#include "DeferredTriggerInlines.h"\n#include "EligibilityResultInlines.h"\n#include "FreeListInlines.h"\n#include "IsoAllocatorInlines.h"\n#include "IsoDeallocatorInlines.h"\n#include "IsoDirectoryInlines.h"\n#include "IsoDirectoryPageInlines.h"\n#include "IsoHeapImplInlines.h"\n#include "IsoHeap.h"\n#include "IsoPageInlines.h"\n#include "IsoTLSAllocatorEntryInlines.h"\n#include "IsoTLSDeallocatorEntryInlines.h"\n#include "IsoTLSEntryInlines.h"\n#include "IsoTLSInlines.h"\n\nnamespace bmalloc { namespace api {\n\ntemplate<typename Type>\nvoid* IsoHeap<Type>::allocate()\n{\n bool abortOnFailure = true;\n return IsoTLS::allocate(*this, abortOnFailure);\n}\n\ntemplate<typename Type>\nvoid* IsoHeap<Type>::tryAllocate()\n{\n bool abortOnFailure = false;\n return IsoTLS::allocate(*this, abortOnFailure);\n}\n\ntemplate<typename Type>\nvoid IsoHeap<Type>::deallocate(void* p)\n{\n IsoTLS::deallocate(*this, p);\n}\n\ntemplate<typename Type>\nvoid IsoHeap<Type>::scavenge()\n{\n IsoTLS::scavenge(*this);\n}\n\ntemplate<typename Type>\nbool IsoHeap<Type>::isInitialized()\n{\n auto* atomic = reinterpret_cast<std::atomic<IsoHeapImpl<Config>*>*>(&m_impl);\n return atomic->load(std::memory_order_acquire);\n}\n\ntemplate<typename Type>\nvoid IsoHeap<Type>::initialize()\n{\n // We are using m_impl field as a guard variable of the initialization of IsoHeap.\n // IsoHeap::isInitialized gets m_impl with "acquire", and IsoHeap::initialize stores\n // the value to m_impl with "release". To make IsoHeap changes visible to any threads\n // when IsoHeap::isInitialized returns true, we need to store the value to m_impl *after*\n // all the initialization finishes.\n auto* heap = new IsoHeapImpl<Config>();\n setAllocatorOffset(heap->allocatorOffset());\n setDeallocatorOffset(heap->deallocatorOffset());\n auto* atomic = reinterpret_cast<std::atomic<IsoHeapImpl<Config>*>*>(&m_impl);\n atomic->store(heap, std::memory_order_release);\n}\n\ntemplate<typename Type>\nauto IsoHeap<Type>::impl() -> IsoHeapImpl<Config>&\n{\n IsoTLS::ensureHeap(*this);\n return *m_impl;\n}\n\n// This is most appropraite for template classes.\n#define MAKE_BISO_MALLOCED_INLINE(isoType) \\npublic: \\n static ::bmalloc::api::IsoHeap<isoType>& bisoHeap() \\n { \\n static ::bmalloc::api::IsoHeap<isoType> heap; \\n return heap; \\n } \\n \\n void* operator new(size_t, void* p) { return p; } \\n void* operator new[](size_t, void* p) { return p; } \\n \\n void* operator new(size_t size) \\n { \\n RELEASE_BASSERT(size == sizeof(isoType)); \\n return bisoHeap().allocate(); \\n } \\n \\n void operator delete(void* p) \\n { \\n bisoHeap().deallocate(p); \\n } \\n \\n void* operator new[](size_t size) = delete; \\n void operator delete[](void* p) = delete; \\nusing webkitFastMalloced = int; \\nprivate: \\nusing __makeBisoMallocedInlineMacroSemicolonifier = int\n\n#define MAKE_BISO_MALLOCED_IMPL(isoType) \\n::bmalloc::api::IsoHeap<isoType>& isoType::bisoHeap() \\n{ \\n static ::bmalloc::api::IsoHeap<isoType> heap; \\n return heap; \\n} \\n\\nvoid* isoType::operator new(size_t size) \\n{ \\n RELEASE_BASSERT(size == sizeof(isoType)); \\n return bisoHeap().allocate(); \\n} \\n\\nvoid isoType::operator delete(void* p) \\n{ \\n bisoHeap().deallocate(p); \\n} \\n\\nstruct MakeBisoMallocedImplMacroSemicolonifier##isoType { }\n\n#define MAKE_BISO_MALLOCED_IMPL_TEMPLATE(isoType) \\ntemplate<> \\n::bmalloc::api::IsoHeap<isoType>& isoType::bisoHeap() \\n{ \\n static ::bmalloc::api::IsoHeap<isoType> heap; \\n return heap; \\n} \\n\\ntemplate<> \\nvoid* isoType::operator new(size_t size) \\n{ \\n RELEASE_BASSERT(size == sizeof(isoType)); \\n return bisoHeap().allocate(); \\n} \\n\\ntemplate<> \\nvoid isoType::operator delete(void* p) \\n{ \\n bisoHeap().deallocate(p); \\n} \\n\\nstruct MakeBisoMallocedImplMacroSemicolonifier##isoType { }\n\n} } // namespace bmalloc::api\n\n" (comment) "/*\n * Copyright (C) 2017 Apple Inc. All rights reserved.\n *\n * Redistribution and use in source and binary forms, with or without\n * modification, are permitted provided that the following conditions\n * are met:\n * 1. Redistributions of source code must retain the above copyright\n * notice, this list of conditions and the following disclaimer.\n * 2. Redistributions in binary form must reproduce the above copyright\n * notice, this list of conditions and the following disclaimer in the\n * documentation and/or other materials provided with the distribution.\n *\n * THIS SOFTWARE IS PROVIDED BY APPLE INC. ``AS IS'' AND ANY\n * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE\n * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR\n * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL APPLE INC. OR\n * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,\n * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,\n * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR\n * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY\n * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT\n * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE\n * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. \n */" (preproc_call) "#pragma once\n" (preproc_directive) "#pragma" (preproc_arg) "once" (preproc_include) "#include "DeferredDecommitInlines.h"\n" (#include) "#include" (string_literal) ""DeferredDecommitInlines.h"" (") """ (string_content) "DeferredDecommitInlines.h" (") """ (preproc_include) "#include "DeferredTriggerInlines.h"\n" (#include) "#include" (string_literal) ""DeferredTriggerInlines.h"" (") """ (string_content) "DeferredTriggerInlines.h" (") """ (preproc_include) "#include "EligibilityResultInlines.h"\n" (#include) "#include" (string_literal) ""EligibilityResultInlines.h"" (") """ (string_content) "EligibilityResultInlines.h" (") """ (preproc_include) "#include "FreeListInlines.h"\n" (#include) "#include" (string_literal) ""FreeListInlines.h"" (") """ (string_content) "FreeListInlines.h" (") """ (preproc_include) "#include "IsoAllocatorInlines.h"\n" (#include) "#include" (string_literal) ""IsoAllocatorInlines.h"" (") """ (string_content) "IsoAllocatorInlines.h" (") """ (preproc_include) "#include "IsoDeallocatorInlines.h"\n" (#include) "#include" (string_literal) ""IsoDeallocatorInlines.h"" (") """ (string_content) "IsoDeallocatorInlines.h" (") """ (preproc_include) "#include "IsoDirectoryInlines.h"\n" (#include) "#include" (string_literal) ""IsoDirectoryInlines.h"" (") """ (string_content) "IsoDirectoryInlines.h" (") """ (preproc_include) "#include "IsoDirectoryPageInlines.h"\n" (#include) "#include" (string_literal) ""IsoDirectoryPageInlines.h"" (") """ (string_content) "IsoDirectoryPageInlines.h" (") """ (preproc_include) "#include "IsoHeapImplInlines.h"\n" (#include) "#include" (string_literal) ""IsoHeapImplInlines.h"" (") """ (string_content) "IsoHeapImplInlines.h" (") """ (preproc_include) "#include "IsoHeap.h"\n" (#include) "#include" (string_literal) ""IsoHeap.h"" (") """ (string_content) "IsoHeap.h" (") """ (preproc_include) "#include "IsoPageInlines.h"\n" (#include) "#include" (string_literal) ""IsoPageInlines.h"" (") """ (string_content) "IsoPageInlines.h" (") """ (preproc_include) "#include "IsoTLSAllocatorEntryInlines.h"\n" (#include) "#include" (string_literal) ""IsoTLSAllocatorEntryInlines.h"" (") """ (string_content) "IsoTLSAllocatorEntryInlines.h" (") """ (preproc_include) "#include "IsoTLSDeallocatorEntryInlines.h"\n" (#include) "#include" (string_literal) ""IsoTLSDeallocatorEntryInlines.h"" (") """ (string_content) "IsoTLSDeallocatorEntryInlines.h" (") """ (preproc_include) "#include "IsoTLSEntryInlines.h"\n" (#include) "#include" (string_literal) ""IsoTLSEntryInlines.h"" (") """ (string_content) "IsoTLSEntryInlines.h" (") """ (preproc_include) "#include "IsoTLSInlines.h"\n" (#include) "#include" (string_literal) ""IsoTLSInlines.h"" (") """ (string_content) "IsoTLSInlines.h" (") """ (function_definition) "namespace bmalloc { namespace api {\n\ntemplate<typename Type>\nvoid* IsoHeap<Type>::allocate()\n{\n bool abortOnFailure = true;\n return IsoTLS::allocate(*this, abortOnFailure);\n}\n\ntemplate<typename Type>\nvoid* IsoHeap<Type>::tryAllocate()\n{\n bool abortOnFailure = false;\n return IsoTLS::allocate(*this, abortOnFailure);\n}\n\ntemplate<typename Type>\nvoid IsoHeap<Type>::deallocate(void* p)\n{\n IsoTLS::deallocate(*this, p);\n}\n\ntemplate<typename Type>\nvoid IsoHeap<Type>::scavenge()\n{\n IsoTLS::scavenge(*this);\n}\n\ntemplate<typename Type>\nbool IsoHeap<Type>::isInitialized()\n{\n auto* atomic = reinterpret_cast<std::atomic<IsoHeapImpl<Config>*>*>(&m_impl);\n return atomic->load(std::memory_order_acquire);\n}\n\ntemplate<typename Type>\nvoid IsoHeap<Type>::initialize()\n{\n // We are using m_impl field as a guard variable of the initialization of IsoHeap.\n // IsoHeap::isInitialized gets m_impl with "acquire", and IsoHeap::initialize stores\n // the value to m_impl with "release". To make IsoHeap changes visible to any threads\n // when IsoHeap::isInitialized returns true, we need to store the value to m_impl *after*\n // all the initialization finishes.\n auto* heap = new IsoHeapImpl<Config>();\n setAllocatorOffset(heap->allocatorOffset());\n setDeallocatorOffset(heap->deallocatorOffset());\n auto* atomic = reinterpret_cast<std::atomic<IsoHeapImpl<Config>*>*>(&m_impl);\n atomic->store(heap, std::memory_order_release);\n}\n\ntemplate<typename Type>\nauto IsoHeap<Type>::impl() -> IsoHeapImpl<Config>&\n{\n IsoTLS::ensureHeap(*this);\n return *m_impl;\n}\n\n// This is most appropraite for template classes.\n#define MAKE_BISO_MALLOCED_INLINE(isoType) \\npublic: \\n static ::bmalloc::api::IsoHeap<isoType>& bisoHeap() \\n { \\n static ::bmalloc::api::IsoHeap<isoType> heap; \\n return heap; \\n } \\n \\n void* operator new(size_t, void* p) { return p; } \\n void* operator new[](size_t, void* p) { return p; } \\n \\n void* operator new(size_t size) \\n { \\n RELEASE_BASSERT(size == sizeof(isoType)); \\n return bisoHeap().allocate(); \\n } \\n \\n void operator delete(void* p) \\n { \\n bisoHeap().deallocate(p); \\n } \\n \\n void* operator new[](size_t size) = delete; \\n void operator delete[](void* p) = delete; \\nusing webkitFastMalloced = int; \\nprivate: \\nusing __makeBisoMallocedInlineMacroSemicolonifier = int\n\n#define MAKE_BISO_MALLOCED_IMPL(isoType) \\n::bmalloc::api::IsoHeap<isoType>& isoType::bisoHeap() \\n{ \\n static ::bmalloc::api::IsoHeap<isoType> heap; \\n return heap; \\n} \\n\\nvoid* isoType::operator new(size_t size) \\n{ \\n RELEASE_BASSERT(size == sizeof(isoType)); \\n return bisoHeap().allocate(); \\n} \\n\\nvoid isoType::operator delete(void* p) \\n{ \\n bisoHeap().deallocate(p); \\n} \\n\\nstruct MakeBisoMallocedImplMacroSemicolonifier##isoType { }\n\n#define MAKE_BISO_MALLOCED_IMPL_TEMPLATE(isoType) \\ntemplate<> \\n::bmalloc::api::IsoHeap<isoType>& isoType::bisoHeap() \\n{ \\n static ::bmalloc::api::IsoHeap<isoType> heap; \\n return heap; \\n} \\n\\ntemplate<> \\nvoid* isoType::operator new(size_t size) \\n{ \\n RELEASE_BASSERT(size == sizeof(isoType)); \\n return bisoHeap().allocate(); \\n} \\n\\ntemplate<> \\nvoid isoType::operator delete(void* p) \\n{ \\n bisoHeap().deallocate(p); \\n} \\n\\nstruct MakeBisoMallocedImplMacroSemicolonifier##isoType { }\n\n} }" (type_identifier) "namespace" (identifier) "bmalloc" (compound_statement) "{ namespace api {\n\ntemplate<typename Type>\nvoid* IsoHeap<Type>::allocate()\n{\n bool abortOnFailure = true;\n return IsoTLS::allocate(*this, abortOnFailure);\n}\n\ntemplate<typename Type>\nvoid* IsoHeap<Type>::tryAllocate()\n{\n bool abortOnFailure = false;\n return IsoTLS::allocate(*this, abortOnFailure);\n}\n\ntemplate<typename Type>\nvoid IsoHeap<Type>::deallocate(void* p)\n{\n IsoTLS::deallocate(*this, p);\n}\n\ntemplate<typename Type>\nvoid IsoHeap<Type>::scavenge()\n{\n IsoTLS::scavenge(*this);\n}\n\ntemplate<typename Type>\nbool IsoHeap<Type>::isInitialized()\n{\n auto* atomic = reinterpret_cast<std::atomic<IsoHeapImpl<Config>*>*>(&m_impl);\n return atomic->load(std::memory_order_acquire);\n}\n\ntemplate<typename Type>\nvoid IsoHeap<Type>::initialize()\n{\n // We are using m_impl field as a guard variable of the initialization of IsoHeap.\n // IsoHeap::isInitialized gets m_impl with "acquire", and IsoHeap::initialize stores\n // the value to m_impl with "release". To make IsoHeap changes visible to any threads\n // when IsoHeap::isInitialized returns true, we need to store the value to m_impl *after*\n // all the initialization finishes.\n auto* heap = new IsoHeapImpl<Config>();\n setAllocatorOffset(heap->allocatorOffset());\n setDeallocatorOffset(heap->deallocatorOffset());\n auto* atomic = reinterpret_cast<std::atomic<IsoHeapImpl<Config>*>*>(&m_impl);\n atomic->store(heap, std::memory_order_release);\n}\n\ntemplate<typename Type>\nauto IsoHeap<Type>::impl() -> IsoHeapImpl<Config>&\n{\n IsoTLS::ensureHeap(*this);\n return *m_impl;\n}\n\n// This is most appropraite for template classes.\n#define MAKE_BISO_MALLOCED_INLINE(isoType) \\npublic: \\n static ::bmalloc::api::IsoHeap<isoType>& bisoHeap() \\n { \\n static ::bmalloc::api::IsoHeap<isoType> heap; \\n return heap; \\n } \\n \\n void* operator new(size_t, void* p) { return p; } \\n void* operator new[](size_t, void* p) { return p; } \\n \\n void* operator new(size_t size) \\n { \\n RELEASE_BASSERT(size == sizeof(isoType)); \\n return bisoHeap().allocate(); \\n } \\n \\n void operator delete(void* p) \\n { \\n bisoHeap().deallocate(p); \\n } \\n \\n void* operator new[](size_t size) = delete; \\n void operator delete[](void* p) = delete; \\nusing webkitFastMalloced = int; \\nprivate: \\nusing __makeBisoMallocedInlineMacroSemicolonifier = int\n\n#define MAKE_BISO_MALLOCED_IMPL(isoType) \\n::bmalloc::api::IsoHeap<isoType>& isoType::bisoHeap() \\n{ \\n static ::bmalloc::api::IsoHeap<isoType> heap; \\n return heap; \\n} \\n\\nvoid* isoType::operator new(size_t size) \\n{ \\n RELEASE_BASSERT(size == sizeof(isoType)); \\n return bisoHeap().allocate(); \\n} \\n\\nvoid isoType::operator delete(void* p) \\n{ \\n bisoHeap().deallocate(p); \\n} \\n\\nstruct MakeBisoMallocedImplMacroSemicolonifier##isoType { }\n\n#define MAKE_BISO_MALLOCED_IMPL_TEMPLATE(isoType) \\ntemplate<> \\n::bmalloc::api::IsoHeap<isoType>& isoType::bisoHeap() \\n{ \\n static ::bmalloc::api::IsoHeap<isoType> heap; \\n return heap; \\n} \\n\\ntemplate<> \\nvoid* isoType::operator new(size_t size) \\n{ \\n RELEASE_BASSERT(size == sizeof(isoType)); \\n return bisoHeap().allocate(); \\n} \\n\\ntemplate<> \\nvoid isoType::operator delete(void* p) \\n{ \\n bisoHeap().deallocate(p); \\n} \\n\\nstruct MakeBisoMallocedImplMacroSemicolonifier##isoType { }\n\n} }" ({) "{" (function_definition) "namespace api {\n\ntemplate<typename Type>\nvoid* IsoHeap<Type>::allocate()\n{\n bool abortOnFailure = true;\n return IsoTLS::allocate(*this, abortOnFailure);\n}\n\ntemplate<typename Type>\nvoid* IsoHeap<Type>::tryAllocate()\n{\n bool abortOnFailure = false;\n return IsoTLS::allocate(*this, abortOnFailure);\n}\n\ntemplate<typename Type>\nvoid IsoHeap<Type>::deallocate(void* p)\n{\n IsoTLS::deallocate(*this, p);\n}\n\ntemplate<typename Type>\nvoid IsoHeap<Type>::scavenge()\n{\n IsoTLS::scavenge(*this);\n}\n\ntemplate<typename Type>\nbool IsoHeap<Type>::isInitialized()\n{\n auto* atomic = reinterpret_cast<std::atomic<IsoHeapImpl<Config>*>*>(&m_impl);\n return atomic->load(std::memory_order_acquire);\n}\n\ntemplate<typename Type>\nvoid IsoHeap<Type>::initialize()\n{\n // We are using m_impl field as a guard variable of the initialization of IsoHeap.\n // IsoHeap::isInitialized gets m_impl with "acquire", and IsoHeap::initialize stores\n // the value to m_impl with "release". To make IsoHeap changes visible to any threads\n // when IsoHeap::isInitialized returns true, we need to store the value to m_impl *after*\n // all the initialization finishes.\n auto* heap = new IsoHeapImpl<Config>();\n setAllocatorOffset(heap->allocatorOffset());\n setDeallocatorOffset(heap->deallocatorOffset());\n auto* atomic = reinterpret_cast<std::atomic<IsoHeapImpl<Config>*>*>(&m_impl);\n atomic->store(heap, std::memory_order_release);\n}\n\ntemplate<typename Type>\nauto IsoHeap<Type>::impl() -> IsoHeapImpl<Config>&\n{\n IsoTLS::ensureHeap(*this);\n return *m_impl;\n}\n\n// This is most appropraite for template classes.\n#define MAKE_BISO_MALLOCED_INLINE(isoType) \\npublic: \\n static ::bmalloc::api::IsoHeap<isoType>& bisoHeap() \\n { \\n static ::bmalloc::api::IsoHeap<isoType> heap; \\n return heap; \\n } \\n \\n void* operator new(size_t, void* p) { return p; } \\n void* operator new[](size_t, void* p) { return p; } \\n \\n void* operator new(size_t size) \\n { \\n RELEASE_BASSERT(size == sizeof(isoType)); \\n return bisoHeap().allocate(); \\n } \\n \\n void operator delete(void* p) \\n { \\n bisoHeap().deallocate(p); \\n } \\n \\n void* operator new[](size_t size) = delete; \\n void operator delete[](void* p) = delete; \\nusing webkitFastMalloced = int; \\nprivate: \\nusing __makeBisoMallocedInlineMacroSemicolonifier = int\n\n#define MAKE_BISO_MALLOCED_IMPL(isoType) \\n::bmalloc::api::IsoHeap<isoType>& isoType::bisoHeap() \\n{ \\n static ::bmalloc::api::IsoHeap<isoType> heap; \\n return heap; \\n} \\n\\nvoid* isoType::operator new(size_t size) \\n{ \\n RELEASE_BASSERT(size == sizeof(isoType)); \\n return bisoHeap().allocate(); \\n} \\n\\nvoid isoType::operator delete(void* p) \\n{ \\n bisoHeap().deallocate(p); \\n} \\n\\nstruct MakeBisoMallocedImplMacroSemicolonifier##isoType { }\n\n#define MAKE_BISO_MALLOCED_IMPL_TEMPLATE(isoType) \\ntemplate<> \\n::bmalloc::api::IsoHeap<isoType>& isoType::bisoHeap() \\n{ \\n static ::bmalloc::api::IsoHeap<isoType> heap; \\n return heap; \\n} \\n\\ntemplate<> \\nvoid* isoType::operator new(size_t size) \\n{ \\n RELEASE_BASSERT(size == sizeof(isoType)); \\n return bisoHeap().allocate(); \\n} \\n\\ntemplate<> \\nvoid isoType::operator delete(void* p) \\n{ \\n bisoHeap().deallocate(p); \\n} \\n\\nstruct MakeBisoMallocedImplMacroSemicolonifier##isoType { }\n\n}" (type_identifier) "namespace" (identifier) "api" (compound_statement) "{\n\ntemplate<typename Type>\nvoid* IsoHeap<Type>::allocate()\n{\n bool abortOnFailure = true;\n return IsoTLS::allocate(*this, abortOnFailure);\n}\n\ntemplate<typename Type>\nvoid* IsoHeap<Type>::tryAllocate()\n{\n bool abortOnFailure = false;\n return IsoTLS::allocate(*this, abortOnFailure);\n}\n\ntemplate<typename Type>\nvoid IsoHeap<Type>::deallocate(void* p)\n{\n IsoTLS::deallocate(*this, p);\n}\n\ntemplate<typename Type>\nvoid IsoHeap<Type>::scavenge()\n{\n IsoTLS::scavenge(*this);\n}\n\ntemplate<typename Type>\nbool IsoHeap<Type>::isInitialized()\n{\n auto* atomic = reinterpret_cast<std::atomic<IsoHeapImpl<Config>*>*>(&m_impl);\n return atomic->load(std::memory_order_acquire);\n}\n\ntemplate<typename Type>\nvoid IsoHeap<Type>::initialize()\n{\n // We are using m_impl field as a guard variable of the initialization of IsoHeap.\n // IsoHeap::isInitialized gets m_impl with "acquire", and IsoHeap::initialize stores\n // the value to m_impl with "release". To make IsoHeap changes visible to any threads\n // when IsoHeap::isInitialized returns true, we need to store the value to m_impl *after*\n // all the initialization finishes.\n auto* heap = new IsoHeapImpl<Config>();\n setAllocatorOffset(heap->allocatorOffset());\n setDeallocatorOffset(heap->deallocatorOffset());\n auto* atomic = reinterpret_cast<std::atomic<IsoHeapImpl<Config>*>*>(&m_impl);\n atomic->store(heap, std::memory_order_release);\n}\n\ntemplate<typename Type>\nauto IsoHeap<Type>::impl() -> IsoHeapImpl<Config>&\n{\n IsoTLS::ensureHeap(*this);\n return *m_impl;\n}\n\n// This is most appropraite for template classes.\n#define MAKE_BISO_MALLOCED_INLINE(isoType) \\npublic: \\n static ::bmalloc::api::IsoHeap<isoType>& bisoHeap() \\n { \\n static ::bmalloc::api::IsoHeap<isoType> heap; \\n return heap; \\n } \\n \\n void* operator new(size_t, void* p) { return p; } \\n void* operator new[](size_t, void* p) { return p; } \\n \\n void* operator new(size_t size) \\n { \\n RELEASE_BASSERT(size == sizeof(isoType)); \\n return bisoHeap().allocate(); \\n } \\n \\n void operator delete(void* p) \\n { \\n bisoHeap().deallocate(p); \\n } \\n \\n void* operator new[](size_t size) = delete; \\n void operator delete[](void* p) = delete; \\nusing webkitFastMalloced = int; \\nprivate: \\nusing __makeBisoMallocedInlineMacroSemicolonifier = int\n\n#define MAKE_BISO_MALLOCED_IMPL(isoType) \\n::bmalloc::api::IsoHeap<isoType>& isoType::bisoHeap() \\n{ \\n static ::bmalloc::api::IsoHeap<isoType> heap; \\n return heap; \\n} \\n\\nvoid* isoType::operator new(size_t size) \\n{ \\n RELEASE_BASSERT(size == sizeof(isoType)); \\n return bisoHeap().allocate(); \\n} \\n\\nvoid isoType::operator delete(void* p) \\n{ \\n bisoHeap().deallocate(p); \\n} \\n\\nstruct MakeBisoMallocedImplMacroSemicolonifier##isoType { }\n\n#define MAKE_BISO_MALLOCED_IMPL_TEMPLATE(isoType) \\ntemplate<> \\n::bmalloc::api::IsoHeap<isoType>& isoType::bisoHeap() \\n{ \\n static ::bmalloc::api::IsoHeap<isoType> heap; \\n return heap; \\n} \\n\\ntemplate<> \\nvoid* isoType::operator new(size_t size) \\n{ \\n RELEASE_BASSERT(size == sizeof(isoType)); \\n return bisoHeap().allocate(); \\n} \\n\\ntemplate<> \\nvoid isoType::operator delete(void* p) \\n{ \\n bisoHeap().deallocate(p); \\n} \\n\\nstruct MakeBisoMallocedImplMacroSemicolonifier##isoType { }\n\n}" ({) "{" (expression_statement) "template<typename Type>\nvoid* IsoHeap<Type>::allocate()" (binary_expression) "template<typename Type>\nvoid* IsoHeap<Type>::allocate()" (binary_expression) "template<typename Type>\nvoid* IsoHeap<Type" (binary_expression) "template<typename Type>\nvoid* IsoHeap" (binary_expression) "template<typename" (identifier) "template" (<) "<" (identifier) "typename" (ERROR) "Type" (identifier) "Type" (>) ">" (binary_expression) "void* IsoHeap" (identifier) "void" (*) "*" (identifier) "IsoHeap" (<) "<" (identifier) "Type" (>) ">" (ERROR) "::" (:) ":" (:) ":" (call_expression) "allocate()" (identifier) "allocate" (argument_list) "()" (() "(" ()) ")" (;) "" (compound_statement) "{\n bool abortOnFailure = true;\n return IsoTLS::allocate(*this, abortOnFailure);\n}" ({) "{" (declaration) "bool abortOnFailure = true;" (primitive_type) "bool" (init_declarator) "abortOnFailure = true" (identifier) "abortOnFailure" (=) "=" (true) "true" (;) ";" (return_statement) "return IsoTLS::allocate(*this, abortOnFailure);" (return) "return" (ERROR) "IsoTLS::" (identifier) "IsoTLS" (:) ":" (:) ":" (call_expression) "allocate(*this, abortOnFailure)" (identifier) "allocate" (argument_list) "(*this, abortOnFailure)" (() "(" (pointer_expression) "*this" (*) "*" (identifier) "this" (,) "," (identifier) "abortOnFailure" ()) ")" (;) ";" (}) "}" (expression_statement) "template<typename Type>\nvoid* IsoHeap<Type>::tryAllocate()" (binary_expression) "template<typename Type>\nvoid* IsoHeap<Type>::tryAllocate()" (binary_expression) "template<typename Type>\nvoid* IsoHeap<Type" (binary_expression) "template<typename Type>\nvoid* IsoHeap" (binary_expression) "template<typename" (identifier) "template" (<) "<" (identifier) "typename" (ERROR) "Type" (identifier) "Type" (>) ">" (binary_expression) "void* IsoHeap" (identifier) "void" (*) "*" (identifier) "IsoHeap" (<) "<" (identifier) "Type" (>) ">" (ERROR) "::" (:) ":" (:) ":" (call_expression) "tryAllocate()" (identifier) "tryAllocate" (argument_list) "()" (() "(" ()) ")" (;) "" (compound_statement) "{\n bool abortOnFailure = false;\n return IsoTLS::allocate(*this, abortOnFailure);\n}" ({) "{" (declaration) "bool abortOnFailure = false;" (primitive_type) "bool" (init_declarator) "abortOnFailure = false" (identifier) "abortOnFailure" (=) "=" (false) "false" (;) ";" (return_statement) "return IsoTLS::allocate(*this, abortOnFailure);" (return) "return" (ERROR) "IsoTLS::" (identifier) "IsoTLS" (:) ":" (:) ":" (call_expression) "allocate(*this, abortOnFailure)" (identifier) "allocate" (argument_list) "(*this, abortOnFailure)" (() "(" (pointer_expression) "*this" (*) "*" (identifier) "this" (,) "," (identifier) "abortOnFailure" ()) ")" (;) ";" (}) "}" (expression_statement) "template<typename Type>\nvoid IsoHeap<Type>::deallocate(void* p)" (binary_expression) "template<typename Type>\nvoid IsoHeap<Type>::deallocate(void* p)" (binary_expression) "template<typename Type>\nvoid IsoHeap<Type" (binary_expression) "template<typename Type>\nvoid IsoHeap" (binary_expression) "template<typename" (identifier) "template" (<) "<" (identifier) "typename" (ERROR) "Type" (identifier) "Type" (>) ">" (ERROR) "void" (identifier) "void" (identifier) "IsoHeap" (<) "<" (identifier) "Type" (>) ">" (ERROR) "::" (:) ":" (:) ":" (call_expression) "deallocate(void* p)" (identifier) "deallocate" (argument_list) "(void* p)" (() "(" (binary_expression) "void* p" (identifier) "void" (*) "*" (identifier) "p" ()) ")" (;) "" (compound_statement) "{\n IsoTLS::deallocate(*this, p);\n}" ({) "{" (labeled_statement) "IsoTLS::deallocate(*this, p);" (statement_identifier) "IsoTLS" (:) ":" (ERROR) ":" (:) ":" (expression_statement) "deallocate(*this, p);" (call_expression) "deallocate(*this, p)" (identifier) "deallocate" (argument_list) "(*this, p)" (() "(" (pointer_expression) "*this" (*) "*" (identifier) "this" (,) "," (identifier) "p" ()) ")" (;) ";" (}) "}" (expression_statement) "template<typename Type>\nvoid IsoHeap<Type>::scavenge()" (binary_expression) "template<typename Type>\nvoid IsoHeap<Type>::scavenge()" (binary_expression) "template<typename Type>\nvoid IsoHeap<Type" (binary_expression) "template<typename Type>\nvoid IsoHeap" (binary_expression) "template<typename" (identifier) "template" (<) "<" (identifier) "typename" (ERROR) "Type" (identifier) "Type" (>) ">" (ERROR) "void" (identifier) "void" (identifier) "IsoHeap" (<) "<" (identifier) "Type" (>) ">" (ERROR) "::" (:) ":" (:) ":" (call_expression) "scavenge()" (identifier) "scavenge" (argument_list) "()" (() "(" ()) ")" (;) "" (compound_statement) "{\n IsoTLS::scavenge(*this);\n}" ({) "{" (labeled_statement) "IsoTLS::scavenge(*this);" (statement_identifier) "IsoTLS" (:) ":" (ERROR) ":" (:) ":" (expression_statement) "scavenge(*this);" (call_expression) "scavenge(*this)" (identifier) "scavenge" (argument_list) "(*this)" (() "(" (pointer_expression) "*this" (*) "*" (identifier) "this" ()) ")" (;) ";" (}) "}" (expression_statement) "template<typename Type>\nbool IsoHeap<Type>::isInitialized()" (binary_expression) "template<typename Type>\nbool IsoHeap<Type>::isInitialized()" (binary_expression) "template<typename Type>\nbool IsoHeap<Type" (binary_expression) "template<typename Type>\nbool IsoHeap" (binary_expression) "template<typename" (identifier) "template" (<) "<" (identifier) "typename" (ERROR) "Type" (identifier) "Type" (>) ">" (ERROR) "bool" (identifier) "bool" (identifier) "IsoHeap" (<) "<" (identifier) "Type" (>) ">" (ERROR) "::" (:) ":" (:) ":" (call_expression) "isInitialized()" (identifier) "isInitialized" (argument_list) "()" (() "(" ()) ")" (;) "" (compound_statement) "{\n auto* atomic = reinterpret_cast<std::atomic<IsoHeapImpl<Config>*>*>(&m_impl);\n return atomic->load(std::memory_order_acquire);\n}" ({) "{" (ERROR) "auto* atomic = reinterpret_cast<std::" (storage_class_specifier) "auto" (auto) "auto" (assignment_expression) "* atomic = reinterpret_cast<std" (pointer_expression) "* atomic" (*) "*" (identifier) "atomic" (=) "=" (binary_expression) "reinterpret_cast<std" (identifier) "reinterpret_cast" (<) "<" (identifier) "std" (:) ":" (:) ":" (expression_statement) "atomic<IsoHeapImpl<Config>*>*>(&m_impl);" (binary_expression) "atomic<IsoHeapImpl<Config>*>*>(&m_impl)" (binary_expression) "atomic<IsoHeapImpl<Config>*>*" (binary_expression) "atomic<IsoHeapImpl<Config" (binary_expression) "atomic<IsoHeapImpl" (identifier) "atomic" (<) "<" (identifier) "IsoHeapImpl" (<) "<" (identifier) "Config" (>) ">" (pointer_expression) "*>*" (*) "*" (ERROR) ">" (>) ">" (pointer_expression) "*" (*) "*" (identifier) "" (>) ">" (parenthesized_expression) "(&m_impl)" (() "(" (pointer_expression) "&m_impl" (&) "&" (identifier) "m_impl" ()) ")" (;) ";" (return_statement) "return atomic->load(std::memory_order_acquire);" (return) "return" (call_expression) "atomic->load(std::memory_order_acquire)" (field_expression) "atomic->load" (identifier) "atomic" (->) "->" (field_identifier) "load" (argument_list) "(std::memory_order_acquire)" (() "(" (ERROR) "std::" (identifier) "std" (:) ":" (:) ":" (identifier) "memory_order_acquire" ()) ")" (;) ";" (}) "}" (expression_statement) "template<typename Type>\nvoid IsoHeap<Type>::initialize()" (binary_expression) "template<typename Type>\nvoid IsoHeap<Type>::initialize()" (binary_expression) "template<typename Type>\nvoid IsoHeap<Type" (binary_expression) "template<typename Type>\nvoid IsoHeap" (binary_expression) "template<typename" (identifier) "template" (<) "<" (identifier) "typename" (ERROR) "Type" (identifier) "Type" (>) ">" (ERROR) "void" (identifier) "void" (identifier) "IsoHeap" (<) "<" (identifier) "Type" (>) ">" (ERROR) "::" (:) ":" (:) ":" (call_expression) "initialize()" (identifier) "initialize" (argument_list) "()" (() "(" ()) ")" (;) "" (compound_statement) "{\n // We are using m_impl field as a guard variable of the initialization of IsoHeap.\n // IsoHeap::isInitialized gets m_impl with "acquire", and IsoHeap::initialize stores\n // the value to m_impl with "release". To make IsoHeap changes visible to any threads\n // when IsoHeap::isInitialized returns true, we need to store the value to m_impl *after*\n // all the initialization finishes.\n auto* heap = new IsoHeapImpl<Config>();\n setAllocatorOffset(heap->allocatorOffset());\n setDeallocatorOffset(heap->deallocatorOffset());\n auto* atomic = reinterpret_cast<std::atomic<IsoHeapImpl<Config>*>*>(&m_impl);\n atomic->store(heap, std::memory_order_release);\n}" ({) "{" (comment) "// We are using m_impl field as a guard variable of the initialization of IsoHeap." (comment) "// IsoHeap::isInitialized gets m_impl with "acquire", and IsoHeap::initialize stores" (comment) "// the value to m_impl with "release". To make IsoHeap changes visible to any threads" (comment) "// when IsoHeap::isInitialized returns true, we need to store the value to m_impl *after*" (comment) "// all the initialization finishes." (ERROR) "auto" (storage_class_specifier) "auto" (auto) "auto" (expression_statement) "* heap = new IsoHeapImpl<Config>();" (assignment_expression) "* heap = new IsoHeapImpl<Config>()" (pointer_expression) "* heap" (*) "*" (identifier) "heap" (=) "=" (ERROR) "new" (identifier) "new" (binary_expression) "IsoHeapImpl<Config>()" (binary_expression) "IsoHeapImpl<Config" (identifier) "IsoHeapImpl" (<) "<" (identifier) "Config" (>) ">" (parenthesized_expression) "()" (() "(" (identifier) "" ()) ")" (;) ";" (expression_statement) "setAllocatorOffset(heap->allocatorOffset());" (call_expression) "setAllocatorOffset(heap->allocatorOffset())" (identifier) "setAllocatorOffset" (argument_list) "(heap->allocatorOffset())" (() "(" (call_expression) "heap->allocatorOffset()" (field_expression) "heap->allocatorOffset" (identifier) "heap" (->) "->" (field_identifier) "allocatorOffset" (argument_list) "()" (() "(" ()) ")" ()) ")" (;) ";" (expression_statement) "setDeallocatorOffset(heap->deallocatorOffset());" (call_expression) "setDeallocatorOffset(heap->deallocatorOffset())" (identifier) "setDeallocatorOffset" (argument_list) "(heap->deallocatorOffset())" (() "(" (call_expression) "heap->deallocatorOffset()" (field_expression) "heap->deallocatorOffset" (identifier) "heap" (->) "->" (field_identifier) "deallocatorOffset" (argument_list) "()" (() "(" ()) ")" ()) ")" (;) ";" (ERROR) "auto* atomic = reinterpret_cast<std::" (storage_class_specifier) "auto" (auto) "auto" (assignment_expression) "* atomic = reinterpret_cast<std" (pointer_expression) "* atomic" (*) "*" (identifier) "atomic" (=) "=" (binary_expression) "reinterpret_cast<std" (identifier) "reinterpret_cast" (<) "<" (identifier) "std" (:) ":" (:) ":" (expression_statement) "atomic<IsoHeapImpl<Config>*>*>(&m_impl);" (binary_expression) "atomic<IsoHeapImpl<Config>*>*>(&m_impl)" (binary_expression) "atomic<IsoHeapImpl<Config>*>*" (binary_expression) "atomic<IsoHeapImpl<Config" (binary_expression) "atomic<IsoHeapImpl" (identifier) "atomic" (<) "<" (identifier) "IsoHeapImpl" (<) "<" (identifier) "Config" (>) ">" (pointer_expression) "*>*" (*) "*" (ERROR) ">" (>) ">" (pointer_expression) "*" (*) "*" (identifier) "" (>) ">" (parenthesized_expression) "(&m_impl)" (() "(" (pointer_expression) "&m_impl" (&) "&" (identifier) "m_impl" ()) ")" (;) ";" (expression_statement) "atomic->store(heap, std::memory_order_release);" (call_expression) "atomic->store(heap, std::memory_order_release)" (field_expression) "atomic->store" (identifier) "atomic" (->) "->" (field_identifier) "store" (argument_list) "(heap, std::memory_order_release)" (() "(" (identifier) "heap" (,) "," (ERROR) "std::" (identifier) "std" (:) ":" (:) ":" (identifier) "memory_order_release" ()) ")" (;) ";" (}) "}" (ERROR) "template<typename Type>\nauto IsoHeap<Type>::impl() -> IsoHeapImpl<Config>&" (binary_expression) "template<typename Type>\nauto IsoHeap<Type>::impl() -> IsoHeapImpl<Config" (binary_expression) "template<typename Type>\nauto IsoHeap<Type>::impl() -> IsoHeapImpl" (binary_expression) "template<typename Type>\nauto IsoHeap<Type" (binary_expression) "template<typename Type>\nauto IsoHeap" (binary_expression) "template<typename" (identifier) "template" (<) "<" (identifier) "typename" (ERROR) "Type" (identifier) "Type" (>) ">" (ERROR) "auto" (identifier) "auto" (identifier) "IsoHeap" (<) "<" (identifier) "Type" (>) ">" (ERROR) "::" (:) ":" (:) ":" (field_expression) "impl() -> IsoHeapImpl" (call_expression) "impl()" (identifier) "impl" (argument_list) "()" (() "(" ()) ")" (->) "->" (field_identifier) "IsoHeapImpl" (<) "<" (identifier) "Config" (>) ">" (&) "&" (compound_statement) "{\n IsoTLS::ensureHeap(*this);\n return *m_impl;\n}" ({) "{" (labeled_statement) "IsoTLS::ensureHeap(*this);" (statement_identifier) "IsoTLS" (:) ":" (ERROR) ":" (:) ":" (expression_statement) "ensureHeap(*this);" (call_expression) "ensureHeap(*this)" (identifier) "ensureHeap" (argument_list) "(*this)" (() "(" (pointer_expression) "*this" (*) "*" (identifier) "this" ()) ")" (;) ";" (return_statement) "return *m_impl;" (return) "return" (pointer_expression) "*m_impl" (*) "*" (identifier) "m_impl" (;) ";" (}) "}" (comment) "// This is most appropraite for template classes." (preproc_function_def) "#define MAKE_BISO_MALLOCED_INLINE(isoType) \\npublic: \\n static ::bmalloc::api::IsoHeap<isoType>& bisoHeap() \\n { \\n static ::bmalloc::api::IsoHeap<isoType> heap; \\n return heap; \\n } \\n \\n void* operator new(size_t, void* p) { return p; } \\n void* operator new[](size_t, void* p) { return p; } \\n \\n void* operator new(size_t size) \\n { \\n RELEASE_BASSERT(size == sizeof(isoType)); \\n return bisoHeap().allocate(); \\n } \\n \\n void operator delete(void* p) \\n { \\n bisoHeap().deallocate(p); \\n } \\n \\n void* operator new[](size_t size) = delete; \\n void operator delete[](void* p) = delete; \\nusing webkitFastMalloced = int; \\nprivate: \\nusing __makeBisoMallocedInlineMacroSemicolonifier = int\n" (#define) "#define" (identifier) "MAKE_BISO_MALLOCED_INLINE" (preproc_params) "(isoType)" (() "(" (identifier) "isoType" ()) ")" (preproc_arg) "public: \\n static ::bmalloc::api::IsoHeap<isoType>& bisoHeap() \\n { \\n static ::bmalloc::api::IsoHeap<isoType> heap; \\n return heap; \\n } \\n \\n void* operator new(size_t, void* p) { return p; } \\n void* operator new[](size_t, void* p) { return p; } \\n \\n void* operator new(size_t size) \\n { \\n RELEASE_BASSERT(size == sizeof(isoType)); \\n return bisoHeap().allocate(); \\n } \\n \\n void operator delete(void* p) \\n { \\n bisoHeap().deallocate(p); \\n } \\n \\n void* operator new[](size_t size) = delete; \\n void operator delete[](void* p) = delete; \\nusing webkitFastMalloced = int; \\nprivate: \\nusing __makeBisoMallocedInlineMacroSemicolonifier = int" (preproc_function_def) "#define MAKE_BISO_MALLOCED_IMPL(isoType) \\n::bmalloc::api::IsoHeap<isoType>& isoType::bisoHeap() \\n{ \\n static ::bmalloc::api::IsoHeap<isoType> heap; \\n return heap; \\n} \\n\\nvoid* isoType::operator new(size_t size) \\n{ \\n RELEASE_BASSERT(size == sizeof(isoType)); \\n return bisoHeap().allocate(); \\n} \\n\\nvoid isoType::operator delete(void* p) \\n{ \\n bisoHeap().deallocate(p); \\n} \\n\\nstruct MakeBisoMallocedImplMacroSemicolonifier##isoType { }\n" (#define) "#define" (identifier) "MAKE_BISO_MALLOCED_IMPL" (preproc_params) "(isoType)" (() "(" (identifier) "isoType" ()) ")" (preproc_arg) "::bmalloc::api::IsoHeap<isoType>& isoType::bisoHeap() \\n{ \\n static ::bmalloc::api::IsoHeap<isoType> heap; \\n return heap; \\n} \\n\\nvoid* isoType::operator new(size_t size) \\n{ \\n RELEASE_BASSERT(size == sizeof(isoType)); \\n return bisoHeap().allocate(); \\n} \\n\\nvoid isoType::operator delete(void* p) \\n{ \\n bisoHeap().deallocate(p); \\n} \\n\\nstruct MakeBisoMallocedImplMacroSemicolonifier##isoType { }" (preproc_function_def) "#define MAKE_BISO_MALLOCED_IMPL_TEMPLATE(isoType) \\ntemplate<> \\n::bmalloc::api::IsoHeap<isoType>& isoType::bisoHeap() \\n{ \\n static ::bmalloc::api::IsoHeap<isoType> heap; \\n return heap; \\n} \\n\\ntemplate<> \\nvoid* isoType::operator new(size_t size) \\n{ \\n RELEASE_BASSERT(size == sizeof(isoType)); \\n return bisoHeap().allocate(); \\n} \\n\\ntemplate<> \\nvoid isoType::operator delete(void* p) \\n{ \\n bisoHeap().deallocate(p); \\n} \\n\\nstruct MakeBisoMallocedImplMacroSemicolonifier##isoType { }\n" (#define) "#define" (identifier) "MAKE_BISO_MALLOCED_IMPL_TEMPLATE" (preproc_params) "(isoType)" (() "(" (identifier) "isoType" ()) ")" (preproc_arg) "template<> \\n::bmalloc::api::IsoHeap<isoType>& isoType::bisoHeap() \\n{ \\n static ::bmalloc::api::IsoHeap<isoType> heap; \\n return heap; \\n} \\n\\ntemplate<> \\nvoid* isoType::operator new(size_t size) \\n{ \\n RELEASE_BASSERT(size == sizeof(isoType)); \\n return bisoHeap().allocate(); \\n} \\n\\ntemplate<> \\nvoid isoType::operator delete(void* p) \\n{ \\n bisoHeap().deallocate(p); \\n} \\n\\nstruct MakeBisoMallocedImplMacroSemicolonifier##isoType { }" (}) "}" (}) "}" (comment) "// namespace bmalloc::api"
620
33
{"language": "c", "success": true, "metadata": {"lines": 127, "avg_line_length": 40.16, "nodes": 395, "errors": 0, "source_hash": "883e9f3413205c92217c06f18e3bf35f6190272031f49888c22529c763138b1e", "categorized_nodes": 267}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma once\n", "parent": null, "children": [1, 2], "start_point": {"row": 25, "column": 0}, "end_point": {"row": 26, "column": 0}}, {"id": 1, "type": "preproc_directive", "text": "#pragma", "parent": 0, "children": [], "start_point": {"row": 25, "column": 0}, "end_point": {"row": 25, "column": 7}}, {"id": 2, "type": "preproc_arg", "text": "once", "parent": 0, "children": [], "start_point": {"row": 25, "column": 8}, "end_point": {"row": 25, "column": 12}}, {"id": 3, "type": "preproc_include", "text": "#include \"DeferredDecommitInlines.h\"\n", "parent": null, "children": [4, 5], "start_point": {"row": 27, "column": 0}, "end_point": {"row": 28, "column": 0}}, {"id": 4, "type": "#include", "text": "#include", "parent": 3, "children": [], "start_point": {"row": 27, "column": 0}, "end_point": {"row": 27, "column": 8}}, {"id": 5, "type": "string_literal", "text": "\"DeferredDecommitInlines.h\"", "parent": 3, "children": [], "start_point": {"row": 27, "column": 9}, "end_point": {"row": 27, "column": 36}}, {"id": 6, "type": "preproc_include", "text": "#include \"DeferredTriggerInlines.h\"\n", "parent": null, "children": [7, 8], "start_point": {"row": 28, "column": 0}, "end_point": {"row": 29, "column": 0}}, {"id": 7, "type": "#include", "text": "#include", "parent": 6, "children": [], "start_point": {"row": 28, "column": 0}, "end_point": {"row": 28, "column": 8}}, {"id": 8, "type": "string_literal", "text": "\"DeferredTriggerInlines.h\"", "parent": 6, "children": [], "start_point": {"row": 28, "column": 9}, "end_point": {"row": 28, "column": 35}}, {"id": 9, "type": "preproc_include", "text": "#include \"EligibilityResultInlines.h\"\n", "parent": null, "children": [10, 11], "start_point": {"row": 29, "column": 0}, "end_point": {"row": 30, "column": 0}}, {"id": 10, "type": "#include", "text": "#include", "parent": 9, "children": [], "start_point": {"row": 29, "column": 0}, "end_point": {"row": 29, "column": 8}}, {"id": 11, "type": "string_literal", "text": "\"EligibilityResultInlines.h\"", "parent": 9, "children": [], "start_point": {"row": 29, "column": 9}, "end_point": {"row": 29, "column": 37}}, {"id": 12, "type": "preproc_include", "text": "#include \"FreeListInlines.h\"\n", "parent": null, "children": [13, 14], "start_point": {"row": 30, "column": 0}, "end_point": {"row": 31, "column": 0}}, {"id": 13, "type": "#include", "text": "#include", "parent": 12, "children": [], "start_point": {"row": 30, "column": 0}, "end_point": {"row": 30, "column": 8}}, {"id": 14, "type": "string_literal", "text": "\"FreeListInlines.h\"", "parent": 12, "children": [], "start_point": {"row": 30, "column": 9}, "end_point": {"row": 30, "column": 28}}, {"id": 15, "type": "preproc_include", "text": "#include \"IsoAllocatorInlines.h\"\n", "parent": null, "children": [16, 17], "start_point": {"row": 31, "column": 0}, "end_point": {"row": 32, "column": 0}}, {"id": 16, "type": "#include", "text": "#include", "parent": 15, "children": [], "start_point": {"row": 31, "column": 0}, "end_point": {"row": 31, "column": 8}}, {"id": 17, "type": "string_literal", "text": "\"IsoAllocatorInlines.h\"", "parent": 15, "children": [], "start_point": {"row": 31, "column": 9}, "end_point": {"row": 31, "column": 32}}, {"id": 18, "type": "preproc_include", "text": "#include \"IsoDeallocatorInlines.h\"\n", "parent": null, "children": [19, 20], "start_point": {"row": 32, "column": 0}, "end_point": {"row": 33, "column": 0}}, {"id": 19, "type": "#include", "text": "#include", "parent": 18, "children": [], "start_point": {"row": 32, "column": 0}, "end_point": {"row": 32, "column": 8}}, {"id": 20, "type": "string_literal", "text": "\"IsoDeallocatorInlines.h\"", "parent": 18, "children": [], "start_point": {"row": 32, "column": 9}, "end_point": {"row": 32, "column": 34}}, {"id": 21, "type": "preproc_include", "text": "#include \"IsoDirectoryInlines.h\"\n", "parent": null, "children": [22, 23], "start_point": {"row": 33, "column": 0}, "end_point": {"row": 34, "column": 0}}, {"id": 22, "type": "#include", "text": "#include", "parent": 21, "children": [], "start_point": {"row": 33, "column": 0}, "end_point": {"row": 33, "column": 8}}, {"id": 23, "type": "string_literal", "text": "\"IsoDirectoryInlines.h\"", "parent": 21, "children": [], "start_point": {"row": 33, "column": 9}, "end_point": {"row": 33, "column": 32}}, {"id": 24, "type": "preproc_include", "text": "#include \"IsoDirectoryPageInlines.h\"\n", "parent": null, "children": [25, 26], "start_point": {"row": 34, "column": 0}, "end_point": {"row": 35, "column": 0}}, {"id": 25, "type": "#include", "text": "#include", "parent": 24, "children": [], "start_point": {"row": 34, "column": 0}, "end_point": {"row": 34, "column": 8}}, {"id": 26, "type": "string_literal", "text": "\"IsoDirectoryPageInlines.h\"", "parent": 24, "children": [], "start_point": {"row": 34, "column": 9}, "end_point": {"row": 34, "column": 36}}, {"id": 27, "type": "preproc_include", "text": "#include \"IsoHeapImplInlines.h\"\n", "parent": null, "children": [28, 29], "start_point": {"row": 35, "column": 0}, "end_point": {"row": 36, "column": 0}}, {"id": 28, "type": "#include", "text": "#include", "parent": 27, "children": [], "start_point": {"row": 35, "column": 0}, "end_point": {"row": 35, "column": 8}}, {"id": 29, "type": "string_literal", "text": "\"IsoHeapImplInlines.h\"", "parent": 27, "children": [], "start_point": {"row": 35, "column": 9}, "end_point": {"row": 35, "column": 31}}, {"id": 30, "type": "preproc_include", "text": "#include \"IsoHeap.h\"\n", "parent": null, "children": [31, 32], "start_point": {"row": 36, "column": 0}, "end_point": {"row": 37, "column": 0}}, {"id": 31, "type": "#include", "text": "#include", "parent": 30, "children": [], "start_point": {"row": 36, "column": 0}, "end_point": {"row": 36, "column": 8}}, {"id": 32, "type": "string_literal", "text": "\"IsoHeap.h\"", "parent": 30, "children": [], "start_point": {"row": 36, "column": 9}, "end_point": {"row": 36, "column": 20}}, {"id": 33, "type": "preproc_include", "text": "#include \"IsoPageInlines.h\"\n", "parent": null, "children": [34, 35], "start_point": {"row": 37, "column": 0}, "end_point": {"row": 38, "column": 0}}, {"id": 34, "type": "#include", "text": "#include", "parent": 33, "children": [], "start_point": {"row": 37, "column": 0}, "end_point": {"row": 37, "column": 8}}, {"id": 35, "type": "string_literal", "text": "\"IsoPageInlines.h\"", "parent": 33, "children": [], "start_point": {"row": 37, "column": 9}, "end_point": {"row": 37, "column": 27}}, {"id": 36, "type": "preproc_include", "text": "#include \"IsoTLSAllocatorEntryInlines.h\"\n", "parent": null, "children": [37, 38], "start_point": {"row": 38, "column": 0}, "end_point": {"row": 39, "column": 0}}, {"id": 37, "type": "#include", "text": "#include", "parent": 36, "children": [], "start_point": {"row": 38, "column": 0}, "end_point": {"row": 38, "column": 8}}, {"id": 38, "type": "string_literal", "text": "\"IsoTLSAllocatorEntryInlines.h\"", "parent": 36, "children": [], "start_point": {"row": 38, "column": 9}, "end_point": {"row": 38, "column": 40}}, {"id": 39, "type": "preproc_include", "text": "#include \"IsoTLSDeallocatorEntryInlines.h\"\n", "parent": null, "children": [40, 41], "start_point": {"row": 39, "column": 0}, "end_point": {"row": 40, "column": 0}}, {"id": 40, "type": "#include", "text": "#include", "parent": 39, "children": [], "start_point": {"row": 39, "column": 0}, "end_point": {"row": 39, "column": 8}}, {"id": 41, "type": "string_literal", "text": "\"IsoTLSDeallocatorEntryInlines.h\"", "parent": 39, "children": [], "start_point": {"row": 39, "column": 9}, "end_point": {"row": 39, "column": 42}}, {"id": 42, "type": "preproc_include", "text": "#include \"IsoTLSEntryInlines.h\"\n", "parent": null, "children": [43, 44], "start_point": {"row": 40, "column": 0}, "end_point": {"row": 41, "column": 0}}, {"id": 43, "type": "#include", "text": "#include", "parent": 42, "children": [], "start_point": {"row": 40, "column": 0}, "end_point": {"row": 40, "column": 8}}, {"id": 44, "type": "string_literal", "text": "\"IsoTLSEntryInlines.h\"", "parent": 42, "children": [], "start_point": {"row": 40, "column": 9}, "end_point": {"row": 40, "column": 31}}, {"id": 45, "type": "preproc_include", "text": "#include \"IsoTLSInlines.h\"\n", "parent": null, "children": [46, 47], "start_point": {"row": 41, "column": 0}, "end_point": {"row": 42, "column": 0}}, {"id": 46, "type": "#include", "text": "#include", "parent": 45, "children": [], "start_point": {"row": 41, "column": 0}, "end_point": {"row": 41, "column": 8}}, {"id": 47, "type": "string_literal", "text": "\"IsoTLSInlines.h\"", "parent": 45, "children": [], "start_point": {"row": 41, "column": 9}, "end_point": {"row": 41, "column": 26}}, {"id": 48, "type": "function_definition", "text": "namespace bmalloc { namespace api {\n\ntemplate<typename Type>\nvoid* IsoHeap<Type>::allocate()\n{\n bool abortOnFailure = true;\n return IsoTLS::allocate(*this, abortOnFailure);\n}\n\ntemplate<typename Type>\nvoid* IsoHeap<Type>::tryAllocate()\n{\n bool abortOnFailure = false;\n return IsoTLS::allocate(*this, abortOnFailure);\n}\n\ntemplate<typename Type>\nvoid IsoHeap<Type>::deallocate(void* p)\n{\n IsoTLS::deallocate(*this, p);\n}\n\ntemplate<typename Type>\nvoid IsoHeap<Type>::scavenge()\n{\n IsoTLS::scavenge(*this);\n}\n\ntemplate<typename Type>\nbool IsoHeap<Type>::isInitialized()\n{\n auto* atomic = reinterpret_cast<std::atomic<IsoHeapImpl<Config>*>*>(&m_impl);\n return atomic->load(std::memory_order_acquire);\n}\n\ntemplate<typename Type>\nvoid IsoHeap<Type>::initialize()\n{\n // We are using m_impl field as a guard variable of the initialization of IsoHeap.\n // IsoHeap::isInitialized gets m_impl with \"acquire\", and IsoHeap::initialize stores\n // the value to m_impl with \"release\". To make IsoHeap changes visible to any threads\n // when IsoHeap::isInitialized returns true, we need to store the value to m_impl *after*\n // all the initialization finishes.\n auto* heap = new IsoHeapImpl<Config>();\n setAllocatorOffset(heap->allocatorOffset());\n setDeallocatorOffset(heap->deallocatorOffset());\n auto* atomic = reinterpret_cast<std::atomic<IsoHeapImpl<Config>*>*>(&m_impl);\n atomic->store(heap, std::memory_order_release);\n}\n\ntemplate<typename Type>\nauto IsoHeap<Type>::impl() -> IsoHeapImpl<Config>&\n{\n IsoTLS::ensureHeap(*this);\n return *m_impl;\n}\n\n// This is most appropraite for template classes.\n#define MAKE_BISO_MALLOCED_INLINE(isoType) \\\npublic: \\\n static ::bmalloc::api::IsoHeap<isoType>& bisoHeap() \\\n { \\\n static ::bmalloc::api::IsoHeap<isoType> heap; \\\n return heap; \\\n } \\\n \\\n void* operator new(size_t, void* p) { return p; } \\\n void* operator new[](size_t, void* p) { return p; } \\\n \\\n void* operator new(size_t size) \\\n { \\\n RELEASE_BASSERT(size == sizeof(isoType)); \\\n return bisoHeap().allocate(); \\\n } \\\n \\\n void operator delete(void* p) \\\n { \\\n bisoHeap().deallocate(p); \\\n } \\\n \\\n void* operator new[](size_t size) = delete; \\\n void operator delete[](void* p) = delete; \\\nusing webkitFastMalloced = int; \\\nprivate: \\\nusing __makeBisoMallocedInlineMacroSemicolonifier = int\n\n#define MAKE_BISO_MALLOCED_IMPL(isoType) \\\n::bmalloc::api::IsoHeap<isoType>& isoType::bisoHeap() \\\n{ \\\n static ::bmalloc::api::IsoHeap<isoType> heap; \\\n return heap; \\\n} \\\n\\\nvoid* isoType::operator new(size_t size) \\\n{ \\\n RELEASE_BASSERT(size == sizeof(isoType)); \\\n return bisoHeap().allocate(); \\\n} \\\n\\\nvoid isoType::operator delete(void* p) \\\n{ \\\n bisoHeap().deallocate(p); \\\n} \\\n\\\nstruct MakeBisoMallocedImplMacroSemicolonifier##isoType { }\n\n#define MAKE_BISO_MALLOCED_IMPL_TEMPLATE(isoType) \\\ntemplate<> \\\n::bmalloc::api::IsoHeap<isoType>& isoType::bisoHeap() \\\n{ \\\n static ::bmalloc::api::IsoHeap<isoType> heap; \\\n return heap; \\\n} \\\n\\\ntemplate<> \\\nvoid* isoType::operator new(size_t size) \\\n{ \\\n RELEASE_BASSERT(size == sizeof(isoType)); \\\n return bisoHeap().allocate(); \\\n} \\\n\\\ntemplate<> \\\nvoid isoType::operator delete(void* p) \\\n{ \\\n bisoHeap().deallocate(p); \\\n} \\\n\\\nstruct MakeBisoMallocedImplMacroSemicolonifier##isoType { }\n\n} }", "parent": null, "children": [49, 50], "start_point": {"row": 43, "column": 0}, "end_point": {"row": 172, "column": 3}}, {"id": 49, "type": "type_identifier", "text": "namespace", "parent": 48, "children": [], "start_point": {"row": 43, "column": 0}, "end_point": {"row": 43, "column": 9}}, {"id": 50, "type": "identifier", "text": "bmalloc", "parent": 48, "children": [], "start_point": {"row": 43, "column": 10}, "end_point": {"row": 43, "column": 17}}, {"id": 51, "type": "function_definition", "text": "namespace api {\n\ntemplate<typename Type>\nvoid* IsoHeap<Type>::allocate()\n{\n bool abortOnFailure = true;\n return IsoTLS::allocate(*this, abortOnFailure);\n}\n\ntemplate<typename Type>\nvoid* IsoHeap<Type>::tryAllocate()\n{\n bool abortOnFailure = false;\n return IsoTLS::allocate(*this, abortOnFailure);\n}\n\ntemplate<typename Type>\nvoid IsoHeap<Type>::deallocate(void* p)\n{\n IsoTLS::deallocate(*this, p);\n}\n\ntemplate<typename Type>\nvoid IsoHeap<Type>::scavenge()\n{\n IsoTLS::scavenge(*this);\n}\n\ntemplate<typename Type>\nbool IsoHeap<Type>::isInitialized()\n{\n auto* atomic = reinterpret_cast<std::atomic<IsoHeapImpl<Config>*>*>(&m_impl);\n return atomic->load(std::memory_order_acquire);\n}\n\ntemplate<typename Type>\nvoid IsoHeap<Type>::initialize()\n{\n // We are using m_impl field as a guard variable of the initialization of IsoHeap.\n // IsoHeap::isInitialized gets m_impl with \"acquire\", and IsoHeap::initialize stores\n // the value to m_impl with \"release\". To make IsoHeap changes visible to any threads\n // when IsoHeap::isInitialized returns true, we need to store the value to m_impl *after*\n // all the initialization finishes.\n auto* heap = new IsoHeapImpl<Config>();\n setAllocatorOffset(heap->allocatorOffset());\n setDeallocatorOffset(heap->deallocatorOffset());\n auto* atomic = reinterpret_cast<std::atomic<IsoHeapImpl<Config>*>*>(&m_impl);\n atomic->store(heap, std::memory_order_release);\n}\n\ntemplate<typename Type>\nauto IsoHeap<Type>::impl() -> IsoHeapImpl<Config>&\n{\n IsoTLS::ensureHeap(*this);\n return *m_impl;\n}\n\n// This is most appropraite for template classes.\n#define MAKE_BISO_MALLOCED_INLINE(isoType) \\\npublic: \\\n static ::bmalloc::api::IsoHeap<isoType>& bisoHeap() \\\n { \\\n static ::bmalloc::api::IsoHeap<isoType> heap; \\\n return heap; \\\n } \\\n \\\n void* operator new(size_t, void* p) { return p; } \\\n void* operator new[](size_t, void* p) { return p; } \\\n \\\n void* operator new(size_t size) \\\n { \\\n RELEASE_BASSERT(size == sizeof(isoType)); \\\n return bisoHeap().allocate(); \\\n } \\\n \\\n void operator delete(void* p) \\\n { \\\n bisoHeap().deallocate(p); \\\n } \\\n \\\n void* operator new[](size_t size) = delete; \\\n void operator delete[](void* p) = delete; \\\nusing webkitFastMalloced = int; \\\nprivate: \\\nusing __makeBisoMallocedInlineMacroSemicolonifier = int\n\n#define MAKE_BISO_MALLOCED_IMPL(isoType) \\\n::bmalloc::api::IsoHeap<isoType>& isoType::bisoHeap() \\\n{ \\\n static ::bmalloc::api::IsoHeap<isoType> heap; \\\n return heap; \\\n} \\\n\\\nvoid* isoType::operator new(size_t size) \\\n{ \\\n RELEASE_BASSERT(size == sizeof(isoType)); \\\n return bisoHeap().allocate(); \\\n} \\\n\\\nvoid isoType::operator delete(void* p) \\\n{ \\\n bisoHeap().deallocate(p); \\\n} \\\n\\\nstruct MakeBisoMallocedImplMacroSemicolonifier##isoType { }\n\n#define MAKE_BISO_MALLOCED_IMPL_TEMPLATE(isoType) \\\ntemplate<> \\\n::bmalloc::api::IsoHeap<isoType>& isoType::bisoHeap() \\\n{ \\\n static ::bmalloc::api::IsoHeap<isoType> heap; \\\n return heap; \\\n} \\\n\\\ntemplate<> \\\nvoid* isoType::operator new(size_t size) \\\n{ \\\n RELEASE_BASSERT(size == sizeof(isoType)); \\\n return bisoHeap().allocate(); \\\n} \\\n\\\ntemplate<> \\\nvoid isoType::operator delete(void* p) \\\n{ \\\n bisoHeap().deallocate(p); \\\n} \\\n\\\nstruct MakeBisoMallocedImplMacroSemicolonifier##isoType { }\n\n}", "parent": 48, "children": [52, 53], "start_point": {"row": 43, "column": 20}, "end_point": {"row": 172, "column": 1}}, {"id": 52, "type": "type_identifier", "text": "namespace", "parent": 51, "children": [], "start_point": {"row": 43, "column": 20}, "end_point": {"row": 43, "column": 29}}, {"id": 53, "type": "identifier", "text": "api", "parent": 51, "children": [], "start_point": {"row": 43, "column": 30}, "end_point": {"row": 43, "column": 33}}, {"id": 54, "type": "binary_expression", "text": "template<typename Type>\nvoid* IsoHeap<Type>::allocate()", "parent": 51, "children": [55, 70, 71], "start_point": {"row": 45, "column": 0}, "end_point": {"row": 46, "column": 31}}, {"id": 55, "type": "binary_expression", "text": "template<typename Type>\nvoid* IsoHeap<Type", "parent": 54, "children": [56, 68, 69], "start_point": {"row": 45, "column": 0}, "end_point": {"row": 46, "column": 18}}, {"id": 56, "type": "binary_expression", "text": "template<typename Type>\nvoid* IsoHeap", "parent": 55, "children": [57, 61, 63, 64], "start_point": {"row": 45, "column": 0}, "end_point": {"row": 46, "column": 13}}, {"id": 57, "type": "binary_expression", "text": "template<typename", "parent": 56, "children": [58, 59, 60], "start_point": {"row": 45, "column": 0}, "end_point": {"row": 45, "column": 17}}, {"id": 58, "type": "identifier", "text": "template", "parent": 57, "children": [], "start_point": {"row": 45, "column": 0}, "end_point": {"row": 45, "column": 8}}, {"id": 59, "type": "<", "text": "<", "parent": 57, "children": [], "start_point": {"row": 45, "column": 8}, "end_point": {"row": 45, "column": 9}}, {"id": 60, "type": "identifier", "text": "typename", "parent": 57, "children": [], "start_point": {"row": 45, "column": 9}, "end_point": {"row": 45, "column": 17}}, {"id": 61, "type": "ERROR", "text": "Type", "parent": 56, "children": [62], "start_point": {"row": 45, "column": 18}, "end_point": {"row": 45, "column": 22}}, {"id": 62, "type": "identifier", "text": "Type", "parent": 61, "children": [], "start_point": {"row": 45, "column": 18}, "end_point": {"row": 45, "column": 22}}, {"id": 63, "type": ">", "text": ">", "parent": 56, "children": [], "start_point": {"row": 45, "column": 22}, "end_point": {"row": 45, "column": 23}}, {"id": 64, "type": "binary_expression", "text": "void* IsoHeap", "parent": 56, "children": [65, 66, 67], "start_point": {"row": 46, "column": 0}, "end_point": {"row": 46, "column": 13}}, {"id": 65, "type": "identifier", "text": "void", "parent": 64, "children": [], "start_point": {"row": 46, "column": 0}, "end_point": {"row": 46, "column": 4}}, {"id": 66, "type": "*", "text": "*", "parent": 64, "children": [], "start_point": {"row": 46, "column": 4}, "end_point": {"row": 46, "column": 5}}, {"id": 67, "type": "identifier", "text": "IsoHeap", "parent": 64, "children": [], "start_point": {"row": 46, "column": 6}, "end_point": {"row": 46, "column": 13}}, {"id": 68, "type": "<", "text": "<", "parent": 55, "children": [], "start_point": {"row": 46, "column": 13}, "end_point": {"row": 46, "column": 14}}, {"id": 69, "type": "identifier", "text": "Type", "parent": 55, "children": [], "start_point": {"row": 46, "column": 14}, "end_point": {"row": 46, "column": 18}}, {"id": 70, "type": ">", "text": ">", "parent": 54, "children": [], "start_point": {"row": 46, "column": 18}, "end_point": {"row": 46, "column": 19}}, {"id": 71, "type": "call_expression", "text": "allocate()", "parent": 54, "children": [72, 73], "start_point": {"row": 46, "column": 21}, "end_point": {"row": 46, "column": 31}}, {"id": 72, "type": "identifier", "text": "allocate", "parent": 71, "children": [], "start_point": {"row": 46, "column": 21}, "end_point": {"row": 46, "column": 29}}, {"id": 73, "type": "argument_list", "text": "()", "parent": 71, "children": [], "start_point": {"row": 46, "column": 29}, "end_point": {"row": 46, "column": 31}}, {"id": 74, "type": "declaration", "text": "bool abortOnFailure = true;", "parent": 51, "children": [75, 76], "start_point": {"row": 48, "column": 4}, "end_point": {"row": 48, "column": 31}}, {"id": 75, "type": "primitive_type", "text": "bool", "parent": 74, "children": [], "start_point": {"row": 48, "column": 4}, "end_point": {"row": 48, "column": 8}}, {"id": 76, "type": "init_declarator", "text": "abortOnFailure = true", "parent": 74, "children": [77, 78, 79], "start_point": {"row": 48, "column": 9}, "end_point": {"row": 48, "column": 30}}, {"id": 77, "type": "identifier", "text": "abortOnFailure", "parent": 76, "children": [], "start_point": {"row": 48, "column": 9}, "end_point": {"row": 48, "column": 23}}, {"id": 78, "type": "=", "text": "=", "parent": 76, "children": [], "start_point": {"row": 48, "column": 24}, "end_point": {"row": 48, "column": 25}}, {"id": 79, "type": "true", "text": "true", "parent": 76, "children": [], "start_point": {"row": 48, "column": 26}, "end_point": {"row": 48, "column": 30}}, {"id": 80, "type": "return_statement", "text": "return IsoTLS::allocate(*this, abortOnFailure);", "parent": 51, "children": [81, 83], "start_point": {"row": 49, "column": 4}, "end_point": {"row": 49, "column": 51}}, {"id": 81, "type": "ERROR", "text": "IsoTLS::", "parent": 80, "children": [82], "start_point": {"row": 49, "column": 11}, "end_point": {"row": 49, "column": 19}}, {"id": 82, "type": "identifier", "text": "IsoTLS", "parent": 81, "children": [], "start_point": {"row": 49, "column": 11}, "end_point": {"row": 49, "column": 17}}, {"id": 83, "type": "call_expression", "text": "allocate(*this, abortOnFailure)", "parent": 80, "children": [84, 85], "start_point": {"row": 49, "column": 19}, "end_point": {"row": 49, "column": 50}}, {"id": 84, "type": "identifier", "text": "allocate", "parent": 83, "children": [], "start_point": {"row": 49, "column": 19}, "end_point": {"row": 49, "column": 27}}, {"id": 85, "type": "argument_list", "text": "(*this, abortOnFailure)", "parent": 83, "children": [86, 89], "start_point": {"row": 49, "column": 27}, "end_point": {"row": 49, "column": 50}}, {"id": 86, "type": "pointer_expression", "text": "*this", "parent": 85, "children": [87, 88], "start_point": {"row": 49, "column": 28}, "end_point": {"row": 49, "column": 33}}, {"id": 87, "type": "*", "text": "*", "parent": 86, "children": [], "start_point": {"row": 49, "column": 28}, "end_point": {"row": 49, "column": 29}}, {"id": 88, "type": "identifier", "text": "this", "parent": 86, "children": [], "start_point": {"row": 49, "column": 29}, "end_point": {"row": 49, "column": 33}}, {"id": 89, "type": "identifier", "text": "abortOnFailure", "parent": 85, "children": [], "start_point": {"row": 49, "column": 35}, "end_point": {"row": 49, "column": 49}}, {"id": 90, "type": "binary_expression", "text": "template<typename Type>\nvoid* IsoHeap<Type>::tryAllocate()", "parent": 51, "children": [91, 106, 107], "start_point": {"row": 52, "column": 0}, "end_point": {"row": 53, "column": 34}}, {"id": 91, "type": "binary_expression", "text": "template<typename Type>\nvoid* IsoHeap<Type", "parent": 90, "children": [92, 104, 105], "start_point": {"row": 52, "column": 0}, "end_point": {"row": 53, "column": 18}}, {"id": 92, "type": "binary_expression", "text": "template<typename Type>\nvoid* IsoHeap", "parent": 91, "children": [93, 97, 99, 100], "start_point": {"row": 52, "column": 0}, "end_point": {"row": 53, "column": 13}}, {"id": 93, "type": "binary_expression", "text": "template<typename", "parent": 92, "children": [94, 95, 96], "start_point": {"row": 52, "column": 0}, "end_point": {"row": 52, "column": 17}}, {"id": 94, "type": "identifier", "text": "template", "parent": 93, "children": [], "start_point": {"row": 52, "column": 0}, "end_point": {"row": 52, "column": 8}}, {"id": 95, "type": "<", "text": "<", "parent": 93, "children": [], "start_point": {"row": 52, "column": 8}, "end_point": {"row": 52, "column": 9}}, {"id": 96, "type": "identifier", "text": "typename", "parent": 93, "children": [], "start_point": {"row": 52, "column": 9}, "end_point": {"row": 52, "column": 17}}, {"id": 97, "type": "ERROR", "text": "Type", "parent": 92, "children": [98], "start_point": {"row": 52, "column": 18}, "end_point": {"row": 52, "column": 22}}, {"id": 98, "type": "identifier", "text": "Type", "parent": 97, "children": [], "start_point": {"row": 52, "column": 18}, "end_point": {"row": 52, "column": 22}}, {"id": 99, "type": ">", "text": ">", "parent": 92, "children": [], "start_point": {"row": 52, "column": 22}, "end_point": {"row": 52, "column": 23}}, {"id": 100, "type": "binary_expression", "text": "void* IsoHeap", "parent": 92, "children": [101, 102, 103], "start_point": {"row": 53, "column": 0}, "end_point": {"row": 53, "column": 13}}, {"id": 101, "type": "identifier", "text": "void", "parent": 100, "children": [], "start_point": {"row": 53, "column": 0}, "end_point": {"row": 53, "column": 4}}, {"id": 102, "type": "*", "text": "*", "parent": 100, "children": [], "start_point": {"row": 53, "column": 4}, "end_point": {"row": 53, "column": 5}}, {"id": 103, "type": "identifier", "text": "IsoHeap", "parent": 100, "children": [], "start_point": {"row": 53, "column": 6}, "end_point": {"row": 53, "column": 13}}, {"id": 104, "type": "<", "text": "<", "parent": 91, "children": [], "start_point": {"row": 53, "column": 13}, "end_point": {"row": 53, "column": 14}}, {"id": 105, "type": "identifier", "text": "Type", "parent": 91, "children": [], "start_point": {"row": 53, "column": 14}, "end_point": {"row": 53, "column": 18}}, {"id": 106, "type": ">", "text": ">", "parent": 90, "children": [], "start_point": {"row": 53, "column": 18}, "end_point": {"row": 53, "column": 19}}, {"id": 107, "type": "call_expression", "text": "tryAllocate()", "parent": 90, "children": [108, 109], "start_point": {"row": 53, "column": 21}, "end_point": {"row": 53, "column": 34}}, {"id": 108, "type": "identifier", "text": "tryAllocate", "parent": 107, "children": [], "start_point": {"row": 53, "column": 21}, "end_point": {"row": 53, "column": 32}}, {"id": 109, "type": "argument_list", "text": "()", "parent": 107, "children": [], "start_point": {"row": 53, "column": 32}, "end_point": {"row": 53, "column": 34}}, {"id": 110, "type": "declaration", "text": "bool abortOnFailure = false;", "parent": 51, "children": [111, 112], "start_point": {"row": 55, "column": 4}, "end_point": {"row": 55, "column": 32}}, {"id": 111, "type": "primitive_type", "text": "bool", "parent": 110, "children": [], "start_point": {"row": 55, "column": 4}, "end_point": {"row": 55, "column": 8}}, {"id": 112, "type": "init_declarator", "text": "abortOnFailure = false", "parent": 110, "children": [113, 114, 115], "start_point": {"row": 55, "column": 9}, "end_point": {"row": 55, "column": 31}}, {"id": 113, "type": "identifier", "text": "abortOnFailure", "parent": 112, "children": [], "start_point": {"row": 55, "column": 9}, "end_point": {"row": 55, "column": 23}}, {"id": 114, "type": "=", "text": "=", "parent": 112, "children": [], "start_point": {"row": 55, "column": 24}, "end_point": {"row": 55, "column": 25}}, {"id": 115, "type": "false", "text": "false", "parent": 112, "children": [], "start_point": {"row": 55, "column": 26}, "end_point": {"row": 55, "column": 31}}, {"id": 116, "type": "return_statement", "text": "return IsoTLS::allocate(*this, abortOnFailure);", "parent": 51, "children": [117, 119], "start_point": {"row": 56, "column": 4}, "end_point": {"row": 56, "column": 51}}, {"id": 117, "type": "ERROR", "text": "IsoTLS::", "parent": 116, "children": [118], "start_point": {"row": 56, "column": 11}, "end_point": {"row": 56, "column": 19}}, {"id": 118, "type": "identifier", "text": "IsoTLS", "parent": 117, "children": [], "start_point": {"row": 56, "column": 11}, "end_point": {"row": 56, "column": 17}}, {"id": 119, "type": "call_expression", "text": "allocate(*this, abortOnFailure)", "parent": 116, "children": [120, 121], "start_point": {"row": 56, "column": 19}, "end_point": {"row": 56, "column": 50}}, {"id": 120, "type": "identifier", "text": "allocate", "parent": 119, "children": [], "start_point": {"row": 56, "column": 19}, "end_point": {"row": 56, "column": 27}}, {"id": 121, "type": "argument_list", "text": "(*this, abortOnFailure)", "parent": 119, "children": [122, 125], "start_point": {"row": 56, "column": 27}, "end_point": {"row": 56, "column": 50}}, {"id": 122, "type": "pointer_expression", "text": "*this", "parent": 121, "children": [123, 124], "start_point": {"row": 56, "column": 28}, "end_point": {"row": 56, "column": 33}}, {"id": 123, "type": "*", "text": "*", "parent": 122, "children": [], "start_point": {"row": 56, "column": 28}, "end_point": {"row": 56, "column": 29}}, {"id": 124, "type": "identifier", "text": "this", "parent": 122, "children": [], "start_point": {"row": 56, "column": 29}, "end_point": {"row": 56, "column": 33}}, {"id": 125, "type": "identifier", "text": "abortOnFailure", "parent": 121, "children": [], "start_point": {"row": 56, "column": 35}, "end_point": {"row": 56, "column": 49}}, {"id": 126, "type": "binary_expression", "text": "template<typename Type>\nvoid IsoHeap<Type>::deallocate(void* p)", "parent": 51, "children": [127, 141, 142], "start_point": {"row": 59, "column": 0}, "end_point": {"row": 60, "column": 39}}, {"id": 127, "type": "binary_expression", "text": "template<typename Type>\nvoid IsoHeap<Type", "parent": 126, "children": [128, 139, 140], "start_point": {"row": 59, "column": 0}, "end_point": {"row": 60, "column": 17}}, {"id": 128, "type": "binary_expression", "text": "template<typename Type>\nvoid IsoHeap", "parent": 127, "children": [129, 133, 135, 136, 138], "start_point": {"row": 59, "column": 0}, "end_point": {"row": 60, "column": 12}}, {"id": 129, "type": "binary_expression", "text": "template<typename", "parent": 128, "children": [130, 131, 132], "start_point": {"row": 59, "column": 0}, "end_point": {"row": 59, "column": 17}}, {"id": 130, "type": "identifier", "text": "template", "parent": 129, "children": [], "start_point": {"row": 59, "column": 0}, "end_point": {"row": 59, "column": 8}}, {"id": 131, "type": "<", "text": "<", "parent": 129, "children": [], "start_point": {"row": 59, "column": 8}, "end_point": {"row": 59, "column": 9}}, {"id": 132, "type": "identifier", "text": "typename", "parent": 129, "children": [], "start_point": {"row": 59, "column": 9}, "end_point": {"row": 59, "column": 17}}, {"id": 133, "type": "ERROR", "text": "Type", "parent": 128, "children": [134], "start_point": {"row": 59, "column": 18}, "end_point": {"row": 59, "column": 22}}, {"id": 134, "type": "identifier", "text": "Type", "parent": 133, "children": [], "start_point": {"row": 59, "column": 18}, "end_point": {"row": 59, "column": 22}}, {"id": 135, "type": ">", "text": ">", "parent": 128, "children": [], "start_point": {"row": 59, "column": 22}, "end_point": {"row": 59, "column": 23}}, {"id": 136, "type": "ERROR", "text": "void", "parent": 128, "children": [137], "start_point": {"row": 60, "column": 0}, "end_point": {"row": 60, "column": 4}}, {"id": 137, "type": "identifier", "text": "void", "parent": 136, "children": [], "start_point": {"row": 60, "column": 0}, "end_point": {"row": 60, "column": 4}}, {"id": 138, "type": "identifier", "text": "IsoHeap", "parent": 128, "children": [], "start_point": {"row": 60, "column": 5}, "end_point": {"row": 60, "column": 12}}, {"id": 139, "type": "<", "text": "<", "parent": 127, "children": [], "start_point": {"row": 60, "column": 12}, "end_point": {"row": 60, "column": 13}}, {"id": 140, "type": "identifier", "text": "Type", "parent": 127, "children": [], "start_point": {"row": 60, "column": 13}, "end_point": {"row": 60, "column": 17}}, {"id": 141, "type": ">", "text": ">", "parent": 126, "children": [], "start_point": {"row": 60, "column": 17}, "end_point": {"row": 60, "column": 18}}, {"id": 142, "type": "call_expression", "text": "deallocate(void* p)", "parent": 126, "children": [143, 144], "start_point": {"row": 60, "column": 20}, "end_point": {"row": 60, "column": 39}}, {"id": 143, "type": "identifier", "text": "deallocate", "parent": 142, "children": [], "start_point": {"row": 60, "column": 20}, "end_point": {"row": 60, "column": 30}}, {"id": 144, "type": "argument_list", "text": "(void* p)", "parent": 142, "children": [145], "start_point": {"row": 60, "column": 30}, "end_point": {"row": 60, "column": 39}}, {"id": 145, "type": "binary_expression", "text": "void* p", "parent": 144, "children": [146, 147, 148], "start_point": {"row": 60, "column": 31}, "end_point": {"row": 60, "column": 38}}, {"id": 146, "type": "identifier", "text": "void", "parent": 145, "children": [], "start_point": {"row": 60, "column": 31}, "end_point": {"row": 60, "column": 35}}, {"id": 147, "type": "*", "text": "*", "parent": 145, "children": [], "start_point": {"row": 60, "column": 35}, "end_point": {"row": 60, "column": 36}}, {"id": 148, "type": "identifier", "text": "p", "parent": 145, "children": [], "start_point": {"row": 60, "column": 37}, "end_point": {"row": 60, "column": 38}}, {"id": 149, "type": "labeled_statement", "text": "IsoTLS::deallocate(*this, p);", "parent": 51, "children": [150], "start_point": {"row": 62, "column": 4}, "end_point": {"row": 62, "column": 33}}, {"id": 150, "type": "statement_identifier", "text": "IsoTLS", "parent": 149, "children": [], "start_point": {"row": 62, "column": 4}, "end_point": {"row": 62, "column": 10}}, {"id": 151, "type": "call_expression", "text": "deallocate(*this, p)", "parent": 149, "children": [152, 153], "start_point": {"row": 62, "column": 12}, "end_point": {"row": 62, "column": 32}}, {"id": 152, "type": "identifier", "text": "deallocate", "parent": 151, "children": [], "start_point": {"row": 62, "column": 12}, "end_point": {"row": 62, "column": 22}}, {"id": 153, "type": "argument_list", "text": "(*this, p)", "parent": 151, "children": [154, 157], "start_point": {"row": 62, "column": 22}, "end_point": {"row": 62, "column": 32}}, {"id": 154, "type": "pointer_expression", "text": "*this", "parent": 153, "children": [155, 156], "start_point": {"row": 62, "column": 23}, "end_point": {"row": 62, "column": 28}}, {"id": 155, "type": "*", "text": "*", "parent": 154, "children": [], "start_point": {"row": 62, "column": 23}, "end_point": {"row": 62, "column": 24}}, {"id": 156, "type": "identifier", "text": "this", "parent": 154, "children": [], "start_point": {"row": 62, "column": 24}, "end_point": {"row": 62, "column": 28}}, {"id": 157, "type": "identifier", "text": "p", "parent": 153, "children": [], "start_point": {"row": 62, "column": 30}, "end_point": {"row": 62, "column": 31}}, {"id": 158, "type": "binary_expression", "text": "template<typename Type>\nvoid IsoHeap<Type>::scavenge()", "parent": 51, "children": [159, 173, 174], "start_point": {"row": 65, "column": 0}, "end_point": {"row": 66, "column": 30}}, {"id": 159, "type": "binary_expression", "text": "template<typename Type>\nvoid IsoHeap<Type", "parent": 158, "children": [160, 171, 172], "start_point": {"row": 65, "column": 0}, "end_point": {"row": 66, "column": 17}}, {"id": 160, "type": "binary_expression", "text": "template<typename Type>\nvoid IsoHeap", "parent": 159, "children": [161, 165, 167, 168, 170], "start_point": {"row": 65, "column": 0}, "end_point": {"row": 66, "column": 12}}, {"id": 161, "type": "binary_expression", "text": "template<typename", "parent": 160, "children": [162, 163, 164], "start_point": {"row": 65, "column": 0}, "end_point": {"row": 65, "column": 17}}, {"id": 162, "type": "identifier", "text": "template", "parent": 161, "children": [], "start_point": {"row": 65, "column": 0}, "end_point": {"row": 65, "column": 8}}, {"id": 163, "type": "<", "text": "<", "parent": 161, "children": [], "start_point": {"row": 65, "column": 8}, "end_point": {"row": 65, "column": 9}}, {"id": 164, "type": "identifier", "text": "typename", "parent": 161, "children": [], "start_point": {"row": 65, "column": 9}, "end_point": {"row": 65, "column": 17}}, {"id": 165, "type": "ERROR", "text": "Type", "parent": 160, "children": [166], "start_point": {"row": 65, "column": 18}, "end_point": {"row": 65, "column": 22}}, {"id": 166, "type": "identifier", "text": "Type", "parent": 165, "children": [], "start_point": {"row": 65, "column": 18}, "end_point": {"row": 65, "column": 22}}, {"id": 167, "type": ">", "text": ">", "parent": 160, "children": [], "start_point": {"row": 65, "column": 22}, "end_point": {"row": 65, "column": 23}}, {"id": 168, "type": "ERROR", "text": "void", "parent": 160, "children": [169], "start_point": {"row": 66, "column": 0}, "end_point": {"row": 66, "column": 4}}, {"id": 169, "type": "identifier", "text": "void", "parent": 168, "children": [], "start_point": {"row": 66, "column": 0}, "end_point": {"row": 66, "column": 4}}, {"id": 170, "type": "identifier", "text": "IsoHeap", "parent": 160, "children": [], "start_point": {"row": 66, "column": 5}, "end_point": {"row": 66, "column": 12}}, {"id": 171, "type": "<", "text": "<", "parent": 159, "children": [], "start_point": {"row": 66, "column": 12}, "end_point": {"row": 66, "column": 13}}, {"id": 172, "type": "identifier", "text": "Type", "parent": 159, "children": [], "start_point": {"row": 66, "column": 13}, "end_point": {"row": 66, "column": 17}}, {"id": 173, "type": ">", "text": ">", "parent": 158, "children": [], "start_point": {"row": 66, "column": 17}, "end_point": {"row": 66, "column": 18}}, {"id": 174, "type": "call_expression", "text": "scavenge()", "parent": 158, "children": [175, 176], "start_point": {"row": 66, "column": 20}, "end_point": {"row": 66, "column": 30}}, {"id": 175, "type": "identifier", "text": "scavenge", "parent": 174, "children": [], "start_point": {"row": 66, "column": 20}, "end_point": {"row": 66, "column": 28}}, {"id": 176, "type": "argument_list", "text": "()", "parent": 174, "children": [], "start_point": {"row": 66, "column": 28}, "end_point": {"row": 66, "column": 30}}, {"id": 177, "type": "labeled_statement", "text": "IsoTLS::scavenge(*this);", "parent": 51, "children": [178], "start_point": {"row": 68, "column": 4}, "end_point": {"row": 68, "column": 28}}, {"id": 178, "type": "statement_identifier", "text": "IsoTLS", "parent": 177, "children": [], "start_point": {"row": 68, "column": 4}, "end_point": {"row": 68, "column": 10}}, {"id": 179, "type": "call_expression", "text": "scavenge(*this)", "parent": 177, "children": [180, 181], "start_point": {"row": 68, "column": 12}, "end_point": {"row": 68, "column": 27}}, {"id": 180, "type": "identifier", "text": "scavenge", "parent": 179, "children": [], "start_point": {"row": 68, "column": 12}, "end_point": {"row": 68, "column": 20}}, {"id": 181, "type": "argument_list", "text": "(*this)", "parent": 179, "children": [182], "start_point": {"row": 68, "column": 20}, "end_point": {"row": 68, "column": 27}}, {"id": 182, "type": "pointer_expression", "text": "*this", "parent": 181, "children": [183, 184], "start_point": {"row": 68, "column": 21}, "end_point": {"row": 68, "column": 26}}, {"id": 183, "type": "*", "text": "*", "parent": 182, "children": [], "start_point": {"row": 68, "column": 21}, "end_point": {"row": 68, "column": 22}}, {"id": 184, "type": "identifier", "text": "this", "parent": 182, "children": [], "start_point": {"row": 68, "column": 22}, "end_point": {"row": 68, "column": 26}}, {"id": 185, "type": "binary_expression", "text": "template<typename Type>\nbool IsoHeap<Type>::isInitialized()", "parent": 51, "children": [186, 200, 201], "start_point": {"row": 71, "column": 0}, "end_point": {"row": 72, "column": 35}}, {"id": 186, "type": "binary_expression", "text": "template<typename Type>\nbool IsoHeap<Type", "parent": 185, "children": [187, 198, 199], "start_point": {"row": 71, "column": 0}, "end_point": {"row": 72, "column": 17}}, {"id": 187, "type": "binary_expression", "text": "template<typename Type>\nbool IsoHeap", "parent": 186, "children": [188, 192, 194, 195, 197], "start_point": {"row": 71, "column": 0}, "end_point": {"row": 72, "column": 12}}, {"id": 188, "type": "binary_expression", "text": "template<typename", "parent": 187, "children": [189, 190, 191], "start_point": {"row": 71, "column": 0}, "end_point": {"row": 71, "column": 17}}, {"id": 189, "type": "identifier", "text": "template", "parent": 188, "children": [], "start_point": {"row": 71, "column": 0}, "end_point": {"row": 71, "column": 8}}, {"id": 190, "type": "<", "text": "<", "parent": 188, "children": [], "start_point": {"row": 71, "column": 8}, "end_point": {"row": 71, "column": 9}}, {"id": 191, "type": "identifier", "text": "typename", "parent": 188, "children": [], "start_point": {"row": 71, "column": 9}, "end_point": {"row": 71, "column": 17}}, {"id": 192, "type": "ERROR", "text": "Type", "parent": 187, "children": [193], "start_point": {"row": 71, "column": 18}, "end_point": {"row": 71, "column": 22}}, {"id": 193, "type": "identifier", "text": "Type", "parent": 192, "children": [], "start_point": {"row": 71, "column": 18}, "end_point": {"row": 71, "column": 22}}, {"id": 194, "type": ">", "text": ">", "parent": 187, "children": [], "start_point": {"row": 71, "column": 22}, "end_point": {"row": 71, "column": 23}}, {"id": 195, "type": "ERROR", "text": "bool", "parent": 187, "children": [196], "start_point": {"row": 72, "column": 0}, "end_point": {"row": 72, "column": 4}}, {"id": 196, "type": "identifier", "text": "bool", "parent": 195, "children": [], "start_point": {"row": 72, "column": 0}, "end_point": {"row": 72, "column": 4}}, {"id": 197, "type": "identifier", "text": "IsoHeap", "parent": 187, "children": [], "start_point": {"row": 72, "column": 5}, "end_point": {"row": 72, "column": 12}}, {"id": 198, "type": "<", "text": "<", "parent": 186, "children": [], "start_point": {"row": 72, "column": 12}, "end_point": {"row": 72, "column": 13}}, {"id": 199, "type": "identifier", "text": "Type", "parent": 186, "children": [], "start_point": {"row": 72, "column": 13}, "end_point": {"row": 72, "column": 17}}, {"id": 200, "type": ">", "text": ">", "parent": 185, "children": [], "start_point": {"row": 72, "column": 17}, "end_point": {"row": 72, "column": 18}}, {"id": 201, "type": "call_expression", "text": "isInitialized()", "parent": 185, "children": [202, 203], "start_point": {"row": 72, "column": 20}, "end_point": {"row": 72, "column": 35}}, {"id": 202, "type": "identifier", "text": "isInitialized", "parent": 201, "children": [], "start_point": {"row": 72, "column": 20}, "end_point": {"row": 72, "column": 33}}, {"id": 203, "type": "argument_list", "text": "()", "parent": 201, "children": [], "start_point": {"row": 72, "column": 33}, "end_point": {"row": 72, "column": 35}}, {"id": 204, "type": "ERROR", "text": "auto* atomic = reinterpret_cast<std::", "parent": 51, "children": [205, 207], "start_point": {"row": 74, "column": 4}, "end_point": {"row": 74, "column": 41}}, {"id": 205, "type": "storage_class_specifier", "text": "auto", "parent": 204, "children": [206], "start_point": {"row": 74, "column": 4}, "end_point": {"row": 74, "column": 8}}, {"id": 206, "type": "auto", "text": "auto", "parent": 205, "children": [], "start_point": {"row": 74, "column": 4}, "end_point": {"row": 74, "column": 8}}, {"id": 207, "type": "assignment_expression", "text": "* atomic = reinterpret_cast<std", "parent": 204, "children": [208, 211, 212], "start_point": {"row": 74, "column": 8}, "end_point": {"row": 74, "column": 39}}, {"id": 208, "type": "pointer_expression", "text": "* atomic", "parent": 207, "children": [209, 210], "start_point": {"row": 74, "column": 8}, "end_point": {"row": 74, "column": 16}}, {"id": 209, "type": "*", "text": "*", "parent": 208, "children": [], "start_point": {"row": 74, "column": 8}, "end_point": {"row": 74, "column": 9}}, {"id": 210, "type": "identifier", "text": "atomic", "parent": 208, "children": [], "start_point": {"row": 74, "column": 10}, "end_point": {"row": 74, "column": 16}}, {"id": 211, "type": "=", "text": "=", "parent": 207, "children": [], "start_point": {"row": 74, "column": 17}, "end_point": {"row": 74, "column": 18}}, {"id": 212, "type": "binary_expression", "text": "reinterpret_cast<std", "parent": 207, "children": [213, 214, 215], "start_point": {"row": 74, "column": 19}, "end_point": {"row": 74, "column": 39}}, {"id": 213, "type": "identifier", "text": "reinterpret_cast", "parent": 212, "children": [], "start_point": {"row": 74, "column": 19}, "end_point": {"row": 74, "column": 35}}, {"id": 214, "type": "<", "text": "<", "parent": 212, "children": [], "start_point": {"row": 74, "column": 35}, "end_point": {"row": 74, "column": 36}}, {"id": 215, "type": "identifier", "text": "std", "parent": 212, "children": [], "start_point": {"row": 74, "column": 36}, "end_point": {"row": 74, "column": 39}}, {"id": 216, "type": "binary_expression", "text": "atomic<IsoHeapImpl<Config>*>*>(&m_impl)", "parent": 51, "children": [217, 233, 234], "start_point": {"row": 74, "column": 41}, "end_point": {"row": 74, "column": 80}}, {"id": 217, "type": "binary_expression", "text": "atomic<IsoHeapImpl<Config>*>*", "parent": 216, "children": [218, 225, 226], "start_point": {"row": 74, "column": 41}, "end_point": {"row": 74, "column": 70}}, {"id": 218, "type": "binary_expression", "text": "atomic<IsoHeapImpl<Config", "parent": 217, "children": [219, 223, 224], "start_point": {"row": 74, "column": 41}, "end_point": {"row": 74, "column": 66}}, {"id": 219, "type": "binary_expression", "text": "atomic<IsoHeapImpl", "parent": 218, "children": [220, 221, 222], "start_point": {"row": 74, "column": 41}, "end_point": {"row": 74, "column": 59}}, {"id": 220, "type": "identifier", "text": "atomic", "parent": 219, "children": [], "start_point": {"row": 74, "column": 41}, "end_point": {"row": 74, "column": 47}}, {"id": 221, "type": "<", "text": "<", "parent": 219, "children": [], "start_point": {"row": 74, "column": 47}, "end_point": {"row": 74, "column": 48}}, {"id": 222, "type": "identifier", "text": "IsoHeapImpl", "parent": 219, "children": [], "start_point": {"row": 74, "column": 48}, "end_point": {"row": 74, "column": 59}}, {"id": 223, "type": "<", "text": "<", "parent": 218, "children": [], "start_point": {"row": 74, "column": 59}, "end_point": {"row": 74, "column": 60}}, {"id": 224, "type": "identifier", "text": "Config", "parent": 218, "children": [], "start_point": {"row": 74, "column": 60}, "end_point": {"row": 74, "column": 66}}, {"id": 225, "type": ">", "text": ">", "parent": 217, "children": [], "start_point": {"row": 74, "column": 66}, "end_point": {"row": 74, "column": 67}}, {"id": 226, "type": "pointer_expression", "text": "*>*", "parent": 217, "children": [227, 228, 230], "start_point": {"row": 74, "column": 67}, "end_point": {"row": 74, "column": 70}}, {"id": 227, "type": "*", "text": "*", "parent": 226, "children": [], "start_point": {"row": 74, "column": 67}, "end_point": {"row": 74, "column": 68}}, {"id": 228, "type": "ERROR", "text": ">", "parent": 226, "children": [229], "start_point": {"row": 74, "column": 68}, "end_point": {"row": 74, "column": 69}}, {"id": 229, "type": ">", "text": ">", "parent": 228, "children": [], "start_point": {"row": 74, "column": 68}, "end_point": {"row": 74, "column": 69}}, {"id": 230, "type": "pointer_expression", "text": "*", "parent": 226, "children": [231, 232], "start_point": {"row": 74, "column": 69}, "end_point": {"row": 74, "column": 70}}, {"id": 231, "type": "*", "text": "*", "parent": 230, "children": [], "start_point": {"row": 74, "column": 69}, "end_point": {"row": 74, "column": 70}}, {"id": 232, "type": "identifier", "text": "", "parent": 230, "children": [], "start_point": {"row": 74, "column": 70}, "end_point": {"row": 74, "column": 70}}, {"id": 233, "type": ">", "text": ">", "parent": 216, "children": [], "start_point": {"row": 74, "column": 70}, "end_point": {"row": 74, "column": 71}}, {"id": 234, "type": "parenthesized_expression", "text": "(&m_impl)", "parent": 216, "children": [235], "start_point": {"row": 74, "column": 71}, "end_point": {"row": 74, "column": 80}}, {"id": 235, "type": "pointer_expression", "text": "&m_impl", "parent": 234, "children": [236], "start_point": {"row": 74, "column": 72}, "end_point": {"row": 74, "column": 79}}, {"id": 236, "type": "identifier", "text": "m_impl", "parent": 235, "children": [], "start_point": {"row": 74, "column": 73}, "end_point": {"row": 74, "column": 79}}, {"id": 237, "type": "return_statement", "text": "return atomic->load(std::memory_order_acquire);", "parent": 51, "children": [238], "start_point": {"row": 75, "column": 4}, "end_point": {"row": 75, "column": 51}}, {"id": 238, "type": "call_expression", "text": "atomic->load(std::memory_order_acquire)", "parent": 237, "children": [239, 242], "start_point": {"row": 75, "column": 11}, "end_point": {"row": 75, "column": 50}}, {"id": 239, "type": "field_expression", "text": "atomic->load", "parent": 238, "children": [240, 241], "start_point": {"row": 75, "column": 11}, "end_point": {"row": 75, "column": 23}}, {"id": 240, "type": "identifier", "text": "atomic", "parent": 239, "children": [], "start_point": {"row": 75, "column": 11}, "end_point": {"row": 75, "column": 17}}, {"id": 241, "type": "field_identifier", "text": "load", "parent": 239, "children": [], "start_point": {"row": 75, "column": 19}, "end_point": {"row": 75, "column": 23}}, {"id": 242, "type": "argument_list", "text": "(std::memory_order_acquire)", "parent": 238, "children": [243, 245], "start_point": {"row": 75, "column": 23}, "end_point": {"row": 75, "column": 50}}, {"id": 243, "type": "ERROR", "text": "std::", "parent": 242, "children": [244], "start_point": {"row": 75, "column": 24}, "end_point": {"row": 75, "column": 29}}, {"id": 244, "type": "identifier", "text": "std", "parent": 243, "children": [], "start_point": {"row": 75, "column": 24}, "end_point": {"row": 75, "column": 27}}, {"id": 245, "type": "identifier", "text": "memory_order_acquire", "parent": 242, "children": [], "start_point": {"row": 75, "column": 29}, "end_point": {"row": 75, "column": 49}}, {"id": 246, "type": "binary_expression", "text": "template<typename Type>\nvoid IsoHeap<Type>::initialize()", "parent": 51, "children": [247, 261, 262], "start_point": {"row": 78, "column": 0}, "end_point": {"row": 79, "column": 32}}, {"id": 247, "type": "binary_expression", "text": "template<typename Type>\nvoid IsoHeap<Type", "parent": 246, "children": [248, 259, 260], "start_point": {"row": 78, "column": 0}, "end_point": {"row": 79, "column": 17}}, {"id": 248, "type": "binary_expression", "text": "template<typename Type>\nvoid IsoHeap", "parent": 247, "children": [249, 253, 255, 256, 258], "start_point": {"row": 78, "column": 0}, "end_point": {"row": 79, "column": 12}}, {"id": 249, "type": "binary_expression", "text": "template<typename", "parent": 248, "children": [250, 251, 252], "start_point": {"row": 78, "column": 0}, "end_point": {"row": 78, "column": 17}}, {"id": 250, "type": "identifier", "text": "template", "parent": 249, "children": [], "start_point": {"row": 78, "column": 0}, "end_point": {"row": 78, "column": 8}}, {"id": 251, "type": "<", "text": "<", "parent": 249, "children": [], "start_point": {"row": 78, "column": 8}, "end_point": {"row": 78, "column": 9}}, {"id": 252, "type": "identifier", "text": "typename", "parent": 249, "children": [], "start_point": {"row": 78, "column": 9}, "end_point": {"row": 78, "column": 17}}, {"id": 253, "type": "ERROR", "text": "Type", "parent": 248, "children": [254], "start_point": {"row": 78, "column": 18}, "end_point": {"row": 78, "column": 22}}, {"id": 254, "type": "identifier", "text": "Type", "parent": 253, "children": [], "start_point": {"row": 78, "column": 18}, "end_point": {"row": 78, "column": 22}}, {"id": 255, "type": ">", "text": ">", "parent": 248, "children": [], "start_point": {"row": 78, "column": 22}, "end_point": {"row": 78, "column": 23}}, {"id": 256, "type": "ERROR", "text": "void", "parent": 248, "children": [257], "start_point": {"row": 79, "column": 0}, "end_point": {"row": 79, "column": 4}}, {"id": 257, "type": "identifier", "text": "void", "parent": 256, "children": [], "start_point": {"row": 79, "column": 0}, "end_point": {"row": 79, "column": 4}}, {"id": 258, "type": "identifier", "text": "IsoHeap", "parent": 248, "children": [], "start_point": {"row": 79, "column": 5}, "end_point": {"row": 79, "column": 12}}, {"id": 259, "type": "<", "text": "<", "parent": 247, "children": [], "start_point": {"row": 79, "column": 12}, "end_point": {"row": 79, "column": 13}}, {"id": 260, "type": "identifier", "text": "Type", "parent": 247, "children": [], "start_point": {"row": 79, "column": 13}, "end_point": {"row": 79, "column": 17}}, {"id": 261, "type": ">", "text": ">", "parent": 246, "children": [], "start_point": {"row": 79, "column": 17}, "end_point": {"row": 79, "column": 18}}, {"id": 262, "type": "call_expression", "text": "initialize()", "parent": 246, "children": [263, 264], "start_point": {"row": 79, "column": 20}, "end_point": {"row": 79, "column": 32}}, {"id": 263, "type": "identifier", "text": "initialize", "parent": 262, "children": [], "start_point": {"row": 79, "column": 20}, "end_point": {"row": 79, "column": 30}}, {"id": 264, "type": "argument_list", "text": "()", "parent": 262, "children": [], "start_point": {"row": 79, "column": 30}, "end_point": {"row": 79, "column": 32}}, {"id": 265, "type": "ERROR", "text": "auto", "parent": 51, "children": [266], "start_point": {"row": 86, "column": 4}, "end_point": {"row": 86, "column": 8}}, {"id": 266, "type": "storage_class_specifier", "text": "auto", "parent": 265, "children": [267], "start_point": {"row": 86, "column": 4}, "end_point": {"row": 86, "column": 8}}, {"id": 267, "type": "auto", "text": "auto", "parent": 266, "children": [], "start_point": {"row": 86, "column": 4}, "end_point": {"row": 86, "column": 8}}, {"id": 268, "type": "assignment_expression", "text": "* heap = new IsoHeapImpl<Config>()", "parent": 51, "children": [269, 272, 273], "start_point": {"row": 86, "column": 8}, "end_point": {"row": 86, "column": 42}}, {"id": 269, "type": "pointer_expression", "text": "* heap", "parent": 268, "children": [270, 271], "start_point": {"row": 86, "column": 8}, "end_point": {"row": 86, "column": 14}}, {"id": 270, "type": "*", "text": "*", "parent": 269, "children": [], "start_point": {"row": 86, "column": 8}, "end_point": {"row": 86, "column": 9}}, {"id": 271, "type": "identifier", "text": "heap", "parent": 269, "children": [], "start_point": {"row": 86, "column": 10}, "end_point": {"row": 86, "column": 14}}, {"id": 272, "type": "=", "text": "=", "parent": 268, "children": [], "start_point": {"row": 86, "column": 15}, "end_point": {"row": 86, "column": 16}}, {"id": 273, "type": "binary_expression", "text": "IsoHeapImpl<Config>()", "parent": 268, "children": [274, 278, 279], "start_point": {"row": 86, "column": 21}, "end_point": {"row": 86, "column": 42}}, {"id": 274, "type": "binary_expression", "text": "IsoHeapImpl<Config", "parent": 273, "children": [275, 276, 277], "start_point": {"row": 86, "column": 21}, "end_point": {"row": 86, "column": 39}}, {"id": 275, "type": "identifier", "text": "IsoHeapImpl", "parent": 274, "children": [], "start_point": {"row": 86, "column": 21}, "end_point": {"row": 86, "column": 32}}, {"id": 276, "type": "<", "text": "<", "parent": 274, "children": [], "start_point": {"row": 86, "column": 32}, "end_point": {"row": 86, "column": 33}}, {"id": 277, "type": "identifier", "text": "Config", "parent": 274, "children": [], "start_point": {"row": 86, "column": 33}, "end_point": {"row": 86, "column": 39}}, {"id": 278, "type": ">", "text": ">", "parent": 273, "children": [], "start_point": {"row": 86, "column": 39}, "end_point": {"row": 86, "column": 40}}, {"id": 279, "type": "parenthesized_expression", "text": "()", "parent": 273, "children": [280], "start_point": {"row": 86, "column": 40}, "end_point": {"row": 86, "column": 42}}, {"id": 280, "type": "identifier", "text": "", "parent": 279, "children": [], "start_point": {"row": 86, "column": 41}, "end_point": {"row": 86, "column": 41}}, {"id": 281, "type": "call_expression", "text": "setAllocatorOffset(heap->allocatorOffset())", "parent": 51, "children": [282, 283], "start_point": {"row": 87, "column": 4}, "end_point": {"row": 87, "column": 47}}, {"id": 282, "type": "identifier", "text": "setAllocatorOffset", "parent": 281, "children": [], "start_point": {"row": 87, "column": 4}, "end_point": {"row": 87, "column": 22}}, {"id": 283, "type": "argument_list", "text": "(heap->allocatorOffset())", "parent": 281, "children": [284], "start_point": {"row": 87, "column": 22}, "end_point": {"row": 87, "column": 47}}, {"id": 284, "type": "call_expression", "text": "heap->allocatorOffset()", "parent": 283, "children": [285, 288], "start_point": {"row": 87, "column": 23}, "end_point": {"row": 87, "column": 46}}, {"id": 285, "type": "field_expression", "text": "heap->allocatorOffset", "parent": 284, "children": [286, 287], "start_point": {"row": 87, "column": 23}, "end_point": {"row": 87, "column": 44}}, {"id": 286, "type": "identifier", "text": "heap", "parent": 285, "children": [], "start_point": {"row": 87, "column": 23}, "end_point": {"row": 87, "column": 27}}, {"id": 287, "type": "field_identifier", "text": "allocatorOffset", "parent": 285, "children": [], "start_point": {"row": 87, "column": 29}, "end_point": {"row": 87, "column": 44}}, {"id": 288, "type": "argument_list", "text": "()", "parent": 284, "children": [], "start_point": {"row": 87, "column": 44}, "end_point": {"row": 87, "column": 46}}, {"id": 289, "type": "call_expression", "text": "setDeallocatorOffset(heap->deallocatorOffset())", "parent": 51, "children": [290, 291], "start_point": {"row": 88, "column": 4}, "end_point": {"row": 88, "column": 51}}, {"id": 290, "type": "identifier", "text": "setDeallocatorOffset", "parent": 289, "children": [], "start_point": {"row": 88, "column": 4}, "end_point": {"row": 88, "column": 24}}, {"id": 291, "type": "argument_list", "text": "(heap->deallocatorOffset())", "parent": 289, "children": [292], "start_point": {"row": 88, "column": 24}, "end_point": {"row": 88, "column": 51}}, {"id": 292, "type": "call_expression", "text": "heap->deallocatorOffset()", "parent": 291, "children": [293, 296], "start_point": {"row": 88, "column": 25}, "end_point": {"row": 88, "column": 50}}, {"id": 293, "type": "field_expression", "text": "heap->deallocatorOffset", "parent": 292, "children": [294, 295], "start_point": {"row": 88, "column": 25}, "end_point": {"row": 88, "column": 48}}, {"id": 294, "type": "identifier", "text": "heap", "parent": 293, "children": [], "start_point": {"row": 88, "column": 25}, "end_point": {"row": 88, "column": 29}}, {"id": 295, "type": "field_identifier", "text": "deallocatorOffset", "parent": 293, "children": [], "start_point": {"row": 88, "column": 31}, "end_point": {"row": 88, "column": 48}}, {"id": 296, "type": "argument_list", "text": "()", "parent": 292, "children": [], "start_point": {"row": 88, "column": 48}, "end_point": {"row": 88, "column": 50}}, {"id": 297, "type": "ERROR", "text": "auto* atomic = reinterpret_cast<std::", "parent": 51, "children": [298, 300], "start_point": {"row": 89, "column": 4}, "end_point": {"row": 89, "column": 41}}, {"id": 298, "type": "storage_class_specifier", "text": "auto", "parent": 297, "children": [299], "start_point": {"row": 89, "column": 4}, "end_point": {"row": 89, "column": 8}}, {"id": 299, "type": "auto", "text": "auto", "parent": 298, "children": [], "start_point": {"row": 89, "column": 4}, "end_point": {"row": 89, "column": 8}}, {"id": 300, "type": "assignment_expression", "text": "* atomic = reinterpret_cast<std", "parent": 297, "children": [301, 304, 305], "start_point": {"row": 89, "column": 8}, "end_point": {"row": 89, "column": 39}}, {"id": 301, "type": "pointer_expression", "text": "* atomic", "parent": 300, "children": [302, 303], "start_point": {"row": 89, "column": 8}, "end_point": {"row": 89, "column": 16}}, {"id": 302, "type": "*", "text": "*", "parent": 301, "children": [], "start_point": {"row": 89, "column": 8}, "end_point": {"row": 89, "column": 9}}, {"id": 303, "type": "identifier", "text": "atomic", "parent": 301, "children": [], "start_point": {"row": 89, "column": 10}, "end_point": {"row": 89, "column": 16}}, {"id": 304, "type": "=", "text": "=", "parent": 300, "children": [], "start_point": {"row": 89, "column": 17}, "end_point": {"row": 89, "column": 18}}, {"id": 305, "type": "binary_expression", "text": "reinterpret_cast<std", "parent": 300, "children": [306, 307, 308], "start_point": {"row": 89, "column": 19}, "end_point": {"row": 89, "column": 39}}, {"id": 306, "type": "identifier", "text": "reinterpret_cast", "parent": 305, "children": [], "start_point": {"row": 89, "column": 19}, "end_point": {"row": 89, "column": 35}}, {"id": 307, "type": "<", "text": "<", "parent": 305, "children": [], "start_point": {"row": 89, "column": 35}, "end_point": {"row": 89, "column": 36}}, {"id": 308, "type": "identifier", "text": "std", "parent": 305, "children": [], "start_point": {"row": 89, "column": 36}, "end_point": {"row": 89, "column": 39}}, {"id": 309, "type": "binary_expression", "text": "atomic<IsoHeapImpl<Config>*>*>(&m_impl)", "parent": 51, "children": [310, 326, 327], "start_point": {"row": 89, "column": 41}, "end_point": {"row": 89, "column": 80}}, {"id": 310, "type": "binary_expression", "text": "atomic<IsoHeapImpl<Config>*>*", "parent": 309, "children": [311, 318, 319], "start_point": {"row": 89, "column": 41}, "end_point": {"row": 89, "column": 70}}, {"id": 311, "type": "binary_expression", "text": "atomic<IsoHeapImpl<Config", "parent": 310, "children": [312, 316, 317], "start_point": {"row": 89, "column": 41}, "end_point": {"row": 89, "column": 66}}, {"id": 312, "type": "binary_expression", "text": "atomic<IsoHeapImpl", "parent": 311, "children": [313, 314, 315], "start_point": {"row": 89, "column": 41}, "end_point": {"row": 89, "column": 59}}, {"id": 313, "type": "identifier", "text": "atomic", "parent": 312, "children": [], "start_point": {"row": 89, "column": 41}, "end_point": {"row": 89, "column": 47}}, {"id": 314, "type": "<", "text": "<", "parent": 312, "children": [], "start_point": {"row": 89, "column": 47}, "end_point": {"row": 89, "column": 48}}, {"id": 315, "type": "identifier", "text": "IsoHeapImpl", "parent": 312, "children": [], "start_point": {"row": 89, "column": 48}, "end_point": {"row": 89, "column": 59}}, {"id": 316, "type": "<", "text": "<", "parent": 311, "children": [], "start_point": {"row": 89, "column": 59}, "end_point": {"row": 89, "column": 60}}, {"id": 317, "type": "identifier", "text": "Config", "parent": 311, "children": [], "start_point": {"row": 89, "column": 60}, "end_point": {"row": 89, "column": 66}}, {"id": 318, "type": ">", "text": ">", "parent": 310, "children": [], "start_point": {"row": 89, "column": 66}, "end_point": {"row": 89, "column": 67}}, {"id": 319, "type": "pointer_expression", "text": "*>*", "parent": 310, "children": [320, 321, 323], "start_point": {"row": 89, "column": 67}, "end_point": {"row": 89, "column": 70}}, {"id": 320, "type": "*", "text": "*", "parent": 319, "children": [], "start_point": {"row": 89, "column": 67}, "end_point": {"row": 89, "column": 68}}, {"id": 321, "type": "ERROR", "text": ">", "parent": 319, "children": [322], "start_point": {"row": 89, "column": 68}, "end_point": {"row": 89, "column": 69}}, {"id": 322, "type": ">", "text": ">", "parent": 321, "children": [], "start_point": {"row": 89, "column": 68}, "end_point": {"row": 89, "column": 69}}, {"id": 323, "type": "pointer_expression", "text": "*", "parent": 319, "children": [324, 325], "start_point": {"row": 89, "column": 69}, "end_point": {"row": 89, "column": 70}}, {"id": 324, "type": "*", "text": "*", "parent": 323, "children": [], "start_point": {"row": 89, "column": 69}, "end_point": {"row": 89, "column": 70}}, {"id": 325, "type": "identifier", "text": "", "parent": 323, "children": [], "start_point": {"row": 89, "column": 70}, "end_point": {"row": 89, "column": 70}}, {"id": 326, "type": ">", "text": ">", "parent": 309, "children": [], "start_point": {"row": 89, "column": 70}, "end_point": {"row": 89, "column": 71}}, {"id": 327, "type": "parenthesized_expression", "text": "(&m_impl)", "parent": 309, "children": [328], "start_point": {"row": 89, "column": 71}, "end_point": {"row": 89, "column": 80}}, {"id": 328, "type": "pointer_expression", "text": "&m_impl", "parent": 327, "children": [329], "start_point": {"row": 89, "column": 72}, "end_point": {"row": 89, "column": 79}}, {"id": 329, "type": "identifier", "text": "m_impl", "parent": 328, "children": [], "start_point": {"row": 89, "column": 73}, "end_point": {"row": 89, "column": 79}}, {"id": 330, "type": "call_expression", "text": "atomic->store(heap, std::memory_order_release)", "parent": 51, "children": [331, 334], "start_point": {"row": 90, "column": 4}, "end_point": {"row": 90, "column": 50}}, {"id": 331, "type": "field_expression", "text": "atomic->store", "parent": 330, "children": [332, 333], "start_point": {"row": 90, "column": 4}, "end_point": {"row": 90, "column": 17}}, {"id": 332, "type": "identifier", "text": "atomic", "parent": 331, "children": [], "start_point": {"row": 90, "column": 4}, "end_point": {"row": 90, "column": 10}}, {"id": 333, "type": "field_identifier", "text": "store", "parent": 331, "children": [], "start_point": {"row": 90, "column": 12}, "end_point": {"row": 90, "column": 17}}, {"id": 334, "type": "argument_list", "text": "(heap, std::memory_order_release)", "parent": 330, "children": [335, 336, 338], "start_point": {"row": 90, "column": 17}, "end_point": {"row": 90, "column": 50}}, {"id": 335, "type": "identifier", "text": "heap", "parent": 334, "children": [], "start_point": {"row": 90, "column": 18}, "end_point": {"row": 90, "column": 22}}, {"id": 336, "type": "ERROR", "text": "std::", "parent": 334, "children": [337], "start_point": {"row": 90, "column": 24}, "end_point": {"row": 90, "column": 29}}, {"id": 337, "type": "identifier", "text": "std", "parent": 336, "children": [], "start_point": {"row": 90, "column": 24}, "end_point": {"row": 90, "column": 27}}, {"id": 338, "type": "identifier", "text": "memory_order_release", "parent": 334, "children": [], "start_point": {"row": 90, "column": 29}, "end_point": {"row": 90, "column": 49}}, {"id": 339, "type": "ERROR", "text": "template<typename Type>\nauto IsoHeap<Type>::impl() -> IsoHeapImpl<Config>&", "parent": 51, "children": [340, 364], "start_point": {"row": 93, "column": 0}, "end_point": {"row": 94, "column": 50}}, {"id": 340, "type": "binary_expression", "text": "template<typename Type>\nauto IsoHeap<Type>::impl() -> IsoHeapImpl<Config", "parent": 339, "children": [341, 362, 363], "start_point": {"row": 93, "column": 0}, "end_point": {"row": 94, "column": 48}}, {"id": 341, "type": "binary_expression", "text": "template<typename Type>\nauto IsoHeap<Type>::impl() -> IsoHeapImpl", "parent": 340, "children": [342, 356, 357], "start_point": {"row": 93, "column": 0}, "end_point": {"row": 94, "column": 41}}, {"id": 342, "type": "binary_expression", "text": "template<typename Type>\nauto IsoHeap<Type", "parent": 341, "children": [343, 354, 355], "start_point": {"row": 93, "column": 0}, "end_point": {"row": 94, "column": 17}}, {"id": 343, "type": "binary_expression", "text": "template<typename Type>\nauto IsoHeap", "parent": 342, "children": [344, 348, 350, 351, 353], "start_point": {"row": 93, "column": 0}, "end_point": {"row": 94, "column": 12}}, {"id": 344, "type": "binary_expression", "text": "template<typename", "parent": 343, "children": [345, 346, 347], "start_point": {"row": 93, "column": 0}, "end_point": {"row": 93, "column": 17}}, {"id": 345, "type": "identifier", "text": "template", "parent": 344, "children": [], "start_point": {"row": 93, "column": 0}, "end_point": {"row": 93, "column": 8}}, {"id": 346, "type": "<", "text": "<", "parent": 344, "children": [], "start_point": {"row": 93, "column": 8}, "end_point": {"row": 93, "column": 9}}, {"id": 347, "type": "identifier", "text": "typename", "parent": 344, "children": [], "start_point": {"row": 93, "column": 9}, "end_point": {"row": 93, "column": 17}}, {"id": 348, "type": "ERROR", "text": "Type", "parent": 343, "children": [349], "start_point": {"row": 93, "column": 18}, "end_point": {"row": 93, "column": 22}}, {"id": 349, "type": "identifier", "text": "Type", "parent": 348, "children": [], "start_point": {"row": 93, "column": 18}, "end_point": {"row": 93, "column": 22}}, {"id": 350, "type": ">", "text": ">", "parent": 343, "children": [], "start_point": {"row": 93, "column": 22}, "end_point": {"row": 93, "column": 23}}, {"id": 351, "type": "ERROR", "text": "auto", "parent": 343, "children": [352], "start_point": {"row": 94, "column": 0}, "end_point": {"row": 94, "column": 4}}, {"id": 352, "type": "identifier", "text": "auto", "parent": 351, "children": [], "start_point": {"row": 94, "column": 0}, "end_point": {"row": 94, "column": 4}}, {"id": 353, "type": "identifier", "text": "IsoHeap", "parent": 343, "children": [], "start_point": {"row": 94, "column": 5}, "end_point": {"row": 94, "column": 12}}, {"id": 354, "type": "<", "text": "<", "parent": 342, "children": [], "start_point": {"row": 94, "column": 12}, "end_point": {"row": 94, "column": 13}}, {"id": 355, "type": "identifier", "text": "Type", "parent": 342, "children": [], "start_point": {"row": 94, "column": 13}, "end_point": {"row": 94, "column": 17}}, {"id": 356, "type": ">", "text": ">", "parent": 341, "children": [], "start_point": {"row": 94, "column": 17}, "end_point": {"row": 94, "column": 18}}, {"id": 357, "type": "field_expression", "text": "impl() -> IsoHeapImpl", "parent": 341, "children": [358, 361], "start_point": {"row": 94, "column": 20}, "end_point": {"row": 94, "column": 41}}, {"id": 358, "type": "call_expression", "text": "impl()", "parent": 357, "children": [359, 360], "start_point": {"row": 94, "column": 20}, "end_point": {"row": 94, "column": 26}}, {"id": 359, "type": "identifier", "text": "impl", "parent": 358, "children": [], "start_point": {"row": 94, "column": 20}, "end_point": {"row": 94, "column": 24}}, {"id": 360, "type": "argument_list", "text": "()", "parent": 358, "children": [], "start_point": {"row": 94, "column": 24}, "end_point": {"row": 94, "column": 26}}, {"id": 361, "type": "field_identifier", "text": "IsoHeapImpl", "parent": 357, "children": [], "start_point": {"row": 94, "column": 30}, "end_point": {"row": 94, "column": 41}}, {"id": 362, "type": "<", "text": "<", "parent": 340, "children": [], "start_point": {"row": 94, "column": 41}, "end_point": {"row": 94, "column": 42}}, {"id": 363, "type": "identifier", "text": "Config", "parent": 340, "children": [], "start_point": {"row": 94, "column": 42}, "end_point": {"row": 94, "column": 48}}, {"id": 364, "type": ">", "text": ">", "parent": 339, "children": [], "start_point": {"row": 94, "column": 48}, "end_point": {"row": 94, "column": 49}}, {"id": 365, "type": "labeled_statement", "text": "IsoTLS::ensureHeap(*this);", "parent": 51, "children": [366], "start_point": {"row": 96, "column": 4}, "end_point": {"row": 96, "column": 30}}, {"id": 366, "type": "statement_identifier", "text": "IsoTLS", "parent": 365, "children": [], "start_point": {"row": 96, "column": 4}, "end_point": {"row": 96, "column": 10}}, {"id": 367, "type": "call_expression", "text": "ensureHeap(*this)", "parent": 365, "children": [368, 369], "start_point": {"row": 96, "column": 12}, "end_point": {"row": 96, "column": 29}}, {"id": 368, "type": "identifier", "text": "ensureHeap", "parent": 367, "children": [], "start_point": {"row": 96, "column": 12}, "end_point": {"row": 96, "column": 22}}, {"id": 369, "type": "argument_list", "text": "(*this)", "parent": 367, "children": [370], "start_point": {"row": 96, "column": 22}, "end_point": {"row": 96, "column": 29}}, {"id": 370, "type": "pointer_expression", "text": "*this", "parent": 369, "children": [371, 372], "start_point": {"row": 96, "column": 23}, "end_point": {"row": 96, "column": 28}}, {"id": 371, "type": "*", "text": "*", "parent": 370, "children": [], "start_point": {"row": 96, "column": 23}, "end_point": {"row": 96, "column": 24}}, {"id": 372, "type": "identifier", "text": "this", "parent": 370, "children": [], "start_point": {"row": 96, "column": 24}, "end_point": {"row": 96, "column": 28}}, {"id": 373, "type": "return_statement", "text": "return *m_impl;", "parent": 51, "children": [374], "start_point": {"row": 97, "column": 4}, "end_point": {"row": 97, "column": 19}}, {"id": 374, "type": "pointer_expression", "text": "*m_impl", "parent": 373, "children": [375, 376], "start_point": {"row": 97, "column": 11}, "end_point": {"row": 97, "column": 18}}, {"id": 375, "type": "*", "text": "*", "parent": 374, "children": [], "start_point": {"row": 97, "column": 11}, "end_point": {"row": 97, "column": 12}}, {"id": 376, "type": "identifier", "text": "m_impl", "parent": 374, "children": [], "start_point": {"row": 97, "column": 12}, "end_point": {"row": 97, "column": 18}}, {"id": 377, "type": "preproc_function_def", "text": "#define MAKE_BISO_MALLOCED_INLINE(isoType) \\\npublic: \\\n static ::bmalloc::api::IsoHeap<isoType>& bisoHeap() \\\n { \\\n static ::bmalloc::api::IsoHeap<isoType> heap; \\\n return heap; \\\n } \\\n \\\n void* operator new(size_t, void* p) { return p; } \\\n void* operator new[](size_t, void* p) { return p; } \\\n \\\n void* operator new(size_t size) \\\n { \\\n RELEASE_BASSERT(size == sizeof(isoType)); \\\n return bisoHeap().allocate(); \\\n } \\\n \\\n void operator delete(void* p) \\\n { \\\n bisoHeap().deallocate(p); \\\n } \\\n \\\n void* operator new[](size_t size) = delete; \\\n void operator delete[](void* p) = delete; \\\nusing webkitFastMalloced = int; \\\nprivate: \\\nusing __makeBisoMallocedInlineMacroSemicolonifier = int\n", "parent": 51, "children": [378, 379, 380, 382], "start_point": {"row": 101, "column": 0}, "end_point": {"row": 128, "column": 0}}, {"id": 378, "type": "#define", "text": "#define", "parent": 377, "children": [], "start_point": {"row": 101, "column": 0}, "end_point": {"row": 101, "column": 7}}, {"id": 379, "type": "identifier", "text": "MAKE_BISO_MALLOCED_INLINE", "parent": 377, "children": [], "start_point": {"row": 101, "column": 8}, "end_point": {"row": 101, "column": 33}}, {"id": 380, "type": "preproc_params", "text": "(isoType)", "parent": 377, "children": [381], "start_point": {"row": 101, "column": 33}, "end_point": {"row": 101, "column": 42}}, {"id": 381, "type": "identifier", "text": "isoType", "parent": 380, "children": [], "start_point": {"row": 101, "column": 34}, "end_point": {"row": 101, "column": 41}}, {"id": 382, "type": "preproc_arg", "text": "public: \\\n static ::bmalloc::api::IsoHeap<isoType>& bisoHeap() \\\n { \\\n static ::bmalloc::api::IsoHeap<isoType> heap; \\\n return heap; \\\n } \\\n \\\n void* operator new(size_t, void* p) { return p; } \\\n void* operator new[](size_t, void* p) { return p; } \\\n \\\n void* operator new(size_t size) \\\n { \\\n RELEASE_BASSERT(size == sizeof(isoType)); \\\n return bisoHeap().allocate(); \\\n } \\\n \\\n void operator delete(void* p) \\\n { \\\n bisoHeap().deallocate(p); \\\n } \\\n \\\n void* operator new[](size_t size) = delete; \\\n void operator delete[](void* p) = delete; \\\nusing webkitFastMalloced = int; \\\nprivate: \\\nusing __makeBisoMallocedInlineMacroSemicolonifier = int", "parent": 377, "children": [], "start_point": {"row": 102, "column": 0}, "end_point": {"row": 127, "column": 55}}, {"id": 383, "type": "preproc_function_def", "text": "#define MAKE_BISO_MALLOCED_IMPL(isoType) \\\n::bmalloc::api::IsoHeap<isoType>& isoType::bisoHeap() \\\n{ \\\n static ::bmalloc::api::IsoHeap<isoType> heap; \\\n return heap; \\\n} \\\n\\\nvoid* isoType::operator new(size_t size) \\\n{ \\\n RELEASE_BASSERT(size == sizeof(isoType)); \\\n return bisoHeap().allocate(); \\\n} \\\n\\\nvoid isoType::operator delete(void* p) \\\n{ \\\n bisoHeap().deallocate(p); \\\n} \\\n\\\nstruct MakeBisoMallocedImplMacroSemicolonifier##isoType { }\n", "parent": 51, "children": [384, 385, 386, 388], "start_point": {"row": 129, "column": 0}, "end_point": {"row": 148, "column": 0}}, {"id": 384, "type": "#define", "text": "#define", "parent": 383, "children": [], "start_point": {"row": 129, "column": 0}, "end_point": {"row": 129, "column": 7}}, {"id": 385, "type": "identifier", "text": "MAKE_BISO_MALLOCED_IMPL", "parent": 383, "children": [], "start_point": {"row": 129, "column": 8}, "end_point": {"row": 129, "column": 31}}, {"id": 386, "type": "preproc_params", "text": "(isoType)", "parent": 383, "children": [387], "start_point": {"row": 129, "column": 31}, "end_point": {"row": 129, "column": 40}}, {"id": 387, "type": "identifier", "text": "isoType", "parent": 386, "children": [], "start_point": {"row": 129, "column": 32}, "end_point": {"row": 129, "column": 39}}, {"id": 388, "type": "preproc_arg", "text": "::bmalloc::api::IsoHeap<isoType>& isoType::bisoHeap() \\\n{ \\\n static ::bmalloc::api::IsoHeap<isoType> heap; \\\n return heap; \\\n} \\\n\\\nvoid* isoType::operator new(size_t size) \\\n{ \\\n RELEASE_BASSERT(size == sizeof(isoType)); \\\n return bisoHeap().allocate(); \\\n} \\\n\\\nvoid isoType::operator delete(void* p) \\\n{ \\\n bisoHeap().deallocate(p); \\\n} \\\n\\\nstruct MakeBisoMallocedImplMacroSemicolonifier##isoType { }", "parent": 383, "children": [], "start_point": {"row": 130, "column": 0}, "end_point": {"row": 147, "column": 59}}, {"id": 389, "type": "preproc_function_def", "text": "#define MAKE_BISO_MALLOCED_IMPL_TEMPLATE(isoType) \\\ntemplate<> \\\n::bmalloc::api::IsoHeap<isoType>& isoType::bisoHeap() \\\n{ \\\n static ::bmalloc::api::IsoHeap<isoType> heap; \\\n return heap; \\\n} \\\n\\\ntemplate<> \\\nvoid* isoType::operator new(size_t size) \\\n{ \\\n RELEASE_BASSERT(size == sizeof(isoType)); \\\n return bisoHeap().allocate(); \\\n} \\\n\\\ntemplate<> \\\nvoid isoType::operator delete(void* p) \\\n{ \\\n bisoHeap().deallocate(p); \\\n} \\\n\\\nstruct MakeBisoMallocedImplMacroSemicolonifier##isoType { }\n", "parent": 51, "children": [390, 391, 392, 394], "start_point": {"row": 149, "column": 0}, "end_point": {"row": 171, "column": 0}}, {"id": 390, "type": "#define", "text": "#define", "parent": 389, "children": [], "start_point": {"row": 149, "column": 0}, "end_point": {"row": 149, "column": 7}}, {"id": 391, "type": "identifier", "text": "MAKE_BISO_MALLOCED_IMPL_TEMPLATE", "parent": 389, "children": [], "start_point": {"row": 149, "column": 8}, "end_point": {"row": 149, "column": 40}}, {"id": 392, "type": "preproc_params", "text": "(isoType)", "parent": 389, "children": [393], "start_point": {"row": 149, "column": 40}, "end_point": {"row": 149, "column": 49}}, {"id": 393, "type": "identifier", "text": "isoType", "parent": 392, "children": [], "start_point": {"row": 149, "column": 41}, "end_point": {"row": 149, "column": 48}}, {"id": 394, "type": "preproc_arg", "text": "template<> \\\n::bmalloc::api::IsoHeap<isoType>& isoType::bisoHeap() \\\n{ \\\n static ::bmalloc::api::IsoHeap<isoType> heap; \\\n return heap; \\\n} \\\n\\\ntemplate<> \\\nvoid* isoType::operator new(size_t size) \\\n{ \\\n RELEASE_BASSERT(size == sizeof(isoType)); \\\n return bisoHeap().allocate(); \\\n} \\\n\\\ntemplate<> \\\nvoid isoType::operator delete(void* p) \\\n{ \\\n bisoHeap().deallocate(p); \\\n} \\\n\\\nstruct MakeBisoMallocedImplMacroSemicolonifier##isoType { }", "parent": 389, "children": [], "start_point": {"row": 150, "column": 0}, "end_point": {"row": 170, "column": 59}}]}, "node_categories": {"declarations": {"functions": [48, 51, 377, 383, 389], "variables": [74, 110], "classes": [205, 266, 298], "imports": [3, 4, 6, 7, 9, 10, 12, 13, 15, 16, 18, 19, 21, 22, 24, 25, 27, 28, 30, 31, 33, 34, 36, 37, 39, 40, 42, 43, 45, 46], "modules": [], "enums": []}, "statements": {"expressions": [54, 55, 56, 57, 64, 71, 83, 86, 90, 91, 92, 93, 100, 107, 119, 122, 126, 127, 128, 129, 142, 145, 151, 154, 158, 159, 160, 161, 174, 179, 182, 185, 186, 187, 188, 201, 208, 212, 216, 217, 218, 219, 226, 230, 234, 235, 238, 239, 246, 247, 248, 249, 262, 269, 273, 274, 279, 281, 284, 285, 289, 292, 293, 301, 305, 309, 310, 311, 312, 319, 323, 327, 328, 330, 331, 340, 341, 342, 343, 344, 357, 358, 367, 370, 374], "assignments": [207, 268, 300], "loops": [], "conditionals": [49, 50, 52, 53, 58, 60, 62, 65, 67, 69, 72, 77, 82, 84, 88, 89, 94, 96, 98, 101, 103, 105, 108, 113, 118, 120, 124, 125, 130, 132, 134, 137, 138, 140, 143, 146, 148, 150, 152, 156, 157, 162, 164, 166, 169, 170, 172, 175, 178, 180, 184, 189, 191, 193, 196, 197, 199, 202, 210, 213, 215, 220, 222, 224, 232, 236, 240, 241, 244, 245, 250, 252, 254, 257, 258, 260, 263, 271, 275, 277, 280, 282, 286, 287, 290, 294, 295, 303, 306, 308, 313, 315, 317, 325, 329, 332, 333, 335, 337, 338, 345, 347, 349, 352, 353, 355, 359, 361, 363, 366, 368, 372, 376, 379, 381, 385, 387, 391, 393], "returns": [80, 116, 237, 373], "exceptions": []}, "expressions": {"calls": [0], "literals": [5, 8, 11, 14, 17, 20, 23, 26, 29, 32, 35, 38, 41, 44, 47], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [{"node_id": 48, "universal_type": "function", "name": "abortOnFailure", "text_snippet": "namespace bmalloc { namespace api {\n\ntemplate<typename Type>\nvoid* IsoHeap<Type>::allocate()\n{\n b"}, {"node_id": 51, "universal_type": "function", "name": "abortOnFailure", "text_snippet": "namespace api {\n\ntemplate<typename Type>\nvoid* IsoHeap<Type>::allocate()\n{\n bool abortOnFailure ="}, {"node_id": 377, "universal_type": "function", "name": "operator", "text_snippet": "#define MAKE_BISO_MALLOCED_INLINE(isoType) \\\npublic: \\\n static ::bmalloc::api::IsoHeap<isoType>& "}, {"node_id": 383, "universal_type": "function", "name": "isoType::operator", "text_snippet": "#define MAKE_BISO_MALLOCED_IMPL(isoType) \\\n::bmalloc::api::IsoHeap<isoType>& isoType::bisoHeap() \\\n{"}, {"node_id": 389, "universal_type": "function", "name": "isoType::operator", "text_snippet": "#define MAKE_BISO_MALLOCED_IMPL_TEMPLATE(isoType) \\\ntemplate<> \\\n::bmalloc::api::IsoHeap<isoType>& i"}], "class_declarations": [{"node_id": 205, "universal_type": "class", "name": "unknown", "text_snippet": "auto"}, {"node_id": 266, "universal_type": "class", "name": "unknown", "text_snippet": "auto"}, {"node_id": 298, "universal_type": "class", "name": "unknown", "text_snippet": "auto"}], "import_statements": [{"node_id": 3, "text": "#include \"DeferredDecommitInlines.h\"\n"}, {"node_id": 4, "text": "#include"}, {"node_id": 6, "text": "#include \"DeferredTriggerInlines.h\"\n"}, {"node_id": 7, "text": "#include"}, {"node_id": 9, "text": "#include \"EligibilityResultInlines.h\"\n"}, {"node_id": 10, "text": "#include"}, {"node_id": 12, "text": "#include \"FreeListInlines.h\"\n"}, {"node_id": 13, "text": "#include"}, {"node_id": 15, "text": "#include \"IsoAllocatorInlines.h\"\n"}, {"node_id": 16, "text": "#include"}, {"node_id": 18, "text": "#include \"IsoDeallocatorInlines.h\"\n"}, {"node_id": 19, "text": "#include"}, {"node_id": 21, "text": "#include \"IsoDirectoryInlines.h\"\n"}, {"node_id": 22, "text": "#include"}, {"node_id": 24, "text": "#include \"IsoDirectoryPageInlines.h\"\n"}, {"node_id": 25, "text": "#include"}, {"node_id": 27, "text": "#include \"IsoHeapImplInlines.h\"\n"}, {"node_id": 28, "text": "#include"}, {"node_id": 30, "text": "#include \"IsoHeap.h\"\n"}, {"node_id": 31, "text": "#include"}, {"node_id": 33, "text": "#include \"IsoPageInlines.h\"\n"}, {"node_id": 34, "text": "#include"}, {"node_id": 36, "text": "#include \"IsoTLSAllocatorEntryInlines.h\"\n"}, {"node_id": 37, "text": "#include"}, {"node_id": 39, "text": "#include \"IsoTLSDeallocatorEntryInlines.h\"\n"}, {"node_id": 40, "text": "#include"}, {"node_id": 42, "text": "#include \"IsoTLSEntryInlines.h\"\n"}, {"node_id": 43, "text": "#include"}, {"node_id": 45, "text": "#include \"IsoTLSInlines.h\"\n"}, {"node_id": 46, "text": "#include"}]}, "original_source_code": "/*\n * Copyright (C) 2017 Apple Inc. All rights reserved.\n *\n * Redistribution and use in source and binary forms, with or without\n * modification, are permitted provided that the following conditions\n * are met:\n * 1. Redistributions of source code must retain the above copyright\n * notice, this list of conditions and the following disclaimer.\n * 2. Redistributions in binary form must reproduce the above copyright\n * notice, this list of conditions and the following disclaimer in the\n * documentation and/or other materials provided with the distribution.\n *\n * THIS SOFTWARE IS PROVIDED BY APPLE INC. ``AS IS'' AND ANY\n * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE\n * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR\n * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL APPLE INC. OR\n * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,\n * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,\n * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR\n * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY\n * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT\n * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE\n * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. \n */\n\n#pragma once\n\n#include \"DeferredDecommitInlines.h\"\n#include \"DeferredTriggerInlines.h\"\n#include \"EligibilityResultInlines.h\"\n#include \"FreeListInlines.h\"\n#include \"IsoAllocatorInlines.h\"\n#include \"IsoDeallocatorInlines.h\"\n#include \"IsoDirectoryInlines.h\"\n#include \"IsoDirectoryPageInlines.h\"\n#include \"IsoHeapImplInlines.h\"\n#include \"IsoHeap.h\"\n#include \"IsoPageInlines.h\"\n#include \"IsoTLSAllocatorEntryInlines.h\"\n#include \"IsoTLSDeallocatorEntryInlines.h\"\n#include \"IsoTLSEntryInlines.h\"\n#include \"IsoTLSInlines.h\"\n\nnamespace bmalloc { namespace api {\n\ntemplate<typename Type>\nvoid* IsoHeap<Type>::allocate()\n{\n bool abortOnFailure = true;\n return IsoTLS::allocate(*this, abortOnFailure);\n}\n\ntemplate<typename Type>\nvoid* IsoHeap<Type>::tryAllocate()\n{\n bool abortOnFailure = false;\n return IsoTLS::allocate(*this, abortOnFailure);\n}\n\ntemplate<typename Type>\nvoid IsoHeap<Type>::deallocate(void* p)\n{\n IsoTLS::deallocate(*this, p);\n}\n\ntemplate<typename Type>\nvoid IsoHeap<Type>::scavenge()\n{\n IsoTLS::scavenge(*this);\n}\n\ntemplate<typename Type>\nbool IsoHeap<Type>::isInitialized()\n{\n auto* atomic = reinterpret_cast<std::atomic<IsoHeapImpl<Config>*>*>(&m_impl);\n return atomic->load(std::memory_order_acquire);\n}\n\ntemplate<typename Type>\nvoid IsoHeap<Type>::initialize()\n{\n // We are using m_impl field as a guard variable of the initialization of IsoHeap.\n // IsoHeap::isInitialized gets m_impl with \"acquire\", and IsoHeap::initialize stores\n // the value to m_impl with \"release\". To make IsoHeap changes visible to any threads\n // when IsoHeap::isInitialized returns true, we need to store the value to m_impl *after*\n // all the initialization finishes.\n auto* heap = new IsoHeapImpl<Config>();\n setAllocatorOffset(heap->allocatorOffset());\n setDeallocatorOffset(heap->deallocatorOffset());\n auto* atomic = reinterpret_cast<std::atomic<IsoHeapImpl<Config>*>*>(&m_impl);\n atomic->store(heap, std::memory_order_release);\n}\n\ntemplate<typename Type>\nauto IsoHeap<Type>::impl() -> IsoHeapImpl<Config>&\n{\n IsoTLS::ensureHeap(*this);\n return *m_impl;\n}\n\n// This is most appropraite for template classes.\n#define MAKE_BISO_MALLOCED_INLINE(isoType) \\\npublic: \\\n static ::bmalloc::api::IsoHeap<isoType>& bisoHeap() \\\n { \\\n static ::bmalloc::api::IsoHeap<isoType> heap; \\\n return heap; \\\n } \\\n \\\n void* operator new(size_t, void* p) { return p; } \\\n void* operator new[](size_t, void* p) { return p; } \\\n \\\n void* operator new(size_t size) \\\n { \\\n RELEASE_BASSERT(size == sizeof(isoType)); \\\n return bisoHeap().allocate(); \\\n } \\\n \\\n void operator delete(void* p) \\\n { \\\n bisoHeap().deallocate(p); \\\n } \\\n \\\n void* operator new[](size_t size) = delete; \\\n void operator delete[](void* p) = delete; \\\nusing webkitFastMalloced = int; \\\nprivate: \\\nusing __makeBisoMallocedInlineMacroSemicolonifier = int\n\n#define MAKE_BISO_MALLOCED_IMPL(isoType) \\\n::bmalloc::api::IsoHeap<isoType>& isoType::bisoHeap() \\\n{ \\\n static ::bmalloc::api::IsoHeap<isoType> heap; \\\n return heap; \\\n} \\\n\\\nvoid* isoType::operator new(size_t size) \\\n{ \\\n RELEASE_BASSERT(size == sizeof(isoType)); \\\n return bisoHeap().allocate(); \\\n} \\\n\\\nvoid isoType::operator delete(void* p) \\\n{ \\\n bisoHeap().deallocate(p); \\\n} \\\n\\\nstruct MakeBisoMallocedImplMacroSemicolonifier##isoType { }\n\n#define MAKE_BISO_MALLOCED_IMPL_TEMPLATE(isoType) \\\ntemplate<> \\\n::bmalloc::api::IsoHeap<isoType>& isoType::bisoHeap() \\\n{ \\\n static ::bmalloc::api::IsoHeap<isoType> heap; \\\n return heap; \\\n} \\\n\\\ntemplate<> \\\nvoid* isoType::operator new(size_t size) \\\n{ \\\n RELEASE_BASSERT(size == sizeof(isoType)); \\\n return bisoHeap().allocate(); \\\n} \\\n\\\ntemplate<> \\\nvoid isoType::operator delete(void* p) \\\n{ \\\n bisoHeap().deallocate(p); \\\n} \\\n\\\nstruct MakeBisoMallocedImplMacroSemicolonifier##isoType { }\n\n} } // namespace bmalloc::api\n\n"}
80,079
c
// SPDX-License-Identifier: BSD-3-Clause // Copyright (c) 2017-2020 <NAME> // All rights reserved. #pragma once #include <djvUI/IButton.h> namespace djv { namespace UI { namespace Button { //! This class provides a toggle button. class Toggle : public IButton { DJV_NON_COPYABLE(Toggle); protected: void _init(const std::shared_ptr<System::Context>&); Toggle(); public: ~Toggle() override; static std::shared_ptr<Toggle> create(const std::shared_ptr<System::Context>&); void setChecked(bool) override; bool acceptFocus(TextFocusDirection) override; protected: void _preLayoutEvent(System::Event::PreLayout&) override; void _paintEvent(System::Event::Paint&) override; void _buttonPressEvent(System::Event::ButtonPress&) override; void _keyPressEvent(System::Event::KeyPress&) override; void _textFocusEvent(System::Event::TextFocus&) override; void _textFocusLostEvent(System::Event::TextFocusLost&) override; private: DJV_PRIVATE(); }; } // namespace Button typedef Button::Toggle ToggleButton; } // namespace UI } // namespace djv
36.76
37
(translation_unit) "// SPDX-License-Identifier: BSD-3-Clause\n// Copyright (c) 2017-2020 <NAME>\n// All rights reserved.\n\n#pragma once\n\n#include <djvUI/IButton.h>\n\nnamespace djv\n{\n namespace UI\n {\n namespace Button\n {\n //! This class provides a toggle button.\n class Toggle : public IButton\n {\n DJV_NON_COPYABLE(Toggle);\n\n protected:\n void _init(const std::shared_ptr<System::Context>&);\n Toggle();\n\n public:\n ~Toggle() override;\n\n static std::shared_ptr<Toggle> create(const std::shared_ptr<System::Context>&);\n\n void setChecked(bool) override;\n\n bool acceptFocus(TextFocusDirection) override;\n\n protected:\n void _preLayoutEvent(System::Event::PreLayout&) override;\n void _paintEvent(System::Event::Paint&) override;\n void _buttonPressEvent(System::Event::ButtonPress&) override;\n void _keyPressEvent(System::Event::KeyPress&) override;\n void _textFocusEvent(System::Event::TextFocus&) override;\n void _textFocusLostEvent(System::Event::TextFocusLost&) override;\n\n private:\n DJV_PRIVATE();\n };\n\n } // namespace Button\n\n typedef Button::Toggle ToggleButton;\n\n } // namespace UI\n} // namespace djv\n" (comment) "// SPDX-License-Identifier: BSD-3-Clause" (comment) "// Copyright (c) 2017-2020 <NAME>" (comment) "// All rights reserved." (preproc_call) "#pragma once\n" (preproc_directive) "#pragma" (preproc_arg) "once" (preproc_include) "#include <djvUI/IButton.h>\n" (#include) "#include" (system_lib_string) "<djvUI/IButton.h>" (function_definition) "namespace djv\n{\n namespace UI\n {\n namespace Button\n {\n //! This class provides a toggle button.\n class Toggle : public IButton\n {\n DJV_NON_COPYABLE(Toggle);\n\n protected:\n void _init(const std::shared_ptr<System::Context>&);\n Toggle();\n\n public:\n ~Toggle() override;\n\n static std::shared_ptr<Toggle> create(const std::shared_ptr<System::Context>&);\n\n void setChecked(bool) override;\n\n bool acceptFocus(TextFocusDirection) override;\n\n protected:\n void _preLayoutEvent(System::Event::PreLayout&) override;\n void _paintEvent(System::Event::Paint&) override;\n void _buttonPressEvent(System::Event::ButtonPress&) override;\n void _keyPressEvent(System::Event::KeyPress&) override;\n void _textFocusEvent(System::Event::TextFocus&) override;\n void _textFocusLostEvent(System::Event::TextFocusLost&) override;\n\n private:\n DJV_PRIVATE();\n };\n\n } // namespace Button\n\n typedef Button::Toggle ToggleButton;\n\n } // namespace UI\n}" (type_identifier) "namespace" (identifier) "djv" (compound_statement) "{\n namespace UI\n {\n namespace Button\n {\n //! This class provides a toggle button.\n class Toggle : public IButton\n {\n DJV_NON_COPYABLE(Toggle);\n\n protected:\n void _init(const std::shared_ptr<System::Context>&);\n Toggle();\n\n public:\n ~Toggle() override;\n\n static std::shared_ptr<Toggle> create(const std::shared_ptr<System::Context>&);\n\n void setChecked(bool) override;\n\n bool acceptFocus(TextFocusDirection) override;\n\n protected:\n void _preLayoutEvent(System::Event::PreLayout&) override;\n void _paintEvent(System::Event::Paint&) override;\n void _buttonPressEvent(System::Event::ButtonPress&) override;\n void _keyPressEvent(System::Event::KeyPress&) override;\n void _textFocusEvent(System::Event::TextFocus&) override;\n void _textFocusLostEvent(System::Event::TextFocusLost&) override;\n\n private:\n DJV_PRIVATE();\n };\n\n } // namespace Button\n\n typedef Button::Toggle ToggleButton;\n\n } // namespace UI\n}" ({) "{" (function_definition) "namespace UI\n {\n namespace Button\n {\n //! This class provides a toggle button.\n class Toggle : public IButton\n {\n DJV_NON_COPYABLE(Toggle);\n\n protected:\n void _init(const std::shared_ptr<System::Context>&);\n Toggle();\n\n public:\n ~Toggle() override;\n\n static std::shared_ptr<Toggle> create(const std::shared_ptr<System::Context>&);\n\n void setChecked(bool) override;\n\n bool acceptFocus(TextFocusDirection) override;\n\n protected:\n void _preLayoutEvent(System::Event::PreLayout&) override;\n void _paintEvent(System::Event::Paint&) override;\n void _buttonPressEvent(System::Event::ButtonPress&) override;\n void _keyPressEvent(System::Event::KeyPress&) override;\n void _textFocusEvent(System::Event::TextFocus&) override;\n void _textFocusLostEvent(System::Event::TextFocusLost&) override;\n\n private:\n DJV_PRIVATE();\n };\n\n } // namespace Button\n\n typedef Button::Toggle ToggleButton;\n\n }" (type_identifier) "namespace" (identifier) "UI" (compound_statement) "{\n namespace Button\n {\n //! This class provides a toggle button.\n class Toggle : public IButton\n {\n DJV_NON_COPYABLE(Toggle);\n\n protected:\n void _init(const std::shared_ptr<System::Context>&);\n Toggle();\n\n public:\n ~Toggle() override;\n\n static std::shared_ptr<Toggle> create(const std::shared_ptr<System::Context>&);\n\n void setChecked(bool) override;\n\n bool acceptFocus(TextFocusDirection) override;\n\n protected:\n void _preLayoutEvent(System::Event::PreLayout&) override;\n void _paintEvent(System::Event::Paint&) override;\n void _buttonPressEvent(System::Event::ButtonPress&) override;\n void _keyPressEvent(System::Event::KeyPress&) override;\n void _textFocusEvent(System::Event::TextFocus&) override;\n void _textFocusLostEvent(System::Event::TextFocusLost&) override;\n\n private:\n DJV_PRIVATE();\n };\n\n } // namespace Button\n\n typedef Button::Toggle ToggleButton;\n\n }" ({) "{" (function_definition) "namespace Button\n {\n //! This class provides a toggle button.\n class Toggle : public IButton\n {\n DJV_NON_COPYABLE(Toggle);\n\n protected:\n void _init(const std::shared_ptr<System::Context>&);\n Toggle();\n\n public:\n ~Toggle() override;\n\n static std::shared_ptr<Toggle> create(const std::shared_ptr<System::Context>&);\n\n void setChecked(bool) override;\n\n bool acceptFocus(TextFocusDirection) override;\n\n protected:\n void _preLayoutEvent(System::Event::PreLayout&) override;\n void _paintEvent(System::Event::Paint&) override;\n void _buttonPressEvent(System::Event::ButtonPress&) override;\n void _keyPressEvent(System::Event::KeyPress&) override;\n void _textFocusEvent(System::Event::TextFocus&) override;\n void _textFocusLostEvent(System::Event::TextFocusLost&) override;\n\n private:\n DJV_PRIVATE();\n };\n\n }" (type_identifier) "namespace" (identifier) "Button" (compound_statement) "{\n //! This class provides a toggle button.\n class Toggle : public IButton\n {\n DJV_NON_COPYABLE(Toggle);\n\n protected:\n void _init(const std::shared_ptr<System::Context>&);\n Toggle();\n\n public:\n ~Toggle() override;\n\n static std::shared_ptr<Toggle> create(const std::shared_ptr<System::Context>&);\n\n void setChecked(bool) override;\n\n bool acceptFocus(TextFocusDirection) override;\n\n protected:\n void _preLayoutEvent(System::Event::PreLayout&) override;\n void _paintEvent(System::Event::Paint&) override;\n void _buttonPressEvent(System::Event::ButtonPress&) override;\n void _keyPressEvent(System::Event::KeyPress&) override;\n void _textFocusEvent(System::Event::TextFocus&) override;\n void _textFocusLostEvent(System::Event::TextFocusLost&) override;\n\n private:\n DJV_PRIVATE();\n };\n\n }" ({) "{" (comment) "//! This class provides a toggle button." (function_definition) "class Toggle : public IButton\n {\n DJV_NON_COPYABLE(Toggle);\n\n protected:\n void _init(const std::shared_ptr<System::Context>&);\n Toggle();\n\n public:\n ~Toggle() override;\n\n static std::shared_ptr<Toggle> create(const std::shared_ptr<System::Context>&);\n\n void setChecked(bool) override;\n\n bool acceptFocus(TextFocusDirection) override;\n\n protected:\n void _preLayoutEvent(System::Event::PreLayout&) override;\n void _paintEvent(System::Event::Paint&) override;\n void _buttonPressEvent(System::Event::ButtonPress&) override;\n void _keyPressEvent(System::Event::KeyPress&) override;\n void _textFocusEvent(System::Event::TextFocus&) override;\n void _textFocusLostEvent(System::Event::TextFocusLost&) override;\n\n private:\n DJV_PRIVATE();\n }" (type_identifier) "class" (ERROR) "Toggle : public" (identifier) "Toggle" (:) ":" (identifier) "public" (identifier) "IButton" (compound_statement) "{\n DJV_NON_COPYABLE(Toggle);\n\n protected:\n void _init(const std::shared_ptr<System::Context>&);\n Toggle();\n\n public:\n ~Toggle() override;\n\n static std::shared_ptr<Toggle> create(const std::shared_ptr<System::Context>&);\n\n void setChecked(bool) override;\n\n bool acceptFocus(TextFocusDirection) override;\n\n protected:\n void _preLayoutEvent(System::Event::PreLayout&) override;\n void _paintEvent(System::Event::Paint&) override;\n void _buttonPressEvent(System::Event::ButtonPress&) override;\n void _keyPressEvent(System::Event::KeyPress&) override;\n void _textFocusEvent(System::Event::TextFocus&) override;\n void _textFocusLostEvent(System::Event::TextFocusLost&) override;\n\n private:\n DJV_PRIVATE();\n }" ({) "{" (expression_statement) "DJV_NON_COPYABLE(Toggle);" (call_expression) "DJV_NON_COPYABLE(Toggle)" (identifier) "DJV_NON_COPYABLE" (argument_list) "(Toggle)" (() "(" (identifier) "Toggle" ()) ")" (;) ";" (labeled_statement) "protected:\n void _init(const std::shared_ptr<System::Context>&);" (statement_identifier) "protected" (:) ":" (declaration) "void _init(const std::shared_ptr<System::Context>&);" (primitive_type) "void" (function_declarator) "_init(const std::shared_ptr<System::Context>&)" (identifier) "_init" (parameter_list) "(const std::shared_ptr<System::Context>&)" (() "(" (parameter_declaration) "const std::shared_ptr<System::Context" (type_qualifier) "const" (const) "const" (type_identifier) "std" (ERROR) "::shared_ptr<System::" (:) ":" (:) ":" (identifier) "shared_ptr" (<) "<" (identifier) "System" (:) ":" (:) ":" (identifier) "Context" (ERROR) ">&" (>) ">" (&) "&" ()) ")" (;) ";" (expression_statement) "Toggle();" (call_expression) "Toggle()" (identifier) "Toggle" (argument_list) "()" (() "(" ()) ")" (;) ";" (labeled_statement) "public:\n ~Toggle() override;" (statement_identifier) "public" (:) ":" (expression_statement) "~Toggle() override;" (unary_expression) "~Toggle()" (~) "~" (call_expression) "Toggle()" (identifier) "Toggle" (argument_list) "()" (() "(" ()) ")" (ERROR) "override" (identifier) "override" (;) ";" (declaration) "static std::shared_ptr<Toggle> create(const std::shared_ptr<System::Context>&);" (storage_class_specifier) "static" (static) "static" (type_identifier) "std" (ERROR) "::shared_ptr<Toggle>" (:) ":" (:) ":" (identifier) "shared_ptr" (<) "<" (identifier) "Toggle" (>) ">" (function_declarator) "create(const std::shared_ptr<System::Context>&)" (identifier) "create" (parameter_list) "(const std::shared_ptr<System::Context>&)" (() "(" (parameter_declaration) "const std::shared_ptr<System::Context" (type_qualifier) "const" (const) "const" (type_identifier) "std" (ERROR) "::shared_ptr<System::" (:) ":" (:) ":" (identifier) "shared_ptr" (<) "<" (identifier) "System" (:) ":" (:) ":" (identifier) "Context" (ERROR) ">&" (>) ">" (&) "&" ()) ")" (;) ";" (ERROR) "void setChecked(bool) override" (primitive_type) "void" (function_declarator) "setChecked(bool) override" (identifier) "setChecked" (parameter_list) "(bool)" (() "(" (parameter_declaration) "bool" (primitive_type) "bool" ()) ")" (identifier) "override" (expression_statement) ";" (;) ";" (ERROR) "bool acceptFocus(TextFocusDirection) override" (primitive_type) "bool" (function_declarator) "acceptFocus(TextFocusDirection)" (identifier) "acceptFocus" (parameter_list) "(TextFocusDirection)" (() "(" (identifier) "TextFocusDirection" ()) ")" (type_identifier) "override" (expression_statement) ";" (;) ";" (labeled_statement) "protected:\n void _preLayoutEvent(System::Event::PreLayout&) override;" (statement_identifier) "protected" (:) ":" (ERROR) "void _preLayoutEvent(System::Event::PreLayout&) override" (primitive_type) "void" (function_declarator) "_preLayoutEvent(System::Event::PreLayout&) override" (identifier) "_preLayoutEvent" (parameter_list) "(System::Event::PreLayout&)" (() "(" (parameter_declaration) "System::Event::PreLayout" (type_identifier) "System" (ERROR) "::Event::" (:) ":" (:) ":" (identifier) "Event" (:) ":" (:) ":" (identifier) "PreLayout" (ERROR) "&" (&) "&" ()) ")" (identifier) "override" (expression_statement) ";" (;) ";" (ERROR) "void _paintEvent(System::Event::Paint&) override" (primitive_type) "void" (function_declarator) "_paintEvent(System::Event::Paint&) override" (identifier) "_paintEvent" (parameter_list) "(System::Event::Paint&)" (() "(" (parameter_declaration) "System::Event::Paint" (type_identifier) "System" (ERROR) "::Event::" (:) ":" (:) ":" (identifier) "Event" (:) ":" (:) ":" (identifier) "Paint" (ERROR) "&" (&) "&" ()) ")" (identifier) "override" (expression_statement) ";" (;) ";" (ERROR) "void _buttonPressEvent(System::Event::ButtonPress&) override" (primitive_type) "void" (function_declarator) "_buttonPressEvent(System::Event::ButtonPress&) override" (identifier) "_buttonPressEvent" (parameter_list) "(System::Event::ButtonPress&)" (() "(" (parameter_declaration) "System::Event::ButtonPress" (type_identifier) "System" (ERROR) "::Event::" (:) ":" (:) ":" (identifier) "Event" (:) ":" (:) ":" (identifier) "ButtonPress" (ERROR) "&" (&) "&" ()) ")" (identifier) "override" (expression_statement) ";" (;) ";" (ERROR) "void _keyPressEvent(System::Event::KeyPress&) override" (primitive_type) "void" (function_declarator) "_keyPressEvent(System::Event::KeyPress&) override" (identifier) "_keyPressEvent" (parameter_list) "(System::Event::KeyPress&)" (() "(" (parameter_declaration) "System::Event::KeyPress" (type_identifier) "System" (ERROR) "::Event::" (:) ":" (:) ":" (identifier) "Event" (:) ":" (:) ":" (identifier) "KeyPress" (ERROR) "&" (&) "&" ()) ")" (identifier) "override" (expression_statement) ";" (;) ";" (ERROR) "void _textFocusEvent(System::Event::TextFocus&) override" (primitive_type) "void" (function_declarator) "_textFocusEvent(System::Event::TextFocus&) override" (identifier) "_textFocusEvent" (parameter_list) "(System::Event::TextFocus&)" (() "(" (parameter_declaration) "System::Event::TextFocus" (type_identifier) "System" (ERROR) "::Event::" (:) ":" (:) ":" (identifier) "Event" (:) ":" (:) ":" (identifier) "TextFocus" (ERROR) "&" (&) "&" ()) ")" (identifier) "override" (expression_statement) ";" (;) ";" (ERROR) "void _textFocusLostEvent(System::Event::TextFocusLost&) override" (primitive_type) "void" (function_declarator) "_textFocusLostEvent(System::Event::TextFocusLost&) override" (identifier) "_textFocusLostEvent" (parameter_list) "(System::Event::TextFocusLost&)" (() "(" (parameter_declaration) "System::Event::TextFocusLost" (type_identifier) "System" (ERROR) "::Event::" (:) ":" (:) ":" (identifier) "Event" (:) ":" (:) ":" (identifier) "TextFocusLost" (ERROR) "&" (&) "&" ()) ")" (identifier) "override" (expression_statement) ";" (;) ";" (labeled_statement) "private:\n DJV_PRIVATE();" (statement_identifier) "private" (:) ":" (expression_statement) "DJV_PRIVATE();" (call_expression) "DJV_PRIVATE()" (identifier) "DJV_PRIVATE" (argument_list) "()" (() "(" ()) ")" (;) ";" (}) "}" (expression_statement) ";" (;) ";" (}) "}" (comment) "// namespace Button" (type_definition) "typedef Button::Toggle ToggleButton;" (typedef) "typedef" (type_identifier) "Button" (ERROR) "::Toggle" (:) ":" (:) ":" (type_identifier) "Toggle" (type_identifier) "ToggleButton" (;) ";" (}) "}" (comment) "// namespace UI" (}) "}" (comment) "// namespace djv"
304
28
{"language": "c", "success": true, "metadata": {"lines": 37, "avg_line_length": 36.76, "nodes": 160, "errors": 0, "source_hash": "43be6b46518ba3faaaea6e0a87efc5bb84e4bb10d9b67d579c9a7b30008910c5", "categorized_nodes": 100}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma once\n", "parent": null, "children": [1, 2], "start_point": {"row": 4, "column": 0}, "end_point": {"row": 5, "column": 0}}, {"id": 1, "type": "preproc_directive", "text": "#pragma", "parent": 0, "children": [], "start_point": {"row": 4, "column": 0}, "end_point": {"row": 4, "column": 7}}, {"id": 2, "type": "preproc_arg", "text": "once", "parent": 0, "children": [], "start_point": {"row": 4, "column": 8}, "end_point": {"row": 4, "column": 12}}, {"id": 3, "type": "preproc_include", "text": "#include <djvUI/IButton.h>\n", "parent": null, "children": [4, 5], "start_point": {"row": 6, "column": 0}, "end_point": {"row": 7, "column": 0}}, {"id": 4, "type": "#include", "text": "#include", "parent": 3, "children": [], "start_point": {"row": 6, "column": 0}, "end_point": {"row": 6, "column": 8}}, {"id": 5, "type": "system_lib_string", "text": "<djvUI/IButton.h>", "parent": 3, "children": [], "start_point": {"row": 6, "column": 9}, "end_point": {"row": 6, "column": 26}}, {"id": 6, "type": "function_definition", "text": "namespace djv\n{\n namespace UI\n {\n namespace Button\n {\n //! This class provides a toggle button.\n class Toggle : public IButton\n {\n DJV_NON_COPYABLE(Toggle);\n\n protected:\n void _init(const std::shared_ptr<System::Context>&);\n Toggle();\n\n public:\n ~Toggle() override;\n\n static std::shared_ptr<Toggle> create(const std::shared_ptr<System::Context>&);\n\n void setChecked(bool) override;\n\n bool acceptFocus(TextFocusDirection) override;\n\n protected:\n void _preLayoutEvent(System::Event::PreLayout&) override;\n void _paintEvent(System::Event::Paint&) override;\n void _buttonPressEvent(System::Event::ButtonPress&) override;\n void _keyPressEvent(System::Event::KeyPress&) override;\n void _textFocusEvent(System::Event::TextFocus&) override;\n void _textFocusLostEvent(System::Event::TextFocusLost&) override;\n\n private:\n DJV_PRIVATE();\n };\n\n } // namespace Button\n\n typedef Button::Toggle ToggleButton;\n\n } // namespace UI\n}", "parent": null, "children": [7, 8], "start_point": {"row": 8, "column": 0}, "end_point": {"row": 49, "column": 1}}, {"id": 7, "type": "type_identifier", "text": "namespace", "parent": 6, "children": [], "start_point": {"row": 8, "column": 0}, "end_point": {"row": 8, "column": 9}}, {"id": 8, "type": "identifier", "text": "djv", "parent": 6, "children": [], "start_point": {"row": 8, "column": 10}, "end_point": {"row": 8, "column": 13}}, {"id": 9, "type": "function_definition", "text": "namespace UI\n {\n namespace Button\n {\n //! This class provides a toggle button.\n class Toggle : public IButton\n {\n DJV_NON_COPYABLE(Toggle);\n\n protected:\n void _init(const std::shared_ptr<System::Context>&);\n Toggle();\n\n public:\n ~Toggle() override;\n\n static std::shared_ptr<Toggle> create(const std::shared_ptr<System::Context>&);\n\n void setChecked(bool) override;\n\n bool acceptFocus(TextFocusDirection) override;\n\n protected:\n void _preLayoutEvent(System::Event::PreLayout&) override;\n void _paintEvent(System::Event::Paint&) override;\n void _buttonPressEvent(System::Event::ButtonPress&) override;\n void _keyPressEvent(System::Event::KeyPress&) override;\n void _textFocusEvent(System::Event::TextFocus&) override;\n void _textFocusLostEvent(System::Event::TextFocusLost&) override;\n\n private:\n DJV_PRIVATE();\n };\n\n } // namespace Button\n\n typedef Button::Toggle ToggleButton;\n\n }", "parent": 6, "children": [10, 11], "start_point": {"row": 10, "column": 4}, "end_point": {"row": 48, "column": 5}}, {"id": 10, "type": "type_identifier", "text": "namespace", "parent": 9, "children": [], "start_point": {"row": 10, "column": 4}, "end_point": {"row": 10, "column": 13}}, {"id": 11, "type": "identifier", "text": "UI", "parent": 9, "children": [], "start_point": {"row": 10, "column": 14}, "end_point": {"row": 10, "column": 16}}, {"id": 12, "type": "function_definition", "text": "namespace Button\n {\n //! This class provides a toggle button.\n class Toggle : public IButton\n {\n DJV_NON_COPYABLE(Toggle);\n\n protected:\n void _init(const std::shared_ptr<System::Context>&);\n Toggle();\n\n public:\n ~Toggle() override;\n\n static std::shared_ptr<Toggle> create(const std::shared_ptr<System::Context>&);\n\n void setChecked(bool) override;\n\n bool acceptFocus(TextFocusDirection) override;\n\n protected:\n void _preLayoutEvent(System::Event::PreLayout&) override;\n void _paintEvent(System::Event::Paint&) override;\n void _buttonPressEvent(System::Event::ButtonPress&) override;\n void _keyPressEvent(System::Event::KeyPress&) override;\n void _textFocusEvent(System::Event::TextFocus&) override;\n void _textFocusLostEvent(System::Event::TextFocusLost&) override;\n\n private:\n DJV_PRIVATE();\n };\n\n }", "parent": 9, "children": [13, 14], "start_point": {"row": 12, "column": 8}, "end_point": {"row": 44, "column": 9}}, {"id": 13, "type": "type_identifier", "text": "namespace", "parent": 12, "children": [], "start_point": {"row": 12, "column": 8}, "end_point": {"row": 12, "column": 17}}, {"id": 14, "type": "identifier", "text": "Button", "parent": 12, "children": [], "start_point": {"row": 12, "column": 18}, "end_point": {"row": 12, "column": 24}}, {"id": 15, "type": "function_definition", "text": "class Toggle : public IButton\n {\n DJV_NON_COPYABLE(Toggle);\n\n protected:\n void _init(const std::shared_ptr<System::Context>&);\n Toggle();\n\n public:\n ~Toggle() override;\n\n static std::shared_ptr<Toggle> create(const std::shared_ptr<System::Context>&);\n\n void setChecked(bool) override;\n\n bool acceptFocus(TextFocusDirection) override;\n\n protected:\n void _preLayoutEvent(System::Event::PreLayout&) override;\n void _paintEvent(System::Event::Paint&) override;\n void _buttonPressEvent(System::Event::ButtonPress&) override;\n void _keyPressEvent(System::Event::KeyPress&) override;\n void _textFocusEvent(System::Event::TextFocus&) override;\n void _textFocusLostEvent(System::Event::TextFocusLost&) override;\n\n private:\n DJV_PRIVATE();\n }", "parent": 12, "children": [16, 18], "start_point": {"row": 15, "column": 12}, "end_point": {"row": 42, "column": 13}}, {"id": 16, "type": "ERROR", "text": "Toggle : public", "parent": 15, "children": [17], "start_point": {"row": 15, "column": 18}, "end_point": {"row": 15, "column": 33}}, {"id": 17, "type": "identifier", "text": "Toggle", "parent": 16, "children": [], "start_point": {"row": 15, "column": 18}, "end_point": {"row": 15, "column": 24}}, {"id": 18, "type": "identifier", "text": "IButton", "parent": 15, "children": [], "start_point": {"row": 15, "column": 34}, "end_point": {"row": 15, "column": 41}}, {"id": 19, "type": "call_expression", "text": "DJV_NON_COPYABLE(Toggle)", "parent": 15, "children": [20, 21], "start_point": {"row": 17, "column": 16}, "end_point": {"row": 17, "column": 40}}, {"id": 20, "type": "identifier", "text": "DJV_NON_COPYABLE", "parent": 19, "children": [], "start_point": {"row": 17, "column": 16}, "end_point": {"row": 17, "column": 32}}, {"id": 21, "type": "argument_list", "text": "(Toggle)", "parent": 19, "children": [22], "start_point": {"row": 17, "column": 32}, "end_point": {"row": 17, "column": 40}}, {"id": 22, "type": "identifier", "text": "Toggle", "parent": 21, "children": [], "start_point": {"row": 17, "column": 33}, "end_point": {"row": 17, "column": 39}}, {"id": 23, "type": "labeled_statement", "text": "protected:\n void _init(const std::shared_ptr<System::Context>&);", "parent": 15, "children": [24], "start_point": {"row": 19, "column": 12}, "end_point": {"row": 20, "column": 68}}, {"id": 24, "type": "declaration", "text": "void _init(const std::shared_ptr<System::Context>&);", "parent": 23, "children": [25, 26], "start_point": {"row": 20, "column": 16}, "end_point": {"row": 20, "column": 68}}, {"id": 25, "type": "primitive_type", "text": "void", "parent": 24, "children": [], "start_point": {"row": 20, "column": 16}, "end_point": {"row": 20, "column": 20}}, {"id": 26, "type": "function_declarator", "text": "_init(const std::shared_ptr<System::Context>&)", "parent": 24, "children": [27, 28], "start_point": {"row": 20, "column": 21}, "end_point": {"row": 20, "column": 67}}, {"id": 27, "type": "identifier", "text": "_init", "parent": 26, "children": [], "start_point": {"row": 20, "column": 21}, "end_point": {"row": 20, "column": 26}}, {"id": 28, "type": "parameter_list", "text": "(const std::shared_ptr<System::Context>&)", "parent": 26, "children": [29, 36], "start_point": {"row": 20, "column": 26}, "end_point": {"row": 20, "column": 67}}, {"id": 29, "type": "parameter_declaration", "text": "const std::shared_ptr<System::Context", "parent": 28, "children": [30, 31, 35], "start_point": {"row": 20, "column": 27}, "end_point": {"row": 20, "column": 64}}, {"id": 30, "type": "type_identifier", "text": "std", "parent": 29, "children": [], "start_point": {"row": 20, "column": 33}, "end_point": {"row": 20, "column": 36}}, {"id": 31, "type": "ERROR", "text": "::shared_ptr<System::", "parent": 29, "children": [32, 33, 34], "start_point": {"row": 20, "column": 36}, "end_point": {"row": 20, "column": 57}}, {"id": 32, "type": "identifier", "text": "shared_ptr", "parent": 31, "children": [], "start_point": {"row": 20, "column": 38}, "end_point": {"row": 20, "column": 48}}, {"id": 33, "type": "<", "text": "<", "parent": 31, "children": [], "start_point": {"row": 20, "column": 48}, "end_point": {"row": 20, "column": 49}}, {"id": 34, "type": "identifier", "text": "System", "parent": 31, "children": [], "start_point": {"row": 20, "column": 49}, "end_point": {"row": 20, "column": 55}}, {"id": 35, "type": "identifier", "text": "Context", "parent": 29, "children": [], "start_point": {"row": 20, "column": 57}, "end_point": {"row": 20, "column": 64}}, {"id": 36, "type": "ERROR", "text": ">&", "parent": 28, "children": [37], "start_point": {"row": 20, "column": 64}, "end_point": {"row": 20, "column": 66}}, {"id": 37, "type": ">", "text": ">", "parent": 36, "children": [], "start_point": {"row": 20, "column": 64}, "end_point": {"row": 20, "column": 65}}, {"id": 38, "type": "call_expression", "text": "Toggle()", "parent": 15, "children": [39, 40], "start_point": {"row": 21, "column": 16}, "end_point": {"row": 21, "column": 24}}, {"id": 39, "type": "identifier", "text": "Toggle", "parent": 38, "children": [], "start_point": {"row": 21, "column": 16}, "end_point": {"row": 21, "column": 22}}, {"id": 40, "type": "argument_list", "text": "()", "parent": 38, "children": [], "start_point": {"row": 21, "column": 22}, "end_point": {"row": 21, "column": 24}}, {"id": 41, "type": "labeled_statement", "text": "public:\n ~Toggle() override;", "parent": 15, "children": [], "start_point": {"row": 23, "column": 12}, "end_point": {"row": 24, "column": 35}}, {"id": 42, "type": "unary_expression", "text": "~Toggle()", "parent": 41, "children": [43, 44], "start_point": {"row": 24, "column": 16}, "end_point": {"row": 24, "column": 25}}, {"id": 43, "type": "~", "text": "~", "parent": 42, "children": [], "start_point": {"row": 24, "column": 16}, "end_point": {"row": 24, "column": 17}}, {"id": 44, "type": "call_expression", "text": "Toggle()", "parent": 42, "children": [45, 46], "start_point": {"row": 24, "column": 17}, "end_point": {"row": 24, "column": 25}}, {"id": 45, "type": "identifier", "text": "Toggle", "parent": 44, "children": [], "start_point": {"row": 24, "column": 17}, "end_point": {"row": 24, "column": 23}}, {"id": 46, "type": "argument_list", "text": "()", "parent": 44, "children": [], "start_point": {"row": 24, "column": 23}, "end_point": {"row": 24, "column": 25}}, {"id": 47, "type": "ERROR", "text": "override", "parent": 41, "children": [48], "start_point": {"row": 24, "column": 26}, "end_point": {"row": 24, "column": 34}}, {"id": 48, "type": "identifier", "text": "override", "parent": 47, "children": [], "start_point": {"row": 24, "column": 26}, "end_point": {"row": 24, "column": 34}}, {"id": 49, "type": "declaration", "text": "static std::shared_ptr<Toggle> create(const std::shared_ptr<System::Context>&);", "parent": 15, "children": [50, 51, 56], "start_point": {"row": 26, "column": 16}, "end_point": {"row": 26, "column": 95}}, {"id": 50, "type": "type_identifier", "text": "std", "parent": 49, "children": [], "start_point": {"row": 26, "column": 23}, "end_point": {"row": 26, "column": 26}}, {"id": 51, "type": "ERROR", "text": "::shared_ptr<Toggle>", "parent": 49, "children": [52, 53, 54, 55], "start_point": {"row": 26, "column": 26}, "end_point": {"row": 26, "column": 46}}, {"id": 52, "type": "identifier", "text": "shared_ptr", "parent": 51, "children": [], "start_point": {"row": 26, "column": 28}, "end_point": {"row": 26, "column": 38}}, {"id": 53, "type": "<", "text": "<", "parent": 51, "children": [], "start_point": {"row": 26, "column": 38}, "end_point": {"row": 26, "column": 39}}, {"id": 54, "type": "identifier", "text": "Toggle", "parent": 51, "children": [], "start_point": {"row": 26, "column": 39}, "end_point": {"row": 26, "column": 45}}, {"id": 55, "type": ">", "text": ">", "parent": 51, "children": [], "start_point": {"row": 26, "column": 45}, "end_point": {"row": 26, "column": 46}}, {"id": 56, "type": "function_declarator", "text": "create(const std::shared_ptr<System::Context>&)", "parent": 49, "children": [57, 58], "start_point": {"row": 26, "column": 47}, "end_point": {"row": 26, "column": 94}}, {"id": 57, "type": "identifier", "text": "create", "parent": 56, "children": [], "start_point": {"row": 26, "column": 47}, "end_point": {"row": 26, "column": 53}}, {"id": 58, "type": "parameter_list", "text": "(const std::shared_ptr<System::Context>&)", "parent": 56, "children": [59, 66], "start_point": {"row": 26, "column": 53}, "end_point": {"row": 26, "column": 94}}, {"id": 59, "type": "parameter_declaration", "text": "const std::shared_ptr<System::Context", "parent": 58, "children": [60, 61, 65], "start_point": {"row": 26, "column": 54}, "end_point": {"row": 26, "column": 91}}, {"id": 60, "type": "type_identifier", "text": "std", "parent": 59, "children": [], "start_point": {"row": 26, "column": 60}, "end_point": {"row": 26, "column": 63}}, {"id": 61, "type": "ERROR", "text": "::shared_ptr<System::", "parent": 59, "children": [62, 63, 64], "start_point": {"row": 26, "column": 63}, "end_point": {"row": 26, "column": 84}}, {"id": 62, "type": "identifier", "text": "shared_ptr", "parent": 61, "children": [], "start_point": {"row": 26, "column": 65}, "end_point": {"row": 26, "column": 75}}, {"id": 63, "type": "<", "text": "<", "parent": 61, "children": [], "start_point": {"row": 26, "column": 75}, "end_point": {"row": 26, "column": 76}}, {"id": 64, "type": "identifier", "text": "System", "parent": 61, "children": [], "start_point": {"row": 26, "column": 76}, "end_point": {"row": 26, "column": 82}}, {"id": 65, "type": "identifier", "text": "Context", "parent": 59, "children": [], "start_point": {"row": 26, "column": 84}, "end_point": {"row": 26, "column": 91}}, {"id": 66, "type": "ERROR", "text": ">&", "parent": 58, "children": [67], "start_point": {"row": 26, "column": 91}, "end_point": {"row": 26, "column": 93}}, {"id": 67, "type": ">", "text": ">", "parent": 66, "children": [], "start_point": {"row": 26, "column": 91}, "end_point": {"row": 26, "column": 92}}, {"id": 68, "type": "ERROR", "text": "void setChecked(bool) override", "parent": 15, "children": [69, 70], "start_point": {"row": 28, "column": 16}, "end_point": {"row": 28, "column": 46}}, {"id": 69, "type": "primitive_type", "text": "void", "parent": 68, "children": [], "start_point": {"row": 28, "column": 16}, "end_point": {"row": 28, "column": 20}}, {"id": 70, "type": "function_declarator", "text": "setChecked(bool) override", "parent": 68, "children": [71, 72, 75], "start_point": {"row": 28, "column": 21}, "end_point": {"row": 28, "column": 46}}, {"id": 71, "type": "identifier", "text": "setChecked", "parent": 70, "children": [], "start_point": {"row": 28, "column": 21}, "end_point": {"row": 28, "column": 31}}, {"id": 72, "type": "parameter_list", "text": "(bool)", "parent": 70, "children": [73], "start_point": {"row": 28, "column": 31}, "end_point": {"row": 28, "column": 37}}, {"id": 73, "type": "parameter_declaration", "text": "bool", "parent": 72, "children": [74], "start_point": {"row": 28, "column": 32}, "end_point": {"row": 28, "column": 36}}, {"id": 74, "type": "primitive_type", "text": "bool", "parent": 73, "children": [], "start_point": {"row": 28, "column": 32}, "end_point": {"row": 28, "column": 36}}, {"id": 75, "type": "identifier", "text": "override", "parent": 70, "children": [], "start_point": {"row": 28, "column": 38}, "end_point": {"row": 28, "column": 46}}, {"id": 76, "type": "ERROR", "text": "bool acceptFocus(TextFocusDirection) override", "parent": 15, "children": [77, 78, 82], "start_point": {"row": 30, "column": 16}, "end_point": {"row": 30, "column": 61}}, {"id": 77, "type": "primitive_type", "text": "bool", "parent": 76, "children": [], "start_point": {"row": 30, "column": 16}, "end_point": {"row": 30, "column": 20}}, {"id": 78, "type": "function_declarator", "text": "acceptFocus(TextFocusDirection)", "parent": 76, "children": [79, 80], "start_point": {"row": 30, "column": 21}, "end_point": {"row": 30, "column": 52}}, {"id": 79, "type": "identifier", "text": "acceptFocus", "parent": 78, "children": [], "start_point": {"row": 30, "column": 21}, "end_point": {"row": 30, "column": 32}}, {"id": 80, "type": "parameter_list", "text": "(TextFocusDirection)", "parent": 78, "children": [81], "start_point": {"row": 30, "column": 32}, "end_point": {"row": 30, "column": 52}}, {"id": 81, "type": "identifier", "text": "TextFocusDirection", "parent": 80, "children": [], "start_point": {"row": 30, "column": 33}, "end_point": {"row": 30, "column": 51}}, {"id": 82, "type": "type_identifier", "text": "override", "parent": 76, "children": [], "start_point": {"row": 30, "column": 53}, "end_point": {"row": 30, "column": 61}}, {"id": 83, "type": "labeled_statement", "text": "protected:\n void _preLayoutEvent(System::Event::PreLayout&) override;", "parent": 15, "children": [84], "start_point": {"row": 32, "column": 12}, "end_point": {"row": 33, "column": 73}}, {"id": 84, "type": "ERROR", "text": "void _preLayoutEvent(System::Event::PreLayout&) override", "parent": 83, "children": [85, 86], "start_point": {"row": 33, "column": 16}, "end_point": {"row": 33, "column": 72}}, {"id": 85, "type": "primitive_type", "text": "void", "parent": 84, "children": [], "start_point": {"row": 33, "column": 16}, "end_point": {"row": 33, "column": 20}}, {"id": 86, "type": "function_declarator", "text": "_preLayoutEvent(System::Event::PreLayout&) override", "parent": 84, "children": [87, 88, 94], "start_point": {"row": 33, "column": 21}, "end_point": {"row": 33, "column": 72}}, {"id": 87, "type": "identifier", "text": "_preLayoutEvent", "parent": 86, "children": [], "start_point": {"row": 33, "column": 21}, "end_point": {"row": 33, "column": 36}}, {"id": 88, "type": "parameter_list", "text": "(System::Event::PreLayout&)", "parent": 86, "children": [89], "start_point": {"row": 33, "column": 36}, "end_point": {"row": 33, "column": 63}}, {"id": 89, "type": "parameter_declaration", "text": "System::Event::PreLayout", "parent": 88, "children": [90, 91, 93], "start_point": {"row": 33, "column": 37}, "end_point": {"row": 33, "column": 61}}, {"id": 90, "type": "type_identifier", "text": "System", "parent": 89, "children": [], "start_point": {"row": 33, "column": 37}, "end_point": {"row": 33, "column": 43}}, {"id": 91, "type": "ERROR", "text": "::Event::", "parent": 89, "children": [92], "start_point": {"row": 33, "column": 43}, "end_point": {"row": 33, "column": 52}}, {"id": 92, "type": "identifier", "text": "Event", "parent": 91, "children": [], "start_point": {"row": 33, "column": 45}, "end_point": {"row": 33, "column": 50}}, {"id": 93, "type": "identifier", "text": "PreLayout", "parent": 89, "children": [], "start_point": {"row": 33, "column": 52}, "end_point": {"row": 33, "column": 61}}, {"id": 94, "type": "identifier", "text": "override", "parent": 86, "children": [], "start_point": {"row": 33, "column": 64}, "end_point": {"row": 33, "column": 72}}, {"id": 95, "type": "ERROR", "text": "void _paintEvent(System::Event::Paint&) override", "parent": 15, "children": [96, 97], "start_point": {"row": 34, "column": 16}, "end_point": {"row": 34, "column": 64}}, {"id": 96, "type": "primitive_type", "text": "void", "parent": 95, "children": [], "start_point": {"row": 34, "column": 16}, "end_point": {"row": 34, "column": 20}}, {"id": 97, "type": "function_declarator", "text": "_paintEvent(System::Event::Paint&) override", "parent": 95, "children": [98, 99, 105], "start_point": {"row": 34, "column": 21}, "end_point": {"row": 34, "column": 64}}, {"id": 98, "type": "identifier", "text": "_paintEvent", "parent": 97, "children": [], "start_point": {"row": 34, "column": 21}, "end_point": {"row": 34, "column": 32}}, {"id": 99, "type": "parameter_list", "text": "(System::Event::Paint&)", "parent": 97, "children": [100], "start_point": {"row": 34, "column": 32}, "end_point": {"row": 34, "column": 55}}, {"id": 100, "type": "parameter_declaration", "text": "System::Event::Paint", "parent": 99, "children": [101, 102, 104], "start_point": {"row": 34, "column": 33}, "end_point": {"row": 34, "column": 53}}, {"id": 101, "type": "type_identifier", "text": "System", "parent": 100, "children": [], "start_point": {"row": 34, "column": 33}, "end_point": {"row": 34, "column": 39}}, {"id": 102, "type": "ERROR", "text": "::Event::", "parent": 100, "children": [103], "start_point": {"row": 34, "column": 39}, "end_point": {"row": 34, "column": 48}}, {"id": 103, "type": "identifier", "text": "Event", "parent": 102, "children": [], "start_point": {"row": 34, "column": 41}, "end_point": {"row": 34, "column": 46}}, {"id": 104, "type": "identifier", "text": "Paint", "parent": 100, "children": [], "start_point": {"row": 34, "column": 48}, "end_point": {"row": 34, "column": 53}}, {"id": 105, "type": "identifier", "text": "override", "parent": 97, "children": [], "start_point": {"row": 34, "column": 56}, "end_point": {"row": 34, "column": 64}}, {"id": 106, "type": "ERROR", "text": "void _buttonPressEvent(System::Event::ButtonPress&) override", "parent": 15, "children": [107, 108], "start_point": {"row": 35, "column": 16}, "end_point": {"row": 35, "column": 76}}, {"id": 107, "type": "primitive_type", "text": "void", "parent": 106, "children": [], "start_point": {"row": 35, "column": 16}, "end_point": {"row": 35, "column": 20}}, {"id": 108, "type": "function_declarator", "text": "_buttonPressEvent(System::Event::ButtonPress&) override", "parent": 106, "children": [109, 110, 116], "start_point": {"row": 35, "column": 21}, "end_point": {"row": 35, "column": 76}}, {"id": 109, "type": "identifier", "text": "_buttonPressEvent", "parent": 108, "children": [], "start_point": {"row": 35, "column": 21}, "end_point": {"row": 35, "column": 38}}, {"id": 110, "type": "parameter_list", "text": "(System::Event::ButtonPress&)", "parent": 108, "children": [111], "start_point": {"row": 35, "column": 38}, "end_point": {"row": 35, "column": 67}}, {"id": 111, "type": "parameter_declaration", "text": "System::Event::ButtonPress", "parent": 110, "children": [112, 113, 115], "start_point": {"row": 35, "column": 39}, "end_point": {"row": 35, "column": 65}}, {"id": 112, "type": "type_identifier", "text": "System", "parent": 111, "children": [], "start_point": {"row": 35, "column": 39}, "end_point": {"row": 35, "column": 45}}, {"id": 113, "type": "ERROR", "text": "::Event::", "parent": 111, "children": [114], "start_point": {"row": 35, "column": 45}, "end_point": {"row": 35, "column": 54}}, {"id": 114, "type": "identifier", "text": "Event", "parent": 113, "children": [], "start_point": {"row": 35, "column": 47}, "end_point": {"row": 35, "column": 52}}, {"id": 115, "type": "identifier", "text": "ButtonPress", "parent": 111, "children": [], "start_point": {"row": 35, "column": 54}, "end_point": {"row": 35, "column": 65}}, {"id": 116, "type": "identifier", "text": "override", "parent": 108, "children": [], "start_point": {"row": 35, "column": 68}, "end_point": {"row": 35, "column": 76}}, {"id": 117, "type": "ERROR", "text": "void _keyPressEvent(System::Event::KeyPress&) override", "parent": 15, "children": [118, 119], "start_point": {"row": 36, "column": 16}, "end_point": {"row": 36, "column": 70}}, {"id": 118, "type": "primitive_type", "text": "void", "parent": 117, "children": [], "start_point": {"row": 36, "column": 16}, "end_point": {"row": 36, "column": 20}}, {"id": 119, "type": "function_declarator", "text": "_keyPressEvent(System::Event::KeyPress&) override", "parent": 117, "children": [120, 121, 127], "start_point": {"row": 36, "column": 21}, "end_point": {"row": 36, "column": 70}}, {"id": 120, "type": "identifier", "text": "_keyPressEvent", "parent": 119, "children": [], "start_point": {"row": 36, "column": 21}, "end_point": {"row": 36, "column": 35}}, {"id": 121, "type": "parameter_list", "text": "(System::Event::KeyPress&)", "parent": 119, "children": [122], "start_point": {"row": 36, "column": 35}, "end_point": {"row": 36, "column": 61}}, {"id": 122, "type": "parameter_declaration", "text": "System::Event::KeyPress", "parent": 121, "children": [123, 124, 126], "start_point": {"row": 36, "column": 36}, "end_point": {"row": 36, "column": 59}}, {"id": 123, "type": "type_identifier", "text": "System", "parent": 122, "children": [], "start_point": {"row": 36, "column": 36}, "end_point": {"row": 36, "column": 42}}, {"id": 124, "type": "ERROR", "text": "::Event::", "parent": 122, "children": [125], "start_point": {"row": 36, "column": 42}, "end_point": {"row": 36, "column": 51}}, {"id": 125, "type": "identifier", "text": "Event", "parent": 124, "children": [], "start_point": {"row": 36, "column": 44}, "end_point": {"row": 36, "column": 49}}, {"id": 126, "type": "identifier", "text": "KeyPress", "parent": 122, "children": [], "start_point": {"row": 36, "column": 51}, "end_point": {"row": 36, "column": 59}}, {"id": 127, "type": "identifier", "text": "override", "parent": 119, "children": [], "start_point": {"row": 36, "column": 62}, "end_point": {"row": 36, "column": 70}}, {"id": 128, "type": "ERROR", "text": "void _textFocusEvent(System::Event::TextFocus&) override", "parent": 15, "children": [129, 130], "start_point": {"row": 37, "column": 16}, "end_point": {"row": 37, "column": 72}}, {"id": 129, "type": "primitive_type", "text": "void", "parent": 128, "children": [], "start_point": {"row": 37, "column": 16}, "end_point": {"row": 37, "column": 20}}, {"id": 130, "type": "function_declarator", "text": "_textFocusEvent(System::Event::TextFocus&) override", "parent": 128, "children": [131, 132, 138], "start_point": {"row": 37, "column": 21}, "end_point": {"row": 37, "column": 72}}, {"id": 131, "type": "identifier", "text": "_textFocusEvent", "parent": 130, "children": [], "start_point": {"row": 37, "column": 21}, "end_point": {"row": 37, "column": 36}}, {"id": 132, "type": "parameter_list", "text": "(System::Event::TextFocus&)", "parent": 130, "children": [133], "start_point": {"row": 37, "column": 36}, "end_point": {"row": 37, "column": 63}}, {"id": 133, "type": "parameter_declaration", "text": "System::Event::TextFocus", "parent": 132, "children": [134, 135, 137], "start_point": {"row": 37, "column": 37}, "end_point": {"row": 37, "column": 61}}, {"id": 134, "type": "type_identifier", "text": "System", "parent": 133, "children": [], "start_point": {"row": 37, "column": 37}, "end_point": {"row": 37, "column": 43}}, {"id": 135, "type": "ERROR", "text": "::Event::", "parent": 133, "children": [136], "start_point": {"row": 37, "column": 43}, "end_point": {"row": 37, "column": 52}}, {"id": 136, "type": "identifier", "text": "Event", "parent": 135, "children": [], "start_point": {"row": 37, "column": 45}, "end_point": {"row": 37, "column": 50}}, {"id": 137, "type": "identifier", "text": "TextFocus", "parent": 133, "children": [], "start_point": {"row": 37, "column": 52}, "end_point": {"row": 37, "column": 61}}, {"id": 138, "type": "identifier", "text": "override", "parent": 130, "children": [], "start_point": {"row": 37, "column": 64}, "end_point": {"row": 37, "column": 72}}, {"id": 139, "type": "ERROR", "text": "void _textFocusLostEvent(System::Event::TextFocusLost&) override", "parent": 15, "children": [140, 141], "start_point": {"row": 38, "column": 16}, "end_point": {"row": 38, "column": 80}}, {"id": 140, "type": "primitive_type", "text": "void", "parent": 139, "children": [], "start_point": {"row": 38, "column": 16}, "end_point": {"row": 38, "column": 20}}, {"id": 141, "type": "function_declarator", "text": "_textFocusLostEvent(System::Event::TextFocusLost&) override", "parent": 139, "children": [142, 143, 149], "start_point": {"row": 38, "column": 21}, "end_point": {"row": 38, "column": 80}}, {"id": 142, "type": "identifier", "text": "_textFocusLostEvent", "parent": 141, "children": [], "start_point": {"row": 38, "column": 21}, "end_point": {"row": 38, "column": 40}}, {"id": 143, "type": "parameter_list", "text": "(System::Event::TextFocusLost&)", "parent": 141, "children": [144], "start_point": {"row": 38, "column": 40}, "end_point": {"row": 38, "column": 71}}, {"id": 144, "type": "parameter_declaration", "text": "System::Event::TextFocusLost", "parent": 143, "children": [145, 146, 148], "start_point": {"row": 38, "column": 41}, "end_point": {"row": 38, "column": 69}}, {"id": 145, "type": "type_identifier", "text": "System", "parent": 144, "children": [], "start_point": {"row": 38, "column": 41}, "end_point": {"row": 38, "column": 47}}, {"id": 146, "type": "ERROR", "text": "::Event::", "parent": 144, "children": [147], "start_point": {"row": 38, "column": 47}, "end_point": {"row": 38, "column": 56}}, {"id": 147, "type": "identifier", "text": "Event", "parent": 146, "children": [], "start_point": {"row": 38, "column": 49}, "end_point": {"row": 38, "column": 54}}, {"id": 148, "type": "identifier", "text": "TextFocusLost", "parent": 144, "children": [], "start_point": {"row": 38, "column": 56}, "end_point": {"row": 38, "column": 69}}, {"id": 149, "type": "identifier", "text": "override", "parent": 141, "children": [], "start_point": {"row": 38, "column": 72}, "end_point": {"row": 38, "column": 80}}, {"id": 150, "type": "labeled_statement", "text": "private:\n DJV_PRIVATE();", "parent": 15, "children": [], "start_point": {"row": 40, "column": 12}, "end_point": {"row": 41, "column": 30}}, {"id": 151, "type": "call_expression", "text": "DJV_PRIVATE()", "parent": 150, "children": [152, 153], "start_point": {"row": 41, "column": 16}, "end_point": {"row": 41, "column": 29}}, {"id": 152, "type": "identifier", "text": "DJV_PRIVATE", "parent": 151, "children": [], "start_point": {"row": 41, "column": 16}, "end_point": {"row": 41, "column": 27}}, {"id": 153, "type": "argument_list", "text": "()", "parent": 151, "children": [], "start_point": {"row": 41, "column": 27}, "end_point": {"row": 41, "column": 29}}, {"id": 154, "type": "type_definition", "text": "typedef Button::Toggle ToggleButton;", "parent": 9, "children": [155, 156, 157, 159], "start_point": {"row": 46, "column": 8}, "end_point": {"row": 46, "column": 44}}, {"id": 155, "type": "typedef", "text": "typedef", "parent": 154, "children": [], "start_point": {"row": 46, "column": 8}, "end_point": {"row": 46, "column": 15}}, {"id": 156, "type": "type_identifier", "text": "Button", "parent": 154, "children": [], "start_point": {"row": 46, "column": 16}, "end_point": {"row": 46, "column": 22}}, {"id": 157, "type": "ERROR", "text": "::Toggle", "parent": 154, "children": [158], "start_point": {"row": 46, "column": 22}, "end_point": {"row": 46, "column": 30}}, {"id": 158, "type": "type_identifier", "text": "Toggle", "parent": 157, "children": [], "start_point": {"row": 46, "column": 24}, "end_point": {"row": 46, "column": 30}}, {"id": 159, "type": "type_identifier", "text": "ToggleButton", "parent": 154, "children": [], "start_point": {"row": 46, "column": 31}, "end_point": {"row": 46, "column": 43}}]}, "node_categories": {"declarations": {"functions": [6, 9, 12, 15, 26, 56, 70, 78, 86, 97, 108, 119, 130, 141], "variables": [24, 29, 49, 59, 73, 89, 100, 111, 122, 133, 144, 154], "classes": [], "imports": [3, 4], "modules": [], "enums": []}, "statements": {"expressions": [19, 38, 42, 44, 151], "assignments": [], "loops": [], "conditionals": [7, 8, 10, 11, 13, 14, 17, 18, 20, 22, 27, 30, 32, 34, 35, 39, 45, 48, 50, 52, 54, 57, 60, 62, 64, 65, 71, 75, 79, 81, 82, 87, 90, 92, 93, 94, 98, 101, 103, 104, 105, 109, 112, 114, 115, 116, 120, 123, 125, 126, 127, 131, 134, 136, 137, 138, 142, 145, 147, 148, 149, 152, 156, 158, 159], "returns": [], "exceptions": []}, "expressions": {"calls": [0], "literals": [5], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [{"node_id": 6, "universal_type": "function", "name": "provides", "text_snippet": "namespace djv\n{\n namespace UI\n {\n namespace Button\n {\n //! This class"}, {"node_id": 9, "universal_type": "function", "name": "provides", "text_snippet": "namespace UI\n {\n namespace Button\n {\n //! This class provides a toggle b"}, {"node_id": 12, "universal_type": "function", "name": "provides", "text_snippet": "namespace Button\n {\n //! This class provides a toggle button.\n class To"}, {"node_id": 15, "universal_type": "function", "name": "Toggle", "text_snippet": "class Toggle : public IButton\n {\n DJV_NON_COPYABLE(Toggle);\n\n p"}, {"node_id": 26, "universal_type": "function", "name": "unknown", "text_snippet": "_init(const std::shared_ptr<System::Context>&)"}, {"node_id": 56, "universal_type": "function", "name": "unknown", "text_snippet": "create(const std::shared_ptr<System::Context>&)"}, {"node_id": 70, "universal_type": "function", "name": "unknown", "text_snippet": "setChecked(bool) override"}, {"node_id": 78, "universal_type": "function", "name": "unknown", "text_snippet": "acceptFocus(TextFocusDirection)"}, {"node_id": 86, "universal_type": "function", "name": "unknown", "text_snippet": "_preLayoutEvent(System::Event::PreLayout&) override"}, {"node_id": 97, "universal_type": "function", "name": "unknown", "text_snippet": "_paintEvent(System::Event::Paint&) override"}, {"node_id": 108, "universal_type": "function", "name": "unknown", "text_snippet": "_buttonPressEvent(System::Event::ButtonPress&) override"}, {"node_id": 119, "universal_type": "function", "name": "unknown", "text_snippet": "_keyPressEvent(System::Event::KeyPress&) override"}, {"node_id": 130, "universal_type": "function", "name": "unknown", "text_snippet": "_textFocusEvent(System::Event::TextFocus&) override"}, {"node_id": 141, "universal_type": "function", "name": "unknown", "text_snippet": "_textFocusLostEvent(System::Event::TextFocusLost&) override"}], "class_declarations": [], "import_statements": [{"node_id": 3, "text": "#include <djvUI/IButton.h>\n"}, {"node_id": 4, "text": "#include"}]}, "original_source_code": "// SPDX-License-Identifier: BSD-3-Clause\n// Copyright (c) 2017-2020 <NAME>\n// All rights reserved.\n\n#pragma once\n\n#include <djvUI/IButton.h>\n\nnamespace djv\n{\n namespace UI\n {\n namespace Button\n {\n //! This class provides a toggle button.\n class Toggle : public IButton\n {\n DJV_NON_COPYABLE(Toggle);\n\n protected:\n void _init(const std::shared_ptr<System::Context>&);\n Toggle();\n\n public:\n ~Toggle() override;\n\n static std::shared_ptr<Toggle> create(const std::shared_ptr<System::Context>&);\n\n void setChecked(bool) override;\n\n bool acceptFocus(TextFocusDirection) override;\n\n protected:\n void _preLayoutEvent(System::Event::PreLayout&) override;\n void _paintEvent(System::Event::Paint&) override;\n void _buttonPressEvent(System::Event::ButtonPress&) override;\n void _keyPressEvent(System::Event::KeyPress&) override;\n void _textFocusEvent(System::Event::TextFocus&) override;\n void _textFocusLostEvent(System::Event::TextFocusLost&) override;\n\n private:\n DJV_PRIVATE();\n };\n\n } // namespace Button\n\n typedef Button::Toggle ToggleButton;\n\n } // namespace UI\n} // namespace djv\n"}
80,080
c
#include "newton_method.h" float newton_method(float x0, polynomial f, polynomial fprime); float newton_method(float x0, polynomial f, polynomial fprime) { int i=0; float nextx,lastx; lastx=x0; do { nextx = lastx - (*f)(lastx)/(*fprime)(lastx); lastx = nextx; i++; }while(fabs((*f)(lastx)) > FLT_EPSILON); return nextx; }
21.33
15
(translation_unit) "#include "newton_method.h"\n\nfloat newton_method(float x0, polynomial f, polynomial fprime);\n\nfloat newton_method(float x0, polynomial f, polynomial fprime)\n{\n int i=0;\n float nextx,lastx;\n\n lastx=x0;\n do\n {\n nextx = lastx - (*f)(lastx)/(*fprime)(lastx);\n lastx = nextx;\n i++;\n }while(fabs((*f)(lastx)) > FLT_EPSILON);\n\n return nextx;\n}\n" (preproc_include) "#include "newton_method.h"\n" (#include) "#include" (string_literal) ""newton_method.h"" (") """ (string_content) "newton_method.h" (") """ (declaration) "float newton_method(float x0, polynomial f, polynomial fprime);" (primitive_type) "float" (function_declarator) "newton_method(float x0, polynomial f, polynomial fprime)" (identifier) "newton_method" (parameter_list) "(float x0, polynomial f, polynomial fprime)" (() "(" (parameter_declaration) "float x0" (primitive_type) "float" (identifier) "x0" (,) "," (parameter_declaration) "polynomial f" (type_identifier) "polynomial" (identifier) "f" (,) "," (parameter_declaration) "polynomial fprime" (type_identifier) "polynomial" (identifier) "fprime" ()) ")" (;) ";" (function_definition) "float newton_method(float x0, polynomial f, polynomial fprime)\n{\n int i=0;\n float nextx,lastx;\n\n lastx=x0;\n do\n {\n nextx = lastx - (*f)(lastx)/(*fprime)(lastx);\n lastx = nextx;\n i++;\n }while(fabs((*f)(lastx)) > FLT_EPSILON);\n\n return nextx;\n}" (primitive_type) "float" (function_declarator) "newton_method(float x0, polynomial f, polynomial fprime)" (identifier) "newton_method" (parameter_list) "(float x0, polynomial f, polynomial fprime)" (() "(" (parameter_declaration) "float x0" (primitive_type) "float" (identifier) "x0" (,) "," (parameter_declaration) "polynomial f" (type_identifier) "polynomial" (identifier) "f" (,) "," (parameter_declaration) "polynomial fprime" (type_identifier) "polynomial" (identifier) "fprime" ()) ")" (compound_statement) "{\n int i=0;\n float nextx,lastx;\n\n lastx=x0;\n do\n {\n nextx = lastx - (*f)(lastx)/(*fprime)(lastx);\n lastx = nextx;\n i++;\n }while(fabs((*f)(lastx)) > FLT_EPSILON);\n\n return nextx;\n}" ({) "{" (declaration) "int i=0;" (primitive_type) "int" (init_declarator) "i=0" (identifier) "i" (=) "=" (number_literal) "0" (;) ";" (declaration) "float nextx,lastx;" (primitive_type) "float" (identifier) "nextx" (,) "," (identifier) "lastx" (;) ";" (expression_statement) "lastx=x0;" (assignment_expression) "lastx=x0" (identifier) "lastx" (=) "=" (identifier) "x0" (;) ";" (do_statement) "do\n {\n nextx = lastx - (*f)(lastx)/(*fprime)(lastx);\n lastx = nextx;\n i++;\n }while(fabs((*f)(lastx)) > FLT_EPSILON);" (do) "do" (compound_statement) "{\n nextx = lastx - (*f)(lastx)/(*fprime)(lastx);\n lastx = nextx;\n i++;\n }" ({) "{" (expression_statement) "nextx = lastx - (*f)(lastx)/(*fprime)(lastx);" (assignment_expression) "nextx = lastx - (*f)(lastx)/(*fprime)(lastx)" (identifier) "nextx" (=) "=" (binary_expression) "lastx - (*f)(lastx)/(*fprime)(lastx)" (identifier) "lastx" (-) "-" (binary_expression) "(*f)(lastx)/(*fprime)(lastx)" (call_expression) "(*f)(lastx)" (parenthesized_expression) "(*f)" (() "(" (pointer_expression) "*f" (*) "*" (identifier) "f" ()) ")" (argument_list) "(lastx)" (() "(" (identifier) "lastx" ()) ")" (/) "/" (call_expression) "(*fprime)(lastx)" (parenthesized_expression) "(*fprime)" (() "(" (pointer_expression) "*fprime" (*) "*" (identifier) "fprime" ()) ")" (argument_list) "(lastx)" (() "(" (identifier) "lastx" ()) ")" (;) ";" (expression_statement) "lastx = nextx;" (assignment_expression) "lastx = nextx" (identifier) "lastx" (=) "=" (identifier) "nextx" (;) ";" (expression_statement) "i++;" (update_expression) "i++" (identifier) "i" (++) "++" (;) ";" (}) "}" (while) "while" (parenthesized_expression) "(fabs((*f)(lastx)) > FLT_EPSILON)" (() "(" (binary_expression) "fabs((*f)(lastx)) > FLT_EPSILON" (call_expression) "fabs((*f)(lastx))" (identifier) "fabs" (argument_list) "((*f)(lastx))" (() "(" (call_expression) "(*f)(lastx)" (parenthesized_expression) "(*f)" (() "(" (pointer_expression) "*f" (*) "*" (identifier) "f" ()) ")" (argument_list) "(lastx)" (() "(" (identifier) "lastx" ()) ")" ()) ")" (>) ">" (identifier) "FLT_EPSILON" ()) ")" (;) ";" (return_statement) "return nextx;" (return) "return" (identifier) "nextx" (;) ";" (}) "}"
142
0
{"language": "c", "success": true, "metadata": {"lines": 15, "avg_line_length": 21.33, "nodes": 91, "errors": 0, "source_hash": "5b52524c460d05377ef22ca86d012c5845aa8ff2cfba5e1f9c96deb794ffa649", "categorized_nodes": 66}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#include \"newton_method.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": "\"newton_method.h\"", "parent": 0, "children": [], "start_point": {"row": 0, "column": 9}, "end_point": {"row": 0, "column": 26}}, {"id": 3, "type": "declaration", "text": "float newton_method(float x0, polynomial f, polynomial fprime);", "parent": null, "children": [4, 5], "start_point": {"row": 2, "column": 0}, "end_point": {"row": 2, "column": 63}}, {"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": "newton_method(float x0, polynomial f, polynomial fprime)", "parent": 3, "children": [6, 7], "start_point": {"row": 2, "column": 6}, "end_point": {"row": 2, "column": 62}}, {"id": 6, "type": "identifier", "text": "newton_method", "parent": 5, "children": [], "start_point": {"row": 2, "column": 6}, "end_point": {"row": 2, "column": 19}}, {"id": 7, "type": "parameter_list", "text": "(float x0, polynomial f, polynomial fprime)", "parent": 5, "children": [8, 11, 14], "start_point": {"row": 2, "column": 19}, "end_point": {"row": 2, "column": 62}}, {"id": 8, "type": "parameter_declaration", "text": "float x0", "parent": 7, "children": [9, 10], "start_point": {"row": 2, "column": 20}, "end_point": {"row": 2, "column": 28}}, {"id": 9, "type": "primitive_type", "text": "float", "parent": 8, "children": [], "start_point": {"row": 2, "column": 20}, "end_point": {"row": 2, "column": 25}}, {"id": 10, "type": "identifier", "text": "x0", "parent": 8, "children": [], "start_point": {"row": 2, "column": 26}, "end_point": {"row": 2, "column": 28}}, {"id": 11, "type": "parameter_declaration", "text": "polynomial f", "parent": 7, "children": [12, 13], "start_point": {"row": 2, "column": 30}, "end_point": {"row": 2, "column": 42}}, {"id": 12, "type": "type_identifier", "text": "polynomial", "parent": 11, "children": [], "start_point": {"row": 2, "column": 30}, "end_point": {"row": 2, "column": 40}}, {"id": 13, "type": "identifier", "text": "f", "parent": 11, "children": [], "start_point": {"row": 2, "column": 41}, "end_point": {"row": 2, "column": 42}}, {"id": 14, "type": "parameter_declaration", "text": "polynomial fprime", "parent": 7, "children": [15, 16], "start_point": {"row": 2, "column": 44}, "end_point": {"row": 2, "column": 61}}, {"id": 15, "type": "type_identifier", "text": "polynomial", "parent": 14, "children": [], "start_point": {"row": 2, "column": 44}, "end_point": {"row": 2, "column": 54}}, {"id": 16, "type": "identifier", "text": "fprime", "parent": 14, "children": [], "start_point": {"row": 2, "column": 55}, "end_point": {"row": 2, "column": 61}}, {"id": 17, "type": "function_definition", "text": "float newton_method(float x0, polynomial f, polynomial fprime)\n{\n\tint i=0;\n\tfloat nextx,lastx;\n\n\tlastx=x0;\n\tdo\n\t{\n\t\tnextx = lastx - (*f)(lastx)/(*fprime)(lastx);\n\t\tlastx = nextx;\n\t\ti++;\n\t}while(fabs((*f)(lastx)) > FLT_EPSILON);\n\n\treturn nextx;\n}", "parent": null, "children": [18, 19], "start_point": {"row": 4, "column": 0}, "end_point": {"row": 18, "column": 1}}, {"id": 18, "type": "primitive_type", "text": "float", "parent": 17, "children": [], "start_point": {"row": 4, "column": 0}, "end_point": {"row": 4, "column": 5}}, {"id": 19, "type": "function_declarator", "text": "newton_method(float x0, polynomial f, polynomial fprime)", "parent": 17, "children": [20, 21], "start_point": {"row": 4, "column": 6}, "end_point": {"row": 4, "column": 62}}, {"id": 20, "type": "identifier", "text": "newton_method", "parent": 19, "children": [], "start_point": {"row": 4, "column": 6}, "end_point": {"row": 4, "column": 19}}, {"id": 21, "type": "parameter_list", "text": "(float x0, polynomial f, polynomial fprime)", "parent": 19, "children": [22, 25, 28], "start_point": {"row": 4, "column": 19}, "end_point": {"row": 4, "column": 62}}, {"id": 22, "type": "parameter_declaration", "text": "float x0", "parent": 21, "children": [23, 24], "start_point": {"row": 4, "column": 20}, "end_point": {"row": 4, "column": 28}}, {"id": 23, "type": "primitive_type", "text": "float", "parent": 22, "children": [], "start_point": {"row": 4, "column": 20}, "end_point": {"row": 4, "column": 25}}, {"id": 24, "type": "identifier", "text": "x0", "parent": 22, "children": [], "start_point": {"row": 4, "column": 26}, "end_point": {"row": 4, "column": 28}}, {"id": 25, "type": "parameter_declaration", "text": "polynomial f", "parent": 21, "children": [26, 27], "start_point": {"row": 4, "column": 30}, "end_point": {"row": 4, "column": 42}}, {"id": 26, "type": "type_identifier", "text": "polynomial", "parent": 25, "children": [], "start_point": {"row": 4, "column": 30}, "end_point": {"row": 4, "column": 40}}, {"id": 27, "type": "identifier", "text": "f", "parent": 25, "children": [], "start_point": {"row": 4, "column": 41}, "end_point": {"row": 4, "column": 42}}, {"id": 28, "type": "parameter_declaration", "text": "polynomial fprime", "parent": 21, "children": [29, 30], "start_point": {"row": 4, "column": 44}, "end_point": {"row": 4, "column": 61}}, {"id": 29, "type": "type_identifier", "text": "polynomial", "parent": 28, "children": [], "start_point": {"row": 4, "column": 44}, "end_point": {"row": 4, "column": 54}}, {"id": 30, "type": "identifier", "text": "fprime", "parent": 28, "children": [], "start_point": {"row": 4, "column": 55}, "end_point": {"row": 4, "column": 61}}, {"id": 31, "type": "declaration", "text": "int i=0;", "parent": 17, "children": [32, 33], "start_point": {"row": 6, "column": 1}, "end_point": {"row": 6, "column": 9}}, {"id": 32, "type": "primitive_type", "text": "int", "parent": 31, "children": [], "start_point": {"row": 6, "column": 1}, "end_point": {"row": 6, "column": 4}}, {"id": 33, "type": "init_declarator", "text": "i=0", "parent": 31, "children": [34, 35, 36], "start_point": {"row": 6, "column": 5}, "end_point": {"row": 6, "column": 8}}, {"id": 34, "type": "identifier", "text": "i", "parent": 33, "children": [], "start_point": {"row": 6, "column": 5}, "end_point": {"row": 6, "column": 6}}, {"id": 35, "type": "=", "text": "=", "parent": 33, "children": [], "start_point": {"row": 6, "column": 6}, "end_point": {"row": 6, "column": 7}}, {"id": 36, "type": "number_literal", "text": "0", "parent": 33, "children": [], "start_point": {"row": 6, "column": 7}, "end_point": {"row": 6, "column": 8}}, {"id": 37, "type": "declaration", "text": "float nextx,lastx;", "parent": 17, "children": [38, 39, 40], "start_point": {"row": 7, "column": 1}, "end_point": {"row": 7, "column": 19}}, {"id": 38, "type": "primitive_type", "text": "float", "parent": 37, "children": [], "start_point": {"row": 7, "column": 1}, "end_point": {"row": 7, "column": 6}}, {"id": 39, "type": "identifier", "text": "nextx", "parent": 37, "children": [], "start_point": {"row": 7, "column": 7}, "end_point": {"row": 7, "column": 12}}, {"id": 40, "type": "identifier", "text": "lastx", "parent": 37, "children": [], "start_point": {"row": 7, "column": 13}, "end_point": {"row": 7, "column": 18}}, {"id": 41, "type": "assignment_expression", "text": "lastx=x0", "parent": 17, "children": [42, 43, 44], "start_point": {"row": 9, "column": 1}, "end_point": {"row": 9, "column": 9}}, {"id": 42, "type": "identifier", "text": "lastx", "parent": 41, "children": [], "start_point": {"row": 9, "column": 1}, "end_point": {"row": 9, "column": 6}}, {"id": 43, "type": "=", "text": "=", "parent": 41, "children": [], "start_point": {"row": 9, "column": 6}, "end_point": {"row": 9, "column": 7}}, {"id": 44, "type": "identifier", "text": "x0", "parent": 41, "children": [], "start_point": {"row": 9, "column": 7}, "end_point": {"row": 9, "column": 9}}, {"id": 45, "type": "do_statement", "text": "do\n\t{\n\t\tnextx = lastx - (*f)(lastx)/(*fprime)(lastx);\n\t\tlastx = nextx;\n\t\ti++;\n\t}while(fabs((*f)(lastx)) > FLT_EPSILON);", "parent": 17, "children": [75], "start_point": {"row": 10, "column": 1}, "end_point": {"row": 15, "column": 41}}, {"id": 46, "type": "assignment_expression", "text": "nextx = lastx - (*f)(lastx)/(*fprime)(lastx)", "parent": 45, "children": [47, 48, 49], "start_point": {"row": 12, "column": 2}, "end_point": {"row": 12, "column": 46}}, {"id": 47, "type": "identifier", "text": "nextx", "parent": 46, "children": [], "start_point": {"row": 12, "column": 2}, "end_point": {"row": 12, "column": 7}}, {"id": 48, "type": "=", "text": "=", "parent": 46, "children": [], "start_point": {"row": 12, "column": 8}, "end_point": {"row": 12, "column": 9}}, {"id": 49, "type": "binary_expression", "text": "lastx - (*f)(lastx)/(*fprime)(lastx)", "parent": 46, "children": [50, 51, 52], "start_point": {"row": 12, "column": 10}, "end_point": {"row": 12, "column": 46}}, {"id": 50, "type": "identifier", "text": "lastx", "parent": 49, "children": [], "start_point": {"row": 12, "column": 10}, "end_point": {"row": 12, "column": 15}}, {"id": 51, "type": "-", "text": "-", "parent": 49, "children": [], "start_point": {"row": 12, "column": 16}, "end_point": {"row": 12, "column": 17}}, {"id": 52, "type": "binary_expression", "text": "(*f)(lastx)/(*fprime)(lastx)", "parent": 49, "children": [53, 60, 61], "start_point": {"row": 12, "column": 18}, "end_point": {"row": 12, "column": 46}}, {"id": 53, "type": "call_expression", "text": "(*f)(lastx)", "parent": 52, "children": [54, 58], "start_point": {"row": 12, "column": 18}, "end_point": {"row": 12, "column": 29}}, {"id": 54, "type": "parenthesized_expression", "text": "(*f)", "parent": 53, "children": [55], "start_point": {"row": 12, "column": 18}, "end_point": {"row": 12, "column": 22}}, {"id": 55, "type": "pointer_expression", "text": "*f", "parent": 54, "children": [56, 57], "start_point": {"row": 12, "column": 19}, "end_point": {"row": 12, "column": 21}}, {"id": 56, "type": "*", "text": "*", "parent": 55, "children": [], "start_point": {"row": 12, "column": 19}, "end_point": {"row": 12, "column": 20}}, {"id": 57, "type": "identifier", "text": "f", "parent": 55, "children": [], "start_point": {"row": 12, "column": 20}, "end_point": {"row": 12, "column": 21}}, {"id": 58, "type": "argument_list", "text": "(lastx)", "parent": 53, "children": [59], "start_point": {"row": 12, "column": 22}, "end_point": {"row": 12, "column": 29}}, {"id": 59, "type": "identifier", "text": "lastx", "parent": 58, "children": [], "start_point": {"row": 12, "column": 23}, "end_point": {"row": 12, "column": 28}}, {"id": 60, "type": "/", "text": "/", "parent": 52, "children": [], "start_point": {"row": 12, "column": 29}, "end_point": {"row": 12, "column": 30}}, {"id": 61, "type": "call_expression", "text": "(*fprime)(lastx)", "parent": 52, "children": [62, 66], "start_point": {"row": 12, "column": 30}, "end_point": {"row": 12, "column": 46}}, {"id": 62, "type": "parenthesized_expression", "text": "(*fprime)", "parent": 61, "children": [63], "start_point": {"row": 12, "column": 30}, "end_point": {"row": 12, "column": 39}}, {"id": 63, "type": "pointer_expression", "text": "*fprime", "parent": 62, "children": [64, 65], "start_point": {"row": 12, "column": 31}, "end_point": {"row": 12, "column": 38}}, {"id": 64, "type": "*", "text": "*", "parent": 63, "children": [], "start_point": {"row": 12, "column": 31}, "end_point": {"row": 12, "column": 32}}, {"id": 65, "type": "identifier", "text": "fprime", "parent": 63, "children": [], "start_point": {"row": 12, "column": 32}, "end_point": {"row": 12, "column": 38}}, {"id": 66, "type": "argument_list", "text": "(lastx)", "parent": 61, "children": [67], "start_point": {"row": 12, "column": 39}, "end_point": {"row": 12, "column": 46}}, {"id": 67, "type": "identifier", "text": "lastx", "parent": 66, "children": [], "start_point": {"row": 12, "column": 40}, "end_point": {"row": 12, "column": 45}}, {"id": 68, "type": "assignment_expression", "text": "lastx = nextx", "parent": 45, "children": [69, 70, 71], "start_point": {"row": 13, "column": 2}, "end_point": {"row": 13, "column": 15}}, {"id": 69, "type": "identifier", "text": "lastx", "parent": 68, "children": [], "start_point": {"row": 13, "column": 2}, "end_point": {"row": 13, "column": 7}}, {"id": 70, "type": "=", "text": "=", "parent": 68, "children": [], "start_point": {"row": 13, "column": 8}, "end_point": {"row": 13, "column": 9}}, {"id": 71, "type": "identifier", "text": "nextx", "parent": 68, "children": [], "start_point": {"row": 13, "column": 10}, "end_point": {"row": 13, "column": 15}}, {"id": 72, "type": "update_expression", "text": "i++", "parent": 45, "children": [73, 74], "start_point": {"row": 14, "column": 2}, "end_point": {"row": 14, "column": 5}}, {"id": 73, "type": "identifier", "text": "i", "parent": 72, "children": [], "start_point": {"row": 14, "column": 2}, "end_point": {"row": 14, "column": 3}}, {"id": 74, "type": "++", "text": "++", "parent": 72, "children": [], "start_point": {"row": 14, "column": 3}, "end_point": {"row": 14, "column": 5}}, {"id": 75, "type": "parenthesized_expression", "text": "(fabs((*f)(lastx)) > FLT_EPSILON)", "parent": 45, "children": [76], "start_point": {"row": 15, "column": 7}, "end_point": {"row": 15, "column": 40}}, {"id": 76, "type": "binary_expression", "text": "fabs((*f)(lastx)) > FLT_EPSILON", "parent": 75, "children": [77, 87, 88], "start_point": {"row": 15, "column": 8}, "end_point": {"row": 15, "column": 39}}, {"id": 77, "type": "call_expression", "text": "fabs((*f)(lastx))", "parent": 76, "children": [78, 79], "start_point": {"row": 15, "column": 8}, "end_point": {"row": 15, "column": 25}}, {"id": 78, "type": "identifier", "text": "fabs", "parent": 77, "children": [], "start_point": {"row": 15, "column": 8}, "end_point": {"row": 15, "column": 12}}, {"id": 79, "type": "argument_list", "text": "((*f)(lastx))", "parent": 77, "children": [80], "start_point": {"row": 15, "column": 12}, "end_point": {"row": 15, "column": 25}}, {"id": 80, "type": "call_expression", "text": "(*f)(lastx)", "parent": 79, "children": [81, 85], "start_point": {"row": 15, "column": 13}, "end_point": {"row": 15, "column": 24}}, {"id": 81, "type": "parenthesized_expression", "text": "(*f)", "parent": 80, "children": [82], "start_point": {"row": 15, "column": 13}, "end_point": {"row": 15, "column": 17}}, {"id": 82, "type": "pointer_expression", "text": "*f", "parent": 81, "children": [83, 84], "start_point": {"row": 15, "column": 14}, "end_point": {"row": 15, "column": 16}}, {"id": 83, "type": "*", "text": "*", "parent": 82, "children": [], "start_point": {"row": 15, "column": 14}, "end_point": {"row": 15, "column": 15}}, {"id": 84, "type": "identifier", "text": "f", "parent": 82, "children": [], "start_point": {"row": 15, "column": 15}, "end_point": {"row": 15, "column": 16}}, {"id": 85, "type": "argument_list", "text": "(lastx)", "parent": 80, "children": [86], "start_point": {"row": 15, "column": 17}, "end_point": {"row": 15, "column": 24}}, {"id": 86, "type": "identifier", "text": "lastx", "parent": 85, "children": [], "start_point": {"row": 15, "column": 18}, "end_point": {"row": 15, "column": 23}}, {"id": 87, "type": ">", "text": ">", "parent": 76, "children": [], "start_point": {"row": 15, "column": 26}, "end_point": {"row": 15, "column": 27}}, {"id": 88, "type": "identifier", "text": "FLT_EPSILON", "parent": 76, "children": [], "start_point": {"row": 15, "column": 28}, "end_point": {"row": 15, "column": 39}}, {"id": 89, "type": "return_statement", "text": "return nextx;", "parent": 17, "children": [90], "start_point": {"row": 17, "column": 1}, "end_point": {"row": 17, "column": 14}}, {"id": 90, "type": "identifier", "text": "nextx", "parent": 89, "children": [], "start_point": {"row": 17, "column": 8}, "end_point": {"row": 17, "column": 13}}]}, "node_categories": {"declarations": {"functions": [5, 17, 19], "variables": [3, 8, 11, 14, 22, 25, 28, 31, 37], "classes": [], "imports": [0, 1], "modules": [], "enums": []}, "statements": {"expressions": [49, 52, 53, 54, 55, 61, 62, 63, 72, 75, 76, 77, 80, 81, 82], "assignments": [41, 46, 68], "loops": [], "conditionals": [6, 10, 12, 13, 15, 16, 20, 24, 26, 27, 29, 30, 34, 39, 40, 42, 44, 47, 50, 57, 59, 65, 67, 69, 71, 73, 78, 84, 86, 88, 90], "returns": [89], "exceptions": []}, "expressions": {"calls": [], "literals": [2, 36], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [{"node_id": 5, "universal_type": "function", "name": "unknown", "text_snippet": "newton_method(float x0, polynomial f, polynomial fprime)"}, {"node_id": 17, "universal_type": "function", "name": "i=0;", "text_snippet": "float newton_method(float x0, polynomial f, polynomial fprime)\n{\n\tint i=0;\n\tfloat nextx,lastx;\n\n\tlas"}, {"node_id": 19, "universal_type": "function", "name": "unknown", "text_snippet": "newton_method(float x0, polynomial f, polynomial fprime)"}], "class_declarations": [], "import_statements": [{"node_id": 0, "text": "#include \"newton_method.h\"\n"}, {"node_id": 1, "text": "#include"}]}, "original_source_code": "#include \"newton_method.h\"\n\nfloat newton_method(float x0, polynomial f, polynomial fprime);\n\nfloat newton_method(float x0, polynomial f, polynomial fprime)\n{\n\tint i=0;\n\tfloat nextx,lastx;\n\n\tlastx=x0;\n\tdo\n\t{\n\t\tnextx = lastx - (*f)(lastx)/(*fprime)(lastx);\n\t\tlastx = nextx;\n\t\ti++;\n\t}while(fabs((*f)(lastx)) > FLT_EPSILON);\n\n\treturn nextx;\n}\n"}
80,081
c
#pragma once #include "CoreMinimal.h" #include "TetherPowerChanged_DelegateDelegate.generated.h" UDELEGATE(BlueprintCallable) DECLARE_DYNAMIC_MULTICAST_DELEGATE_OneParam(FTetherPowerChanged_Delegate, bool, hasPower);
53.25
4
(translation_unit) "#pragma once\n#include "CoreMinimal.h"\n#include "TetherPowerChanged_DelegateDelegate.generated.h"\n\nUDELEGATE(BlueprintCallable) DECLARE_DYNAMIC_MULTICAST_DELEGATE_OneParam(FTetherPowerChanged_Delegate, bool, hasPower);\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 "TetherPowerChanged_DelegateDelegate.generated.h"\n" (#include) "#include" (string_literal) ""TetherPowerChanged_DelegateDelegate.generated.h"" (") """ (string_content) "TetherPowerChanged_DelegateDelegate.generated.h" (") """ (declaration) "UDELEGATE(BlueprintCallable) DECLARE_DYNAMIC_MULTICAST_DELEGATE_OneParam(FTetherPowerChanged_Delegate, bool, hasPower);" (macro_type_specifier) "UDELEGATE(BlueprintCallable)" (identifier) "UDELEGATE" (() "(" (type_descriptor) "BlueprintCallable" (type_identifier) "BlueprintCallable" ()) ")" (function_declarator) "DECLARE_DYNAMIC_MULTICAST_DELEGATE_OneParam(FTetherPowerChanged_Delegate, bool, hasPower)" (identifier) "DECLARE_DYNAMIC_MULTICAST_DELEGATE_OneParam" (parameter_list) "(FTetherPowerChanged_Delegate, bool, hasPower)" (() "(" (parameter_declaration) "FTetherPowerChanged_Delegate" (type_identifier) "FTetherPowerChanged_Delegate" (,) "," (parameter_declaration) "bool" (primitive_type) "bool" (,) "," (parameter_declaration) "hasPower" (type_identifier) "hasPower" ()) ")" (;) ";"
37
0
{"language": "c", "success": true, "metadata": {"lines": 4, "avg_line_length": 53.25, "nodes": 23, "errors": 0, "source_hash": "70eba337316cf40c6c1e8f1ec7f13cf831251a5bcc88468d0a407eb881f6e975", "categorized_nodes": 18}, "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 \"TetherPowerChanged_DelegateDelegate.generated.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": "\"TetherPowerChanged_DelegateDelegate.generated.h\"", "parent": 6, "children": [], "start_point": {"row": 2, "column": 9}, "end_point": {"row": 2, "column": 58}}, {"id": 9, "type": "declaration", "text": "UDELEGATE(BlueprintCallable) DECLARE_DYNAMIC_MULTICAST_DELEGATE_OneParam(FTetherPowerChanged_Delegate, bool, hasPower);", "parent": null, "children": [10, 14], "start_point": {"row": 4, "column": 0}, "end_point": {"row": 4, "column": 119}}, {"id": 10, "type": "macro_type_specifier", "text": "UDELEGATE(BlueprintCallable)", "parent": 9, "children": [11, 12], "start_point": {"row": 4, "column": 0}, "end_point": {"row": 4, "column": 28}}, {"id": 11, "type": "identifier", "text": "UDELEGATE", "parent": 10, "children": [], "start_point": {"row": 4, "column": 0}, "end_point": {"row": 4, "column": 9}}, {"id": 12, "type": "type_descriptor", "text": "BlueprintCallable", "parent": 10, "children": [13], "start_point": {"row": 4, "column": 10}, "end_point": {"row": 4, "column": 27}}, {"id": 13, "type": "type_identifier", "text": "BlueprintCallable", "parent": 12, "children": [], "start_point": {"row": 4, "column": 10}, "end_point": {"row": 4, "column": 27}}, {"id": 14, "type": "function_declarator", "text": "DECLARE_DYNAMIC_MULTICAST_DELEGATE_OneParam(FTetherPowerChanged_Delegate, bool, hasPower)", "parent": 9, "children": [15, 16], "start_point": {"row": 4, "column": 29}, "end_point": {"row": 4, "column": 118}}, {"id": 15, "type": "identifier", "text": "DECLARE_DYNAMIC_MULTICAST_DELEGATE_OneParam", "parent": 14, "children": [], "start_point": {"row": 4, "column": 29}, "end_point": {"row": 4, "column": 72}}, {"id": 16, "type": "parameter_list", "text": "(FTetherPowerChanged_Delegate, bool, hasPower)", "parent": 14, "children": [17, 19, 21], "start_point": {"row": 4, "column": 72}, "end_point": {"row": 4, "column": 118}}, {"id": 17, "type": "parameter_declaration", "text": "FTetherPowerChanged_Delegate", "parent": 16, "children": [18], "start_point": {"row": 4, "column": 73}, "end_point": {"row": 4, "column": 101}}, {"id": 18, "type": "type_identifier", "text": "FTetherPowerChanged_Delegate", "parent": 17, "children": [], "start_point": {"row": 4, "column": 73}, "end_point": {"row": 4, "column": 101}}, {"id": 19, "type": "parameter_declaration", "text": "bool", "parent": 16, "children": [20], "start_point": {"row": 4, "column": 103}, "end_point": {"row": 4, "column": 107}}, {"id": 20, "type": "primitive_type", "text": "bool", "parent": 19, "children": [], "start_point": {"row": 4, "column": 103}, "end_point": {"row": 4, "column": 107}}, {"id": 21, "type": "parameter_declaration", "text": "hasPower", "parent": 16, "children": [22], "start_point": {"row": 4, "column": 109}, "end_point": {"row": 4, "column": 117}}, {"id": 22, "type": "type_identifier", "text": "hasPower", "parent": 21, "children": [], "start_point": {"row": 4, "column": 109}, "end_point": {"row": 4, "column": 117}}]}, "node_categories": {"declarations": {"functions": [14], "variables": [9, 17, 19, 21], "classes": [], "imports": [3, 4, 6, 7], "modules": [], "enums": []}, "statements": {"expressions": [], "assignments": [], "loops": [], "conditionals": [10, 11, 13, 15, 18, 22], "returns": [], "exceptions": []}, "expressions": {"calls": [0], "literals": [5, 8], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [{"node_id": 14, "universal_type": "function", "name": "unknown", "text_snippet": "DECLARE_DYNAMIC_MULTICAST_DELEGATE_OneParam(FTetherPowerChanged_Delegate, bool, hasPower)"}], "class_declarations": [], "import_statements": [{"node_id": 3, "text": "#include \"CoreMinimal.h\"\n"}, {"node_id": 4, "text": "#include"}, {"node_id": 6, "text": "#include \"TetherPowerChanged_DelegateDelegate.generated.h\"\n"}, {"node_id": 7, "text": "#include"}]}, "original_source_code": "#pragma once\n#include \"CoreMinimal.h\"\n#include \"TetherPowerChanged_DelegateDelegate.generated.h\"\n\nUDELEGATE(BlueprintCallable) DECLARE_DYNAMIC_MULTICAST_DELEGATE_OneParam(FTetherPowerChanged_Delegate, bool, hasPower);\n\n"}
80,082
c
#include<stdio.h> int main(){ int i,j,n,min,max,temp; printf("Enter the size of the array: "); scanf("%d",&n); int arr[n]; printf("Enter the Array Elements\n"); for(i=0;i<n;i++) scanf("%d",&arr[i]); for(i=0;i<n;i+=2){ min=i;max=i; for(j=i+1;j<n;j++){ if(arr[min]>arr[j]) min=j; if(arr[max]<arr[j]) max=j; } if(i+1==n) break; temp=arr[i]; arr[i]=arr[min]; arr[min]=temp; if(i+2==n) break; temp=arr[i+1]; arr[i+1]=arr[max]; arr[max]=temp; } printf("The new array is:\n"); for(i=0;i<n;i++) printf("%d ",arr[i]); return 0; }
18.27
33
(translation_unit) "#include<stdio.h>\nint main(){\n int i,j,n,min,max,temp;\n printf("Enter the size of the array: ");\n scanf("%d",&n);\n int arr[n];\n printf("Enter the Array Elements\n");\n for(i=0;i<n;i++)\n scanf("%d",&arr[i]);\n for(i=0;i<n;i+=2){\n min=i;max=i;\n for(j=i+1;j<n;j++){\n if(arr[min]>arr[j])\n min=j;\n if(arr[max]<arr[j])\n max=j;\n }\n if(i+1==n)\n break;\n temp=arr[i];\n arr[i]=arr[min];\n arr[min]=temp;\n if(i+2==n)\n break;\n temp=arr[i+1];\n arr[i+1]=arr[max];\n arr[max]=temp;\n }\n printf("The new array is:\n");\n for(i=0;i<n;i++)\n printf("%d ",arr[i]);\n return 0;\n}\n" (preproc_include) "#include<stdio.h>\n" (#include) "#include" (system_lib_string) "<stdio.h>" (function_definition) "int main(){\n int i,j,n,min,max,temp;\n printf("Enter the size of the array: ");\n scanf("%d",&n);\n int arr[n];\n printf("Enter the Array Elements\n");\n for(i=0;i<n;i++)\n scanf("%d",&arr[i]);\n for(i=0;i<n;i+=2){\n min=i;max=i;\n for(j=i+1;j<n;j++){\n if(arr[min]>arr[j])\n min=j;\n if(arr[max]<arr[j])\n max=j;\n }\n if(i+1==n)\n break;\n temp=arr[i];\n arr[i]=arr[min];\n arr[min]=temp;\n if(i+2==n)\n break;\n temp=arr[i+1];\n arr[i+1]=arr[max];\n arr[max]=temp;\n }\n printf("The new array is:\n");\n for(i=0;i<n;i++)\n printf("%d ",arr[i]);\n return 0;\n}" (primitive_type) "int" (function_declarator) "main()" (identifier) "main" (parameter_list) "()" (() "(" ()) ")" (compound_statement) "{\n int i,j,n,min,max,temp;\n printf("Enter the size of the array: ");\n scanf("%d",&n);\n int arr[n];\n printf("Enter the Array Elements\n");\n for(i=0;i<n;i++)\n scanf("%d",&arr[i]);\n for(i=0;i<n;i+=2){\n min=i;max=i;\n for(j=i+1;j<n;j++){\n if(arr[min]>arr[j])\n min=j;\n if(arr[max]<arr[j])\n max=j;\n }\n if(i+1==n)\n break;\n temp=arr[i];\n arr[i]=arr[min];\n arr[min]=temp;\n if(i+2==n)\n break;\n temp=arr[i+1];\n arr[i+1]=arr[max];\n arr[max]=temp;\n }\n printf("The new array is:\n");\n for(i=0;i<n;i++)\n printf("%d ",arr[i]);\n return 0;\n}" ({) "{" (declaration) "int i,j,n,min,max,temp;" (primitive_type) "int" (identifier) "i" (,) "," (identifier) "j" (,) "," (identifier) "n" (,) "," (identifier) "min" (,) "," (identifier) "max" (,) "," (identifier) "temp" (;) ";" (expression_statement) "printf("Enter the size of the array: ");" (call_expression) "printf("Enter the size of the array: ")" (identifier) "printf" (argument_list) "("Enter the size of the array: ")" (() "(" (string_literal) ""Enter the size of the array: "" (") """ (string_content) "Enter the size of the array: " (") """ ()) ")" (;) ";" (expression_statement) "scanf("%d",&n);" (call_expression) "scanf("%d",&n)" (identifier) "scanf" (argument_list) "("%d",&n)" (() "(" (string_literal) ""%d"" (") """ (string_content) "%d" (") """ (,) "," (pointer_expression) "&n" (&) "&" (identifier) "n" ()) ")" (;) ";" (declaration) "int arr[n];" (primitive_type) "int" (array_declarator) "arr[n]" (identifier) "arr" ([) "[" (identifier) "n" (]) "]" (;) ";" (expression_statement) "printf("Enter the Array Elements\n");" (call_expression) "printf("Enter the Array Elements\n")" (identifier) "printf" (argument_list) "("Enter the Array Elements\n")" (() "(" (string_literal) ""Enter the Array Elements\n"" (") """ (string_content) "Enter the Array Elements" (escape_sequence) "\n" (") """ ()) ")" (;) ";" (for_statement) "for(i=0;i<n;i++)\n scanf("%d",&arr[i]);" (for) "for" (() "(" (assignment_expression) "i=0" (identifier) "i" (=) "=" (number_literal) "0" (;) ";" (binary_expression) "i<n" (identifier) "i" (<) "<" (identifier) "n" (;) ";" (update_expression) "i++" (identifier) "i" (++) "++" ()) ")" (expression_statement) "scanf("%d",&arr[i]);" (call_expression) "scanf("%d",&arr[i])" (identifier) "scanf" (argument_list) "("%d",&arr[i])" (() "(" (string_literal) ""%d"" (") """ (string_content) "%d" (") """ (,) "," (pointer_expression) "&arr[i]" (&) "&" (subscript_expression) "arr[i]" (identifier) "arr" ([) "[" (identifier) "i" (]) "]" ()) ")" (;) ";" (for_statement) "for(i=0;i<n;i+=2){\n min=i;max=i;\n for(j=i+1;j<n;j++){\n if(arr[min]>arr[j])\n min=j;\n if(arr[max]<arr[j])\n max=j;\n }\n if(i+1==n)\n break;\n temp=arr[i];\n arr[i]=arr[min];\n arr[min]=temp;\n if(i+2==n)\n break;\n temp=arr[i+1];\n arr[i+1]=arr[max];\n arr[max]=temp;\n }" (for) "for" (() "(" (assignment_expression) "i=0" (identifier) "i" (=) "=" (number_literal) "0" (;) ";" (binary_expression) "i<n" (identifier) "i" (<) "<" (identifier) "n" (;) ";" (assignment_expression) "i+=2" (identifier) "i" (+=) "+=" (number_literal) "2" ()) ")" (compound_statement) "{\n min=i;max=i;\n for(j=i+1;j<n;j++){\n if(arr[min]>arr[j])\n min=j;\n if(arr[max]<arr[j])\n max=j;\n }\n if(i+1==n)\n break;\n temp=arr[i];\n arr[i]=arr[min];\n arr[min]=temp;\n if(i+2==n)\n break;\n temp=arr[i+1];\n arr[i+1]=arr[max];\n arr[max]=temp;\n }" ({) "{" (expression_statement) "min=i;" (assignment_expression) "min=i" (identifier) "min" (=) "=" (identifier) "i" (;) ";" (expression_statement) "max=i;" (assignment_expression) "max=i" (identifier) "max" (=) "=" (identifier) "i" (;) ";" (for_statement) "for(j=i+1;j<n;j++){\n if(arr[min]>arr[j])\n min=j;\n if(arr[max]<arr[j])\n max=j;\n }" (for) "for" (() "(" (assignment_expression) "j=i+1" (identifier) "j" (=) "=" (binary_expression) "i+1" (identifier) "i" (+) "+" (number_literal) "1" (;) ";" (binary_expression) "j<n" (identifier) "j" (<) "<" (identifier) "n" (;) ";" (update_expression) "j++" (identifier) "j" (++) "++" ()) ")" (compound_statement) "{\n if(arr[min]>arr[j])\n min=j;\n if(arr[max]<arr[j])\n max=j;\n }" ({) "{" (if_statement) "if(arr[min]>arr[j])\n min=j;" (if) "if" (parenthesized_expression) "(arr[min]>arr[j])" (() "(" (binary_expression) "arr[min]>arr[j]" (subscript_expression) "arr[min]" (identifier) "arr" ([) "[" (identifier) "min" (]) "]" (>) ">" (subscript_expression) "arr[j]" (identifier) "arr" ([) "[" (identifier) "j" (]) "]" ()) ")" (expression_statement) "min=j;" (assignment_expression) "min=j" (identifier) "min" (=) "=" (identifier) "j" (;) ";" (if_statement) "if(arr[max]<arr[j])\n max=j;" (if) "if" (parenthesized_expression) "(arr[max]<arr[j])" (() "(" (binary_expression) "arr[max]<arr[j]" (subscript_expression) "arr[max]" (identifier) "arr" ([) "[" (identifier) "max" (]) "]" (<) "<" (subscript_expression) "arr[j]" (identifier) "arr" ([) "[" (identifier) "j" (]) "]" ()) ")" (expression_statement) "max=j;" (assignment_expression) "max=j" (identifier) "max" (=) "=" (identifier) "j" (;) ";" (}) "}" (if_statement) "if(i+1==n)\n break;" (if) "if" (parenthesized_expression) "(i+1==n)" (() "(" (binary_expression) "i+1==n" (binary_expression) "i+1" (identifier) "i" (+) "+" (number_literal) "1" (==) "==" (identifier) "n" ()) ")" (break_statement) "break;" (break) "break" (;) ";" (expression_statement) "temp=arr[i];" (assignment_expression) "temp=arr[i]" (identifier) "temp" (=) "=" (subscript_expression) "arr[i]" (identifier) "arr" ([) "[" (identifier) "i" (]) "]" (;) ";" (expression_statement) "arr[i]=arr[min];" (assignment_expression) "arr[i]=arr[min]" (subscript_expression) "arr[i]" (identifier) "arr" ([) "[" (identifier) "i" (]) "]" (=) "=" (subscript_expression) "arr[min]" (identifier) "arr" ([) "[" (identifier) "min" (]) "]" (;) ";" (expression_statement) "arr[min]=temp;" (assignment_expression) "arr[min]=temp" (subscript_expression) "arr[min]" (identifier) "arr" ([) "[" (identifier) "min" (]) "]" (=) "=" (identifier) "temp" (;) ";" (if_statement) "if(i+2==n)\n break;" (if) "if" (parenthesized_expression) "(i+2==n)" (() "(" (binary_expression) "i+2==n" (binary_expression) "i+2" (identifier) "i" (+) "+" (number_literal) "2" (==) "==" (identifier) "n" ()) ")" (break_statement) "break;" (break) "break" (;) ";" (expression_statement) "temp=arr[i+1];" (assignment_expression) "temp=arr[i+1]" (identifier) "temp" (=) "=" (subscript_expression) "arr[i+1]" (identifier) "arr" ([) "[" (binary_expression) "i+1" (identifier) "i" (+) "+" (number_literal) "1" (]) "]" (;) ";" (expression_statement) "arr[i+1]=arr[max];" (assignment_expression) "arr[i+1]=arr[max]" (subscript_expression) "arr[i+1]" (identifier) "arr" ([) "[" (binary_expression) "i+1" (identifier) "i" (+) "+" (number_literal) "1" (]) "]" (=) "=" (subscript_expression) "arr[max]" (identifier) "arr" ([) "[" (identifier) "max" (]) "]" (;) ";" (expression_statement) "arr[max]=temp;" (assignment_expression) "arr[max]=temp" (subscript_expression) "arr[max]" (identifier) "arr" ([) "[" (identifier) "max" (]) "]" (=) "=" (identifier) "temp" (;) ";" (}) "}" (expression_statement) "printf("The new array is:\n");" (call_expression) "printf("The new array is:\n")" (identifier) "printf" (argument_list) "("The new array is:\n")" (() "(" (string_literal) ""The new array is:\n"" (") """ (string_content) "The new array is:" (escape_sequence) "\n" (") """ ()) ")" (;) ";" (for_statement) "for(i=0;i<n;i++)\n printf("%d ",arr[i]);" (for) "for" (() "(" (assignment_expression) "i=0" (identifier) "i" (=) "=" (number_literal) "0" (;) ";" (binary_expression) "i<n" (identifier) "i" (<) "<" (identifier) "n" (;) ";" (update_expression) "i++" (identifier) "i" (++) "++" ()) ")" (expression_statement) "printf("%d ",arr[i]);" (call_expression) "printf("%d ",arr[i])" (identifier) "printf" (argument_list) "("%d ",arr[i])" (() "(" (string_literal) ""%d "" (") """ (string_content) "%d " (") """ (,) "," (subscript_expression) "arr[i]" (identifier) "arr" ([) "[" (identifier) "i" (]) "]" ()) ")" (;) ";" (return_statement) "return 0;" (return) "return" (number_literal) "0" (;) ";" (}) "}"
366
0
{"language": "c", "success": true, "metadata": {"lines": 33, "avg_line_length": 18.27, "nodes": 214, "errors": 0, "source_hash": "6aab00ca09f57bd8a60141dda401e9d484363c3e04446e6a7a2225ef1bfc14da", "categorized_nodes": 166}, "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": "function_definition", "text": "int main(){\n int i,j,n,min,max,temp;\n printf(\"Enter the size of the array: \");\n scanf(\"%d\",&n);\n int arr[n];\n printf(\"Enter the Array Elements\\n\");\n for(i=0;i<n;i++)\n scanf(\"%d\",&arr[i]);\n for(i=0;i<n;i+=2){\n min=i;max=i;\n for(j=i+1;j<n;j++){\n if(arr[min]>arr[j])\n min=j;\n if(arr[max]<arr[j])\n max=j;\n }\n if(i+1==n)\n break;\n temp=arr[i];\n arr[i]=arr[min];\n arr[min]=temp;\n if(i+2==n)\n break;\n temp=arr[i+1];\n arr[i+1]=arr[max];\n arr[max]=temp;\n }\n printf(\"The new array is:\\n\");\n for(i=0;i<n;i++)\n printf(\"%d \",arr[i]);\n return 0;\n}", "parent": null, "children": [4, 5], "start_point": {"row": 1, "column": 0}, "end_point": {"row": 32, "column": 1}}, {"id": 4, "type": "primitive_type", "text": "int", "parent": 3, "children": [], "start_point": {"row": 1, "column": 0}, "end_point": {"row": 1, "column": 3}}, {"id": 5, "type": "function_declarator", "text": "main()", "parent": 3, "children": [6, 7], "start_point": {"row": 1, "column": 4}, "end_point": {"row": 1, "column": 10}}, {"id": 6, "type": "identifier", "text": "main", "parent": 5, "children": [], "start_point": {"row": 1, "column": 4}, "end_point": {"row": 1, "column": 8}}, {"id": 7, "type": "parameter_list", "text": "()", "parent": 5, "children": [], "start_point": {"row": 1, "column": 8}, "end_point": {"row": 1, "column": 10}}, {"id": 8, "type": "declaration", "text": "int i,j,n,min,max,temp;", "parent": 3, "children": [9, 10, 11, 12, 13, 14, 15], "start_point": {"row": 2, "column": 2}, "end_point": {"row": 2, "column": 25}}, {"id": 9, "type": "primitive_type", "text": "int", "parent": 8, "children": [], "start_point": {"row": 2, "column": 2}, "end_point": {"row": 2, "column": 5}}, {"id": 10, "type": "identifier", "text": "i", "parent": 8, "children": [], "start_point": {"row": 2, "column": 6}, "end_point": {"row": 2, "column": 7}}, {"id": 11, "type": "identifier", "text": "j", "parent": 8, "children": [], "start_point": {"row": 2, "column": 8}, "end_point": {"row": 2, "column": 9}}, {"id": 12, "type": "identifier", "text": "n", "parent": 8, "children": [], "start_point": {"row": 2, "column": 10}, "end_point": {"row": 2, "column": 11}}, {"id": 13, "type": "identifier", "text": "min", "parent": 8, "children": [], "start_point": {"row": 2, "column": 12}, "end_point": {"row": 2, "column": 15}}, {"id": 14, "type": "identifier", "text": "max", "parent": 8, "children": [], "start_point": {"row": 2, "column": 16}, "end_point": {"row": 2, "column": 19}}, {"id": 15, "type": "identifier", "text": "temp", "parent": 8, "children": [], "start_point": {"row": 2, "column": 20}, "end_point": {"row": 2, "column": 24}}, {"id": 16, "type": "call_expression", "text": "printf(\"Enter the size of the array: \")", "parent": 3, "children": [17, 18], "start_point": {"row": 3, "column": 2}, "end_point": {"row": 3, "column": 41}}, {"id": 17, "type": "identifier", "text": "printf", "parent": 16, "children": [], "start_point": {"row": 3, "column": 2}, "end_point": {"row": 3, "column": 8}}, {"id": 18, "type": "argument_list", "text": "(\"Enter the size of the array: \")", "parent": 16, "children": [19], "start_point": {"row": 3, "column": 8}, "end_point": {"row": 3, "column": 41}}, {"id": 19, "type": "string_literal", "text": "\"Enter the size of the array: \"", "parent": 18, "children": [], "start_point": {"row": 3, "column": 9}, "end_point": {"row": 3, "column": 40}}, {"id": 20, "type": "call_expression", "text": "scanf(\"%d\",&n)", "parent": 3, "children": [21, 22], "start_point": {"row": 4, "column": 2}, "end_point": {"row": 4, "column": 16}}, {"id": 21, "type": "identifier", "text": "scanf", "parent": 20, "children": [], "start_point": {"row": 4, "column": 2}, "end_point": {"row": 4, "column": 7}}, {"id": 22, "type": "argument_list", "text": "(\"%d\",&n)", "parent": 20, "children": [23, 24], "start_point": {"row": 4, "column": 7}, "end_point": {"row": 4, "column": 16}}, {"id": 23, "type": "string_literal", "text": "\"%d\"", "parent": 22, "children": [], "start_point": {"row": 4, "column": 8}, "end_point": {"row": 4, "column": 12}}, {"id": 24, "type": "pointer_expression", "text": "&n", "parent": 22, "children": [25], "start_point": {"row": 4, "column": 13}, "end_point": {"row": 4, "column": 15}}, {"id": 25, "type": "identifier", "text": "n", "parent": 24, "children": [], "start_point": {"row": 4, "column": 14}, "end_point": {"row": 4, "column": 15}}, {"id": 26, "type": "declaration", "text": "int arr[n];", "parent": 3, "children": [27, 28], "start_point": {"row": 5, "column": 2}, "end_point": {"row": 5, "column": 13}}, {"id": 27, "type": "primitive_type", "text": "int", "parent": 26, "children": [], "start_point": {"row": 5, "column": 2}, "end_point": {"row": 5, "column": 5}}, {"id": 28, "type": "array_declarator", "text": "arr[n]", "parent": 26, "children": [29, 30], "start_point": {"row": 5, "column": 6}, "end_point": {"row": 5, "column": 12}}, {"id": 29, "type": "identifier", "text": "arr", "parent": 28, "children": [], "start_point": {"row": 5, "column": 6}, "end_point": {"row": 5, "column": 9}}, {"id": 30, "type": "identifier", "text": "n", "parent": 28, "children": [], "start_point": {"row": 5, "column": 10}, "end_point": {"row": 5, "column": 11}}, {"id": 31, "type": "call_expression", "text": "printf(\"Enter the Array Elements\\n\")", "parent": 3, "children": [32, 33], "start_point": {"row": 6, "column": 2}, "end_point": {"row": 6, "column": 38}}, {"id": 32, "type": "identifier", "text": "printf", "parent": 31, "children": [], "start_point": {"row": 6, "column": 2}, "end_point": {"row": 6, "column": 8}}, {"id": 33, "type": "argument_list", "text": "(\"Enter the Array Elements\\n\")", "parent": 31, "children": [34], "start_point": {"row": 6, "column": 8}, "end_point": {"row": 6, "column": 38}}, {"id": 34, "type": "string_literal", "text": "\"Enter the Array Elements\\n\"", "parent": 33, "children": [35], "start_point": {"row": 6, "column": 9}, "end_point": {"row": 6, "column": 37}}, {"id": 35, "type": "escape_sequence", "text": "\\n", "parent": 34, "children": [], "start_point": {"row": 6, "column": 34}, "end_point": {"row": 6, "column": 36}}, {"id": 36, "type": "for_statement", "text": "for(i=0;i<n;i++)\n scanf(\"%d\",&arr[i]);", "parent": 3, "children": [37, 41, 45], "start_point": {"row": 7, "column": 2}, "end_point": {"row": 8, "column": 24}}, {"id": 37, "type": "assignment_expression", "text": "i=0", "parent": 36, "children": [38, 39, 40], "start_point": {"row": 7, "column": 6}, "end_point": {"row": 7, "column": 9}}, {"id": 38, "type": "identifier", "text": "i", "parent": 37, "children": [], "start_point": {"row": 7, "column": 6}, "end_point": {"row": 7, "column": 7}}, {"id": 39, "type": "=", "text": "=", "parent": 37, "children": [], "start_point": {"row": 7, "column": 7}, "end_point": {"row": 7, "column": 8}}, {"id": 40, "type": "number_literal", "text": "0", "parent": 37, "children": [], "start_point": {"row": 7, "column": 8}, "end_point": {"row": 7, "column": 9}}, {"id": 41, "type": "binary_expression", "text": "i<n", "parent": 36, "children": [42, 43, 44], "start_point": {"row": 7, "column": 10}, "end_point": {"row": 7, "column": 13}}, {"id": 42, "type": "identifier", "text": "i", "parent": 41, "children": [], "start_point": {"row": 7, "column": 10}, "end_point": {"row": 7, "column": 11}}, {"id": 43, "type": "<", "text": "<", "parent": 41, "children": [], "start_point": {"row": 7, "column": 11}, "end_point": {"row": 7, "column": 12}}, {"id": 44, "type": "identifier", "text": "n", "parent": 41, "children": [], "start_point": {"row": 7, "column": 12}, "end_point": {"row": 7, "column": 13}}, {"id": 45, "type": "update_expression", "text": "i++", "parent": 36, "children": [46, 47], "start_point": {"row": 7, "column": 14}, "end_point": {"row": 7, "column": 17}}, {"id": 46, "type": "identifier", "text": "i", "parent": 45, "children": [], "start_point": {"row": 7, "column": 14}, "end_point": {"row": 7, "column": 15}}, {"id": 47, "type": "++", "text": "++", "parent": 45, "children": [], "start_point": {"row": 7, "column": 15}, "end_point": {"row": 7, "column": 17}}, {"id": 48, "type": "call_expression", "text": "scanf(\"%d\",&arr[i])", "parent": 36, "children": [49, 50], "start_point": {"row": 8, "column": 4}, "end_point": {"row": 8, "column": 23}}, {"id": 49, "type": "identifier", "text": "scanf", "parent": 48, "children": [], "start_point": {"row": 8, "column": 4}, "end_point": {"row": 8, "column": 9}}, {"id": 50, "type": "argument_list", "text": "(\"%d\",&arr[i])", "parent": 48, "children": [51, 52], "start_point": {"row": 8, "column": 9}, "end_point": {"row": 8, "column": 23}}, {"id": 51, "type": "string_literal", "text": "\"%d\"", "parent": 50, "children": [], "start_point": {"row": 8, "column": 10}, "end_point": {"row": 8, "column": 14}}, {"id": 52, "type": "pointer_expression", "text": "&arr[i]", "parent": 50, "children": [53], "start_point": {"row": 8, "column": 15}, "end_point": {"row": 8, "column": 22}}, {"id": 53, "type": "subscript_expression", "text": "arr[i]", "parent": 52, "children": [54, 55], "start_point": {"row": 8, "column": 16}, "end_point": {"row": 8, "column": 22}}, {"id": 54, "type": "identifier", "text": "arr", "parent": 53, "children": [], "start_point": {"row": 8, "column": 16}, "end_point": {"row": 8, "column": 19}}, {"id": 55, "type": "identifier", "text": "i", "parent": 53, "children": [], "start_point": {"row": 8, "column": 20}, "end_point": {"row": 8, "column": 21}}, {"id": 56, "type": "for_statement", "text": "for(i=0;i<n;i+=2){\n min=i;max=i;\n for(j=i+1;j<n;j++){\n if(arr[min]>arr[j])\n min=j;\n if(arr[max]<arr[j])\n max=j;\n }\n if(i+1==n)\n break;\n temp=arr[i];\n arr[i]=arr[min];\n arr[min]=temp;\n if(i+2==n)\n break;\n temp=arr[i+1];\n arr[i+1]=arr[max];\n arr[max]=temp;\n }", "parent": 3, "children": [57, 61, 65], "start_point": {"row": 9, "column": 2}, "end_point": {"row": 27, "column": 3}}, {"id": 57, "type": "assignment_expression", "text": "i=0", "parent": 56, "children": [58, 59, 60], "start_point": {"row": 9, "column": 6}, "end_point": {"row": 9, "column": 9}}, {"id": 58, "type": "identifier", "text": "i", "parent": 57, "children": [], "start_point": {"row": 9, "column": 6}, "end_point": {"row": 9, "column": 7}}, {"id": 59, "type": "=", "text": "=", "parent": 57, "children": [], "start_point": {"row": 9, "column": 7}, "end_point": {"row": 9, "column": 8}}, {"id": 60, "type": "number_literal", "text": "0", "parent": 57, "children": [], "start_point": {"row": 9, "column": 8}, "end_point": {"row": 9, "column": 9}}, {"id": 61, "type": "binary_expression", "text": "i<n", "parent": 56, "children": [62, 63, 64], "start_point": {"row": 9, "column": 10}, "end_point": {"row": 9, "column": 13}}, {"id": 62, "type": "identifier", "text": "i", "parent": 61, "children": [], "start_point": {"row": 9, "column": 10}, "end_point": {"row": 9, "column": 11}}, {"id": 63, "type": "<", "text": "<", "parent": 61, "children": [], "start_point": {"row": 9, "column": 11}, "end_point": {"row": 9, "column": 12}}, {"id": 64, "type": "identifier", "text": "n", "parent": 61, "children": [], "start_point": {"row": 9, "column": 12}, "end_point": {"row": 9, "column": 13}}, {"id": 65, "type": "assignment_expression", "text": "i+=2", "parent": 56, "children": [66, 67, 68], "start_point": {"row": 9, "column": 14}, "end_point": {"row": 9, "column": 18}}, {"id": 66, "type": "identifier", "text": "i", "parent": 65, "children": [], "start_point": {"row": 9, "column": 14}, "end_point": {"row": 9, "column": 15}}, {"id": 67, "type": "+=", "text": "+=", "parent": 65, "children": [], "start_point": {"row": 9, "column": 15}, "end_point": {"row": 9, "column": 17}}, {"id": 68, "type": "number_literal", "text": "2", "parent": 65, "children": [], "start_point": {"row": 9, "column": 17}, "end_point": {"row": 9, "column": 18}}, {"id": 69, "type": "assignment_expression", "text": "min=i", "parent": 56, "children": [70, 71, 72], "start_point": {"row": 10, "column": 4}, "end_point": {"row": 10, "column": 9}}, {"id": 70, "type": "identifier", "text": "min", "parent": 69, "children": [], "start_point": {"row": 10, "column": 4}, "end_point": {"row": 10, "column": 7}}, {"id": 71, "type": "=", "text": "=", "parent": 69, "children": [], "start_point": {"row": 10, "column": 7}, "end_point": {"row": 10, "column": 8}}, {"id": 72, "type": "identifier", "text": "i", "parent": 69, "children": [], "start_point": {"row": 10, "column": 8}, "end_point": {"row": 10, "column": 9}}, {"id": 73, "type": "assignment_expression", "text": "max=i", "parent": 56, "children": [74, 75, 76], "start_point": {"row": 10, "column": 10}, "end_point": {"row": 10, "column": 15}}, {"id": 74, "type": "identifier", "text": "max", "parent": 73, "children": [], "start_point": {"row": 10, "column": 10}, "end_point": {"row": 10, "column": 13}}, {"id": 75, "type": "=", "text": "=", "parent": 73, "children": [], "start_point": {"row": 10, "column": 13}, "end_point": {"row": 10, "column": 14}}, {"id": 76, "type": "identifier", "text": "i", "parent": 73, "children": [], "start_point": {"row": 10, "column": 14}, "end_point": {"row": 10, "column": 15}}, {"id": 77, "type": "for_statement", "text": "for(j=i+1;j<n;j++){\n if(arr[min]>arr[j])\n min=j;\n if(arr[max]<arr[j])\n max=j;\n }", "parent": 56, "children": [78, 85, 89], "start_point": {"row": 11, "column": 4}, "end_point": {"row": 16, "column": 5}}, {"id": 78, "type": "assignment_expression", "text": "j=i+1", "parent": 77, "children": [79, 80, 81], "start_point": {"row": 11, "column": 8}, "end_point": {"row": 11, "column": 13}}, {"id": 79, "type": "identifier", "text": "j", "parent": 78, "children": [], "start_point": {"row": 11, "column": 8}, "end_point": {"row": 11, "column": 9}}, {"id": 80, "type": "=", "text": "=", "parent": 78, "children": [], "start_point": {"row": 11, "column": 9}, "end_point": {"row": 11, "column": 10}}, {"id": 81, "type": "binary_expression", "text": "i+1", "parent": 78, "children": [82, 83, 84], "start_point": {"row": 11, "column": 10}, "end_point": {"row": 11, "column": 13}}, {"id": 82, "type": "identifier", "text": "i", "parent": 81, "children": [], "start_point": {"row": 11, "column": 10}, "end_point": {"row": 11, "column": 11}}, {"id": 83, "type": "+", "text": "+", "parent": 81, "children": [], "start_point": {"row": 11, "column": 11}, "end_point": {"row": 11, "column": 12}}, {"id": 84, "type": "number_literal", "text": "1", "parent": 81, "children": [], "start_point": {"row": 11, "column": 12}, "end_point": {"row": 11, "column": 13}}, {"id": 85, "type": "binary_expression", "text": "j<n", "parent": 77, "children": [86, 87, 88], "start_point": {"row": 11, "column": 14}, "end_point": {"row": 11, "column": 17}}, {"id": 86, "type": "identifier", "text": "j", "parent": 85, "children": [], "start_point": {"row": 11, "column": 14}, "end_point": {"row": 11, "column": 15}}, {"id": 87, "type": "<", "text": "<", "parent": 85, "children": [], "start_point": {"row": 11, "column": 15}, "end_point": {"row": 11, "column": 16}}, {"id": 88, "type": "identifier", "text": "n", "parent": 85, "children": [], "start_point": {"row": 11, "column": 16}, "end_point": {"row": 11, "column": 17}}, {"id": 89, "type": "update_expression", "text": "j++", "parent": 77, "children": [90, 91], "start_point": {"row": 11, "column": 18}, "end_point": {"row": 11, "column": 21}}, {"id": 90, "type": "identifier", "text": "j", "parent": 89, "children": [], "start_point": {"row": 11, "column": 18}, "end_point": {"row": 11, "column": 19}}, {"id": 91, "type": "++", "text": "++", "parent": 89, "children": [], "start_point": {"row": 11, "column": 19}, "end_point": {"row": 11, "column": 21}}, {"id": 92, "type": "if_statement", "text": "if(arr[min]>arr[j])\n min=j;", "parent": 77, "children": [93], "start_point": {"row": 12, "column": 6}, "end_point": {"row": 13, "column": 14}}, {"id": 93, "type": "parenthesized_expression", "text": "(arr[min]>arr[j])", "parent": 92, "children": [94], "start_point": {"row": 12, "column": 8}, "end_point": {"row": 12, "column": 25}}, {"id": 94, "type": "binary_expression", "text": "arr[min]>arr[j]", "parent": 93, "children": [95, 98, 99], "start_point": {"row": 12, "column": 9}, "end_point": {"row": 12, "column": 24}}, {"id": 95, "type": "subscript_expression", "text": "arr[min]", "parent": 94, "children": [96, 97], "start_point": {"row": 12, "column": 9}, "end_point": {"row": 12, "column": 17}}, {"id": 96, "type": "identifier", "text": "arr", "parent": 95, "children": [], "start_point": {"row": 12, "column": 9}, "end_point": {"row": 12, "column": 12}}, {"id": 97, "type": "identifier", "text": "min", "parent": 95, "children": [], "start_point": {"row": 12, "column": 13}, "end_point": {"row": 12, "column": 16}}, {"id": 98, "type": ">", "text": ">", "parent": 94, "children": [], "start_point": {"row": 12, "column": 17}, "end_point": {"row": 12, "column": 18}}, {"id": 99, "type": "subscript_expression", "text": "arr[j]", "parent": 94, "children": [100, 101], "start_point": {"row": 12, "column": 18}, "end_point": {"row": 12, "column": 24}}, {"id": 100, "type": "identifier", "text": "arr", "parent": 99, "children": [], "start_point": {"row": 12, "column": 18}, "end_point": {"row": 12, "column": 21}}, {"id": 101, "type": "identifier", "text": "j", "parent": 99, "children": [], "start_point": {"row": 12, "column": 22}, "end_point": {"row": 12, "column": 23}}, {"id": 102, "type": "assignment_expression", "text": "min=j", "parent": 92, "children": [103, 104, 105], "start_point": {"row": 13, "column": 8}, "end_point": {"row": 13, "column": 13}}, {"id": 103, "type": "identifier", "text": "min", "parent": 102, "children": [], "start_point": {"row": 13, "column": 8}, "end_point": {"row": 13, "column": 11}}, {"id": 104, "type": "=", "text": "=", "parent": 102, "children": [], "start_point": {"row": 13, "column": 11}, "end_point": {"row": 13, "column": 12}}, {"id": 105, "type": "identifier", "text": "j", "parent": 102, "children": [], "start_point": {"row": 13, "column": 12}, "end_point": {"row": 13, "column": 13}}, {"id": 106, "type": "if_statement", "text": "if(arr[max]<arr[j])\n max=j;", "parent": 77, "children": [107], "start_point": {"row": 14, "column": 6}, "end_point": {"row": 15, "column": 14}}, {"id": 107, "type": "parenthesized_expression", "text": "(arr[max]<arr[j])", "parent": 106, "children": [108], "start_point": {"row": 14, "column": 8}, "end_point": {"row": 14, "column": 25}}, {"id": 108, "type": "binary_expression", "text": "arr[max]<arr[j]", "parent": 107, "children": [109, 112, 113], "start_point": {"row": 14, "column": 9}, "end_point": {"row": 14, "column": 24}}, {"id": 109, "type": "subscript_expression", "text": "arr[max]", "parent": 108, "children": [110, 111], "start_point": {"row": 14, "column": 9}, "end_point": {"row": 14, "column": 17}}, {"id": 110, "type": "identifier", "text": "arr", "parent": 109, "children": [], "start_point": {"row": 14, "column": 9}, "end_point": {"row": 14, "column": 12}}, {"id": 111, "type": "identifier", "text": "max", "parent": 109, "children": [], "start_point": {"row": 14, "column": 13}, "end_point": {"row": 14, "column": 16}}, {"id": 112, "type": "<", "text": "<", "parent": 108, "children": [], "start_point": {"row": 14, "column": 17}, "end_point": {"row": 14, "column": 18}}, {"id": 113, "type": "subscript_expression", "text": "arr[j]", "parent": 108, "children": [114, 115], "start_point": {"row": 14, "column": 18}, "end_point": {"row": 14, "column": 24}}, {"id": 114, "type": "identifier", "text": "arr", "parent": 113, "children": [], "start_point": {"row": 14, "column": 18}, "end_point": {"row": 14, "column": 21}}, {"id": 115, "type": "identifier", "text": "j", "parent": 113, "children": [], "start_point": {"row": 14, "column": 22}, "end_point": {"row": 14, "column": 23}}, {"id": 116, "type": "assignment_expression", "text": "max=j", "parent": 106, "children": [117, 118, 119], "start_point": {"row": 15, "column": 8}, "end_point": {"row": 15, "column": 13}}, {"id": 117, "type": "identifier", "text": "max", "parent": 116, "children": [], "start_point": {"row": 15, "column": 8}, "end_point": {"row": 15, "column": 11}}, {"id": 118, "type": "=", "text": "=", "parent": 116, "children": [], "start_point": {"row": 15, "column": 11}, "end_point": {"row": 15, "column": 12}}, {"id": 119, "type": "identifier", "text": "j", "parent": 116, "children": [], "start_point": {"row": 15, "column": 12}, "end_point": {"row": 15, "column": 13}}, {"id": 120, "type": "if_statement", "text": "if(i+1==n)\n break;", "parent": 56, "children": [121, 129], "start_point": {"row": 17, "column": 4}, "end_point": {"row": 18, "column": 12}}, {"id": 121, "type": "parenthesized_expression", "text": "(i+1==n)", "parent": 120, "children": [122], "start_point": {"row": 17, "column": 6}, "end_point": {"row": 17, "column": 14}}, {"id": 122, "type": "binary_expression", "text": "i+1==n", "parent": 121, "children": [123, 127, 128], "start_point": {"row": 17, "column": 7}, "end_point": {"row": 17, "column": 13}}, {"id": 123, "type": "binary_expression", "text": "i+1", "parent": 122, "children": [124, 125, 126], "start_point": {"row": 17, "column": 7}, "end_point": {"row": 17, "column": 10}}, {"id": 124, "type": "identifier", "text": "i", "parent": 123, "children": [], "start_point": {"row": 17, "column": 7}, "end_point": {"row": 17, "column": 8}}, {"id": 125, "type": "+", "text": "+", "parent": 123, "children": [], "start_point": {"row": 17, "column": 8}, "end_point": {"row": 17, "column": 9}}, {"id": 126, "type": "number_literal", "text": "1", "parent": 123, "children": [], "start_point": {"row": 17, "column": 9}, "end_point": {"row": 17, "column": 10}}, {"id": 127, "type": "==", "text": "==", "parent": 122, "children": [], "start_point": {"row": 17, "column": 10}, "end_point": {"row": 17, "column": 12}}, {"id": 128, "type": "identifier", "text": "n", "parent": 122, "children": [], "start_point": {"row": 17, "column": 12}, "end_point": {"row": 17, "column": 13}}, {"id": 129, "type": "break_statement", "text": "break;", "parent": 120, "children": [130], "start_point": {"row": 18, "column": 6}, "end_point": {"row": 18, "column": 12}}, {"id": 130, "type": "break", "text": "break", "parent": 129, "children": [], "start_point": {"row": 18, "column": 6}, "end_point": {"row": 18, "column": 11}}, {"id": 131, "type": "assignment_expression", "text": "temp=arr[i]", "parent": 56, "children": [132, 133, 134], "start_point": {"row": 19, "column": 4}, "end_point": {"row": 19, "column": 15}}, {"id": 132, "type": "identifier", "text": "temp", "parent": 131, "children": [], "start_point": {"row": 19, "column": 4}, "end_point": {"row": 19, "column": 8}}, {"id": 133, "type": "=", "text": "=", "parent": 131, "children": [], "start_point": {"row": 19, "column": 8}, "end_point": {"row": 19, "column": 9}}, {"id": 134, "type": "subscript_expression", "text": "arr[i]", "parent": 131, "children": [135, 136], "start_point": {"row": 19, "column": 9}, "end_point": {"row": 19, "column": 15}}, {"id": 135, "type": "identifier", "text": "arr", "parent": 134, "children": [], "start_point": {"row": 19, "column": 9}, "end_point": {"row": 19, "column": 12}}, {"id": 136, "type": "identifier", "text": "i", "parent": 134, "children": [], "start_point": {"row": 19, "column": 13}, "end_point": {"row": 19, "column": 14}}, {"id": 137, "type": "assignment_expression", "text": "arr[i]=arr[min]", "parent": 56, "children": [138, 141, 142], "start_point": {"row": 20, "column": 4}, "end_point": {"row": 20, "column": 19}}, {"id": 138, "type": "subscript_expression", "text": "arr[i]", "parent": 137, "children": [139, 140], "start_point": {"row": 20, "column": 4}, "end_point": {"row": 20, "column": 10}}, {"id": 139, "type": "identifier", "text": "arr", "parent": 138, "children": [], "start_point": {"row": 20, "column": 4}, "end_point": {"row": 20, "column": 7}}, {"id": 140, "type": "identifier", "text": "i", "parent": 138, "children": [], "start_point": {"row": 20, "column": 8}, "end_point": {"row": 20, "column": 9}}, {"id": 141, "type": "=", "text": "=", "parent": 137, "children": [], "start_point": {"row": 20, "column": 10}, "end_point": {"row": 20, "column": 11}}, {"id": 142, "type": "subscript_expression", "text": "arr[min]", "parent": 137, "children": [143, 144], "start_point": {"row": 20, "column": 11}, "end_point": {"row": 20, "column": 19}}, {"id": 143, "type": "identifier", "text": "arr", "parent": 142, "children": [], "start_point": {"row": 20, "column": 11}, "end_point": {"row": 20, "column": 14}}, {"id": 144, "type": "identifier", "text": "min", "parent": 142, "children": [], "start_point": {"row": 20, "column": 15}, "end_point": {"row": 20, "column": 18}}, {"id": 145, "type": "assignment_expression", "text": "arr[min]=temp", "parent": 56, "children": [146, 149, 150], "start_point": {"row": 21, "column": 4}, "end_point": {"row": 21, "column": 17}}, {"id": 146, "type": "subscript_expression", "text": "arr[min]", "parent": 145, "children": [147, 148], "start_point": {"row": 21, "column": 4}, "end_point": {"row": 21, "column": 12}}, {"id": 147, "type": "identifier", "text": "arr", "parent": 146, "children": [], "start_point": {"row": 21, "column": 4}, "end_point": {"row": 21, "column": 7}}, {"id": 148, "type": "identifier", "text": "min", "parent": 146, "children": [], "start_point": {"row": 21, "column": 8}, "end_point": {"row": 21, "column": 11}}, {"id": 149, "type": "=", "text": "=", "parent": 145, "children": [], "start_point": {"row": 21, "column": 12}, "end_point": {"row": 21, "column": 13}}, {"id": 150, "type": "identifier", "text": "temp", "parent": 145, "children": [], "start_point": {"row": 21, "column": 13}, "end_point": {"row": 21, "column": 17}}, {"id": 151, "type": "if_statement", "text": "if(i+2==n)\n break;", "parent": 56, "children": [152, 160], "start_point": {"row": 22, "column": 4}, "end_point": {"row": 23, "column": 12}}, {"id": 152, "type": "parenthesized_expression", "text": "(i+2==n)", "parent": 151, "children": [153], "start_point": {"row": 22, "column": 6}, "end_point": {"row": 22, "column": 14}}, {"id": 153, "type": "binary_expression", "text": "i+2==n", "parent": 152, "children": [154, 158, 159], "start_point": {"row": 22, "column": 7}, "end_point": {"row": 22, "column": 13}}, {"id": 154, "type": "binary_expression", "text": "i+2", "parent": 153, "children": [155, 156, 157], "start_point": {"row": 22, "column": 7}, "end_point": {"row": 22, "column": 10}}, {"id": 155, "type": "identifier", "text": "i", "parent": 154, "children": [], "start_point": {"row": 22, "column": 7}, "end_point": {"row": 22, "column": 8}}, {"id": 156, "type": "+", "text": "+", "parent": 154, "children": [], "start_point": {"row": 22, "column": 8}, "end_point": {"row": 22, "column": 9}}, {"id": 157, "type": "number_literal", "text": "2", "parent": 154, "children": [], "start_point": {"row": 22, "column": 9}, "end_point": {"row": 22, "column": 10}}, {"id": 158, "type": "==", "text": "==", "parent": 153, "children": [], "start_point": {"row": 22, "column": 10}, "end_point": {"row": 22, "column": 12}}, {"id": 159, "type": "identifier", "text": "n", "parent": 153, "children": [], "start_point": {"row": 22, "column": 12}, "end_point": {"row": 22, "column": 13}}, {"id": 160, "type": "break_statement", "text": "break;", "parent": 151, "children": [161], "start_point": {"row": 23, "column": 6}, "end_point": {"row": 23, "column": 12}}, {"id": 161, "type": "break", "text": "break", "parent": 160, "children": [], "start_point": {"row": 23, "column": 6}, "end_point": {"row": 23, "column": 11}}, {"id": 162, "type": "assignment_expression", "text": "temp=arr[i+1]", "parent": 56, "children": [163, 164, 165], "start_point": {"row": 24, "column": 4}, "end_point": {"row": 24, "column": 17}}, {"id": 163, "type": "identifier", "text": "temp", "parent": 162, "children": [], "start_point": {"row": 24, "column": 4}, "end_point": {"row": 24, "column": 8}}, {"id": 164, "type": "=", "text": "=", "parent": 162, "children": [], "start_point": {"row": 24, "column": 8}, "end_point": {"row": 24, "column": 9}}, {"id": 165, "type": "subscript_expression", "text": "arr[i+1]", "parent": 162, "children": [166, 167], "start_point": {"row": 24, "column": 9}, "end_point": {"row": 24, "column": 17}}, {"id": 166, "type": "identifier", "text": "arr", "parent": 165, "children": [], "start_point": {"row": 24, "column": 9}, "end_point": {"row": 24, "column": 12}}, {"id": 167, "type": "binary_expression", "text": "i+1", "parent": 165, "children": [168, 169, 170], "start_point": {"row": 24, "column": 13}, "end_point": {"row": 24, "column": 16}}, {"id": 168, "type": "identifier", "text": "i", "parent": 167, "children": [], "start_point": {"row": 24, "column": 13}, "end_point": {"row": 24, "column": 14}}, {"id": 169, "type": "+", "text": "+", "parent": 167, "children": [], "start_point": {"row": 24, "column": 14}, "end_point": {"row": 24, "column": 15}}, {"id": 170, "type": "number_literal", "text": "1", "parent": 167, "children": [], "start_point": {"row": 24, "column": 15}, "end_point": {"row": 24, "column": 16}}, {"id": 171, "type": "assignment_expression", "text": "arr[i+1]=arr[max]", "parent": 56, "children": [172, 178, 179], "start_point": {"row": 25, "column": 4}, "end_point": {"row": 25, "column": 21}}, {"id": 172, "type": "subscript_expression", "text": "arr[i+1]", "parent": 171, "children": [173, 174], "start_point": {"row": 25, "column": 4}, "end_point": {"row": 25, "column": 12}}, {"id": 173, "type": "identifier", "text": "arr", "parent": 172, "children": [], "start_point": {"row": 25, "column": 4}, "end_point": {"row": 25, "column": 7}}, {"id": 174, "type": "binary_expression", "text": "i+1", "parent": 172, "children": [175, 176, 177], "start_point": {"row": 25, "column": 8}, "end_point": {"row": 25, "column": 11}}, {"id": 175, "type": "identifier", "text": "i", "parent": 174, "children": [], "start_point": {"row": 25, "column": 8}, "end_point": {"row": 25, "column": 9}}, {"id": 176, "type": "+", "text": "+", "parent": 174, "children": [], "start_point": {"row": 25, "column": 9}, "end_point": {"row": 25, "column": 10}}, {"id": 177, "type": "number_literal", "text": "1", "parent": 174, "children": [], "start_point": {"row": 25, "column": 10}, "end_point": {"row": 25, "column": 11}}, {"id": 178, "type": "=", "text": "=", "parent": 171, "children": [], "start_point": {"row": 25, "column": 12}, "end_point": {"row": 25, "column": 13}}, {"id": 179, "type": "subscript_expression", "text": "arr[max]", "parent": 171, "children": [180, 181], "start_point": {"row": 25, "column": 13}, "end_point": {"row": 25, "column": 21}}, {"id": 180, "type": "identifier", "text": "arr", "parent": 179, "children": [], "start_point": {"row": 25, "column": 13}, "end_point": {"row": 25, "column": 16}}, {"id": 181, "type": "identifier", "text": "max", "parent": 179, "children": [], "start_point": {"row": 25, "column": 17}, "end_point": {"row": 25, "column": 20}}, {"id": 182, "type": "assignment_expression", "text": "arr[max]=temp", "parent": 56, "children": [183, 186, 187], "start_point": {"row": 26, "column": 4}, "end_point": {"row": 26, "column": 17}}, {"id": 183, "type": "subscript_expression", "text": "arr[max]", "parent": 182, "children": [184, 185], "start_point": {"row": 26, "column": 4}, "end_point": {"row": 26, "column": 12}}, {"id": 184, "type": "identifier", "text": "arr", "parent": 183, "children": [], "start_point": {"row": 26, "column": 4}, "end_point": {"row": 26, "column": 7}}, {"id": 185, "type": "identifier", "text": "max", "parent": 183, "children": [], "start_point": {"row": 26, "column": 8}, "end_point": {"row": 26, "column": 11}}, {"id": 186, "type": "=", "text": "=", "parent": 182, "children": [], "start_point": {"row": 26, "column": 12}, "end_point": {"row": 26, "column": 13}}, {"id": 187, "type": "identifier", "text": "temp", "parent": 182, "children": [], "start_point": {"row": 26, "column": 13}, "end_point": {"row": 26, "column": 17}}, {"id": 188, "type": "call_expression", "text": "printf(\"The new array is:\\n\")", "parent": 3, "children": [189, 190], "start_point": {"row": 28, "column": 2}, "end_point": {"row": 28, "column": 31}}, {"id": 189, "type": "identifier", "text": "printf", "parent": 188, "children": [], "start_point": {"row": 28, "column": 2}, "end_point": {"row": 28, "column": 8}}, {"id": 190, "type": "argument_list", "text": "(\"The new array is:\\n\")", "parent": 188, "children": [191], "start_point": {"row": 28, "column": 8}, "end_point": {"row": 28, "column": 31}}, {"id": 191, "type": "string_literal", "text": "\"The new array is:\\n\"", "parent": 190, "children": [192], "start_point": {"row": 28, "column": 9}, "end_point": {"row": 28, "column": 30}}, {"id": 192, "type": "escape_sequence", "text": "\\n", "parent": 191, "children": [], "start_point": {"row": 28, "column": 27}, "end_point": {"row": 28, "column": 29}}, {"id": 193, "type": "for_statement", "text": "for(i=0;i<n;i++)\n printf(\"%d \",arr[i]);", "parent": 3, "children": [194, 198, 202], "start_point": {"row": 29, "column": 2}, "end_point": {"row": 30, "column": 26}}, {"id": 194, "type": "assignment_expression", "text": "i=0", "parent": 193, "children": [195, 196, 197], "start_point": {"row": 29, "column": 6}, "end_point": {"row": 29, "column": 9}}, {"id": 195, "type": "identifier", "text": "i", "parent": 194, "children": [], "start_point": {"row": 29, "column": 6}, "end_point": {"row": 29, "column": 7}}, {"id": 196, "type": "=", "text": "=", "parent": 194, "children": [], "start_point": {"row": 29, "column": 7}, "end_point": {"row": 29, "column": 8}}, {"id": 197, "type": "number_literal", "text": "0", "parent": 194, "children": [], "start_point": {"row": 29, "column": 8}, "end_point": {"row": 29, "column": 9}}, {"id": 198, "type": "binary_expression", "text": "i<n", "parent": 193, "children": [199, 200, 201], "start_point": {"row": 29, "column": 10}, "end_point": {"row": 29, "column": 13}}, {"id": 199, "type": "identifier", "text": "i", "parent": 198, "children": [], "start_point": {"row": 29, "column": 10}, "end_point": {"row": 29, "column": 11}}, {"id": 200, "type": "<", "text": "<", "parent": 198, "children": [], "start_point": {"row": 29, "column": 11}, "end_point": {"row": 29, "column": 12}}, {"id": 201, "type": "identifier", "text": "n", "parent": 198, "children": [], "start_point": {"row": 29, "column": 12}, "end_point": {"row": 29, "column": 13}}, {"id": 202, "type": "update_expression", "text": "i++", "parent": 193, "children": [203, 204], "start_point": {"row": 29, "column": 14}, "end_point": {"row": 29, "column": 17}}, {"id": 203, "type": "identifier", "text": "i", "parent": 202, "children": [], "start_point": {"row": 29, "column": 14}, "end_point": {"row": 29, "column": 15}}, {"id": 204, "type": "++", "text": "++", "parent": 202, "children": [], "start_point": {"row": 29, "column": 15}, "end_point": {"row": 29, "column": 17}}, {"id": 205, "type": "call_expression", "text": "printf(\"%d \",arr[i])", "parent": 193, "children": [206, 207], "start_point": {"row": 30, "column": 4}, "end_point": {"row": 30, "column": 25}}, {"id": 206, "type": "identifier", "text": "printf", "parent": 205, "children": [], "start_point": {"row": 30, "column": 4}, "end_point": {"row": 30, "column": 10}}, {"id": 207, "type": "argument_list", "text": "(\"%d \",arr[i])", "parent": 205, "children": [208, 209], "start_point": {"row": 30, "column": 10}, "end_point": {"row": 30, "column": 25}}, {"id": 208, "type": "string_literal", "text": "\"%d \"", "parent": 207, "children": [], "start_point": {"row": 30, "column": 11}, "end_point": {"row": 30, "column": 17}}, {"id": 209, "type": "subscript_expression", "text": "arr[i]", "parent": 207, "children": [210, 211], "start_point": {"row": 30, "column": 18}, "end_point": {"row": 30, "column": 24}}, {"id": 210, "type": "identifier", "text": "arr", "parent": 209, "children": [], "start_point": {"row": 30, "column": 18}, "end_point": {"row": 30, "column": 21}}, {"id": 211, "type": "identifier", "text": "i", "parent": 209, "children": [], "start_point": {"row": 30, "column": 22}, "end_point": {"row": 30, "column": 23}}, {"id": 212, "type": "return_statement", "text": "return 0;", "parent": 3, "children": [213], "start_point": {"row": 31, "column": 2}, "end_point": {"row": 31, "column": 11}}, {"id": 213, "type": "number_literal", "text": "0", "parent": 212, "children": [], "start_point": {"row": 31, "column": 9}, "end_point": {"row": 31, "column": 10}}]}, "node_categories": {"declarations": {"functions": [3, 5], "variables": [8, 26], "classes": [], "imports": [0, 1], "modules": [], "enums": []}, "statements": {"expressions": [16, 20, 24, 31, 41, 45, 48, 52, 53, 61, 81, 85, 89, 93, 94, 95, 99, 107, 108, 109, 113, 121, 122, 123, 134, 138, 142, 146, 152, 153, 154, 165, 167, 172, 174, 179, 183, 188, 198, 202, 205, 209], "assignments": [37, 57, 65, 69, 73, 78, 102, 116, 131, 137, 145, 162, 171, 182, 194], "loops": [36, 56, 77, 193], "conditionals": [6, 10, 11, 12, 13, 14, 15, 17, 21, 25, 29, 30, 32, 38, 42, 44, 46, 49, 54, 55, 58, 62, 64, 66, 70, 72, 74, 76, 79, 82, 86, 88, 90, 92, 96, 97, 100, 101, 103, 105, 106, 110, 111, 114, 115, 117, 119, 120, 124, 128, 132, 135, 136, 139, 140, 143, 144, 147, 148, 150, 151, 155, 159, 163, 166, 168, 173, 175, 180, 181, 184, 185, 187, 189, 195, 199, 201, 203, 206, 210, 211], "returns": [212], "exceptions": []}, "expressions": {"calls": [], "literals": [2, 19, 23, 34, 40, 51, 60, 68, 84, 126, 157, 170, 177, 191, 197, 208, 213], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [{"node_id": 3, "universal_type": "function", "name": "main", "text_snippet": "int main(){\n int i,j,n,min,max,temp;\n printf(\"Enter the size of the array: \");\n scanf(\"%d\",&n);\n "}, {"node_id": 5, "universal_type": "function", "name": "unknown", "text_snippet": "main()"}], "class_declarations": [], "import_statements": [{"node_id": 0, "text": "#include<stdio.h>\n"}, {"node_id": 1, "text": "#include"}]}, "original_source_code": "#include<stdio.h>\nint main(){\n int i,j,n,min,max,temp;\n printf(\"Enter the size of the array: \");\n scanf(\"%d\",&n);\n int arr[n];\n printf(\"Enter the Array Elements\\n\");\n for(i=0;i<n;i++)\n scanf(\"%d\",&arr[i]);\n for(i=0;i<n;i+=2){\n min=i;max=i;\n for(j=i+1;j<n;j++){\n if(arr[min]>arr[j])\n min=j;\n if(arr[max]<arr[j])\n max=j;\n }\n if(i+1==n)\n break;\n temp=arr[i];\n arr[i]=arr[min];\n arr[min]=temp;\n if(i+2==n)\n break;\n temp=arr[i+1];\n arr[i+1]=arr[max];\n arr[max]=temp;\n }\n printf(\"The new array is:\\n\");\n for(i=0;i<n;i++)\n printf(\"%d \",arr[i]);\n return 0;\n}\n"}
80,083
c
#ifndef URLIFY_IN_PLACE_H #define URLIFY_IN_PLACE_H #include <array> namespace urlify_in_place { using buffer_t = std::array<char, 100>; void urlify(buffer_t *p_buffer); } // namespace urlify_in_place #endif
25
8
(translation_unit) "#ifndef URLIFY_IN_PLACE_H\n#define URLIFY_IN_PLACE_H\n\n#include <array>\n\nnamespace urlify_in_place {\nusing buffer_t = std::array<char, 100>;\nvoid urlify(buffer_t *p_buffer);\n} // namespace urlify_in_place\n\n#endif\n" (preproc_ifdef) "#ifndef URLIFY_IN_PLACE_H\n#define URLIFY_IN_PLACE_H\n\n#include <array>\n\nnamespace urlify_in_place {\nusing buffer_t = std::array<char, 100>;\nvoid urlify(buffer_t *p_buffer);\n} // namespace urlify_in_place\n\n#endif" (#ifndef) "#ifndef" (identifier) "URLIFY_IN_PLACE_H" (preproc_def) "#define URLIFY_IN_PLACE_H\n" (#define) "#define" (identifier) "URLIFY_IN_PLACE_H" (preproc_include) "#include <array>\n" (#include) "#include" (system_lib_string) "<array>" (function_definition) "namespace urlify_in_place {\nusing buffer_t = std::array<char, 100>;\nvoid urlify(buffer_t *p_buffer);\n}" (type_identifier) "namespace" (identifier) "urlify_in_place" (compound_statement) "{\nusing buffer_t = std::array<char, 100>;\nvoid urlify(buffer_t *p_buffer);\n}" ({) "{" (declaration) "using buffer_t = std::array<char, 100>;" (type_identifier) "using" (init_declarator) "buffer_t = std::array<char" (identifier) "buffer_t" (=) "=" (ERROR) "std::" (identifier) "std" (:) ":" (:) ":" (binary_expression) "array<char" (identifier) "array" (<) "<" (identifier) "char" (ERROR) ", 100>" (,) "," (number_literal) "100" (>) ">" (;) ";" (declaration) "void urlify(buffer_t *p_buffer);" (primitive_type) "void" (function_declarator) "urlify(buffer_t *p_buffer)" (identifier) "urlify" (parameter_list) "(buffer_t *p_buffer)" (() "(" (parameter_declaration) "buffer_t *p_buffer" (type_identifier) "buffer_t" (pointer_declarator) "*p_buffer" (*) "*" (identifier) "p_buffer" ()) ")" (;) ";" (}) "}" (comment) "// namespace urlify_in_place" (#endif) "#endif"
49
2
{"language": "c", "success": true, "metadata": {"lines": 8, "avg_line_length": 25.0, "nodes": 37, "errors": 0, "source_hash": "a4a22f7c7817ef8aeaa28d5645d31d79a17a4848af095b4b001ec896f0d86024", "categorized_nodes": 25}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef URLIFY_IN_PLACE_H\n#define URLIFY_IN_PLACE_H\n\n#include <array>\n\nnamespace urlify_in_place {\nusing buffer_t = std::array<char, 100>;\nvoid urlify(buffer_t *p_buffer);\n} // namespace urlify_in_place\n\n#endif", "parent": null, "children": [1, 2, 3, 6, 9, 36], "start_point": {"row": 0, "column": 0}, "end_point": {"row": 10, "column": 6}}, {"id": 1, "type": "#ifndef", "text": "#ifndef", "parent": 0, "children": [], "start_point": {"row": 0, "column": 0}, "end_point": {"row": 0, "column": 7}}, {"id": 2, "type": "identifier", "text": "URLIFY_IN_PLACE_H", "parent": 0, "children": [], "start_point": {"row": 0, "column": 8}, "end_point": {"row": 0, "column": 25}}, {"id": 3, "type": "preproc_def", "text": "#define URLIFY_IN_PLACE_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": "URLIFY_IN_PLACE_H", "parent": 3, "children": [], "start_point": {"row": 1, "column": 8}, "end_point": {"row": 1, "column": 25}}, {"id": 6, "type": "preproc_include", "text": "#include <array>\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": "<array>", "parent": 6, "children": [], "start_point": {"row": 3, "column": 9}, "end_point": {"row": 3, "column": 16}}, {"id": 9, "type": "function_definition", "text": "namespace urlify_in_place {\nusing buffer_t = std::array<char, 100>;\nvoid urlify(buffer_t *p_buffer);\n}", "parent": 0, "children": [10, 11], "start_point": {"row": 5, "column": 0}, "end_point": {"row": 8, "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": "urlify_in_place", "parent": 9, "children": [], "start_point": {"row": 5, "column": 10}, "end_point": {"row": 5, "column": 25}}, {"id": 12, "type": "declaration", "text": "using buffer_t = std::array<char, 100>;", "parent": 9, "children": [13, 14, 23], "start_point": {"row": 6, "column": 0}, "end_point": {"row": 6, "column": 39}}, {"id": 13, "type": "type_identifier", "text": "using", "parent": 12, "children": [], "start_point": {"row": 6, "column": 0}, "end_point": {"row": 6, "column": 5}}, {"id": 14, "type": "init_declarator", "text": "buffer_t = std::array<char", "parent": 12, "children": [15, 16, 17, 19], "start_point": {"row": 6, "column": 6}, "end_point": {"row": 6, "column": 32}}, {"id": 15, "type": "identifier", "text": "buffer_t", "parent": 14, "children": [], "start_point": {"row": 6, "column": 6}, "end_point": {"row": 6, "column": 14}}, {"id": 16, "type": "=", "text": "=", "parent": 14, "children": [], "start_point": {"row": 6, "column": 15}, "end_point": {"row": 6, "column": 16}}, {"id": 17, "type": "ERROR", "text": "std::", "parent": 14, "children": [18], "start_point": {"row": 6, "column": 17}, "end_point": {"row": 6, "column": 22}}, {"id": 18, "type": "identifier", "text": "std", "parent": 17, "children": [], "start_point": {"row": 6, "column": 17}, "end_point": {"row": 6, "column": 20}}, {"id": 19, "type": "binary_expression", "text": "array<char", "parent": 14, "children": [20, 21, 22], "start_point": {"row": 6, "column": 22}, "end_point": {"row": 6, "column": 32}}, {"id": 20, "type": "identifier", "text": "array", "parent": 19, "children": [], "start_point": {"row": 6, "column": 22}, "end_point": {"row": 6, "column": 27}}, {"id": 21, "type": "<", "text": "<", "parent": 19, "children": [], "start_point": {"row": 6, "column": 27}, "end_point": {"row": 6, "column": 28}}, {"id": 22, "type": "identifier", "text": "char", "parent": 19, "children": [], "start_point": {"row": 6, "column": 28}, "end_point": {"row": 6, "column": 32}}, {"id": 23, "type": "ERROR", "text": ", 100>", "parent": 12, "children": [24, 25], "start_point": {"row": 6, "column": 32}, "end_point": {"row": 6, "column": 38}}, {"id": 24, "type": "number_literal", "text": "100", "parent": 23, "children": [], "start_point": {"row": 6, "column": 34}, "end_point": {"row": 6, "column": 37}}, {"id": 25, "type": ">", "text": ">", "parent": 23, "children": [], "start_point": {"row": 6, "column": 37}, "end_point": {"row": 6, "column": 38}}, {"id": 26, "type": "declaration", "text": "void urlify(buffer_t *p_buffer);", "parent": 9, "children": [27, 28], "start_point": {"row": 7, "column": 0}, "end_point": {"row": 7, "column": 32}}, {"id": 27, "type": "primitive_type", "text": "void", "parent": 26, "children": [], "start_point": {"row": 7, "column": 0}, "end_point": {"row": 7, "column": 4}}, {"id": 28, "type": "function_declarator", "text": "urlify(buffer_t *p_buffer)", "parent": 26, "children": [29, 30], "start_point": {"row": 7, "column": 5}, "end_point": {"row": 7, "column": 31}}, {"id": 29, "type": "identifier", "text": "urlify", "parent": 28, "children": [], "start_point": {"row": 7, "column": 5}, "end_point": {"row": 7, "column": 11}}, {"id": 30, "type": "parameter_list", "text": "(buffer_t *p_buffer)", "parent": 28, "children": [31], "start_point": {"row": 7, "column": 11}, "end_point": {"row": 7, "column": 31}}, {"id": 31, "type": "parameter_declaration", "text": "buffer_t *p_buffer", "parent": 30, "children": [32, 33], "start_point": {"row": 7, "column": 12}, "end_point": {"row": 7, "column": 30}}, {"id": 32, "type": "type_identifier", "text": "buffer_t", "parent": 31, "children": [], "start_point": {"row": 7, "column": 12}, "end_point": {"row": 7, "column": 20}}, {"id": 33, "type": "pointer_declarator", "text": "*p_buffer", "parent": 31, "children": [34, 35], "start_point": {"row": 7, "column": 21}, "end_point": {"row": 7, "column": 30}}, {"id": 34, "type": "*", "text": "*", "parent": 33, "children": [], "start_point": {"row": 7, "column": 21}, "end_point": {"row": 7, "column": 22}}, {"id": 35, "type": "identifier", "text": "p_buffer", "parent": 33, "children": [], "start_point": {"row": 7, "column": 22}, "end_point": {"row": 7, "column": 30}}, {"id": 36, "type": "#endif", "text": "#endif", "parent": 0, "children": [], "start_point": {"row": 10, "column": 0}, "end_point": {"row": 10, "column": 6}}]}, "node_categories": {"declarations": {"functions": [9, 28], "variables": [12, 26, 31], "classes": [], "imports": [6, 7], "modules": [], "enums": []}, "statements": {"expressions": [19], "assignments": [], "loops": [], "conditionals": [0, 1, 2, 5, 10, 11, 13, 15, 18, 20, 22, 29, 32, 35, 36], "returns": [], "exceptions": []}, "expressions": {"calls": [], "literals": [8, 24], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [{"node_id": 9, "universal_type": "function", "name": "urlify", "text_snippet": "namespace urlify_in_place {\nusing buffer_t = std::array<char, 100>;\nvoid urlify(buffer_t *p_buffer);"}, {"node_id": 28, "universal_type": "function", "name": "unknown", "text_snippet": "urlify(buffer_t *p_buffer)"}], "class_declarations": [], "import_statements": [{"node_id": 6, "text": "#include <array>\n"}, {"node_id": 7, "text": "#include"}]}, "original_source_code": "#ifndef URLIFY_IN_PLACE_H\n#define URLIFY_IN_PLACE_H\n\n#include <array>\n\nnamespace urlify_in_place {\nusing buffer_t = std::array<char, 100>;\nvoid urlify(buffer_t *p_buffer);\n} // namespace urlify_in_place\n\n#endif\n"}
80,084
c
/*++ Copyright (c) 1990 Microsoft Corporation Module Name: tshut.c Abstract: This test is used to shut-down a SAM server. This might be useful for killing SAM without rebooting during development. Author: <NAME> (JimK) 12-July-1991 Environment: User Mode - Win32 Revision History: --*/ /////////////////////////////////////////////////////////////////////////////// // // // Includes // // // /////////////////////////////////////////////////////////////////////////////// #include <nt.h> #include <ntsam.h> #include <ntrtl.h> // DbgPrint() /////////////////////////////////////////////////////////////////////////////// // // // private service prototypes // // // /////////////////////////////////////////////////////////////////////////////// /////////////////////////////////////////////////////////////////////////////// // // // Routines // // // /////////////////////////////////////////////////////////////////////////////// VOID main ( VOID ) /*++ Routine Description: This is the main entry routine for this test. Arguments: None. Return Value: Note: --*/ { NTSTATUS NtStatus; SAM_HANDLE ServerHandle; OBJECT_ATTRIBUTES ObjectAttributes; InitializeObjectAttributes( &ObjectAttributes, NULL, 0, 0, NULL ); NtStatus = SamConnect( NULL, // ServerName (Local machine) &ServerHandle, SAM_SERVER_ALL_ACCESS, &ObjectAttributes ); DbgPrint("SAM TEST (Tshut): Status of SamConnect() is: 0x%lx\n", NtStatus); if (!NT_SUCCESS(NtStatus)) { return; } NtStatus = SamShutdownSamServer( ServerHandle ); DbgPrint("SAM TEST (Tshut): Status of SamShutdownSamServer() is: 0x%lx\n", NtStatus); if (!NT_SUCCESS(NtStatus)) { return; } // // I'm not sure why, but it seems to take another awakening of the // server to make it die. // NtStatus = SamConnect( NULL, // ServerName (Local machine) &ServerHandle, SAM_SERVER_ALL_ACCESS, &ObjectAttributes ); return; }
24.17
119
(translation_unit) "/*++ \n \nCopyright (c) 1990 Microsoft Corporation \n \nModule Name: \n \n tshut.c \n \nAbstract: \n \n This test is used to shut-down a SAM server. This might be useful \n for killing SAM without rebooting during development. \n \nAuthor: \n \n <NAME> (JimK) 12-July-1991 \n \nEnvironment: \n \n User Mode - Win32 \n \nRevision History: \n \n \n--*/ \n \n/////////////////////////////////////////////////////////////////////////////// \n// // \n// Includes // \n// // \n/////////////////////////////////////////////////////////////////////////////// \n \n#include <nt.h> \n#include <ntsam.h> \n#include <ntrtl.h> // DbgPrint() \n \n \n \n \n \n/////////////////////////////////////////////////////////////////////////////// \n// // \n// private service prototypes // \n// // \n/////////////////////////////////////////////////////////////////////////////// \n \n \n \n \n \n/////////////////////////////////////////////////////////////////////////////// \n// // \n// Routines // \n// // \n/////////////////////////////////////////////////////////////////////////////// \n \nVOID \nmain ( \n VOID \n ) \n \n/*++ \n \nRoutine Description: \n \n This is the main entry routine for this test. \n \nArguments: \n \n None. \n \nReturn Value: \n \n \n Note: \n \n \n--*/ \n{ \n NTSTATUS NtStatus; \n SAM_HANDLE ServerHandle; \n OBJECT_ATTRIBUTES ObjectAttributes; \n \n \n InitializeObjectAttributes( &ObjectAttributes, NULL, 0, 0, NULL ); \n \n \n NtStatus = SamConnect( \n NULL, // ServerName (Local machine) \n &ServerHandle, \n SAM_SERVER_ALL_ACCESS, \n &ObjectAttributes \n ); \n \n DbgPrint("SAM TEST (Tshut): Status of SamConnect() is: 0x%lx\n", NtStatus); \n if (!NT_SUCCESS(NtStatus)) { return; } \n \n \n NtStatus = SamShutdownSamServer( ServerHandle ); \n DbgPrint("SAM TEST (Tshut): Status of SamShutdownSamServer() is: 0x%lx\n", NtStatus); \n if (!NT_SUCCESS(NtStatus)) { return; } \n \n \n // \n // I'm not sure why, but it seems to take another awakening of the \n // server to make it die. \n // \n \n NtStatus = SamConnect( \n NULL, // ServerName (Local machine) \n &ServerHandle, \n SAM_SERVER_ALL_ACCESS, \n &ObjectAttributes \n ); \n \n \n \n return; \n} \n" (comment) "/*++ \n \nCopyright (c) 1990 Microsoft Corporation \n \nModule Name: \n \n tshut.c \n \nAbstract: \n \n This test is used to shut-down a SAM server. This might be useful \n for killing SAM without rebooting during development. \n \nAuthor: \n \n <NAME> (JimK) 12-July-1991 \n \nEnvironment: \n \n User Mode - Win32 \n \nRevision History: \n \n \n--*/" (comment) "/////////////////////////////////////////////////////////////////////////////// " (comment) "// // " (comment) "// Includes // " (comment) "// // " (comment) "/////////////////////////////////////////////////////////////////////////////// " (preproc_include) "#include <nt.h> \n" (#include) "#include" (system_lib_string) "<nt.h>" (preproc_include) "#include <ntsam.h> \n" (#include) "#include" (system_lib_string) "<ntsam.h>" (preproc_include) "#include <ntrtl.h> // DbgPrint() \n" (#include) "#include" (system_lib_string) "<ntrtl.h>" (comment) "// DbgPrint() " (comment) "/////////////////////////////////////////////////////////////////////////////// " (comment) "// // " (comment) "// private service prototypes // " (comment) "// // " (comment) "/////////////////////////////////////////////////////////////////////////////// " (comment) "/////////////////////////////////////////////////////////////////////////////// " (comment) "// // " (comment) "// Routines // " (comment) "// // " (comment) "/////////////////////////////////////////////////////////////////////////////// " (function_definition) "VOID \nmain ( \n VOID \n ) \n \n/*++ \n \nRoutine Description: \n \n This is the main entry routine for this test. \n \nArguments: \n \n None. \n \nReturn Value: \n \n \n Note: \n \n \n--*/ \n{ \n NTSTATUS NtStatus; \n SAM_HANDLE ServerHandle; \n OBJECT_ATTRIBUTES ObjectAttributes; \n \n \n InitializeObjectAttributes( &ObjectAttributes, NULL, 0, 0, NULL ); \n \n \n NtStatus = SamConnect( \n NULL, // ServerName (Local machine) \n &ServerHandle, \n SAM_SERVER_ALL_ACCESS, \n &ObjectAttributes \n ); \n \n DbgPrint("SAM TEST (Tshut): Status of SamConnect() is: 0x%lx\n", NtStatus); \n if (!NT_SUCCESS(NtStatus)) { return; } \n \n \n NtStatus = SamShutdownSamServer( ServerHandle ); \n DbgPrint("SAM TEST (Tshut): Status of SamShutdownSamServer() is: 0x%lx\n", NtStatus); \n if (!NT_SUCCESS(NtStatus)) { return; } \n \n \n // \n // I'm not sure why, but it seems to take another awakening of the \n // server to make it die. \n // \n \n NtStatus = SamConnect( \n NULL, // ServerName (Local machine) \n &ServerHandle, \n SAM_SERVER_ALL_ACCESS, \n &ObjectAttributes \n ); \n \n \n \n return; \n}" (type_identifier) "VOID" (function_declarator) "main ( \n VOID \n )" (identifier) "main" (parameter_list) "( \n VOID \n )" (() "(" (parameter_declaration) "VOID" (type_identifier) "VOID" ()) ")" (comment) "/*++ \n \nRoutine Description: \n \n This is the main entry routine for this test. \n \nArguments: \n \n None. \n \nReturn Value: \n \n \n Note: \n \n \n--*/" (compound_statement) "{ \n NTSTATUS NtStatus; \n SAM_HANDLE ServerHandle; \n OBJECT_ATTRIBUTES ObjectAttributes; \n \n \n InitializeObjectAttributes( &ObjectAttributes, NULL, 0, 0, NULL ); \n \n \n NtStatus = SamConnect( \n NULL, // ServerName (Local machine) \n &ServerHandle, \n SAM_SERVER_ALL_ACCESS, \n &ObjectAttributes \n ); \n \n DbgPrint("SAM TEST (Tshut): Status of SamConnect() is: 0x%lx\n", NtStatus); \n if (!NT_SUCCESS(NtStatus)) { return; } \n \n \n NtStatus = SamShutdownSamServer( ServerHandle ); \n DbgPrint("SAM TEST (Tshut): Status of SamShutdownSamServer() is: 0x%lx\n", NtStatus); \n if (!NT_SUCCESS(NtStatus)) { return; } \n \n \n // \n // I'm not sure why, but it seems to take another awakening of the \n // server to make it die. \n // \n \n NtStatus = SamConnect( \n NULL, // ServerName (Local machine) \n &ServerHandle, \n SAM_SERVER_ALL_ACCESS, \n &ObjectAttributes \n ); \n \n \n \n return; \n}" ({) "{" (declaration) "NTSTATUS NtStatus;" (type_identifier) "NTSTATUS" (identifier) "NtStatus" (;) ";" (declaration) "SAM_HANDLE ServerHandle;" (type_identifier) "SAM_HANDLE" (identifier) "ServerHandle" (;) ";" (declaration) "OBJECT_ATTRIBUTES ObjectAttributes;" (type_identifier) "OBJECT_ATTRIBUTES" (identifier) "ObjectAttributes" (;) ";" (expression_statement) "InitializeObjectAttributes( &ObjectAttributes, NULL, 0, 0, NULL );" (call_expression) "InitializeObjectAttributes( &ObjectAttributes, NULL, 0, 0, NULL )" (identifier) "InitializeObjectAttributes" (argument_list) "( &ObjectAttributes, NULL, 0, 0, NULL )" (() "(" (pointer_expression) "&ObjectAttributes" (&) "&" (identifier) "ObjectAttributes" (,) "," (null) "NULL" (NULL) "NULL" (,) "," (number_literal) "0" (,) "," (number_literal) "0" (,) "," (null) "NULL" (NULL) "NULL" ()) ")" (;) ";" (expression_statement) "NtStatus = SamConnect( \n NULL, // ServerName (Local machine) \n &ServerHandle, \n SAM_SERVER_ALL_ACCESS, \n &ObjectAttributes \n );" (assignment_expression) "NtStatus = SamConnect( \n NULL, // ServerName (Local machine) \n &ServerHandle, \n SAM_SERVER_ALL_ACCESS, \n &ObjectAttributes \n )" (identifier) "NtStatus" (=) "=" (call_expression) "SamConnect( \n NULL, // ServerName (Local machine) \n &ServerHandle, \n SAM_SERVER_ALL_ACCESS, \n &ObjectAttributes \n )" (identifier) "SamConnect" (argument_list) "( \n NULL, // ServerName (Local machine) \n &ServerHandle, \n SAM_SERVER_ALL_ACCESS, \n &ObjectAttributes \n )" (() "(" (null) "NULL" (NULL) "NULL" (,) "," (comment) "// ServerName (Local machine) " (pointer_expression) "&ServerHandle" (&) "&" (identifier) "ServerHandle" (,) "," (identifier) "SAM_SERVER_ALL_ACCESS" (,) "," (pointer_expression) "&ObjectAttributes" (&) "&" (identifier) "ObjectAttributes" ()) ")" (;) ";" (expression_statement) "DbgPrint("SAM TEST (Tshut): Status of SamConnect() is: 0x%lx\n", NtStatus);" (call_expression) "DbgPrint("SAM TEST (Tshut): Status of SamConnect() is: 0x%lx\n", NtStatus)" (identifier) "DbgPrint" (argument_list) "("SAM TEST (Tshut): Status of SamConnect() is: 0x%lx\n", NtStatus)" (() "(" (string_literal) ""SAM TEST (Tshut): Status of SamConnect() is: 0x%lx\n"" (") """ (string_content) "SAM TEST (Tshut): Status of SamConnect() is: 0x%lx" (escape_sequence) "\n" (") """ (,) "," (identifier) "NtStatus" ()) ")" (;) ";" (if_statement) "if (!NT_SUCCESS(NtStatus)) { return; }" (if) "if" (parenthesized_expression) "(!NT_SUCCESS(NtStatus))" (() "(" (unary_expression) "!NT_SUCCESS(NtStatus)" (!) "!" (call_expression) "NT_SUCCESS(NtStatus)" (identifier) "NT_SUCCESS" (argument_list) "(NtStatus)" (() "(" (identifier) "NtStatus" ()) ")" ()) ")" (compound_statement) "{ return; }" ({) "{" (return_statement) "return;" (return) "return" (;) ";" (}) "}" (expression_statement) "NtStatus = SamShutdownSamServer( ServerHandle );" (assignment_expression) "NtStatus = SamShutdownSamServer( ServerHandle )" (identifier) "NtStatus" (=) "=" (call_expression) "SamShutdownSamServer( ServerHandle )" (identifier) "SamShutdownSamServer" (argument_list) "( ServerHandle )" (() "(" (identifier) "ServerHandle" ()) ")" (;) ";" (expression_statement) "DbgPrint("SAM TEST (Tshut): Status of SamShutdownSamServer() is: 0x%lx\n", NtStatus);" (call_expression) "DbgPrint("SAM TEST (Tshut): Status of SamShutdownSamServer() is: 0x%lx\n", NtStatus)" (identifier) "DbgPrint" (argument_list) "("SAM TEST (Tshut): Status of SamShutdownSamServer() is: 0x%lx\n", NtStatus)" (() "(" (string_literal) ""SAM TEST (Tshut): Status of SamShutdownSamServer() is: 0x%lx\n"" (") """ (string_content) "SAM TEST (Tshut): Status of SamShutdownSamServer() is: 0x%lx" (escape_sequence) "\n" (") """ (,) "," (identifier) "NtStatus" ()) ")" (;) ";" (if_statement) "if (!NT_SUCCESS(NtStatus)) { return; }" (if) "if" (parenthesized_expression) "(!NT_SUCCESS(NtStatus))" (() "(" (unary_expression) "!NT_SUCCESS(NtStatus)" (!) "!" (call_expression) "NT_SUCCESS(NtStatus)" (identifier) "NT_SUCCESS" (argument_list) "(NtStatus)" (() "(" (identifier) "NtStatus" ()) ")" ()) ")" (compound_statement) "{ return; }" ({) "{" (return_statement) "return;" (return) "return" (;) ";" (}) "}" (comment) "// " (comment) "// I'm not sure why, but it seems to take another awakening of the " (comment) "// server to make it die. " (comment) "// " (expression_statement) "NtStatus = SamConnect( \n NULL, // ServerName (Local machine) \n &ServerHandle, \n SAM_SERVER_ALL_ACCESS, \n &ObjectAttributes \n );" (assignment_expression) "NtStatus = SamConnect( \n NULL, // ServerName (Local machine) \n &ServerHandle, \n SAM_SERVER_ALL_ACCESS, \n &ObjectAttributes \n )" (identifier) "NtStatus" (=) "=" (call_expression) "SamConnect( \n NULL, // ServerName (Local machine) \n &ServerHandle, \n SAM_SERVER_ALL_ACCESS, \n &ObjectAttributes \n )" (identifier) "SamConnect" (argument_list) "( \n NULL, // ServerName (Local machine) \n &ServerHandle, \n SAM_SERVER_ALL_ACCESS, \n &ObjectAttributes \n )" (() "(" (null) "NULL" (NULL) "NULL" (,) "," (comment) "// ServerName (Local machine) " (pointer_expression) "&ServerHandle" (&) "&" (identifier) "ServerHandle" (,) "," (identifier) "SAM_SERVER_ALL_ACCESS" (,) "," (pointer_expression) "&ObjectAttributes" (&) "&" (identifier) "ObjectAttributes" ()) ")" (;) ";" (return_statement) "return;" (return) "return" (;) ";" (}) "}"
202
0
{"language": "c", "success": true, "metadata": {"lines": 119, "avg_line_length": 24.17, "nodes": 100, "errors": 0, "source_hash": "f4956ff12d837f76972de8f687073189dc030d816e1d13532e2645fb93a4fd48", "categorized_nodes": 76}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#include <nt.h>\r\n", "parent": null, "children": [1, 2], "start_point": {"row": 32, "column": 0}, "end_point": {"row": 33, "column": 0}}, {"id": 1, "type": "#include", "text": "#include", "parent": 0, "children": [], "start_point": {"row": 32, "column": 0}, "end_point": {"row": 32, "column": 8}}, {"id": 2, "type": "system_lib_string", "text": "<nt.h>", "parent": 0, "children": [], "start_point": {"row": 32, "column": 9}, "end_point": {"row": 32, "column": 15}}, {"id": 3, "type": "preproc_include", "text": "#include <ntsam.h>\r\n", "parent": null, "children": [4, 5], "start_point": {"row": 33, "column": 0}, "end_point": {"row": 34, "column": 0}}, {"id": 4, "type": "#include", "text": "#include", "parent": 3, "children": [], "start_point": {"row": 33, "column": 0}, "end_point": {"row": 33, "column": 8}}, {"id": 5, "type": "system_lib_string", "text": "<ntsam.h>", "parent": 3, "children": [], "start_point": {"row": 33, "column": 9}, "end_point": {"row": 33, "column": 18}}, {"id": 6, "type": "preproc_include", "text": "#include <ntrtl.h> // DbgPrint()\r\n", "parent": null, "children": [7, 8], "start_point": {"row": 34, "column": 0}, "end_point": {"row": 35, "column": 0}}, {"id": 7, "type": "#include", "text": "#include", "parent": 6, "children": [], "start_point": {"row": 34, "column": 0}, "end_point": {"row": 34, "column": 8}}, {"id": 8, "type": "system_lib_string", "text": "<ntrtl.h>", "parent": 6, "children": [], "start_point": {"row": 34, "column": 9}, "end_point": {"row": 34, "column": 18}}, {"id": 9, "type": "function_definition", "text": "VOID\r\nmain (\r\n VOID\r\n )\r\n\r\n/*++\r\n\r\nRoutine Description:\r\n\r\n This is the main entry routine for this test.\r\n\r\nArguments:\r\n\r\n None.\r\n\r\nReturn Value:\r\n\r\n\r\n Note:\r\n\r\n\r\n--*/\r\n{\r\n NTSTATUS NtStatus;\r\n SAM_HANDLE ServerHandle;\r\n OBJECT_ATTRIBUTES ObjectAttributes;\r\n\r\n\r\n InitializeObjectAttributes( &ObjectAttributes, NULL, 0, 0, NULL );\r\n\r\n\r\n NtStatus = SamConnect(\r\n NULL, // ServerName (Local machine)\r\n &ServerHandle,\r\n SAM_SERVER_ALL_ACCESS,\r\n &ObjectAttributes\r\n );\r\n\r\n DbgPrint(\"SAM TEST (Tshut): Status of SamConnect() is: 0x%lx\\n\", NtStatus);\r\n if (!NT_SUCCESS(NtStatus)) { return; }\r\n\r\n\r\n NtStatus = SamShutdownSamServer( ServerHandle );\r\n DbgPrint(\"SAM TEST (Tshut): Status of SamShutdownSamServer() is: 0x%lx\\n\", NtStatus);\r\n if (!NT_SUCCESS(NtStatus)) { return; }\r\n\r\n\r\n //\r\n // I'm not sure why, but it seems to take another awakening of the\r\n // server to make it die.\r\n //\r\n\r\n NtStatus = SamConnect(\r\n NULL, // ServerName (Local machine)\r\n &ServerHandle,\r\n SAM_SERVER_ALL_ACCESS,\r\n &ObjectAttributes\r\n );\r\n\r\n\r\n\r\n return;\r\n}", "parent": null, "children": [10, 11], "start_point": {"row": 56, "column": 0}, "end_point": {"row": 118, "column": 1}}, {"id": 10, "type": "type_identifier", "text": "VOID", "parent": 9, "children": [], "start_point": {"row": 56, "column": 0}, "end_point": {"row": 56, "column": 4}}, {"id": 11, "type": "function_declarator", "text": "main (\r\n VOID\r\n )", "parent": 9, "children": [12, 13], "start_point": {"row": 57, "column": 0}, "end_point": {"row": 59, "column": 5}}, {"id": 12, "type": "identifier", "text": "main", "parent": 11, "children": [], "start_point": {"row": 57, "column": 0}, "end_point": {"row": 57, "column": 4}}, {"id": 13, "type": "parameter_list", "text": "(\r\n VOID\r\n )", "parent": 11, "children": [14], "start_point": {"row": 57, "column": 5}, "end_point": {"row": 59, "column": 5}}, {"id": 14, "type": "parameter_declaration", "text": "VOID", "parent": 13, "children": [15], "start_point": {"row": 58, "column": 4}, "end_point": {"row": 58, "column": 8}}, {"id": 15, "type": "type_identifier", "text": "VOID", "parent": 14, "children": [], "start_point": {"row": 58, "column": 4}, "end_point": {"row": 58, "column": 8}}, {"id": 16, "type": "declaration", "text": "NTSTATUS NtStatus;", "parent": 9, "children": [17, 18], "start_point": {"row": 79, "column": 4}, "end_point": {"row": 79, "column": 33}}, {"id": 17, "type": "type_identifier", "text": "NTSTATUS", "parent": 16, "children": [], "start_point": {"row": 79, "column": 4}, "end_point": {"row": 79, "column": 12}}, {"id": 18, "type": "identifier", "text": "NtStatus", "parent": 16, "children": [], "start_point": {"row": 79, "column": 24}, "end_point": {"row": 79, "column": 32}}, {"id": 19, "type": "declaration", "text": "SAM_HANDLE ServerHandle;", "parent": 9, "children": [20, 21], "start_point": {"row": 80, "column": 4}, "end_point": {"row": 80, "column": 37}}, {"id": 20, "type": "type_identifier", "text": "SAM_HANDLE", "parent": 19, "children": [], "start_point": {"row": 80, "column": 4}, "end_point": {"row": 80, "column": 14}}, {"id": 21, "type": "identifier", "text": "ServerHandle", "parent": 19, "children": [], "start_point": {"row": 80, "column": 24}, "end_point": {"row": 80, "column": 36}}, {"id": 22, "type": "declaration", "text": "OBJECT_ATTRIBUTES ObjectAttributes;", "parent": 9, "children": [23, 24], "start_point": {"row": 81, "column": 4}, "end_point": {"row": 81, "column": 41}}, {"id": 23, "type": "type_identifier", "text": "OBJECT_ATTRIBUTES", "parent": 22, "children": [], "start_point": {"row": 81, "column": 4}, "end_point": {"row": 81, "column": 21}}, {"id": 24, "type": "identifier", "text": "ObjectAttributes", "parent": 22, "children": [], "start_point": {"row": 81, "column": 24}, "end_point": {"row": 81, "column": 40}}, {"id": 25, "type": "call_expression", "text": "InitializeObjectAttributes( &ObjectAttributes, NULL, 0, 0, NULL )", "parent": 9, "children": [26, 27], "start_point": {"row": 84, "column": 4}, "end_point": {"row": 84, "column": 69}}, {"id": 26, "type": "identifier", "text": "InitializeObjectAttributes", "parent": 25, "children": [], "start_point": {"row": 84, "column": 4}, "end_point": {"row": 84, "column": 30}}, {"id": 27, "type": "argument_list", "text": "( &ObjectAttributes, NULL, 0, 0, NULL )", "parent": 25, "children": [28, 30, 32, 33, 34], "start_point": {"row": 84, "column": 30}, "end_point": {"row": 84, "column": 69}}, {"id": 28, "type": "pointer_expression", "text": "&ObjectAttributes", "parent": 27, "children": [29], "start_point": {"row": 84, "column": 32}, "end_point": {"row": 84, "column": 49}}, {"id": 29, "type": "identifier", "text": "ObjectAttributes", "parent": 28, "children": [], "start_point": {"row": 84, "column": 33}, "end_point": {"row": 84, "column": 49}}, {"id": 30, "type": "null", "text": "NULL", "parent": 27, "children": [31], "start_point": {"row": 84, "column": 51}, "end_point": {"row": 84, "column": 55}}, {"id": 31, "type": "NULL", "text": "NULL", "parent": 30, "children": [], "start_point": {"row": 84, "column": 51}, "end_point": {"row": 84, "column": 55}}, {"id": 32, "type": "number_literal", "text": "0", "parent": 27, "children": [], "start_point": {"row": 84, "column": 57}, "end_point": {"row": 84, "column": 58}}, {"id": 33, "type": "number_literal", "text": "0", "parent": 27, "children": [], "start_point": {"row": 84, "column": 60}, "end_point": {"row": 84, "column": 61}}, {"id": 34, "type": "null", "text": "NULL", "parent": 27, "children": [35], "start_point": {"row": 84, "column": 63}, "end_point": {"row": 84, "column": 67}}, {"id": 35, "type": "NULL", "text": "NULL", "parent": 34, "children": [], "start_point": {"row": 84, "column": 63}, "end_point": {"row": 84, "column": 67}}, {"id": 36, "type": "assignment_expression", "text": "NtStatus = SamConnect(\r\n NULL, // ServerName (Local machine)\r\n &ServerHandle,\r\n SAM_SERVER_ALL_ACCESS,\r\n &ObjectAttributes\r\n )", "parent": 9, "children": [37, 38, 39], "start_point": {"row": 87, "column": 4}, "end_point": {"row": 92, "column": 19}}, {"id": 37, "type": "identifier", "text": "NtStatus", "parent": 36, "children": [], "start_point": {"row": 87, "column": 4}, "end_point": {"row": 87, "column": 12}}, {"id": 38, "type": "=", "text": "=", "parent": 36, "children": [], "start_point": {"row": 87, "column": 13}, "end_point": {"row": 87, "column": 14}}, {"id": 39, "type": "call_expression", "text": "SamConnect(\r\n NULL, // ServerName (Local machine)\r\n &ServerHandle,\r\n SAM_SERVER_ALL_ACCESS,\r\n &ObjectAttributes\r\n )", "parent": 36, "children": [40, 41], "start_point": {"row": 87, "column": 15}, "end_point": {"row": 92, "column": 19}}, {"id": 40, "type": "identifier", "text": "SamConnect", "parent": 39, "children": [], "start_point": {"row": 87, "column": 15}, "end_point": {"row": 87, "column": 25}}, {"id": 41, "type": "argument_list", "text": "(\r\n NULL, // ServerName (Local machine)\r\n &ServerHandle,\r\n SAM_SERVER_ALL_ACCESS,\r\n &ObjectAttributes\r\n )", "parent": 39, "children": [42, 44, 46, 47], "start_point": {"row": 87, "column": 25}, "end_point": {"row": 92, "column": 19}}, {"id": 42, "type": "null", "text": "NULL", "parent": 41, "children": [43], "start_point": {"row": 88, "column": 18}, "end_point": {"row": 88, "column": 22}}, {"id": 43, "type": "NULL", "text": "NULL", "parent": 42, "children": [], "start_point": {"row": 88, "column": 18}, "end_point": {"row": 88, "column": 22}}, {"id": 44, "type": "pointer_expression", "text": "&ServerHandle", "parent": 41, "children": [45], "start_point": {"row": 89, "column": 18}, "end_point": {"row": 89, "column": 31}}, {"id": 45, "type": "identifier", "text": "ServerHandle", "parent": 44, "children": [], "start_point": {"row": 89, "column": 19}, "end_point": {"row": 89, "column": 31}}, {"id": 46, "type": "identifier", "text": "SAM_SERVER_ALL_ACCESS", "parent": 41, "children": [], "start_point": {"row": 90, "column": 18}, "end_point": {"row": 90, "column": 39}}, {"id": 47, "type": "pointer_expression", "text": "&ObjectAttributes", "parent": 41, "children": [48], "start_point": {"row": 91, "column": 18}, "end_point": {"row": 91, "column": 35}}, {"id": 48, "type": "identifier", "text": "ObjectAttributes", "parent": 47, "children": [], "start_point": {"row": 91, "column": 19}, "end_point": {"row": 91, "column": 35}}, {"id": 49, "type": "call_expression", "text": "DbgPrint(\"SAM TEST (Tshut): Status of SamConnect() is: 0x%lx\\n\", NtStatus)", "parent": 9, "children": [50, 51], "start_point": {"row": 94, "column": 4}, "end_point": {"row": 94, "column": 78}}, {"id": 50, "type": "identifier", "text": "DbgPrint", "parent": 49, "children": [], "start_point": {"row": 94, "column": 4}, "end_point": {"row": 94, "column": 12}}, {"id": 51, "type": "argument_list", "text": "(\"SAM TEST (Tshut): Status of SamConnect() is: 0x%lx\\n\", NtStatus)", "parent": 49, "children": [52, 54], "start_point": {"row": 94, "column": 12}, "end_point": {"row": 94, "column": 78}}, {"id": 52, "type": "string_literal", "text": "\"SAM TEST (Tshut): Status of SamConnect() is: 0x%lx\\n\"", "parent": 51, "children": [53], "start_point": {"row": 94, "column": 13}, "end_point": {"row": 94, "column": 67}}, {"id": 53, "type": "escape_sequence", "text": "\\n", "parent": 52, "children": [], "start_point": {"row": 94, "column": 64}, "end_point": {"row": 94, "column": 66}}, {"id": 54, "type": "identifier", "text": "NtStatus", "parent": 51, "children": [], "start_point": {"row": 94, "column": 69}, "end_point": {"row": 94, "column": 77}}, {"id": 55, "type": "if_statement", "text": "if (!NT_SUCCESS(NtStatus)) { return; }", "parent": 9, "children": [56], "start_point": {"row": 95, "column": 4}, "end_point": {"row": 95, "column": 42}}, {"id": 56, "type": "parenthesized_expression", "text": "(!NT_SUCCESS(NtStatus))", "parent": 55, "children": [57], "start_point": {"row": 95, "column": 7}, "end_point": {"row": 95, "column": 30}}, {"id": 57, "type": "unary_expression", "text": "!NT_SUCCESS(NtStatus)", "parent": 56, "children": [58, 59], "start_point": {"row": 95, "column": 8}, "end_point": {"row": 95, "column": 29}}, {"id": 58, "type": "!", "text": "!", "parent": 57, "children": [], "start_point": {"row": 95, "column": 8}, "end_point": {"row": 95, "column": 9}}, {"id": 59, "type": "call_expression", "text": "NT_SUCCESS(NtStatus)", "parent": 57, "children": [60, 61], "start_point": {"row": 95, "column": 9}, "end_point": {"row": 95, "column": 29}}, {"id": 60, "type": "identifier", "text": "NT_SUCCESS", "parent": 59, "children": [], "start_point": {"row": 95, "column": 9}, "end_point": {"row": 95, "column": 19}}, {"id": 61, "type": "argument_list", "text": "(NtStatus)", "parent": 59, "children": [62], "start_point": {"row": 95, "column": 19}, "end_point": {"row": 95, "column": 29}}, {"id": 62, "type": "identifier", "text": "NtStatus", "parent": 61, "children": [], "start_point": {"row": 95, "column": 20}, "end_point": {"row": 95, "column": 28}}, {"id": 63, "type": "return_statement", "text": "return;", "parent": 55, "children": [], "start_point": {"row": 95, "column": 33}, "end_point": {"row": 95, "column": 40}}, {"id": 64, "type": "assignment_expression", "text": "NtStatus = SamShutdownSamServer( ServerHandle )", "parent": 9, "children": [65, 66, 67], "start_point": {"row": 98, "column": 4}, "end_point": {"row": 98, "column": 51}}, {"id": 65, "type": "identifier", "text": "NtStatus", "parent": 64, "children": [], "start_point": {"row": 98, "column": 4}, "end_point": {"row": 98, "column": 12}}, {"id": 66, "type": "=", "text": "=", "parent": 64, "children": [], "start_point": {"row": 98, "column": 13}, "end_point": {"row": 98, "column": 14}}, {"id": 67, "type": "call_expression", "text": "SamShutdownSamServer( ServerHandle )", "parent": 64, "children": [68, 69], "start_point": {"row": 98, "column": 15}, "end_point": {"row": 98, "column": 51}}, {"id": 68, "type": "identifier", "text": "SamShutdownSamServer", "parent": 67, "children": [], "start_point": {"row": 98, "column": 15}, "end_point": {"row": 98, "column": 35}}, {"id": 69, "type": "argument_list", "text": "( ServerHandle )", "parent": 67, "children": [70], "start_point": {"row": 98, "column": 35}, "end_point": {"row": 98, "column": 51}}, {"id": 70, "type": "identifier", "text": "ServerHandle", "parent": 69, "children": [], "start_point": {"row": 98, "column": 37}, "end_point": {"row": 98, "column": 49}}, {"id": 71, "type": "call_expression", "text": "DbgPrint(\"SAM TEST (Tshut): Status of SamShutdownSamServer() is: 0x%lx\\n\", NtStatus)", "parent": 9, "children": [72, 73], "start_point": {"row": 99, "column": 4}, "end_point": {"row": 99, "column": 88}}, {"id": 72, "type": "identifier", "text": "DbgPrint", "parent": 71, "children": [], "start_point": {"row": 99, "column": 4}, "end_point": {"row": 99, "column": 12}}, {"id": 73, "type": "argument_list", "text": "(\"SAM TEST (Tshut): Status of SamShutdownSamServer() is: 0x%lx\\n\", NtStatus)", "parent": 71, "children": [74, 76], "start_point": {"row": 99, "column": 12}, "end_point": {"row": 99, "column": 88}}, {"id": 74, "type": "string_literal", "text": "\"SAM TEST (Tshut): Status of SamShutdownSamServer() is: 0x%lx\\n\"", "parent": 73, "children": [75], "start_point": {"row": 99, "column": 13}, "end_point": {"row": 99, "column": 77}}, {"id": 75, "type": "escape_sequence", "text": "\\n", "parent": 74, "children": [], "start_point": {"row": 99, "column": 74}, "end_point": {"row": 99, "column": 76}}, {"id": 76, "type": "identifier", "text": "NtStatus", "parent": 73, "children": [], "start_point": {"row": 99, "column": 79}, "end_point": {"row": 99, "column": 87}}, {"id": 77, "type": "if_statement", "text": "if (!NT_SUCCESS(NtStatus)) { return; }", "parent": 9, "children": [78], "start_point": {"row": 100, "column": 4}, "end_point": {"row": 100, "column": 42}}, {"id": 78, "type": "parenthesized_expression", "text": "(!NT_SUCCESS(NtStatus))", "parent": 77, "children": [79], "start_point": {"row": 100, "column": 7}, "end_point": {"row": 100, "column": 30}}, {"id": 79, "type": "unary_expression", "text": "!NT_SUCCESS(NtStatus)", "parent": 78, "children": [80, 81], "start_point": {"row": 100, "column": 8}, "end_point": {"row": 100, "column": 29}}, {"id": 80, "type": "!", "text": "!", "parent": 79, "children": [], "start_point": {"row": 100, "column": 8}, "end_point": {"row": 100, "column": 9}}, {"id": 81, "type": "call_expression", "text": "NT_SUCCESS(NtStatus)", "parent": 79, "children": [82, 83], "start_point": {"row": 100, "column": 9}, "end_point": {"row": 100, "column": 29}}, {"id": 82, "type": "identifier", "text": "NT_SUCCESS", "parent": 81, "children": [], "start_point": {"row": 100, "column": 9}, "end_point": {"row": 100, "column": 19}}, {"id": 83, "type": "argument_list", "text": "(NtStatus)", "parent": 81, "children": [84], "start_point": {"row": 100, "column": 19}, "end_point": {"row": 100, "column": 29}}, {"id": 84, "type": "identifier", "text": "NtStatus", "parent": 83, "children": [], "start_point": {"row": 100, "column": 20}, "end_point": {"row": 100, "column": 28}}, {"id": 85, "type": "return_statement", "text": "return;", "parent": 77, "children": [], "start_point": {"row": 100, "column": 33}, "end_point": {"row": 100, "column": 40}}, {"id": 86, "type": "assignment_expression", "text": "NtStatus = SamConnect(\r\n NULL, // ServerName (Local machine)\r\n &ServerHandle,\r\n SAM_SERVER_ALL_ACCESS,\r\n &ObjectAttributes\r\n )", "parent": 9, "children": [87, 88, 89], "start_point": {"row": 108, "column": 4}, "end_point": {"row": 113, "column": 19}}, {"id": 87, "type": "identifier", "text": "NtStatus", "parent": 86, "children": [], "start_point": {"row": 108, "column": 4}, "end_point": {"row": 108, "column": 12}}, {"id": 88, "type": "=", "text": "=", "parent": 86, "children": [], "start_point": {"row": 108, "column": 13}, "end_point": {"row": 108, "column": 14}}, {"id": 89, "type": "call_expression", "text": "SamConnect(\r\n NULL, // ServerName (Local machine)\r\n &ServerHandle,\r\n SAM_SERVER_ALL_ACCESS,\r\n &ObjectAttributes\r\n )", "parent": 86, "children": [90, 91], "start_point": {"row": 108, "column": 15}, "end_point": {"row": 113, "column": 19}}, {"id": 90, "type": "identifier", "text": "SamConnect", "parent": 89, "children": [], "start_point": {"row": 108, "column": 15}, "end_point": {"row": 108, "column": 25}}, {"id": 91, "type": "argument_list", "text": "(\r\n NULL, // ServerName (Local machine)\r\n &ServerHandle,\r\n SAM_SERVER_ALL_ACCESS,\r\n &ObjectAttributes\r\n )", "parent": 89, "children": [92, 94, 96, 97], "start_point": {"row": 108, "column": 25}, "end_point": {"row": 113, "column": 19}}, {"id": 92, "type": "null", "text": "NULL", "parent": 91, "children": [93], "start_point": {"row": 109, "column": 18}, "end_point": {"row": 109, "column": 22}}, {"id": 93, "type": "NULL", "text": "NULL", "parent": 92, "children": [], "start_point": {"row": 109, "column": 18}, "end_point": {"row": 109, "column": 22}}, {"id": 94, "type": "pointer_expression", "text": "&ServerHandle", "parent": 91, "children": [95], "start_point": {"row": 110, "column": 18}, "end_point": {"row": 110, "column": 31}}, {"id": 95, "type": "identifier", "text": "ServerHandle", "parent": 94, "children": [], "start_point": {"row": 110, "column": 19}, "end_point": {"row": 110, "column": 31}}, {"id": 96, "type": "identifier", "text": "SAM_SERVER_ALL_ACCESS", "parent": 91, "children": [], "start_point": {"row": 111, "column": 18}, "end_point": {"row": 111, "column": 39}}, {"id": 97, "type": "pointer_expression", "text": "&ObjectAttributes", "parent": 91, "children": [98], "start_point": {"row": 112, "column": 18}, "end_point": {"row": 112, "column": 35}}, {"id": 98, "type": "identifier", "text": "ObjectAttributes", "parent": 97, "children": [], "start_point": {"row": 112, "column": 19}, "end_point": {"row": 112, "column": 35}}, {"id": 99, "type": "return_statement", "text": "return;", "parent": 9, "children": [], "start_point": {"row": 117, "column": 4}, "end_point": {"row": 117, "column": 11}}]}, "node_categories": {"declarations": {"functions": [9, 11], "variables": [14, 16, 19, 22], "classes": [], "imports": [0, 1, 3, 4, 6, 7], "modules": [], "enums": []}, "statements": {"expressions": [25, 28, 39, 44, 47, 49, 56, 57, 59, 67, 71, 78, 79, 81, 89, 94, 97], "assignments": [36, 64, 86], "loops": [], "conditionals": [10, 12, 15, 17, 18, 20, 21, 23, 24, 26, 29, 37, 40, 45, 46, 48, 50, 54, 55, 60, 62, 65, 68, 70, 72, 76, 77, 82, 84, 87, 90, 95, 96, 98], "returns": [63, 85, 99], "exceptions": []}, "expressions": {"calls": [], "literals": [2, 5, 8, 32, 33, 52, 74], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [{"node_id": 9, "universal_type": "function", "name": "unknown", "text_snippet": "VOID\r\nmain (\r\n VOID\r\n )\r\n\r\n/*++\r\n\r\nRoutine Description:\r\n\r\n This is the main entry routine "}, {"node_id": 11, "universal_type": "function", "name": "unknown", "text_snippet": "main (\r\n VOID\r\n )"}], "class_declarations": [], "import_statements": [{"node_id": 0, "text": "#include <nt.h>\r\n"}, {"node_id": 1, "text": "#include"}, {"node_id": 3, "text": "#include <ntsam.h>\r\n"}, {"node_id": 4, "text": "#include"}, {"node_id": 6, "text": "#include <ntrtl.h> // DbgPrint()\r\n"}, {"node_id": 7, "text": "#include"}]}, "original_source_code": "/*++\r\n\r\nCopyright (c) 1990 Microsoft Corporation\r\n\r\nModule Name:\r\n\r\n tshut.c\r\n\r\nAbstract:\r\n\r\n This test is used to shut-down a SAM server. This might be useful\r\n for killing SAM without rebooting during development.\r\n\r\nAuthor:\r\n\r\n <NAME> (JimK) 12-July-1991\r\n\r\nEnvironment:\r\n\r\n User Mode - Win32\r\n\r\nRevision History:\r\n\r\n\r\n--*/\r\n\r\n///////////////////////////////////////////////////////////////////////////////\r\n// //\r\n// Includes //\r\n// //\r\n///////////////////////////////////////////////////////////////////////////////\r\n\r\n#include <nt.h>\r\n#include <ntsam.h>\r\n#include <ntrtl.h> // DbgPrint()\r\n\r\n\r\n\r\n\r\n\f\r\n///////////////////////////////////////////////////////////////////////////////\r\n// //\r\n// private service prototypes //\r\n// //\r\n///////////////////////////////////////////////////////////////////////////////\r\n\r\n\r\n\r\n\r\n\f\r\n///////////////////////////////////////////////////////////////////////////////\r\n// //\r\n// Routines //\r\n// //\r\n///////////////////////////////////////////////////////////////////////////////\r\n\r\nVOID\r\nmain (\r\n VOID\r\n )\r\n\r\n/*++\r\n\r\nRoutine Description:\r\n\r\n This is the main entry routine for this test.\r\n\r\nArguments:\r\n\r\n None.\r\n\r\nReturn Value:\r\n\r\n\r\n Note:\r\n\r\n\r\n--*/\r\n{\r\n NTSTATUS NtStatus;\r\n SAM_HANDLE ServerHandle;\r\n OBJECT_ATTRIBUTES ObjectAttributes;\r\n\r\n\r\n InitializeObjectAttributes( &ObjectAttributes, NULL, 0, 0, NULL );\r\n\r\n\r\n NtStatus = SamConnect(\r\n NULL, // ServerName (Local machine)\r\n &ServerHandle,\r\n SAM_SERVER_ALL_ACCESS,\r\n &ObjectAttributes\r\n );\r\n\r\n DbgPrint(\"SAM TEST (Tshut): Status of SamConnect() is: 0x%lx\\n\", NtStatus);\r\n if (!NT_SUCCESS(NtStatus)) { return; }\r\n\r\n\r\n NtStatus = SamShutdownSamServer( ServerHandle );\r\n DbgPrint(\"SAM TEST (Tshut): Status of SamShutdownSamServer() is: 0x%lx\\n\", NtStatus);\r\n if (!NT_SUCCESS(NtStatus)) { return; }\r\n\r\n\r\n //\r\n // I'm not sure why, but it seems to take another awakening of the\r\n // server to make it die.\r\n //\r\n\r\n NtStatus = SamConnect(\r\n NULL, // ServerName (Local machine)\r\n &ServerHandle,\r\n SAM_SERVER_ALL_ACCESS,\r\n &ObjectAttributes\r\n );\r\n\r\n\r\n\r\n return;\r\n}\r\n"}
80,085
c
#ifndef SLIM_NET_CGI_MESSAGE_H #define SLIM_NET_CGI_MESSAGE_H #include "Slim/Net/CGI/Definition.h" #include "Slim/Net/CGI/Exception.h" #include <map> #include <string> using std::map; using std::string; namespace Slim { namespace Net { namespace CGI { typedef struct { BYTE version; BYTE type; BYTE requestIdB1; BYTE requestIdB0; BYTE contentLengthB1; BYTE contentLengthB0; BYTE paddingLength; BYTE reserved; } CGIHeader; typedef struct { BYTE roleB1; BYTE roleB0; BYTE flags; BYTE reserved[5]; } CGIBeginRequestBody; typedef struct { CGIHeader header; CGIBeginRequestBody body; } CGIBeginRequestRecord; typedef struct { BYTE appStatusB3; BYTE appStatusB2; BYTE appStatusB1; BYTE appStatusB0; BYTE protocolStatus; BYTE reserved[3]; } CGIEndRequestBody; typedef struct { CGIHeader header; CGIEndRequestBody body; } CGIEndRequestRecord; typedef struct { BYTE type; BYTE reserved[7]; } CGIUnknownTypeBody; typedef struct { CGIHeader header; CGIUnknownTypeBody body; } CGIUnknownTypeRecord; /* This class handles reading and building the fastcgi messages. * For reading incoming mesages, we pass the input * stream as a param to the constructor rather than to each method. * Methods that build messages use and return internal buffers, so they * dont need a stream. */ class Message { public : Message (); void clear(); /* * */ void process(const BYTE* const buffer); /* * parse FCGI Begin Request Record. */ void processBeginRecord(const CGIBeginRequestBody& body); /* * Interpret the FCGI Message Header. */ void processHeader(const CGIHeader& cgiHeader); /* * Read FCGI name-value pairs from a stream until EOF. Put them * into a map object, storing both as strings. */ void processParams(ByteArray& content, map<string, string>& params); void processStdIn(ByteArray& content, string& params); /* * Build an FCGI Message Header */ void makeHeader(CGIHeader &header); /* * Build an FCGI Message UnknownTypeBodyBody */ void makeEndRequestBody(CGIEndRequestBody& body); /* * Build a name-value body */ void makeNameValue(const char* name, const char* value, BYTE* dest, int& pos); void makeNameValue(string& name, string& value, BYTE* dest, int& pos); /* * Build a FCGI Message UnknownTypeBody */ void makeUnknownTypeBody(CGIUnknownTypeBody& body, int unknownType); /* * Build a FCGI STDIN Body */ void makeStdOutBody(ByteArray& ba); /* * Build an FCGI STDIN Body */ void makeStdErrBody(ByteArray& ba); /* * FCGI Header */ int version; int type; int requestID; // 2 bytes int contentLength; // 2 bytes int paddingLength; /* * FCGI begin request body. */ int role; // 2 bytes int flags; /* * FCGI end request body. */ int appStatus; int protocolStatus; /* * Web server connection */ bool keepConnection; ByteArray data; }; // end class Message } // end namespace CGI } // end namespace Net } // end namespace Slim #endif
24.86
137
(translation_unit) "#ifndef SLIM_NET_CGI_MESSAGE_H\n#define SLIM_NET_CGI_MESSAGE_H\n\n#include "Slim/Net/CGI/Definition.h"\n#include "Slim/Net/CGI/Exception.h"\n#include <map>\n#include <string>\n\nusing std::map;\nusing std::string;\n\nnamespace Slim {\nnamespace Net {\nnamespace CGI {\n\ntypedef struct {\n BYTE version;\n BYTE type;\n BYTE requestIdB1;\n BYTE requestIdB0;\n BYTE contentLengthB1;\n BYTE contentLengthB0;\n BYTE paddingLength;\n BYTE reserved;\n} CGIHeader;\n\ntypedef struct {\n BYTE roleB1;\n BYTE roleB0;\n BYTE flags;\n BYTE reserved[5];\n} CGIBeginRequestBody;\n\ntypedef struct {\n CGIHeader header;\n CGIBeginRequestBody body;\n} CGIBeginRequestRecord;\n\ntypedef struct {\n BYTE appStatusB3;\n BYTE appStatusB2;\n BYTE appStatusB1;\n BYTE appStatusB0;\n BYTE protocolStatus;\n BYTE reserved[3];\n} CGIEndRequestBody;\n\ntypedef struct {\n CGIHeader header;\n CGIEndRequestBody body;\n} CGIEndRequestRecord;\n\ntypedef struct {\n BYTE type;\n BYTE reserved[7];\n} CGIUnknownTypeBody;\n\ntypedef struct {\n CGIHeader header;\n CGIUnknownTypeBody body;\n} CGIUnknownTypeRecord;\n\n\n/* This class handles reading and building the fastcgi messages.\n * For reading incoming mesages, we pass the input\n * stream as a param to the constructor rather than to each method.\n * Methods that build messages use and return internal buffers, so they\n * dont need a stream.\n */\nclass Message {\n\n public :\n Message ();\n void clear();\n\n /*\n *\n */\n void process(const BYTE* const buffer);\n /*\n * parse FCGI Begin Request Record.\n */\n void processBeginRecord(const CGIBeginRequestBody& body);\n\n /*\n * Interpret the FCGI Message Header.\n */\n void processHeader(const CGIHeader& cgiHeader);\n \n /*\n * Read FCGI name-value pairs from a stream until EOF. Put them\n * into a map object, storing both as strings.\n */\n void processParams(ByteArray& content, map<string, string>& params);\n \n void processStdIn(ByteArray& content, string& params);\n\n /*\n * Build an FCGI Message Header\n */\n void makeHeader(CGIHeader &header);\n\n /*\n * Build an FCGI Message UnknownTypeBodyBody\n */\n void makeEndRequestBody(CGIEndRequestBody& body);\n\n /*\n * Build a name-value body\n */\n void makeNameValue(const char* name, const char* value, BYTE* dest, int& pos);\n void makeNameValue(string& name, string& value, BYTE* dest, int& pos);\n\n /*\n * Build a FCGI Message UnknownTypeBody\n */\n void makeUnknownTypeBody(CGIUnknownTypeBody& body, int unknownType);\n \n /*\n * Build a FCGI STDIN Body\n */\n void makeStdOutBody(ByteArray& ba);\n\n /*\n * Build an FCGI STDIN Body \n */\n void makeStdErrBody(ByteArray& ba);\n /*\n * FCGI Header\n */\n int version;\n int type;\n int requestID; // 2 bytes\n int contentLength; // 2 bytes\n int paddingLength;\n\n /*\n * FCGI begin request body.\n */\n int role; // 2 bytes\n int flags;\n\n /*\n * FCGI end request body.\n */\n int appStatus;\n int protocolStatus;\n \n /*\n * Web server connection\n */\n bool keepConnection;\n\n ByteArray data;\n\n}; // end class Message\n\n} // end namespace CGI\n} // end namespace Net\n} // end namespace Slim\n#endif\n" (preproc_ifdef) "#ifndef SLIM_NET_CGI_MESSAGE_H\n#define SLIM_NET_CGI_MESSAGE_H\n\n#include "Slim/Net/CGI/Definition.h"\n#include "Slim/Net/CGI/Exception.h"\n#include <map>\n#include <string>\n\nusing std::map;\nusing std::string;\n\nnamespace Slim {\nnamespace Net {\nnamespace CGI {\n\ntypedef struct {\n BYTE version;\n BYTE type;\n BYTE requestIdB1;\n BYTE requestIdB0;\n BYTE contentLengthB1;\n BYTE contentLengthB0;\n BYTE paddingLength;\n BYTE reserved;\n} CGIHeader;\n\ntypedef struct {\n BYTE roleB1;\n BYTE roleB0;\n BYTE flags;\n BYTE reserved[5];\n} CGIBeginRequestBody;\n\ntypedef struct {\n CGIHeader header;\n CGIBeginRequestBody body;\n} CGIBeginRequestRecord;\n\ntypedef struct {\n BYTE appStatusB3;\n BYTE appStatusB2;\n BYTE appStatusB1;\n BYTE appStatusB0;\n BYTE protocolStatus;\n BYTE reserved[3];\n} CGIEndRequestBody;\n\ntypedef struct {\n CGIHeader header;\n CGIEndRequestBody body;\n} CGIEndRequestRecord;\n\ntypedef struct {\n BYTE type;\n BYTE reserved[7];\n} CGIUnknownTypeBody;\n\ntypedef struct {\n CGIHeader header;\n CGIUnknownTypeBody body;\n} CGIUnknownTypeRecord;\n\n\n/* This class handles reading and building the fastcgi messages.\n * For reading incoming mesages, we pass the input\n * stream as a param to the constructor rather than to each method.\n * Methods that build messages use and return internal buffers, so they\n * dont need a stream.\n */\nclass Message {\n\n public :\n Message ();\n void clear();\n\n /*\n *\n */\n void process(const BYTE* const buffer);\n /*\n * parse FCGI Begin Request Record.\n */\n void processBeginRecord(const CGIBeginRequestBody& body);\n\n /*\n * Interpret the FCGI Message Header.\n */\n void processHeader(const CGIHeader& cgiHeader);\n \n /*\n * Read FCGI name-value pairs from a stream until EOF. Put them\n * into a map object, storing both as strings.\n */\n void processParams(ByteArray& content, map<string, string>& params);\n \n void processStdIn(ByteArray& content, string& params);\n\n /*\n * Build an FCGI Message Header\n */\n void makeHeader(CGIHeader &header);\n\n /*\n * Build an FCGI Message UnknownTypeBodyBody\n */\n void makeEndRequestBody(CGIEndRequestBody& body);\n\n /*\n * Build a name-value body\n */\n void makeNameValue(const char* name, const char* value, BYTE* dest, int& pos);\n void makeNameValue(string& name, string& value, BYTE* dest, int& pos);\n\n /*\n * Build a FCGI Message UnknownTypeBody\n */\n void makeUnknownTypeBody(CGIUnknownTypeBody& body, int unknownType);\n \n /*\n * Build a FCGI STDIN Body\n */\n void makeStdOutBody(ByteArray& ba);\n\n /*\n * Build an FCGI STDIN Body \n */\n void makeStdErrBody(ByteArray& ba);\n /*\n * FCGI Header\n */\n int version;\n int type;\n int requestID; // 2 bytes\n int contentLength; // 2 bytes\n int paddingLength;\n\n /*\n * FCGI begin request body.\n */\n int role; // 2 bytes\n int flags;\n\n /*\n * FCGI end request body.\n */\n int appStatus;\n int protocolStatus;\n \n /*\n * Web server connection\n */\n bool keepConnection;\n\n ByteArray data;\n\n}; // end class Message\n\n} // end namespace CGI\n} // end namespace Net\n} // end namespace Slim\n#endif" (#ifndef) "#ifndef" (identifier) "SLIM_NET_CGI_MESSAGE_H" (preproc_def) "#define SLIM_NET_CGI_MESSAGE_H\n" (#define) "#define" (identifier) "SLIM_NET_CGI_MESSAGE_H" (preproc_include) "#include "Slim/Net/CGI/Definition.h"\n" (#include) "#include" (string_literal) ""Slim/Net/CGI/Definition.h"" (") """ (string_content) "Slim/Net/CGI/Definition.h" (") """ (preproc_include) "#include "Slim/Net/CGI/Exception.h"\n" (#include) "#include" (string_literal) ""Slim/Net/CGI/Exception.h"" (") """ (string_content) "Slim/Net/CGI/Exception.h" (") """ (preproc_include) "#include <map>\n" (#include) "#include" (system_lib_string) "<map>" (preproc_include) "#include <string>\n" (#include) "#include" (system_lib_string) "<string>" (declaration) "using std::map;" (type_identifier) "using" (identifier) "std" (ERROR) "::map" (:) ":" (:) ":" (identifier) "map" (;) ";" (declaration) "using std::string;" (type_identifier) "using" (ERROR) "std::" (identifier) "std" (:) ":" (:) ":" (identifier) "string" (;) ";" (function_definition) "namespace Slim {\nnamespace Net {\nnamespace CGI {\n\ntypedef struct {\n BYTE version;\n BYTE type;\n BYTE requestIdB1;\n BYTE requestIdB0;\n BYTE contentLengthB1;\n BYTE contentLengthB0;\n BYTE paddingLength;\n BYTE reserved;\n} CGIHeader;\n\ntypedef struct {\n BYTE roleB1;\n BYTE roleB0;\n BYTE flags;\n BYTE reserved[5];\n} CGIBeginRequestBody;\n\ntypedef struct {\n CGIHeader header;\n CGIBeginRequestBody body;\n} CGIBeginRequestRecord;\n\ntypedef struct {\n BYTE appStatusB3;\n BYTE appStatusB2;\n BYTE appStatusB1;\n BYTE appStatusB0;\n BYTE protocolStatus;\n BYTE reserved[3];\n} CGIEndRequestBody;\n\ntypedef struct {\n CGIHeader header;\n CGIEndRequestBody body;\n} CGIEndRequestRecord;\n\ntypedef struct {\n BYTE type;\n BYTE reserved[7];\n} CGIUnknownTypeBody;\n\ntypedef struct {\n CGIHeader header;\n CGIUnknownTypeBody body;\n} CGIUnknownTypeRecord;\n\n\n/* This class handles reading and building the fastcgi messages.\n * For reading incoming mesages, we pass the input\n * stream as a param to the constructor rather than to each method.\n * Methods that build messages use and return internal buffers, so they\n * dont need a stream.\n */\nclass Message {\n\n public :\n Message ();\n void clear();\n\n /*\n *\n */\n void process(const BYTE* const buffer);\n /*\n * parse FCGI Begin Request Record.\n */\n void processBeginRecord(const CGIBeginRequestBody& body);\n\n /*\n * Interpret the FCGI Message Header.\n */\n void processHeader(const CGIHeader& cgiHeader);\n \n /*\n * Read FCGI name-value pairs from a stream until EOF. Put them\n * into a map object, storing both as strings.\n */\n void processParams(ByteArray& content, map<string, string>& params);\n \n void processStdIn(ByteArray& content, string& params);\n\n /*\n * Build an FCGI Message Header\n */\n void makeHeader(CGIHeader &header);\n\n /*\n * Build an FCGI Message UnknownTypeBodyBody\n */\n void makeEndRequestBody(CGIEndRequestBody& body);\n\n /*\n * Build a name-value body\n */\n void makeNameValue(const char* name, const char* value, BYTE* dest, int& pos);\n void makeNameValue(string& name, string& value, BYTE* dest, int& pos);\n\n /*\n * Build a FCGI Message UnknownTypeBody\n */\n void makeUnknownTypeBody(CGIUnknownTypeBody& body, int unknownType);\n \n /*\n * Build a FCGI STDIN Body\n */\n void makeStdOutBody(ByteArray& ba);\n\n /*\n * Build an FCGI STDIN Body \n */\n void makeStdErrBody(ByteArray& ba);\n /*\n * FCGI Header\n */\n int version;\n int type;\n int requestID; // 2 bytes\n int contentLength; // 2 bytes\n int paddingLength;\n\n /*\n * FCGI begin request body.\n */\n int role; // 2 bytes\n int flags;\n\n /*\n * FCGI end request body.\n */\n int appStatus;\n int protocolStatus;\n \n /*\n * Web server connection\n */\n bool keepConnection;\n\n ByteArray data;\n\n}; // end class Message\n\n} // end namespace CGI\n} // end namespace Net\n}" (type_identifier) "namespace" (identifier) "Slim" (compound_statement) "{\nnamespace Net {\nnamespace CGI {\n\ntypedef struct {\n BYTE version;\n BYTE type;\n BYTE requestIdB1;\n BYTE requestIdB0;\n BYTE contentLengthB1;\n BYTE contentLengthB0;\n BYTE paddingLength;\n BYTE reserved;\n} CGIHeader;\n\ntypedef struct {\n BYTE roleB1;\n BYTE roleB0;\n BYTE flags;\n BYTE reserved[5];\n} CGIBeginRequestBody;\n\ntypedef struct {\n CGIHeader header;\n CGIBeginRequestBody body;\n} CGIBeginRequestRecord;\n\ntypedef struct {\n BYTE appStatusB3;\n BYTE appStatusB2;\n BYTE appStatusB1;\n BYTE appStatusB0;\n BYTE protocolStatus;\n BYTE reserved[3];\n} CGIEndRequestBody;\n\ntypedef struct {\n CGIHeader header;\n CGIEndRequestBody body;\n} CGIEndRequestRecord;\n\ntypedef struct {\n BYTE type;\n BYTE reserved[7];\n} CGIUnknownTypeBody;\n\ntypedef struct {\n CGIHeader header;\n CGIUnknownTypeBody body;\n} CGIUnknownTypeRecord;\n\n\n/* This class handles reading and building the fastcgi messages.\n * For reading incoming mesages, we pass the input\n * stream as a param to the constructor rather than to each method.\n * Methods that build messages use and return internal buffers, so they\n * dont need a stream.\n */\nclass Message {\n\n public :\n Message ();\n void clear();\n\n /*\n *\n */\n void process(const BYTE* const buffer);\n /*\n * parse FCGI Begin Request Record.\n */\n void processBeginRecord(const CGIBeginRequestBody& body);\n\n /*\n * Interpret the FCGI Message Header.\n */\n void processHeader(const CGIHeader& cgiHeader);\n \n /*\n * Read FCGI name-value pairs from a stream until EOF. Put them\n * into a map object, storing both as strings.\n */\n void processParams(ByteArray& content, map<string, string>& params);\n \n void processStdIn(ByteArray& content, string& params);\n\n /*\n * Build an FCGI Message Header\n */\n void makeHeader(CGIHeader &header);\n\n /*\n * Build an FCGI Message UnknownTypeBodyBody\n */\n void makeEndRequestBody(CGIEndRequestBody& body);\n\n /*\n * Build a name-value body\n */\n void makeNameValue(const char* name, const char* value, BYTE* dest, int& pos);\n void makeNameValue(string& name, string& value, BYTE* dest, int& pos);\n\n /*\n * Build a FCGI Message UnknownTypeBody\n */\n void makeUnknownTypeBody(CGIUnknownTypeBody& body, int unknownType);\n \n /*\n * Build a FCGI STDIN Body\n */\n void makeStdOutBody(ByteArray& ba);\n\n /*\n * Build an FCGI STDIN Body \n */\n void makeStdErrBody(ByteArray& ba);\n /*\n * FCGI Header\n */\n int version;\n int type;\n int requestID; // 2 bytes\n int contentLength; // 2 bytes\n int paddingLength;\n\n /*\n * FCGI begin request body.\n */\n int role; // 2 bytes\n int flags;\n\n /*\n * FCGI end request body.\n */\n int appStatus;\n int protocolStatus;\n \n /*\n * Web server connection\n */\n bool keepConnection;\n\n ByteArray data;\n\n}; // end class Message\n\n} // end namespace CGI\n} // end namespace Net\n}" ({) "{" (function_definition) "namespace Net {\nnamespace CGI {\n\ntypedef struct {\n BYTE version;\n BYTE type;\n BYTE requestIdB1;\n BYTE requestIdB0;\n BYTE contentLengthB1;\n BYTE contentLengthB0;\n BYTE paddingLength;\n BYTE reserved;\n} CGIHeader;\n\ntypedef struct {\n BYTE roleB1;\n BYTE roleB0;\n BYTE flags;\n BYTE reserved[5];\n} CGIBeginRequestBody;\n\ntypedef struct {\n CGIHeader header;\n CGIBeginRequestBody body;\n} CGIBeginRequestRecord;\n\ntypedef struct {\n BYTE appStatusB3;\n BYTE appStatusB2;\n BYTE appStatusB1;\n BYTE appStatusB0;\n BYTE protocolStatus;\n BYTE reserved[3];\n} CGIEndRequestBody;\n\ntypedef struct {\n CGIHeader header;\n CGIEndRequestBody body;\n} CGIEndRequestRecord;\n\ntypedef struct {\n BYTE type;\n BYTE reserved[7];\n} CGIUnknownTypeBody;\n\ntypedef struct {\n CGIHeader header;\n CGIUnknownTypeBody body;\n} CGIUnknownTypeRecord;\n\n\n/* This class handles reading and building the fastcgi messages.\n * For reading incoming mesages, we pass the input\n * stream as a param to the constructor rather than to each method.\n * Methods that build messages use and return internal buffers, so they\n * dont need a stream.\n */\nclass Message {\n\n public :\n Message ();\n void clear();\n\n /*\n *\n */\n void process(const BYTE* const buffer);\n /*\n * parse FCGI Begin Request Record.\n */\n void processBeginRecord(const CGIBeginRequestBody& body);\n\n /*\n * Interpret the FCGI Message Header.\n */\n void processHeader(const CGIHeader& cgiHeader);\n \n /*\n * Read FCGI name-value pairs from a stream until EOF. Put them\n * into a map object, storing both as strings.\n */\n void processParams(ByteArray& content, map<string, string>& params);\n \n void processStdIn(ByteArray& content, string& params);\n\n /*\n * Build an FCGI Message Header\n */\n void makeHeader(CGIHeader &header);\n\n /*\n * Build an FCGI Message UnknownTypeBodyBody\n */\n void makeEndRequestBody(CGIEndRequestBody& body);\n\n /*\n * Build a name-value body\n */\n void makeNameValue(const char* name, const char* value, BYTE* dest, int& pos);\n void makeNameValue(string& name, string& value, BYTE* dest, int& pos);\n\n /*\n * Build a FCGI Message UnknownTypeBody\n */\n void makeUnknownTypeBody(CGIUnknownTypeBody& body, int unknownType);\n \n /*\n * Build a FCGI STDIN Body\n */\n void makeStdOutBody(ByteArray& ba);\n\n /*\n * Build an FCGI STDIN Body \n */\n void makeStdErrBody(ByteArray& ba);\n /*\n * FCGI Header\n */\n int version;\n int type;\n int requestID; // 2 bytes\n int contentLength; // 2 bytes\n int paddingLength;\n\n /*\n * FCGI begin request body.\n */\n int role; // 2 bytes\n int flags;\n\n /*\n * FCGI end request body.\n */\n int appStatus;\n int protocolStatus;\n \n /*\n * Web server connection\n */\n bool keepConnection;\n\n ByteArray data;\n\n}; // end class Message\n\n} // end namespace CGI\n}" (type_identifier) "namespace" (identifier) "Net" (compound_statement) "{\nnamespace CGI {\n\ntypedef struct {\n BYTE version;\n BYTE type;\n BYTE requestIdB1;\n BYTE requestIdB0;\n BYTE contentLengthB1;\n BYTE contentLengthB0;\n BYTE paddingLength;\n BYTE reserved;\n} CGIHeader;\n\ntypedef struct {\n BYTE roleB1;\n BYTE roleB0;\n BYTE flags;\n BYTE reserved[5];\n} CGIBeginRequestBody;\n\ntypedef struct {\n CGIHeader header;\n CGIBeginRequestBody body;\n} CGIBeginRequestRecord;\n\ntypedef struct {\n BYTE appStatusB3;\n BYTE appStatusB2;\n BYTE appStatusB1;\n BYTE appStatusB0;\n BYTE protocolStatus;\n BYTE reserved[3];\n} CGIEndRequestBody;\n\ntypedef struct {\n CGIHeader header;\n CGIEndRequestBody body;\n} CGIEndRequestRecord;\n\ntypedef struct {\n BYTE type;\n BYTE reserved[7];\n} CGIUnknownTypeBody;\n\ntypedef struct {\n CGIHeader header;\n CGIUnknownTypeBody body;\n} CGIUnknownTypeRecord;\n\n\n/* This class handles reading and building the fastcgi messages.\n * For reading incoming mesages, we pass the input\n * stream as a param to the constructor rather than to each method.\n * Methods that build messages use and return internal buffers, so they\n * dont need a stream.\n */\nclass Message {\n\n public :\n Message ();\n void clear();\n\n /*\n *\n */\n void process(const BYTE* const buffer);\n /*\n * parse FCGI Begin Request Record.\n */\n void processBeginRecord(const CGIBeginRequestBody& body);\n\n /*\n * Interpret the FCGI Message Header.\n */\n void processHeader(const CGIHeader& cgiHeader);\n \n /*\n * Read FCGI name-value pairs from a stream until EOF. Put them\n * into a map object, storing both as strings.\n */\n void processParams(ByteArray& content, map<string, string>& params);\n \n void processStdIn(ByteArray& content, string& params);\n\n /*\n * Build an FCGI Message Header\n */\n void makeHeader(CGIHeader &header);\n\n /*\n * Build an FCGI Message UnknownTypeBodyBody\n */\n void makeEndRequestBody(CGIEndRequestBody& body);\n\n /*\n * Build a name-value body\n */\n void makeNameValue(const char* name, const char* value, BYTE* dest, int& pos);\n void makeNameValue(string& name, string& value, BYTE* dest, int& pos);\n\n /*\n * Build a FCGI Message UnknownTypeBody\n */\n void makeUnknownTypeBody(CGIUnknownTypeBody& body, int unknownType);\n \n /*\n * Build a FCGI STDIN Body\n */\n void makeStdOutBody(ByteArray& ba);\n\n /*\n * Build an FCGI STDIN Body \n */\n void makeStdErrBody(ByteArray& ba);\n /*\n * FCGI Header\n */\n int version;\n int type;\n int requestID; // 2 bytes\n int contentLength; // 2 bytes\n int paddingLength;\n\n /*\n * FCGI begin request body.\n */\n int role; // 2 bytes\n int flags;\n\n /*\n * FCGI end request body.\n */\n int appStatus;\n int protocolStatus;\n \n /*\n * Web server connection\n */\n bool keepConnection;\n\n ByteArray data;\n\n}; // end class Message\n\n} // end namespace CGI\n}" ({) "{" (function_definition) "namespace CGI {\n\ntypedef struct {\n BYTE version;\n BYTE type;\n BYTE requestIdB1;\n BYTE requestIdB0;\n BYTE contentLengthB1;\n BYTE contentLengthB0;\n BYTE paddingLength;\n BYTE reserved;\n} CGIHeader;\n\ntypedef struct {\n BYTE roleB1;\n BYTE roleB0;\n BYTE flags;\n BYTE reserved[5];\n} CGIBeginRequestBody;\n\ntypedef struct {\n CGIHeader header;\n CGIBeginRequestBody body;\n} CGIBeginRequestRecord;\n\ntypedef struct {\n BYTE appStatusB3;\n BYTE appStatusB2;\n BYTE appStatusB1;\n BYTE appStatusB0;\n BYTE protocolStatus;\n BYTE reserved[3];\n} CGIEndRequestBody;\n\ntypedef struct {\n CGIHeader header;\n CGIEndRequestBody body;\n} CGIEndRequestRecord;\n\ntypedef struct {\n BYTE type;\n BYTE reserved[7];\n} CGIUnknownTypeBody;\n\ntypedef struct {\n CGIHeader header;\n CGIUnknownTypeBody body;\n} CGIUnknownTypeRecord;\n\n\n/* This class handles reading and building the fastcgi messages.\n * For reading incoming mesages, we pass the input\n * stream as a param to the constructor rather than to each method.\n * Methods that build messages use and return internal buffers, so they\n * dont need a stream.\n */\nclass Message {\n\n public :\n Message ();\n void clear();\n\n /*\n *\n */\n void process(const BYTE* const buffer);\n /*\n * parse FCGI Begin Request Record.\n */\n void processBeginRecord(const CGIBeginRequestBody& body);\n\n /*\n * Interpret the FCGI Message Header.\n */\n void processHeader(const CGIHeader& cgiHeader);\n \n /*\n * Read FCGI name-value pairs from a stream until EOF. Put them\n * into a map object, storing both as strings.\n */\n void processParams(ByteArray& content, map<string, string>& params);\n \n void processStdIn(ByteArray& content, string& params);\n\n /*\n * Build an FCGI Message Header\n */\n void makeHeader(CGIHeader &header);\n\n /*\n * Build an FCGI Message UnknownTypeBodyBody\n */\n void makeEndRequestBody(CGIEndRequestBody& body);\n\n /*\n * Build a name-value body\n */\n void makeNameValue(const char* name, const char* value, BYTE* dest, int& pos);\n void makeNameValue(string& name, string& value, BYTE* dest, int& pos);\n\n /*\n * Build a FCGI Message UnknownTypeBody\n */\n void makeUnknownTypeBody(CGIUnknownTypeBody& body, int unknownType);\n \n /*\n * Build a FCGI STDIN Body\n */\n void makeStdOutBody(ByteArray& ba);\n\n /*\n * Build an FCGI STDIN Body \n */\n void makeStdErrBody(ByteArray& ba);\n /*\n * FCGI Header\n */\n int version;\n int type;\n int requestID; // 2 bytes\n int contentLength; // 2 bytes\n int paddingLength;\n\n /*\n * FCGI begin request body.\n */\n int role; // 2 bytes\n int flags;\n\n /*\n * FCGI end request body.\n */\n int appStatus;\n int protocolStatus;\n \n /*\n * Web server connection\n */\n bool keepConnection;\n\n ByteArray data;\n\n}; // end class Message\n\n}" (type_identifier) "namespace" (identifier) "CGI" (compound_statement) "{\n\ntypedef struct {\n BYTE version;\n BYTE type;\n BYTE requestIdB1;\n BYTE requestIdB0;\n BYTE contentLengthB1;\n BYTE contentLengthB0;\n BYTE paddingLength;\n BYTE reserved;\n} CGIHeader;\n\ntypedef struct {\n BYTE roleB1;\n BYTE roleB0;\n BYTE flags;\n BYTE reserved[5];\n} CGIBeginRequestBody;\n\ntypedef struct {\n CGIHeader header;\n CGIBeginRequestBody body;\n} CGIBeginRequestRecord;\n\ntypedef struct {\n BYTE appStatusB3;\n BYTE appStatusB2;\n BYTE appStatusB1;\n BYTE appStatusB0;\n BYTE protocolStatus;\n BYTE reserved[3];\n} CGIEndRequestBody;\n\ntypedef struct {\n CGIHeader header;\n CGIEndRequestBody body;\n} CGIEndRequestRecord;\n\ntypedef struct {\n BYTE type;\n BYTE reserved[7];\n} CGIUnknownTypeBody;\n\ntypedef struct {\n CGIHeader header;\n CGIUnknownTypeBody body;\n} CGIUnknownTypeRecord;\n\n\n/* This class handles reading and building the fastcgi messages.\n * For reading incoming mesages, we pass the input\n * stream as a param to the constructor rather than to each method.\n * Methods that build messages use and return internal buffers, so they\n * dont need a stream.\n */\nclass Message {\n\n public :\n Message ();\n void clear();\n\n /*\n *\n */\n void process(const BYTE* const buffer);\n /*\n * parse FCGI Begin Request Record.\n */\n void processBeginRecord(const CGIBeginRequestBody& body);\n\n /*\n * Interpret the FCGI Message Header.\n */\n void processHeader(const CGIHeader& cgiHeader);\n \n /*\n * Read FCGI name-value pairs from a stream until EOF. Put them\n * into a map object, storing both as strings.\n */\n void processParams(ByteArray& content, map<string, string>& params);\n \n void processStdIn(ByteArray& content, string& params);\n\n /*\n * Build an FCGI Message Header\n */\n void makeHeader(CGIHeader &header);\n\n /*\n * Build an FCGI Message UnknownTypeBodyBody\n */\n void makeEndRequestBody(CGIEndRequestBody& body);\n\n /*\n * Build a name-value body\n */\n void makeNameValue(const char* name, const char* value, BYTE* dest, int& pos);\n void makeNameValue(string& name, string& value, BYTE* dest, int& pos);\n\n /*\n * Build a FCGI Message UnknownTypeBody\n */\n void makeUnknownTypeBody(CGIUnknownTypeBody& body, int unknownType);\n \n /*\n * Build a FCGI STDIN Body\n */\n void makeStdOutBody(ByteArray& ba);\n\n /*\n * Build an FCGI STDIN Body \n */\n void makeStdErrBody(ByteArray& ba);\n /*\n * FCGI Header\n */\n int version;\n int type;\n int requestID; // 2 bytes\n int contentLength; // 2 bytes\n int paddingLength;\n\n /*\n * FCGI begin request body.\n */\n int role; // 2 bytes\n int flags;\n\n /*\n * FCGI end request body.\n */\n int appStatus;\n int protocolStatus;\n \n /*\n * Web server connection\n */\n bool keepConnection;\n\n ByteArray data;\n\n}; // end class Message\n\n}" ({) "{" (type_definition) "typedef struct {\n BYTE version;\n BYTE type;\n BYTE requestIdB1;\n BYTE requestIdB0;\n BYTE contentLengthB1;\n BYTE contentLengthB0;\n BYTE paddingLength;\n BYTE reserved;\n} CGIHeader;" (typedef) "typedef" (struct_specifier) "struct {\n BYTE version;\n BYTE type;\n BYTE requestIdB1;\n BYTE requestIdB0;\n BYTE contentLengthB1;\n BYTE contentLengthB0;\n BYTE paddingLength;\n BYTE reserved;\n}" (struct) "struct" (field_declaration_list) "{\n BYTE version;\n BYTE type;\n BYTE requestIdB1;\n BYTE requestIdB0;\n BYTE contentLengthB1;\n BYTE contentLengthB0;\n BYTE paddingLength;\n BYTE reserved;\n}" ({) "{" (field_declaration) "BYTE version;" (type_identifier) "BYTE" (field_identifier) "version" (;) ";" (field_declaration) "BYTE type;" (type_identifier) "BYTE" (field_identifier) "type" (;) ";" (field_declaration) "BYTE requestIdB1;" (type_identifier) "BYTE" (field_identifier) "requestIdB1" (;) ";" (field_declaration) "BYTE requestIdB0;" (type_identifier) "BYTE" (field_identifier) "requestIdB0" (;) ";" (field_declaration) "BYTE contentLengthB1;" (type_identifier) "BYTE" (field_identifier) "contentLengthB1" (;) ";" (field_declaration) "BYTE contentLengthB0;" (type_identifier) "BYTE" (field_identifier) "contentLengthB0" (;) ";" (field_declaration) "BYTE paddingLength;" (type_identifier) "BYTE" (field_identifier) "paddingLength" (;) ";" (field_declaration) "BYTE reserved;" (type_identifier) "BYTE" (field_identifier) "reserved" (;) ";" (}) "}" (type_identifier) "CGIHeader" (;) ";" (type_definition) "typedef struct {\n BYTE roleB1;\n BYTE roleB0;\n BYTE flags;\n BYTE reserved[5];\n} CGIBeginRequestBody;" (typedef) "typedef" (struct_specifier) "struct {\n BYTE roleB1;\n BYTE roleB0;\n BYTE flags;\n BYTE reserved[5];\n}" (struct) "struct" (field_declaration_list) "{\n BYTE roleB1;\n BYTE roleB0;\n BYTE flags;\n BYTE reserved[5];\n}" ({) "{" (field_declaration) "BYTE roleB1;" (type_identifier) "BYTE" (field_identifier) "roleB1" (;) ";" (field_declaration) "BYTE roleB0;" (type_identifier) "BYTE" (field_identifier) "roleB0" (;) ";" (field_declaration) "BYTE flags;" (type_identifier) "BYTE" (field_identifier) "flags" (;) ";" (field_declaration) "BYTE reserved[5];" (type_identifier) "BYTE" (array_declarator) "reserved[5]" (field_identifier) "reserved" ([) "[" (number_literal) "5" (]) "]" (;) ";" (}) "}" (type_identifier) "CGIBeginRequestBody" (;) ";" (type_definition) "typedef struct {\n CGIHeader header;\n CGIBeginRequestBody body;\n} CGIBeginRequestRecord;" (typedef) "typedef" (struct_specifier) "struct {\n CGIHeader header;\n CGIBeginRequestBody body;\n}" (struct) "struct" (field_declaration_list) "{\n CGIHeader header;\n CGIBeginRequestBody body;\n}" ({) "{" (field_declaration) "CGIHeader header;" (type_identifier) "CGIHeader" (field_identifier) "header" (;) ";" (field_declaration) "CGIBeginRequestBody body;" (type_identifier) "CGIBeginRequestBody" (field_identifier) "body" (;) ";" (}) "}" (type_identifier) "CGIBeginRequestRecord" (;) ";" (type_definition) "typedef struct {\n BYTE appStatusB3;\n BYTE appStatusB2;\n BYTE appStatusB1;\n BYTE appStatusB0;\n BYTE protocolStatus;\n BYTE reserved[3];\n} CGIEndRequestBody;" (typedef) "typedef" (struct_specifier) "struct {\n BYTE appStatusB3;\n BYTE appStatusB2;\n BYTE appStatusB1;\n BYTE appStatusB0;\n BYTE protocolStatus;\n BYTE reserved[3];\n}" (struct) "struct" (field_declaration_list) "{\n BYTE appStatusB3;\n BYTE appStatusB2;\n BYTE appStatusB1;\n BYTE appStatusB0;\n BYTE protocolStatus;\n BYTE reserved[3];\n}" ({) "{" (field_declaration) "BYTE appStatusB3;" (type_identifier) "BYTE" (field_identifier) "appStatusB3" (;) ";" (field_declaration) "BYTE appStatusB2;" (type_identifier) "BYTE" (field_identifier) "appStatusB2" (;) ";" (field_declaration) "BYTE appStatusB1;" (type_identifier) "BYTE" (field_identifier) "appStatusB1" (;) ";" (field_declaration) "BYTE appStatusB0;" (type_identifier) "BYTE" (field_identifier) "appStatusB0" (;) ";" (field_declaration) "BYTE protocolStatus;" (type_identifier) "BYTE" (field_identifier) "protocolStatus" (;) ";" (field_declaration) "BYTE reserved[3];" (type_identifier) "BYTE" (array_declarator) "reserved[3]" (field_identifier) "reserved" ([) "[" (number_literal) "3" (]) "]" (;) ";" (}) "}" (type_identifier) "CGIEndRequestBody" (;) ";" (type_definition) "typedef struct {\n CGIHeader header;\n CGIEndRequestBody body;\n} CGIEndRequestRecord;" (typedef) "typedef" (struct_specifier) "struct {\n CGIHeader header;\n CGIEndRequestBody body;\n}" (struct) "struct" (field_declaration_list) "{\n CGIHeader header;\n CGIEndRequestBody body;\n}" ({) "{" (field_declaration) "CGIHeader header;" (type_identifier) "CGIHeader" (field_identifier) "header" (;) ";" (field_declaration) "CGIEndRequestBody body;" (type_identifier) "CGIEndRequestBody" (field_identifier) "body" (;) ";" (}) "}" (type_identifier) "CGIEndRequestRecord" (;) ";" (type_definition) "typedef struct {\n BYTE type;\n BYTE reserved[7];\n} CGIUnknownTypeBody;" (typedef) "typedef" (struct_specifier) "struct {\n BYTE type;\n BYTE reserved[7];\n}" (struct) "struct" (field_declaration_list) "{\n BYTE type;\n BYTE reserved[7];\n}" ({) "{" (field_declaration) "BYTE type;" (type_identifier) "BYTE" (field_identifier) "type" (;) ";" (field_declaration) "BYTE reserved[7];" (type_identifier) "BYTE" (array_declarator) "reserved[7]" (field_identifier) "reserved" ([) "[" (number_literal) "7" (]) "]" (;) ";" (}) "}" (type_identifier) "CGIUnknownTypeBody" (;) ";" (type_definition) "typedef struct {\n CGIHeader header;\n CGIUnknownTypeBody body;\n} CGIUnknownTypeRecord;" (typedef) "typedef" (struct_specifier) "struct {\n CGIHeader header;\n CGIUnknownTypeBody body;\n}" (struct) "struct" (field_declaration_list) "{\n CGIHeader header;\n CGIUnknownTypeBody body;\n}" ({) "{" (field_declaration) "CGIHeader header;" (type_identifier) "CGIHeader" (field_identifier) "header" (;) ";" (field_declaration) "CGIUnknownTypeBody body;" (type_identifier) "CGIUnknownTypeBody" (field_identifier) "body" (;) ";" (}) "}" (type_identifier) "CGIUnknownTypeRecord" (;) ";" (comment) "/* This class handles reading and building the fastcgi messages.\n * For reading incoming mesages, we pass the input\n * stream as a param to the constructor rather than to each method.\n * Methods that build messages use and return internal buffers, so they\n * dont need a stream.\n */" (function_definition) "class Message {\n\n public :\n Message ();\n void clear();\n\n /*\n *\n */\n void process(const BYTE* const buffer);\n /*\n * parse FCGI Begin Request Record.\n */\n void processBeginRecord(const CGIBeginRequestBody& body);\n\n /*\n * Interpret the FCGI Message Header.\n */\n void processHeader(const CGIHeader& cgiHeader);\n \n /*\n * Read FCGI name-value pairs from a stream until EOF. Put them\n * into a map object, storing both as strings.\n */\n void processParams(ByteArray& content, map<string, string>& params);\n \n void processStdIn(ByteArray& content, string& params);\n\n /*\n * Build an FCGI Message Header\n */\n void makeHeader(CGIHeader &header);\n\n /*\n * Build an FCGI Message UnknownTypeBodyBody\n */\n void makeEndRequestBody(CGIEndRequestBody& body);\n\n /*\n * Build a name-value body\n */\n void makeNameValue(const char* name, const char* value, BYTE* dest, int& pos);\n void makeNameValue(string& name, string& value, BYTE* dest, int& pos);\n\n /*\n * Build a FCGI Message UnknownTypeBody\n */\n void makeUnknownTypeBody(CGIUnknownTypeBody& body, int unknownType);\n \n /*\n * Build a FCGI STDIN Body\n */\n void makeStdOutBody(ByteArray& ba);\n\n /*\n * Build an FCGI STDIN Body \n */\n void makeStdErrBody(ByteArray& ba);\n /*\n * FCGI Header\n */\n int version;\n int type;\n int requestID; // 2 bytes\n int contentLength; // 2 bytes\n int paddingLength;\n\n /*\n * FCGI begin request body.\n */\n int role; // 2 bytes\n int flags;\n\n /*\n * FCGI end request body.\n */\n int appStatus;\n int protocolStatus;\n \n /*\n * Web server connection\n */\n bool keepConnection;\n\n ByteArray data;\n\n}" (type_identifier) "class" (identifier) "Message" (compound_statement) "{\n\n public :\n Message ();\n void clear();\n\n /*\n *\n */\n void process(const BYTE* const buffer);\n /*\n * parse FCGI Begin Request Record.\n */\n void processBeginRecord(const CGIBeginRequestBody& body);\n\n /*\n * Interpret the FCGI Message Header.\n */\n void processHeader(const CGIHeader& cgiHeader);\n \n /*\n * Read FCGI name-value pairs from a stream until EOF. Put them\n * into a map object, storing both as strings.\n */\n void processParams(ByteArray& content, map<string, string>& params);\n \n void processStdIn(ByteArray& content, string& params);\n\n /*\n * Build an FCGI Message Header\n */\n void makeHeader(CGIHeader &header);\n\n /*\n * Build an FCGI Message UnknownTypeBodyBody\n */\n void makeEndRequestBody(CGIEndRequestBody& body);\n\n /*\n * Build a name-value body\n */\n void makeNameValue(const char* name, const char* value, BYTE* dest, int& pos);\n void makeNameValue(string& name, string& value, BYTE* dest, int& pos);\n\n /*\n * Build a FCGI Message UnknownTypeBody\n */\n void makeUnknownTypeBody(CGIUnknownTypeBody& body, int unknownType);\n \n /*\n * Build a FCGI STDIN Body\n */\n void makeStdOutBody(ByteArray& ba);\n\n /*\n * Build an FCGI STDIN Body \n */\n void makeStdErrBody(ByteArray& ba);\n /*\n * FCGI Header\n */\n int version;\n int type;\n int requestID; // 2 bytes\n int contentLength; // 2 bytes\n int paddingLength;\n\n /*\n * FCGI begin request body.\n */\n int role; // 2 bytes\n int flags;\n\n /*\n * FCGI end request body.\n */\n int appStatus;\n int protocolStatus;\n \n /*\n * Web server connection\n */\n bool keepConnection;\n\n ByteArray data;\n\n}" ({) "{" (labeled_statement) "public :\n Message ();" (statement_identifier) "public" (:) ":" (expression_statement) "Message ();" (call_expression) "Message ()" (identifier) "Message" (argument_list) "()" (() "(" ()) ")" (;) ";" (declaration) "void clear();" (primitive_type) "void" (function_declarator) "clear()" (identifier) "clear" (parameter_list) "()" (() "(" ()) ")" (;) ";" (comment) "/*\n *\n */" (declaration) "void process(const BYTE* const buffer);" (primitive_type) "void" (function_declarator) "process(const BYTE* const buffer)" (identifier) "process" (parameter_list) "(const BYTE* const buffer)" (() "(" (parameter_declaration) "const BYTE* const buffer" (type_qualifier) "const" (const) "const" (type_identifier) "BYTE" (pointer_declarator) "* const buffer" (*) "*" (type_qualifier) "const" (const) "const" (identifier) "buffer" ()) ")" (;) ";" (comment) "/*\n * parse FCGI Begin Request Record.\n */" (declaration) "void processBeginRecord(const CGIBeginRequestBody& body);" (primitive_type) "void" (function_declarator) "processBeginRecord(const CGIBeginRequestBody& body)" (identifier) "processBeginRecord" (parameter_list) "(const CGIBeginRequestBody& body)" (() "(" (parameter_declaration) "const CGIBeginRequestBody& body" (type_qualifier) "const" (const) "const" (type_identifier) "CGIBeginRequestBody" (ERROR) "&" (&) "&" (identifier) "body" ()) ")" (;) ";" (comment) "/*\n * Interpret the FCGI Message Header.\n */" (declaration) "void processHeader(const CGIHeader& cgiHeader);" (primitive_type) "void" (function_declarator) "processHeader(const CGIHeader& cgiHeader)" (identifier) "processHeader" (parameter_list) "(const CGIHeader& cgiHeader)" (() "(" (parameter_declaration) "const CGIHeader& cgiHeader" (type_qualifier) "const" (const) "const" (type_identifier) "CGIHeader" (ERROR) "&" (&) "&" (identifier) "cgiHeader" ()) ")" (;) ";" (comment) "/*\n * Read FCGI name-value pairs from a stream until EOF. Put them\n * into a map object, storing both as strings.\n */" (declaration) "void processParams(ByteArray& content, map<string, string>& params);" (primitive_type) "void" (function_declarator) "processParams(ByteArray& content, map<string, string>& params)" (identifier) "processParams" (parameter_list) "(ByteArray& content, map<string, string>& params)" (() "(" (parameter_declaration) "ByteArray& content" (type_identifier) "ByteArray" (ERROR) "&" (&) "&" (identifier) "content" (,) "," (parameter_declaration) "map<string" (type_identifier) "map" (ERROR) "<" (<) "<" (identifier) "string" (,) "," (parameter_declaration) "string>& params" (type_identifier) "string" (ERROR) ">&" (>) ">" (&) "&" (identifier) "params" ()) ")" (;) ";" (declaration) "void processStdIn(ByteArray& content, string& params);" (primitive_type) "void" (function_declarator) "processStdIn(ByteArray& content, string& params)" (identifier) "processStdIn" (parameter_list) "(ByteArray& content, string& params)" (() "(" (parameter_declaration) "ByteArray& content" (type_identifier) "ByteArray" (ERROR) "&" (&) "&" (identifier) "content" (,) "," (parameter_declaration) "string& params" (type_identifier) "string" (ERROR) "&" (&) "&" (identifier) "params" ()) ")" (;) ";" (comment) "/*\n * Build an FCGI Message Header\n */" (declaration) "void makeHeader(CGIHeader &header);" (primitive_type) "void" (function_declarator) "makeHeader(CGIHeader &header)" (identifier) "makeHeader" (parameter_list) "(CGIHeader &header)" (() "(" (parameter_declaration) "CGIHeader &header" (type_identifier) "CGIHeader" (ERROR) "&" (&) "&" (identifier) "header" ()) ")" (;) ";" (comment) "/*\n * Build an FCGI Message UnknownTypeBodyBody\n */" (declaration) "void makeEndRequestBody(CGIEndRequestBody& body);" (primitive_type) "void" (function_declarator) "makeEndRequestBody(CGIEndRequestBody& body)" (identifier) "makeEndRequestBody" (parameter_list) "(CGIEndRequestBody& body)" (() "(" (parameter_declaration) "CGIEndRequestBody& body" (type_identifier) "CGIEndRequestBody" (ERROR) "&" (&) "&" (identifier) "body" ()) ")" (;) ";" (comment) "/*\n * Build a name-value body\n */" (declaration) "void makeNameValue(const char* name, const char* value, BYTE* dest, int& pos);" (primitive_type) "void" (function_declarator) "makeNameValue(const char* name, const char* value, BYTE* dest, int& pos)" (identifier) "makeNameValue" (parameter_list) "(const char* name, const char* value, BYTE* dest, int& pos)" (() "(" (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" (,) "," (parameter_declaration) "BYTE* dest" (type_identifier) "BYTE" (pointer_declarator) "* dest" (*) "*" (identifier) "dest" (,) "," (parameter_declaration) "int& pos" (primitive_type) "int" (ERROR) "&" (&) "&" (identifier) "pos" ()) ")" (;) ";" (declaration) "void makeNameValue(string& name, string& value, BYTE* dest, int& pos);" (primitive_type) "void" (function_declarator) "makeNameValue(string& name, string& value, BYTE* dest, int& pos)" (identifier) "makeNameValue" (parameter_list) "(string& name, string& value, BYTE* dest, int& pos)" (() "(" (parameter_declaration) "string& name" (type_identifier) "string" (ERROR) "&" (&) "&" (identifier) "name" (,) "," (parameter_declaration) "string& value" (type_identifier) "string" (ERROR) "&" (&) "&" (identifier) "value" (,) "," (parameter_declaration) "BYTE* dest" (type_identifier) "BYTE" (pointer_declarator) "* dest" (*) "*" (identifier) "dest" (,) "," (parameter_declaration) "int& pos" (primitive_type) "int" (ERROR) "&" (&) "&" (identifier) "pos" ()) ")" (;) ";" (comment) "/*\n * Build a FCGI Message UnknownTypeBody\n */" (declaration) "void makeUnknownTypeBody(CGIUnknownTypeBody& body, int unknownType);" (primitive_type) "void" (function_declarator) "makeUnknownTypeBody(CGIUnknownTypeBody& body, int unknownType)" (identifier) "makeUnknownTypeBody" (parameter_list) "(CGIUnknownTypeBody& body, int unknownType)" (() "(" (parameter_declaration) "CGIUnknownTypeBody& body" (type_identifier) "CGIUnknownTypeBody" (ERROR) "&" (&) "&" (identifier) "body" (,) "," (parameter_declaration) "int unknownType" (primitive_type) "int" (identifier) "unknownType" ()) ")" (;) ";" (comment) "/*\n * Build a FCGI STDIN Body\n */" (declaration) "void makeStdOutBody(ByteArray& ba);" (primitive_type) "void" (function_declarator) "makeStdOutBody(ByteArray& ba)" (identifier) "makeStdOutBody" (parameter_list) "(ByteArray& ba)" (() "(" (parameter_declaration) "ByteArray& ba" (type_identifier) "ByteArray" (ERROR) "&" (&) "&" (identifier) "ba" ()) ")" (;) ";" (comment) "/*\n * Build an FCGI STDIN Body \n */" (declaration) "void makeStdErrBody(ByteArray& ba);" (primitive_type) "void" (function_declarator) "makeStdErrBody(ByteArray& ba)" (identifier) "makeStdErrBody" (parameter_list) "(ByteArray& ba)" (() "(" (parameter_declaration) "ByteArray& ba" (type_identifier) "ByteArray" (ERROR) "&" (&) "&" (identifier) "ba" ()) ")" (;) ";" (comment) "/*\n * FCGI Header\n */" (declaration) "int version;" (primitive_type) "int" (identifier) "version" (;) ";" (declaration) "int type;" (primitive_type) "int" (identifier) "type" (;) ";" (declaration) "int requestID;" (primitive_type) "int" (identifier) "requestID" (;) ";" (comment) "// 2 bytes" (declaration) "int contentLength;" (primitive_type) "int" (identifier) "contentLength" (;) ";" (comment) "// 2 bytes" (declaration) "int paddingLength;" (primitive_type) "int" (identifier) "paddingLength" (;) ";" (comment) "/*\n * FCGI begin request body.\n */" (declaration) "int role;" (primitive_type) "int" (identifier) "role" (;) ";" (comment) "// 2 bytes" (declaration) "int flags;" (primitive_type) "int" (identifier) "flags" (;) ";" (comment) "/*\n * FCGI end request body.\n */" (declaration) "int appStatus;" (primitive_type) "int" (identifier) "appStatus" (;) ";" (declaration) "int protocolStatus;" (primitive_type) "int" (identifier) "protocolStatus" (;) ";" (comment) "/*\n * Web server connection\n */" (declaration) "bool keepConnection;" (primitive_type) "bool" (identifier) "keepConnection" (;) ";" (declaration) "ByteArray data;" (type_identifier) "ByteArray" (identifier) "data" (;) ";" (}) "}" (expression_statement) ";" (;) ";" (comment) "// end class Message" (}) "}" (comment) "// end namespace CGI" (}) "}" (comment) "// end namespace Net" (}) "}" (comment) "// end namespace Slim" (#endif) "#endif"
558
18
{"language": "c", "success": true, "metadata": {"lines": 137, "avg_line_length": 24.86, "nodes": 341, "errors": 0, "source_hash": "1088667001300c196c993e990afdd4650ed998eabc60ea30c52b9c92b50cd411", "categorized_nodes": 270}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef SLIM_NET_CGI_MESSAGE_H\n#define SLIM_NET_CGI_MESSAGE_H\n\n#include \"Slim/Net/CGI/Definition.h\"\n#include \"Slim/Net/CGI/Exception.h\"\n#include <map>\n#include <string>\n\nusing std::map;\nusing std::string;\n\nnamespace Slim {\nnamespace Net {\nnamespace CGI {\n\ntypedef struct {\n BYTE version;\n BYTE type;\n BYTE requestIdB1;\n BYTE requestIdB0;\n BYTE contentLengthB1;\n BYTE contentLengthB0;\n BYTE paddingLength;\n BYTE reserved;\n} CGIHeader;\n\ntypedef struct {\n BYTE roleB1;\n BYTE roleB0;\n BYTE flags;\n BYTE reserved[5];\n} CGIBeginRequestBody;\n\ntypedef struct {\n CGIHeader header;\n CGIBeginRequestBody body;\n} CGIBeginRequestRecord;\n\ntypedef struct {\n BYTE appStatusB3;\n BYTE appStatusB2;\n BYTE appStatusB1;\n BYTE appStatusB0;\n BYTE protocolStatus;\n BYTE reserved[3];\n} CGIEndRequestBody;\n\ntypedef struct {\n CGIHeader header;\n CGIEndRequestBody body;\n} CGIEndRequestRecord;\n\ntypedef struct {\n BYTE type;\n BYTE reserved[7];\n} CGIUnknownTypeBody;\n\ntypedef struct {\n CGIHeader header;\n CGIUnknownTypeBody body;\n} CGIUnknownTypeRecord;\n\n\n/* This class handles reading and building the fastcgi messages.\n * For reading incoming mesages, we pass the input\n * stream as a param to the constructor rather than to each method.\n * Methods that build messages use and return internal buffers, so they\n * dont need a stream.\n */\nclass Message {\n\n public :\n Message ();\n void clear();\n\n /*\n *\n */\n void process(const BYTE* const buffer);\n /*\n * parse FCGI Begin Request Record.\n */\n void processBeginRecord(const CGIBeginRequestBody& body);\n\n /*\n * Interpret the FCGI Message Header.\n */\n void processHeader(const CGIHeader& cgiHeader);\n \n /*\n * Read FCGI name-value pairs from a stream until EOF. Put them\n * into a map object, storing both as strings.\n */\n void processParams(ByteArray& content, map<string, string>& params);\n \n void processStdIn(ByteArray& content, string& params);\n\n /*\n * Build an FCGI Message Header\n */\n void makeHeader(CGIHeader &header);\n\n /*\n * Build an FCGI Message UnknownTypeBodyBody\n */\n void makeEndRequestBody(CGIEndRequestBody& body);\n\n /*\n * Build a name-value body\n */\n void makeNameValue(const char* name, const char* value, BYTE* dest, int& pos);\n void makeNameValue(string& name, string& value, BYTE* dest, int& pos);\n\n /*\n * Build a FCGI Message UnknownTypeBody\n */\n void makeUnknownTypeBody(CGIUnknownTypeBody& body, int unknownType);\n \n /*\n * Build a FCGI STDIN Body\n */\n void makeStdOutBody(ByteArray& ba);\n\n /*\n * Build an FCGI STDIN Body \n */\n void makeStdErrBody(ByteArray& ba);\n /*\n * FCGI Header\n */\n int version;\n int type;\n int requestID; // 2 bytes\n int contentLength; // 2 bytes\n int paddingLength;\n\n /*\n * FCGI begin request body.\n */\n int role; // 2 bytes\n int flags;\n\n /*\n * FCGI end request body.\n */\n int appStatus;\n int protocolStatus;\n \n /*\n * Web server connection\n */\n bool keepConnection;\n\n ByteArray data;\n\n}; // end class Message\n\n} // end namespace CGI\n} // end namespace Net\n} // end namespace Slim\n#endif", "parent": null, "children": [1, 2, 3, 6, 9, 12, 15, 18, 23, 28, 340], "start_point": {"row": 0, "column": 0}, "end_point": {"row": 160, "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": "SLIM_NET_CGI_MESSAGE_H", "parent": 0, "children": [], "start_point": {"row": 0, "column": 8}, "end_point": {"row": 0, "column": 30}}, {"id": 3, "type": "preproc_def", "text": "#define SLIM_NET_CGI_MESSAGE_H\n", "parent": 0, "children": [4, 5], "start_point": {"row": 1, "column": 0}, "end_point": {"row": 2, "column": 0}}, {"id": 4, "type": "#define", "text": "#define", "parent": 3, "children": [], "start_point": {"row": 1, "column": 0}, "end_point": {"row": 1, "column": 7}}, {"id": 5, "type": "identifier", "text": "SLIM_NET_CGI_MESSAGE_H", "parent": 3, "children": [], "start_point": {"row": 1, "column": 8}, "end_point": {"row": 1, "column": 30}}, {"id": 6, "type": "preproc_include", "text": "#include \"Slim/Net/CGI/Definition.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": "\"Slim/Net/CGI/Definition.h\"", "parent": 6, "children": [], "start_point": {"row": 3, "column": 9}, "end_point": {"row": 3, "column": 36}}, {"id": 9, "type": "preproc_include", "text": "#include \"Slim/Net/CGI/Exception.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": "\"Slim/Net/CGI/Exception.h\"", "parent": 9, "children": [], "start_point": {"row": 4, "column": 9}, "end_point": {"row": 4, "column": 35}}, {"id": 12, "type": "preproc_include", "text": "#include <map>\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": "<map>", "parent": 12, "children": [], "start_point": {"row": 5, "column": 9}, "end_point": {"row": 5, "column": 14}}, {"id": 15, "type": "preproc_include", "text": "#include <string>\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": "<string>", "parent": 15, "children": [], "start_point": {"row": 6, "column": 9}, "end_point": {"row": 6, "column": 17}}, {"id": 18, "type": "declaration", "text": "using std::map;", "parent": 0, "children": [19, 20, 21], "start_point": {"row": 8, "column": 0}, "end_point": {"row": 8, "column": 15}}, {"id": 19, "type": "type_identifier", "text": "using", "parent": 18, "children": [], "start_point": {"row": 8, "column": 0}, "end_point": {"row": 8, "column": 5}}, {"id": 20, "type": "identifier", "text": "std", "parent": 18, "children": [], "start_point": {"row": 8, "column": 6}, "end_point": {"row": 8, "column": 9}}, {"id": 21, "type": "ERROR", "text": "::map", "parent": 18, "children": [22], "start_point": {"row": 8, "column": 9}, "end_point": {"row": 8, "column": 14}}, {"id": 22, "type": "identifier", "text": "map", "parent": 21, "children": [], "start_point": {"row": 8, "column": 11}, "end_point": {"row": 8, "column": 14}}, {"id": 23, "type": "declaration", "text": "using std::string;", "parent": 0, "children": [24, 25, 27], "start_point": {"row": 9, "column": 0}, "end_point": {"row": 9, "column": 18}}, {"id": 24, "type": "type_identifier", "text": "using", "parent": 23, "children": [], "start_point": {"row": 9, "column": 0}, "end_point": {"row": 9, "column": 5}}, {"id": 25, "type": "ERROR", "text": "std::", "parent": 23, "children": [26], "start_point": {"row": 9, "column": 6}, "end_point": {"row": 9, "column": 11}}, {"id": 26, "type": "identifier", "text": "std", "parent": 25, "children": [], "start_point": {"row": 9, "column": 6}, "end_point": {"row": 9, "column": 9}}, {"id": 27, "type": "identifier", "text": "string", "parent": 23, "children": [], "start_point": {"row": 9, "column": 11}, "end_point": {"row": 9, "column": 17}}, {"id": 28, "type": "function_definition", "text": "namespace Slim {\nnamespace Net {\nnamespace CGI {\n\ntypedef struct {\n BYTE version;\n BYTE type;\n BYTE requestIdB1;\n BYTE requestIdB0;\n BYTE contentLengthB1;\n BYTE contentLengthB0;\n BYTE paddingLength;\n BYTE reserved;\n} CGIHeader;\n\ntypedef struct {\n BYTE roleB1;\n BYTE roleB0;\n BYTE flags;\n BYTE reserved[5];\n} CGIBeginRequestBody;\n\ntypedef struct {\n CGIHeader header;\n CGIBeginRequestBody body;\n} CGIBeginRequestRecord;\n\ntypedef struct {\n BYTE appStatusB3;\n BYTE appStatusB2;\n BYTE appStatusB1;\n BYTE appStatusB0;\n BYTE protocolStatus;\n BYTE reserved[3];\n} CGIEndRequestBody;\n\ntypedef struct {\n CGIHeader header;\n CGIEndRequestBody body;\n} CGIEndRequestRecord;\n\ntypedef struct {\n BYTE type;\n BYTE reserved[7];\n} CGIUnknownTypeBody;\n\ntypedef struct {\n CGIHeader header;\n CGIUnknownTypeBody body;\n} CGIUnknownTypeRecord;\n\n\n/* This class handles reading and building the fastcgi messages.\n * For reading incoming mesages, we pass the input\n * stream as a param to the constructor rather than to each method.\n * Methods that build messages use and return internal buffers, so they\n * dont need a stream.\n */\nclass Message {\n\n public :\n Message ();\n void clear();\n\n /*\n *\n */\n void process(const BYTE* const buffer);\n /*\n * parse FCGI Begin Request Record.\n */\n void processBeginRecord(const CGIBeginRequestBody& body);\n\n /*\n * Interpret the FCGI Message Header.\n */\n void processHeader(const CGIHeader& cgiHeader);\n \n /*\n * Read FCGI name-value pairs from a stream until EOF. Put them\n * into a map object, storing both as strings.\n */\n void processParams(ByteArray& content, map<string, string>& params);\n \n void processStdIn(ByteArray& content, string& params);\n\n /*\n * Build an FCGI Message Header\n */\n void makeHeader(CGIHeader &header);\n\n /*\n * Build an FCGI Message UnknownTypeBodyBody\n */\n void makeEndRequestBody(CGIEndRequestBody& body);\n\n /*\n * Build a name-value body\n */\n void makeNameValue(const char* name, const char* value, BYTE* dest, int& pos);\n void makeNameValue(string& name, string& value, BYTE* dest, int& pos);\n\n /*\n * Build a FCGI Message UnknownTypeBody\n */\n void makeUnknownTypeBody(CGIUnknownTypeBody& body, int unknownType);\n \n /*\n * Build a FCGI STDIN Body\n */\n void makeStdOutBody(ByteArray& ba);\n\n /*\n * Build an FCGI STDIN Body \n */\n void makeStdErrBody(ByteArray& ba);\n /*\n * FCGI Header\n */\n int version;\n int type;\n int requestID; // 2 bytes\n int contentLength; // 2 bytes\n int paddingLength;\n\n /*\n * FCGI begin request body.\n */\n int role; // 2 bytes\n int flags;\n\n /*\n * FCGI end request body.\n */\n int appStatus;\n int protocolStatus;\n \n /*\n * Web server connection\n */\n bool keepConnection;\n\n ByteArray data;\n\n}; // end class Message\n\n} // end namespace CGI\n} // end namespace Net\n}", "parent": 0, "children": [29, 30], "start_point": {"row": 11, "column": 0}, "end_point": {"row": 159, "column": 1}}, {"id": 29, "type": "type_identifier", "text": "namespace", "parent": 28, "children": [], "start_point": {"row": 11, "column": 0}, "end_point": {"row": 11, "column": 9}}, {"id": 30, "type": "identifier", "text": "Slim", "parent": 28, "children": [], "start_point": {"row": 11, "column": 10}, "end_point": {"row": 11, "column": 14}}, {"id": 31, "type": "function_definition", "text": "namespace Net {\nnamespace CGI {\n\ntypedef struct {\n BYTE version;\n BYTE type;\n BYTE requestIdB1;\n BYTE requestIdB0;\n BYTE contentLengthB1;\n BYTE contentLengthB0;\n BYTE paddingLength;\n BYTE reserved;\n} CGIHeader;\n\ntypedef struct {\n BYTE roleB1;\n BYTE roleB0;\n BYTE flags;\n BYTE reserved[5];\n} CGIBeginRequestBody;\n\ntypedef struct {\n CGIHeader header;\n CGIBeginRequestBody body;\n} CGIBeginRequestRecord;\n\ntypedef struct {\n BYTE appStatusB3;\n BYTE appStatusB2;\n BYTE appStatusB1;\n BYTE appStatusB0;\n BYTE protocolStatus;\n BYTE reserved[3];\n} CGIEndRequestBody;\n\ntypedef struct {\n CGIHeader header;\n CGIEndRequestBody body;\n} CGIEndRequestRecord;\n\ntypedef struct {\n BYTE type;\n BYTE reserved[7];\n} CGIUnknownTypeBody;\n\ntypedef struct {\n CGIHeader header;\n CGIUnknownTypeBody body;\n} CGIUnknownTypeRecord;\n\n\n/* This class handles reading and building the fastcgi messages.\n * For reading incoming mesages, we pass the input\n * stream as a param to the constructor rather than to each method.\n * Methods that build messages use and return internal buffers, so they\n * dont need a stream.\n */\nclass Message {\n\n public :\n Message ();\n void clear();\n\n /*\n *\n */\n void process(const BYTE* const buffer);\n /*\n * parse FCGI Begin Request Record.\n */\n void processBeginRecord(const CGIBeginRequestBody& body);\n\n /*\n * Interpret the FCGI Message Header.\n */\n void processHeader(const CGIHeader& cgiHeader);\n \n /*\n * Read FCGI name-value pairs from a stream until EOF. Put them\n * into a map object, storing both as strings.\n */\n void processParams(ByteArray& content, map<string, string>& params);\n \n void processStdIn(ByteArray& content, string& params);\n\n /*\n * Build an FCGI Message Header\n */\n void makeHeader(CGIHeader &header);\n\n /*\n * Build an FCGI Message UnknownTypeBodyBody\n */\n void makeEndRequestBody(CGIEndRequestBody& body);\n\n /*\n * Build a name-value body\n */\n void makeNameValue(const char* name, const char* value, BYTE* dest, int& pos);\n void makeNameValue(string& name, string& value, BYTE* dest, int& pos);\n\n /*\n * Build a FCGI Message UnknownTypeBody\n */\n void makeUnknownTypeBody(CGIUnknownTypeBody& body, int unknownType);\n \n /*\n * Build a FCGI STDIN Body\n */\n void makeStdOutBody(ByteArray& ba);\n\n /*\n * Build an FCGI STDIN Body \n */\n void makeStdErrBody(ByteArray& ba);\n /*\n * FCGI Header\n */\n int version;\n int type;\n int requestID; // 2 bytes\n int contentLength; // 2 bytes\n int paddingLength;\n\n /*\n * FCGI begin request body.\n */\n int role; // 2 bytes\n int flags;\n\n /*\n * FCGI end request body.\n */\n int appStatus;\n int protocolStatus;\n \n /*\n * Web server connection\n */\n bool keepConnection;\n\n ByteArray data;\n\n}; // end class Message\n\n} // end namespace CGI\n}", "parent": 28, "children": [32, 33], "start_point": {"row": 12, "column": 0}, "end_point": {"row": 158, "column": 1}}, {"id": 32, "type": "type_identifier", "text": "namespace", "parent": 31, "children": [], "start_point": {"row": 12, "column": 0}, "end_point": {"row": 12, "column": 9}}, {"id": 33, "type": "identifier", "text": "Net", "parent": 31, "children": [], "start_point": {"row": 12, "column": 10}, "end_point": {"row": 12, "column": 13}}, {"id": 34, "type": "function_definition", "text": "namespace CGI {\n\ntypedef struct {\n BYTE version;\n BYTE type;\n BYTE requestIdB1;\n BYTE requestIdB0;\n BYTE contentLengthB1;\n BYTE contentLengthB0;\n BYTE paddingLength;\n BYTE reserved;\n} CGIHeader;\n\ntypedef struct {\n BYTE roleB1;\n BYTE roleB0;\n BYTE flags;\n BYTE reserved[5];\n} CGIBeginRequestBody;\n\ntypedef struct {\n CGIHeader header;\n CGIBeginRequestBody body;\n} CGIBeginRequestRecord;\n\ntypedef struct {\n BYTE appStatusB3;\n BYTE appStatusB2;\n BYTE appStatusB1;\n BYTE appStatusB0;\n BYTE protocolStatus;\n BYTE reserved[3];\n} CGIEndRequestBody;\n\ntypedef struct {\n CGIHeader header;\n CGIEndRequestBody body;\n} CGIEndRequestRecord;\n\ntypedef struct {\n BYTE type;\n BYTE reserved[7];\n} CGIUnknownTypeBody;\n\ntypedef struct {\n CGIHeader header;\n CGIUnknownTypeBody body;\n} CGIUnknownTypeRecord;\n\n\n/* This class handles reading and building the fastcgi messages.\n * For reading incoming mesages, we pass the input\n * stream as a param to the constructor rather than to each method.\n * Methods that build messages use and return internal buffers, so they\n * dont need a stream.\n */\nclass Message {\n\n public :\n Message ();\n void clear();\n\n /*\n *\n */\n void process(const BYTE* const buffer);\n /*\n * parse FCGI Begin Request Record.\n */\n void processBeginRecord(const CGIBeginRequestBody& body);\n\n /*\n * Interpret the FCGI Message Header.\n */\n void processHeader(const CGIHeader& cgiHeader);\n \n /*\n * Read FCGI name-value pairs from a stream until EOF. Put them\n * into a map object, storing both as strings.\n */\n void processParams(ByteArray& content, map<string, string>& params);\n \n void processStdIn(ByteArray& content, string& params);\n\n /*\n * Build an FCGI Message Header\n */\n void makeHeader(CGIHeader &header);\n\n /*\n * Build an FCGI Message UnknownTypeBodyBody\n */\n void makeEndRequestBody(CGIEndRequestBody& body);\n\n /*\n * Build a name-value body\n */\n void makeNameValue(const char* name, const char* value, BYTE* dest, int& pos);\n void makeNameValue(string& name, string& value, BYTE* dest, int& pos);\n\n /*\n * Build a FCGI Message UnknownTypeBody\n */\n void makeUnknownTypeBody(CGIUnknownTypeBody& body, int unknownType);\n \n /*\n * Build a FCGI STDIN Body\n */\n void makeStdOutBody(ByteArray& ba);\n\n /*\n * Build an FCGI STDIN Body \n */\n void makeStdErrBody(ByteArray& ba);\n /*\n * FCGI Header\n */\n int version;\n int type;\n int requestID; // 2 bytes\n int contentLength; // 2 bytes\n int paddingLength;\n\n /*\n * FCGI begin request body.\n */\n int role; // 2 bytes\n int flags;\n\n /*\n * FCGI end request body.\n */\n int appStatus;\n int protocolStatus;\n \n /*\n * Web server connection\n */\n bool keepConnection;\n\n ByteArray data;\n\n}; // end class Message\n\n}", "parent": 31, "children": [35, 36], "start_point": {"row": 13, "column": 0}, "end_point": {"row": 157, "column": 1}}, {"id": 35, "type": "type_identifier", "text": "namespace", "parent": 34, "children": [], "start_point": {"row": 13, "column": 0}, "end_point": {"row": 13, "column": 9}}, {"id": 36, "type": "identifier", "text": "CGI", "parent": 34, "children": [], "start_point": {"row": 13, "column": 10}, "end_point": {"row": 13, "column": 13}}, {"id": 37, "type": "type_definition", "text": "typedef struct {\n BYTE version;\n BYTE type;\n BYTE requestIdB1;\n BYTE requestIdB0;\n BYTE contentLengthB1;\n BYTE contentLengthB0;\n BYTE paddingLength;\n BYTE reserved;\n} CGIHeader;", "parent": 34, "children": [38, 39, 65], "start_point": {"row": 15, "column": 0}, "end_point": {"row": 24, "column": 12}}, {"id": 38, "type": "typedef", "text": "typedef", "parent": 37, "children": [], "start_point": {"row": 15, "column": 0}, "end_point": {"row": 15, "column": 7}}, {"id": 39, "type": "struct_specifier", "text": "struct {\n BYTE version;\n BYTE type;\n BYTE requestIdB1;\n BYTE requestIdB0;\n BYTE contentLengthB1;\n BYTE contentLengthB0;\n BYTE paddingLength;\n BYTE reserved;\n}", "parent": 37, "children": [40], "start_point": {"row": 15, "column": 8}, "end_point": {"row": 24, "column": 1}}, {"id": 40, "type": "struct", "text": "struct", "parent": 39, "children": [], "start_point": {"row": 15, "column": 8}, "end_point": {"row": 15, "column": 14}}, {"id": 41, "type": "field_declaration", "text": "BYTE version;", "parent": 39, "children": [42, 43], "start_point": {"row": 16, "column": 4}, "end_point": {"row": 16, "column": 17}}, {"id": 42, "type": "type_identifier", "text": "BYTE", "parent": 41, "children": [], "start_point": {"row": 16, "column": 4}, "end_point": {"row": 16, "column": 8}}, {"id": 43, "type": "field_identifier", "text": "version", "parent": 41, "children": [], "start_point": {"row": 16, "column": 9}, "end_point": {"row": 16, "column": 16}}, {"id": 44, "type": "field_declaration", "text": "BYTE type;", "parent": 39, "children": [45, 46], "start_point": {"row": 17, "column": 4}, "end_point": {"row": 17, "column": 14}}, {"id": 45, "type": "type_identifier", "text": "BYTE", "parent": 44, "children": [], "start_point": {"row": 17, "column": 4}, "end_point": {"row": 17, "column": 8}}, {"id": 46, "type": "field_identifier", "text": "type", "parent": 44, "children": [], "start_point": {"row": 17, "column": 9}, "end_point": {"row": 17, "column": 13}}, {"id": 47, "type": "field_declaration", "text": "BYTE requestIdB1;", "parent": 39, "children": [48, 49], "start_point": {"row": 18, "column": 4}, "end_point": {"row": 18, "column": 21}}, {"id": 48, "type": "type_identifier", "text": "BYTE", "parent": 47, "children": [], "start_point": {"row": 18, "column": 4}, "end_point": {"row": 18, "column": 8}}, {"id": 49, "type": "field_identifier", "text": "requestIdB1", "parent": 47, "children": [], "start_point": {"row": 18, "column": 9}, "end_point": {"row": 18, "column": 20}}, {"id": 50, "type": "field_declaration", "text": "BYTE requestIdB0;", "parent": 39, "children": [51, 52], "start_point": {"row": 19, "column": 4}, "end_point": {"row": 19, "column": 21}}, {"id": 51, "type": "type_identifier", "text": "BYTE", "parent": 50, "children": [], "start_point": {"row": 19, "column": 4}, "end_point": {"row": 19, "column": 8}}, {"id": 52, "type": "field_identifier", "text": "requestIdB0", "parent": 50, "children": [], "start_point": {"row": 19, "column": 9}, "end_point": {"row": 19, "column": 20}}, {"id": 53, "type": "field_declaration", "text": "BYTE contentLengthB1;", "parent": 39, "children": [54, 55], "start_point": {"row": 20, "column": 4}, "end_point": {"row": 20, "column": 25}}, {"id": 54, "type": "type_identifier", "text": "BYTE", "parent": 53, "children": [], "start_point": {"row": 20, "column": 4}, "end_point": {"row": 20, "column": 8}}, {"id": 55, "type": "field_identifier", "text": "contentLengthB1", "parent": 53, "children": [], "start_point": {"row": 20, "column": 9}, "end_point": {"row": 20, "column": 24}}, {"id": 56, "type": "field_declaration", "text": "BYTE contentLengthB0;", "parent": 39, "children": [57, 58], "start_point": {"row": 21, "column": 4}, "end_point": {"row": 21, "column": 25}}, {"id": 57, "type": "type_identifier", "text": "BYTE", "parent": 56, "children": [], "start_point": {"row": 21, "column": 4}, "end_point": {"row": 21, "column": 8}}, {"id": 58, "type": "field_identifier", "text": "contentLengthB0", "parent": 56, "children": [], "start_point": {"row": 21, "column": 9}, "end_point": {"row": 21, "column": 24}}, {"id": 59, "type": "field_declaration", "text": "BYTE paddingLength;", "parent": 39, "children": [60, 61], "start_point": {"row": 22, "column": 4}, "end_point": {"row": 22, "column": 23}}, {"id": 60, "type": "type_identifier", "text": "BYTE", "parent": 59, "children": [], "start_point": {"row": 22, "column": 4}, "end_point": {"row": 22, "column": 8}}, {"id": 61, "type": "field_identifier", "text": "paddingLength", "parent": 59, "children": [], "start_point": {"row": 22, "column": 9}, "end_point": {"row": 22, "column": 22}}, {"id": 62, "type": "field_declaration", "text": "BYTE reserved;", "parent": 39, "children": [63, 64], "start_point": {"row": 23, "column": 4}, "end_point": {"row": 23, "column": 18}}, {"id": 63, "type": "type_identifier", "text": "BYTE", "parent": 62, "children": [], "start_point": {"row": 23, "column": 4}, "end_point": {"row": 23, "column": 8}}, {"id": 64, "type": "field_identifier", "text": "reserved", "parent": 62, "children": [], "start_point": {"row": 23, "column": 9}, "end_point": {"row": 23, "column": 17}}, {"id": 65, "type": "type_identifier", "text": "CGIHeader", "parent": 37, "children": [], "start_point": {"row": 24, "column": 2}, "end_point": {"row": 24, "column": 11}}, {"id": 66, "type": "type_definition", "text": "typedef struct {\n BYTE roleB1;\n BYTE roleB0;\n BYTE flags;\n BYTE reserved[5];\n} CGIBeginRequestBody;", "parent": 34, "children": [67, 68, 84], "start_point": {"row": 26, "column": 0}, "end_point": {"row": 31, "column": 22}}, {"id": 67, "type": "typedef", "text": "typedef", "parent": 66, "children": [], "start_point": {"row": 26, "column": 0}, "end_point": {"row": 26, "column": 7}}, {"id": 68, "type": "struct_specifier", "text": "struct {\n BYTE roleB1;\n BYTE roleB0;\n BYTE flags;\n BYTE reserved[5];\n}", "parent": 66, "children": [69], "start_point": {"row": 26, "column": 8}, "end_point": {"row": 31, "column": 1}}, {"id": 69, "type": "struct", "text": "struct", "parent": 68, "children": [], "start_point": {"row": 26, "column": 8}, "end_point": {"row": 26, "column": 14}}, {"id": 70, "type": "field_declaration", "text": "BYTE roleB1;", "parent": 68, "children": [71, 72], "start_point": {"row": 27, "column": 4}, "end_point": {"row": 27, "column": 16}}, {"id": 71, "type": "type_identifier", "text": "BYTE", "parent": 70, "children": [], "start_point": {"row": 27, "column": 4}, "end_point": {"row": 27, "column": 8}}, {"id": 72, "type": "field_identifier", "text": "roleB1", "parent": 70, "children": [], "start_point": {"row": 27, "column": 9}, "end_point": {"row": 27, "column": 15}}, {"id": 73, "type": "field_declaration", "text": "BYTE roleB0;", "parent": 68, "children": [74, 75], "start_point": {"row": 28, "column": 4}, "end_point": {"row": 28, "column": 16}}, {"id": 74, "type": "type_identifier", "text": "BYTE", "parent": 73, "children": [], "start_point": {"row": 28, "column": 4}, "end_point": {"row": 28, "column": 8}}, {"id": 75, "type": "field_identifier", "text": "roleB0", "parent": 73, "children": [], "start_point": {"row": 28, "column": 9}, "end_point": {"row": 28, "column": 15}}, {"id": 76, "type": "field_declaration", "text": "BYTE flags;", "parent": 68, "children": [77, 78], "start_point": {"row": 29, "column": 4}, "end_point": {"row": 29, "column": 15}}, {"id": 77, "type": "type_identifier", "text": "BYTE", "parent": 76, "children": [], "start_point": {"row": 29, "column": 4}, "end_point": {"row": 29, "column": 8}}, {"id": 78, "type": "field_identifier", "text": "flags", "parent": 76, "children": [], "start_point": {"row": 29, "column": 9}, "end_point": {"row": 29, "column": 14}}, {"id": 79, "type": "field_declaration", "text": "BYTE reserved[5];", "parent": 68, "children": [80, 81], "start_point": {"row": 30, "column": 4}, "end_point": {"row": 30, "column": 21}}, {"id": 80, "type": "type_identifier", "text": "BYTE", "parent": 79, "children": [], "start_point": {"row": 30, "column": 4}, "end_point": {"row": 30, "column": 8}}, {"id": 81, "type": "array_declarator", "text": "reserved[5]", "parent": 79, "children": [82, 83], "start_point": {"row": 30, "column": 9}, "end_point": {"row": 30, "column": 20}}, {"id": 82, "type": "field_identifier", "text": "reserved", "parent": 81, "children": [], "start_point": {"row": 30, "column": 9}, "end_point": {"row": 30, "column": 17}}, {"id": 83, "type": "number_literal", "text": "5", "parent": 81, "children": [], "start_point": {"row": 30, "column": 18}, "end_point": {"row": 30, "column": 19}}, {"id": 84, "type": "type_identifier", "text": "CGIBeginRequestBody", "parent": 66, "children": [], "start_point": {"row": 31, "column": 2}, "end_point": {"row": 31, "column": 21}}, {"id": 85, "type": "type_definition", "text": "typedef struct {\n CGIHeader header;\n CGIBeginRequestBody body;\n} CGIBeginRequestRecord;", "parent": 34, "children": [86, 87, 95], "start_point": {"row": 33, "column": 0}, "end_point": {"row": 36, "column": 24}}, {"id": 86, "type": "typedef", "text": "typedef", "parent": 85, "children": [], "start_point": {"row": 33, "column": 0}, "end_point": {"row": 33, "column": 7}}, {"id": 87, "type": "struct_specifier", "text": "struct {\n CGIHeader header;\n CGIBeginRequestBody body;\n}", "parent": 85, "children": [88], "start_point": {"row": 33, "column": 8}, "end_point": {"row": 36, "column": 1}}, {"id": 88, "type": "struct", "text": "struct", "parent": 87, "children": [], "start_point": {"row": 33, "column": 8}, "end_point": {"row": 33, "column": 14}}, {"id": 89, "type": "field_declaration", "text": "CGIHeader header;", "parent": 87, "children": [90, 91], "start_point": {"row": 34, "column": 4}, "end_point": {"row": 34, "column": 21}}, {"id": 90, "type": "type_identifier", "text": "CGIHeader", "parent": 89, "children": [], "start_point": {"row": 34, "column": 4}, "end_point": {"row": 34, "column": 13}}, {"id": 91, "type": "field_identifier", "text": "header", "parent": 89, "children": [], "start_point": {"row": 34, "column": 14}, "end_point": {"row": 34, "column": 20}}, {"id": 92, "type": "field_declaration", "text": "CGIBeginRequestBody body;", "parent": 87, "children": [93, 94], "start_point": {"row": 35, "column": 4}, "end_point": {"row": 35, "column": 29}}, {"id": 93, "type": "type_identifier", "text": "CGIBeginRequestBody", "parent": 92, "children": [], "start_point": {"row": 35, "column": 4}, "end_point": {"row": 35, "column": 23}}, {"id": 94, "type": "field_identifier", "text": "body", "parent": 92, "children": [], "start_point": {"row": 35, "column": 24}, "end_point": {"row": 35, "column": 28}}, {"id": 95, "type": "type_identifier", "text": "CGIBeginRequestRecord", "parent": 85, "children": [], "start_point": {"row": 36, "column": 2}, "end_point": {"row": 36, "column": 23}}, {"id": 96, "type": "type_definition", "text": "typedef struct {\n BYTE appStatusB3;\n BYTE appStatusB2;\n BYTE appStatusB1;\n BYTE appStatusB0;\n BYTE protocolStatus;\n BYTE reserved[3];\n} CGIEndRequestBody;", "parent": 34, "children": [97, 98, 120], "start_point": {"row": 38, "column": 0}, "end_point": {"row": 45, "column": 20}}, {"id": 97, "type": "typedef", "text": "typedef", "parent": 96, "children": [], "start_point": {"row": 38, "column": 0}, "end_point": {"row": 38, "column": 7}}, {"id": 98, "type": "struct_specifier", "text": "struct {\n BYTE appStatusB3;\n BYTE appStatusB2;\n BYTE appStatusB1;\n BYTE appStatusB0;\n BYTE protocolStatus;\n BYTE reserved[3];\n}", "parent": 96, "children": [99], "start_point": {"row": 38, "column": 8}, "end_point": {"row": 45, "column": 1}}, {"id": 99, "type": "struct", "text": "struct", "parent": 98, "children": [], "start_point": {"row": 38, "column": 8}, "end_point": {"row": 38, "column": 14}}, {"id": 100, "type": "field_declaration", "text": "BYTE appStatusB3;", "parent": 98, "children": [101, 102], "start_point": {"row": 39, "column": 4}, "end_point": {"row": 39, "column": 21}}, {"id": 101, "type": "type_identifier", "text": "BYTE", "parent": 100, "children": [], "start_point": {"row": 39, "column": 4}, "end_point": {"row": 39, "column": 8}}, {"id": 102, "type": "field_identifier", "text": "appStatusB3", "parent": 100, "children": [], "start_point": {"row": 39, "column": 9}, "end_point": {"row": 39, "column": 20}}, {"id": 103, "type": "field_declaration", "text": "BYTE appStatusB2;", "parent": 98, "children": [104, 105], "start_point": {"row": 40, "column": 4}, "end_point": {"row": 40, "column": 21}}, {"id": 104, "type": "type_identifier", "text": "BYTE", "parent": 103, "children": [], "start_point": {"row": 40, "column": 4}, "end_point": {"row": 40, "column": 8}}, {"id": 105, "type": "field_identifier", "text": "appStatusB2", "parent": 103, "children": [], "start_point": {"row": 40, "column": 9}, "end_point": {"row": 40, "column": 20}}, {"id": 106, "type": "field_declaration", "text": "BYTE appStatusB1;", "parent": 98, "children": [107, 108], "start_point": {"row": 41, "column": 4}, "end_point": {"row": 41, "column": 21}}, {"id": 107, "type": "type_identifier", "text": "BYTE", "parent": 106, "children": [], "start_point": {"row": 41, "column": 4}, "end_point": {"row": 41, "column": 8}}, {"id": 108, "type": "field_identifier", "text": "appStatusB1", "parent": 106, "children": [], "start_point": {"row": 41, "column": 9}, "end_point": {"row": 41, "column": 20}}, {"id": 109, "type": "field_declaration", "text": "BYTE appStatusB0;", "parent": 98, "children": [110, 111], "start_point": {"row": 42, "column": 4}, "end_point": {"row": 42, "column": 21}}, {"id": 110, "type": "type_identifier", "text": "BYTE", "parent": 109, "children": [], "start_point": {"row": 42, "column": 4}, "end_point": {"row": 42, "column": 8}}, {"id": 111, "type": "field_identifier", "text": "appStatusB0", "parent": 109, "children": [], "start_point": {"row": 42, "column": 9}, "end_point": {"row": 42, "column": 20}}, {"id": 112, "type": "field_declaration", "text": "BYTE protocolStatus;", "parent": 98, "children": [113, 114], "start_point": {"row": 43, "column": 4}, "end_point": {"row": 43, "column": 24}}, {"id": 113, "type": "type_identifier", "text": "BYTE", "parent": 112, "children": [], "start_point": {"row": 43, "column": 4}, "end_point": {"row": 43, "column": 8}}, {"id": 114, "type": "field_identifier", "text": "protocolStatus", "parent": 112, "children": [], "start_point": {"row": 43, "column": 9}, "end_point": {"row": 43, "column": 23}}, {"id": 115, "type": "field_declaration", "text": "BYTE reserved[3];", "parent": 98, "children": [116, 117], "start_point": {"row": 44, "column": 4}, "end_point": {"row": 44, "column": 21}}, {"id": 116, "type": "type_identifier", "text": "BYTE", "parent": 115, "children": [], "start_point": {"row": 44, "column": 4}, "end_point": {"row": 44, "column": 8}}, {"id": 117, "type": "array_declarator", "text": "reserved[3]", "parent": 115, "children": [118, 119], "start_point": {"row": 44, "column": 9}, "end_point": {"row": 44, "column": 20}}, {"id": 118, "type": "field_identifier", "text": "reserved", "parent": 117, "children": [], "start_point": {"row": 44, "column": 9}, "end_point": {"row": 44, "column": 17}}, {"id": 119, "type": "number_literal", "text": "3", "parent": 117, "children": [], "start_point": {"row": 44, "column": 18}, "end_point": {"row": 44, "column": 19}}, {"id": 120, "type": "type_identifier", "text": "CGIEndRequestBody", "parent": 96, "children": [], "start_point": {"row": 45, "column": 2}, "end_point": {"row": 45, "column": 19}}, {"id": 121, "type": "type_definition", "text": "typedef struct {\n CGIHeader header;\n CGIEndRequestBody body;\n} CGIEndRequestRecord;", "parent": 34, "children": [122, 123, 131], "start_point": {"row": 47, "column": 0}, "end_point": {"row": 50, "column": 22}}, {"id": 122, "type": "typedef", "text": "typedef", "parent": 121, "children": [], "start_point": {"row": 47, "column": 0}, "end_point": {"row": 47, "column": 7}}, {"id": 123, "type": "struct_specifier", "text": "struct {\n CGIHeader header;\n CGIEndRequestBody body;\n}", "parent": 121, "children": [124], "start_point": {"row": 47, "column": 8}, "end_point": {"row": 50, "column": 1}}, {"id": 124, "type": "struct", "text": "struct", "parent": 123, "children": [], "start_point": {"row": 47, "column": 8}, "end_point": {"row": 47, "column": 14}}, {"id": 125, "type": "field_declaration", "text": "CGIHeader header;", "parent": 123, "children": [126, 127], "start_point": {"row": 48, "column": 4}, "end_point": {"row": 48, "column": 21}}, {"id": 126, "type": "type_identifier", "text": "CGIHeader", "parent": 125, "children": [], "start_point": {"row": 48, "column": 4}, "end_point": {"row": 48, "column": 13}}, {"id": 127, "type": "field_identifier", "text": "header", "parent": 125, "children": [], "start_point": {"row": 48, "column": 14}, "end_point": {"row": 48, "column": 20}}, {"id": 128, "type": "field_declaration", "text": "CGIEndRequestBody body;", "parent": 123, "children": [129, 130], "start_point": {"row": 49, "column": 4}, "end_point": {"row": 49, "column": 27}}, {"id": 129, "type": "type_identifier", "text": "CGIEndRequestBody", "parent": 128, "children": [], "start_point": {"row": 49, "column": 4}, "end_point": {"row": 49, "column": 21}}, {"id": 130, "type": "field_identifier", "text": "body", "parent": 128, "children": [], "start_point": {"row": 49, "column": 22}, "end_point": {"row": 49, "column": 26}}, {"id": 131, "type": "type_identifier", "text": "CGIEndRequestRecord", "parent": 121, "children": [], "start_point": {"row": 50, "column": 2}, "end_point": {"row": 50, "column": 21}}, {"id": 132, "type": "type_definition", "text": "typedef struct {\n BYTE type;\n BYTE reserved[7];\n} CGIUnknownTypeBody;", "parent": 34, "children": [133, 134, 144], "start_point": {"row": 52, "column": 0}, "end_point": {"row": 55, "column": 21}}, {"id": 133, "type": "typedef", "text": "typedef", "parent": 132, "children": [], "start_point": {"row": 52, "column": 0}, "end_point": {"row": 52, "column": 7}}, {"id": 134, "type": "struct_specifier", "text": "struct {\n BYTE type;\n BYTE reserved[7];\n}", "parent": 132, "children": [135], "start_point": {"row": 52, "column": 8}, "end_point": {"row": 55, "column": 1}}, {"id": 135, "type": "struct", "text": "struct", "parent": 134, "children": [], "start_point": {"row": 52, "column": 8}, "end_point": {"row": 52, "column": 14}}, {"id": 136, "type": "field_declaration", "text": "BYTE type;", "parent": 134, "children": [137, 138], "start_point": {"row": 53, "column": 4}, "end_point": {"row": 53, "column": 14}}, {"id": 137, "type": "type_identifier", "text": "BYTE", "parent": 136, "children": [], "start_point": {"row": 53, "column": 4}, "end_point": {"row": 53, "column": 8}}, {"id": 138, "type": "field_identifier", "text": "type", "parent": 136, "children": [], "start_point": {"row": 53, "column": 9}, "end_point": {"row": 53, "column": 13}}, {"id": 139, "type": "field_declaration", "text": "BYTE reserved[7];", "parent": 134, "children": [140, 141], "start_point": {"row": 54, "column": 4}, "end_point": {"row": 54, "column": 21}}, {"id": 140, "type": "type_identifier", "text": "BYTE", "parent": 139, "children": [], "start_point": {"row": 54, "column": 4}, "end_point": {"row": 54, "column": 8}}, {"id": 141, "type": "array_declarator", "text": "reserved[7]", "parent": 139, "children": [142, 143], "start_point": {"row": 54, "column": 9}, "end_point": {"row": 54, "column": 20}}, {"id": 142, "type": "field_identifier", "text": "reserved", "parent": 141, "children": [], "start_point": {"row": 54, "column": 9}, "end_point": {"row": 54, "column": 17}}, {"id": 143, "type": "number_literal", "text": "7", "parent": 141, "children": [], "start_point": {"row": 54, "column": 18}, "end_point": {"row": 54, "column": 19}}, {"id": 144, "type": "type_identifier", "text": "CGIUnknownTypeBody", "parent": 132, "children": [], "start_point": {"row": 55, "column": 2}, "end_point": {"row": 55, "column": 20}}, {"id": 145, "type": "type_definition", "text": "typedef struct {\n CGIHeader header;\n CGIUnknownTypeBody body;\n} CGIUnknownTypeRecord;", "parent": 34, "children": [146, 147, 155], "start_point": {"row": 57, "column": 0}, "end_point": {"row": 60, "column": 23}}, {"id": 146, "type": "typedef", "text": "typedef", "parent": 145, "children": [], "start_point": {"row": 57, "column": 0}, "end_point": {"row": 57, "column": 7}}, {"id": 147, "type": "struct_specifier", "text": "struct {\n CGIHeader header;\n CGIUnknownTypeBody body;\n}", "parent": 145, "children": [148], "start_point": {"row": 57, "column": 8}, "end_point": {"row": 60, "column": 1}}, {"id": 148, "type": "struct", "text": "struct", "parent": 147, "children": [], "start_point": {"row": 57, "column": 8}, "end_point": {"row": 57, "column": 14}}, {"id": 149, "type": "field_declaration", "text": "CGIHeader header;", "parent": 147, "children": [150, 151], "start_point": {"row": 58, "column": 4}, "end_point": {"row": 58, "column": 21}}, {"id": 150, "type": "type_identifier", "text": "CGIHeader", "parent": 149, "children": [], "start_point": {"row": 58, "column": 4}, "end_point": {"row": 58, "column": 13}}, {"id": 151, "type": "field_identifier", "text": "header", "parent": 149, "children": [], "start_point": {"row": 58, "column": 14}, "end_point": {"row": 58, "column": 20}}, {"id": 152, "type": "field_declaration", "text": "CGIUnknownTypeBody body;", "parent": 147, "children": [153, 154], "start_point": {"row": 59, "column": 4}, "end_point": {"row": 59, "column": 28}}, {"id": 153, "type": "type_identifier", "text": "CGIUnknownTypeBody", "parent": 152, "children": [], "start_point": {"row": 59, "column": 4}, "end_point": {"row": 59, "column": 22}}, {"id": 154, "type": "field_identifier", "text": "body", "parent": 152, "children": [], "start_point": {"row": 59, "column": 23}, "end_point": {"row": 59, "column": 27}}, {"id": 155, "type": "type_identifier", "text": "CGIUnknownTypeRecord", "parent": 145, "children": [], "start_point": {"row": 60, "column": 2}, "end_point": {"row": 60, "column": 22}}, {"id": 156, "type": "function_definition", "text": "class Message {\n\n public :\n Message ();\n void clear();\n\n /*\n *\n */\n void process(const BYTE* const buffer);\n /*\n * parse FCGI Begin Request Record.\n */\n void processBeginRecord(const CGIBeginRequestBody& body);\n\n /*\n * Interpret the FCGI Message Header.\n */\n void processHeader(const CGIHeader& cgiHeader);\n \n /*\n * Read FCGI name-value pairs from a stream until EOF. Put them\n * into a map object, storing both as strings.\n */\n void processParams(ByteArray& content, map<string, string>& params);\n \n void processStdIn(ByteArray& content, string& params);\n\n /*\n * Build an FCGI Message Header\n */\n void makeHeader(CGIHeader &header);\n\n /*\n * Build an FCGI Message UnknownTypeBodyBody\n */\n void makeEndRequestBody(CGIEndRequestBody& body);\n\n /*\n * Build a name-value body\n */\n void makeNameValue(const char* name, const char* value, BYTE* dest, int& pos);\n void makeNameValue(string& name, string& value, BYTE* dest, int& pos);\n\n /*\n * Build a FCGI Message UnknownTypeBody\n */\n void makeUnknownTypeBody(CGIUnknownTypeBody& body, int unknownType);\n \n /*\n * Build a FCGI STDIN Body\n */\n void makeStdOutBody(ByteArray& ba);\n\n /*\n * Build an FCGI STDIN Body \n */\n void makeStdErrBody(ByteArray& ba);\n /*\n * FCGI Header\n */\n int version;\n int type;\n int requestID; // 2 bytes\n int contentLength; // 2 bytes\n int paddingLength;\n\n /*\n * FCGI begin request body.\n */\n int role; // 2 bytes\n int flags;\n\n /*\n * FCGI end request body.\n */\n int appStatus;\n int protocolStatus;\n \n /*\n * Web server connection\n */\n bool keepConnection;\n\n ByteArray data;\n\n}", "parent": 34, "children": [157], "start_point": {"row": 69, "column": 0}, "end_point": {"row": 155, "column": 1}}, {"id": 157, "type": "identifier", "text": "Message", "parent": 156, "children": [], "start_point": {"row": 69, "column": 6}, "end_point": {"row": 69, "column": 13}}, {"id": 158, "type": "labeled_statement", "text": "public :\n Message ();", "parent": 156, "children": [], "start_point": {"row": 71, "column": 4}, "end_point": {"row": 72, "column": 19}}, {"id": 159, "type": "call_expression", "text": "Message ()", "parent": 158, "children": [160, 161], "start_point": {"row": 72, "column": 8}, "end_point": {"row": 72, "column": 18}}, {"id": 160, "type": "identifier", "text": "Message", "parent": 159, "children": [], "start_point": {"row": 72, "column": 8}, "end_point": {"row": 72, "column": 15}}, {"id": 161, "type": "argument_list", "text": "()", "parent": 159, "children": [], "start_point": {"row": 72, "column": 16}, "end_point": {"row": 72, "column": 18}}, {"id": 162, "type": "declaration", "text": "void clear();", "parent": 156, "children": [163, 164], "start_point": {"row": 73, "column": 8}, "end_point": {"row": 73, "column": 21}}, {"id": 163, "type": "primitive_type", "text": "void", "parent": 162, "children": [], "start_point": {"row": 73, "column": 8}, "end_point": {"row": 73, "column": 12}}, {"id": 164, "type": "function_declarator", "text": "clear()", "parent": 162, "children": [165, 166], "start_point": {"row": 73, "column": 13}, "end_point": {"row": 73, "column": 20}}, {"id": 165, "type": "identifier", "text": "clear", "parent": 164, "children": [], "start_point": {"row": 73, "column": 13}, "end_point": {"row": 73, "column": 18}}, {"id": 166, "type": "parameter_list", "text": "()", "parent": 164, "children": [], "start_point": {"row": 73, "column": 18}, "end_point": {"row": 73, "column": 20}}, {"id": 167, "type": "declaration", "text": "void process(const BYTE* const buffer);", "parent": 156, "children": [168, 169], "start_point": {"row": 78, "column": 8}, "end_point": {"row": 78, "column": 47}}, {"id": 168, "type": "primitive_type", "text": "void", "parent": 167, "children": [], "start_point": {"row": 78, "column": 8}, "end_point": {"row": 78, "column": 12}}, {"id": 169, "type": "function_declarator", "text": "process(const BYTE* const buffer)", "parent": 167, "children": [170, 171], "start_point": {"row": 78, "column": 13}, "end_point": {"row": 78, "column": 46}}, {"id": 170, "type": "identifier", "text": "process", "parent": 169, "children": [], "start_point": {"row": 78, "column": 13}, "end_point": {"row": 78, "column": 20}}, {"id": 171, "type": "parameter_list", "text": "(const BYTE* const buffer)", "parent": 169, "children": [172], "start_point": {"row": 78, "column": 20}, "end_point": {"row": 78, "column": 46}}, {"id": 172, "type": "parameter_declaration", "text": "const BYTE* const buffer", "parent": 171, "children": [173, 174], "start_point": {"row": 78, "column": 21}, "end_point": {"row": 78, "column": 45}}, {"id": 173, "type": "type_identifier", "text": "BYTE", "parent": 172, "children": [], "start_point": {"row": 78, "column": 27}, "end_point": {"row": 78, "column": 31}}, {"id": 174, "type": "pointer_declarator", "text": "* const buffer", "parent": 172, "children": [175, 176], "start_point": {"row": 78, "column": 31}, "end_point": {"row": 78, "column": 45}}, {"id": 175, "type": "*", "text": "*", "parent": 174, "children": [], "start_point": {"row": 78, "column": 31}, "end_point": {"row": 78, "column": 32}}, {"id": 176, "type": "identifier", "text": "buffer", "parent": 174, "children": [], "start_point": {"row": 78, "column": 39}, "end_point": {"row": 78, "column": 45}}, {"id": 177, "type": "declaration", "text": "void processBeginRecord(const CGIBeginRequestBody& body);", "parent": 156, "children": [178, 179], "start_point": {"row": 82, "column": 8}, "end_point": {"row": 82, "column": 65}}, {"id": 178, "type": "primitive_type", "text": "void", "parent": 177, "children": [], "start_point": {"row": 82, "column": 8}, "end_point": {"row": 82, "column": 12}}, {"id": 179, "type": "function_declarator", "text": "processBeginRecord(const CGIBeginRequestBody& body)", "parent": 177, "children": [180, 181], "start_point": {"row": 82, "column": 13}, "end_point": {"row": 82, "column": 64}}, {"id": 180, "type": "identifier", "text": "processBeginRecord", "parent": 179, "children": [], "start_point": {"row": 82, "column": 13}, "end_point": {"row": 82, "column": 31}}, {"id": 181, "type": "parameter_list", "text": "(const CGIBeginRequestBody& body)", "parent": 179, "children": [182], "start_point": {"row": 82, "column": 31}, "end_point": {"row": 82, "column": 64}}, {"id": 182, "type": "parameter_declaration", "text": "const CGIBeginRequestBody& body", "parent": 181, "children": [183, 184], "start_point": {"row": 82, "column": 32}, "end_point": {"row": 82, "column": 63}}, {"id": 183, "type": "type_identifier", "text": "CGIBeginRequestBody", "parent": 182, "children": [], "start_point": {"row": 82, "column": 38}, "end_point": {"row": 82, "column": 57}}, {"id": 184, "type": "identifier", "text": "body", "parent": 182, "children": [], "start_point": {"row": 82, "column": 59}, "end_point": {"row": 82, "column": 63}}, {"id": 185, "type": "declaration", "text": "void processHeader(const CGIHeader& cgiHeader);", "parent": 156, "children": [186, 187], "start_point": {"row": 87, "column": 8}, "end_point": {"row": 87, "column": 55}}, {"id": 186, "type": "primitive_type", "text": "void", "parent": 185, "children": [], "start_point": {"row": 87, "column": 8}, "end_point": {"row": 87, "column": 12}}, {"id": 187, "type": "function_declarator", "text": "processHeader(const CGIHeader& cgiHeader)", "parent": 185, "children": [188, 189], "start_point": {"row": 87, "column": 13}, "end_point": {"row": 87, "column": 54}}, {"id": 188, "type": "identifier", "text": "processHeader", "parent": 187, "children": [], "start_point": {"row": 87, "column": 13}, "end_point": {"row": 87, "column": 26}}, {"id": 189, "type": "parameter_list", "text": "(const CGIHeader& cgiHeader)", "parent": 187, "children": [190], "start_point": {"row": 87, "column": 26}, "end_point": {"row": 87, "column": 54}}, {"id": 190, "type": "parameter_declaration", "text": "const CGIHeader& cgiHeader", "parent": 189, "children": [191, 192], "start_point": {"row": 87, "column": 27}, "end_point": {"row": 87, "column": 53}}, {"id": 191, "type": "type_identifier", "text": "CGIHeader", "parent": 190, "children": [], "start_point": {"row": 87, "column": 33}, "end_point": {"row": 87, "column": 42}}, {"id": 192, "type": "identifier", "text": "cgiHeader", "parent": 190, "children": [], "start_point": {"row": 87, "column": 44}, "end_point": {"row": 87, "column": 53}}, {"id": 193, "type": "declaration", "text": "void processParams(ByteArray& content, map<string, string>& params);", "parent": 156, "children": [194, 195], "start_point": {"row": 93, "column": 8}, "end_point": {"row": 93, "column": 76}}, {"id": 194, "type": "primitive_type", "text": "void", "parent": 193, "children": [], "start_point": {"row": 93, "column": 8}, "end_point": {"row": 93, "column": 12}}, {"id": 195, "type": "function_declarator", "text": "processParams(ByteArray& content, map<string, string>& params)", "parent": 193, "children": [196, 197], "start_point": {"row": 93, "column": 13}, "end_point": {"row": 93, "column": 75}}, {"id": 196, "type": "identifier", "text": "processParams", "parent": 195, "children": [], "start_point": {"row": 93, "column": 13}, "end_point": {"row": 93, "column": 26}}, {"id": 197, "type": "parameter_list", "text": "(ByteArray& content, map<string, string>& params)", "parent": 195, "children": [198, 201, 206], "start_point": {"row": 93, "column": 26}, "end_point": {"row": 93, "column": 75}}, {"id": 198, "type": "parameter_declaration", "text": "ByteArray& content", "parent": 197, "children": [199, 200], "start_point": {"row": 93, "column": 27}, "end_point": {"row": 93, "column": 45}}, {"id": 199, "type": "type_identifier", "text": "ByteArray", "parent": 198, "children": [], "start_point": {"row": 93, "column": 27}, "end_point": {"row": 93, "column": 36}}, {"id": 200, "type": "identifier", "text": "content", "parent": 198, "children": [], "start_point": {"row": 93, "column": 38}, "end_point": {"row": 93, "column": 45}}, {"id": 201, "type": "parameter_declaration", "text": "map<string", "parent": 197, "children": [202, 203, 205], "start_point": {"row": 93, "column": 47}, "end_point": {"row": 93, "column": 57}}, {"id": 202, "type": "type_identifier", "text": "map", "parent": 201, "children": [], "start_point": {"row": 93, "column": 47}, "end_point": {"row": 93, "column": 50}}, {"id": 203, "type": "ERROR", "text": "<", "parent": 201, "children": [204], "start_point": {"row": 93, "column": 50}, "end_point": {"row": 93, "column": 51}}, {"id": 204, "type": "<", "text": "<", "parent": 203, "children": [], "start_point": {"row": 93, "column": 50}, "end_point": {"row": 93, "column": 51}}, {"id": 205, "type": "identifier", "text": "string", "parent": 201, "children": [], "start_point": {"row": 93, "column": 51}, "end_point": {"row": 93, "column": 57}}, {"id": 206, "type": "parameter_declaration", "text": "string>& params", "parent": 197, "children": [207, 208, 210], "start_point": {"row": 93, "column": 59}, "end_point": {"row": 93, "column": 74}}, {"id": 207, "type": "type_identifier", "text": "string", "parent": 206, "children": [], "start_point": {"row": 93, "column": 59}, "end_point": {"row": 93, "column": 65}}, {"id": 208, "type": "ERROR", "text": ">&", "parent": 206, "children": [209], "start_point": {"row": 93, "column": 65}, "end_point": {"row": 93, "column": 67}}, {"id": 209, "type": ">", "text": ">", "parent": 208, "children": [], "start_point": {"row": 93, "column": 65}, "end_point": {"row": 93, "column": 66}}, {"id": 210, "type": "identifier", "text": "params", "parent": 206, "children": [], "start_point": {"row": 93, "column": 68}, "end_point": {"row": 93, "column": 74}}, {"id": 211, "type": "declaration", "text": "void processStdIn(ByteArray& content, string& params);", "parent": 156, "children": [212, 213], "start_point": {"row": 95, "column": 8}, "end_point": {"row": 95, "column": 62}}, {"id": 212, "type": "primitive_type", "text": "void", "parent": 211, "children": [], "start_point": {"row": 95, "column": 8}, "end_point": {"row": 95, "column": 12}}, {"id": 213, "type": "function_declarator", "text": "processStdIn(ByteArray& content, string& params)", "parent": 211, "children": [214, 215], "start_point": {"row": 95, "column": 13}, "end_point": {"row": 95, "column": 61}}, {"id": 214, "type": "identifier", "text": "processStdIn", "parent": 213, "children": [], "start_point": {"row": 95, "column": 13}, "end_point": {"row": 95, "column": 25}}, {"id": 215, "type": "parameter_list", "text": "(ByteArray& content, string& params)", "parent": 213, "children": [216, 219], "start_point": {"row": 95, "column": 25}, "end_point": {"row": 95, "column": 61}}, {"id": 216, "type": "parameter_declaration", "text": "ByteArray& content", "parent": 215, "children": [217, 218], "start_point": {"row": 95, "column": 26}, "end_point": {"row": 95, "column": 44}}, {"id": 217, "type": "type_identifier", "text": "ByteArray", "parent": 216, "children": [], "start_point": {"row": 95, "column": 26}, "end_point": {"row": 95, "column": 35}}, {"id": 218, "type": "identifier", "text": "content", "parent": 216, "children": [], "start_point": {"row": 95, "column": 37}, "end_point": {"row": 95, "column": 44}}, {"id": 219, "type": "parameter_declaration", "text": "string& params", "parent": 215, "children": [220, 221], "start_point": {"row": 95, "column": 46}, "end_point": {"row": 95, "column": 60}}, {"id": 220, "type": "type_identifier", "text": "string", "parent": 219, "children": [], "start_point": {"row": 95, "column": 46}, "end_point": {"row": 95, "column": 52}}, {"id": 221, "type": "identifier", "text": "params", "parent": 219, "children": [], "start_point": {"row": 95, "column": 54}, "end_point": {"row": 95, "column": 60}}, {"id": 222, "type": "declaration", "text": "void makeHeader(CGIHeader &header);", "parent": 156, "children": [223, 224], "start_point": {"row": 100, "column": 8}, "end_point": {"row": 100, "column": 43}}, {"id": 223, "type": "primitive_type", "text": "void", "parent": 222, "children": [], "start_point": {"row": 100, "column": 8}, "end_point": {"row": 100, "column": 12}}, {"id": 224, "type": "function_declarator", "text": "makeHeader(CGIHeader &header)", "parent": 222, "children": [225, 226], "start_point": {"row": 100, "column": 13}, "end_point": {"row": 100, "column": 42}}, {"id": 225, "type": "identifier", "text": "makeHeader", "parent": 224, "children": [], "start_point": {"row": 100, "column": 13}, "end_point": {"row": 100, "column": 23}}, {"id": 226, "type": "parameter_list", "text": "(CGIHeader &header)", "parent": 224, "children": [227], "start_point": {"row": 100, "column": 23}, "end_point": {"row": 100, "column": 42}}, {"id": 227, "type": "parameter_declaration", "text": "CGIHeader &header", "parent": 226, "children": [228, 229], "start_point": {"row": 100, "column": 24}, "end_point": {"row": 100, "column": 41}}, {"id": 228, "type": "type_identifier", "text": "CGIHeader", "parent": 227, "children": [], "start_point": {"row": 100, "column": 24}, "end_point": {"row": 100, "column": 33}}, {"id": 229, "type": "identifier", "text": "header", "parent": 227, "children": [], "start_point": {"row": 100, "column": 35}, "end_point": {"row": 100, "column": 41}}, {"id": 230, "type": "declaration", "text": "void makeEndRequestBody(CGIEndRequestBody& body);", "parent": 156, "children": [231, 232], "start_point": {"row": 105, "column": 8}, "end_point": {"row": 105, "column": 57}}, {"id": 231, "type": "primitive_type", "text": "void", "parent": 230, "children": [], "start_point": {"row": 105, "column": 8}, "end_point": {"row": 105, "column": 12}}, {"id": 232, "type": "function_declarator", "text": "makeEndRequestBody(CGIEndRequestBody& body)", "parent": 230, "children": [233, 234], "start_point": {"row": 105, "column": 13}, "end_point": {"row": 105, "column": 56}}, {"id": 233, "type": "identifier", "text": "makeEndRequestBody", "parent": 232, "children": [], "start_point": {"row": 105, "column": 13}, "end_point": {"row": 105, "column": 31}}, {"id": 234, "type": "parameter_list", "text": "(CGIEndRequestBody& body)", "parent": 232, "children": [235], "start_point": {"row": 105, "column": 31}, "end_point": {"row": 105, "column": 56}}, {"id": 235, "type": "parameter_declaration", "text": "CGIEndRequestBody& body", "parent": 234, "children": [236, 237], "start_point": {"row": 105, "column": 32}, "end_point": {"row": 105, "column": 55}}, {"id": 236, "type": "type_identifier", "text": "CGIEndRequestBody", "parent": 235, "children": [], "start_point": {"row": 105, "column": 32}, "end_point": {"row": 105, "column": 49}}, {"id": 237, "type": "identifier", "text": "body", "parent": 235, "children": [], "start_point": {"row": 105, "column": 51}, "end_point": {"row": 105, "column": 55}}, {"id": 238, "type": "declaration", "text": "void makeNameValue(const char* name, const char* value, BYTE* dest, int& pos);", "parent": 156, "children": [239, 240], "start_point": {"row": 110, "column": 8}, "end_point": {"row": 110, "column": 86}}, {"id": 239, "type": "primitive_type", "text": "void", "parent": 238, "children": [], "start_point": {"row": 110, "column": 8}, "end_point": {"row": 110, "column": 12}}, {"id": 240, "type": "function_declarator", "text": "makeNameValue(const char* name, const char* value, BYTE* dest, int& pos)", "parent": 238, "children": [241, 242], "start_point": {"row": 110, "column": 13}, "end_point": {"row": 110, "column": 85}}, {"id": 241, "type": "identifier", "text": "makeNameValue", "parent": 240, "children": [], "start_point": {"row": 110, "column": 13}, "end_point": {"row": 110, "column": 26}}, {"id": 242, "type": "parameter_list", "text": "(const char* name, const char* value, BYTE* dest, int& pos)", "parent": 240, "children": [243, 248, 253, 258], "start_point": {"row": 110, "column": 26}, "end_point": {"row": 110, "column": 85}}, {"id": 243, "type": "parameter_declaration", "text": "const char* name", "parent": 242, "children": [244, 245], "start_point": {"row": 110, "column": 27}, "end_point": {"row": 110, "column": 43}}, {"id": 244, "type": "primitive_type", "text": "char", "parent": 243, "children": [], "start_point": {"row": 110, "column": 33}, "end_point": {"row": 110, "column": 37}}, {"id": 245, "type": "pointer_declarator", "text": "* name", "parent": 243, "children": [246, 247], "start_point": {"row": 110, "column": 37}, "end_point": {"row": 110, "column": 43}}, {"id": 246, "type": "*", "text": "*", "parent": 245, "children": [], "start_point": {"row": 110, "column": 37}, "end_point": {"row": 110, "column": 38}}, {"id": 247, "type": "identifier", "text": "name", "parent": 245, "children": [], "start_point": {"row": 110, "column": 39}, "end_point": {"row": 110, "column": 43}}, {"id": 248, "type": "parameter_declaration", "text": "const char* value", "parent": 242, "children": [249, 250], "start_point": {"row": 110, "column": 45}, "end_point": {"row": 110, "column": 62}}, {"id": 249, "type": "primitive_type", "text": "char", "parent": 248, "children": [], "start_point": {"row": 110, "column": 51}, "end_point": {"row": 110, "column": 55}}, {"id": 250, "type": "pointer_declarator", "text": "* value", "parent": 248, "children": [251, 252], "start_point": {"row": 110, "column": 55}, "end_point": {"row": 110, "column": 62}}, {"id": 251, "type": "*", "text": "*", "parent": 250, "children": [], "start_point": {"row": 110, "column": 55}, "end_point": {"row": 110, "column": 56}}, {"id": 252, "type": "identifier", "text": "value", "parent": 250, "children": [], "start_point": {"row": 110, "column": 57}, "end_point": {"row": 110, "column": 62}}, {"id": 253, "type": "parameter_declaration", "text": "BYTE* dest", "parent": 242, "children": [254, 255], "start_point": {"row": 110, "column": 64}, "end_point": {"row": 110, "column": 74}}, {"id": 254, "type": "type_identifier", "text": "BYTE", "parent": 253, "children": [], "start_point": {"row": 110, "column": 64}, "end_point": {"row": 110, "column": 68}}, {"id": 255, "type": "pointer_declarator", "text": "* dest", "parent": 253, "children": [256, 257], "start_point": {"row": 110, "column": 68}, "end_point": {"row": 110, "column": 74}}, {"id": 256, "type": "*", "text": "*", "parent": 255, "children": [], "start_point": {"row": 110, "column": 68}, "end_point": {"row": 110, "column": 69}}, {"id": 257, "type": "identifier", "text": "dest", "parent": 255, "children": [], "start_point": {"row": 110, "column": 70}, "end_point": {"row": 110, "column": 74}}, {"id": 258, "type": "parameter_declaration", "text": "int& pos", "parent": 242, "children": [259, 260], "start_point": {"row": 110, "column": 76}, "end_point": {"row": 110, "column": 84}}, {"id": 259, "type": "primitive_type", "text": "int", "parent": 258, "children": [], "start_point": {"row": 110, "column": 76}, "end_point": {"row": 110, "column": 79}}, {"id": 260, "type": "identifier", "text": "pos", "parent": 258, "children": [], "start_point": {"row": 110, "column": 81}, "end_point": {"row": 110, "column": 84}}, {"id": 261, "type": "declaration", "text": "void makeNameValue(string& name, string& value, BYTE* dest, int& pos);", "parent": 156, "children": [262, 263], "start_point": {"row": 111, "column": 8}, "end_point": {"row": 111, "column": 78}}, {"id": 262, "type": "primitive_type", "text": "void", "parent": 261, "children": [], "start_point": {"row": 111, "column": 8}, "end_point": {"row": 111, "column": 12}}, {"id": 263, "type": "function_declarator", "text": "makeNameValue(string& name, string& value, BYTE* dest, int& pos)", "parent": 261, "children": [264, 265], "start_point": {"row": 111, "column": 13}, "end_point": {"row": 111, "column": 77}}, {"id": 264, "type": "identifier", "text": "makeNameValue", "parent": 263, "children": [], "start_point": {"row": 111, "column": 13}, "end_point": {"row": 111, "column": 26}}, {"id": 265, "type": "parameter_list", "text": "(string& name, string& value, BYTE* dest, int& pos)", "parent": 263, "children": [266, 269, 272, 277], "start_point": {"row": 111, "column": 26}, "end_point": {"row": 111, "column": 77}}, {"id": 266, "type": "parameter_declaration", "text": "string& name", "parent": 265, "children": [267, 268], "start_point": {"row": 111, "column": 27}, "end_point": {"row": 111, "column": 39}}, {"id": 267, "type": "type_identifier", "text": "string", "parent": 266, "children": [], "start_point": {"row": 111, "column": 27}, "end_point": {"row": 111, "column": 33}}, {"id": 268, "type": "identifier", "text": "name", "parent": 266, "children": [], "start_point": {"row": 111, "column": 35}, "end_point": {"row": 111, "column": 39}}, {"id": 269, "type": "parameter_declaration", "text": "string& value", "parent": 265, "children": [270, 271], "start_point": {"row": 111, "column": 41}, "end_point": {"row": 111, "column": 54}}, {"id": 270, "type": "type_identifier", "text": "string", "parent": 269, "children": [], "start_point": {"row": 111, "column": 41}, "end_point": {"row": 111, "column": 47}}, {"id": 271, "type": "identifier", "text": "value", "parent": 269, "children": [], "start_point": {"row": 111, "column": 49}, "end_point": {"row": 111, "column": 54}}, {"id": 272, "type": "parameter_declaration", "text": "BYTE* dest", "parent": 265, "children": [273, 274], "start_point": {"row": 111, "column": 56}, "end_point": {"row": 111, "column": 66}}, {"id": 273, "type": "type_identifier", "text": "BYTE", "parent": 272, "children": [], "start_point": {"row": 111, "column": 56}, "end_point": {"row": 111, "column": 60}}, {"id": 274, "type": "pointer_declarator", "text": "* dest", "parent": 272, "children": [275, 276], "start_point": {"row": 111, "column": 60}, "end_point": {"row": 111, "column": 66}}, {"id": 275, "type": "*", "text": "*", "parent": 274, "children": [], "start_point": {"row": 111, "column": 60}, "end_point": {"row": 111, "column": 61}}, {"id": 276, "type": "identifier", "text": "dest", "parent": 274, "children": [], "start_point": {"row": 111, "column": 62}, "end_point": {"row": 111, "column": 66}}, {"id": 277, "type": "parameter_declaration", "text": "int& pos", "parent": 265, "children": [278, 279], "start_point": {"row": 111, "column": 68}, "end_point": {"row": 111, "column": 76}}, {"id": 278, "type": "primitive_type", "text": "int", "parent": 277, "children": [], "start_point": {"row": 111, "column": 68}, "end_point": {"row": 111, "column": 71}}, {"id": 279, "type": "identifier", "text": "pos", "parent": 277, "children": [], "start_point": {"row": 111, "column": 73}, "end_point": {"row": 111, "column": 76}}, {"id": 280, "type": "declaration", "text": "void makeUnknownTypeBody(CGIUnknownTypeBody& body, int unknownType);", "parent": 156, "children": [281, 282], "start_point": {"row": 116, "column": 8}, "end_point": {"row": 116, "column": 76}}, {"id": 281, "type": "primitive_type", "text": "void", "parent": 280, "children": [], "start_point": {"row": 116, "column": 8}, "end_point": {"row": 116, "column": 12}}, {"id": 282, "type": "function_declarator", "text": "makeUnknownTypeBody(CGIUnknownTypeBody& body, int unknownType)", "parent": 280, "children": [283, 284], "start_point": {"row": 116, "column": 13}, "end_point": {"row": 116, "column": 75}}, {"id": 283, "type": "identifier", "text": "makeUnknownTypeBody", "parent": 282, "children": [], "start_point": {"row": 116, "column": 13}, "end_point": {"row": 116, "column": 32}}, {"id": 284, "type": "parameter_list", "text": "(CGIUnknownTypeBody& body, int unknownType)", "parent": 282, "children": [285, 288], "start_point": {"row": 116, "column": 32}, "end_point": {"row": 116, "column": 75}}, {"id": 285, "type": "parameter_declaration", "text": "CGIUnknownTypeBody& body", "parent": 284, "children": [286, 287], "start_point": {"row": 116, "column": 33}, "end_point": {"row": 116, "column": 57}}, {"id": 286, "type": "type_identifier", "text": "CGIUnknownTypeBody", "parent": 285, "children": [], "start_point": {"row": 116, "column": 33}, "end_point": {"row": 116, "column": 51}}, {"id": 287, "type": "identifier", "text": "body", "parent": 285, "children": [], "start_point": {"row": 116, "column": 53}, "end_point": {"row": 116, "column": 57}}, {"id": 288, "type": "parameter_declaration", "text": "int unknownType", "parent": 284, "children": [289, 290], "start_point": {"row": 116, "column": 59}, "end_point": {"row": 116, "column": 74}}, {"id": 289, "type": "primitive_type", "text": "int", "parent": 288, "children": [], "start_point": {"row": 116, "column": 59}, "end_point": {"row": 116, "column": 62}}, {"id": 290, "type": "identifier", "text": "unknownType", "parent": 288, "children": [], "start_point": {"row": 116, "column": 63}, "end_point": {"row": 116, "column": 74}}, {"id": 291, "type": "declaration", "text": "void makeStdOutBody(ByteArray& ba);", "parent": 156, "children": [292, 293], "start_point": {"row": 121, "column": 8}, "end_point": {"row": 121, "column": 43}}, {"id": 292, "type": "primitive_type", "text": "void", "parent": 291, "children": [], "start_point": {"row": 121, "column": 8}, "end_point": {"row": 121, "column": 12}}, {"id": 293, "type": "function_declarator", "text": "makeStdOutBody(ByteArray& ba)", "parent": 291, "children": [294, 295], "start_point": {"row": 121, "column": 13}, "end_point": {"row": 121, "column": 42}}, {"id": 294, "type": "identifier", "text": "makeStdOutBody", "parent": 293, "children": [], "start_point": {"row": 121, "column": 13}, "end_point": {"row": 121, "column": 27}}, {"id": 295, "type": "parameter_list", "text": "(ByteArray& ba)", "parent": 293, "children": [296], "start_point": {"row": 121, "column": 27}, "end_point": {"row": 121, "column": 42}}, {"id": 296, "type": "parameter_declaration", "text": "ByteArray& ba", "parent": 295, "children": [297, 298], "start_point": {"row": 121, "column": 28}, "end_point": {"row": 121, "column": 41}}, {"id": 297, "type": "type_identifier", "text": "ByteArray", "parent": 296, "children": [], "start_point": {"row": 121, "column": 28}, "end_point": {"row": 121, "column": 37}}, {"id": 298, "type": "identifier", "text": "ba", "parent": 296, "children": [], "start_point": {"row": 121, "column": 39}, "end_point": {"row": 121, "column": 41}}, {"id": 299, "type": "declaration", "text": "void makeStdErrBody(ByteArray& ba);", "parent": 156, "children": [300, 301], "start_point": {"row": 126, "column": 8}, "end_point": {"row": 126, "column": 43}}, {"id": 300, "type": "primitive_type", "text": "void", "parent": 299, "children": [], "start_point": {"row": 126, "column": 8}, "end_point": {"row": 126, "column": 12}}, {"id": 301, "type": "function_declarator", "text": "makeStdErrBody(ByteArray& ba)", "parent": 299, "children": [302, 303], "start_point": {"row": 126, "column": 13}, "end_point": {"row": 126, "column": 42}}, {"id": 302, "type": "identifier", "text": "makeStdErrBody", "parent": 301, "children": [], "start_point": {"row": 126, "column": 13}, "end_point": {"row": 126, "column": 27}}, {"id": 303, "type": "parameter_list", "text": "(ByteArray& ba)", "parent": 301, "children": [304], "start_point": {"row": 126, "column": 27}, "end_point": {"row": 126, "column": 42}}, {"id": 304, "type": "parameter_declaration", "text": "ByteArray& ba", "parent": 303, "children": [305, 306], "start_point": {"row": 126, "column": 28}, "end_point": {"row": 126, "column": 41}}, {"id": 305, "type": "type_identifier", "text": "ByteArray", "parent": 304, "children": [], "start_point": {"row": 126, "column": 28}, "end_point": {"row": 126, "column": 37}}, {"id": 306, "type": "identifier", "text": "ba", "parent": 304, "children": [], "start_point": {"row": 126, "column": 39}, "end_point": {"row": 126, "column": 41}}, {"id": 307, "type": "declaration", "text": "int version;", "parent": 156, "children": [308, 309], "start_point": {"row": 130, "column": 8}, "end_point": {"row": 130, "column": 20}}, {"id": 308, "type": "primitive_type", "text": "int", "parent": 307, "children": [], "start_point": {"row": 130, "column": 8}, "end_point": {"row": 130, "column": 11}}, {"id": 309, "type": "identifier", "text": "version", "parent": 307, "children": [], "start_point": {"row": 130, "column": 12}, "end_point": {"row": 130, "column": 19}}, {"id": 310, "type": "declaration", "text": "int type;", "parent": 156, "children": [311, 312], "start_point": {"row": 131, "column": 8}, "end_point": {"row": 131, "column": 17}}, {"id": 311, "type": "primitive_type", "text": "int", "parent": 310, "children": [], "start_point": {"row": 131, "column": 8}, "end_point": {"row": 131, "column": 11}}, {"id": 312, "type": "identifier", "text": "type", "parent": 310, "children": [], "start_point": {"row": 131, "column": 12}, "end_point": {"row": 131, "column": 16}}, {"id": 313, "type": "declaration", "text": "int requestID;", "parent": 156, "children": [314, 315], "start_point": {"row": 132, "column": 8}, "end_point": {"row": 132, "column": 22}}, {"id": 314, "type": "primitive_type", "text": "int", "parent": 313, "children": [], "start_point": {"row": 132, "column": 8}, "end_point": {"row": 132, "column": 11}}, {"id": 315, "type": "identifier", "text": "requestID", "parent": 313, "children": [], "start_point": {"row": 132, "column": 12}, "end_point": {"row": 132, "column": 21}}, {"id": 316, "type": "declaration", "text": "int contentLength;", "parent": 156, "children": [317, 318], "start_point": {"row": 133, "column": 8}, "end_point": {"row": 133, "column": 26}}, {"id": 317, "type": "primitive_type", "text": "int", "parent": 316, "children": [], "start_point": {"row": 133, "column": 8}, "end_point": {"row": 133, "column": 11}}, {"id": 318, "type": "identifier", "text": "contentLength", "parent": 316, "children": [], "start_point": {"row": 133, "column": 12}, "end_point": {"row": 133, "column": 25}}, {"id": 319, "type": "declaration", "text": "int paddingLength;", "parent": 156, "children": [320, 321], "start_point": {"row": 134, "column": 8}, "end_point": {"row": 134, "column": 26}}, {"id": 320, "type": "primitive_type", "text": "int", "parent": 319, "children": [], "start_point": {"row": 134, "column": 8}, "end_point": {"row": 134, "column": 11}}, {"id": 321, "type": "identifier", "text": "paddingLength", "parent": 319, "children": [], "start_point": {"row": 134, "column": 12}, "end_point": {"row": 134, "column": 25}}, {"id": 322, "type": "declaration", "text": "int role;", "parent": 156, "children": [323, 324], "start_point": {"row": 139, "column": 8}, "end_point": {"row": 139, "column": 18}}, {"id": 323, "type": "primitive_type", "text": "int", "parent": 322, "children": [], "start_point": {"row": 139, "column": 8}, "end_point": {"row": 139, "column": 11}}, {"id": 324, "type": "identifier", "text": "role", "parent": 322, "children": [], "start_point": {"row": 139, "column": 13}, "end_point": {"row": 139, "column": 17}}, {"id": 325, "type": "declaration", "text": "int flags;", "parent": 156, "children": [326, 327], "start_point": {"row": 140, "column": 8}, "end_point": {"row": 140, "column": 19}}, {"id": 326, "type": "primitive_type", "text": "int", "parent": 325, "children": [], "start_point": {"row": 140, "column": 8}, "end_point": {"row": 140, "column": 11}}, {"id": 327, "type": "identifier", "text": "flags", "parent": 325, "children": [], "start_point": {"row": 140, "column": 13}, "end_point": {"row": 140, "column": 18}}, {"id": 328, "type": "declaration", "text": "int appStatus;", "parent": 156, "children": [329, 330], "start_point": {"row": 145, "column": 8}, "end_point": {"row": 145, "column": 22}}, {"id": 329, "type": "primitive_type", "text": "int", "parent": 328, "children": [], "start_point": {"row": 145, "column": 8}, "end_point": {"row": 145, "column": 11}}, {"id": 330, "type": "identifier", "text": "appStatus", "parent": 328, "children": [], "start_point": {"row": 145, "column": 12}, "end_point": {"row": 145, "column": 21}}, {"id": 331, "type": "declaration", "text": "int protocolStatus;", "parent": 156, "children": [332, 333], "start_point": {"row": 146, "column": 8}, "end_point": {"row": 146, "column": 27}}, {"id": 332, "type": "primitive_type", "text": "int", "parent": 331, "children": [], "start_point": {"row": 146, "column": 8}, "end_point": {"row": 146, "column": 11}}, {"id": 333, "type": "identifier", "text": "protocolStatus", "parent": 331, "children": [], "start_point": {"row": 146, "column": 12}, "end_point": {"row": 146, "column": 26}}, {"id": 334, "type": "declaration", "text": "bool keepConnection;", "parent": 156, "children": [335, 336], "start_point": {"row": 151, "column": 8}, "end_point": {"row": 151, "column": 29}}, {"id": 335, "type": "primitive_type", "text": "bool", "parent": 334, "children": [], "start_point": {"row": 151, "column": 8}, "end_point": {"row": 151, "column": 12}}, {"id": 336, "type": "identifier", "text": "keepConnection", "parent": 334, "children": [], "start_point": {"row": 151, "column": 14}, "end_point": {"row": 151, "column": 28}}, {"id": 337, "type": "declaration", "text": "ByteArray data;", "parent": 156, "children": [338, 339], "start_point": {"row": 153, "column": 8}, "end_point": {"row": 153, "column": 23}}, {"id": 338, "type": "type_identifier", "text": "ByteArray", "parent": 337, "children": [], "start_point": {"row": 153, "column": 8}, "end_point": {"row": 153, "column": 17}}, {"id": 339, "type": "identifier", "text": "data", "parent": 337, "children": [], "start_point": {"row": 153, "column": 18}, "end_point": {"row": 153, "column": 22}}, {"id": 340, "type": "#endif", "text": "#endif", "parent": 0, "children": [], "start_point": {"row": 160, "column": 0}, "end_point": {"row": 160, "column": 6}}]}, "node_categories": {"declarations": {"functions": [28, 31, 34, 156, 164, 169, 179, 187, 195, 213, 224, 232, 240, 263, 282, 293, 301], "variables": [18, 23, 37, 41, 44, 47, 50, 53, 56, 59, 62, 66, 70, 73, 76, 79, 85, 89, 92, 96, 100, 103, 106, 109, 112, 115, 121, 125, 128, 132, 136, 139, 145, 149, 152, 162, 167, 172, 177, 182, 185, 190, 193, 198, 201, 206, 211, 216, 219, 222, 227, 230, 235, 238, 243, 248, 253, 258, 261, 266, 269, 272, 277, 280, 285, 288, 291, 296, 299, 304, 307, 310, 313, 316, 319, 322, 325, 328, 331, 334, 337], "classes": [39, 40, 68, 69, 87, 88, 98, 99, 123, 124, 134, 135, 147, 148], "imports": [6, 7, 9, 10, 12, 13, 15, 16], "modules": [], "enums": []}, "statements": {"expressions": [159], "assignments": [], "loops": [], "conditionals": [0, 1, 2, 5, 19, 20, 22, 24, 26, 27, 29, 30, 32, 33, 35, 36, 42, 43, 45, 46, 48, 49, 51, 52, 54, 55, 57, 58, 60, 61, 63, 64, 65, 71, 72, 74, 75, 77, 78, 80, 82, 84, 90, 91, 93, 94, 95, 101, 102, 104, 105, 107, 108, 110, 111, 113, 114, 116, 118, 120, 126, 127, 129, 130, 131, 137, 138, 140, 142, 144, 150, 151, 153, 154, 155, 157, 160, 165, 170, 173, 176, 180, 183, 184, 188, 191, 192, 196, 199, 200, 202, 205, 207, 210, 214, 217, 218, 220, 221, 225, 228, 229, 233, 236, 237, 241, 247, 252, 254, 257, 260, 264, 267, 268, 270, 271, 273, 276, 279, 283, 286, 287, 290, 294, 297, 298, 302, 305, 306, 309, 312, 315, 318, 321, 324, 327, 330, 333, 336, 338, 339, 340], "returns": [], "exceptions": []}, "expressions": {"calls": [], "literals": [8, 11, 14, 17, 83, 119, 143], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [{"node_id": 28, "universal_type": "function", "name": "{", "text_snippet": "namespace Slim {\nnamespace Net {\nnamespace CGI {\n\ntypedef struct {\n BYTE version;\n BYTE type;\n"}, {"node_id": 31, "universal_type": "function", "name": "{", "text_snippet": "namespace Net {\nnamespace CGI {\n\ntypedef struct {\n BYTE version;\n BYTE type;\n BYTE requestI"}, {"node_id": 34, "universal_type": "function", "name": "{", "text_snippet": "namespace CGI {\n\ntypedef struct {\n BYTE version;\n BYTE type;\n BYTE requestIdB1;\n BYTE re"}, {"node_id": 156, "universal_type": "function", "name": "Message", "text_snippet": "class Message {\n\n public :\n Message ();\n void clear();\n\n /*\n *\n "}, {"node_id": 164, "universal_type": "function", "name": "unknown", "text_snippet": "clear()"}, {"node_id": 169, "universal_type": "function", "name": "unknown", "text_snippet": "process(const BYTE* const buffer)"}, {"node_id": 179, "universal_type": "function", "name": "unknown", "text_snippet": "processBeginRecord(const CGIBeginRequestBody& body)"}, {"node_id": 187, "universal_type": "function", "name": "unknown", "text_snippet": "processHeader(const CGIHeader& cgiHeader)"}, {"node_id": 195, "universal_type": "function", "name": "unknown", "text_snippet": "processParams(ByteArray& content, map<string, string>& params)"}, {"node_id": 213, "universal_type": "function", "name": "unknown", "text_snippet": "processStdIn(ByteArray& content, string& params)"}, {"node_id": 224, "universal_type": "function", "name": "unknown", "text_snippet": "makeHeader(CGIHeader &header)"}, {"node_id": 232, "universal_type": "function", "name": "unknown", "text_snippet": "makeEndRequestBody(CGIEndRequestBody& body)"}, {"node_id": 240, "universal_type": "function", "name": "unknown", "text_snippet": "makeNameValue(const char* name, const char* value, BYTE* dest, int& pos)"}, {"node_id": 263, "universal_type": "function", "name": "unknown", "text_snippet": "makeNameValue(string& name, string& value, BYTE* dest, int& pos)"}, {"node_id": 282, "universal_type": "function", "name": "unknownType)", "text_snippet": "makeUnknownTypeBody(CGIUnknownTypeBody& body, int unknownType)"}, {"node_id": 293, "universal_type": "function", "name": "unknown", "text_snippet": "makeStdOutBody(ByteArray& ba)"}, {"node_id": 301, "universal_type": "function", "name": "unknown", "text_snippet": "makeStdErrBody(ByteArray& ba)"}], "class_declarations": [{"node_id": 39, "universal_type": "class", "name": "{", "text_snippet": "struct {\n BYTE version;\n BYTE type;\n BYTE requestIdB1;\n BYTE requestIdB0;\n BYTE conte"}, {"node_id": 40, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 68, "universal_type": "class", "name": "{", "text_snippet": "struct {\n BYTE roleB1;\n BYTE roleB0;\n BYTE flags;\n BYTE reserved[5];\n}"}, {"node_id": 69, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 87, "universal_type": "class", "name": "{", "text_snippet": "struct {\n CGIHeader header;\n CGIBeginRequestBody body;\n}"}, {"node_id": 88, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 98, "universal_type": "class", "name": "{", "text_snippet": "struct {\n BYTE appStatusB3;\n BYTE appStatusB2;\n BYTE appStatusB1;\n BYTE appStatusB0;\n "}, {"node_id": 99, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 123, "universal_type": "class", "name": "{", "text_snippet": "struct {\n CGIHeader header;\n CGIEndRequestBody body;\n}"}, {"node_id": 124, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 134, "universal_type": "class", "name": "{", "text_snippet": "struct {\n BYTE type;\n BYTE reserved[7];\n}"}, {"node_id": 135, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 147, "universal_type": "class", "name": "{", "text_snippet": "struct {\n CGIHeader header;\n CGIUnknownTypeBody body;\n}"}, {"node_id": 148, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}], "import_statements": [{"node_id": 6, "text": "#include \"Slim/Net/CGI/Definition.h\"\n"}, {"node_id": 7, "text": "#include"}, {"node_id": 9, "text": "#include \"Slim/Net/CGI/Exception.h\"\n"}, {"node_id": 10, "text": "#include"}, {"node_id": 12, "text": "#include <map>\n"}, {"node_id": 13, "text": "#include"}, {"node_id": 15, "text": "#include <string>\n"}, {"node_id": 16, "text": "#include"}]}, "original_source_code": "#ifndef SLIM_NET_CGI_MESSAGE_H\n#define SLIM_NET_CGI_MESSAGE_H\n\n#include \"Slim/Net/CGI/Definition.h\"\n#include \"Slim/Net/CGI/Exception.h\"\n#include <map>\n#include <string>\n\nusing std::map;\nusing std::string;\n\nnamespace Slim {\nnamespace Net {\nnamespace CGI {\n\ntypedef struct {\n BYTE version;\n BYTE type;\n BYTE requestIdB1;\n BYTE requestIdB0;\n BYTE contentLengthB1;\n BYTE contentLengthB0;\n BYTE paddingLength;\n BYTE reserved;\n} CGIHeader;\n\ntypedef struct {\n BYTE roleB1;\n BYTE roleB0;\n BYTE flags;\n BYTE reserved[5];\n} CGIBeginRequestBody;\n\ntypedef struct {\n CGIHeader header;\n CGIBeginRequestBody body;\n} CGIBeginRequestRecord;\n\ntypedef struct {\n BYTE appStatusB3;\n BYTE appStatusB2;\n BYTE appStatusB1;\n BYTE appStatusB0;\n BYTE protocolStatus;\n BYTE reserved[3];\n} CGIEndRequestBody;\n\ntypedef struct {\n CGIHeader header;\n CGIEndRequestBody body;\n} CGIEndRequestRecord;\n\ntypedef struct {\n BYTE type;\n BYTE reserved[7];\n} CGIUnknownTypeBody;\n\ntypedef struct {\n CGIHeader header;\n CGIUnknownTypeBody body;\n} CGIUnknownTypeRecord;\n\n\n/* This class handles reading and building the fastcgi messages.\n * For reading incoming mesages, we pass the input\n * stream as a param to the constructor rather than to each method.\n * Methods that build messages use and return internal buffers, so they\n * dont need a stream.\n */\nclass Message {\n\n public :\n Message ();\n void clear();\n\n /*\n *\n */\n void process(const BYTE* const buffer);\n /*\n * parse FCGI Begin Request Record.\n */\n void processBeginRecord(const CGIBeginRequestBody& body);\n\n /*\n * Interpret the FCGI Message Header.\n */\n void processHeader(const CGIHeader& cgiHeader);\n \n /*\n * Read FCGI name-value pairs from a stream until EOF. Put them\n * into a map object, storing both as strings.\n */\n void processParams(ByteArray& content, map<string, string>& params);\n \n void processStdIn(ByteArray& content, string& params);\n\n /*\n * Build an FCGI Message Header\n */\n void makeHeader(CGIHeader &header);\n\n /*\n * Build an FCGI Message UnknownTypeBodyBody\n */\n void makeEndRequestBody(CGIEndRequestBody& body);\n\n /*\n * Build a name-value body\n */\n void makeNameValue(const char* name, const char* value, BYTE* dest, int& pos);\n void makeNameValue(string& name, string& value, BYTE* dest, int& pos);\n\n /*\n * Build a FCGI Message UnknownTypeBody\n */\n void makeUnknownTypeBody(CGIUnknownTypeBody& body, int unknownType);\n \n /*\n * Build a FCGI STDIN Body\n */\n void makeStdOutBody(ByteArray& ba);\n\n /*\n * Build an FCGI STDIN Body \n */\n void makeStdErrBody(ByteArray& ba);\n /*\n * FCGI Header\n */\n int version;\n int type;\n int requestID; // 2 bytes\n int contentLength; // 2 bytes\n int paddingLength;\n\n /*\n * FCGI begin request body.\n */\n int role; // 2 bytes\n int flags;\n\n /*\n * FCGI end request body.\n */\n int appStatus;\n int protocolStatus;\n \n /*\n * Web server connection\n */\n bool keepConnection;\n\n ByteArray data;\n\n}; // end class Message\n\n} // end namespace CGI\n} // end namespace Net\n} // end namespace Slim\n#endif\n"}
80,086
c
/* * --------------------------------------------------------------------------------------------------------------------- * * Copyright (C) 2018, <NAME> * * --------------------------------------------------------------------------------------------------------------------- */ #ifndef MSP_FIXED_H #define MSP_FIXED_H #include "msp.h" #include "msp_joint.h" class MSP::Fixed { private: // Callback Functions static void submit_constraints(const NewtonJoint* joint, dFloat timestep, int thread_index); static void get_info(const NewtonJoint* const joint, NewtonJointRecord* const info); public: // Ruby Functions static VALUE rbf_is_valid(VALUE self, VALUE v_joint); static VALUE rbf_create(VALUE self, VALUE v_joint); // Main static void init_ruby(VALUE mNewton); }; #endif /* MSP_FIXED_H */
33.67
24
(translation_unit) "/*\n * ---------------------------------------------------------------------------------------------------------------------\n *\n * Copyright (C) 2018, <NAME>\n *\n * ---------------------------------------------------------------------------------------------------------------------\n */\n\n#ifndef MSP_FIXED_H\n#define MSP_FIXED_H\n\n#include "msp.h"\n#include "msp_joint.h"\n\nclass MSP::Fixed {\nprivate:\n // Callback Functions\n static void submit_constraints(const NewtonJoint* joint, dFloat timestep, int thread_index);\n static void get_info(const NewtonJoint* const joint, NewtonJointRecord* const info);\n\npublic:\n // Ruby Functions\n static VALUE rbf_is_valid(VALUE self, VALUE v_joint);\n static VALUE rbf_create(VALUE self, VALUE v_joint);\n\n // Main\n static void init_ruby(VALUE mNewton);\n};\n\n#endif /* MSP_FIXED_H */\n" (comment) "/*\n * ---------------------------------------------------------------------------------------------------------------------\n *\n * Copyright (C) 2018, <NAME>\n *\n * ---------------------------------------------------------------------------------------------------------------------\n */" (preproc_ifdef) "#ifndef MSP_FIXED_H\n#define MSP_FIXED_H\n\n#include "msp.h"\n#include "msp_joint.h"\n\nclass MSP::Fixed {\nprivate:\n // Callback Functions\n static void submit_constraints(const NewtonJoint* joint, dFloat timestep, int thread_index);\n static void get_info(const NewtonJoint* const joint, NewtonJointRecord* const info);\n\npublic:\n // Ruby Functions\n static VALUE rbf_is_valid(VALUE self, VALUE v_joint);\n static VALUE rbf_create(VALUE self, VALUE v_joint);\n\n // Main\n static void init_ruby(VALUE mNewton);\n};\n\n#endif" (#ifndef) "#ifndef" (identifier) "MSP_FIXED_H" (preproc_def) "#define MSP_FIXED_H\n" (#define) "#define" (identifier) "MSP_FIXED_H" (preproc_include) "#include "msp.h"\n" (#include) "#include" (string_literal) ""msp.h"" (") """ (string_content) "msp.h" (") """ (preproc_include) "#include "msp_joint.h"\n" (#include) "#include" (string_literal) ""msp_joint.h"" (") """ (string_content) "msp_joint.h" (") """ (function_definition) "class MSP::Fixed {\nprivate:\n // Callback Functions\n static void submit_constraints(const NewtonJoint* joint, dFloat timestep, int thread_index);\n static void get_info(const NewtonJoint* const joint, NewtonJointRecord* const info);\n\npublic:\n // Ruby Functions\n static VALUE rbf_is_valid(VALUE self, VALUE v_joint);\n static VALUE rbf_create(VALUE self, VALUE v_joint);\n\n // Main\n static void init_ruby(VALUE mNewton);\n}" (type_identifier) "class" (ERROR) "MSP::" (identifier) "MSP" (:) ":" (:) ":" (identifier) "Fixed" (compound_statement) "{\nprivate:\n // Callback Functions\n static void submit_constraints(const NewtonJoint* joint, dFloat timestep, int thread_index);\n static void get_info(const NewtonJoint* const joint, NewtonJointRecord* const info);\n\npublic:\n // Ruby Functions\n static VALUE rbf_is_valid(VALUE self, VALUE v_joint);\n static VALUE rbf_create(VALUE self, VALUE v_joint);\n\n // Main\n static void init_ruby(VALUE mNewton);\n}" ({) "{" (labeled_statement) "private:\n // Callback Functions\n static void submit_constraints(const NewtonJoint* joint, dFloat timestep, int thread_index);" (statement_identifier) "private" (:) ":" (comment) "// Callback Functions" (declaration) "static void submit_constraints(const NewtonJoint* joint, dFloat timestep, int thread_index);" (storage_class_specifier) "static" (static) "static" (primitive_type) "void" (function_declarator) "submit_constraints(const NewtonJoint* joint, dFloat timestep, int thread_index)" (identifier) "submit_constraints" (parameter_list) "(const NewtonJoint* joint, dFloat timestep, int thread_index)" (() "(" (parameter_declaration) "const NewtonJoint* joint" (type_qualifier) "const" (const) "const" (type_identifier) "NewtonJoint" (pointer_declarator) "* joint" (*) "*" (identifier) "joint" (,) "," (parameter_declaration) "dFloat timestep" (type_identifier) "dFloat" (identifier) "timestep" (,) "," (parameter_declaration) "int thread_index" (primitive_type) "int" (identifier) "thread_index" ()) ")" (;) ";" (declaration) "static void get_info(const NewtonJoint* const joint, NewtonJointRecord* const info);" (storage_class_specifier) "static" (static) "static" (primitive_type) "void" (function_declarator) "get_info(const NewtonJoint* const joint, NewtonJointRecord* const info)" (identifier) "get_info" (parameter_list) "(const NewtonJoint* const joint, NewtonJointRecord* const info)" (() "(" (parameter_declaration) "const NewtonJoint* const joint" (type_qualifier) "const" (const) "const" (type_identifier) "NewtonJoint" (pointer_declarator) "* const joint" (*) "*" (type_qualifier) "const" (const) "const" (identifier) "joint" (,) "," (parameter_declaration) "NewtonJointRecord* const info" (type_identifier) "NewtonJointRecord" (pointer_declarator) "* const info" (*) "*" (type_qualifier) "const" (const) "const" (identifier) "info" ()) ")" (;) ";" (labeled_statement) "public:\n // Ruby Functions\n static VALUE rbf_is_valid(VALUE self, VALUE v_joint);" (statement_identifier) "public" (:) ":" (comment) "// Ruby Functions" (declaration) "static VALUE rbf_is_valid(VALUE self, VALUE v_joint);" (storage_class_specifier) "static" (static) "static" (type_identifier) "VALUE" (function_declarator) "rbf_is_valid(VALUE self, VALUE v_joint)" (identifier) "rbf_is_valid" (parameter_list) "(VALUE self, VALUE v_joint)" (() "(" (parameter_declaration) "VALUE self" (type_identifier) "VALUE" (identifier) "self" (,) "," (parameter_declaration) "VALUE v_joint" (type_identifier) "VALUE" (identifier) "v_joint" ()) ")" (;) ";" (declaration) "static VALUE rbf_create(VALUE self, VALUE v_joint);" (storage_class_specifier) "static" (static) "static" (type_identifier) "VALUE" (function_declarator) "rbf_create(VALUE self, VALUE v_joint)" (identifier) "rbf_create" (parameter_list) "(VALUE self, VALUE v_joint)" (() "(" (parameter_declaration) "VALUE self" (type_identifier) "VALUE" (identifier) "self" (,) "," (parameter_declaration) "VALUE v_joint" (type_identifier) "VALUE" (identifier) "v_joint" ()) ")" (;) ";" (comment) "// Main" (declaration) "static void init_ruby(VALUE mNewton);" (storage_class_specifier) "static" (static) "static" (primitive_type) "void" (function_declarator) "init_ruby(VALUE mNewton)" (identifier) "init_ruby" (parameter_list) "(VALUE mNewton)" (() "(" (parameter_declaration) "VALUE mNewton" (type_identifier) "VALUE" (identifier) "mNewton" ()) ")" (;) ";" (}) "}" (expression_statement) ";" (;) ";" (#endif) "#endif" (comment) "/* MSP_FIXED_H */"
142
1
{"language": "c", "success": true, "metadata": {"lines": 24, "avg_line_length": 33.67, "nodes": 80, "errors": 0, "source_hash": "831a5bfbc7f94a0aa3f913bfb6f833b507953f652d0597761065451bc27c5a22", "categorized_nodes": 60}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef MSP_FIXED_H\n#define MSP_FIXED_H\n\n#include \"msp.h\"\n#include \"msp_joint.h\"\n\nclass MSP::Fixed {\nprivate:\n // Callback Functions\n static void submit_constraints(const NewtonJoint* joint, dFloat timestep, int thread_index);\n static void get_info(const NewtonJoint* const joint, NewtonJointRecord* const info);\n\npublic:\n // Ruby Functions\n static VALUE rbf_is_valid(VALUE self, VALUE v_joint);\n static VALUE rbf_create(VALUE self, VALUE v_joint);\n\n // Main\n static void init_ruby(VALUE mNewton);\n};\n\n#endif", "parent": null, "children": [1, 2, 3, 6, 9, 12, 79], "start_point": {"row": 8, "column": 0}, "end_point": {"row": 29, "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": "MSP_FIXED_H", "parent": 0, "children": [], "start_point": {"row": 8, "column": 8}, "end_point": {"row": 8, "column": 19}}, {"id": 3, "type": "preproc_def", "text": "#define MSP_FIXED_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": "MSP_FIXED_H", "parent": 3, "children": [], "start_point": {"row": 9, "column": 8}, "end_point": {"row": 9, "column": 19}}, {"id": 6, "type": "preproc_include", "text": "#include \"msp.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": "string_literal", "text": "\"msp.h\"", "parent": 6, "children": [], "start_point": {"row": 11, "column": 9}, "end_point": {"row": 11, "column": 16}}, {"id": 9, "type": "preproc_include", "text": "#include \"msp_joint.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": "string_literal", "text": "\"msp_joint.h\"", "parent": 9, "children": [], "start_point": {"row": 12, "column": 9}, "end_point": {"row": 12, "column": 22}}, {"id": 12, "type": "function_definition", "text": "class MSP::Fixed {\nprivate:\n // Callback Functions\n static void submit_constraints(const NewtonJoint* joint, dFloat timestep, int thread_index);\n static void get_info(const NewtonJoint* const joint, NewtonJointRecord* const info);\n\npublic:\n // Ruby Functions\n static VALUE rbf_is_valid(VALUE self, VALUE v_joint);\n static VALUE rbf_create(VALUE self, VALUE v_joint);\n\n // Main\n static void init_ruby(VALUE mNewton);\n}", "parent": 0, "children": [13, 15], "start_point": {"row": 14, "column": 0}, "end_point": {"row": 27, "column": 1}}, {"id": 13, "type": "ERROR", "text": "MSP::", "parent": 12, "children": [14], "start_point": {"row": 14, "column": 6}, "end_point": {"row": 14, "column": 11}}, {"id": 14, "type": "identifier", "text": "MSP", "parent": 13, "children": [], "start_point": {"row": 14, "column": 6}, "end_point": {"row": 14, "column": 9}}, {"id": 15, "type": "identifier", "text": "Fixed", "parent": 12, "children": [], "start_point": {"row": 14, "column": 11}, "end_point": {"row": 14, "column": 16}}, {"id": 16, "type": "labeled_statement", "text": "private:\n // Callback Functions\n static void submit_constraints(const NewtonJoint* joint, dFloat timestep, int thread_index);", "parent": 12, "children": [17], "start_point": {"row": 15, "column": 0}, "end_point": {"row": 17, "column": 96}}, {"id": 17, "type": "declaration", "text": "static void submit_constraints(const NewtonJoint* joint, dFloat timestep, int thread_index);", "parent": 16, "children": [18, 19], "start_point": {"row": 17, "column": 4}, "end_point": {"row": 17, "column": 96}}, {"id": 18, "type": "primitive_type", "text": "void", "parent": 17, "children": [], "start_point": {"row": 17, "column": 11}, "end_point": {"row": 17, "column": 15}}, {"id": 19, "type": "function_declarator", "text": "submit_constraints(const NewtonJoint* joint, dFloat timestep, int thread_index)", "parent": 17, "children": [20, 21], "start_point": {"row": 17, "column": 16}, "end_point": {"row": 17, "column": 95}}, {"id": 20, "type": "identifier", "text": "submit_constraints", "parent": 19, "children": [], "start_point": {"row": 17, "column": 16}, "end_point": {"row": 17, "column": 34}}, {"id": 21, "type": "parameter_list", "text": "(const NewtonJoint* joint, dFloat timestep, int thread_index)", "parent": 19, "children": [22, 27, 30], "start_point": {"row": 17, "column": 34}, "end_point": {"row": 17, "column": 95}}, {"id": 22, "type": "parameter_declaration", "text": "const NewtonJoint* joint", "parent": 21, "children": [23, 24], "start_point": {"row": 17, "column": 35}, "end_point": {"row": 17, "column": 59}}, {"id": 23, "type": "type_identifier", "text": "NewtonJoint", "parent": 22, "children": [], "start_point": {"row": 17, "column": 41}, "end_point": {"row": 17, "column": 52}}, {"id": 24, "type": "pointer_declarator", "text": "* joint", "parent": 22, "children": [25, 26], "start_point": {"row": 17, "column": 52}, "end_point": {"row": 17, "column": 59}}, {"id": 25, "type": "*", "text": "*", "parent": 24, "children": [], "start_point": {"row": 17, "column": 52}, "end_point": {"row": 17, "column": 53}}, {"id": 26, "type": "identifier", "text": "joint", "parent": 24, "children": [], "start_point": {"row": 17, "column": 54}, "end_point": {"row": 17, "column": 59}}, {"id": 27, "type": "parameter_declaration", "text": "dFloat timestep", "parent": 21, "children": [28, 29], "start_point": {"row": 17, "column": 61}, "end_point": {"row": 17, "column": 76}}, {"id": 28, "type": "type_identifier", "text": "dFloat", "parent": 27, "children": [], "start_point": {"row": 17, "column": 61}, "end_point": {"row": 17, "column": 67}}, {"id": 29, "type": "identifier", "text": "timestep", "parent": 27, "children": [], "start_point": {"row": 17, "column": 68}, "end_point": {"row": 17, "column": 76}}, {"id": 30, "type": "parameter_declaration", "text": "int thread_index", "parent": 21, "children": [31, 32], "start_point": {"row": 17, "column": 78}, "end_point": {"row": 17, "column": 94}}, {"id": 31, "type": "primitive_type", "text": "int", "parent": 30, "children": [], "start_point": {"row": 17, "column": 78}, "end_point": {"row": 17, "column": 81}}, {"id": 32, "type": "identifier", "text": "thread_index", "parent": 30, "children": [], "start_point": {"row": 17, "column": 82}, "end_point": {"row": 17, "column": 94}}, {"id": 33, "type": "declaration", "text": "static void get_info(const NewtonJoint* const joint, NewtonJointRecord* const info);", "parent": 12, "children": [34, 35], "start_point": {"row": 18, "column": 4}, "end_point": {"row": 18, "column": 88}}, {"id": 34, "type": "primitive_type", "text": "void", "parent": 33, "children": [], "start_point": {"row": 18, "column": 11}, "end_point": {"row": 18, "column": 15}}, {"id": 35, "type": "function_declarator", "text": "get_info(const NewtonJoint* const joint, NewtonJointRecord* const info)", "parent": 33, "children": [36, 37], "start_point": {"row": 18, "column": 16}, "end_point": {"row": 18, "column": 87}}, {"id": 36, "type": "identifier", "text": "get_info", "parent": 35, "children": [], "start_point": {"row": 18, "column": 16}, "end_point": {"row": 18, "column": 24}}, {"id": 37, "type": "parameter_list", "text": "(const NewtonJoint* const joint, NewtonJointRecord* const info)", "parent": 35, "children": [38, 43], "start_point": {"row": 18, "column": 24}, "end_point": {"row": 18, "column": 87}}, {"id": 38, "type": "parameter_declaration", "text": "const NewtonJoint* const joint", "parent": 37, "children": [39, 40], "start_point": {"row": 18, "column": 25}, "end_point": {"row": 18, "column": 55}}, {"id": 39, "type": "type_identifier", "text": "NewtonJoint", "parent": 38, "children": [], "start_point": {"row": 18, "column": 31}, "end_point": {"row": 18, "column": 42}}, {"id": 40, "type": "pointer_declarator", "text": "* const joint", "parent": 38, "children": [41, 42], "start_point": {"row": 18, "column": 42}, "end_point": {"row": 18, "column": 55}}, {"id": 41, "type": "*", "text": "*", "parent": 40, "children": [], "start_point": {"row": 18, "column": 42}, "end_point": {"row": 18, "column": 43}}, {"id": 42, "type": "identifier", "text": "joint", "parent": 40, "children": [], "start_point": {"row": 18, "column": 50}, "end_point": {"row": 18, "column": 55}}, {"id": 43, "type": "parameter_declaration", "text": "NewtonJointRecord* const info", "parent": 37, "children": [44, 45], "start_point": {"row": 18, "column": 57}, "end_point": {"row": 18, "column": 86}}, {"id": 44, "type": "type_identifier", "text": "NewtonJointRecord", "parent": 43, "children": [], "start_point": {"row": 18, "column": 57}, "end_point": {"row": 18, "column": 74}}, {"id": 45, "type": "pointer_declarator", "text": "* const info", "parent": 43, "children": [46, 47], "start_point": {"row": 18, "column": 74}, "end_point": {"row": 18, "column": 86}}, {"id": 46, "type": "*", "text": "*", "parent": 45, "children": [], "start_point": {"row": 18, "column": 74}, "end_point": {"row": 18, "column": 75}}, {"id": 47, "type": "identifier", "text": "info", "parent": 45, "children": [], "start_point": {"row": 18, "column": 82}, "end_point": {"row": 18, "column": 86}}, {"id": 48, "type": "labeled_statement", "text": "public:\n // Ruby Functions\n static VALUE rbf_is_valid(VALUE self, VALUE v_joint);", "parent": 12, "children": [49], "start_point": {"row": 20, "column": 0}, "end_point": {"row": 22, "column": 57}}, {"id": 49, "type": "declaration", "text": "static VALUE rbf_is_valid(VALUE self, VALUE v_joint);", "parent": 48, "children": [50, 51], "start_point": {"row": 22, "column": 4}, "end_point": {"row": 22, "column": 57}}, {"id": 50, "type": "type_identifier", "text": "VALUE", "parent": 49, "children": [], "start_point": {"row": 22, "column": 11}, "end_point": {"row": 22, "column": 16}}, {"id": 51, "type": "function_declarator", "text": "rbf_is_valid(VALUE self, VALUE v_joint)", "parent": 49, "children": [52, 53], "start_point": {"row": 22, "column": 17}, "end_point": {"row": 22, "column": 56}}, {"id": 52, "type": "identifier", "text": "rbf_is_valid", "parent": 51, "children": [], "start_point": {"row": 22, "column": 17}, "end_point": {"row": 22, "column": 29}}, {"id": 53, "type": "parameter_list", "text": "(VALUE self, VALUE v_joint)", "parent": 51, "children": [54, 57], "start_point": {"row": 22, "column": 29}, "end_point": {"row": 22, "column": 56}}, {"id": 54, "type": "parameter_declaration", "text": "VALUE self", "parent": 53, "children": [55, 56], "start_point": {"row": 22, "column": 30}, "end_point": {"row": 22, "column": 40}}, {"id": 55, "type": "type_identifier", "text": "VALUE", "parent": 54, "children": [], "start_point": {"row": 22, "column": 30}, "end_point": {"row": 22, "column": 35}}, {"id": 56, "type": "identifier", "text": "self", "parent": 54, "children": [], "start_point": {"row": 22, "column": 36}, "end_point": {"row": 22, "column": 40}}, {"id": 57, "type": "parameter_declaration", "text": "VALUE v_joint", "parent": 53, "children": [58, 59], "start_point": {"row": 22, "column": 42}, "end_point": {"row": 22, "column": 55}}, {"id": 58, "type": "type_identifier", "text": "VALUE", "parent": 57, "children": [], "start_point": {"row": 22, "column": 42}, "end_point": {"row": 22, "column": 47}}, {"id": 59, "type": "identifier", "text": "v_joint", "parent": 57, "children": [], "start_point": {"row": 22, "column": 48}, "end_point": {"row": 22, "column": 55}}, {"id": 60, "type": "declaration", "text": "static VALUE rbf_create(VALUE self, VALUE v_joint);", "parent": 12, "children": [61, 62], "start_point": {"row": 23, "column": 4}, "end_point": {"row": 23, "column": 55}}, {"id": 61, "type": "type_identifier", "text": "VALUE", "parent": 60, "children": [], "start_point": {"row": 23, "column": 11}, "end_point": {"row": 23, "column": 16}}, {"id": 62, "type": "function_declarator", "text": "rbf_create(VALUE self, VALUE v_joint)", "parent": 60, "children": [63, 64], "start_point": {"row": 23, "column": 17}, "end_point": {"row": 23, "column": 54}}, {"id": 63, "type": "identifier", "text": "rbf_create", "parent": 62, "children": [], "start_point": {"row": 23, "column": 17}, "end_point": {"row": 23, "column": 27}}, {"id": 64, "type": "parameter_list", "text": "(VALUE self, VALUE v_joint)", "parent": 62, "children": [65, 68], "start_point": {"row": 23, "column": 27}, "end_point": {"row": 23, "column": 54}}, {"id": 65, "type": "parameter_declaration", "text": "VALUE self", "parent": 64, "children": [66, 67], "start_point": {"row": 23, "column": 28}, "end_point": {"row": 23, "column": 38}}, {"id": 66, "type": "type_identifier", "text": "VALUE", "parent": 65, "children": [], "start_point": {"row": 23, "column": 28}, "end_point": {"row": 23, "column": 33}}, {"id": 67, "type": "identifier", "text": "self", "parent": 65, "children": [], "start_point": {"row": 23, "column": 34}, "end_point": {"row": 23, "column": 38}}, {"id": 68, "type": "parameter_declaration", "text": "VALUE v_joint", "parent": 64, "children": [69, 70], "start_point": {"row": 23, "column": 40}, "end_point": {"row": 23, "column": 53}}, {"id": 69, "type": "type_identifier", "text": "VALUE", "parent": 68, "children": [], "start_point": {"row": 23, "column": 40}, "end_point": {"row": 23, "column": 45}}, {"id": 70, "type": "identifier", "text": "v_joint", "parent": 68, "children": [], "start_point": {"row": 23, "column": 46}, "end_point": {"row": 23, "column": 53}}, {"id": 71, "type": "declaration", "text": "static void init_ruby(VALUE mNewton);", "parent": 12, "children": [72, 73], "start_point": {"row": 26, "column": 4}, "end_point": {"row": 26, "column": 41}}, {"id": 72, "type": "primitive_type", "text": "void", "parent": 71, "children": [], "start_point": {"row": 26, "column": 11}, "end_point": {"row": 26, "column": 15}}, {"id": 73, "type": "function_declarator", "text": "init_ruby(VALUE mNewton)", "parent": 71, "children": [74, 75], "start_point": {"row": 26, "column": 16}, "end_point": {"row": 26, "column": 40}}, {"id": 74, "type": "identifier", "text": "init_ruby", "parent": 73, "children": [], "start_point": {"row": 26, "column": 16}, "end_point": {"row": 26, "column": 25}}, {"id": 75, "type": "parameter_list", "text": "(VALUE mNewton)", "parent": 73, "children": [76], "start_point": {"row": 26, "column": 25}, "end_point": {"row": 26, "column": 40}}, {"id": 76, "type": "parameter_declaration", "text": "VALUE mNewton", "parent": 75, "children": [77, 78], "start_point": {"row": 26, "column": 26}, "end_point": {"row": 26, "column": 39}}, {"id": 77, "type": "type_identifier", "text": "VALUE", "parent": 76, "children": [], "start_point": {"row": 26, "column": 26}, "end_point": {"row": 26, "column": 31}}, {"id": 78, "type": "identifier", "text": "mNewton", "parent": 76, "children": [], "start_point": {"row": 26, "column": 32}, "end_point": {"row": 26, "column": 39}}, {"id": 79, "type": "#endif", "text": "#endif", "parent": 0, "children": [], "start_point": {"row": 29, "column": 0}, "end_point": {"row": 29, "column": 6}}]}, "node_categories": {"declarations": {"functions": [12, 19, 35, 51, 62, 73], "variables": [17, 22, 27, 30, 33, 38, 43, 49, 54, 57, 60, 65, 68, 71, 76], "classes": [], "imports": [6, 7, 9, 10], "modules": [], "enums": []}, "statements": {"expressions": [], "assignments": [], "loops": [], "conditionals": [0, 1, 2, 5, 14, 15, 20, 23, 26, 28, 29, 32, 36, 39, 42, 44, 47, 50, 52, 55, 56, 58, 59, 61, 63, 66, 67, 69, 70, 74, 77, 78, 79], "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": "MSP::Fixed", "text_snippet": "class MSP::Fixed {\nprivate:\n // Callback Functions\n static void submit_constraints(const Newto"}, {"node_id": 19, "universal_type": "function", "name": "thread_index)", "text_snippet": "submit_constraints(const NewtonJoint* joint, dFloat timestep, int thread_index)"}, {"node_id": 35, "universal_type": "function", "name": "unknown", "text_snippet": "get_info(const NewtonJoint* const joint, NewtonJointRecord* const info)"}, {"node_id": 51, "universal_type": "function", "name": "unknown", "text_snippet": "rbf_is_valid(VALUE self, VALUE v_joint)"}, {"node_id": 62, "universal_type": "function", "name": "unknown", "text_snippet": "rbf_create(VALUE self, VALUE v_joint)"}, {"node_id": 73, "universal_type": "function", "name": "unknown", "text_snippet": "init_ruby(VALUE mNewton)"}], "class_declarations": [], "import_statements": [{"node_id": 6, "text": "#include \"msp.h\"\n"}, {"node_id": 7, "text": "#include"}, {"node_id": 9, "text": "#include \"msp_joint.h\"\n"}, {"node_id": 10, "text": "#include"}]}, "original_source_code": "/*\n * ---------------------------------------------------------------------------------------------------------------------\n *\n * Copyright (C) 2018, <NAME>\n *\n * ---------------------------------------------------------------------------------------------------------------------\n */\n\n#ifndef MSP_FIXED_H\n#define MSP_FIXED_H\n\n#include \"msp.h\"\n#include \"msp_joint.h\"\n\nclass MSP::Fixed {\nprivate:\n // Callback Functions\n static void submit_constraints(const NewtonJoint* joint, dFloat timestep, int thread_index);\n static void get_info(const NewtonJoint* const joint, NewtonJointRecord* const info);\n\npublic:\n // Ruby Functions\n static VALUE rbf_is_valid(VALUE self, VALUE v_joint);\n static VALUE rbf_create(VALUE self, VALUE v_joint);\n\n // Main\n static void init_ruby(VALUE mNewton);\n};\n\n#endif /* MSP_FIXED_H */\n"}
80,087
c
#pragma once #include "CoreMinimal.h" #include "IParserOsm.h" #include "ProvidersInterfaces/IProviderRoads.h" #include "RoadsData.h" #include "LoaderRoadsOsm.generated.h" class UOsmReader; /** * \class ULoaderRoadsOsm * \brief Class for process roads data from OSM. * * @see IParserOsm, IProviderRoads */ UCLASS(Blueprintable) class GEOTEMPLOADERS_API ULoaderRoadsOsm : public UObject, public IParserOsm, public IProviderRoads { GENERATED_BODY() public: /** @name Implementation of IParserOsm */ ///@{ virtual void SetOsmReader_Implementation(UOsmReader* inOsmReader) override; ///@} /** @name Implementation of IProviderRoads */ ///@{ virtual FRoadNetwork GetRoadNetwork_Implementation() override; ///@} private: /** Inner data reader. */ UPROPERTY() UOsmReader* osmReader; };
23
33
(translation_unit) "#pragma once\n\n#include "CoreMinimal.h"\n\n#include "IParserOsm.h"\n#include "ProvidersInterfaces/IProviderRoads.h"\n#include "RoadsData.h"\n\n#include "LoaderRoadsOsm.generated.h"\n\n\nclass UOsmReader;\n\n\n/**\n* \class ULoaderRoadsOsm\n* \brief Class for process roads data from OSM.\n*\n* @see IParserOsm, IProviderRoads\n*/\nUCLASS(Blueprintable)\nclass GEOTEMPLOADERS_API ULoaderRoadsOsm : public UObject, public IParserOsm, public IProviderRoads\n{\n GENERATED_BODY()\n\npublic:\n\n /** @name Implementation of IParserOsm */\n ///@{\n virtual void SetOsmReader_Implementation(UOsmReader* inOsmReader) override;\n ///@}\n\n /** @name Implementation of IProviderRoads */\n ///@{\n virtual FRoadNetwork GetRoadNetwork_Implementation() override;\n ///@}\n\nprivate:\n\n /** Inner data reader. */\n UPROPERTY()\n UOsmReader* osmReader;\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 "IParserOsm.h"\n" (#include) "#include" (string_literal) ""IParserOsm.h"" (") """ (string_content) "IParserOsm.h" (") """ (preproc_include) "#include "ProvidersInterfaces/IProviderRoads.h"\n" (#include) "#include" (string_literal) ""ProvidersInterfaces/IProviderRoads.h"" (") """ (string_content) "ProvidersInterfaces/IProviderRoads.h" (") """ (preproc_include) "#include "RoadsData.h"\n" (#include) "#include" (string_literal) ""RoadsData.h"" (") """ (string_content) "RoadsData.h" (") """ (preproc_include) "#include "LoaderRoadsOsm.generated.h"\n" (#include) "#include" (string_literal) ""LoaderRoadsOsm.generated.h"" (") """ (string_content) "LoaderRoadsOsm.generated.h" (") """ (declaration) "class UOsmReader;" (type_identifier) "class" (identifier) "UOsmReader" (;) ";" (comment) "/**\n* \class ULoaderRoadsOsm\n* \brief Class for process roads data from OSM.\n*\n* @see IParserOsm, IProviderRoads\n*/" (declaration) "UCLASS(Blueprintable)\nclass" (macro_type_specifier) "UCLASS(Blueprintable)" (identifier) "UCLASS" (() "(" (type_descriptor) "Blueprintable" (type_identifier) "Blueprintable" ()) ")" (identifier) "class" (;) "" (declaration) "GEOTEMPLOADERS_API ULoaderRoadsOsm : public UObject, public IParserOsm, public IProviderRoads\n{\n GENERATED_BODY()\n\npublic:\n\n /** @name Implementation of IParserOsm */\n ///@{\n virtual void SetOsmReader_Implementation(UOsmReader* inOsmReader) override;" (type_identifier) "GEOTEMPLOADERS_API" (identifier) "ULoaderRoadsOsm" (ERROR) ": public UObject" (:) ":" (identifier) "public" (identifier) "UObject" (,) "," (ERROR) "public" (identifier) "public" (identifier) "IParserOsm" (ERROR) ", public IProviderRoads\n{\n GENERATED_BODY()\n\npublic:\n\n /** @name Implementation of IParserOsm */\n ///@{\n virtual void SetOsmReader_Implementation(UOsmReader* inOsmReader) override" (,) "," (ERROR) "public IProviderRoads\n{" (identifier) "public" (identifier) "IProviderRoads" ({) "{" (function_declarator) "GENERATED_BODY()\n\npublic:\n\n /** @name Implementation of IParserOsm */\n ///@{\n virtual void SetOsmReader_Implementation(UOsmReader* inOsmReader) override" (identifier) "GENERATED_BODY" (parameter_list) "()" (() "(" ()) ")" (identifier) "public" (ERROR) ":" (:) ":" (comment) "/** @name Implementation of IParserOsm */" (comment) "///@{" (identifier) "virtual" (identifier) "void" (call_expression) "SetOsmReader_Implementation(UOsmReader* inOsmReader)" (identifier) "SetOsmReader_Implementation" (argument_list) "(UOsmReader* inOsmReader)" (() "(" (binary_expression) "UOsmReader* inOsmReader" (identifier) "UOsmReader" (*) "*" (identifier) "inOsmReader" ()) ")" (identifier) "override" (;) ";" (comment) "///@}" (comment) "/** @name Implementation of IProviderRoads */" (comment) "///@{" (ERROR) "virtual FRoadNetwork GetRoadNetwork_Implementation() override" (type_identifier) "virtual" (ERROR) "FRoadNetwork" (identifier) "FRoadNetwork" (function_declarator) "GetRoadNetwork_Implementation()" (identifier) "GetRoadNetwork_Implementation" (parameter_list) "()" (() "(" ()) ")" (type_identifier) "override" (expression_statement) ";" (;) ";" (comment) "///@}" (labeled_statement) "private:\n\n /** Inner data reader. */\n UPROPERTY()" (statement_identifier) "private" (:) ":" (comment) "/** Inner data reader. */" (expression_statement) "UPROPERTY()" (call_expression) "UPROPERTY()" (identifier) "UPROPERTY" (argument_list) "()" (() "(" ()) ")" (;) "" (declaration) "UOsmReader* osmReader;" (type_identifier) "UOsmReader" (pointer_declarator) "* osmReader" (*) "*" (identifier) "osmReader" (;) ";" (ERROR) "}" (}) "}" (expression_statement) ";" (;) ";"
125
8
{"language": "c", "success": true, "metadata": {"lines": 33, "avg_line_length": 23.0, "nodes": 64, "errors": 0, "source_hash": "9ee264281b0e73902a18d9e5ee45d5494682d00ae040aa81e2a133eabde028fe", "categorized_nodes": 48}, "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": 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": "\"CoreMinimal.h\"", "parent": 3, "children": [], "start_point": {"row": 2, "column": 9}, "end_point": {"row": 2, "column": 24}}, {"id": 6, "type": "preproc_include", "text": "#include \"IParserOsm.h\"\n", "parent": null, "children": [7, 8], "start_point": {"row": 4, "column": 0}, "end_point": {"row": 5, "column": 0}}, {"id": 7, "type": "#include", "text": "#include", "parent": 6, "children": [], "start_point": {"row": 4, "column": 0}, "end_point": {"row": 4, "column": 8}}, {"id": 8, "type": "string_literal", "text": "\"IParserOsm.h\"", "parent": 6, "children": [], "start_point": {"row": 4, "column": 9}, "end_point": {"row": 4, "column": 23}}, {"id": 9, "type": "preproc_include", "text": "#include \"ProvidersInterfaces/IProviderRoads.h\"\n", "parent": null, "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": "\"ProvidersInterfaces/IProviderRoads.h\"", "parent": 9, "children": [], "start_point": {"row": 5, "column": 9}, "end_point": {"row": 5, "column": 47}}, {"id": 12, "type": "preproc_include", "text": "#include \"RoadsData.h\"\n", "parent": null, "children": [13, 14], "start_point": {"row": 6, "column": 0}, "end_point": {"row": 7, "column": 0}}, {"id": 13, "type": "#include", "text": "#include", "parent": 12, "children": [], "start_point": {"row": 6, "column": 0}, "end_point": {"row": 6, "column": 8}}, {"id": 14, "type": "string_literal", "text": "\"RoadsData.h\"", "parent": 12, "children": [], "start_point": {"row": 6, "column": 9}, "end_point": {"row": 6, "column": 22}}, {"id": 15, "type": "preproc_include", "text": "#include \"LoaderRoadsOsm.generated.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": "\"LoaderRoadsOsm.generated.h\"", "parent": 15, "children": [], "start_point": {"row": 8, "column": 9}, "end_point": {"row": 8, "column": 37}}, {"id": 18, "type": "declaration", "text": "class UOsmReader;", "parent": null, "children": [19], "start_point": {"row": 11, "column": 0}, "end_point": {"row": 11, "column": 17}}, {"id": 19, "type": "identifier", "text": "UOsmReader", "parent": 18, "children": [], "start_point": {"row": 11, "column": 6}, "end_point": {"row": 11, "column": 16}}, {"id": 20, "type": "declaration", "text": "UCLASS(Blueprintable)\nclass", "parent": null, "children": [21], "start_point": {"row": 20, "column": 0}, "end_point": {"row": 21, "column": 5}}, {"id": 21, "type": "macro_type_specifier", "text": "UCLASS(Blueprintable)", "parent": 20, "children": [22, 23], "start_point": {"row": 20, "column": 0}, "end_point": {"row": 20, "column": 21}}, {"id": 22, "type": "identifier", "text": "UCLASS", "parent": 21, "children": [], "start_point": {"row": 20, "column": 0}, "end_point": {"row": 20, "column": 6}}, {"id": 23, "type": "type_descriptor", "text": "Blueprintable", "parent": 21, "children": [24], "start_point": {"row": 20, "column": 7}, "end_point": {"row": 20, "column": 20}}, {"id": 24, "type": "type_identifier", "text": "Blueprintable", "parent": 23, "children": [], "start_point": {"row": 20, "column": 7}, "end_point": {"row": 20, "column": 20}}, {"id": 25, "type": "declaration", "text": "GEOTEMPLOADERS_API ULoaderRoadsOsm : public UObject, public IParserOsm, public IProviderRoads\n{\n\tGENERATED_BODY()\n\npublic:\n\n\t/** @name Implementation of IParserOsm */\n\t///@{\n\tvirtual void SetOsmReader_Implementation(UOsmReader* inOsmReader) override;", "parent": null, "children": [26, 27, 28, 30, 31], "start_point": {"row": 21, "column": 6}, "end_point": {"row": 29, "column": 76}}, {"id": 26, "type": "type_identifier", "text": "GEOTEMPLOADERS_API", "parent": 25, "children": [], "start_point": {"row": 21, "column": 6}, "end_point": {"row": 21, "column": 24}}, {"id": 27, "type": "identifier", "text": "ULoaderRoadsOsm", "parent": 25, "children": [], "start_point": {"row": 21, "column": 25}, "end_point": {"row": 21, "column": 40}}, {"id": 28, "type": "ERROR", "text": ": public UObject", "parent": 25, "children": [29], "start_point": {"row": 21, "column": 41}, "end_point": {"row": 21, "column": 57}}, {"id": 29, "type": "identifier", "text": "UObject", "parent": 28, "children": [], "start_point": {"row": 21, "column": 50}, "end_point": {"row": 21, "column": 57}}, {"id": 30, "type": "identifier", "text": "IParserOsm", "parent": 25, "children": [], "start_point": {"row": 21, "column": 66}, "end_point": {"row": 21, "column": 76}}, {"id": 31, "type": "ERROR", "text": ", public IProviderRoads\n{\n\tGENERATED_BODY()\n\npublic:\n\n\t/** @name Implementation of IParserOsm */\n\t///@{\n\tvirtual void SetOsmReader_Implementation(UOsmReader* inOsmReader) override", "parent": 25, "children": [32, 34], "start_point": {"row": 21, "column": 76}, "end_point": {"row": 29, "column": 75}}, {"id": 32, "type": "ERROR", "text": "public IProviderRoads\n{", "parent": 31, "children": [33], "start_point": {"row": 21, "column": 78}, "end_point": {"row": 22, "column": 1}}, {"id": 33, "type": "identifier", "text": "IProviderRoads", "parent": 32, "children": [], "start_point": {"row": 21, "column": 85}, "end_point": {"row": 21, "column": 99}}, {"id": 34, "type": "function_declarator", "text": "GENERATED_BODY()\n\npublic:\n\n\t/** @name Implementation of IParserOsm */\n\t///@{\n\tvirtual void SetOsmReader_Implementation(UOsmReader* inOsmReader) override", "parent": 31, "children": [35, 36, 37, 38, 39, 46], "start_point": {"row": 23, "column": 1}, "end_point": {"row": 29, "column": 75}}, {"id": 35, "type": "identifier", "text": "GENERATED_BODY", "parent": 34, "children": [], "start_point": {"row": 23, "column": 1}, "end_point": {"row": 23, "column": 15}}, {"id": 36, "type": "parameter_list", "text": "()", "parent": 34, "children": [], "start_point": {"row": 23, "column": 15}, "end_point": {"row": 23, "column": 17}}, {"id": 37, "type": "identifier", "text": "virtual", "parent": 34, "children": [], "start_point": {"row": 29, "column": 1}, "end_point": {"row": 29, "column": 8}}, {"id": 38, "type": "identifier", "text": "void", "parent": 34, "children": [], "start_point": {"row": 29, "column": 9}, "end_point": {"row": 29, "column": 13}}, {"id": 39, "type": "call_expression", "text": "SetOsmReader_Implementation(UOsmReader* inOsmReader)", "parent": 34, "children": [40, 41], "start_point": {"row": 29, "column": 14}, "end_point": {"row": 29, "column": 66}}, {"id": 40, "type": "identifier", "text": "SetOsmReader_Implementation", "parent": 39, "children": [], "start_point": {"row": 29, "column": 14}, "end_point": {"row": 29, "column": 41}}, {"id": 41, "type": "argument_list", "text": "(UOsmReader* inOsmReader)", "parent": 39, "children": [42], "start_point": {"row": 29, "column": 41}, "end_point": {"row": 29, "column": 66}}, {"id": 42, "type": "binary_expression", "text": "UOsmReader* inOsmReader", "parent": 41, "children": [43, 44, 45], "start_point": {"row": 29, "column": 42}, "end_point": {"row": 29, "column": 65}}, {"id": 43, "type": "identifier", "text": "UOsmReader", "parent": 42, "children": [], "start_point": {"row": 29, "column": 42}, "end_point": {"row": 29, "column": 52}}, {"id": 44, "type": "*", "text": "*", "parent": 42, "children": [], "start_point": {"row": 29, "column": 52}, "end_point": {"row": 29, "column": 53}}, {"id": 45, "type": "identifier", "text": "inOsmReader", "parent": 42, "children": [], "start_point": {"row": 29, "column": 54}, "end_point": {"row": 29, "column": 65}}, {"id": 46, "type": "identifier", "text": "override", "parent": 34, "children": [], "start_point": {"row": 29, "column": 67}, "end_point": {"row": 29, "column": 75}}, {"id": 47, "type": "ERROR", "text": "virtual FRoadNetwork GetRoadNetwork_Implementation() override", "parent": null, "children": [48, 49, 51, 54], "start_point": {"row": 34, "column": 1}, "end_point": {"row": 34, "column": 62}}, {"id": 48, "type": "type_identifier", "text": "virtual", "parent": 47, "children": [], "start_point": {"row": 34, "column": 1}, "end_point": {"row": 34, "column": 8}}, {"id": 49, "type": "ERROR", "text": "FRoadNetwork", "parent": 47, "children": [50], "start_point": {"row": 34, "column": 9}, "end_point": {"row": 34, "column": 21}}, {"id": 50, "type": "identifier", "text": "FRoadNetwork", "parent": 49, "children": [], "start_point": {"row": 34, "column": 9}, "end_point": {"row": 34, "column": 21}}, {"id": 51, "type": "function_declarator", "text": "GetRoadNetwork_Implementation()", "parent": 47, "children": [52, 53], "start_point": {"row": 34, "column": 22}, "end_point": {"row": 34, "column": 53}}, {"id": 52, "type": "identifier", "text": "GetRoadNetwork_Implementation", "parent": 51, "children": [], "start_point": {"row": 34, "column": 22}, "end_point": {"row": 34, "column": 51}}, {"id": 53, "type": "parameter_list", "text": "()", "parent": 51, "children": [], "start_point": {"row": 34, "column": 51}, "end_point": {"row": 34, "column": 53}}, {"id": 54, "type": "type_identifier", "text": "override", "parent": 47, "children": [], "start_point": {"row": 34, "column": 54}, "end_point": {"row": 34, "column": 62}}, {"id": 55, "type": "labeled_statement", "text": "private:\n\n\t/** Inner data reader. */\n\tUPROPERTY()", "parent": null, "children": [], "start_point": {"row": 37, "column": 0}, "end_point": {"row": 40, "column": 12}}, {"id": 56, "type": "call_expression", "text": "UPROPERTY()", "parent": 55, "children": [57, 58], "start_point": {"row": 40, "column": 1}, "end_point": {"row": 40, "column": 12}}, {"id": 57, "type": "identifier", "text": "UPROPERTY", "parent": 56, "children": [], "start_point": {"row": 40, "column": 1}, "end_point": {"row": 40, "column": 10}}, {"id": 58, "type": "argument_list", "text": "()", "parent": 56, "children": [], "start_point": {"row": 40, "column": 10}, "end_point": {"row": 40, "column": 12}}, {"id": 59, "type": "declaration", "text": "UOsmReader* osmReader;", "parent": null, "children": [60, 61], "start_point": {"row": 41, "column": 1}, "end_point": {"row": 41, "column": 23}}, {"id": 60, "type": "type_identifier", "text": "UOsmReader", "parent": 59, "children": [], "start_point": {"row": 41, "column": 1}, "end_point": {"row": 41, "column": 11}}, {"id": 61, "type": "pointer_declarator", "text": "* osmReader", "parent": 59, "children": [62, 63], "start_point": {"row": 41, "column": 11}, "end_point": {"row": 41, "column": 22}}, {"id": 62, "type": "*", "text": "*", "parent": 61, "children": [], "start_point": {"row": 41, "column": 11}, "end_point": {"row": 41, "column": 12}}, {"id": 63, "type": "identifier", "text": "osmReader", "parent": 61, "children": [], "start_point": {"row": 41, "column": 13}, "end_point": {"row": 41, "column": 22}}]}, "node_categories": {"declarations": {"functions": [34, 51], "variables": [18, 20, 25, 59], "classes": [], "imports": [3, 4, 6, 7, 9, 10, 12, 13, 15, 16], "modules": [], "enums": []}, "statements": {"expressions": [39, 42, 56], "assignments": [], "loops": [], "conditionals": [19, 21, 22, 24, 26, 27, 29, 30, 33, 35, 37, 38, 40, 43, 45, 46, 48, 50, 52, 54, 57, 60, 63], "returns": [], "exceptions": []}, "expressions": {"calls": [0], "literals": [5, 8, 11, 14, 17], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [{"node_id": 34, "universal_type": "function", "name": "SetOsmReader_Implementation", "text_snippet": "GENERATED_BODY()\n\npublic:\n\n\t/** @name Implementation of IParserOsm */\n\t///@{\n\tvirtual void SetOsmRea"}, {"node_id": 51, "universal_type": "function", "name": "unknown", "text_snippet": "GetRoadNetwork_Implementation()"}], "class_declarations": [], "import_statements": [{"node_id": 3, "text": "#include \"CoreMinimal.h\"\n"}, {"node_id": 4, "text": "#include"}, {"node_id": 6, "text": "#include \"IParserOsm.h\"\n"}, {"node_id": 7, "text": "#include"}, {"node_id": 9, "text": "#include \"ProvidersInterfaces/IProviderRoads.h\"\n"}, {"node_id": 10, "text": "#include"}, {"node_id": 12, "text": "#include \"RoadsData.h\"\n"}, {"node_id": 13, "text": "#include"}, {"node_id": 15, "text": "#include \"LoaderRoadsOsm.generated.h\"\n"}, {"node_id": 16, "text": "#include"}]}, "original_source_code": "#pragma once\n\n#include \"CoreMinimal.h\"\n\n#include \"IParserOsm.h\"\n#include \"ProvidersInterfaces/IProviderRoads.h\"\n#include \"RoadsData.h\"\n\n#include \"LoaderRoadsOsm.generated.h\"\n\n\nclass UOsmReader;\n\n\n/**\n* \\class ULoaderRoadsOsm\n* \\brief Class for process roads data from OSM.\n*\n* @see IParserOsm, IProviderRoads\n*/\nUCLASS(Blueprintable)\nclass GEOTEMPLOADERS_API ULoaderRoadsOsm : public UObject, public IParserOsm, public IProviderRoads\n{\n\tGENERATED_BODY()\n\npublic:\n\n\t/** @name Implementation of IParserOsm */\n\t///@{\n\tvirtual void SetOsmReader_Implementation(UOsmReader* inOsmReader) override;\n\t///@}\n\n\t/** @name Implementation of IProviderRoads */\n\t///@{\n\tvirtual FRoadNetwork GetRoadNetwork_Implementation() override;\n\t///@}\n\nprivate:\n\n\t/** Inner data reader. */\n\tUPROPERTY()\n\tUOsmReader* osmReader;\n};\n"}
80,088
c
#pragma once #include "hdtConvertNi.h" #include "hdtSkyrimBone.h" #include "hdtSkinnedMesh\hdtSkinnedMeshBody.h" namespace hdt { class SkyrimMesh; class SkyrimShape : public SkinnedMeshBody { public: SkyrimShape(); ~SkyrimShape(); enum SharedType { SHARED_PUBLIC, SHARED_INTERNAL, SHARED_PRIVATE, }; SkyrimMesh* m_mesh; SharedType m_shared; bool m_disabled = false; int m_disablePriority = 0; IDStr m_disableTag; virtual bool canCollideWith(const SkinnedMeshBody* body) const override; virtual void internalUpdate() override; }; }
20.37
27
(translation_unit) "#pragma once\n\n#include "hdtConvertNi.h"\n#include "hdtSkyrimBone.h"\n#include "hdtSkinnedMesh\hdtSkinnedMeshBody.h"\n\nnamespace hdt\n{\n class SkyrimMesh;\n class SkyrimShape : public SkinnedMeshBody\n {\n public:\n SkyrimShape();\n ~SkyrimShape();\n\n enum SharedType\n {\n SHARED_PUBLIC,\n SHARED_INTERNAL,\n SHARED_PRIVATE,\n };\n\n SkyrimMesh* m_mesh;\n SharedType m_shared;\n bool m_disabled = false;\n int m_disablePriority = 0;\n IDStr m_disableTag;\n\n virtual bool canCollideWith(const SkinnedMeshBody* body) const override;\n virtual void internalUpdate() override;\n };\n}\n" (preproc_call) "#pragma once\n" (preproc_directive) "#pragma" (preproc_arg) "once" (preproc_include) "#include "hdtConvertNi.h"\n" (#include) "#include" (string_literal) ""hdtConvertNi.h"" (") """ (string_content) "hdtConvertNi.h" (") """ (preproc_include) "#include "hdtSkyrimBone.h"\n" (#include) "#include" (string_literal) ""hdtSkyrimBone.h"" (") """ (string_content) "hdtSkyrimBone.h" (") """ (preproc_include) "#include "hdtSkinnedMesh\hdtSkinnedMeshBody.h"\n" (#include) "#include" (string_literal) ""hdtSkinnedMesh\hdtSkinnedMeshBody.h"" (") """ (string_content) "hdtSkinnedMesh" (escape_sequence) "\h" (string_content) "dtSkinnedMeshBody.h" (") """ (function_definition) "namespace hdt\n{\n class SkyrimMesh;\n class SkyrimShape : public SkinnedMeshBody\n {\n public:\n SkyrimShape();\n ~SkyrimShape();\n\n enum SharedType\n {\n SHARED_PUBLIC,\n SHARED_INTERNAL,\n SHARED_PRIVATE,\n };\n\n SkyrimMesh* m_mesh;\n SharedType m_shared;\n bool m_disabled = false;\n int m_disablePriority = 0;\n IDStr m_disableTag;\n\n virtual bool canCollideWith(const SkinnedMeshBody* body) const override;\n virtual void internalUpdate() override;\n };\n}" (type_identifier) "namespace" (identifier) "hdt" (compound_statement) "{\n class SkyrimMesh;\n class SkyrimShape : public SkinnedMeshBody\n {\n public:\n SkyrimShape();\n ~SkyrimShape();\n\n enum SharedType\n {\n SHARED_PUBLIC,\n SHARED_INTERNAL,\n SHARED_PRIVATE,\n };\n\n SkyrimMesh* m_mesh;\n SharedType m_shared;\n bool m_disabled = false;\n int m_disablePriority = 0;\n IDStr m_disableTag;\n\n virtual bool canCollideWith(const SkinnedMeshBody* body) const override;\n virtual void internalUpdate() override;\n };\n}" ({) "{" (declaration) "class SkyrimMesh;" (type_identifier) "class" (identifier) "SkyrimMesh" (;) ";" (function_definition) "class SkyrimShape : public SkinnedMeshBody\n {\n public:\n SkyrimShape();\n ~SkyrimShape();\n\n enum SharedType\n {\n SHARED_PUBLIC,\n SHARED_INTERNAL,\n SHARED_PRIVATE,\n };\n\n SkyrimMesh* m_mesh;\n SharedType m_shared;\n bool m_disabled = false;\n int m_disablePriority = 0;\n IDStr m_disableTag;\n\n virtual bool canCollideWith(const SkinnedMeshBody* body) const override;\n virtual void internalUpdate() override;\n }" (type_identifier) "class" (ERROR) "SkyrimShape : public" (identifier) "SkyrimShape" (:) ":" (identifier) "public" (identifier) "SkinnedMeshBody" (compound_statement) "{\n public:\n SkyrimShape();\n ~SkyrimShape();\n\n enum SharedType\n {\n SHARED_PUBLIC,\n SHARED_INTERNAL,\n SHARED_PRIVATE,\n };\n\n SkyrimMesh* m_mesh;\n SharedType m_shared;\n bool m_disabled = false;\n int m_disablePriority = 0;\n IDStr m_disableTag;\n\n virtual bool canCollideWith(const SkinnedMeshBody* body) const override;\n virtual void internalUpdate() override;\n }" ({) "{" (labeled_statement) "public:\n SkyrimShape();" (statement_identifier) "public" (:) ":" (expression_statement) "SkyrimShape();" (call_expression) "SkyrimShape()" (identifier) "SkyrimShape" (argument_list) "()" (() "(" ()) ")" (;) ";" (expression_statement) "~SkyrimShape();" (unary_expression) "~SkyrimShape()" (~) "~" (call_expression) "SkyrimShape()" (identifier) "SkyrimShape" (argument_list) "()" (() "(" ()) ")" (;) ";" (enum_specifier) "enum SharedType\n {\n SHARED_PUBLIC,\n SHARED_INTERNAL,\n SHARED_PRIVATE,\n }" (enum) "enum" (type_identifier) "SharedType" (enumerator_list) "{\n SHARED_PUBLIC,\n SHARED_INTERNAL,\n SHARED_PRIVATE,\n }" ({) "{" (enumerator) "SHARED_PUBLIC" (identifier) "SHARED_PUBLIC" (,) "," (enumerator) "SHARED_INTERNAL" (identifier) "SHARED_INTERNAL" (,) "," (enumerator) "SHARED_PRIVATE" (identifier) "SHARED_PRIVATE" (,) "," (}) "}" (;) ";" (declaration) "SkyrimMesh* m_mesh;" (type_identifier) "SkyrimMesh" (pointer_declarator) "* m_mesh" (*) "*" (identifier) "m_mesh" (;) ";" (declaration) "SharedType m_shared;" (type_identifier) "SharedType" (identifier) "m_shared" (;) ";" (declaration) "bool m_disabled = false;" (primitive_type) "bool" (init_declarator) "m_disabled = false" (identifier) "m_disabled" (=) "=" (false) "false" (;) ";" (declaration) "int m_disablePriority = 0;" (primitive_type) "int" (init_declarator) "m_disablePriority = 0" (identifier) "m_disablePriority" (=) "=" (number_literal) "0" (;) ";" (declaration) "IDStr m_disableTag;" (type_identifier) "IDStr" (identifier) "m_disableTag" (;) ";" (ERROR) "virtual bool canCollideWith(const SkinnedMeshBody* body) const override" (type_identifier) "virtual" (ERROR) "bool" (identifier) "bool" (function_declarator) "canCollideWith(const SkinnedMeshBody* body) const override" (identifier) "canCollideWith" (parameter_list) "(const SkinnedMeshBody* body)" (() "(" (parameter_declaration) "const SkinnedMeshBody* body" (type_qualifier) "const" (const) "const" (type_identifier) "SkinnedMeshBody" (pointer_declarator) "* body" (*) "*" (identifier) "body" ()) ")" (identifier) "const" (identifier) "override" (expression_statement) ";" (;) ";" (ERROR) "virtual void internalUpdate() override" (type_identifier) "virtual" (ERROR) "void" (identifier) "void" (function_declarator) "internalUpdate()" (identifier) "internalUpdate" (parameter_list) "()" (() "(" ()) ")" (type_identifier) "override" (expression_statement) ";" (;) ";" (}) "}" (expression_statement) ";" (;) ";" (}) "}"
141
5
{"language": "c", "success": true, "metadata": {"lines": 27, "avg_line_length": 20.37, "nodes": 85, "errors": 0, "source_hash": "fe9b68f6e918de504923dfda795f77de9e3a66e972a9c06567b3d45ea7fd2492", "categorized_nodes": 60}, "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 \"hdtConvertNi.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": "\"hdtConvertNi.h\"", "parent": 3, "children": [], "start_point": {"row": 2, "column": 9}, "end_point": {"row": 2, "column": 25}}, {"id": 6, "type": "preproc_include", "text": "#include \"hdtSkyrimBone.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": "\"hdtSkyrimBone.h\"", "parent": 6, "children": [], "start_point": {"row": 3, "column": 9}, "end_point": {"row": 3, "column": 26}}, {"id": 9, "type": "preproc_include", "text": "#include \"hdtSkinnedMesh\\hdtSkinnedMeshBody.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": "\"hdtSkinnedMesh\\hdtSkinnedMeshBody.h\"", "parent": 9, "children": [12], "start_point": {"row": 4, "column": 9}, "end_point": {"row": 4, "column": 46}}, {"id": 12, "type": "escape_sequence", "text": "\\h", "parent": 11, "children": [], "start_point": {"row": 4, "column": 24}, "end_point": {"row": 4, "column": 26}}, {"id": 13, "type": "function_definition", "text": "namespace hdt\n{\n\tclass SkyrimMesh;\n\tclass SkyrimShape : public SkinnedMeshBody\n\t{\n\tpublic:\n\t\tSkyrimShape();\n\t\t~SkyrimShape();\n\n\t\tenum SharedType\n\t\t{\n\t\t\tSHARED_PUBLIC,\n\t\t\tSHARED_INTERNAL,\n\t\t\tSHARED_PRIVATE,\n\t\t};\n\n\t\tSkyrimMesh*\tm_mesh;\n\t\tSharedType\t\tm_shared;\n\t\tbool\t\t\tm_disabled = false;\n\t\tint\t\t\t\tm_disablePriority = 0;\n\t\tIDStr\t\t\tm_disableTag;\n\n\t\tvirtual bool canCollideWith(const SkinnedMeshBody* body) const override;\n\t\tvirtual void internalUpdate() override;\n\t};\n}", "parent": null, "children": [14, 15], "start_point": {"row": 6, "column": 0}, "end_point": {"row": 31, "column": 1}}, {"id": 14, "type": "type_identifier", "text": "namespace", "parent": 13, "children": [], "start_point": {"row": 6, "column": 0}, "end_point": {"row": 6, "column": 9}}, {"id": 15, "type": "identifier", "text": "hdt", "parent": 13, "children": [], "start_point": {"row": 6, "column": 10}, "end_point": {"row": 6, "column": 13}}, {"id": 16, "type": "declaration", "text": "class SkyrimMesh;", "parent": 13, "children": [17], "start_point": {"row": 8, "column": 1}, "end_point": {"row": 8, "column": 18}}, {"id": 17, "type": "identifier", "text": "SkyrimMesh", "parent": 16, "children": [], "start_point": {"row": 8, "column": 7}, "end_point": {"row": 8, "column": 17}}, {"id": 18, "type": "function_definition", "text": "class SkyrimShape : public SkinnedMeshBody\n\t{\n\tpublic:\n\t\tSkyrimShape();\n\t\t~SkyrimShape();\n\n\t\tenum SharedType\n\t\t{\n\t\t\tSHARED_PUBLIC,\n\t\t\tSHARED_INTERNAL,\n\t\t\tSHARED_PRIVATE,\n\t\t};\n\n\t\tSkyrimMesh*\tm_mesh;\n\t\tSharedType\t\tm_shared;\n\t\tbool\t\t\tm_disabled = false;\n\t\tint\t\t\t\tm_disablePriority = 0;\n\t\tIDStr\t\t\tm_disableTag;\n\n\t\tvirtual bool canCollideWith(const SkinnedMeshBody* body) const override;\n\t\tvirtual void internalUpdate() override;\n\t}", "parent": 13, "children": [19, 21], "start_point": {"row": 9, "column": 1}, "end_point": {"row": 30, "column": 2}}, {"id": 19, "type": "ERROR", "text": "SkyrimShape : public", "parent": 18, "children": [20], "start_point": {"row": 9, "column": 7}, "end_point": {"row": 9, "column": 27}}, {"id": 20, "type": "identifier", "text": "SkyrimShape", "parent": 19, "children": [], "start_point": {"row": 9, "column": 7}, "end_point": {"row": 9, "column": 18}}, {"id": 21, "type": "identifier", "text": "SkinnedMeshBody", "parent": 18, "children": [], "start_point": {"row": 9, "column": 28}, "end_point": {"row": 9, "column": 43}}, {"id": 22, "type": "labeled_statement", "text": "public:\n\t\tSkyrimShape();", "parent": 18, "children": [], "start_point": {"row": 11, "column": 1}, "end_point": {"row": 12, "column": 16}}, {"id": 23, "type": "call_expression", "text": "SkyrimShape()", "parent": 22, "children": [24, 25], "start_point": {"row": 12, "column": 2}, "end_point": {"row": 12, "column": 15}}, {"id": 24, "type": "identifier", "text": "SkyrimShape", "parent": 23, "children": [], "start_point": {"row": 12, "column": 2}, "end_point": {"row": 12, "column": 13}}, {"id": 25, "type": "argument_list", "text": "()", "parent": 23, "children": [], "start_point": {"row": 12, "column": 13}, "end_point": {"row": 12, "column": 15}}, {"id": 26, "type": "unary_expression", "text": "~SkyrimShape()", "parent": 18, "children": [27, 28], "start_point": {"row": 13, "column": 2}, "end_point": {"row": 13, "column": 16}}, {"id": 27, "type": "~", "text": "~", "parent": 26, "children": [], "start_point": {"row": 13, "column": 2}, "end_point": {"row": 13, "column": 3}}, {"id": 28, "type": "call_expression", "text": "SkyrimShape()", "parent": 26, "children": [29, 30], "start_point": {"row": 13, "column": 3}, "end_point": {"row": 13, "column": 16}}, {"id": 29, "type": "identifier", "text": "SkyrimShape", "parent": 28, "children": [], "start_point": {"row": 13, "column": 3}, "end_point": {"row": 13, "column": 14}}, {"id": 30, "type": "argument_list", "text": "()", "parent": 28, "children": [], "start_point": {"row": 13, "column": 14}, "end_point": {"row": 13, "column": 16}}, {"id": 31, "type": "enum_specifier", "text": "enum SharedType\n\t\t{\n\t\t\tSHARED_PUBLIC,\n\t\t\tSHARED_INTERNAL,\n\t\t\tSHARED_PRIVATE,\n\t\t}", "parent": 18, "children": [32, 33, 34], "start_point": {"row": 15, "column": 2}, "end_point": {"row": 20, "column": 3}}, {"id": 32, "type": "enum", "text": "enum", "parent": 31, "children": [], "start_point": {"row": 15, "column": 2}, "end_point": {"row": 15, "column": 6}}, {"id": 33, "type": "type_identifier", "text": "SharedType", "parent": 31, "children": [], "start_point": {"row": 15, "column": 7}, "end_point": {"row": 15, "column": 17}}, {"id": 34, "type": "enumerator_list", "text": "{\n\t\t\tSHARED_PUBLIC,\n\t\t\tSHARED_INTERNAL,\n\t\t\tSHARED_PRIVATE,\n\t\t}", "parent": 31, "children": [35, 37, 39], "start_point": {"row": 16, "column": 2}, "end_point": {"row": 20, "column": 3}}, {"id": 35, "type": "enumerator", "text": "SHARED_PUBLIC", "parent": 34, "children": [36], "start_point": {"row": 17, "column": 3}, "end_point": {"row": 17, "column": 16}}, {"id": 36, "type": "identifier", "text": "SHARED_PUBLIC", "parent": 35, "children": [], "start_point": {"row": 17, "column": 3}, "end_point": {"row": 17, "column": 16}}, {"id": 37, "type": "enumerator", "text": "SHARED_INTERNAL", "parent": 34, "children": [38], "start_point": {"row": 18, "column": 3}, "end_point": {"row": 18, "column": 18}}, {"id": 38, "type": "identifier", "text": "SHARED_INTERNAL", "parent": 37, "children": [], "start_point": {"row": 18, "column": 3}, "end_point": {"row": 18, "column": 18}}, {"id": 39, "type": "enumerator", "text": "SHARED_PRIVATE", "parent": 34, "children": [40], "start_point": {"row": 19, "column": 3}, "end_point": {"row": 19, "column": 17}}, {"id": 40, "type": "identifier", "text": "SHARED_PRIVATE", "parent": 39, "children": [], "start_point": {"row": 19, "column": 3}, "end_point": {"row": 19, "column": 17}}, {"id": 41, "type": "declaration", "text": "SkyrimMesh*\tm_mesh;", "parent": 18, "children": [42, 43], "start_point": {"row": 22, "column": 2}, "end_point": {"row": 22, "column": 21}}, {"id": 42, "type": "type_identifier", "text": "SkyrimMesh", "parent": 41, "children": [], "start_point": {"row": 22, "column": 2}, "end_point": {"row": 22, "column": 12}}, {"id": 43, "type": "pointer_declarator", "text": "*\tm_mesh", "parent": 41, "children": [44, 45], "start_point": {"row": 22, "column": 12}, "end_point": {"row": 22, "column": 20}}, {"id": 44, "type": "*", "text": "*", "parent": 43, "children": [], "start_point": {"row": 22, "column": 12}, "end_point": {"row": 22, "column": 13}}, {"id": 45, "type": "identifier", "text": "m_mesh", "parent": 43, "children": [], "start_point": {"row": 22, "column": 14}, "end_point": {"row": 22, "column": 20}}, {"id": 46, "type": "declaration", "text": "SharedType\t\tm_shared;", "parent": 18, "children": [47, 48], "start_point": {"row": 23, "column": 2}, "end_point": {"row": 23, "column": 23}}, {"id": 47, "type": "type_identifier", "text": "SharedType", "parent": 46, "children": [], "start_point": {"row": 23, "column": 2}, "end_point": {"row": 23, "column": 12}}, {"id": 48, "type": "identifier", "text": "m_shared", "parent": 46, "children": [], "start_point": {"row": 23, "column": 14}, "end_point": {"row": 23, "column": 22}}, {"id": 49, "type": "declaration", "text": "bool\t\t\tm_disabled = false;", "parent": 18, "children": [50, 51], "start_point": {"row": 24, "column": 2}, "end_point": {"row": 24, "column": 28}}, {"id": 50, "type": "primitive_type", "text": "bool", "parent": 49, "children": [], "start_point": {"row": 24, "column": 2}, "end_point": {"row": 24, "column": 6}}, {"id": 51, "type": "init_declarator", "text": "m_disabled = false", "parent": 49, "children": [52, 53, 54], "start_point": {"row": 24, "column": 9}, "end_point": {"row": 24, "column": 27}}, {"id": 52, "type": "identifier", "text": "m_disabled", "parent": 51, "children": [], "start_point": {"row": 24, "column": 9}, "end_point": {"row": 24, "column": 19}}, {"id": 53, "type": "=", "text": "=", "parent": 51, "children": [], "start_point": {"row": 24, "column": 20}, "end_point": {"row": 24, "column": 21}}, {"id": 54, "type": "false", "text": "false", "parent": 51, "children": [], "start_point": {"row": 24, "column": 22}, "end_point": {"row": 24, "column": 27}}, {"id": 55, "type": "declaration", "text": "int\t\t\t\tm_disablePriority = 0;", "parent": 18, "children": [56, 57], "start_point": {"row": 25, "column": 2}, "end_point": {"row": 25, "column": 31}}, {"id": 56, "type": "primitive_type", "text": "int", "parent": 55, "children": [], "start_point": {"row": 25, "column": 2}, "end_point": {"row": 25, "column": 5}}, {"id": 57, "type": "init_declarator", "text": "m_disablePriority = 0", "parent": 55, "children": [58, 59, 60], "start_point": {"row": 25, "column": 9}, "end_point": {"row": 25, "column": 30}}, {"id": 58, "type": "identifier", "text": "m_disablePriority", "parent": 57, "children": [], "start_point": {"row": 25, "column": 9}, "end_point": {"row": 25, "column": 26}}, {"id": 59, "type": "=", "text": "=", "parent": 57, "children": [], "start_point": {"row": 25, "column": 27}, "end_point": {"row": 25, "column": 28}}, {"id": 60, "type": "number_literal", "text": "0", "parent": 57, "children": [], "start_point": {"row": 25, "column": 29}, "end_point": {"row": 25, "column": 30}}, {"id": 61, "type": "declaration", "text": "IDStr\t\t\tm_disableTag;", "parent": 18, "children": [62, 63], "start_point": {"row": 26, "column": 2}, "end_point": {"row": 26, "column": 23}}, {"id": 62, "type": "type_identifier", "text": "IDStr", "parent": 61, "children": [], "start_point": {"row": 26, "column": 2}, "end_point": {"row": 26, "column": 7}}, {"id": 63, "type": "identifier", "text": "m_disableTag", "parent": 61, "children": [], "start_point": {"row": 26, "column": 10}, "end_point": {"row": 26, "column": 22}}, {"id": 64, "type": "ERROR", "text": "virtual bool canCollideWith(const SkinnedMeshBody* body) const override", "parent": 18, "children": [65, 66, 68], "start_point": {"row": 28, "column": 2}, "end_point": {"row": 28, "column": 73}}, {"id": 65, "type": "type_identifier", "text": "virtual", "parent": 64, "children": [], "start_point": {"row": 28, "column": 2}, "end_point": {"row": 28, "column": 9}}, {"id": 66, "type": "ERROR", "text": "bool", "parent": 64, "children": [67], "start_point": {"row": 28, "column": 10}, "end_point": {"row": 28, "column": 14}}, {"id": 67, "type": "identifier", "text": "bool", "parent": 66, "children": [], "start_point": {"row": 28, "column": 10}, "end_point": {"row": 28, "column": 14}}, {"id": 68, "type": "function_declarator", "text": "canCollideWith(const SkinnedMeshBody* body) const override", "parent": 64, "children": [69, 70, 76], "start_point": {"row": 28, "column": 15}, "end_point": {"row": 28, "column": 73}}, {"id": 69, "type": "identifier", "text": "canCollideWith", "parent": 68, "children": [], "start_point": {"row": 28, "column": 15}, "end_point": {"row": 28, "column": 29}}, {"id": 70, "type": "parameter_list", "text": "(const SkinnedMeshBody* body)", "parent": 68, "children": [71], "start_point": {"row": 28, "column": 29}, "end_point": {"row": 28, "column": 58}}, {"id": 71, "type": "parameter_declaration", "text": "const SkinnedMeshBody* body", "parent": 70, "children": [72, 73], "start_point": {"row": 28, "column": 30}, "end_point": {"row": 28, "column": 57}}, {"id": 72, "type": "type_identifier", "text": "SkinnedMeshBody", "parent": 71, "children": [], "start_point": {"row": 28, "column": 36}, "end_point": {"row": 28, "column": 51}}, {"id": 73, "type": "pointer_declarator", "text": "* body", "parent": 71, "children": [74, 75], "start_point": {"row": 28, "column": 51}, "end_point": {"row": 28, "column": 57}}, {"id": 74, "type": "*", "text": "*", "parent": 73, "children": [], "start_point": {"row": 28, "column": 51}, "end_point": {"row": 28, "column": 52}}, {"id": 75, "type": "identifier", "text": "body", "parent": 73, "children": [], "start_point": {"row": 28, "column": 53}, "end_point": {"row": 28, "column": 57}}, {"id": 76, "type": "identifier", "text": "override", "parent": 68, "children": [], "start_point": {"row": 28, "column": 65}, "end_point": {"row": 28, "column": 73}}, {"id": 77, "type": "ERROR", "text": "virtual void internalUpdate() override", "parent": 18, "children": [78, 79, 81, 84], "start_point": {"row": 29, "column": 2}, "end_point": {"row": 29, "column": 40}}, {"id": 78, "type": "type_identifier", "text": "virtual", "parent": 77, "children": [], "start_point": {"row": 29, "column": 2}, "end_point": {"row": 29, "column": 9}}, {"id": 79, "type": "ERROR", "text": "void", "parent": 77, "children": [80], "start_point": {"row": 29, "column": 10}, "end_point": {"row": 29, "column": 14}}, {"id": 80, "type": "identifier", "text": "void", "parent": 79, "children": [], "start_point": {"row": 29, "column": 10}, "end_point": {"row": 29, "column": 14}}, {"id": 81, "type": "function_declarator", "text": "internalUpdate()", "parent": 77, "children": [82, 83], "start_point": {"row": 29, "column": 15}, "end_point": {"row": 29, "column": 31}}, {"id": 82, "type": "identifier", "text": "internalUpdate", "parent": 81, "children": [], "start_point": {"row": 29, "column": 15}, "end_point": {"row": 29, "column": 29}}, {"id": 83, "type": "parameter_list", "text": "()", "parent": 81, "children": [], "start_point": {"row": 29, "column": 29}, "end_point": {"row": 29, "column": 31}}, {"id": 84, "type": "type_identifier", "text": "override", "parent": 77, "children": [], "start_point": {"row": 29, "column": 32}, "end_point": {"row": 29, "column": 40}}]}, "node_categories": {"declarations": {"functions": [13, 18, 68, 81], "variables": [16, 41, 46, 49, 55, 61, 71], "classes": [], "imports": [3, 4, 6, 7, 9, 10], "modules": [], "enums": [31, 32, 34, 35, 37, 39]}, "statements": {"expressions": [23, 26, 28], "assignments": [], "loops": [], "conditionals": [14, 15, 17, 20, 21, 24, 29, 33, 36, 38, 40, 42, 45, 47, 48, 52, 58, 62, 63, 65, 67, 69, 72, 75, 76, 78, 80, 82, 84], "returns": [], "exceptions": []}, "expressions": {"calls": [0], "literals": [5, 8, 11, 60], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [{"node_id": 13, "universal_type": "function", "name": "SkyrimMesh;", "text_snippet": "namespace hdt\n{\n\tclass SkyrimMesh;\n\tclass SkyrimShape : public SkinnedMeshBody\n\t{\n\tpublic:\n\t\tSkyrimS"}, {"node_id": 18, "universal_type": "function", "name": "SkyrimShape", "text_snippet": "class SkyrimShape : public SkinnedMeshBody\n\t{\n\tpublic:\n\t\tSkyrimShape();\n\t\t~SkyrimShape();\n\n\t\tenum Sh"}, {"node_id": 68, "universal_type": "function", "name": "unknown", "text_snippet": "canCollideWith(const SkinnedMeshBody* body) const override"}, {"node_id": 81, "universal_type": "function", "name": "unknown", "text_snippet": "internalUpdate()"}], "class_declarations": [], "import_statements": [{"node_id": 3, "text": "#include \"hdtConvertNi.h\"\n"}, {"node_id": 4, "text": "#include"}, {"node_id": 6, "text": "#include \"hdtSkyrimBone.h\"\n"}, {"node_id": 7, "text": "#include"}, {"node_id": 9, "text": "#include \"hdtSkinnedMesh\\hdtSkinnedMeshBody.h\"\n"}, {"node_id": 10, "text": "#include"}]}, "original_source_code": "#pragma once\n\n#include \"hdtConvertNi.h\"\n#include \"hdtSkyrimBone.h\"\n#include \"hdtSkinnedMesh\\hdtSkinnedMeshBody.h\"\n\nnamespace hdt\n{\n\tclass SkyrimMesh;\n\tclass SkyrimShape : public SkinnedMeshBody\n\t{\n\tpublic:\n\t\tSkyrimShape();\n\t\t~SkyrimShape();\n\n\t\tenum SharedType\n\t\t{\n\t\t\tSHARED_PUBLIC,\n\t\t\tSHARED_INTERNAL,\n\t\t\tSHARED_PRIVATE,\n\t\t};\n\n\t\tSkyrimMesh*\tm_mesh;\n\t\tSharedType\t\tm_shared;\n\t\tbool\t\t\tm_disabled = false;\n\t\tint\t\t\t\tm_disablePriority = 0;\n\t\tIDStr\t\t\tm_disableTag;\n\n\t\tvirtual bool canCollideWith(const SkinnedMeshBody* body) const override;\n\t\tvirtual void internalUpdate() override;\n\t};\n}\n"}
80,089
c
#include "libc.h" size_t strlen(const char* str) { size_t i = 0; for (; str[i] != '\0'; i++); return i; } char* strcpy(char* dest, const char* src) { while ((*dest++ = *src++)); return dest; } char* strcat(char* dest, const char* src) { return strcpy(&dest[strlen(dest)], src); } int strncmp(const char* s1, const char* s2, size_t n) { size_t i = 0; for (; (n == 0 || i < n) && s1[i] != '\0'; i++) if (s1[i] != s2[i]) return s1[i] > s2[i] ? 1 : -1; return i == n ? 0 : (s2[i] == '\0' ? 0 : -1); } const char* strchr(const char* s, int c) { for (; s[0] != '\0'; s++) if (s[0] == c) return s; return c == 0 ? s : NULL; } size_t strspn(const char* s, const char* accept) { for (size_t i = 0; true; i++) if (s[i] == '\0' || strchr(accept, s[i]) == NULL) return i; } size_t strcspn(const char* s, const char* accept) { for (size_t i = 0; true; i++) if (s[i] == '\0' || strchr(accept, s[i]) != NULL) return i; } /*int strcmp(const char* s1, const char* s2) { return strncmp(s1, s2, 0); }*/ /*const char* strpbrk(const char* s, const char* accept) { for (; s[0] != '\0'; s++) if (strchr(accept, s[0]) != NULL) return s; return NULL; }*/
27.76
45
(translation_unit) "#include "libc.h"\n\nsize_t strlen(const char* str) {\n size_t i = 0;\n for (; str[i] != '\0'; i++);\n return i;\n}\n\nchar* strcpy(char* dest, const char* src) {\n while ((*dest++ = *src++));\n return dest;\n}\n\nchar* strcat(char* dest, const char* src) {\n return strcpy(&dest[strlen(dest)], src);\n}\n\nint strncmp(const char* s1, const char* s2, size_t n) {\n size_t i = 0;\n for (; (n == 0 || i < n) && s1[i] != '\0'; i++)\n if (s1[i] != s2[i])\n return s1[i] > s2[i] ? 1 : -1;\n return i == n ? 0 : (s2[i] == '\0' ? 0 : -1);\n}\n\nconst char* strchr(const char* s, int c) {\n for (; s[0] != '\0'; s++)\n if (s[0] == c)\n return s;\n return c == 0 ? s : NULL;\n}\n\nsize_t strspn(const char* s, const char* accept) {\n for (size_t i = 0; true; i++)\n if (s[i] == '\0' || strchr(accept, s[i]) == NULL)\n return i;\n}\n\nsize_t strcspn(const char* s, const char* accept) {\n for (size_t i = 0; true; i++)\n if (s[i] == '\0' || strchr(accept, s[i]) != NULL)\n return i;\n}\n\n/*int strcmp(const char* s1, const char* s2) {\n return strncmp(s1, s2, 0);\n}*/\n\n/*const char* strpbrk(const char* s, const char* accept) {\n for (; s[0] != '\0'; s++)\n if (strchr(accept, s[0]) != NULL)\n return s;\n return NULL;\n}*/\n" (preproc_include) "#include "libc.h"\n" (#include) "#include" (string_literal) ""libc.h"" (") """ (string_content) "libc.h" (") """ (function_definition) "size_t strlen(const char* str) {\n size_t i = 0;\n for (; str[i] != '\0'; i++);\n return i;\n}" (primitive_type) "size_t" (function_declarator) "strlen(const char* str)" (identifier) "strlen" (parameter_list) "(const char* str)" (() "(" (parameter_declaration) "const char* str" (type_qualifier) "const" (const) "const" (primitive_type) "char" (pointer_declarator) "* str" (*) "*" (identifier) "str" ()) ")" (compound_statement) "{\n size_t i = 0;\n for (; str[i] != '\0'; i++);\n return i;\n}" ({) "{" (declaration) "size_t i = 0;" (primitive_type) "size_t" (init_declarator) "i = 0" (identifier) "i" (=) "=" (number_literal) "0" (;) ";" (for_statement) "for (; str[i] != '\0'; i++);" (for) "for" (() "(" (;) ";" (binary_expression) "str[i] != '\0'" (subscript_expression) "str[i]" (identifier) "str" ([) "[" (identifier) "i" (]) "]" (!=) "!=" (char_literal) "'\0'" (') "'" (escape_sequence) "\0" (') "'" (;) ";" (update_expression) "i++" (identifier) "i" (++) "++" ()) ")" (expression_statement) ";" (;) ";" (return_statement) "return i;" (return) "return" (identifier) "i" (;) ";" (}) "}" (function_definition) "char* strcpy(char* dest, const char* src) {\n while ((*dest++ = *src++));\n return dest;\n}" (primitive_type) "char" (pointer_declarator) "* strcpy(char* dest, const char* src)" (*) "*" (function_declarator) "strcpy(char* dest, const char* src)" (identifier) "strcpy" (parameter_list) "(char* dest, const char* src)" (() "(" (parameter_declaration) "char* dest" (primitive_type) "char" (pointer_declarator) "* dest" (*) "*" (identifier) "dest" (,) "," (parameter_declaration) "const char* src" (type_qualifier) "const" (const) "const" (primitive_type) "char" (pointer_declarator) "* src" (*) "*" (identifier) "src" ()) ")" (compound_statement) "{\n while ((*dest++ = *src++));\n return dest;\n}" ({) "{" (while_statement) "while ((*dest++ = *src++));" (while) "while" (parenthesized_expression) "((*dest++ = *src++))" (() "(" (parenthesized_expression) "(*dest++ = *src++)" (() "(" (assignment_expression) "*dest++ = *src++" (pointer_expression) "*dest++" (*) "*" (update_expression) "dest++" (identifier) "dest" (++) "++" (=) "=" (pointer_expression) "*src++" (*) "*" (update_expression) "src++" (identifier) "src" (++) "++" ()) ")" ()) ")" (expression_statement) ";" (;) ";" (return_statement) "return dest;" (return) "return" (identifier) "dest" (;) ";" (}) "}" (function_definition) "char* strcat(char* dest, const char* src) {\n return strcpy(&dest[strlen(dest)], src);\n}" (primitive_type) "char" (pointer_declarator) "* strcat(char* dest, const char* src)" (*) "*" (function_declarator) "strcat(char* dest, const char* src)" (identifier) "strcat" (parameter_list) "(char* dest, const char* src)" (() "(" (parameter_declaration) "char* dest" (primitive_type) "char" (pointer_declarator) "* dest" (*) "*" (identifier) "dest" (,) "," (parameter_declaration) "const char* src" (type_qualifier) "const" (const) "const" (primitive_type) "char" (pointer_declarator) "* src" (*) "*" (identifier) "src" ()) ")" (compound_statement) "{\n return strcpy(&dest[strlen(dest)], src);\n}" ({) "{" (return_statement) "return strcpy(&dest[strlen(dest)], src);" (return) "return" (call_expression) "strcpy(&dest[strlen(dest)], src)" (identifier) "strcpy" (argument_list) "(&dest[strlen(dest)], src)" (() "(" (pointer_expression) "&dest[strlen(dest)]" (&) "&" (subscript_expression) "dest[strlen(dest)]" (identifier) "dest" ([) "[" (call_expression) "strlen(dest)" (identifier) "strlen" (argument_list) "(dest)" (() "(" (identifier) "dest" ()) ")" (]) "]" (,) "," (identifier) "src" ()) ")" (;) ";" (}) "}" (function_definition) "int strncmp(const char* s1, const char* s2, size_t n) {\n size_t i = 0;\n for (; (n == 0 || i < n) && s1[i] != '\0'; i++)\n if (s1[i] != s2[i])\n return s1[i] > s2[i] ? 1 : -1;\n return i == n ? 0 : (s2[i] == '\0' ? 0 : -1);\n}" (primitive_type) "int" (function_declarator) "strncmp(const char* s1, const char* s2, size_t n)" (identifier) "strncmp" (parameter_list) "(const char* s1, const char* s2, size_t n)" (() "(" (parameter_declaration) "const char* s1" (type_qualifier) "const" (const) "const" (primitive_type) "char" (pointer_declarator) "* s1" (*) "*" (identifier) "s1" (,) "," (parameter_declaration) "const char* s2" (type_qualifier) "const" (const) "const" (primitive_type) "char" (pointer_declarator) "* s2" (*) "*" (identifier) "s2" (,) "," (parameter_declaration) "size_t n" (primitive_type) "size_t" (identifier) "n" ()) ")" (compound_statement) "{\n size_t i = 0;\n for (; (n == 0 || i < n) && s1[i] != '\0'; i++)\n if (s1[i] != s2[i])\n return s1[i] > s2[i] ? 1 : -1;\n return i == n ? 0 : (s2[i] == '\0' ? 0 : -1);\n}" ({) "{" (declaration) "size_t i = 0;" (primitive_type) "size_t" (init_declarator) "i = 0" (identifier) "i" (=) "=" (number_literal) "0" (;) ";" (for_statement) "for (; (n == 0 || i < n) && s1[i] != '\0'; i++)\n if (s1[i] != s2[i])\n return s1[i] > s2[i] ? 1 : -1;" (for) "for" (() "(" (;) ";" (binary_expression) "(n == 0 || i < n) && s1[i] != '\0'" (parenthesized_expression) "(n == 0 || i < n)" (() "(" (binary_expression) "n == 0 || i < n" (binary_expression) "n == 0" (identifier) "n" (==) "==" (number_literal) "0" (||) "||" (binary_expression) "i < n" (identifier) "i" (<) "<" (identifier) "n" ()) ")" (&&) "&&" (binary_expression) "s1[i] != '\0'" (subscript_expression) "s1[i]" (identifier) "s1" ([) "[" (identifier) "i" (]) "]" (!=) "!=" (char_literal) "'\0'" (') "'" (escape_sequence) "\0" (') "'" (;) ";" (update_expression) "i++" (identifier) "i" (++) "++" ()) ")" (if_statement) "if (s1[i] != s2[i])\n return s1[i] > s2[i] ? 1 : -1;" (if) "if" (parenthesized_expression) "(s1[i] != s2[i])" (() "(" (binary_expression) "s1[i] != s2[i]" (subscript_expression) "s1[i]" (identifier) "s1" ([) "[" (identifier) "i" (]) "]" (!=) "!=" (subscript_expression) "s2[i]" (identifier) "s2" ([) "[" (identifier) "i" (]) "]" ()) ")" (return_statement) "return s1[i] > s2[i] ? 1 : -1;" (return) "return" (conditional_expression) "s1[i] > s2[i] ? 1 : -1" (binary_expression) "s1[i] > s2[i]" (subscript_expression) "s1[i]" (identifier) "s1" ([) "[" (identifier) "i" (]) "]" (>) ">" (subscript_expression) "s2[i]" (identifier) "s2" ([) "[" (identifier) "i" (]) "]" (?) "?" (number_literal) "1" (:) ":" (number_literal) "-1" (;) ";" (return_statement) "return i == n ? 0 : (s2[i] == '\0' ? 0 : -1);" (return) "return" (conditional_expression) "i == n ? 0 : (s2[i] == '\0' ? 0 : -1)" (binary_expression) "i == n" (identifier) "i" (==) "==" (identifier) "n" (?) "?" (number_literal) "0" (:) ":" (parenthesized_expression) "(s2[i] == '\0' ? 0 : -1)" (() "(" (conditional_expression) "s2[i] == '\0' ? 0 : -1" (binary_expression) "s2[i] == '\0'" (subscript_expression) "s2[i]" (identifier) "s2" ([) "[" (identifier) "i" (]) "]" (==) "==" (char_literal) "'\0'" (') "'" (escape_sequence) "\0" (') "'" (?) "?" (number_literal) "0" (:) ":" (number_literal) "-1" ()) ")" (;) ";" (}) "}" (function_definition) "const char* strchr(const char* s, int c) {\n for (; s[0] != '\0'; s++)\n if (s[0] == c)\n return s;\n return c == 0 ? s : NULL;\n}" (type_qualifier) "const" (const) "const" (primitive_type) "char" (pointer_declarator) "* strchr(const char* s, int c)" (*) "*" (function_declarator) "strchr(const char* s, int c)" (identifier) "strchr" (parameter_list) "(const char* s, int c)" (() "(" (parameter_declaration) "const char* s" (type_qualifier) "const" (const) "const" (primitive_type) "char" (pointer_declarator) "* s" (*) "*" (identifier) "s" (,) "," (parameter_declaration) "int c" (primitive_type) "int" (identifier) "c" ()) ")" (compound_statement) "{\n for (; s[0] != '\0'; s++)\n if (s[0] == c)\n return s;\n return c == 0 ? s : NULL;\n}" ({) "{" (for_statement) "for (; s[0] != '\0'; s++)\n if (s[0] == c)\n return s;" (for) "for" (() "(" (;) ";" (binary_expression) "s[0] != '\0'" (subscript_expression) "s[0]" (identifier) "s" ([) "[" (number_literal) "0" (]) "]" (!=) "!=" (char_literal) "'\0'" (') "'" (escape_sequence) "\0" (') "'" (;) ";" (update_expression) "s++" (identifier) "s" (++) "++" ()) ")" (if_statement) "if (s[0] == c)\n return s;" (if) "if" (parenthesized_expression) "(s[0] == c)" (() "(" (binary_expression) "s[0] == c" (subscript_expression) "s[0]" (identifier) "s" ([) "[" (number_literal) "0" (]) "]" (==) "==" (identifier) "c" ()) ")" (return_statement) "return s;" (return) "return" (identifier) "s" (;) ";" (return_statement) "return c == 0 ? s : NULL;" (return) "return" (conditional_expression) "c == 0 ? s : NULL" (binary_expression) "c == 0" (identifier) "c" (==) "==" (number_literal) "0" (?) "?" (identifier) "s" (:) ":" (null) "NULL" (NULL) "NULL" (;) ";" (}) "}" (function_definition) "size_t strspn(const char* s, const char* accept) {\n for (size_t i = 0; true; i++)\n if (s[i] == '\0' || strchr(accept, s[i]) == NULL)\n return i;\n}" (primitive_type) "size_t" (function_declarator) "strspn(const char* s, const char* accept)" (identifier) "strspn" (parameter_list) "(const char* s, const char* accept)" (() "(" (parameter_declaration) "const char* s" (type_qualifier) "const" (const) "const" (primitive_type) "char" (pointer_declarator) "* s" (*) "*" (identifier) "s" (,) "," (parameter_declaration) "const char* accept" (type_qualifier) "const" (const) "const" (primitive_type) "char" (pointer_declarator) "* accept" (*) "*" (identifier) "accept" ()) ")" (compound_statement) "{\n for (size_t i = 0; true; i++)\n if (s[i] == '\0' || strchr(accept, s[i]) == NULL)\n return i;\n}" ({) "{" (for_statement) "for (size_t i = 0; true; i++)\n if (s[i] == '\0' || strchr(accept, s[i]) == NULL)\n return i;" (for) "for" (() "(" (declaration) "size_t i = 0;" (primitive_type) "size_t" (init_declarator) "i = 0" (identifier) "i" (=) "=" (number_literal) "0" (;) ";" (true) "true" (;) ";" (update_expression) "i++" (identifier) "i" (++) "++" ()) ")" (if_statement) "if (s[i] == '\0' || strchr(accept, s[i]) == NULL)\n return i;" (if) "if" (parenthesized_expression) "(s[i] == '\0' || strchr(accept, s[i]) == NULL)" (() "(" (binary_expression) "s[i] == '\0' || strchr(accept, s[i]) == NULL" (binary_expression) "s[i] == '\0'" (subscript_expression) "s[i]" (identifier) "s" ([) "[" (identifier) "i" (]) "]" (==) "==" (char_literal) "'\0'" (') "'" (escape_sequence) "\0" (') "'" (||) "||" (binary_expression) "strchr(accept, s[i]) == NULL" (call_expression) "strchr(accept, s[i])" (identifier) "strchr" (argument_list) "(accept, s[i])" (() "(" (identifier) "accept" (,) "," (subscript_expression) "s[i]" (identifier) "s" ([) "[" (identifier) "i" (]) "]" ()) ")" (==) "==" (null) "NULL" (NULL) "NULL" ()) ")" (return_statement) "return i;" (return) "return" (identifier) "i" (;) ";" (}) "}" (function_definition) "size_t strcspn(const char* s, const char* accept) {\n for (size_t i = 0; true; i++)\n if (s[i] == '\0' || strchr(accept, s[i]) != NULL)\n return i;\n}" (primitive_type) "size_t" (function_declarator) "strcspn(const char* s, const char* accept)" (identifier) "strcspn" (parameter_list) "(const char* s, const char* accept)" (() "(" (parameter_declaration) "const char* s" (type_qualifier) "const" (const) "const" (primitive_type) "char" (pointer_declarator) "* s" (*) "*" (identifier) "s" (,) "," (parameter_declaration) "const char* accept" (type_qualifier) "const" (const) "const" (primitive_type) "char" (pointer_declarator) "* accept" (*) "*" (identifier) "accept" ()) ")" (compound_statement) "{\n for (size_t i = 0; true; i++)\n if (s[i] == '\0' || strchr(accept, s[i]) != NULL)\n return i;\n}" ({) "{" (for_statement) "for (size_t i = 0; true; i++)\n if (s[i] == '\0' || strchr(accept, s[i]) != NULL)\n return i;" (for) "for" (() "(" (declaration) "size_t i = 0;" (primitive_type) "size_t" (init_declarator) "i = 0" (identifier) "i" (=) "=" (number_literal) "0" (;) ";" (true) "true" (;) ";" (update_expression) "i++" (identifier) "i" (++) "++" ()) ")" (if_statement) "if (s[i] == '\0' || strchr(accept, s[i]) != NULL)\n return i;" (if) "if" (parenthesized_expression) "(s[i] == '\0' || strchr(accept, s[i]) != NULL)" (() "(" (binary_expression) "s[i] == '\0' || strchr(accept, s[i]) != NULL" (binary_expression) "s[i] == '\0'" (subscript_expression) "s[i]" (identifier) "s" ([) "[" (identifier) "i" (]) "]" (==) "==" (char_literal) "'\0'" (') "'" (escape_sequence) "\0" (') "'" (||) "||" (binary_expression) "strchr(accept, s[i]) != NULL" (call_expression) "strchr(accept, s[i])" (identifier) "strchr" (argument_list) "(accept, s[i])" (() "(" (identifier) "accept" (,) "," (subscript_expression) "s[i]" (identifier) "s" ([) "[" (identifier) "i" (]) "]" ()) ")" (!=) "!=" (null) "NULL" (NULL) "NULL" ()) ")" (return_statement) "return i;" (return) "return" (identifier) "i" (;) ";" (}) "}" (comment) "/*int strcmp(const char* s1, const char* s2) {\n return strncmp(s1, s2, 0);\n}*/" (comment) "/*const char* strpbrk(const char* s, const char* accept) {\n for (; s[0] != '\0'; s++)\n if (strchr(accept, s[0]) != NULL)\n return s;\n return NULL;\n}*/"
528
0
{"language": "c", "success": true, "metadata": {"lines": 45, "avg_line_length": 27.76, "nodes": 344, "errors": 0, "source_hash": "1399f24c1be60390b8e8a52e5daee5582a26f3c6ef6619343921a5f2d6923135", "categorized_nodes": 211}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#include \"libc.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": "\"libc.h\"", "parent": 0, "children": [], "start_point": {"row": 0, "column": 9}, "end_point": {"row": 0, "column": 17}}, {"id": 3, "type": "function_definition", "text": "size_t strlen(const char* str) {\n size_t i = 0;\n for (; str[i] != '\\0'; i++);\n return i;\n}", "parent": null, "children": [4, 5], "start_point": {"row": 2, "column": 0}, "end_point": {"row": 6, "column": 1}}, {"id": 4, "type": "primitive_type", "text": "size_t", "parent": 3, "children": [], "start_point": {"row": 2, "column": 0}, "end_point": {"row": 2, "column": 6}}, {"id": 5, "type": "function_declarator", "text": "strlen(const char* str)", "parent": 3, "children": [6, 7], "start_point": {"row": 2, "column": 7}, "end_point": {"row": 2, "column": 30}}, {"id": 6, "type": "identifier", "text": "strlen", "parent": 5, "children": [], "start_point": {"row": 2, "column": 7}, "end_point": {"row": 2, "column": 13}}, {"id": 7, "type": "parameter_list", "text": "(const char* str)", "parent": 5, "children": [8], "start_point": {"row": 2, "column": 13}, "end_point": {"row": 2, "column": 30}}, {"id": 8, "type": "parameter_declaration", "text": "const char* str", "parent": 7, "children": [9, 10], "start_point": {"row": 2, "column": 14}, "end_point": {"row": 2, "column": 29}}, {"id": 9, "type": "primitive_type", "text": "char", "parent": 8, "children": [], "start_point": {"row": 2, "column": 20}, "end_point": {"row": 2, "column": 24}}, {"id": 10, "type": "pointer_declarator", "text": "* str", "parent": 8, "children": [11, 12], "start_point": {"row": 2, "column": 24}, "end_point": {"row": 2, "column": 29}}, {"id": 11, "type": "*", "text": "*", "parent": 10, "children": [], "start_point": {"row": 2, "column": 24}, "end_point": {"row": 2, "column": 25}}, {"id": 12, "type": "identifier", "text": "str", "parent": 10, "children": [], "start_point": {"row": 2, "column": 26}, "end_point": {"row": 2, "column": 29}}, {"id": 13, "type": "declaration", "text": "size_t i = 0;", "parent": 3, "children": [14, 15], "start_point": {"row": 3, "column": 4}, "end_point": {"row": 3, "column": 17}}, {"id": 14, "type": "primitive_type", "text": "size_t", "parent": 13, "children": [], "start_point": {"row": 3, "column": 4}, "end_point": {"row": 3, "column": 10}}, {"id": 15, "type": "init_declarator", "text": "i = 0", "parent": 13, "children": [16, 17, 18], "start_point": {"row": 3, "column": 11}, "end_point": {"row": 3, "column": 16}}, {"id": 16, "type": "identifier", "text": "i", "parent": 15, "children": [], "start_point": {"row": 3, "column": 11}, "end_point": {"row": 3, "column": 12}}, {"id": 17, "type": "=", "text": "=", "parent": 15, "children": [], "start_point": {"row": 3, "column": 13}, "end_point": {"row": 3, "column": 14}}, {"id": 18, "type": "number_literal", "text": "0", "parent": 15, "children": [], "start_point": {"row": 3, "column": 15}, "end_point": {"row": 3, "column": 16}}, {"id": 19, "type": "for_statement", "text": "for (; str[i] != '\\0'; i++);", "parent": 3, "children": [20, 29], "start_point": {"row": 4, "column": 4}, "end_point": {"row": 4, "column": 32}}, {"id": 20, "type": "binary_expression", "text": "str[i] != '\\0'", "parent": 19, "children": [21, 24, 25], "start_point": {"row": 4, "column": 11}, "end_point": {"row": 4, "column": 25}}, {"id": 21, "type": "subscript_expression", "text": "str[i]", "parent": 20, "children": [22, 23], "start_point": {"row": 4, "column": 11}, "end_point": {"row": 4, "column": 17}}, {"id": 22, "type": "identifier", "text": "str", "parent": 21, "children": [], "start_point": {"row": 4, "column": 11}, "end_point": {"row": 4, "column": 14}}, {"id": 23, "type": "identifier", "text": "i", "parent": 21, "children": [], "start_point": {"row": 4, "column": 15}, "end_point": {"row": 4, "column": 16}}, {"id": 24, "type": "!=", "text": "!=", "parent": 20, "children": [], "start_point": {"row": 4, "column": 18}, "end_point": {"row": 4, "column": 20}}, {"id": 25, "type": "char_literal", "text": "'\\0'", "parent": 20, "children": [26, 27, 28], "start_point": {"row": 4, "column": 21}, "end_point": {"row": 4, "column": 25}}, {"id": 26, "type": "'", "text": "'", "parent": 25, "children": [], "start_point": {"row": 4, "column": 21}, "end_point": {"row": 4, "column": 22}}, {"id": 27, "type": "escape_sequence", "text": "\\0", "parent": 25, "children": [], "start_point": {"row": 4, "column": 22}, "end_point": {"row": 4, "column": 24}}, {"id": 28, "type": "'", "text": "'", "parent": 25, "children": [], "start_point": {"row": 4, "column": 24}, "end_point": {"row": 4, "column": 25}}, {"id": 29, "type": "update_expression", "text": "i++", "parent": 19, "children": [30, 31], "start_point": {"row": 4, "column": 27}, "end_point": {"row": 4, "column": 30}}, {"id": 30, "type": "identifier", "text": "i", "parent": 29, "children": [], "start_point": {"row": 4, "column": 27}, "end_point": {"row": 4, "column": 28}}, {"id": 31, "type": "++", "text": "++", "parent": 29, "children": [], "start_point": {"row": 4, "column": 28}, "end_point": {"row": 4, "column": 30}}, {"id": 32, "type": "return_statement", "text": "return i;", "parent": 3, "children": [33], "start_point": {"row": 5, "column": 4}, "end_point": {"row": 5, "column": 13}}, {"id": 33, "type": "identifier", "text": "i", "parent": 32, "children": [], "start_point": {"row": 5, "column": 11}, "end_point": {"row": 5, "column": 12}}, {"id": 34, "type": "function_definition", "text": "char* strcpy(char* dest, const char* src) {\n while ((*dest++ = *src++));\n return dest;\n}", "parent": null, "children": [35, 36], "start_point": {"row": 8, "column": 0}, "end_point": {"row": 11, "column": 1}}, {"id": 35, "type": "primitive_type", "text": "char", "parent": 34, "children": [], "start_point": {"row": 8, "column": 0}, "end_point": {"row": 8, "column": 4}}, {"id": 36, "type": "pointer_declarator", "text": "* strcpy(char* dest, const char* src)", "parent": 34, "children": [37, 38], "start_point": {"row": 8, "column": 4}, "end_point": {"row": 8, "column": 41}}, {"id": 37, "type": "*", "text": "*", "parent": 36, "children": [], "start_point": {"row": 8, "column": 4}, "end_point": {"row": 8, "column": 5}}, {"id": 38, "type": "function_declarator", "text": "strcpy(char* dest, const char* src)", "parent": 36, "children": [39, 40], "start_point": {"row": 8, "column": 6}, "end_point": {"row": 8, "column": 41}}, {"id": 39, "type": "identifier", "text": "strcpy", "parent": 38, "children": [], "start_point": {"row": 8, "column": 6}, "end_point": {"row": 8, "column": 12}}, {"id": 40, "type": "parameter_list", "text": "(char* dest, const char* src)", "parent": 38, "children": [41, 46], "start_point": {"row": 8, "column": 12}, "end_point": {"row": 8, "column": 41}}, {"id": 41, "type": "parameter_declaration", "text": "char* dest", "parent": 40, "children": [42, 43], "start_point": {"row": 8, "column": 13}, "end_point": {"row": 8, "column": 23}}, {"id": 42, "type": "primitive_type", "text": "char", "parent": 41, "children": [], "start_point": {"row": 8, "column": 13}, "end_point": {"row": 8, "column": 17}}, {"id": 43, "type": "pointer_declarator", "text": "* dest", "parent": 41, "children": [44, 45], "start_point": {"row": 8, "column": 17}, "end_point": {"row": 8, "column": 23}}, {"id": 44, "type": "*", "text": "*", "parent": 43, "children": [], "start_point": {"row": 8, "column": 17}, "end_point": {"row": 8, "column": 18}}, {"id": 45, "type": "identifier", "text": "dest", "parent": 43, "children": [], "start_point": {"row": 8, "column": 19}, "end_point": {"row": 8, "column": 23}}, {"id": 46, "type": "parameter_declaration", "text": "const char* src", "parent": 40, "children": [47, 48], "start_point": {"row": 8, "column": 25}, "end_point": {"row": 8, "column": 40}}, {"id": 47, "type": "primitive_type", "text": "char", "parent": 46, "children": [], "start_point": {"row": 8, "column": 31}, "end_point": {"row": 8, "column": 35}}, {"id": 48, "type": "pointer_declarator", "text": "* src", "parent": 46, "children": [49, 50], "start_point": {"row": 8, "column": 35}, "end_point": {"row": 8, "column": 40}}, {"id": 49, "type": "*", "text": "*", "parent": 48, "children": [], "start_point": {"row": 8, "column": 35}, "end_point": {"row": 8, "column": 36}}, {"id": 50, "type": "identifier", "text": "src", "parent": 48, "children": [], "start_point": {"row": 8, "column": 37}, "end_point": {"row": 8, "column": 40}}, {"id": 51, "type": "while_statement", "text": "while ((*dest++ = *src++));", "parent": 34, "children": [52], "start_point": {"row": 9, "column": 4}, "end_point": {"row": 9, "column": 31}}, {"id": 52, "type": "parenthesized_expression", "text": "((*dest++ = *src++))", "parent": 51, "children": [53], "start_point": {"row": 9, "column": 10}, "end_point": {"row": 9, "column": 30}}, {"id": 53, "type": "parenthesized_expression", "text": "(*dest++ = *src++)", "parent": 52, "children": [54], "start_point": {"row": 9, "column": 11}, "end_point": {"row": 9, "column": 29}}, {"id": 54, "type": "assignment_expression", "text": "*dest++ = *src++", "parent": 53, "children": [55, 60, 61], "start_point": {"row": 9, "column": 12}, "end_point": {"row": 9, "column": 28}}, {"id": 55, "type": "pointer_expression", "text": "*dest++", "parent": 54, "children": [56, 57], "start_point": {"row": 9, "column": 12}, "end_point": {"row": 9, "column": 19}}, {"id": 56, "type": "*", "text": "*", "parent": 55, "children": [], "start_point": {"row": 9, "column": 12}, "end_point": {"row": 9, "column": 13}}, {"id": 57, "type": "update_expression", "text": "dest++", "parent": 55, "children": [58, 59], "start_point": {"row": 9, "column": 13}, "end_point": {"row": 9, "column": 19}}, {"id": 58, "type": "identifier", "text": "dest", "parent": 57, "children": [], "start_point": {"row": 9, "column": 13}, "end_point": {"row": 9, "column": 17}}, {"id": 59, "type": "++", "text": "++", "parent": 57, "children": [], "start_point": {"row": 9, "column": 17}, "end_point": {"row": 9, "column": 19}}, {"id": 60, "type": "=", "text": "=", "parent": 54, "children": [], "start_point": {"row": 9, "column": 20}, "end_point": {"row": 9, "column": 21}}, {"id": 61, "type": "pointer_expression", "text": "*src++", "parent": 54, "children": [62, 63], "start_point": {"row": 9, "column": 22}, "end_point": {"row": 9, "column": 28}}, {"id": 62, "type": "*", "text": "*", "parent": 61, "children": [], "start_point": {"row": 9, "column": 22}, "end_point": {"row": 9, "column": 23}}, {"id": 63, "type": "update_expression", "text": "src++", "parent": 61, "children": [64, 65], "start_point": {"row": 9, "column": 23}, "end_point": {"row": 9, "column": 28}}, {"id": 64, "type": "identifier", "text": "src", "parent": 63, "children": [], "start_point": {"row": 9, "column": 23}, "end_point": {"row": 9, "column": 26}}, {"id": 65, "type": "++", "text": "++", "parent": 63, "children": [], "start_point": {"row": 9, "column": 26}, "end_point": {"row": 9, "column": 28}}, {"id": 66, "type": "return_statement", "text": "return dest;", "parent": 34, "children": [67], "start_point": {"row": 10, "column": 4}, "end_point": {"row": 10, "column": 16}}, {"id": 67, "type": "identifier", "text": "dest", "parent": 66, "children": [], "start_point": {"row": 10, "column": 11}, "end_point": {"row": 10, "column": 15}}, {"id": 68, "type": "function_definition", "text": "char* strcat(char* dest, const char* src) {\n return strcpy(&dest[strlen(dest)], src);\n}", "parent": null, "children": [69, 70], "start_point": {"row": 13, "column": 0}, "end_point": {"row": 15, "column": 1}}, {"id": 69, "type": "primitive_type", "text": "char", "parent": 68, "children": [], "start_point": {"row": 13, "column": 0}, "end_point": {"row": 13, "column": 4}}, {"id": 70, "type": "pointer_declarator", "text": "* strcat(char* dest, const char* src)", "parent": 68, "children": [71, 72], "start_point": {"row": 13, "column": 4}, "end_point": {"row": 13, "column": 41}}, {"id": 71, "type": "*", "text": "*", "parent": 70, "children": [], "start_point": {"row": 13, "column": 4}, "end_point": {"row": 13, "column": 5}}, {"id": 72, "type": "function_declarator", "text": "strcat(char* dest, const char* src)", "parent": 70, "children": [73, 74], "start_point": {"row": 13, "column": 6}, "end_point": {"row": 13, "column": 41}}, {"id": 73, "type": "identifier", "text": "strcat", "parent": 72, "children": [], "start_point": {"row": 13, "column": 6}, "end_point": {"row": 13, "column": 12}}, {"id": 74, "type": "parameter_list", "text": "(char* dest, const char* src)", "parent": 72, "children": [75, 80], "start_point": {"row": 13, "column": 12}, "end_point": {"row": 13, "column": 41}}, {"id": 75, "type": "parameter_declaration", "text": "char* dest", "parent": 74, "children": [76, 77], "start_point": {"row": 13, "column": 13}, "end_point": {"row": 13, "column": 23}}, {"id": 76, "type": "primitive_type", "text": "char", "parent": 75, "children": [], "start_point": {"row": 13, "column": 13}, "end_point": {"row": 13, "column": 17}}, {"id": 77, "type": "pointer_declarator", "text": "* dest", "parent": 75, "children": [78, 79], "start_point": {"row": 13, "column": 17}, "end_point": {"row": 13, "column": 23}}, {"id": 78, "type": "*", "text": "*", "parent": 77, "children": [], "start_point": {"row": 13, "column": 17}, "end_point": {"row": 13, "column": 18}}, {"id": 79, "type": "identifier", "text": "dest", "parent": 77, "children": [], "start_point": {"row": 13, "column": 19}, "end_point": {"row": 13, "column": 23}}, {"id": 80, "type": "parameter_declaration", "text": "const char* src", "parent": 74, "children": [81, 82], "start_point": {"row": 13, "column": 25}, "end_point": {"row": 13, "column": 40}}, {"id": 81, "type": "primitive_type", "text": "char", "parent": 80, "children": [], "start_point": {"row": 13, "column": 31}, "end_point": {"row": 13, "column": 35}}, {"id": 82, "type": "pointer_declarator", "text": "* src", "parent": 80, "children": [83, 84], "start_point": {"row": 13, "column": 35}, "end_point": {"row": 13, "column": 40}}, {"id": 83, "type": "*", "text": "*", "parent": 82, "children": [], "start_point": {"row": 13, "column": 35}, "end_point": {"row": 13, "column": 36}}, {"id": 84, "type": "identifier", "text": "src", "parent": 82, "children": [], "start_point": {"row": 13, "column": 37}, "end_point": {"row": 13, "column": 40}}, {"id": 85, "type": "return_statement", "text": "return strcpy(&dest[strlen(dest)], src);", "parent": 68, "children": [86], "start_point": {"row": 14, "column": 4}, "end_point": {"row": 14, "column": 44}}, {"id": 86, "type": "call_expression", "text": "strcpy(&dest[strlen(dest)], src)", "parent": 85, "children": [87, 88], "start_point": {"row": 14, "column": 11}, "end_point": {"row": 14, "column": 43}}, {"id": 87, "type": "identifier", "text": "strcpy", "parent": 86, "children": [], "start_point": {"row": 14, "column": 11}, "end_point": {"row": 14, "column": 17}}, {"id": 88, "type": "argument_list", "text": "(&dest[strlen(dest)], src)", "parent": 86, "children": [89, 96], "start_point": {"row": 14, "column": 17}, "end_point": {"row": 14, "column": 43}}, {"id": 89, "type": "pointer_expression", "text": "&dest[strlen(dest)]", "parent": 88, "children": [90], "start_point": {"row": 14, "column": 18}, "end_point": {"row": 14, "column": 37}}, {"id": 90, "type": "subscript_expression", "text": "dest[strlen(dest)]", "parent": 89, "children": [91, 92], "start_point": {"row": 14, "column": 19}, "end_point": {"row": 14, "column": 37}}, {"id": 91, "type": "identifier", "text": "dest", "parent": 90, "children": [], "start_point": {"row": 14, "column": 19}, "end_point": {"row": 14, "column": 23}}, {"id": 92, "type": "call_expression", "text": "strlen(dest)", "parent": 90, "children": [93, 94], "start_point": {"row": 14, "column": 24}, "end_point": {"row": 14, "column": 36}}, {"id": 93, "type": "identifier", "text": "strlen", "parent": 92, "children": [], "start_point": {"row": 14, "column": 24}, "end_point": {"row": 14, "column": 30}}, {"id": 94, "type": "argument_list", "text": "(dest)", "parent": 92, "children": [95], "start_point": {"row": 14, "column": 30}, "end_point": {"row": 14, "column": 36}}, {"id": 95, "type": "identifier", "text": "dest", "parent": 94, "children": [], "start_point": {"row": 14, "column": 31}, "end_point": {"row": 14, "column": 35}}, {"id": 96, "type": "identifier", "text": "src", "parent": 88, "children": [], "start_point": {"row": 14, "column": 39}, "end_point": {"row": 14, "column": 42}}, {"id": 97, "type": "function_definition", "text": "int strncmp(const char* s1, const char* s2, size_t n) {\n size_t i = 0;\n for (; (n == 0 || i < n) && s1[i] != '\\0'; i++)\n if (s1[i] != s2[i])\n return s1[i] > s2[i] ? 1 : -1;\n return i == n ? 0 : (s2[i] == '\\0' ? 0 : -1);\n}", "parent": null, "children": [98, 99], "start_point": {"row": 17, "column": 0}, "end_point": {"row": 23, "column": 1}}, {"id": 98, "type": "primitive_type", "text": "int", "parent": 97, "children": [], "start_point": {"row": 17, "column": 0}, "end_point": {"row": 17, "column": 3}}, {"id": 99, "type": "function_declarator", "text": "strncmp(const char* s1, const char* s2, size_t n)", "parent": 97, "children": [100, 101], "start_point": {"row": 17, "column": 4}, "end_point": {"row": 17, "column": 53}}, {"id": 100, "type": "identifier", "text": "strncmp", "parent": 99, "children": [], "start_point": {"row": 17, "column": 4}, "end_point": {"row": 17, "column": 11}}, {"id": 101, "type": "parameter_list", "text": "(const char* s1, const char* s2, size_t n)", "parent": 99, "children": [102, 107, 112], "start_point": {"row": 17, "column": 11}, "end_point": {"row": 17, "column": 53}}, {"id": 102, "type": "parameter_declaration", "text": "const char* s1", "parent": 101, "children": [103, 104], "start_point": {"row": 17, "column": 12}, "end_point": {"row": 17, "column": 26}}, {"id": 103, "type": "primitive_type", "text": "char", "parent": 102, "children": [], "start_point": {"row": 17, "column": 18}, "end_point": {"row": 17, "column": 22}}, {"id": 104, "type": "pointer_declarator", "text": "* s1", "parent": 102, "children": [105, 106], "start_point": {"row": 17, "column": 22}, "end_point": {"row": 17, "column": 26}}, {"id": 105, "type": "*", "text": "*", "parent": 104, "children": [], "start_point": {"row": 17, "column": 22}, "end_point": {"row": 17, "column": 23}}, {"id": 106, "type": "identifier", "text": "s1", "parent": 104, "children": [], "start_point": {"row": 17, "column": 24}, "end_point": {"row": 17, "column": 26}}, {"id": 107, "type": "parameter_declaration", "text": "const char* s2", "parent": 101, "children": [108, 109], "start_point": {"row": 17, "column": 28}, "end_point": {"row": 17, "column": 42}}, {"id": 108, "type": "primitive_type", "text": "char", "parent": 107, "children": [], "start_point": {"row": 17, "column": 34}, "end_point": {"row": 17, "column": 38}}, {"id": 109, "type": "pointer_declarator", "text": "* s2", "parent": 107, "children": [110, 111], "start_point": {"row": 17, "column": 38}, "end_point": {"row": 17, "column": 42}}, {"id": 110, "type": "*", "text": "*", "parent": 109, "children": [], "start_point": {"row": 17, "column": 38}, "end_point": {"row": 17, "column": 39}}, {"id": 111, "type": "identifier", "text": "s2", "parent": 109, "children": [], "start_point": {"row": 17, "column": 40}, "end_point": {"row": 17, "column": 42}}, {"id": 112, "type": "parameter_declaration", "text": "size_t n", "parent": 101, "children": [113, 114], "start_point": {"row": 17, "column": 44}, "end_point": {"row": 17, "column": 52}}, {"id": 113, "type": "primitive_type", "text": "size_t", "parent": 112, "children": [], "start_point": {"row": 17, "column": 44}, "end_point": {"row": 17, "column": 50}}, {"id": 114, "type": "identifier", "text": "n", "parent": 112, "children": [], "start_point": {"row": 17, "column": 51}, "end_point": {"row": 17, "column": 52}}, {"id": 115, "type": "declaration", "text": "size_t i = 0;", "parent": 97, "children": [116, 117], "start_point": {"row": 18, "column": 4}, "end_point": {"row": 18, "column": 17}}, {"id": 116, "type": "primitive_type", "text": "size_t", "parent": 115, "children": [], "start_point": {"row": 18, "column": 4}, "end_point": {"row": 18, "column": 10}}, {"id": 117, "type": "init_declarator", "text": "i = 0", "parent": 115, "children": [118, 119, 120], "start_point": {"row": 18, "column": 11}, "end_point": {"row": 18, "column": 16}}, {"id": 118, "type": "identifier", "text": "i", "parent": 117, "children": [], "start_point": {"row": 18, "column": 11}, "end_point": {"row": 18, "column": 12}}, {"id": 119, "type": "=", "text": "=", "parent": 117, "children": [], "start_point": {"row": 18, "column": 13}, "end_point": {"row": 18, "column": 14}}, {"id": 120, "type": "number_literal", "text": "0", "parent": 117, "children": [], "start_point": {"row": 18, "column": 15}, "end_point": {"row": 18, "column": 16}}, {"id": 121, "type": "for_statement", "text": "for (; (n == 0 || i < n) && s1[i] != '\\0'; i++)\n if (s1[i] != s2[i])\n return s1[i] > s2[i] ? 1 : -1;", "parent": 97, "children": [122, 144, 147], "start_point": {"row": 19, "column": 4}, "end_point": {"row": 21, "column": 42}}, {"id": 122, "type": "binary_expression", "text": "(n == 0 || i < n) && s1[i] != '\\0'", "parent": 121, "children": [123, 134, 135], "start_point": {"row": 19, "column": 11}, "end_point": {"row": 19, "column": 45}}, {"id": 123, "type": "parenthesized_expression", "text": "(n == 0 || i < n)", "parent": 122, "children": [124], "start_point": {"row": 19, "column": 11}, "end_point": {"row": 19, "column": 28}}, {"id": 124, "type": "binary_expression", "text": "n == 0 || i < n", "parent": 123, "children": [125, 129, 130], "start_point": {"row": 19, "column": 12}, "end_point": {"row": 19, "column": 27}}, {"id": 125, "type": "binary_expression", "text": "n == 0", "parent": 124, "children": [126, 127, 128], "start_point": {"row": 19, "column": 12}, "end_point": {"row": 19, "column": 18}}, {"id": 126, "type": "identifier", "text": "n", "parent": 125, "children": [], "start_point": {"row": 19, "column": 12}, "end_point": {"row": 19, "column": 13}}, {"id": 127, "type": "==", "text": "==", "parent": 125, "children": [], "start_point": {"row": 19, "column": 14}, "end_point": {"row": 19, "column": 16}}, {"id": 128, "type": "number_literal", "text": "0", "parent": 125, "children": [], "start_point": {"row": 19, "column": 17}, "end_point": {"row": 19, "column": 18}}, {"id": 129, "type": "||", "text": "||", "parent": 124, "children": [], "start_point": {"row": 19, "column": 19}, "end_point": {"row": 19, "column": 21}}, {"id": 130, "type": "binary_expression", "text": "i < n", "parent": 124, "children": [131, 132, 133], "start_point": {"row": 19, "column": 22}, "end_point": {"row": 19, "column": 27}}, {"id": 131, "type": "identifier", "text": "i", "parent": 130, "children": [], "start_point": {"row": 19, "column": 22}, "end_point": {"row": 19, "column": 23}}, {"id": 132, "type": "<", "text": "<", "parent": 130, "children": [], "start_point": {"row": 19, "column": 24}, "end_point": {"row": 19, "column": 25}}, {"id": 133, "type": "identifier", "text": "n", "parent": 130, "children": [], "start_point": {"row": 19, "column": 26}, "end_point": {"row": 19, "column": 27}}, {"id": 134, "type": "&&", "text": "&&", "parent": 122, "children": [], "start_point": {"row": 19, "column": 29}, "end_point": {"row": 19, "column": 31}}, {"id": 135, "type": "binary_expression", "text": "s1[i] != '\\0'", "parent": 122, "children": [136, 139, 140], "start_point": {"row": 19, "column": 32}, "end_point": {"row": 19, "column": 45}}, {"id": 136, "type": "subscript_expression", "text": "s1[i]", "parent": 135, "children": [137, 138], "start_point": {"row": 19, "column": 32}, "end_point": {"row": 19, "column": 37}}, {"id": 137, "type": "identifier", "text": "s1", "parent": 136, "children": [], "start_point": {"row": 19, "column": 32}, "end_point": {"row": 19, "column": 34}}, {"id": 138, "type": "identifier", "text": "i", "parent": 136, "children": [], "start_point": {"row": 19, "column": 35}, "end_point": {"row": 19, "column": 36}}, {"id": 139, "type": "!=", "text": "!=", "parent": 135, "children": [], "start_point": {"row": 19, "column": 38}, "end_point": {"row": 19, "column": 40}}, {"id": 140, "type": "char_literal", "text": "'\\0'", "parent": 135, "children": [141, 142, 143], "start_point": {"row": 19, "column": 41}, "end_point": {"row": 19, "column": 45}}, {"id": 141, "type": "'", "text": "'", "parent": 140, "children": [], "start_point": {"row": 19, "column": 41}, "end_point": {"row": 19, "column": 42}}, {"id": 142, "type": "escape_sequence", "text": "\\0", "parent": 140, "children": [], "start_point": {"row": 19, "column": 42}, "end_point": {"row": 19, "column": 44}}, {"id": 143, "type": "'", "text": "'", "parent": 140, "children": [], "start_point": {"row": 19, "column": 44}, "end_point": {"row": 19, "column": 45}}, {"id": 144, "type": "update_expression", "text": "i++", "parent": 121, "children": [145, 146], "start_point": {"row": 19, "column": 47}, "end_point": {"row": 19, "column": 50}}, {"id": 145, "type": "identifier", "text": "i", "parent": 144, "children": [], "start_point": {"row": 19, "column": 47}, "end_point": {"row": 19, "column": 48}}, {"id": 146, "type": "++", "text": "++", "parent": 144, "children": [], "start_point": {"row": 19, "column": 48}, "end_point": {"row": 19, "column": 50}}, {"id": 147, "type": "if_statement", "text": "if (s1[i] != s2[i])\n return s1[i] > s2[i] ? 1 : -1;", "parent": 121, "children": [148, 157], "start_point": {"row": 20, "column": 8}, "end_point": {"row": 21, "column": 42}}, {"id": 148, "type": "parenthesized_expression", "text": "(s1[i] != s2[i])", "parent": 147, "children": [149], "start_point": {"row": 20, "column": 11}, "end_point": {"row": 20, "column": 27}}, {"id": 149, "type": "binary_expression", "text": "s1[i] != s2[i]", "parent": 148, "children": [150, 153, 154], "start_point": {"row": 20, "column": 12}, "end_point": {"row": 20, "column": 26}}, {"id": 150, "type": "subscript_expression", "text": "s1[i]", "parent": 149, "children": [151, 152], "start_point": {"row": 20, "column": 12}, "end_point": {"row": 20, "column": 17}}, {"id": 151, "type": "identifier", "text": "s1", "parent": 150, "children": [], "start_point": {"row": 20, "column": 12}, "end_point": {"row": 20, "column": 14}}, {"id": 152, "type": "identifier", "text": "i", "parent": 150, "children": [], "start_point": {"row": 20, "column": 15}, "end_point": {"row": 20, "column": 16}}, {"id": 153, "type": "!=", "text": "!=", "parent": 149, "children": [], "start_point": {"row": 20, "column": 18}, "end_point": {"row": 20, "column": 20}}, {"id": 154, "type": "subscript_expression", "text": "s2[i]", "parent": 149, "children": [155, 156], "start_point": {"row": 20, "column": 21}, "end_point": {"row": 20, "column": 26}}, {"id": 155, "type": "identifier", "text": "s2", "parent": 154, "children": [], "start_point": {"row": 20, "column": 21}, "end_point": {"row": 20, "column": 23}}, {"id": 156, "type": "identifier", "text": "i", "parent": 154, "children": [], "start_point": {"row": 20, "column": 24}, "end_point": {"row": 20, "column": 25}}, {"id": 157, "type": "return_statement", "text": "return s1[i] > s2[i] ? 1 : -1;", "parent": 147, "children": [158], "start_point": {"row": 21, "column": 12}, "end_point": {"row": 21, "column": 42}}, {"id": 158, "type": "conditional_expression", "text": "s1[i] > s2[i] ? 1 : -1", "parent": 157, "children": [159, 167, 168, 169], "start_point": {"row": 21, "column": 19}, "end_point": {"row": 21, "column": 41}}, {"id": 159, "type": "binary_expression", "text": "s1[i] > s2[i]", "parent": 158, "children": [160, 163, 164], "start_point": {"row": 21, "column": 19}, "end_point": {"row": 21, "column": 32}}, {"id": 160, "type": "subscript_expression", "text": "s1[i]", "parent": 159, "children": [161, 162], "start_point": {"row": 21, "column": 19}, "end_point": {"row": 21, "column": 24}}, {"id": 161, "type": "identifier", "text": "s1", "parent": 160, "children": [], "start_point": {"row": 21, "column": 19}, "end_point": {"row": 21, "column": 21}}, {"id": 162, "type": "identifier", "text": "i", "parent": 160, "children": [], "start_point": {"row": 21, "column": 22}, "end_point": {"row": 21, "column": 23}}, {"id": 163, "type": ">", "text": ">", "parent": 159, "children": [], "start_point": {"row": 21, "column": 25}, "end_point": {"row": 21, "column": 26}}, {"id": 164, "type": "subscript_expression", "text": "s2[i]", "parent": 159, "children": [165, 166], "start_point": {"row": 21, "column": 27}, "end_point": {"row": 21, "column": 32}}, {"id": 165, "type": "identifier", "text": "s2", "parent": 164, "children": [], "start_point": {"row": 21, "column": 27}, "end_point": {"row": 21, "column": 29}}, {"id": 166, "type": "identifier", "text": "i", "parent": 164, "children": [], "start_point": {"row": 21, "column": 30}, "end_point": {"row": 21, "column": 31}}, {"id": 167, "type": "?", "text": "?", "parent": 158, "children": [], "start_point": {"row": 21, "column": 33}, "end_point": {"row": 21, "column": 34}}, {"id": 168, "type": "number_literal", "text": "1", "parent": 158, "children": [], "start_point": {"row": 21, "column": 35}, "end_point": {"row": 21, "column": 36}}, {"id": 169, "type": "number_literal", "text": "-1", "parent": 158, "children": [], "start_point": {"row": 21, "column": 39}, "end_point": {"row": 21, "column": 41}}, {"id": 170, "type": "return_statement", "text": "return i == n ? 0 : (s2[i] == '\\0' ? 0 : -1);", "parent": 97, "children": [171], "start_point": {"row": 22, "column": 4}, "end_point": {"row": 22, "column": 49}}, {"id": 171, "type": "conditional_expression", "text": "i == n ? 0 : (s2[i] == '\\0' ? 0 : -1)", "parent": 170, "children": [172, 176, 177, 178], "start_point": {"row": 22, "column": 11}, "end_point": {"row": 22, "column": 48}}, {"id": 172, "type": "binary_expression", "text": "i == n", "parent": 171, "children": [173, 174, 175], "start_point": {"row": 22, "column": 11}, "end_point": {"row": 22, "column": 17}}, {"id": 173, "type": "identifier", "text": "i", "parent": 172, "children": [], "start_point": {"row": 22, "column": 11}, "end_point": {"row": 22, "column": 12}}, {"id": 174, "type": "==", "text": "==", "parent": 172, "children": [], "start_point": {"row": 22, "column": 13}, "end_point": {"row": 22, "column": 15}}, {"id": 175, "type": "identifier", "text": "n", "parent": 172, "children": [], "start_point": {"row": 22, "column": 16}, "end_point": {"row": 22, "column": 17}}, {"id": 176, "type": "?", "text": "?", "parent": 171, "children": [], "start_point": {"row": 22, "column": 18}, "end_point": {"row": 22, "column": 19}}, {"id": 177, "type": "number_literal", "text": "0", "parent": 171, "children": [], "start_point": {"row": 22, "column": 20}, "end_point": {"row": 22, "column": 21}}, {"id": 178, "type": "parenthesized_expression", "text": "(s2[i] == '\\0' ? 0 : -1)", "parent": 171, "children": [179], "start_point": {"row": 22, "column": 24}, "end_point": {"row": 22, "column": 48}}, {"id": 179, "type": "conditional_expression", "text": "s2[i] == '\\0' ? 0 : -1", "parent": 178, "children": [180, 189, 190, 191], "start_point": {"row": 22, "column": 25}, "end_point": {"row": 22, "column": 47}}, {"id": 180, "type": "binary_expression", "text": "s2[i] == '\\0'", "parent": 179, "children": [181, 184, 185], "start_point": {"row": 22, "column": 25}, "end_point": {"row": 22, "column": 38}}, {"id": 181, "type": "subscript_expression", "text": "s2[i]", "parent": 180, "children": [182, 183], "start_point": {"row": 22, "column": 25}, "end_point": {"row": 22, "column": 30}}, {"id": 182, "type": "identifier", "text": "s2", "parent": 181, "children": [], "start_point": {"row": 22, "column": 25}, "end_point": {"row": 22, "column": 27}}, {"id": 183, "type": "identifier", "text": "i", "parent": 181, "children": [], "start_point": {"row": 22, "column": 28}, "end_point": {"row": 22, "column": 29}}, {"id": 184, "type": "==", "text": "==", "parent": 180, "children": [], "start_point": {"row": 22, "column": 31}, "end_point": {"row": 22, "column": 33}}, {"id": 185, "type": "char_literal", "text": "'\\0'", "parent": 180, "children": [186, 187, 188], "start_point": {"row": 22, "column": 34}, "end_point": {"row": 22, "column": 38}}, {"id": 186, "type": "'", "text": "'", "parent": 185, "children": [], "start_point": {"row": 22, "column": 34}, "end_point": {"row": 22, "column": 35}}, {"id": 187, "type": "escape_sequence", "text": "\\0", "parent": 185, "children": [], "start_point": {"row": 22, "column": 35}, "end_point": {"row": 22, "column": 37}}, {"id": 188, "type": "'", "text": "'", "parent": 185, "children": [], "start_point": {"row": 22, "column": 37}, "end_point": {"row": 22, "column": 38}}, {"id": 189, "type": "?", "text": "?", "parent": 179, "children": [], "start_point": {"row": 22, "column": 39}, "end_point": {"row": 22, "column": 40}}, {"id": 190, "type": "number_literal", "text": "0", "parent": 179, "children": [], "start_point": {"row": 22, "column": 41}, "end_point": {"row": 22, "column": 42}}, {"id": 191, "type": "number_literal", "text": "-1", "parent": 179, "children": [], "start_point": {"row": 22, "column": 45}, "end_point": {"row": 22, "column": 47}}, {"id": 192, "type": "function_definition", "text": "const char* strchr(const char* s, int c) {\n for (; s[0] != '\\0'; s++)\n if (s[0] == c)\n return s;\n return c == 0 ? s : NULL;\n}", "parent": null, "children": [193, 194], "start_point": {"row": 25, "column": 0}, "end_point": {"row": 30, "column": 1}}, {"id": 193, "type": "primitive_type", "text": "char", "parent": 192, "children": [], "start_point": {"row": 25, "column": 6}, "end_point": {"row": 25, "column": 10}}, {"id": 194, "type": "pointer_declarator", "text": "* strchr(const char* s, int c)", "parent": 192, "children": [195, 196], "start_point": {"row": 25, "column": 10}, "end_point": {"row": 25, "column": 40}}, {"id": 195, "type": "*", "text": "*", "parent": 194, "children": [], "start_point": {"row": 25, "column": 10}, "end_point": {"row": 25, "column": 11}}, {"id": 196, "type": "function_declarator", "text": "strchr(const char* s, int c)", "parent": 194, "children": [197, 198], "start_point": {"row": 25, "column": 12}, "end_point": {"row": 25, "column": 40}}, {"id": 197, "type": "identifier", "text": "strchr", "parent": 196, "children": [], "start_point": {"row": 25, "column": 12}, "end_point": {"row": 25, "column": 18}}, {"id": 198, "type": "parameter_list", "text": "(const char* s, int c)", "parent": 196, "children": [199, 204], "start_point": {"row": 25, "column": 18}, "end_point": {"row": 25, "column": 40}}, {"id": 199, "type": "parameter_declaration", "text": "const char* s", "parent": 198, "children": [200, 201], "start_point": {"row": 25, "column": 19}, "end_point": {"row": 25, "column": 32}}, {"id": 200, "type": "primitive_type", "text": "char", "parent": 199, "children": [], "start_point": {"row": 25, "column": 25}, "end_point": {"row": 25, "column": 29}}, {"id": 201, "type": "pointer_declarator", "text": "* s", "parent": 199, "children": [202, 203], "start_point": {"row": 25, "column": 29}, "end_point": {"row": 25, "column": 32}}, {"id": 202, "type": "*", "text": "*", "parent": 201, "children": [], "start_point": {"row": 25, "column": 29}, "end_point": {"row": 25, "column": 30}}, {"id": 203, "type": "identifier", "text": "s", "parent": 201, "children": [], "start_point": {"row": 25, "column": 31}, "end_point": {"row": 25, "column": 32}}, {"id": 204, "type": "parameter_declaration", "text": "int c", "parent": 198, "children": [205, 206], "start_point": {"row": 25, "column": 34}, "end_point": {"row": 25, "column": 39}}, {"id": 205, "type": "primitive_type", "text": "int", "parent": 204, "children": [], "start_point": {"row": 25, "column": 34}, "end_point": {"row": 25, "column": 37}}, {"id": 206, "type": "identifier", "text": "c", "parent": 204, "children": [], "start_point": {"row": 25, "column": 38}, "end_point": {"row": 25, "column": 39}}, {"id": 207, "type": "for_statement", "text": "for (; s[0] != '\\0'; s++)\n if (s[0] == c)\n return s;", "parent": 192, "children": [208, 217, 220], "start_point": {"row": 26, "column": 4}, "end_point": {"row": 28, "column": 21}}, {"id": 208, "type": "binary_expression", "text": "s[0] != '\\0'", "parent": 207, "children": [209, 212, 213], "start_point": {"row": 26, "column": 11}, "end_point": {"row": 26, "column": 23}}, {"id": 209, "type": "subscript_expression", "text": "s[0]", "parent": 208, "children": [210, 211], "start_point": {"row": 26, "column": 11}, "end_point": {"row": 26, "column": 15}}, {"id": 210, "type": "identifier", "text": "s", "parent": 209, "children": [], "start_point": {"row": 26, "column": 11}, "end_point": {"row": 26, "column": 12}}, {"id": 211, "type": "number_literal", "text": "0", "parent": 209, "children": [], "start_point": {"row": 26, "column": 13}, "end_point": {"row": 26, "column": 14}}, {"id": 212, "type": "!=", "text": "!=", "parent": 208, "children": [], "start_point": {"row": 26, "column": 16}, "end_point": {"row": 26, "column": 18}}, {"id": 213, "type": "char_literal", "text": "'\\0'", "parent": 208, "children": [214, 215, 216], "start_point": {"row": 26, "column": 19}, "end_point": {"row": 26, "column": 23}}, {"id": 214, "type": "'", "text": "'", "parent": 213, "children": [], "start_point": {"row": 26, "column": 19}, "end_point": {"row": 26, "column": 20}}, {"id": 215, "type": "escape_sequence", "text": "\\0", "parent": 213, "children": [], "start_point": {"row": 26, "column": 20}, "end_point": {"row": 26, "column": 22}}, {"id": 216, "type": "'", "text": "'", "parent": 213, "children": [], "start_point": {"row": 26, "column": 22}, "end_point": {"row": 26, "column": 23}}, {"id": 217, "type": "update_expression", "text": "s++", "parent": 207, "children": [218, 219], "start_point": {"row": 26, "column": 25}, "end_point": {"row": 26, "column": 28}}, {"id": 218, "type": "identifier", "text": "s", "parent": 217, "children": [], "start_point": {"row": 26, "column": 25}, "end_point": {"row": 26, "column": 26}}, {"id": 219, "type": "++", "text": "++", "parent": 217, "children": [], "start_point": {"row": 26, "column": 26}, "end_point": {"row": 26, "column": 28}}, {"id": 220, "type": "if_statement", "text": "if (s[0] == c)\n return s;", "parent": 207, "children": [221, 228], "start_point": {"row": 27, "column": 8}, "end_point": {"row": 28, "column": 21}}, {"id": 221, "type": "parenthesized_expression", "text": "(s[0] == c)", "parent": 220, "children": [222], "start_point": {"row": 27, "column": 11}, "end_point": {"row": 27, "column": 22}}, {"id": 222, "type": "binary_expression", "text": "s[0] == c", "parent": 221, "children": [223, 226, 227], "start_point": {"row": 27, "column": 12}, "end_point": {"row": 27, "column": 21}}, {"id": 223, "type": "subscript_expression", "text": "s[0]", "parent": 222, "children": [224, 225], "start_point": {"row": 27, "column": 12}, "end_point": {"row": 27, "column": 16}}, {"id": 224, "type": "identifier", "text": "s", "parent": 223, "children": [], "start_point": {"row": 27, "column": 12}, "end_point": {"row": 27, "column": 13}}, {"id": 225, "type": "number_literal", "text": "0", "parent": 223, "children": [], "start_point": {"row": 27, "column": 14}, "end_point": {"row": 27, "column": 15}}, {"id": 226, "type": "==", "text": "==", "parent": 222, "children": [], "start_point": {"row": 27, "column": 17}, "end_point": {"row": 27, "column": 19}}, {"id": 227, "type": "identifier", "text": "c", "parent": 222, "children": [], "start_point": {"row": 27, "column": 20}, "end_point": {"row": 27, "column": 21}}, {"id": 228, "type": "return_statement", "text": "return s;", "parent": 220, "children": [229], "start_point": {"row": 28, "column": 12}, "end_point": {"row": 28, "column": 21}}, {"id": 229, "type": "identifier", "text": "s", "parent": 228, "children": [], "start_point": {"row": 28, "column": 19}, "end_point": {"row": 28, "column": 20}}, {"id": 230, "type": "return_statement", "text": "return c == 0 ? s : NULL;", "parent": 192, "children": [231], "start_point": {"row": 29, "column": 4}, "end_point": {"row": 29, "column": 29}}, {"id": 231, "type": "conditional_expression", "text": "c == 0 ? s : NULL", "parent": 230, "children": [232, 236, 237, 238], "start_point": {"row": 29, "column": 11}, "end_point": {"row": 29, "column": 28}}, {"id": 232, "type": "binary_expression", "text": "c == 0", "parent": 231, "children": [233, 234, 235], "start_point": {"row": 29, "column": 11}, "end_point": {"row": 29, "column": 17}}, {"id": 233, "type": "identifier", "text": "c", "parent": 232, "children": [], "start_point": {"row": 29, "column": 11}, "end_point": {"row": 29, "column": 12}}, {"id": 234, "type": "==", "text": "==", "parent": 232, "children": [], "start_point": {"row": 29, "column": 13}, "end_point": {"row": 29, "column": 15}}, {"id": 235, "type": "number_literal", "text": "0", "parent": 232, "children": [], "start_point": {"row": 29, "column": 16}, "end_point": {"row": 29, "column": 17}}, {"id": 236, "type": "?", "text": "?", "parent": 231, "children": [], "start_point": {"row": 29, "column": 18}, "end_point": {"row": 29, "column": 19}}, {"id": 237, "type": "identifier", "text": "s", "parent": 231, "children": [], "start_point": {"row": 29, "column": 20}, "end_point": {"row": 29, "column": 21}}, {"id": 238, "type": "null", "text": "NULL", "parent": 231, "children": [239], "start_point": {"row": 29, "column": 24}, "end_point": {"row": 29, "column": 28}}, {"id": 239, "type": "NULL", "text": "NULL", "parent": 238, "children": [], "start_point": {"row": 29, "column": 24}, "end_point": {"row": 29, "column": 28}}, {"id": 240, "type": "function_definition", "text": "size_t strspn(const char* s, const char* accept) {\n for (size_t i = 0; true; i++)\n if (s[i] == '\\0' || strchr(accept, s[i]) == NULL)\n return i;\n}", "parent": null, "children": [241, 242], "start_point": {"row": 32, "column": 0}, "end_point": {"row": 36, "column": 1}}, {"id": 241, "type": "primitive_type", "text": "size_t", "parent": 240, "children": [], "start_point": {"row": 32, "column": 0}, "end_point": {"row": 32, "column": 6}}, {"id": 242, "type": "function_declarator", "text": "strspn(const char* s, const char* accept)", "parent": 240, "children": [243, 244], "start_point": {"row": 32, "column": 7}, "end_point": {"row": 32, "column": 48}}, {"id": 243, "type": "identifier", "text": "strspn", "parent": 242, "children": [], "start_point": {"row": 32, "column": 7}, "end_point": {"row": 32, "column": 13}}, {"id": 244, "type": "parameter_list", "text": "(const char* s, const char* accept)", "parent": 242, "children": [245, 250], "start_point": {"row": 32, "column": 13}, "end_point": {"row": 32, "column": 48}}, {"id": 245, "type": "parameter_declaration", "text": "const char* s", "parent": 244, "children": [246, 247], "start_point": {"row": 32, "column": 14}, "end_point": {"row": 32, "column": 27}}, {"id": 246, "type": "primitive_type", "text": "char", "parent": 245, "children": [], "start_point": {"row": 32, "column": 20}, "end_point": {"row": 32, "column": 24}}, {"id": 247, "type": "pointer_declarator", "text": "* s", "parent": 245, "children": [248, 249], "start_point": {"row": 32, "column": 24}, "end_point": {"row": 32, "column": 27}}, {"id": 248, "type": "*", "text": "*", "parent": 247, "children": [], "start_point": {"row": 32, "column": 24}, "end_point": {"row": 32, "column": 25}}, {"id": 249, "type": "identifier", "text": "s", "parent": 247, "children": [], "start_point": {"row": 32, "column": 26}, "end_point": {"row": 32, "column": 27}}, {"id": 250, "type": "parameter_declaration", "text": "const char* accept", "parent": 244, "children": [251, 252], "start_point": {"row": 32, "column": 29}, "end_point": {"row": 32, "column": 47}}, {"id": 251, "type": "primitive_type", "text": "char", "parent": 250, "children": [], "start_point": {"row": 32, "column": 35}, "end_point": {"row": 32, "column": 39}}, {"id": 252, "type": "pointer_declarator", "text": "* accept", "parent": 250, "children": [253, 254], "start_point": {"row": 32, "column": 39}, "end_point": {"row": 32, "column": 47}}, {"id": 253, "type": "*", "text": "*", "parent": 252, "children": [], "start_point": {"row": 32, "column": 39}, "end_point": {"row": 32, "column": 40}}, {"id": 254, "type": "identifier", "text": "accept", "parent": 252, "children": [], "start_point": {"row": 32, "column": 41}, "end_point": {"row": 32, "column": 47}}, {"id": 255, "type": "for_statement", "text": "for (size_t i = 0; true; i++)\n if (s[i] == '\\0' || strchr(accept, s[i]) == NULL)\n return i;", "parent": 240, "children": [256, 262, 263, 266], "start_point": {"row": 33, "column": 4}, "end_point": {"row": 35, "column": 21}}, {"id": 256, "type": "declaration", "text": "size_t i = 0;", "parent": 255, "children": [257, 258], "start_point": {"row": 33, "column": 9}, "end_point": {"row": 33, "column": 22}}, {"id": 257, "type": "primitive_type", "text": "size_t", "parent": 256, "children": [], "start_point": {"row": 33, "column": 9}, "end_point": {"row": 33, "column": 15}}, {"id": 258, "type": "init_declarator", "text": "i = 0", "parent": 256, "children": [259, 260, 261], "start_point": {"row": 33, "column": 16}, "end_point": {"row": 33, "column": 21}}, {"id": 259, "type": "identifier", "text": "i", "parent": 258, "children": [], "start_point": {"row": 33, "column": 16}, "end_point": {"row": 33, "column": 17}}, {"id": 260, "type": "=", "text": "=", "parent": 258, "children": [], "start_point": {"row": 33, "column": 18}, "end_point": {"row": 33, "column": 19}}, {"id": 261, "type": "number_literal", "text": "0", "parent": 258, "children": [], "start_point": {"row": 33, "column": 20}, "end_point": {"row": 33, "column": 21}}, {"id": 262, "type": "true", "text": "true", "parent": 255, "children": [], "start_point": {"row": 33, "column": 23}, "end_point": {"row": 33, "column": 27}}, {"id": 263, "type": "update_expression", "text": "i++", "parent": 255, "children": [264, 265], "start_point": {"row": 33, "column": 29}, "end_point": {"row": 33, "column": 32}}, {"id": 264, "type": "identifier", "text": "i", "parent": 263, "children": [], "start_point": {"row": 33, "column": 29}, "end_point": {"row": 33, "column": 30}}, {"id": 265, "type": "++", "text": "++", "parent": 263, "children": [], "start_point": {"row": 33, "column": 30}, "end_point": {"row": 33, "column": 32}}, {"id": 266, "type": "if_statement", "text": "if (s[i] == '\\0' || strchr(accept, s[i]) == NULL)\n return i;", "parent": 255, "children": [267, 290], "start_point": {"row": 34, "column": 8}, "end_point": {"row": 35, "column": 21}}, {"id": 267, "type": "parenthesized_expression", "text": "(s[i] == '\\0' || strchr(accept, s[i]) == NULL)", "parent": 266, "children": [268], "start_point": {"row": 34, "column": 11}, "end_point": {"row": 34, "column": 57}}, {"id": 268, "type": "binary_expression", "text": "s[i] == '\\0' || strchr(accept, s[i]) == NULL", "parent": 267, "children": [269, 278, 279], "start_point": {"row": 34, "column": 12}, "end_point": {"row": 34, "column": 56}}, {"id": 269, "type": "binary_expression", "text": "s[i] == '\\0'", "parent": 268, "children": [270, 273, 274], "start_point": {"row": 34, "column": 12}, "end_point": {"row": 34, "column": 24}}, {"id": 270, "type": "subscript_expression", "text": "s[i]", "parent": 269, "children": [271, 272], "start_point": {"row": 34, "column": 12}, "end_point": {"row": 34, "column": 16}}, {"id": 271, "type": "identifier", "text": "s", "parent": 270, "children": [], "start_point": {"row": 34, "column": 12}, "end_point": {"row": 34, "column": 13}}, {"id": 272, "type": "identifier", "text": "i", "parent": 270, "children": [], "start_point": {"row": 34, "column": 14}, "end_point": {"row": 34, "column": 15}}, {"id": 273, "type": "==", "text": "==", "parent": 269, "children": [], "start_point": {"row": 34, "column": 17}, "end_point": {"row": 34, "column": 19}}, {"id": 274, "type": "char_literal", "text": "'\\0'", "parent": 269, "children": [275, 276, 277], "start_point": {"row": 34, "column": 20}, "end_point": {"row": 34, "column": 24}}, {"id": 275, "type": "'", "text": "'", "parent": 274, "children": [], "start_point": {"row": 34, "column": 20}, "end_point": {"row": 34, "column": 21}}, {"id": 276, "type": "escape_sequence", "text": "\\0", "parent": 274, "children": [], "start_point": {"row": 34, "column": 21}, "end_point": {"row": 34, "column": 23}}, {"id": 277, "type": "'", "text": "'", "parent": 274, "children": [], "start_point": {"row": 34, "column": 23}, "end_point": {"row": 34, "column": 24}}, {"id": 278, "type": "||", "text": "||", "parent": 268, "children": [], "start_point": {"row": 34, "column": 25}, "end_point": {"row": 34, "column": 27}}, {"id": 279, "type": "binary_expression", "text": "strchr(accept, s[i]) == NULL", "parent": 268, "children": [280, 287, 288], "start_point": {"row": 34, "column": 28}, "end_point": {"row": 34, "column": 56}}, {"id": 280, "type": "call_expression", "text": "strchr(accept, s[i])", "parent": 279, "children": [281, 282], "start_point": {"row": 34, "column": 28}, "end_point": {"row": 34, "column": 48}}, {"id": 281, "type": "identifier", "text": "strchr", "parent": 280, "children": [], "start_point": {"row": 34, "column": 28}, "end_point": {"row": 34, "column": 34}}, {"id": 282, "type": "argument_list", "text": "(accept, s[i])", "parent": 280, "children": [283, 284], "start_point": {"row": 34, "column": 34}, "end_point": {"row": 34, "column": 48}}, {"id": 283, "type": "identifier", "text": "accept", "parent": 282, "children": [], "start_point": {"row": 34, "column": 35}, "end_point": {"row": 34, "column": 41}}, {"id": 284, "type": "subscript_expression", "text": "s[i]", "parent": 282, "children": [285, 286], "start_point": {"row": 34, "column": 43}, "end_point": {"row": 34, "column": 47}}, {"id": 285, "type": "identifier", "text": "s", "parent": 284, "children": [], "start_point": {"row": 34, "column": 43}, "end_point": {"row": 34, "column": 44}}, {"id": 286, "type": "identifier", "text": "i", "parent": 284, "children": [], "start_point": {"row": 34, "column": 45}, "end_point": {"row": 34, "column": 46}}, {"id": 287, "type": "==", "text": "==", "parent": 279, "children": [], "start_point": {"row": 34, "column": 49}, "end_point": {"row": 34, "column": 51}}, {"id": 288, "type": "null", "text": "NULL", "parent": 279, "children": [289], "start_point": {"row": 34, "column": 52}, "end_point": {"row": 34, "column": 56}}, {"id": 289, "type": "NULL", "text": "NULL", "parent": 288, "children": [], "start_point": {"row": 34, "column": 52}, "end_point": {"row": 34, "column": 56}}, {"id": 290, "type": "return_statement", "text": "return i;", "parent": 266, "children": [291], "start_point": {"row": 35, "column": 12}, "end_point": {"row": 35, "column": 21}}, {"id": 291, "type": "identifier", "text": "i", "parent": 290, "children": [], "start_point": {"row": 35, "column": 19}, "end_point": {"row": 35, "column": 20}}, {"id": 292, "type": "function_definition", "text": "size_t strcspn(const char* s, const char* accept) {\n for (size_t i = 0; true; i++)\n if (s[i] == '\\0' || strchr(accept, s[i]) != NULL)\n return i;\n}", "parent": null, "children": [293, 294], "start_point": {"row": 38, "column": 0}, "end_point": {"row": 42, "column": 1}}, {"id": 293, "type": "primitive_type", "text": "size_t", "parent": 292, "children": [], "start_point": {"row": 38, "column": 0}, "end_point": {"row": 38, "column": 6}}, {"id": 294, "type": "function_declarator", "text": "strcspn(const char* s, const char* accept)", "parent": 292, "children": [295, 296], "start_point": {"row": 38, "column": 7}, "end_point": {"row": 38, "column": 49}}, {"id": 295, "type": "identifier", "text": "strcspn", "parent": 294, "children": [], "start_point": {"row": 38, "column": 7}, "end_point": {"row": 38, "column": 14}}, {"id": 296, "type": "parameter_list", "text": "(const char* s, const char* accept)", "parent": 294, "children": [297, 302], "start_point": {"row": 38, "column": 14}, "end_point": {"row": 38, "column": 49}}, {"id": 297, "type": "parameter_declaration", "text": "const char* s", "parent": 296, "children": [298, 299], "start_point": {"row": 38, "column": 15}, "end_point": {"row": 38, "column": 28}}, {"id": 298, "type": "primitive_type", "text": "char", "parent": 297, "children": [], "start_point": {"row": 38, "column": 21}, "end_point": {"row": 38, "column": 25}}, {"id": 299, "type": "pointer_declarator", "text": "* s", "parent": 297, "children": [300, 301], "start_point": {"row": 38, "column": 25}, "end_point": {"row": 38, "column": 28}}, {"id": 300, "type": "*", "text": "*", "parent": 299, "children": [], "start_point": {"row": 38, "column": 25}, "end_point": {"row": 38, "column": 26}}, {"id": 301, "type": "identifier", "text": "s", "parent": 299, "children": [], "start_point": {"row": 38, "column": 27}, "end_point": {"row": 38, "column": 28}}, {"id": 302, "type": "parameter_declaration", "text": "const char* accept", "parent": 296, "children": [303, 304], "start_point": {"row": 38, "column": 30}, "end_point": {"row": 38, "column": 48}}, {"id": 303, "type": "primitive_type", "text": "char", "parent": 302, "children": [], "start_point": {"row": 38, "column": 36}, "end_point": {"row": 38, "column": 40}}, {"id": 304, "type": "pointer_declarator", "text": "* accept", "parent": 302, "children": [305, 306], "start_point": {"row": 38, "column": 40}, "end_point": {"row": 38, "column": 48}}, {"id": 305, "type": "*", "text": "*", "parent": 304, "children": [], "start_point": {"row": 38, "column": 40}, "end_point": {"row": 38, "column": 41}}, {"id": 306, "type": "identifier", "text": "accept", "parent": 304, "children": [], "start_point": {"row": 38, "column": 42}, "end_point": {"row": 38, "column": 48}}, {"id": 307, "type": "for_statement", "text": "for (size_t i = 0; true; i++)\n if (s[i] == '\\0' || strchr(accept, s[i]) != NULL)\n return i;", "parent": 292, "children": [308, 314, 315, 318], "start_point": {"row": 39, "column": 4}, "end_point": {"row": 41, "column": 21}}, {"id": 308, "type": "declaration", "text": "size_t i = 0;", "parent": 307, "children": [309, 310], "start_point": {"row": 39, "column": 9}, "end_point": {"row": 39, "column": 22}}, {"id": 309, "type": "primitive_type", "text": "size_t", "parent": 308, "children": [], "start_point": {"row": 39, "column": 9}, "end_point": {"row": 39, "column": 15}}, {"id": 310, "type": "init_declarator", "text": "i = 0", "parent": 308, "children": [311, 312, 313], "start_point": {"row": 39, "column": 16}, "end_point": {"row": 39, "column": 21}}, {"id": 311, "type": "identifier", "text": "i", "parent": 310, "children": [], "start_point": {"row": 39, "column": 16}, "end_point": {"row": 39, "column": 17}}, {"id": 312, "type": "=", "text": "=", "parent": 310, "children": [], "start_point": {"row": 39, "column": 18}, "end_point": {"row": 39, "column": 19}}, {"id": 313, "type": "number_literal", "text": "0", "parent": 310, "children": [], "start_point": {"row": 39, "column": 20}, "end_point": {"row": 39, "column": 21}}, {"id": 314, "type": "true", "text": "true", "parent": 307, "children": [], "start_point": {"row": 39, "column": 23}, "end_point": {"row": 39, "column": 27}}, {"id": 315, "type": "update_expression", "text": "i++", "parent": 307, "children": [316, 317], "start_point": {"row": 39, "column": 29}, "end_point": {"row": 39, "column": 32}}, {"id": 316, "type": "identifier", "text": "i", "parent": 315, "children": [], "start_point": {"row": 39, "column": 29}, "end_point": {"row": 39, "column": 30}}, {"id": 317, "type": "++", "text": "++", "parent": 315, "children": [], "start_point": {"row": 39, "column": 30}, "end_point": {"row": 39, "column": 32}}, {"id": 318, "type": "if_statement", "text": "if (s[i] == '\\0' || strchr(accept, s[i]) != NULL)\n return i;", "parent": 307, "children": [319, 342], "start_point": {"row": 40, "column": 8}, "end_point": {"row": 41, "column": 21}}, {"id": 319, "type": "parenthesized_expression", "text": "(s[i] == '\\0' || strchr(accept, s[i]) != NULL)", "parent": 318, "children": [320], "start_point": {"row": 40, "column": 11}, "end_point": {"row": 40, "column": 57}}, {"id": 320, "type": "binary_expression", "text": "s[i] == '\\0' || strchr(accept, s[i]) != NULL", "parent": 319, "children": [321, 330, 331], "start_point": {"row": 40, "column": 12}, "end_point": {"row": 40, "column": 56}}, {"id": 321, "type": "binary_expression", "text": "s[i] == '\\0'", "parent": 320, "children": [322, 325, 326], "start_point": {"row": 40, "column": 12}, "end_point": {"row": 40, "column": 24}}, {"id": 322, "type": "subscript_expression", "text": "s[i]", "parent": 321, "children": [323, 324], "start_point": {"row": 40, "column": 12}, "end_point": {"row": 40, "column": 16}}, {"id": 323, "type": "identifier", "text": "s", "parent": 322, "children": [], "start_point": {"row": 40, "column": 12}, "end_point": {"row": 40, "column": 13}}, {"id": 324, "type": "identifier", "text": "i", "parent": 322, "children": [], "start_point": {"row": 40, "column": 14}, "end_point": {"row": 40, "column": 15}}, {"id": 325, "type": "==", "text": "==", "parent": 321, "children": [], "start_point": {"row": 40, "column": 17}, "end_point": {"row": 40, "column": 19}}, {"id": 326, "type": "char_literal", "text": "'\\0'", "parent": 321, "children": [327, 328, 329], "start_point": {"row": 40, "column": 20}, "end_point": {"row": 40, "column": 24}}, {"id": 327, "type": "'", "text": "'", "parent": 326, "children": [], "start_point": {"row": 40, "column": 20}, "end_point": {"row": 40, "column": 21}}, {"id": 328, "type": "escape_sequence", "text": "\\0", "parent": 326, "children": [], "start_point": {"row": 40, "column": 21}, "end_point": {"row": 40, "column": 23}}, {"id": 329, "type": "'", "text": "'", "parent": 326, "children": [], "start_point": {"row": 40, "column": 23}, "end_point": {"row": 40, "column": 24}}, {"id": 330, "type": "||", "text": "||", "parent": 320, "children": [], "start_point": {"row": 40, "column": 25}, "end_point": {"row": 40, "column": 27}}, {"id": 331, "type": "binary_expression", "text": "strchr(accept, s[i]) != NULL", "parent": 320, "children": [332, 339, 340], "start_point": {"row": 40, "column": 28}, "end_point": {"row": 40, "column": 56}}, {"id": 332, "type": "call_expression", "text": "strchr(accept, s[i])", "parent": 331, "children": [333, 334], "start_point": {"row": 40, "column": 28}, "end_point": {"row": 40, "column": 48}}, {"id": 333, "type": "identifier", "text": "strchr", "parent": 332, "children": [], "start_point": {"row": 40, "column": 28}, "end_point": {"row": 40, "column": 34}}, {"id": 334, "type": "argument_list", "text": "(accept, s[i])", "parent": 332, "children": [335, 336], "start_point": {"row": 40, "column": 34}, "end_point": {"row": 40, "column": 48}}, {"id": 335, "type": "identifier", "text": "accept", "parent": 334, "children": [], "start_point": {"row": 40, "column": 35}, "end_point": {"row": 40, "column": 41}}, {"id": 336, "type": "subscript_expression", "text": "s[i]", "parent": 334, "children": [337, 338], "start_point": {"row": 40, "column": 43}, "end_point": {"row": 40, "column": 47}}, {"id": 337, "type": "identifier", "text": "s", "parent": 336, "children": [], "start_point": {"row": 40, "column": 43}, "end_point": {"row": 40, "column": 44}}, {"id": 338, "type": "identifier", "text": "i", "parent": 336, "children": [], "start_point": {"row": 40, "column": 45}, "end_point": {"row": 40, "column": 46}}, {"id": 339, "type": "!=", "text": "!=", "parent": 331, "children": [], "start_point": {"row": 40, "column": 49}, "end_point": {"row": 40, "column": 51}}, {"id": 340, "type": "null", "text": "NULL", "parent": 331, "children": [341], "start_point": {"row": 40, "column": 52}, "end_point": {"row": 40, "column": 56}}, {"id": 341, "type": "NULL", "text": "NULL", "parent": 340, "children": [], "start_point": {"row": 40, "column": 52}, "end_point": {"row": 40, "column": 56}}, {"id": 342, "type": "return_statement", "text": "return i;", "parent": 318, "children": [343], "start_point": {"row": 41, "column": 12}, "end_point": {"row": 41, "column": 21}}, {"id": 343, "type": "identifier", "text": "i", "parent": 342, "children": [], "start_point": {"row": 41, "column": 19}, "end_point": {"row": 41, "column": 20}}]}, "node_categories": {"declarations": {"functions": [3, 5, 34, 38, 68, 72, 97, 99, 192, 196, 240, 242, 292, 294], "variables": [8, 13, 41, 46, 75, 80, 102, 107, 112, 115, 199, 204, 245, 250, 256, 297, 302, 308], "classes": [], "imports": [0, 1], "modules": [], "enums": []}, "statements": {"expressions": [20, 21, 29, 52, 53, 55, 57, 61, 63, 86, 89, 90, 92, 122, 123, 124, 125, 130, 135, 136, 144, 148, 149, 150, 154, 159, 160, 164, 172, 178, 180, 181, 208, 209, 217, 221, 222, 223, 232, 263, 267, 268, 269, 270, 279, 280, 284, 315, 319, 320, 321, 322, 331, 332, 336], "assignments": [54], "loops": [19, 51, 121, 207, 255, 307], "conditionals": [6, 12, 16, 22, 23, 30, 33, 39, 45, 50, 58, 64, 67, 73, 79, 84, 87, 91, 93, 95, 96, 100, 106, 111, 114, 118, 126, 131, 133, 137, 138, 145, 147, 151, 152, 155, 156, 158, 161, 162, 165, 166, 171, 173, 175, 179, 182, 183, 197, 203, 206, 210, 218, 220, 224, 227, 229, 231, 233, 237, 243, 249, 254, 259, 264, 266, 271, 272, 281, 283, 285, 286, 291, 295, 301, 306, 311, 316, 318, 323, 324, 333, 335, 337, 338, 343], "returns": [32, 66, 85, 157, 170, 228, 230, 290, 342], "exceptions": []}, "expressions": {"calls": [], "literals": [2, 18, 25, 120, 128, 140, 168, 169, 177, 185, 190, 191, 211, 213, 225, 235, 261, 274, 313, 326], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [{"node_id": 3, "universal_type": "function", "name": "unknown", "text_snippet": "size_t strlen(const char* str) {\n size_t i = 0;\n for (; str[i] != '\\0'; i++);\n return i;\n}"}, {"node_id": 5, "universal_type": "function", "name": "unknown", "text_snippet": "strlen(const char* str)"}, {"node_id": 34, "universal_type": "function", "name": "unknown", "text_snippet": "char* strcpy(char* dest, const char* src) {\n while ((*dest++ = *src++));\n return dest;\n}"}, {"node_id": 38, "universal_type": "function", "name": "unknown", "text_snippet": "strcpy(char* dest, const char* src)"}, {"node_id": 68, "universal_type": "function", "name": "unknown", "text_snippet": "char* strcat(char* dest, const char* src) {\n return strcpy(&dest[strlen(dest)], src);\n}"}, {"node_id": 72, "universal_type": "function", "name": "unknown", "text_snippet": "strcat(char* dest, const char* src)"}, {"node_id": 97, "universal_type": "function", "name": "strncmp", "text_snippet": "int strncmp(const char* s1, const char* s2, size_t n) {\n size_t i = 0;\n for (; (n == 0 || i < "}, {"node_id": 99, "universal_type": "function", "name": "unknown", "text_snippet": "strncmp(const char* s1, const char* s2, size_t n)"}, {"node_id": 192, "universal_type": "function", "name": "c)", "text_snippet": "const char* strchr(const char* s, int c) {\n for (; s[0] != '\\0'; s++)\n if (s[0] == c)\n "}, {"node_id": 196, "universal_type": "function", "name": "c)", "text_snippet": "strchr(const char* s, int c)"}, {"node_id": 240, "universal_type": "function", "name": "unknown", "text_snippet": "size_t strspn(const char* s, const char* accept) {\n for (size_t i = 0; true; i++)\n if (s[i"}, {"node_id": 242, "universal_type": "function", "name": "unknown", "text_snippet": "strspn(const char* s, const char* accept)"}, {"node_id": 292, "universal_type": "function", "name": "unknown", "text_snippet": "size_t strcspn(const char* s, const char* accept) {\n for (size_t i = 0; true; i++)\n if (s["}, {"node_id": 294, "universal_type": "function", "name": "unknown", "text_snippet": "strcspn(const char* s, const char* accept)"}], "class_declarations": [], "import_statements": [{"node_id": 0, "text": "#include \"libc.h\"\n"}, {"node_id": 1, "text": "#include"}]}, "original_source_code": "#include \"libc.h\"\n\nsize_t strlen(const char* str) {\n size_t i = 0;\n for (; str[i] != '\\0'; i++);\n return i;\n}\n\nchar* strcpy(char* dest, const char* src) {\n while ((*dest++ = *src++));\n return dest;\n}\n\nchar* strcat(char* dest, const char* src) {\n return strcpy(&dest[strlen(dest)], src);\n}\n\nint strncmp(const char* s1, const char* s2, size_t n) {\n size_t i = 0;\n for (; (n == 0 || i < n) && s1[i] != '\\0'; i++)\n if (s1[i] != s2[i])\n return s1[i] > s2[i] ? 1 : -1;\n return i == n ? 0 : (s2[i] == '\\0' ? 0 : -1);\n}\n\nconst char* strchr(const char* s, int c) {\n for (; s[0] != '\\0'; s++)\n if (s[0] == c)\n return s;\n return c == 0 ? s : NULL;\n}\n\nsize_t strspn(const char* s, const char* accept) {\n for (size_t i = 0; true; i++)\n if (s[i] == '\\0' || strchr(accept, s[i]) == NULL)\n return i;\n}\n\nsize_t strcspn(const char* s, const char* accept) {\n for (size_t i = 0; true; i++)\n if (s[i] == '\\0' || strchr(accept, s[i]) != NULL)\n return i;\n}\n\n/*int strcmp(const char* s1, const char* s2) {\n return strncmp(s1, s2, 0);\n}*/\n\n/*const char* strpbrk(const char* s, const char* accept) {\n for (; s[0] != '\\0'; s++)\n if (strchr(accept, s[0]) != NULL)\n return s;\n return NULL;\n}*/\n"}
80,090
c
#include "troponin.h" static double KOffPw(double tension, double gamma_trpn, double t_ref, double k_ref_off) { if(1.0 - tension / (gamma_trpn * t_ref) > 0.1) { return k_ref_off * (1.0 - tension / (gamma_trpn * t_ref)); } else { return k_ref_off * 0.1; } } // troponin Initialisation function void TroponinInit(Troponin* me) { // Initialise State me->state = TROPONIN_Q0; // Initialise Outputs me->j_trpn = 0.0; me->ca_trpn_max = 0.07; me->k_on = 100.0; me->k_ref_off = 0.2; me->gamma_trpn = 2.0; // Initialise Internal Variables me->k_off = 0.0; } // troponin Execution function void TroponinRun(Troponin* me) { // Create intermediary variables enum TroponinStates state_u = me->state; double j_trpn_u = me->j_trpn; double ca_trpn_max_u = me->ca_trpn_max; double k_on_u = me->k_on; double k_ref_off_u = me->k_ref_off; double gamma_trpn_u = me->gamma_trpn; double k_off_u = me->k_off; // Run the state machine for transition logic switch(me->state) { case TROPONIN_Q0: // Logic for state q0 if(true) { k_off_u = KOffPw(me->tension, me->gamma_trpn, me->t_ref, me->k_ref_off); j_trpn_u = (me->ca_trpn_max - me->trpn) * me->k_off - me->ca_i * me->trpn * me->k_on; // Remain in this state state_u = TROPONIN_Q0; } break; } // Update from intermediary variables me->state = state_u; me->j_trpn = j_trpn_u; me->ca_trpn_max = ca_trpn_max_u; me->k_on = k_on_u; me->k_ref_off = k_ref_off_u; me->gamma_trpn = gamma_trpn_u; me->k_off = k_off_u; }
30.37
54
(translation_unit) "#include "troponin.h"\n\nstatic double KOffPw(double tension, double gamma_trpn, double t_ref, double k_ref_off) {\n if(1.0 - tension / (gamma_trpn * t_ref) > 0.1) {\n return k_ref_off * (1.0 - tension / (gamma_trpn * t_ref));\n }\n else {\n return k_ref_off * 0.1;\n }\n}\n\n\n// troponin Initialisation function\nvoid TroponinInit(Troponin* me) {\n // Initialise State\n me->state = TROPONIN_Q0;\n\n // Initialise Outputs\n me->j_trpn = 0.0;\n me->ca_trpn_max = 0.07;\n me->k_on = 100.0;\n me->k_ref_off = 0.2;\n me->gamma_trpn = 2.0;\n\n // Initialise Internal Variables\n me->k_off = 0.0;\n}\n\n// troponin Execution function\nvoid TroponinRun(Troponin* me) {\n // Create intermediary variables\n enum TroponinStates state_u = me->state;\n double j_trpn_u = me->j_trpn;\n double ca_trpn_max_u = me->ca_trpn_max;\n double k_on_u = me->k_on;\n double k_ref_off_u = me->k_ref_off;\n double gamma_trpn_u = me->gamma_trpn;\n\n double k_off_u = me->k_off;\n\n\n // Run the state machine for transition logic\n switch(me->state) {\n case TROPONIN_Q0: // Logic for state q0\n if(true) {\n k_off_u = KOffPw(me->tension, me->gamma_trpn, me->t_ref, me->k_ref_off);\n j_trpn_u = (me->ca_trpn_max - me->trpn) * me->k_off - me->ca_i * me->trpn * me->k_on;\n\n // Remain in this state\n state_u = TROPONIN_Q0;\n }\n break;\n }\n\n // Update from intermediary variables\n me->state = state_u;\n me->j_trpn = j_trpn_u;\n me->ca_trpn_max = ca_trpn_max_u;\n me->k_on = k_on_u;\n me->k_ref_off = k_ref_off_u;\n me->gamma_trpn = gamma_trpn_u;\n\n me->k_off = k_off_u;\n\n}" (preproc_include) "#include "troponin.h"\n" (#include) "#include" (string_literal) ""troponin.h"" (") """ (string_content) "troponin.h" (") """ (function_definition) "static double KOffPw(double tension, double gamma_trpn, double t_ref, double k_ref_off) {\n if(1.0 - tension / (gamma_trpn * t_ref) > 0.1) {\n return k_ref_off * (1.0 - tension / (gamma_trpn * t_ref));\n }\n else {\n return k_ref_off * 0.1;\n }\n}" (storage_class_specifier) "static" (static) "static" (primitive_type) "double" (function_declarator) "KOffPw(double tension, double gamma_trpn, double t_ref, double k_ref_off)" (identifier) "KOffPw" (parameter_list) "(double tension, double gamma_trpn, double t_ref, double k_ref_off)" (() "(" (parameter_declaration) "double tension" (primitive_type) "double" (identifier) "tension" (,) "," (parameter_declaration) "double gamma_trpn" (primitive_type) "double" (identifier) "gamma_trpn" (,) "," (parameter_declaration) "double t_ref" (primitive_type) "double" (identifier) "t_ref" (,) "," (parameter_declaration) "double k_ref_off" (primitive_type) "double" (identifier) "k_ref_off" ()) ")" (compound_statement) "{\n if(1.0 - tension / (gamma_trpn * t_ref) > 0.1) {\n return k_ref_off * (1.0 - tension / (gamma_trpn * t_ref));\n }\n else {\n return k_ref_off * 0.1;\n }\n}" ({) "{" (if_statement) "if(1.0 - tension / (gamma_trpn * t_ref) > 0.1) {\n return k_ref_off * (1.0 - tension / (gamma_trpn * t_ref));\n }\n else {\n return k_ref_off * 0.1;\n }" (if) "if" (parenthesized_expression) "(1.0 - tension / (gamma_trpn * t_ref) > 0.1)" (() "(" (binary_expression) "1.0 - tension / (gamma_trpn * t_ref) > 0.1" (binary_expression) "1.0 - tension / (gamma_trpn * t_ref)" (number_literal) "1.0" (-) "-" (binary_expression) "tension / (gamma_trpn * t_ref)" (identifier) "tension" (/) "/" (parenthesized_expression) "(gamma_trpn * t_ref)" (() "(" (binary_expression) "gamma_trpn * t_ref" (identifier) "gamma_trpn" (*) "*" (identifier) "t_ref" ()) ")" (>) ">" (number_literal) "0.1" ()) ")" (compound_statement) "{\n return k_ref_off * (1.0 - tension / (gamma_trpn * t_ref));\n }" ({) "{" (return_statement) "return k_ref_off * (1.0 - tension / (gamma_trpn * t_ref));" (return) "return" (binary_expression) "k_ref_off * (1.0 - tension / (gamma_trpn * t_ref))" (identifier) "k_ref_off" (*) "*" (parenthesized_expression) "(1.0 - tension / (gamma_trpn * t_ref))" (() "(" (binary_expression) "1.0 - tension / (gamma_trpn * t_ref)" (number_literal) "1.0" (-) "-" (binary_expression) "tension / (gamma_trpn * t_ref)" (identifier) "tension" (/) "/" (parenthesized_expression) "(gamma_trpn * t_ref)" (() "(" (binary_expression) "gamma_trpn * t_ref" (identifier) "gamma_trpn" (*) "*" (identifier) "t_ref" ()) ")" ()) ")" (;) ";" (}) "}" (else_clause) "else {\n return k_ref_off * 0.1;\n }" (else) "else" (compound_statement) "{\n return k_ref_off * 0.1;\n }" ({) "{" (return_statement) "return k_ref_off * 0.1;" (return) "return" (binary_expression) "k_ref_off * 0.1" (identifier) "k_ref_off" (*) "*" (number_literal) "0.1" (;) ";" (}) "}" (}) "}" (comment) "// troponin Initialisation function" (function_definition) "void TroponinInit(Troponin* me) {\n // Initialise State\n me->state = TROPONIN_Q0;\n\n // Initialise Outputs\n me->j_trpn = 0.0;\n me->ca_trpn_max = 0.07;\n me->k_on = 100.0;\n me->k_ref_off = 0.2;\n me->gamma_trpn = 2.0;\n\n // Initialise Internal Variables\n me->k_off = 0.0;\n}" (primitive_type) "void" (function_declarator) "TroponinInit(Troponin* me)" (identifier) "TroponinInit" (parameter_list) "(Troponin* me)" (() "(" (parameter_declaration) "Troponin* me" (type_identifier) "Troponin" (pointer_declarator) "* me" (*) "*" (identifier) "me" ()) ")" (compound_statement) "{\n // Initialise State\n me->state = TROPONIN_Q0;\n\n // Initialise Outputs\n me->j_trpn = 0.0;\n me->ca_trpn_max = 0.07;\n me->k_on = 100.0;\n me->k_ref_off = 0.2;\n me->gamma_trpn = 2.0;\n\n // Initialise Internal Variables\n me->k_off = 0.0;\n}" ({) "{" (comment) "// Initialise State" (expression_statement) "me->state = TROPONIN_Q0;" (assignment_expression) "me->state = TROPONIN_Q0" (field_expression) "me->state" (identifier) "me" (->) "->" (field_identifier) "state" (=) "=" (identifier) "TROPONIN_Q0" (;) ";" (comment) "// Initialise Outputs" (expression_statement) "me->j_trpn = 0.0;" (assignment_expression) "me->j_trpn = 0.0" (field_expression) "me->j_trpn" (identifier) "me" (->) "->" (field_identifier) "j_trpn" (=) "=" (number_literal) "0.0" (;) ";" (expression_statement) "me->ca_trpn_max = 0.07;" (assignment_expression) "me->ca_trpn_max = 0.07" (field_expression) "me->ca_trpn_max" (identifier) "me" (->) "->" (field_identifier) "ca_trpn_max" (=) "=" (number_literal) "0.07" (;) ";" (expression_statement) "me->k_on = 100.0;" (assignment_expression) "me->k_on = 100.0" (field_expression) "me->k_on" (identifier) "me" (->) "->" (field_identifier) "k_on" (=) "=" (number_literal) "100.0" (;) ";" (expression_statement) "me->k_ref_off = 0.2;" (assignment_expression) "me->k_ref_off = 0.2" (field_expression) "me->k_ref_off" (identifier) "me" (->) "->" (field_identifier) "k_ref_off" (=) "=" (number_literal) "0.2" (;) ";" (expression_statement) "me->gamma_trpn = 2.0;" (assignment_expression) "me->gamma_trpn = 2.0" (field_expression) "me->gamma_trpn" (identifier) "me" (->) "->" (field_identifier) "gamma_trpn" (=) "=" (number_literal) "2.0" (;) ";" (comment) "// Initialise Internal Variables" (expression_statement) "me->k_off = 0.0;" (assignment_expression) "me->k_off = 0.0" (field_expression) "me->k_off" (identifier) "me" (->) "->" (field_identifier) "k_off" (=) "=" (number_literal) "0.0" (;) ";" (}) "}" (comment) "// troponin Execution function" (function_definition) "void TroponinRun(Troponin* me) {\n // Create intermediary variables\n enum TroponinStates state_u = me->state;\n double j_trpn_u = me->j_trpn;\n double ca_trpn_max_u = me->ca_trpn_max;\n double k_on_u = me->k_on;\n double k_ref_off_u = me->k_ref_off;\n double gamma_trpn_u = me->gamma_trpn;\n\n double k_off_u = me->k_off;\n\n\n // Run the state machine for transition logic\n switch(me->state) {\n case TROPONIN_Q0: // Logic for state q0\n if(true) {\n k_off_u = KOffPw(me->tension, me->gamma_trpn, me->t_ref, me->k_ref_off);\n j_trpn_u = (me->ca_trpn_max - me->trpn) * me->k_off - me->ca_i * me->trpn * me->k_on;\n\n // Remain in this state\n state_u = TROPONIN_Q0;\n }\n break;\n }\n\n // Update from intermediary variables\n me->state = state_u;\n me->j_trpn = j_trpn_u;\n me->ca_trpn_max = ca_trpn_max_u;\n me->k_on = k_on_u;\n me->k_ref_off = k_ref_off_u;\n me->gamma_trpn = gamma_trpn_u;\n\n me->k_off = k_off_u;\n\n}" (primitive_type) "void" (function_declarator) "TroponinRun(Troponin* me)" (identifier) "TroponinRun" (parameter_list) "(Troponin* me)" (() "(" (parameter_declaration) "Troponin* me" (type_identifier) "Troponin" (pointer_declarator) "* me" (*) "*" (identifier) "me" ()) ")" (compound_statement) "{\n // Create intermediary variables\n enum TroponinStates state_u = me->state;\n double j_trpn_u = me->j_trpn;\n double ca_trpn_max_u = me->ca_trpn_max;\n double k_on_u = me->k_on;\n double k_ref_off_u = me->k_ref_off;\n double gamma_trpn_u = me->gamma_trpn;\n\n double k_off_u = me->k_off;\n\n\n // Run the state machine for transition logic\n switch(me->state) {\n case TROPONIN_Q0: // Logic for state q0\n if(true) {\n k_off_u = KOffPw(me->tension, me->gamma_trpn, me->t_ref, me->k_ref_off);\n j_trpn_u = (me->ca_trpn_max - me->trpn) * me->k_off - me->ca_i * me->trpn * me->k_on;\n\n // Remain in this state\n state_u = TROPONIN_Q0;\n }\n break;\n }\n\n // Update from intermediary variables\n me->state = state_u;\n me->j_trpn = j_trpn_u;\n me->ca_trpn_max = ca_trpn_max_u;\n me->k_on = k_on_u;\n me->k_ref_off = k_ref_off_u;\n me->gamma_trpn = gamma_trpn_u;\n\n me->k_off = k_off_u;\n\n}" ({) "{" (comment) "// Create intermediary variables" (declaration) "enum TroponinStates state_u = me->state;" (enum_specifier) "enum TroponinStates" (enum) "enum" (type_identifier) "TroponinStates" (init_declarator) "state_u = me->state" (identifier) "state_u" (=) "=" (field_expression) "me->state" (identifier) "me" (->) "->" (field_identifier) "state" (;) ";" (declaration) "double j_trpn_u = me->j_trpn;" (primitive_type) "double" (init_declarator) "j_trpn_u = me->j_trpn" (identifier) "j_trpn_u" (=) "=" (field_expression) "me->j_trpn" (identifier) "me" (->) "->" (field_identifier) "j_trpn" (;) ";" (declaration) "double ca_trpn_max_u = me->ca_trpn_max;" (primitive_type) "double" (init_declarator) "ca_trpn_max_u = me->ca_trpn_max" (identifier) "ca_trpn_max_u" (=) "=" (field_expression) "me->ca_trpn_max" (identifier) "me" (->) "->" (field_identifier) "ca_trpn_max" (;) ";" (declaration) "double k_on_u = me->k_on;" (primitive_type) "double" (init_declarator) "k_on_u = me->k_on" (identifier) "k_on_u" (=) "=" (field_expression) "me->k_on" (identifier) "me" (->) "->" (field_identifier) "k_on" (;) ";" (declaration) "double k_ref_off_u = me->k_ref_off;" (primitive_type) "double" (init_declarator) "k_ref_off_u = me->k_ref_off" (identifier) "k_ref_off_u" (=) "=" (field_expression) "me->k_ref_off" (identifier) "me" (->) "->" (field_identifier) "k_ref_off" (;) ";" (declaration) "double gamma_trpn_u = me->gamma_trpn;" (primitive_type) "double" (init_declarator) "gamma_trpn_u = me->gamma_trpn" (identifier) "gamma_trpn_u" (=) "=" (field_expression) "me->gamma_trpn" (identifier) "me" (->) "->" (field_identifier) "gamma_trpn" (;) ";" (declaration) "double k_off_u = me->k_off;" (primitive_type) "double" (init_declarator) "k_off_u = me->k_off" (identifier) "k_off_u" (=) "=" (field_expression) "me->k_off" (identifier) "me" (->) "->" (field_identifier) "k_off" (;) ";" (comment) "// Run the state machine for transition logic" (switch_statement) "switch(me->state) {\n case TROPONIN_Q0: // Logic for state q0\n if(true) {\n k_off_u = KOffPw(me->tension, me->gamma_trpn, me->t_ref, me->k_ref_off);\n j_trpn_u = (me->ca_trpn_max - me->trpn) * me->k_off - me->ca_i * me->trpn * me->k_on;\n\n // Remain in this state\n state_u = TROPONIN_Q0;\n }\n break;\n }" (switch) "switch" (parenthesized_expression) "(me->state)" (() "(" (field_expression) "me->state" (identifier) "me" (->) "->" (field_identifier) "state" ()) ")" (compound_statement) "{\n case TROPONIN_Q0: // Logic for state q0\n if(true) {\n k_off_u = KOffPw(me->tension, me->gamma_trpn, me->t_ref, me->k_ref_off);\n j_trpn_u = (me->ca_trpn_max - me->trpn) * me->k_off - me->ca_i * me->trpn * me->k_on;\n\n // Remain in this state\n state_u = TROPONIN_Q0;\n }\n break;\n }" ({) "{" (case_statement) "case TROPONIN_Q0: // Logic for state q0\n if(true) {\n k_off_u = KOffPw(me->tension, me->gamma_trpn, me->t_ref, me->k_ref_off);\n j_trpn_u = (me->ca_trpn_max - me->trpn) * me->k_off - me->ca_i * me->trpn * me->k_on;\n\n // Remain in this state\n state_u = TROPONIN_Q0;\n }\n break;" (case) "case" (identifier) "TROPONIN_Q0" (:) ":" (comment) "// Logic for state q0" (if_statement) "if(true) {\n k_off_u = KOffPw(me->tension, me->gamma_trpn, me->t_ref, me->k_ref_off);\n j_trpn_u = (me->ca_trpn_max - me->trpn) * me->k_off - me->ca_i * me->trpn * me->k_on;\n\n // Remain in this state\n state_u = TROPONIN_Q0;\n }" (if) "if" (parenthesized_expression) "(true)" (() "(" (true) "true" ()) ")" (compound_statement) "{\n k_off_u = KOffPw(me->tension, me->gamma_trpn, me->t_ref, me->k_ref_off);\n j_trpn_u = (me->ca_trpn_max - me->trpn) * me->k_off - me->ca_i * me->trpn * me->k_on;\n\n // Remain in this state\n state_u = TROPONIN_Q0;\n }" ({) "{" (expression_statement) "k_off_u = KOffPw(me->tension, me->gamma_trpn, me->t_ref, me->k_ref_off);" (assignment_expression) "k_off_u = KOffPw(me->tension, me->gamma_trpn, me->t_ref, me->k_ref_off)" (identifier) "k_off_u" (=) "=" (call_expression) "KOffPw(me->tension, me->gamma_trpn, me->t_ref, me->k_ref_off)" (identifier) "KOffPw" (argument_list) "(me->tension, me->gamma_trpn, me->t_ref, me->k_ref_off)" (() "(" (field_expression) "me->tension" (identifier) "me" (->) "->" (field_identifier) "tension" (,) "," (field_expression) "me->gamma_trpn" (identifier) "me" (->) "->" (field_identifier) "gamma_trpn" (,) "," (field_expression) "me->t_ref" (identifier) "me" (->) "->" (field_identifier) "t_ref" (,) "," (field_expression) "me->k_ref_off" (identifier) "me" (->) "->" (field_identifier) "k_ref_off" ()) ")" (;) ";" (expression_statement) "j_trpn_u = (me->ca_trpn_max - me->trpn) * me->k_off - me->ca_i * me->trpn * me->k_on;" (assignment_expression) "j_trpn_u = (me->ca_trpn_max - me->trpn) * me->k_off - me->ca_i * me->trpn * me->k_on" (identifier) "j_trpn_u" (=) "=" (binary_expression) "(me->ca_trpn_max - me->trpn) * me->k_off - me->ca_i * me->trpn * me->k_on" (binary_expression) "(me->ca_trpn_max - me->trpn) * me->k_off" (parenthesized_expression) "(me->ca_trpn_max - me->trpn)" (() "(" (binary_expression) "me->ca_trpn_max - me->trpn" (field_expression) "me->ca_trpn_max" (identifier) "me" (->) "->" (field_identifier) "ca_trpn_max" (-) "-" (field_expression) "me->trpn" (identifier) "me" (->) "->" (field_identifier) "trpn" ()) ")" (*) "*" (field_expression) "me->k_off" (identifier) "me" (->) "->" (field_identifier) "k_off" (-) "-" (binary_expression) "me->ca_i * me->trpn * me->k_on" (binary_expression) "me->ca_i * me->trpn" (field_expression) "me->ca_i" (identifier) "me" (->) "->" (field_identifier) "ca_i" (*) "*" (field_expression) "me->trpn" (identifier) "me" (->) "->" (field_identifier) "trpn" (*) "*" (field_expression) "me->k_on" (identifier) "me" (->) "->" (field_identifier) "k_on" (;) ";" (comment) "// Remain in this state" (expression_statement) "state_u = TROPONIN_Q0;" (assignment_expression) "state_u = TROPONIN_Q0" (identifier) "state_u" (=) "=" (identifier) "TROPONIN_Q0" (;) ";" (}) "}" (break_statement) "break;" (break) "break" (;) ";" (}) "}" (comment) "// Update from intermediary variables" (expression_statement) "me->state = state_u;" (assignment_expression) "me->state = state_u" (field_expression) "me->state" (identifier) "me" (->) "->" (field_identifier) "state" (=) "=" (identifier) "state_u" (;) ";" (expression_statement) "me->j_trpn = j_trpn_u;" (assignment_expression) "me->j_trpn = j_trpn_u" (field_expression) "me->j_trpn" (identifier) "me" (->) "->" (field_identifier) "j_trpn" (=) "=" (identifier) "j_trpn_u" (;) ";" (expression_statement) "me->ca_trpn_max = ca_trpn_max_u;" (assignment_expression) "me->ca_trpn_max = ca_trpn_max_u" (field_expression) "me->ca_trpn_max" (identifier) "me" (->) "->" (field_identifier) "ca_trpn_max" (=) "=" (identifier) "ca_trpn_max_u" (;) ";" (expression_statement) "me->k_on = k_on_u;" (assignment_expression) "me->k_on = k_on_u" (field_expression) "me->k_on" (identifier) "me" (->) "->" (field_identifier) "k_on" (=) "=" (identifier) "k_on_u" (;) ";" (expression_statement) "me->k_ref_off = k_ref_off_u;" (assignment_expression) "me->k_ref_off = k_ref_off_u" (field_expression) "me->k_ref_off" (identifier) "me" (->) "->" (field_identifier) "k_ref_off" (=) "=" (identifier) "k_ref_off_u" (;) ";" (expression_statement) "me->gamma_trpn = gamma_trpn_u;" (assignment_expression) "me->gamma_trpn = gamma_trpn_u" (field_expression) "me->gamma_trpn" (identifier) "me" (->) "->" (field_identifier) "gamma_trpn" (=) "=" (identifier) "gamma_trpn_u" (;) ";" (expression_statement) "me->k_off = k_off_u;" (assignment_expression) "me->k_off = k_off_u" (field_expression) "me->k_off" (identifier) "me" (->) "->" (field_identifier) "k_off" (=) "=" (identifier) "k_off_u" (;) ";" (}) "}"
435
0
{"language": "c", "success": true, "metadata": {"lines": 54, "avg_line_length": 30.37, "nodes": 288, "errors": 0, "source_hash": "7cdbe475c4be4289c7d247f7b2bf2c1cb6dd38b46753a05ebd437e4a893e2e18", "categorized_nodes": 218}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#include \"troponin.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": "\"troponin.h\"", "parent": 0, "children": [], "start_point": {"row": 0, "column": 9}, "end_point": {"row": 0, "column": 21}}, {"id": 3, "type": "function_definition", "text": "static double KOffPw(double tension, double gamma_trpn, double t_ref, double k_ref_off) {\n if(1.0 - tension / (gamma_trpn * t_ref) > 0.1) {\n return k_ref_off * (1.0 - tension / (gamma_trpn * t_ref));\n }\n else {\n return k_ref_off * 0.1;\n }\n}", "parent": null, "children": [4, 5], "start_point": {"row": 2, "column": 0}, "end_point": {"row": 9, "column": 1}}, {"id": 4, "type": "primitive_type", "text": "double", "parent": 3, "children": [], "start_point": {"row": 2, "column": 7}, "end_point": {"row": 2, "column": 13}}, {"id": 5, "type": "function_declarator", "text": "KOffPw(double tension, double gamma_trpn, double t_ref, double k_ref_off)", "parent": 3, "children": [6, 7], "start_point": {"row": 2, "column": 14}, "end_point": {"row": 2, "column": 87}}, {"id": 6, "type": "identifier", "text": "KOffPw", "parent": 5, "children": [], "start_point": {"row": 2, "column": 14}, "end_point": {"row": 2, "column": 20}}, {"id": 7, "type": "parameter_list", "text": "(double tension, double gamma_trpn, double t_ref, double k_ref_off)", "parent": 5, "children": [8, 11, 14, 17], "start_point": {"row": 2, "column": 20}, "end_point": {"row": 2, "column": 87}}, {"id": 8, "type": "parameter_declaration", "text": "double tension", "parent": 7, "children": [9, 10], "start_point": {"row": 2, "column": 21}, "end_point": {"row": 2, "column": 35}}, {"id": 9, "type": "primitive_type", "text": "double", "parent": 8, "children": [], "start_point": {"row": 2, "column": 21}, "end_point": {"row": 2, "column": 27}}, {"id": 10, "type": "identifier", "text": "tension", "parent": 8, "children": [], "start_point": {"row": 2, "column": 28}, "end_point": {"row": 2, "column": 35}}, {"id": 11, "type": "parameter_declaration", "text": "double gamma_trpn", "parent": 7, "children": [12, 13], "start_point": {"row": 2, "column": 37}, "end_point": {"row": 2, "column": 54}}, {"id": 12, "type": "primitive_type", "text": "double", "parent": 11, "children": [], "start_point": {"row": 2, "column": 37}, "end_point": {"row": 2, "column": 43}}, {"id": 13, "type": "identifier", "text": "gamma_trpn", "parent": 11, "children": [], "start_point": {"row": 2, "column": 44}, "end_point": {"row": 2, "column": 54}}, {"id": 14, "type": "parameter_declaration", "text": "double t_ref", "parent": 7, "children": [15, 16], "start_point": {"row": 2, "column": 56}, "end_point": {"row": 2, "column": 68}}, {"id": 15, "type": "primitive_type", "text": "double", "parent": 14, "children": [], "start_point": {"row": 2, "column": 56}, "end_point": {"row": 2, "column": 62}}, {"id": 16, "type": "identifier", "text": "t_ref", "parent": 14, "children": [], "start_point": {"row": 2, "column": 63}, "end_point": {"row": 2, "column": 68}}, {"id": 17, "type": "parameter_declaration", "text": "double k_ref_off", "parent": 7, "children": [18, 19], "start_point": {"row": 2, "column": 70}, "end_point": {"row": 2, "column": 86}}, {"id": 18, "type": "primitive_type", "text": "double", "parent": 17, "children": [], "start_point": {"row": 2, "column": 70}, "end_point": {"row": 2, "column": 76}}, {"id": 19, "type": "identifier", "text": "k_ref_off", "parent": 17, "children": [], "start_point": {"row": 2, "column": 77}, "end_point": {"row": 2, "column": 86}}, {"id": 20, "type": "if_statement", "text": "if(1.0 - tension / (gamma_trpn * t_ref) > 0.1) {\n return k_ref_off * (1.0 - tension / (gamma_trpn * t_ref));\n }\n else {\n return k_ref_off * 0.1;\n }", "parent": 3, "children": [21, 52], "start_point": {"row": 3, "column": 4}, "end_point": {"row": 8, "column": 5}}, {"id": 21, "type": "parenthesized_expression", "text": "(1.0 - tension / (gamma_trpn * t_ref) > 0.1)", "parent": 20, "children": [22], "start_point": {"row": 3, "column": 6}, "end_point": {"row": 3, "column": 50}}, {"id": 22, "type": "binary_expression", "text": "1.0 - tension / (gamma_trpn * t_ref) > 0.1", "parent": 21, "children": [23, 34, 35], "start_point": {"row": 3, "column": 7}, "end_point": {"row": 3, "column": 49}}, {"id": 23, "type": "binary_expression", "text": "1.0 - tension / (gamma_trpn * t_ref)", "parent": 22, "children": [24, 25, 26], "start_point": {"row": 3, "column": 7}, "end_point": {"row": 3, "column": 43}}, {"id": 24, "type": "number_literal", "text": "1.0", "parent": 23, "children": [], "start_point": {"row": 3, "column": 7}, "end_point": {"row": 3, "column": 10}}, {"id": 25, "type": "-", "text": "-", "parent": 23, "children": [], "start_point": {"row": 3, "column": 11}, "end_point": {"row": 3, "column": 12}}, {"id": 26, "type": "binary_expression", "text": "tension / (gamma_trpn * t_ref)", "parent": 23, "children": [27, 28, 29], "start_point": {"row": 3, "column": 13}, "end_point": {"row": 3, "column": 43}}, {"id": 27, "type": "identifier", "text": "tension", "parent": 26, "children": [], "start_point": {"row": 3, "column": 13}, "end_point": {"row": 3, "column": 20}}, {"id": 28, "type": "/", "text": "/", "parent": 26, "children": [], "start_point": {"row": 3, "column": 21}, "end_point": {"row": 3, "column": 22}}, {"id": 29, "type": "parenthesized_expression", "text": "(gamma_trpn * t_ref)", "parent": 26, "children": [30], "start_point": {"row": 3, "column": 23}, "end_point": {"row": 3, "column": 43}}, {"id": 30, "type": "binary_expression", "text": "gamma_trpn * t_ref", "parent": 29, "children": [31, 32, 33], "start_point": {"row": 3, "column": 24}, "end_point": {"row": 3, "column": 42}}, {"id": 31, "type": "identifier", "text": "gamma_trpn", "parent": 30, "children": [], "start_point": {"row": 3, "column": 24}, "end_point": {"row": 3, "column": 34}}, {"id": 32, "type": "*", "text": "*", "parent": 30, "children": [], "start_point": {"row": 3, "column": 35}, "end_point": {"row": 3, "column": 36}}, {"id": 33, "type": "identifier", "text": "t_ref", "parent": 30, "children": [], "start_point": {"row": 3, "column": 37}, "end_point": {"row": 3, "column": 42}}, {"id": 34, "type": ">", "text": ">", "parent": 22, "children": [], "start_point": {"row": 3, "column": 44}, "end_point": {"row": 3, "column": 45}}, {"id": 35, "type": "number_literal", "text": "0.1", "parent": 22, "children": [], "start_point": {"row": 3, "column": 46}, "end_point": {"row": 3, "column": 49}}, {"id": 36, "type": "return_statement", "text": "return k_ref_off * (1.0 - tension / (gamma_trpn * t_ref));", "parent": 20, "children": [37], "start_point": {"row": 4, "column": 8}, "end_point": {"row": 4, "column": 66}}, {"id": 37, "type": "binary_expression", "text": "k_ref_off * (1.0 - tension / (gamma_trpn * t_ref))", "parent": 36, "children": [38, 39, 40], "start_point": {"row": 4, "column": 15}, "end_point": {"row": 4, "column": 65}}, {"id": 38, "type": "identifier", "text": "k_ref_off", "parent": 37, "children": [], "start_point": {"row": 4, "column": 15}, "end_point": {"row": 4, "column": 24}}, {"id": 39, "type": "*", "text": "*", "parent": 37, "children": [], "start_point": {"row": 4, "column": 25}, "end_point": {"row": 4, "column": 26}}, {"id": 40, "type": "parenthesized_expression", "text": "(1.0 - tension / (gamma_trpn * t_ref))", "parent": 37, "children": [41], "start_point": {"row": 4, "column": 27}, "end_point": {"row": 4, "column": 65}}, {"id": 41, "type": "binary_expression", "text": "1.0 - tension / (gamma_trpn * t_ref)", "parent": 40, "children": [42, 43, 44], "start_point": {"row": 4, "column": 28}, "end_point": {"row": 4, "column": 64}}, {"id": 42, "type": "number_literal", "text": "1.0", "parent": 41, "children": [], "start_point": {"row": 4, "column": 28}, "end_point": {"row": 4, "column": 31}}, {"id": 43, "type": "-", "text": "-", "parent": 41, "children": [], "start_point": {"row": 4, "column": 32}, "end_point": {"row": 4, "column": 33}}, {"id": 44, "type": "binary_expression", "text": "tension / (gamma_trpn * t_ref)", "parent": 41, "children": [45, 46, 47], "start_point": {"row": 4, "column": 34}, "end_point": {"row": 4, "column": 64}}, {"id": 45, "type": "identifier", "text": "tension", "parent": 44, "children": [], "start_point": {"row": 4, "column": 34}, "end_point": {"row": 4, "column": 41}}, {"id": 46, "type": "/", "text": "/", "parent": 44, "children": [], "start_point": {"row": 4, "column": 42}, "end_point": {"row": 4, "column": 43}}, {"id": 47, "type": "parenthesized_expression", "text": "(gamma_trpn * t_ref)", "parent": 44, "children": [48], "start_point": {"row": 4, "column": 44}, "end_point": {"row": 4, "column": 64}}, {"id": 48, "type": "binary_expression", "text": "gamma_trpn * t_ref", "parent": 47, "children": [49, 50, 51], "start_point": {"row": 4, "column": 45}, "end_point": {"row": 4, "column": 63}}, {"id": 49, "type": "identifier", "text": "gamma_trpn", "parent": 48, "children": [], "start_point": {"row": 4, "column": 45}, "end_point": {"row": 4, "column": 55}}, {"id": 50, "type": "*", "text": "*", "parent": 48, "children": [], "start_point": {"row": 4, "column": 56}, "end_point": {"row": 4, "column": 57}}, {"id": 51, "type": "identifier", "text": "t_ref", "parent": 48, "children": [], "start_point": {"row": 4, "column": 58}, "end_point": {"row": 4, "column": 63}}, {"id": 52, "type": "else_clause", "text": "else {\n return k_ref_off * 0.1;\n }", "parent": 20, "children": [], "start_point": {"row": 6, "column": 4}, "end_point": {"row": 8, "column": 5}}, {"id": 53, "type": "return_statement", "text": "return k_ref_off * 0.1;", "parent": 52, "children": [54], "start_point": {"row": 7, "column": 8}, "end_point": {"row": 7, "column": 31}}, {"id": 54, "type": "binary_expression", "text": "k_ref_off * 0.1", "parent": 53, "children": [55, 56, 57], "start_point": {"row": 7, "column": 15}, "end_point": {"row": 7, "column": 30}}, {"id": 55, "type": "identifier", "text": "k_ref_off", "parent": 54, "children": [], "start_point": {"row": 7, "column": 15}, "end_point": {"row": 7, "column": 24}}, {"id": 56, "type": "*", "text": "*", "parent": 54, "children": [], "start_point": {"row": 7, "column": 25}, "end_point": {"row": 7, "column": 26}}, {"id": 57, "type": "number_literal", "text": "0.1", "parent": 54, "children": [], "start_point": {"row": 7, "column": 27}, "end_point": {"row": 7, "column": 30}}, {"id": 58, "type": "function_definition", "text": "void TroponinInit(Troponin* me) {\n // Initialise State\n me->state = TROPONIN_Q0;\n\n // Initialise Outputs\n me->j_trpn = 0.0;\n me->ca_trpn_max = 0.07;\n me->k_on = 100.0;\n me->k_ref_off = 0.2;\n me->gamma_trpn = 2.0;\n\n // Initialise Internal Variables\n me->k_off = 0.0;\n}", "parent": null, "children": [59, 60], "start_point": {"row": 13, "column": 0}, "end_point": {"row": 26, "column": 1}}, {"id": 59, "type": "primitive_type", "text": "void", "parent": 58, "children": [], "start_point": {"row": 13, "column": 0}, "end_point": {"row": 13, "column": 4}}, {"id": 60, "type": "function_declarator", "text": "TroponinInit(Troponin* me)", "parent": 58, "children": [61, 62], "start_point": {"row": 13, "column": 5}, "end_point": {"row": 13, "column": 31}}, {"id": 61, "type": "identifier", "text": "TroponinInit", "parent": 60, "children": [], "start_point": {"row": 13, "column": 5}, "end_point": {"row": 13, "column": 17}}, {"id": 62, "type": "parameter_list", "text": "(Troponin* me)", "parent": 60, "children": [63], "start_point": {"row": 13, "column": 17}, "end_point": {"row": 13, "column": 31}}, {"id": 63, "type": "parameter_declaration", "text": "Troponin* me", "parent": 62, "children": [64, 65], "start_point": {"row": 13, "column": 18}, "end_point": {"row": 13, "column": 30}}, {"id": 64, "type": "type_identifier", "text": "Troponin", "parent": 63, "children": [], "start_point": {"row": 13, "column": 18}, "end_point": {"row": 13, "column": 26}}, {"id": 65, "type": "pointer_declarator", "text": "* me", "parent": 63, "children": [66, 67], "start_point": {"row": 13, "column": 26}, "end_point": {"row": 13, "column": 30}}, {"id": 66, "type": "*", "text": "*", "parent": 65, "children": [], "start_point": {"row": 13, "column": 26}, "end_point": {"row": 13, "column": 27}}, {"id": 67, "type": "identifier", "text": "me", "parent": 65, "children": [], "start_point": {"row": 13, "column": 28}, "end_point": {"row": 13, "column": 30}}, {"id": 68, "type": "assignment_expression", "text": "me->state = TROPONIN_Q0", "parent": 58, "children": [69, 72, 73], "start_point": {"row": 15, "column": 4}, "end_point": {"row": 15, "column": 27}}, {"id": 69, "type": "field_expression", "text": "me->state", "parent": 68, "children": [70, 71], "start_point": {"row": 15, "column": 4}, "end_point": {"row": 15, "column": 13}}, {"id": 70, "type": "identifier", "text": "me", "parent": 69, "children": [], "start_point": {"row": 15, "column": 4}, "end_point": {"row": 15, "column": 6}}, {"id": 71, "type": "field_identifier", "text": "state", "parent": 69, "children": [], "start_point": {"row": 15, "column": 8}, "end_point": {"row": 15, "column": 13}}, {"id": 72, "type": "=", "text": "=", "parent": 68, "children": [], "start_point": {"row": 15, "column": 14}, "end_point": {"row": 15, "column": 15}}, {"id": 73, "type": "identifier", "text": "TROPONIN_Q0", "parent": 68, "children": [], "start_point": {"row": 15, "column": 16}, "end_point": {"row": 15, "column": 27}}, {"id": 74, "type": "assignment_expression", "text": "me->j_trpn = 0.0", "parent": 58, "children": [75, 78, 79], "start_point": {"row": 18, "column": 4}, "end_point": {"row": 18, "column": 20}}, {"id": 75, "type": "field_expression", "text": "me->j_trpn", "parent": 74, "children": [76, 77], "start_point": {"row": 18, "column": 4}, "end_point": {"row": 18, "column": 14}}, {"id": 76, "type": "identifier", "text": "me", "parent": 75, "children": [], "start_point": {"row": 18, "column": 4}, "end_point": {"row": 18, "column": 6}}, {"id": 77, "type": "field_identifier", "text": "j_trpn", "parent": 75, "children": [], "start_point": {"row": 18, "column": 8}, "end_point": {"row": 18, "column": 14}}, {"id": 78, "type": "=", "text": "=", "parent": 74, "children": [], "start_point": {"row": 18, "column": 15}, "end_point": {"row": 18, "column": 16}}, {"id": 79, "type": "number_literal", "text": "0.0", "parent": 74, "children": [], "start_point": {"row": 18, "column": 17}, "end_point": {"row": 18, "column": 20}}, {"id": 80, "type": "assignment_expression", "text": "me->ca_trpn_max = 0.07", "parent": 58, "children": [81, 84, 85], "start_point": {"row": 19, "column": 4}, "end_point": {"row": 19, "column": 26}}, {"id": 81, "type": "field_expression", "text": "me->ca_trpn_max", "parent": 80, "children": [82, 83], "start_point": {"row": 19, "column": 4}, "end_point": {"row": 19, "column": 19}}, {"id": 82, "type": "identifier", "text": "me", "parent": 81, "children": [], "start_point": {"row": 19, "column": 4}, "end_point": {"row": 19, "column": 6}}, {"id": 83, "type": "field_identifier", "text": "ca_trpn_max", "parent": 81, "children": [], "start_point": {"row": 19, "column": 8}, "end_point": {"row": 19, "column": 19}}, {"id": 84, "type": "=", "text": "=", "parent": 80, "children": [], "start_point": {"row": 19, "column": 20}, "end_point": {"row": 19, "column": 21}}, {"id": 85, "type": "number_literal", "text": "0.07", "parent": 80, "children": [], "start_point": {"row": 19, "column": 22}, "end_point": {"row": 19, "column": 26}}, {"id": 86, "type": "assignment_expression", "text": "me->k_on = 100.0", "parent": 58, "children": [87, 90, 91], "start_point": {"row": 20, "column": 4}, "end_point": {"row": 20, "column": 20}}, {"id": 87, "type": "field_expression", "text": "me->k_on", "parent": 86, "children": [88, 89], "start_point": {"row": 20, "column": 4}, "end_point": {"row": 20, "column": 12}}, {"id": 88, "type": "identifier", "text": "me", "parent": 87, "children": [], "start_point": {"row": 20, "column": 4}, "end_point": {"row": 20, "column": 6}}, {"id": 89, "type": "field_identifier", "text": "k_on", "parent": 87, "children": [], "start_point": {"row": 20, "column": 8}, "end_point": {"row": 20, "column": 12}}, {"id": 90, "type": "=", "text": "=", "parent": 86, "children": [], "start_point": {"row": 20, "column": 13}, "end_point": {"row": 20, "column": 14}}, {"id": 91, "type": "number_literal", "text": "100.0", "parent": 86, "children": [], "start_point": {"row": 20, "column": 15}, "end_point": {"row": 20, "column": 20}}, {"id": 92, "type": "assignment_expression", "text": "me->k_ref_off = 0.2", "parent": 58, "children": [93, 96, 97], "start_point": {"row": 21, "column": 4}, "end_point": {"row": 21, "column": 23}}, {"id": 93, "type": "field_expression", "text": "me->k_ref_off", "parent": 92, "children": [94, 95], "start_point": {"row": 21, "column": 4}, "end_point": {"row": 21, "column": 17}}, {"id": 94, "type": "identifier", "text": "me", "parent": 93, "children": [], "start_point": {"row": 21, "column": 4}, "end_point": {"row": 21, "column": 6}}, {"id": 95, "type": "field_identifier", "text": "k_ref_off", "parent": 93, "children": [], "start_point": {"row": 21, "column": 8}, "end_point": {"row": 21, "column": 17}}, {"id": 96, "type": "=", "text": "=", "parent": 92, "children": [], "start_point": {"row": 21, "column": 18}, "end_point": {"row": 21, "column": 19}}, {"id": 97, "type": "number_literal", "text": "0.2", "parent": 92, "children": [], "start_point": {"row": 21, "column": 20}, "end_point": {"row": 21, "column": 23}}, {"id": 98, "type": "assignment_expression", "text": "me->gamma_trpn = 2.0", "parent": 58, "children": [99, 102, 103], "start_point": {"row": 22, "column": 4}, "end_point": {"row": 22, "column": 24}}, {"id": 99, "type": "field_expression", "text": "me->gamma_trpn", "parent": 98, "children": [100, 101], "start_point": {"row": 22, "column": 4}, "end_point": {"row": 22, "column": 18}}, {"id": 100, "type": "identifier", "text": "me", "parent": 99, "children": [], "start_point": {"row": 22, "column": 4}, "end_point": {"row": 22, "column": 6}}, {"id": 101, "type": "field_identifier", "text": "gamma_trpn", "parent": 99, "children": [], "start_point": {"row": 22, "column": 8}, "end_point": {"row": 22, "column": 18}}, {"id": 102, "type": "=", "text": "=", "parent": 98, "children": [], "start_point": {"row": 22, "column": 19}, "end_point": {"row": 22, "column": 20}}, {"id": 103, "type": "number_literal", "text": "2.0", "parent": 98, "children": [], "start_point": {"row": 22, "column": 21}, "end_point": {"row": 22, "column": 24}}, {"id": 104, "type": "assignment_expression", "text": "me->k_off = 0.0", "parent": 58, "children": [105, 108, 109], "start_point": {"row": 25, "column": 4}, "end_point": {"row": 25, "column": 19}}, {"id": 105, "type": "field_expression", "text": "me->k_off", "parent": 104, "children": [106, 107], "start_point": {"row": 25, "column": 4}, "end_point": {"row": 25, "column": 13}}, {"id": 106, "type": "identifier", "text": "me", "parent": 105, "children": [], "start_point": {"row": 25, "column": 4}, "end_point": {"row": 25, "column": 6}}, {"id": 107, "type": "field_identifier", "text": "k_off", "parent": 105, "children": [], "start_point": {"row": 25, "column": 8}, "end_point": {"row": 25, "column": 13}}, {"id": 108, "type": "=", "text": "=", "parent": 104, "children": [], "start_point": {"row": 25, "column": 14}, "end_point": {"row": 25, "column": 15}}, {"id": 109, "type": "number_literal", "text": "0.0", "parent": 104, "children": [], "start_point": {"row": 25, "column": 16}, "end_point": {"row": 25, "column": 19}}, {"id": 110, "type": "function_definition", "text": "void TroponinRun(Troponin* me) {\n // Create intermediary variables\n enum TroponinStates state_u = me->state;\n double j_trpn_u = me->j_trpn;\n double ca_trpn_max_u = me->ca_trpn_max;\n double k_on_u = me->k_on;\n double k_ref_off_u = me->k_ref_off;\n double gamma_trpn_u = me->gamma_trpn;\n\n double k_off_u = me->k_off;\n\n\n // Run the state machine for transition logic\n switch(me->state) {\n case TROPONIN_Q0: // Logic for state q0\n if(true) {\n k_off_u = KOffPw(me->tension, me->gamma_trpn, me->t_ref, me->k_ref_off);\n j_trpn_u = (me->ca_trpn_max - me->trpn) * me->k_off - me->ca_i * me->trpn * me->k_on;\n\n // Remain in this state\n state_u = TROPONIN_Q0;\n }\n break;\n }\n\n // Update from intermediary variables\n me->state = state_u;\n me->j_trpn = j_trpn_u;\n me->ca_trpn_max = ca_trpn_max_u;\n me->k_on = k_on_u;\n me->k_ref_off = k_ref_off_u;\n me->gamma_trpn = gamma_trpn_u;\n\n me->k_off = k_off_u;\n\n}", "parent": null, "children": [111, 112], "start_point": {"row": 29, "column": 0}, "end_point": {"row": 64, "column": 1}}, {"id": 111, "type": "primitive_type", "text": "void", "parent": 110, "children": [], "start_point": {"row": 29, "column": 0}, "end_point": {"row": 29, "column": 4}}, {"id": 112, "type": "function_declarator", "text": "TroponinRun(Troponin* me)", "parent": 110, "children": [113, 114], "start_point": {"row": 29, "column": 5}, "end_point": {"row": 29, "column": 30}}, {"id": 113, "type": "identifier", "text": "TroponinRun", "parent": 112, "children": [], "start_point": {"row": 29, "column": 5}, "end_point": {"row": 29, "column": 16}}, {"id": 114, "type": "parameter_list", "text": "(Troponin* me)", "parent": 112, "children": [115], "start_point": {"row": 29, "column": 16}, "end_point": {"row": 29, "column": 30}}, {"id": 115, "type": "parameter_declaration", "text": "Troponin* me", "parent": 114, "children": [116, 117], "start_point": {"row": 29, "column": 17}, "end_point": {"row": 29, "column": 29}}, {"id": 116, "type": "type_identifier", "text": "Troponin", "parent": 115, "children": [], "start_point": {"row": 29, "column": 17}, "end_point": {"row": 29, "column": 25}}, {"id": 117, "type": "pointer_declarator", "text": "* me", "parent": 115, "children": [118, 119], "start_point": {"row": 29, "column": 25}, "end_point": {"row": 29, "column": 29}}, {"id": 118, "type": "*", "text": "*", "parent": 117, "children": [], "start_point": {"row": 29, "column": 25}, "end_point": {"row": 29, "column": 26}}, {"id": 119, "type": "identifier", "text": "me", "parent": 117, "children": [], "start_point": {"row": 29, "column": 27}, "end_point": {"row": 29, "column": 29}}, {"id": 120, "type": "declaration", "text": "enum TroponinStates state_u = me->state;", "parent": 110, "children": [121, 124], "start_point": {"row": 31, "column": 4}, "end_point": {"row": 31, "column": 44}}, {"id": 121, "type": "enum_specifier", "text": "enum TroponinStates", "parent": 120, "children": [122, 123], "start_point": {"row": 31, "column": 4}, "end_point": {"row": 31, "column": 23}}, {"id": 122, "type": "enum", "text": "enum", "parent": 121, "children": [], "start_point": {"row": 31, "column": 4}, "end_point": {"row": 31, "column": 8}}, {"id": 123, "type": "type_identifier", "text": "TroponinStates", "parent": 121, "children": [], "start_point": {"row": 31, "column": 9}, "end_point": {"row": 31, "column": 23}}, {"id": 124, "type": "init_declarator", "text": "state_u = me->state", "parent": 120, "children": [125, 126, 127], "start_point": {"row": 31, "column": 24}, "end_point": {"row": 31, "column": 43}}, {"id": 125, "type": "identifier", "text": "state_u", "parent": 124, "children": [], "start_point": {"row": 31, "column": 24}, "end_point": {"row": 31, "column": 31}}, {"id": 126, "type": "=", "text": "=", "parent": 124, "children": [], "start_point": {"row": 31, "column": 32}, "end_point": {"row": 31, "column": 33}}, {"id": 127, "type": "field_expression", "text": "me->state", "parent": 124, "children": [128, 129], "start_point": {"row": 31, "column": 34}, "end_point": {"row": 31, "column": 43}}, {"id": 128, "type": "identifier", "text": "me", "parent": 127, "children": [], "start_point": {"row": 31, "column": 34}, "end_point": {"row": 31, "column": 36}}, {"id": 129, "type": "field_identifier", "text": "state", "parent": 127, "children": [], "start_point": {"row": 31, "column": 38}, "end_point": {"row": 31, "column": 43}}, {"id": 130, "type": "declaration", "text": "double j_trpn_u = me->j_trpn;", "parent": 110, "children": [131, 132], "start_point": {"row": 32, "column": 4}, "end_point": {"row": 32, "column": 33}}, {"id": 131, "type": "primitive_type", "text": "double", "parent": 130, "children": [], "start_point": {"row": 32, "column": 4}, "end_point": {"row": 32, "column": 10}}, {"id": 132, "type": "init_declarator", "text": "j_trpn_u = me->j_trpn", "parent": 130, "children": [133, 134, 135], "start_point": {"row": 32, "column": 11}, "end_point": {"row": 32, "column": 32}}, {"id": 133, "type": "identifier", "text": "j_trpn_u", "parent": 132, "children": [], "start_point": {"row": 32, "column": 11}, "end_point": {"row": 32, "column": 19}}, {"id": 134, "type": "=", "text": "=", "parent": 132, "children": [], "start_point": {"row": 32, "column": 20}, "end_point": {"row": 32, "column": 21}}, {"id": 135, "type": "field_expression", "text": "me->j_trpn", "parent": 132, "children": [136, 137], "start_point": {"row": 32, "column": 22}, "end_point": {"row": 32, "column": 32}}, {"id": 136, "type": "identifier", "text": "me", "parent": 135, "children": [], "start_point": {"row": 32, "column": 22}, "end_point": {"row": 32, "column": 24}}, {"id": 137, "type": "field_identifier", "text": "j_trpn", "parent": 135, "children": [], "start_point": {"row": 32, "column": 26}, "end_point": {"row": 32, "column": 32}}, {"id": 138, "type": "declaration", "text": "double ca_trpn_max_u = me->ca_trpn_max;", "parent": 110, "children": [139, 140], "start_point": {"row": 33, "column": 4}, "end_point": {"row": 33, "column": 43}}, {"id": 139, "type": "primitive_type", "text": "double", "parent": 138, "children": [], "start_point": {"row": 33, "column": 4}, "end_point": {"row": 33, "column": 10}}, {"id": 140, "type": "init_declarator", "text": "ca_trpn_max_u = me->ca_trpn_max", "parent": 138, "children": [141, 142, 143], "start_point": {"row": 33, "column": 11}, "end_point": {"row": 33, "column": 42}}, {"id": 141, "type": "identifier", "text": "ca_trpn_max_u", "parent": 140, "children": [], "start_point": {"row": 33, "column": 11}, "end_point": {"row": 33, "column": 24}}, {"id": 142, "type": "=", "text": "=", "parent": 140, "children": [], "start_point": {"row": 33, "column": 25}, "end_point": {"row": 33, "column": 26}}, {"id": 143, "type": "field_expression", "text": "me->ca_trpn_max", "parent": 140, "children": [144, 145], "start_point": {"row": 33, "column": 27}, "end_point": {"row": 33, "column": 42}}, {"id": 144, "type": "identifier", "text": "me", "parent": 143, "children": [], "start_point": {"row": 33, "column": 27}, "end_point": {"row": 33, "column": 29}}, {"id": 145, "type": "field_identifier", "text": "ca_trpn_max", "parent": 143, "children": [], "start_point": {"row": 33, "column": 31}, "end_point": {"row": 33, "column": 42}}, {"id": 146, "type": "declaration", "text": "double k_on_u = me->k_on;", "parent": 110, "children": [147, 148], "start_point": {"row": 34, "column": 4}, "end_point": {"row": 34, "column": 29}}, {"id": 147, "type": "primitive_type", "text": "double", "parent": 146, "children": [], "start_point": {"row": 34, "column": 4}, "end_point": {"row": 34, "column": 10}}, {"id": 148, "type": "init_declarator", "text": "k_on_u = me->k_on", "parent": 146, "children": [149, 150, 151], "start_point": {"row": 34, "column": 11}, "end_point": {"row": 34, "column": 28}}, {"id": 149, "type": "identifier", "text": "k_on_u", "parent": 148, "children": [], "start_point": {"row": 34, "column": 11}, "end_point": {"row": 34, "column": 17}}, {"id": 150, "type": "=", "text": "=", "parent": 148, "children": [], "start_point": {"row": 34, "column": 18}, "end_point": {"row": 34, "column": 19}}, {"id": 151, "type": "field_expression", "text": "me->k_on", "parent": 148, "children": [152, 153], "start_point": {"row": 34, "column": 20}, "end_point": {"row": 34, "column": 28}}, {"id": 152, "type": "identifier", "text": "me", "parent": 151, "children": [], "start_point": {"row": 34, "column": 20}, "end_point": {"row": 34, "column": 22}}, {"id": 153, "type": "field_identifier", "text": "k_on", "parent": 151, "children": [], "start_point": {"row": 34, "column": 24}, "end_point": {"row": 34, "column": 28}}, {"id": 154, "type": "declaration", "text": "double k_ref_off_u = me->k_ref_off;", "parent": 110, "children": [155, 156], "start_point": {"row": 35, "column": 4}, "end_point": {"row": 35, "column": 39}}, {"id": 155, "type": "primitive_type", "text": "double", "parent": 154, "children": [], "start_point": {"row": 35, "column": 4}, "end_point": {"row": 35, "column": 10}}, {"id": 156, "type": "init_declarator", "text": "k_ref_off_u = me->k_ref_off", "parent": 154, "children": [157, 158, 159], "start_point": {"row": 35, "column": 11}, "end_point": {"row": 35, "column": 38}}, {"id": 157, "type": "identifier", "text": "k_ref_off_u", "parent": 156, "children": [], "start_point": {"row": 35, "column": 11}, "end_point": {"row": 35, "column": 22}}, {"id": 158, "type": "=", "text": "=", "parent": 156, "children": [], "start_point": {"row": 35, "column": 23}, "end_point": {"row": 35, "column": 24}}, {"id": 159, "type": "field_expression", "text": "me->k_ref_off", "parent": 156, "children": [160, 161], "start_point": {"row": 35, "column": 25}, "end_point": {"row": 35, "column": 38}}, {"id": 160, "type": "identifier", "text": "me", "parent": 159, "children": [], "start_point": {"row": 35, "column": 25}, "end_point": {"row": 35, "column": 27}}, {"id": 161, "type": "field_identifier", "text": "k_ref_off", "parent": 159, "children": [], "start_point": {"row": 35, "column": 29}, "end_point": {"row": 35, "column": 38}}, {"id": 162, "type": "declaration", "text": "double gamma_trpn_u = me->gamma_trpn;", "parent": 110, "children": [163, 164], "start_point": {"row": 36, "column": 4}, "end_point": {"row": 36, "column": 41}}, {"id": 163, "type": "primitive_type", "text": "double", "parent": 162, "children": [], "start_point": {"row": 36, "column": 4}, "end_point": {"row": 36, "column": 10}}, {"id": 164, "type": "init_declarator", "text": "gamma_trpn_u = me->gamma_trpn", "parent": 162, "children": [165, 166, 167], "start_point": {"row": 36, "column": 11}, "end_point": {"row": 36, "column": 40}}, {"id": 165, "type": "identifier", "text": "gamma_trpn_u", "parent": 164, "children": [], "start_point": {"row": 36, "column": 11}, "end_point": {"row": 36, "column": 23}}, {"id": 166, "type": "=", "text": "=", "parent": 164, "children": [], "start_point": {"row": 36, "column": 24}, "end_point": {"row": 36, "column": 25}}, {"id": 167, "type": "field_expression", "text": "me->gamma_trpn", "parent": 164, "children": [168, 169], "start_point": {"row": 36, "column": 26}, "end_point": {"row": 36, "column": 40}}, {"id": 168, "type": "identifier", "text": "me", "parent": 167, "children": [], "start_point": {"row": 36, "column": 26}, "end_point": {"row": 36, "column": 28}}, {"id": 169, "type": "field_identifier", "text": "gamma_trpn", "parent": 167, "children": [], "start_point": {"row": 36, "column": 30}, "end_point": {"row": 36, "column": 40}}, {"id": 170, "type": "declaration", "text": "double k_off_u = me->k_off;", "parent": 110, "children": [171, 172], "start_point": {"row": 38, "column": 4}, "end_point": {"row": 38, "column": 31}}, {"id": 171, "type": "primitive_type", "text": "double", "parent": 170, "children": [], "start_point": {"row": 38, "column": 4}, "end_point": {"row": 38, "column": 10}}, {"id": 172, "type": "init_declarator", "text": "k_off_u = me->k_off", "parent": 170, "children": [173, 174, 175], "start_point": {"row": 38, "column": 11}, "end_point": {"row": 38, "column": 30}}, {"id": 173, "type": "identifier", "text": "k_off_u", "parent": 172, "children": [], "start_point": {"row": 38, "column": 11}, "end_point": {"row": 38, "column": 18}}, {"id": 174, "type": "=", "text": "=", "parent": 172, "children": [], "start_point": {"row": 38, "column": 19}, "end_point": {"row": 38, "column": 20}}, {"id": 175, "type": "field_expression", "text": "me->k_off", "parent": 172, "children": [176, 177], "start_point": {"row": 38, "column": 21}, "end_point": {"row": 38, "column": 30}}, {"id": 176, "type": "identifier", "text": "me", "parent": 175, "children": [], "start_point": {"row": 38, "column": 21}, "end_point": {"row": 38, "column": 23}}, {"id": 177, "type": "field_identifier", "text": "k_off", "parent": 175, "children": [], "start_point": {"row": 38, "column": 25}, "end_point": {"row": 38, "column": 30}}, {"id": 178, "type": "switch_statement", "text": "switch(me->state) {\n case TROPONIN_Q0: // Logic for state q0\n if(true) {\n k_off_u = KOffPw(me->tension, me->gamma_trpn, me->t_ref, me->k_ref_off);\n j_trpn_u = (me->ca_trpn_max - me->trpn) * me->k_off - me->ca_i * me->trpn * me->k_on;\n\n // Remain in this state\n state_u = TROPONIN_Q0;\n }\n break;\n }", "parent": 110, "children": [179, 180], "start_point": {"row": 42, "column": 4}, "end_point": {"row": 52, "column": 5}}, {"id": 179, "type": "switch", "text": "switch", "parent": 178, "children": [], "start_point": {"row": 42, "column": 4}, "end_point": {"row": 42, "column": 10}}, {"id": 180, "type": "parenthesized_expression", "text": "(me->state)", "parent": 178, "children": [181], "start_point": {"row": 42, "column": 10}, "end_point": {"row": 42, "column": 21}}, {"id": 181, "type": "field_expression", "text": "me->state", "parent": 180, "children": [182, 183], "start_point": {"row": 42, "column": 11}, "end_point": {"row": 42, "column": 20}}, {"id": 182, "type": "identifier", "text": "me", "parent": 181, "children": [], "start_point": {"row": 42, "column": 11}, "end_point": {"row": 42, "column": 13}}, {"id": 183, "type": "field_identifier", "text": "state", "parent": 181, "children": [], "start_point": {"row": 42, "column": 15}, "end_point": {"row": 42, "column": 20}}, {"id": 184, "type": "case_statement", "text": "case TROPONIN_Q0: // Logic for state q0\n if(true) {\n k_off_u = KOffPw(me->tension, me->gamma_trpn, me->t_ref, me->k_ref_off);\n j_trpn_u = (me->ca_trpn_max - me->trpn) * me->k_off - me->ca_i * me->trpn * me->k_on;\n\n // Remain in this state\n state_u = TROPONIN_Q0;\n }\n break;", "parent": 178, "children": [185, 186, 187, 244], "start_point": {"row": 43, "column": 8}, "end_point": {"row": 51, "column": 18}}, {"id": 185, "type": "case", "text": "case", "parent": 184, "children": [], "start_point": {"row": 43, "column": 8}, "end_point": {"row": 43, "column": 12}}, {"id": 186, "type": "identifier", "text": "TROPONIN_Q0", "parent": 184, "children": [], "start_point": {"row": 43, "column": 13}, "end_point": {"row": 43, "column": 24}}, {"id": 187, "type": "if_statement", "text": "if(true) {\n k_off_u = KOffPw(me->tension, me->gamma_trpn, me->t_ref, me->k_ref_off);\n j_trpn_u = (me->ca_trpn_max - me->trpn) * me->k_off - me->ca_i * me->trpn * me->k_on;\n\n // Remain in this state\n state_u = TROPONIN_Q0;\n }", "parent": 184, "children": [188], "start_point": {"row": 44, "column": 12}, "end_point": {"row": 50, "column": 13}}, {"id": 188, "type": "parenthesized_expression", "text": "(true)", "parent": 187, "children": [189], "start_point": {"row": 44, "column": 14}, "end_point": {"row": 44, "column": 20}}, {"id": 189, "type": "true", "text": "true", "parent": 188, "children": [], "start_point": {"row": 44, "column": 15}, "end_point": {"row": 44, "column": 19}}, {"id": 190, "type": "assignment_expression", "text": "k_off_u = KOffPw(me->tension, me->gamma_trpn, me->t_ref, me->k_ref_off)", "parent": 187, "children": [191, 192, 193], "start_point": {"row": 45, "column": 16}, "end_point": {"row": 45, "column": 87}}, {"id": 191, "type": "identifier", "text": "k_off_u", "parent": 190, "children": [], "start_point": {"row": 45, "column": 16}, "end_point": {"row": 45, "column": 23}}, {"id": 192, "type": "=", "text": "=", "parent": 190, "children": [], "start_point": {"row": 45, "column": 24}, "end_point": {"row": 45, "column": 25}}, {"id": 193, "type": "call_expression", "text": "KOffPw(me->tension, me->gamma_trpn, me->t_ref, me->k_ref_off)", "parent": 190, "children": [194, 195], "start_point": {"row": 45, "column": 26}, "end_point": {"row": 45, "column": 87}}, {"id": 194, "type": "identifier", "text": "KOffPw", "parent": 193, "children": [], "start_point": {"row": 45, "column": 26}, "end_point": {"row": 45, "column": 32}}, {"id": 195, "type": "argument_list", "text": "(me->tension, me->gamma_trpn, me->t_ref, me->k_ref_off)", "parent": 193, "children": [196, 199, 202, 205], "start_point": {"row": 45, "column": 32}, "end_point": {"row": 45, "column": 87}}, {"id": 196, "type": "field_expression", "text": "me->tension", "parent": 195, "children": [197, 198], "start_point": {"row": 45, "column": 33}, "end_point": {"row": 45, "column": 44}}, {"id": 197, "type": "identifier", "text": "me", "parent": 196, "children": [], "start_point": {"row": 45, "column": 33}, "end_point": {"row": 45, "column": 35}}, {"id": 198, "type": "field_identifier", "text": "tension", "parent": 196, "children": [], "start_point": {"row": 45, "column": 37}, "end_point": {"row": 45, "column": 44}}, {"id": 199, "type": "field_expression", "text": "me->gamma_trpn", "parent": 195, "children": [200, 201], "start_point": {"row": 45, "column": 46}, "end_point": {"row": 45, "column": 60}}, {"id": 200, "type": "identifier", "text": "me", "parent": 199, "children": [], "start_point": {"row": 45, "column": 46}, "end_point": {"row": 45, "column": 48}}, {"id": 201, "type": "field_identifier", "text": "gamma_trpn", "parent": 199, "children": [], "start_point": {"row": 45, "column": 50}, "end_point": {"row": 45, "column": 60}}, {"id": 202, "type": "field_expression", "text": "me->t_ref", "parent": 195, "children": [203, 204], "start_point": {"row": 45, "column": 62}, "end_point": {"row": 45, "column": 71}}, {"id": 203, "type": "identifier", "text": "me", "parent": 202, "children": [], "start_point": {"row": 45, "column": 62}, "end_point": {"row": 45, "column": 64}}, {"id": 204, "type": "field_identifier", "text": "t_ref", "parent": 202, "children": [], "start_point": {"row": 45, "column": 66}, "end_point": {"row": 45, "column": 71}}, {"id": 205, "type": "field_expression", "text": "me->k_ref_off", "parent": 195, "children": [206, 207], "start_point": {"row": 45, "column": 73}, "end_point": {"row": 45, "column": 86}}, {"id": 206, "type": "identifier", "text": "me", "parent": 205, "children": [], "start_point": {"row": 45, "column": 73}, "end_point": {"row": 45, "column": 75}}, {"id": 207, "type": "field_identifier", "text": "k_ref_off", "parent": 205, "children": [], "start_point": {"row": 45, "column": 77}, "end_point": {"row": 45, "column": 86}}, {"id": 208, "type": "assignment_expression", "text": "j_trpn_u = (me->ca_trpn_max - me->trpn) * me->k_off - me->ca_i * me->trpn * me->k_on", "parent": 187, "children": [209, 210, 211], "start_point": {"row": 46, "column": 16}, "end_point": {"row": 46, "column": 100}}, {"id": 209, "type": "identifier", "text": "j_trpn_u", "parent": 208, "children": [], "start_point": {"row": 46, "column": 16}, "end_point": {"row": 46, "column": 24}}, {"id": 210, "type": "=", "text": "=", "parent": 208, "children": [], "start_point": {"row": 46, "column": 25}, "end_point": {"row": 46, "column": 26}}, {"id": 211, "type": "binary_expression", "text": "(me->ca_trpn_max - me->trpn) * me->k_off - me->ca_i * me->trpn * me->k_on", "parent": 208, "children": [212, 226, 227], "start_point": {"row": 46, "column": 27}, "end_point": {"row": 46, "column": 100}}, {"id": 212, "type": "binary_expression", "text": "(me->ca_trpn_max - me->trpn) * me->k_off", "parent": 211, "children": [213, 222, 223], "start_point": {"row": 46, "column": 27}, "end_point": {"row": 46, "column": 67}}, {"id": 213, "type": "parenthesized_expression", "text": "(me->ca_trpn_max - me->trpn)", "parent": 212, "children": [214], "start_point": {"row": 46, "column": 27}, "end_point": {"row": 46, "column": 55}}, {"id": 214, "type": "binary_expression", "text": "me->ca_trpn_max - me->trpn", "parent": 213, "children": [215, 218, 219], "start_point": {"row": 46, "column": 28}, "end_point": {"row": 46, "column": 54}}, {"id": 215, "type": "field_expression", "text": "me->ca_trpn_max", "parent": 214, "children": [216, 217], "start_point": {"row": 46, "column": 28}, "end_point": {"row": 46, "column": 43}}, {"id": 216, "type": "identifier", "text": "me", "parent": 215, "children": [], "start_point": {"row": 46, "column": 28}, "end_point": {"row": 46, "column": 30}}, {"id": 217, "type": "field_identifier", "text": "ca_trpn_max", "parent": 215, "children": [], "start_point": {"row": 46, "column": 32}, "end_point": {"row": 46, "column": 43}}, {"id": 218, "type": "-", "text": "-", "parent": 214, "children": [], "start_point": {"row": 46, "column": 44}, "end_point": {"row": 46, "column": 45}}, {"id": 219, "type": "field_expression", "text": "me->trpn", "parent": 214, "children": [220, 221], "start_point": {"row": 46, "column": 46}, "end_point": {"row": 46, "column": 54}}, {"id": 220, "type": "identifier", "text": "me", "parent": 219, "children": [], "start_point": {"row": 46, "column": 46}, "end_point": {"row": 46, "column": 48}}, {"id": 221, "type": "field_identifier", "text": "trpn", "parent": 219, "children": [], "start_point": {"row": 46, "column": 50}, "end_point": {"row": 46, "column": 54}}, {"id": 222, "type": "*", "text": "*", "parent": 212, "children": [], "start_point": {"row": 46, "column": 56}, "end_point": {"row": 46, "column": 57}}, {"id": 223, "type": "field_expression", "text": "me->k_off", "parent": 212, "children": [224, 225], "start_point": {"row": 46, "column": 58}, "end_point": {"row": 46, "column": 67}}, {"id": 224, "type": "identifier", "text": "me", "parent": 223, "children": [], "start_point": {"row": 46, "column": 58}, "end_point": {"row": 46, "column": 60}}, {"id": 225, "type": "field_identifier", "text": "k_off", "parent": 223, "children": [], "start_point": {"row": 46, "column": 62}, "end_point": {"row": 46, "column": 67}}, {"id": 226, "type": "-", "text": "-", "parent": 211, "children": [], "start_point": {"row": 46, "column": 68}, "end_point": {"row": 46, "column": 69}}, {"id": 227, "type": "binary_expression", "text": "me->ca_i * me->trpn * me->k_on", "parent": 211, "children": [228, 236, 237], "start_point": {"row": 46, "column": 70}, "end_point": {"row": 46, "column": 100}}, {"id": 228, "type": "binary_expression", "text": "me->ca_i * me->trpn", "parent": 227, "children": [229, 232, 233], "start_point": {"row": 46, "column": 70}, "end_point": {"row": 46, "column": 89}}, {"id": 229, "type": "field_expression", "text": "me->ca_i", "parent": 228, "children": [230, 231], "start_point": {"row": 46, "column": 70}, "end_point": {"row": 46, "column": 78}}, {"id": 230, "type": "identifier", "text": "me", "parent": 229, "children": [], "start_point": {"row": 46, "column": 70}, "end_point": {"row": 46, "column": 72}}, {"id": 231, "type": "field_identifier", "text": "ca_i", "parent": 229, "children": [], "start_point": {"row": 46, "column": 74}, "end_point": {"row": 46, "column": 78}}, {"id": 232, "type": "*", "text": "*", "parent": 228, "children": [], "start_point": {"row": 46, "column": 79}, "end_point": {"row": 46, "column": 80}}, {"id": 233, "type": "field_expression", "text": "me->trpn", "parent": 228, "children": [234, 235], "start_point": {"row": 46, "column": 81}, "end_point": {"row": 46, "column": 89}}, {"id": 234, "type": "identifier", "text": "me", "parent": 233, "children": [], "start_point": {"row": 46, "column": 81}, "end_point": {"row": 46, "column": 83}}, {"id": 235, "type": "field_identifier", "text": "trpn", "parent": 233, "children": [], "start_point": {"row": 46, "column": 85}, "end_point": {"row": 46, "column": 89}}, {"id": 236, "type": "*", "text": "*", "parent": 227, "children": [], "start_point": {"row": 46, "column": 90}, "end_point": {"row": 46, "column": 91}}, {"id": 237, "type": "field_expression", "text": "me->k_on", "parent": 227, "children": [238, 239], "start_point": {"row": 46, "column": 92}, "end_point": {"row": 46, "column": 100}}, {"id": 238, "type": "identifier", "text": "me", "parent": 237, "children": [], "start_point": {"row": 46, "column": 92}, "end_point": {"row": 46, "column": 94}}, {"id": 239, "type": "field_identifier", "text": "k_on", "parent": 237, "children": [], "start_point": {"row": 46, "column": 96}, "end_point": {"row": 46, "column": 100}}, {"id": 240, "type": "assignment_expression", "text": "state_u = TROPONIN_Q0", "parent": 187, "children": [241, 242, 243], "start_point": {"row": 49, "column": 16}, "end_point": {"row": 49, "column": 37}}, {"id": 241, "type": "identifier", "text": "state_u", "parent": 240, "children": [], "start_point": {"row": 49, "column": 16}, "end_point": {"row": 49, "column": 23}}, {"id": 242, "type": "=", "text": "=", "parent": 240, "children": [], "start_point": {"row": 49, "column": 24}, "end_point": {"row": 49, "column": 25}}, {"id": 243, "type": "identifier", "text": "TROPONIN_Q0", "parent": 240, "children": [], "start_point": {"row": 49, "column": 26}, "end_point": {"row": 49, "column": 37}}, {"id": 244, "type": "break_statement", "text": "break;", "parent": 184, "children": [245], "start_point": {"row": 51, "column": 12}, "end_point": {"row": 51, "column": 18}}, {"id": 245, "type": "break", "text": "break", "parent": 244, "children": [], "start_point": {"row": 51, "column": 12}, "end_point": {"row": 51, "column": 17}}, {"id": 246, "type": "assignment_expression", "text": "me->state = state_u", "parent": 110, "children": [247, 250, 251], "start_point": {"row": 55, "column": 4}, "end_point": {"row": 55, "column": 23}}, {"id": 247, "type": "field_expression", "text": "me->state", "parent": 246, "children": [248, 249], "start_point": {"row": 55, "column": 4}, "end_point": {"row": 55, "column": 13}}, {"id": 248, "type": "identifier", "text": "me", "parent": 247, "children": [], "start_point": {"row": 55, "column": 4}, "end_point": {"row": 55, "column": 6}}, {"id": 249, "type": "field_identifier", "text": "state", "parent": 247, "children": [], "start_point": {"row": 55, "column": 8}, "end_point": {"row": 55, "column": 13}}, {"id": 250, "type": "=", "text": "=", "parent": 246, "children": [], "start_point": {"row": 55, "column": 14}, "end_point": {"row": 55, "column": 15}}, {"id": 251, "type": "identifier", "text": "state_u", "parent": 246, "children": [], "start_point": {"row": 55, "column": 16}, "end_point": {"row": 55, "column": 23}}, {"id": 252, "type": "assignment_expression", "text": "me->j_trpn = j_trpn_u", "parent": 110, "children": [253, 256, 257], "start_point": {"row": 56, "column": 4}, "end_point": {"row": 56, "column": 25}}, {"id": 253, "type": "field_expression", "text": "me->j_trpn", "parent": 252, "children": [254, 255], "start_point": {"row": 56, "column": 4}, "end_point": {"row": 56, "column": 14}}, {"id": 254, "type": "identifier", "text": "me", "parent": 253, "children": [], "start_point": {"row": 56, "column": 4}, "end_point": {"row": 56, "column": 6}}, {"id": 255, "type": "field_identifier", "text": "j_trpn", "parent": 253, "children": [], "start_point": {"row": 56, "column": 8}, "end_point": {"row": 56, "column": 14}}, {"id": 256, "type": "=", "text": "=", "parent": 252, "children": [], "start_point": {"row": 56, "column": 15}, "end_point": {"row": 56, "column": 16}}, {"id": 257, "type": "identifier", "text": "j_trpn_u", "parent": 252, "children": [], "start_point": {"row": 56, "column": 17}, "end_point": {"row": 56, "column": 25}}, {"id": 258, "type": "assignment_expression", "text": "me->ca_trpn_max = ca_trpn_max_u", "parent": 110, "children": [259, 262, 263], "start_point": {"row": 57, "column": 4}, "end_point": {"row": 57, "column": 35}}, {"id": 259, "type": "field_expression", "text": "me->ca_trpn_max", "parent": 258, "children": [260, 261], "start_point": {"row": 57, "column": 4}, "end_point": {"row": 57, "column": 19}}, {"id": 260, "type": "identifier", "text": "me", "parent": 259, "children": [], "start_point": {"row": 57, "column": 4}, "end_point": {"row": 57, "column": 6}}, {"id": 261, "type": "field_identifier", "text": "ca_trpn_max", "parent": 259, "children": [], "start_point": {"row": 57, "column": 8}, "end_point": {"row": 57, "column": 19}}, {"id": 262, "type": "=", "text": "=", "parent": 258, "children": [], "start_point": {"row": 57, "column": 20}, "end_point": {"row": 57, "column": 21}}, {"id": 263, "type": "identifier", "text": "ca_trpn_max_u", "parent": 258, "children": [], "start_point": {"row": 57, "column": 22}, "end_point": {"row": 57, "column": 35}}, {"id": 264, "type": "assignment_expression", "text": "me->k_on = k_on_u", "parent": 110, "children": [265, 268, 269], "start_point": {"row": 58, "column": 4}, "end_point": {"row": 58, "column": 21}}, {"id": 265, "type": "field_expression", "text": "me->k_on", "parent": 264, "children": [266, 267], "start_point": {"row": 58, "column": 4}, "end_point": {"row": 58, "column": 12}}, {"id": 266, "type": "identifier", "text": "me", "parent": 265, "children": [], "start_point": {"row": 58, "column": 4}, "end_point": {"row": 58, "column": 6}}, {"id": 267, "type": "field_identifier", "text": "k_on", "parent": 265, "children": [], "start_point": {"row": 58, "column": 8}, "end_point": {"row": 58, "column": 12}}, {"id": 268, "type": "=", "text": "=", "parent": 264, "children": [], "start_point": {"row": 58, "column": 13}, "end_point": {"row": 58, "column": 14}}, {"id": 269, "type": "identifier", "text": "k_on_u", "parent": 264, "children": [], "start_point": {"row": 58, "column": 15}, "end_point": {"row": 58, "column": 21}}, {"id": 270, "type": "assignment_expression", "text": "me->k_ref_off = k_ref_off_u", "parent": 110, "children": [271, 274, 275], "start_point": {"row": 59, "column": 4}, "end_point": {"row": 59, "column": 31}}, {"id": 271, "type": "field_expression", "text": "me->k_ref_off", "parent": 270, "children": [272, 273], "start_point": {"row": 59, "column": 4}, "end_point": {"row": 59, "column": 17}}, {"id": 272, "type": "identifier", "text": "me", "parent": 271, "children": [], "start_point": {"row": 59, "column": 4}, "end_point": {"row": 59, "column": 6}}, {"id": 273, "type": "field_identifier", "text": "k_ref_off", "parent": 271, "children": [], "start_point": {"row": 59, "column": 8}, "end_point": {"row": 59, "column": 17}}, {"id": 274, "type": "=", "text": "=", "parent": 270, "children": [], "start_point": {"row": 59, "column": 18}, "end_point": {"row": 59, "column": 19}}, {"id": 275, "type": "identifier", "text": "k_ref_off_u", "parent": 270, "children": [], "start_point": {"row": 59, "column": 20}, "end_point": {"row": 59, "column": 31}}, {"id": 276, "type": "assignment_expression", "text": "me->gamma_trpn = gamma_trpn_u", "parent": 110, "children": [277, 280, 281], "start_point": {"row": 60, "column": 4}, "end_point": {"row": 60, "column": 33}}, {"id": 277, "type": "field_expression", "text": "me->gamma_trpn", "parent": 276, "children": [278, 279], "start_point": {"row": 60, "column": 4}, "end_point": {"row": 60, "column": 18}}, {"id": 278, "type": "identifier", "text": "me", "parent": 277, "children": [], "start_point": {"row": 60, "column": 4}, "end_point": {"row": 60, "column": 6}}, {"id": 279, "type": "field_identifier", "text": "gamma_trpn", "parent": 277, "children": [], "start_point": {"row": 60, "column": 8}, "end_point": {"row": 60, "column": 18}}, {"id": 280, "type": "=", "text": "=", "parent": 276, "children": [], "start_point": {"row": 60, "column": 19}, "end_point": {"row": 60, "column": 20}}, {"id": 281, "type": "identifier", "text": "gamma_trpn_u", "parent": 276, "children": [], "start_point": {"row": 60, "column": 21}, "end_point": {"row": 60, "column": 33}}, {"id": 282, "type": "assignment_expression", "text": "me->k_off = k_off_u", "parent": 110, "children": [283, 286, 287], "start_point": {"row": 62, "column": 4}, "end_point": {"row": 62, "column": 23}}, {"id": 283, "type": "field_expression", "text": "me->k_off", "parent": 282, "children": [284, 285], "start_point": {"row": 62, "column": 4}, "end_point": {"row": 62, "column": 13}}, {"id": 284, "type": "identifier", "text": "me", "parent": 283, "children": [], "start_point": {"row": 62, "column": 4}, "end_point": {"row": 62, "column": 6}}, {"id": 285, "type": "field_identifier", "text": "k_off", "parent": 283, "children": [], "start_point": {"row": 62, "column": 8}, "end_point": {"row": 62, "column": 13}}, {"id": 286, "type": "=", "text": "=", "parent": 282, "children": [], "start_point": {"row": 62, "column": 14}, "end_point": {"row": 62, "column": 15}}, {"id": 287, "type": "identifier", "text": "k_off_u", "parent": 282, "children": [], "start_point": {"row": 62, "column": 16}, "end_point": {"row": 62, "column": 23}}]}, "node_categories": {"declarations": {"functions": [3, 5, 58, 60, 110, 112], "variables": [8, 11, 14, 17, 63, 115, 120, 130, 138, 146, 154, 162, 170], "classes": [], "imports": [0, 1], "modules": [], "enums": [121, 122]}, "statements": {"expressions": [21, 22, 23, 26, 29, 30, 37, 40, 41, 44, 47, 48, 54, 69, 75, 81, 87, 93, 99, 105, 127, 135, 143, 151, 159, 167, 175, 180, 181, 188, 193, 196, 199, 202, 205, 211, 212, 213, 214, 215, 219, 223, 227, 228, 229, 233, 237, 247, 253, 259, 265, 271, 277, 283], "assignments": [68, 74, 80, 86, 92, 98, 104, 190, 208, 240, 246, 252, 258, 264, 270, 276, 282], "loops": [], "conditionals": [6, 10, 13, 16, 19, 20, 27, 31, 33, 38, 45, 49, 51, 55, 61, 64, 67, 70, 71, 73, 76, 77, 82, 83, 88, 89, 94, 95, 100, 101, 106, 107, 113, 116, 119, 123, 125, 128, 129, 133, 136, 137, 141, 144, 145, 149, 152, 153, 157, 160, 161, 165, 168, 169, 173, 176, 177, 178, 179, 182, 183, 184, 185, 186, 187, 191, 194, 197, 198, 200, 201, 203, 204, 206, 207, 209, 216, 217, 220, 221, 224, 225, 230, 231, 234, 235, 238, 239, 241, 243, 248, 249, 251, 254, 255, 257, 260, 261, 263, 266, 267, 269, 272, 273, 275, 278, 279, 281, 284, 285, 287], "returns": [36, 53], "exceptions": []}, "expressions": {"calls": [], "literals": [2, 24, 35, 42, 57, 79, 85, 91, 97, 103, 109], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [{"node_id": 3, "universal_type": "function", "name": "unknown", "text_snippet": "static double KOffPw(double tension, double gamma_trpn, double t_ref, double k_ref_off) {\n if(1.0"}, {"node_id": 5, "universal_type": "function", "name": "unknown", "text_snippet": "KOffPw(double tension, double gamma_trpn, double t_ref, double k_ref_off)"}, {"node_id": 58, "universal_type": "function", "name": "TroponinInit", "text_snippet": "void TroponinInit(Troponin* me) {\n // Initialise State\n me->state = TROPONIN_Q0;\n\n // Initi"}, {"node_id": 60, "universal_type": "function", "name": "unknown", "text_snippet": "TroponinInit(Troponin* me)"}, {"node_id": 110, "universal_type": "function", "name": "TroponinRun", "text_snippet": "void TroponinRun(Troponin* me) {\n // Create intermediary variables\n enum TroponinStates state_"}, {"node_id": 112, "universal_type": "function", "name": "unknown", "text_snippet": "TroponinRun(Troponin* me)"}], "class_declarations": [], "import_statements": [{"node_id": 0, "text": "#include \"troponin.h\"\n"}, {"node_id": 1, "text": "#include"}]}, "original_source_code": "#include \"troponin.h\"\n\nstatic double KOffPw(double tension, double gamma_trpn, double t_ref, double k_ref_off) {\n if(1.0 - tension / (gamma_trpn * t_ref) > 0.1) {\n return k_ref_off * (1.0 - tension / (gamma_trpn * t_ref));\n }\n else {\n return k_ref_off * 0.1;\n }\n}\n\n\n// troponin Initialisation function\nvoid TroponinInit(Troponin* me) {\n // Initialise State\n me->state = TROPONIN_Q0;\n\n // Initialise Outputs\n me->j_trpn = 0.0;\n me->ca_trpn_max = 0.07;\n me->k_on = 100.0;\n me->k_ref_off = 0.2;\n me->gamma_trpn = 2.0;\n\n // Initialise Internal Variables\n me->k_off = 0.0;\n}\n\n// troponin Execution function\nvoid TroponinRun(Troponin* me) {\n // Create intermediary variables\n enum TroponinStates state_u = me->state;\n double j_trpn_u = me->j_trpn;\n double ca_trpn_max_u = me->ca_trpn_max;\n double k_on_u = me->k_on;\n double k_ref_off_u = me->k_ref_off;\n double gamma_trpn_u = me->gamma_trpn;\n\n double k_off_u = me->k_off;\n\n\n // Run the state machine for transition logic\n switch(me->state) {\n case TROPONIN_Q0: // Logic for state q0\n if(true) {\n k_off_u = KOffPw(me->tension, me->gamma_trpn, me->t_ref, me->k_ref_off);\n j_trpn_u = (me->ca_trpn_max - me->trpn) * me->k_off - me->ca_i * me->trpn * me->k_on;\n\n // Remain in this state\n state_u = TROPONIN_Q0;\n }\n break;\n }\n\n // Update from intermediary variables\n me->state = state_u;\n me->j_trpn = j_trpn_u;\n me->ca_trpn_max = ca_trpn_max_u;\n me->k_on = k_on_u;\n me->k_ref_off = k_ref_off_u;\n me->gamma_trpn = gamma_trpn_u;\n\n me->k_off = k_off_u;\n\n}"}
80,091
c
#include <stddef.h> #include <stdlib.h> #include <stdbool.h> #include "memnode.h" #include "bitarray.h" #include "gcmemnode.h" void gcmemnode_init (void *sequence, size_t size, bitarray *reservemask, bitarray *gcmarks, gcmemnode *nextnode, gcmemnode *gmnode){ memnode_init(sequence, size, reservemask, (memnode*)nextnode, &(gmnode->memnode)); gmnode->gcmarks = gcmarks; } gcmemnode *make_gcmemnode (size_t size, gcmemnode *nextnode){ gcmemnode *gmnode = malloc(sizeof(gcmemnode)); if (gmnode == NULL){ } uint8_t *gmnodeseq = malloc(sizeof(uint8_t) * size); if (gmnodeseq == NULL){ } bitarray *reservemask = make_bitarray(size); if (reservemask == NULL){ } bitarray *gcmarks = make_bitarray(size); if (gcmarks == NULL){ } gcmemnode_init(gmnodeseq, size, reservemask, gcmarks, nextnode, gmnode); return gmnode; } void free_gcmemnode (gcmemnode *gmnode){ free_bitarray(gmnode->memnode.reservemask); free_bitarray(gmnode->gcmarks); free(gmnode->memnode.sequence); free(gmnode); } void free_gcmemnode_all (gcmemnode *gmnode){ gcmemnode *gmnd = gmnode; while (gmnd != NULL){ gcmemnode *nextnode = gcmemnode_next(gmnd); free_gcmemnode(gmnd); gmnd = nextnode; } } memnode *gcmemnode_memnode (gcmemnode *gmnode){ return &(gmnode->memnode); } gcmemnode *gcmemnode_next (gcmemnode *gmnode){ return (gcmemnode*)gcmemnode_memnode(gmnode)->nextnode; } int gcmemnode_gc_start (gcmemnode *gmnode){ for (gcmemnode *nd = gmnode; nd != NULL; nd = gcmemnode_next(nd)){ if (bitarray_fill(0, 0, bitarray_length(nd->gcmarks), nd->gcmarks) != 0){ return 1; } } return 0; } int gcmemnode_gc_mark (void *address, size_t size, gcmemnode *gmnode){ memnode *foundmemnode = memnode_find(address, gcmemnode_memnode(gmnode)); if (foundmemnode == NULL){ return 1; } size_t offset = address - foundmemnode->sequence; gcmemnode *foundgmnode = (gcmemnode*)foundmemnode; if (bitarray_fill(1, offset, offset + size, foundgmnode->gcmarks) != 0){ return 1; } return 0; } int gcmemnode_gc_unmark (void *address, size_t size, gcmemnode *gmnode){ memnode *foundmemnode = memnode_find(address, gcmemnode_memnode(gmnode)); if (foundmemnode == NULL){ return 1; } size_t offset = address - foundmemnode->sequence; gcmemnode *foundgmnode = (gcmemnode*)foundmemnode; if (bitarray_fill(0, offset, offset + size, foundgmnode->gcmarks) != 0){ return 1; } return 0; } int gcmemnode_gc_markp (void *address, size_t size, gcmemnode *gmnode, bool *markp){ memnode *foundmemnode = memnode_find(address, gcmemnode_memnode(gmnode)); if (foundmemnode == NULL){ return 1; } size_t offset = address - foundmemnode->sequence; gcmemnode *foundgmnode = (gcmemnode*)foundmemnode; if (bitarray_fillp(1, offset, offset + size, foundgmnode->gcmarks, markp) != 0){ return 1; } return 0; } int gcmemnode_gc_end (gcmemnode *gmnode){ for (gcmemnode *nd = gmnode; nd != NULL; nd = gcmemnode_next(nd)){ if (bitarray_copy(nd->gcmarks, gcmemnode_memnode(nd)->reservemask) != 0){ return 1; } } return 0; }
30.65
98
(translation_unit) "#include <stddef.h>\n#include <stdlib.h>\n#include <stdbool.h>\n#include "memnode.h"\n#include "bitarray.h"\n#include "gcmemnode.h"\n\nvoid gcmemnode_init (void *sequence, size_t size, bitarray *reservemask, bitarray *gcmarks, gcmemnode *nextnode, gcmemnode *gmnode){\n memnode_init(sequence, size, reservemask, (memnode*)nextnode, &(gmnode->memnode));\n gmnode->gcmarks = gcmarks;\n}\n\ngcmemnode *make_gcmemnode (size_t size, gcmemnode *nextnode){\n gcmemnode *gmnode = malloc(sizeof(gcmemnode));\n if (gmnode == NULL){\n }\n uint8_t *gmnodeseq = malloc(sizeof(uint8_t) * size);\n if (gmnodeseq == NULL){\n }\n bitarray *reservemask = make_bitarray(size);\n if (reservemask == NULL){\n }\n bitarray *gcmarks = make_bitarray(size);\n if (gcmarks == NULL){\n }\n gcmemnode_init(gmnodeseq, size, reservemask, gcmarks, nextnode, gmnode);\n return gmnode;\n}\n\nvoid free_gcmemnode (gcmemnode *gmnode){\n free_bitarray(gmnode->memnode.reservemask);\n free_bitarray(gmnode->gcmarks);\n free(gmnode->memnode.sequence);\n free(gmnode);\n}\n\nvoid free_gcmemnode_all (gcmemnode *gmnode){\n gcmemnode *gmnd = gmnode;\n while (gmnd != NULL){\n gcmemnode *nextnode = gcmemnode_next(gmnd);\n free_gcmemnode(gmnd);\n gmnd = nextnode;\n }\n}\n\nmemnode *gcmemnode_memnode (gcmemnode *gmnode){\n return &(gmnode->memnode);\n}\n\ngcmemnode *gcmemnode_next (gcmemnode *gmnode){\n return (gcmemnode*)gcmemnode_memnode(gmnode)->nextnode;\n}\n\nint gcmemnode_gc_start (gcmemnode *gmnode){\n for (gcmemnode *nd = gmnode; nd != NULL; nd = gcmemnode_next(nd)){\n if (bitarray_fill(0, 0, bitarray_length(nd->gcmarks), nd->gcmarks) != 0){\n return 1;\n }\n }\n return 0;\n}\n\nint gcmemnode_gc_mark (void *address, size_t size, gcmemnode *gmnode){\n memnode *foundmemnode = memnode_find(address, gcmemnode_memnode(gmnode));\n if (foundmemnode == NULL){\n return 1;\n }\n size_t offset = address - foundmemnode->sequence;\n gcmemnode *foundgmnode = (gcmemnode*)foundmemnode;\n if (bitarray_fill(1, offset, offset + size, foundgmnode->gcmarks) != 0){\n return 1;\n }\n return 0;\n}\n\nint gcmemnode_gc_unmark (void *address, size_t size, gcmemnode *gmnode){\n memnode *foundmemnode = memnode_find(address, gcmemnode_memnode(gmnode));\n if (foundmemnode == NULL){\n return 1;\n }\n size_t offset = address - foundmemnode->sequence;\n gcmemnode *foundgmnode = (gcmemnode*)foundmemnode;\n if (bitarray_fill(0, offset, offset + size, foundgmnode->gcmarks) != 0){\n return 1;\n }\n return 0;\n}\n\nint gcmemnode_gc_markp (void *address, size_t size, gcmemnode *gmnode, bool *markp){\n memnode *foundmemnode = memnode_find(address, gcmemnode_memnode(gmnode));\n if (foundmemnode == NULL){\n return 1;\n }\n size_t offset = address - foundmemnode->sequence;\n gcmemnode *foundgmnode = (gcmemnode*)foundmemnode;\n if (bitarray_fillp(1, offset, offset + size, foundgmnode->gcmarks, markp) != 0){\n return 1;\n }\n return 0;\n}\n\nint gcmemnode_gc_end (gcmemnode *gmnode){\n for (gcmemnode *nd = gmnode; nd != NULL; nd = gcmemnode_next(nd)){\n if (bitarray_copy(nd->gcmarks, gcmemnode_memnode(nd)->reservemask) != 0){\n return 1;\n }\n }\n return 0;\n}\n" (preproc_include) "#include <stddef.h>\n" (#include) "#include" (system_lib_string) "<stddef.h>" (preproc_include) "#include <stdlib.h>\n" (#include) "#include" (system_lib_string) "<stdlib.h>" (preproc_include) "#include <stdbool.h>\n" (#include) "#include" (system_lib_string) "<stdbool.h>" (preproc_include) "#include "memnode.h"\n" (#include) "#include" (string_literal) ""memnode.h"" (") """ (string_content) "memnode.h" (") """ (preproc_include) "#include "bitarray.h"\n" (#include) "#include" (string_literal) ""bitarray.h"" (") """ (string_content) "bitarray.h" (") """ (preproc_include) "#include "gcmemnode.h"\n" (#include) "#include" (string_literal) ""gcmemnode.h"" (") """ (string_content) "gcmemnode.h" (") """ (function_definition) "void gcmemnode_init (void *sequence, size_t size, bitarray *reservemask, bitarray *gcmarks, gcmemnode *nextnode, gcmemnode *gmnode){\n memnode_init(sequence, size, reservemask, (memnode*)nextnode, &(gmnode->memnode));\n gmnode->gcmarks = gcmarks;\n}" (primitive_type) "void" (function_declarator) "gcmemnode_init (void *sequence, size_t size, bitarray *reservemask, bitarray *gcmarks, gcmemnode *nextnode, gcmemnode *gmnode)" (identifier) "gcmemnode_init" (parameter_list) "(void *sequence, size_t size, bitarray *reservemask, bitarray *gcmarks, gcmemnode *nextnode, gcmemnode *gmnode)" (() "(" (parameter_declaration) "void *sequence" (primitive_type) "void" (pointer_declarator) "*sequence" (*) "*" (identifier) "sequence" (,) "," (parameter_declaration) "size_t size" (primitive_type) "size_t" (identifier) "size" (,) "," (parameter_declaration) "bitarray *reservemask" (type_identifier) "bitarray" (pointer_declarator) "*reservemask" (*) "*" (identifier) "reservemask" (,) "," (parameter_declaration) "bitarray *gcmarks" (type_identifier) "bitarray" (pointer_declarator) "*gcmarks" (*) "*" (identifier) "gcmarks" (,) "," (parameter_declaration) "gcmemnode *nextnode" (type_identifier) "gcmemnode" (pointer_declarator) "*nextnode" (*) "*" (identifier) "nextnode" (,) "," (parameter_declaration) "gcmemnode *gmnode" (type_identifier) "gcmemnode" (pointer_declarator) "*gmnode" (*) "*" (identifier) "gmnode" ()) ")" (compound_statement) "{\n memnode_init(sequence, size, reservemask, (memnode*)nextnode, &(gmnode->memnode));\n gmnode->gcmarks = gcmarks;\n}" ({) "{" (expression_statement) "memnode_init(sequence, size, reservemask, (memnode*)nextnode, &(gmnode->memnode));" (call_expression) "memnode_init(sequence, size, reservemask, (memnode*)nextnode, &(gmnode->memnode))" (identifier) "memnode_init" (argument_list) "(sequence, size, reservemask, (memnode*)nextnode, &(gmnode->memnode))" (() "(" (identifier) "sequence" (,) "," (identifier) "size" (,) "," (identifier) "reservemask" (,) "," (cast_expression) "(memnode*)nextnode" (() "(" (type_descriptor) "memnode*" (type_identifier) "memnode" (abstract_pointer_declarator) "*" (*) "*" ()) ")" (identifier) "nextnode" (,) "," (pointer_expression) "&(gmnode->memnode)" (&) "&" (parenthesized_expression) "(gmnode->memnode)" (() "(" (field_expression) "gmnode->memnode" (identifier) "gmnode" (->) "->" (field_identifier) "memnode" ()) ")" ()) ")" (;) ";" (expression_statement) "gmnode->gcmarks = gcmarks;" (assignment_expression) "gmnode->gcmarks = gcmarks" (field_expression) "gmnode->gcmarks" (identifier) "gmnode" (->) "->" (field_identifier) "gcmarks" (=) "=" (identifier) "gcmarks" (;) ";" (}) "}" (function_definition) "gcmemnode *make_gcmemnode (size_t size, gcmemnode *nextnode){\n gcmemnode *gmnode = malloc(sizeof(gcmemnode));\n if (gmnode == NULL){\n }\n uint8_t *gmnodeseq = malloc(sizeof(uint8_t) * size);\n if (gmnodeseq == NULL){\n }\n bitarray *reservemask = make_bitarray(size);\n if (reservemask == NULL){\n }\n bitarray *gcmarks = make_bitarray(size);\n if (gcmarks == NULL){\n }\n gcmemnode_init(gmnodeseq, size, reservemask, gcmarks, nextnode, gmnode);\n return gmnode;\n}" (type_identifier) "gcmemnode" (pointer_declarator) "*make_gcmemnode (size_t size, gcmemnode *nextnode)" (*) "*" (function_declarator) "make_gcmemnode (size_t size, gcmemnode *nextnode)" (identifier) "make_gcmemnode" (parameter_list) "(size_t size, gcmemnode *nextnode)" (() "(" (parameter_declaration) "size_t size" (primitive_type) "size_t" (identifier) "size" (,) "," (parameter_declaration) "gcmemnode *nextnode" (type_identifier) "gcmemnode" (pointer_declarator) "*nextnode" (*) "*" (identifier) "nextnode" ()) ")" (compound_statement) "{\n gcmemnode *gmnode = malloc(sizeof(gcmemnode));\n if (gmnode == NULL){\n }\n uint8_t *gmnodeseq = malloc(sizeof(uint8_t) * size);\n if (gmnodeseq == NULL){\n }\n bitarray *reservemask = make_bitarray(size);\n if (reservemask == NULL){\n }\n bitarray *gcmarks = make_bitarray(size);\n if (gcmarks == NULL){\n }\n gcmemnode_init(gmnodeseq, size, reservemask, gcmarks, nextnode, gmnode);\n return gmnode;\n}" ({) "{" (declaration) "gcmemnode *gmnode = malloc(sizeof(gcmemnode));" (type_identifier) "gcmemnode" (init_declarator) "*gmnode = malloc(sizeof(gcmemnode))" (pointer_declarator) "*gmnode" (*) "*" (identifier) "gmnode" (=) "=" (call_expression) "malloc(sizeof(gcmemnode))" (identifier) "malloc" (argument_list) "(sizeof(gcmemnode))" (() "(" (sizeof_expression) "sizeof(gcmemnode)" (sizeof) "sizeof" (parenthesized_expression) "(gcmemnode)" (() "(" (identifier) "gcmemnode" ()) ")" ()) ")" (;) ";" (if_statement) "if (gmnode == NULL){\n }" (if) "if" (parenthesized_expression) "(gmnode == NULL)" (() "(" (binary_expression) "gmnode == NULL" (identifier) "gmnode" (==) "==" (null) "NULL" (NULL) "NULL" ()) ")" (compound_statement) "{\n }" ({) "{" (}) "}" (declaration) "uint8_t *gmnodeseq = malloc(sizeof(uint8_t) * size);" (primitive_type) "uint8_t" (init_declarator) "*gmnodeseq = malloc(sizeof(uint8_t) * size)" (pointer_declarator) "*gmnodeseq" (*) "*" (identifier) "gmnodeseq" (=) "=" (call_expression) "malloc(sizeof(uint8_t) * size)" (identifier) "malloc" (argument_list) "(sizeof(uint8_t) * size)" (() "(" (binary_expression) "sizeof(uint8_t) * size" (sizeof_expression) "sizeof(uint8_t)" (sizeof) "sizeof" (() "(" (type_descriptor) "uint8_t" (primitive_type) "uint8_t" ()) ")" (*) "*" (identifier) "size" ()) ")" (;) ";" (if_statement) "if (gmnodeseq == NULL){\n }" (if) "if" (parenthesized_expression) "(gmnodeseq == NULL)" (() "(" (binary_expression) "gmnodeseq == NULL" (identifier) "gmnodeseq" (==) "==" (null) "NULL" (NULL) "NULL" ()) ")" (compound_statement) "{\n }" ({) "{" (}) "}" (declaration) "bitarray *reservemask = make_bitarray(size);" (type_identifier) "bitarray" (init_declarator) "*reservemask = make_bitarray(size)" (pointer_declarator) "*reservemask" (*) "*" (identifier) "reservemask" (=) "=" (call_expression) "make_bitarray(size)" (identifier) "make_bitarray" (argument_list) "(size)" (() "(" (identifier) "size" ()) ")" (;) ";" (if_statement) "if (reservemask == NULL){\n }" (if) "if" (parenthesized_expression) "(reservemask == NULL)" (() "(" (binary_expression) "reservemask == NULL" (identifier) "reservemask" (==) "==" (null) "NULL" (NULL) "NULL" ()) ")" (compound_statement) "{\n }" ({) "{" (}) "}" (declaration) "bitarray *gcmarks = make_bitarray(size);" (type_identifier) "bitarray" (init_declarator) "*gcmarks = make_bitarray(size)" (pointer_declarator) "*gcmarks" (*) "*" (identifier) "gcmarks" (=) "=" (call_expression) "make_bitarray(size)" (identifier) "make_bitarray" (argument_list) "(size)" (() "(" (identifier) "size" ()) ")" (;) ";" (if_statement) "if (gcmarks == NULL){\n }" (if) "if" (parenthesized_expression) "(gcmarks == NULL)" (() "(" (binary_expression) "gcmarks == NULL" (identifier) "gcmarks" (==) "==" (null) "NULL" (NULL) "NULL" ()) ")" (compound_statement) "{\n }" ({) "{" (}) "}" (expression_statement) "gcmemnode_init(gmnodeseq, size, reservemask, gcmarks, nextnode, gmnode);" (call_expression) "gcmemnode_init(gmnodeseq, size, reservemask, gcmarks, nextnode, gmnode)" (identifier) "gcmemnode_init" (argument_list) "(gmnodeseq, size, reservemask, gcmarks, nextnode, gmnode)" (() "(" (identifier) "gmnodeseq" (,) "," (identifier) "size" (,) "," (identifier) "reservemask" (,) "," (identifier) "gcmarks" (,) "," (identifier) "nextnode" (,) "," (identifier) "gmnode" ()) ")" (;) ";" (return_statement) "return gmnode;" (return) "return" (identifier) "gmnode" (;) ";" (}) "}" (function_definition) "void free_gcmemnode (gcmemnode *gmnode){\n free_bitarray(gmnode->memnode.reservemask);\n free_bitarray(gmnode->gcmarks);\n free(gmnode->memnode.sequence);\n free(gmnode);\n}" (primitive_type) "void" (function_declarator) "free_gcmemnode (gcmemnode *gmnode)" (identifier) "free_gcmemnode" (parameter_list) "(gcmemnode *gmnode)" (() "(" (parameter_declaration) "gcmemnode *gmnode" (type_identifier) "gcmemnode" (pointer_declarator) "*gmnode" (*) "*" (identifier) "gmnode" ()) ")" (compound_statement) "{\n free_bitarray(gmnode->memnode.reservemask);\n free_bitarray(gmnode->gcmarks);\n free(gmnode->memnode.sequence);\n free(gmnode);\n}" ({) "{" (expression_statement) "free_bitarray(gmnode->memnode.reservemask);" (call_expression) "free_bitarray(gmnode->memnode.reservemask)" (identifier) "free_bitarray" (argument_list) "(gmnode->memnode.reservemask)" (() "(" (field_expression) "gmnode->memnode.reservemask" (field_expression) "gmnode->memnode" (identifier) "gmnode" (->) "->" (field_identifier) "memnode" (.) "." (field_identifier) "reservemask" ()) ")" (;) ";" (expression_statement) "free_bitarray(gmnode->gcmarks);" (call_expression) "free_bitarray(gmnode->gcmarks)" (identifier) "free_bitarray" (argument_list) "(gmnode->gcmarks)" (() "(" (field_expression) "gmnode->gcmarks" (identifier) "gmnode" (->) "->" (field_identifier) "gcmarks" ()) ")" (;) ";" (expression_statement) "free(gmnode->memnode.sequence);" (call_expression) "free(gmnode->memnode.sequence)" (identifier) "free" (argument_list) "(gmnode->memnode.sequence)" (() "(" (field_expression) "gmnode->memnode.sequence" (field_expression) "gmnode->memnode" (identifier) "gmnode" (->) "->" (field_identifier) "memnode" (.) "." (field_identifier) "sequence" ()) ")" (;) ";" (expression_statement) "free(gmnode);" (call_expression) "free(gmnode)" (identifier) "free" (argument_list) "(gmnode)" (() "(" (identifier) "gmnode" ()) ")" (;) ";" (}) "}" (function_definition) "void free_gcmemnode_all (gcmemnode *gmnode){\n gcmemnode *gmnd = gmnode;\n while (gmnd != NULL){\n gcmemnode *nextnode = gcmemnode_next(gmnd);\n free_gcmemnode(gmnd);\n gmnd = nextnode;\n }\n}" (primitive_type) "void" (function_declarator) "free_gcmemnode_all (gcmemnode *gmnode)" (identifier) "free_gcmemnode_all" (parameter_list) "(gcmemnode *gmnode)" (() "(" (parameter_declaration) "gcmemnode *gmnode" (type_identifier) "gcmemnode" (pointer_declarator) "*gmnode" (*) "*" (identifier) "gmnode" ()) ")" (compound_statement) "{\n gcmemnode *gmnd = gmnode;\n while (gmnd != NULL){\n gcmemnode *nextnode = gcmemnode_next(gmnd);\n free_gcmemnode(gmnd);\n gmnd = nextnode;\n }\n}" ({) "{" (declaration) "gcmemnode *gmnd = gmnode;" (type_identifier) "gcmemnode" (init_declarator) "*gmnd = gmnode" (pointer_declarator) "*gmnd" (*) "*" (identifier) "gmnd" (=) "=" (identifier) "gmnode" (;) ";" (while_statement) "while (gmnd != NULL){\n gcmemnode *nextnode = gcmemnode_next(gmnd);\n free_gcmemnode(gmnd);\n gmnd = nextnode;\n }" (while) "while" (parenthesized_expression) "(gmnd != NULL)" (() "(" (binary_expression) "gmnd != NULL" (identifier) "gmnd" (!=) "!=" (null) "NULL" (NULL) "NULL" ()) ")" (compound_statement) "{\n gcmemnode *nextnode = gcmemnode_next(gmnd);\n free_gcmemnode(gmnd);\n gmnd = nextnode;\n }" ({) "{" (declaration) "gcmemnode *nextnode = gcmemnode_next(gmnd);" (type_identifier) "gcmemnode" (init_declarator) "*nextnode = gcmemnode_next(gmnd)" (pointer_declarator) "*nextnode" (*) "*" (identifier) "nextnode" (=) "=" (call_expression) "gcmemnode_next(gmnd)" (identifier) "gcmemnode_next" (argument_list) "(gmnd)" (() "(" (identifier) "gmnd" ()) ")" (;) ";" (expression_statement) "free_gcmemnode(gmnd);" (call_expression) "free_gcmemnode(gmnd)" (identifier) "free_gcmemnode" (argument_list) "(gmnd)" (() "(" (identifier) "gmnd" ()) ")" (;) ";" (expression_statement) "gmnd = nextnode;" (assignment_expression) "gmnd = nextnode" (identifier) "gmnd" (=) "=" (identifier) "nextnode" (;) ";" (}) "}" (}) "}" (function_definition) "memnode *gcmemnode_memnode (gcmemnode *gmnode){\n return &(gmnode->memnode);\n}" (type_identifier) "memnode" (pointer_declarator) "*gcmemnode_memnode (gcmemnode *gmnode)" (*) "*" (function_declarator) "gcmemnode_memnode (gcmemnode *gmnode)" (identifier) "gcmemnode_memnode" (parameter_list) "(gcmemnode *gmnode)" (() "(" (parameter_declaration) "gcmemnode *gmnode" (type_identifier) "gcmemnode" (pointer_declarator) "*gmnode" (*) "*" (identifier) "gmnode" ()) ")" (compound_statement) "{\n return &(gmnode->memnode);\n}" ({) "{" (return_statement) "return &(gmnode->memnode);" (return) "return" (pointer_expression) "&(gmnode->memnode)" (&) "&" (parenthesized_expression) "(gmnode->memnode)" (() "(" (field_expression) "gmnode->memnode" (identifier) "gmnode" (->) "->" (field_identifier) "memnode" ()) ")" (;) ";" (}) "}" (function_definition) "gcmemnode *gcmemnode_next (gcmemnode *gmnode){\n return (gcmemnode*)gcmemnode_memnode(gmnode)->nextnode;\n}" (type_identifier) "gcmemnode" (pointer_declarator) "*gcmemnode_next (gcmemnode *gmnode)" (*) "*" (function_declarator) "gcmemnode_next (gcmemnode *gmnode)" (identifier) "gcmemnode_next" (parameter_list) "(gcmemnode *gmnode)" (() "(" (parameter_declaration) "gcmemnode *gmnode" (type_identifier) "gcmemnode" (pointer_declarator) "*gmnode" (*) "*" (identifier) "gmnode" ()) ")" (compound_statement) "{\n return (gcmemnode*)gcmemnode_memnode(gmnode)->nextnode;\n}" ({) "{" (return_statement) "return (gcmemnode*)gcmemnode_memnode(gmnode)->nextnode;" (return) "return" (cast_expression) "(gcmemnode*)gcmemnode_memnode(gmnode)->nextnode" (() "(" (type_descriptor) "gcmemnode*" (type_identifier) "gcmemnode" (abstract_pointer_declarator) "*" (*) "*" ()) ")" (field_expression) "gcmemnode_memnode(gmnode)->nextnode" (call_expression) "gcmemnode_memnode(gmnode)" (identifier) "gcmemnode_memnode" (argument_list) "(gmnode)" (() "(" (identifier) "gmnode" ()) ")" (->) "->" (field_identifier) "nextnode" (;) ";" (}) "}" (function_definition) "int gcmemnode_gc_start (gcmemnode *gmnode){\n for (gcmemnode *nd = gmnode; nd != NULL; nd = gcmemnode_next(nd)){\n if (bitarray_fill(0, 0, bitarray_length(nd->gcmarks), nd->gcmarks) != 0){\n return 1;\n }\n }\n return 0;\n}" (primitive_type) "int" (function_declarator) "gcmemnode_gc_start (gcmemnode *gmnode)" (identifier) "gcmemnode_gc_start" (parameter_list) "(gcmemnode *gmnode)" (() "(" (parameter_declaration) "gcmemnode *gmnode" (type_identifier) "gcmemnode" (pointer_declarator) "*gmnode" (*) "*" (identifier) "gmnode" ()) ")" (compound_statement) "{\n for (gcmemnode *nd = gmnode; nd != NULL; nd = gcmemnode_next(nd)){\n if (bitarray_fill(0, 0, bitarray_length(nd->gcmarks), nd->gcmarks) != 0){\n return 1;\n }\n }\n return 0;\n}" ({) "{" (for_statement) "for (gcmemnode *nd = gmnode; nd != NULL; nd = gcmemnode_next(nd)){\n if (bitarray_fill(0, 0, bitarray_length(nd->gcmarks), nd->gcmarks) != 0){\n return 1;\n }\n }" (for) "for" (() "(" (declaration) "gcmemnode *nd = gmnode;" (type_identifier) "gcmemnode" (init_declarator) "*nd = gmnode" (pointer_declarator) "*nd" (*) "*" (identifier) "nd" (=) "=" (identifier) "gmnode" (;) ";" (binary_expression) "nd != NULL" (identifier) "nd" (!=) "!=" (null) "NULL" (NULL) "NULL" (;) ";" (assignment_expression) "nd = gcmemnode_next(nd)" (identifier) "nd" (=) "=" (call_expression) "gcmemnode_next(nd)" (identifier) "gcmemnode_next" (argument_list) "(nd)" (() "(" (identifier) "nd" ()) ")" ()) ")" (compound_statement) "{\n if (bitarray_fill(0, 0, bitarray_length(nd->gcmarks), nd->gcmarks) != 0){\n return 1;\n }\n }" ({) "{" (if_statement) "if (bitarray_fill(0, 0, bitarray_length(nd->gcmarks), nd->gcmarks) != 0){\n return 1;\n }" (if) "if" (parenthesized_expression) "(bitarray_fill(0, 0, bitarray_length(nd->gcmarks), nd->gcmarks) != 0)" (() "(" (binary_expression) "bitarray_fill(0, 0, bitarray_length(nd->gcmarks), nd->gcmarks) != 0" (call_expression) "bitarray_fill(0, 0, bitarray_length(nd->gcmarks), nd->gcmarks)" (identifier) "bitarray_fill" (argument_list) "(0, 0, bitarray_length(nd->gcmarks), nd->gcmarks)" (() "(" (number_literal) "0" (,) "," (number_literal) "0" (,) "," (call_expression) "bitarray_length(nd->gcmarks)" (identifier) "bitarray_length" (argument_list) "(nd->gcmarks)" (() "(" (field_expression) "nd->gcmarks" (identifier) "nd" (->) "->" (field_identifier) "gcmarks" ()) ")" (,) "," (field_expression) "nd->gcmarks" (identifier) "nd" (->) "->" (field_identifier) "gcmarks" ()) ")" (!=) "!=" (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" (;) ";" (}) "}" (function_definition) "int gcmemnode_gc_mark (void *address, size_t size, gcmemnode *gmnode){\n memnode *foundmemnode = memnode_find(address, gcmemnode_memnode(gmnode));\n if (foundmemnode == NULL){\n return 1;\n }\n size_t offset = address - foundmemnode->sequence;\n gcmemnode *foundgmnode = (gcmemnode*)foundmemnode;\n if (bitarray_fill(1, offset, offset + size, foundgmnode->gcmarks) != 0){\n return 1;\n }\n return 0;\n}" (primitive_type) "int" (function_declarator) "gcmemnode_gc_mark (void *address, size_t size, gcmemnode *gmnode)" (identifier) "gcmemnode_gc_mark" (parameter_list) "(void *address, size_t size, gcmemnode *gmnode)" (() "(" (parameter_declaration) "void *address" (primitive_type) "void" (pointer_declarator) "*address" (*) "*" (identifier) "address" (,) "," (parameter_declaration) "size_t size" (primitive_type) "size_t" (identifier) "size" (,) "," (parameter_declaration) "gcmemnode *gmnode" (type_identifier) "gcmemnode" (pointer_declarator) "*gmnode" (*) "*" (identifier) "gmnode" ()) ")" (compound_statement) "{\n memnode *foundmemnode = memnode_find(address, gcmemnode_memnode(gmnode));\n if (foundmemnode == NULL){\n return 1;\n }\n size_t offset = address - foundmemnode->sequence;\n gcmemnode *foundgmnode = (gcmemnode*)foundmemnode;\n if (bitarray_fill(1, offset, offset + size, foundgmnode->gcmarks) != 0){\n return 1;\n }\n return 0;\n}" ({) "{" (declaration) "memnode *foundmemnode = memnode_find(address, gcmemnode_memnode(gmnode));" (type_identifier) "memnode" (init_declarator) "*foundmemnode = memnode_find(address, gcmemnode_memnode(gmnode))" (pointer_declarator) "*foundmemnode" (*) "*" (identifier) "foundmemnode" (=) "=" (call_expression) "memnode_find(address, gcmemnode_memnode(gmnode))" (identifier) "memnode_find" (argument_list) "(address, gcmemnode_memnode(gmnode))" (() "(" (identifier) "address" (,) "," (call_expression) "gcmemnode_memnode(gmnode)" (identifier) "gcmemnode_memnode" (argument_list) "(gmnode)" (() "(" (identifier) "gmnode" ()) ")" ()) ")" (;) ";" (if_statement) "if (foundmemnode == NULL){\n return 1;\n }" (if) "if" (parenthesized_expression) "(foundmemnode == NULL)" (() "(" (binary_expression) "foundmemnode == NULL" (identifier) "foundmemnode" (==) "==" (null) "NULL" (NULL) "NULL" ()) ")" (compound_statement) "{\n return 1;\n }" ({) "{" (return_statement) "return 1;" (return) "return" (number_literal) "1" (;) ";" (}) "}" (declaration) "size_t offset = address - foundmemnode->sequence;" (primitive_type) "size_t" (init_declarator) "offset = address - foundmemnode->sequence" (identifier) "offset" (=) "=" (binary_expression) "address - foundmemnode->sequence" (identifier) "address" (-) "-" (field_expression) "foundmemnode->sequence" (identifier) "foundmemnode" (->) "->" (field_identifier) "sequence" (;) ";" (declaration) "gcmemnode *foundgmnode = (gcmemnode*)foundmemnode;" (type_identifier) "gcmemnode" (init_declarator) "*foundgmnode = (gcmemnode*)foundmemnode" (pointer_declarator) "*foundgmnode" (*) "*" (identifier) "foundgmnode" (=) "=" (cast_expression) "(gcmemnode*)foundmemnode" (() "(" (type_descriptor) "gcmemnode*" (type_identifier) "gcmemnode" (abstract_pointer_declarator) "*" (*) "*" ()) ")" (identifier) "foundmemnode" (;) ";" (if_statement) "if (bitarray_fill(1, offset, offset + size, foundgmnode->gcmarks) != 0){\n return 1;\n }" (if) "if" (parenthesized_expression) "(bitarray_fill(1, offset, offset + size, foundgmnode->gcmarks) != 0)" (() "(" (binary_expression) "bitarray_fill(1, offset, offset + size, foundgmnode->gcmarks) != 0" (call_expression) "bitarray_fill(1, offset, offset + size, foundgmnode->gcmarks)" (identifier) "bitarray_fill" (argument_list) "(1, offset, offset + size, foundgmnode->gcmarks)" (() "(" (number_literal) "1" (,) "," (identifier) "offset" (,) "," (binary_expression) "offset + size" (identifier) "offset" (+) "+" (identifier) "size" (,) "," (field_expression) "foundgmnode->gcmarks" (identifier) "foundgmnode" (->) "->" (field_identifier) "gcmarks" ()) ")" (!=) "!=" (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" (;) ";" (}) "}" (function_definition) "int gcmemnode_gc_unmark (void *address, size_t size, gcmemnode *gmnode){\n memnode *foundmemnode = memnode_find(address, gcmemnode_memnode(gmnode));\n if (foundmemnode == NULL){\n return 1;\n }\n size_t offset = address - foundmemnode->sequence;\n gcmemnode *foundgmnode = (gcmemnode*)foundmemnode;\n if (bitarray_fill(0, offset, offset + size, foundgmnode->gcmarks) != 0){\n return 1;\n }\n return 0;\n}" (primitive_type) "int" (function_declarator) "gcmemnode_gc_unmark (void *address, size_t size, gcmemnode *gmnode)" (identifier) "gcmemnode_gc_unmark" (parameter_list) "(void *address, size_t size, gcmemnode *gmnode)" (() "(" (parameter_declaration) "void *address" (primitive_type) "void" (pointer_declarator) "*address" (*) "*" (identifier) "address" (,) "," (parameter_declaration) "size_t size" (primitive_type) "size_t" (identifier) "size" (,) "," (parameter_declaration) "gcmemnode *gmnode" (type_identifier) "gcmemnode" (pointer_declarator) "*gmnode" (*) "*" (identifier) "gmnode" ()) ")" (compound_statement) "{\n memnode *foundmemnode = memnode_find(address, gcmemnode_memnode(gmnode));\n if (foundmemnode == NULL){\n return 1;\n }\n size_t offset = address - foundmemnode->sequence;\n gcmemnode *foundgmnode = (gcmemnode*)foundmemnode;\n if (bitarray_fill(0, offset, offset + size, foundgmnode->gcmarks) != 0){\n return 1;\n }\n return 0;\n}" ({) "{" (declaration) "memnode *foundmemnode = memnode_find(address, gcmemnode_memnode(gmnode));" (type_identifier) "memnode" (init_declarator) "*foundmemnode = memnode_find(address, gcmemnode_memnode(gmnode))" (pointer_declarator) "*foundmemnode" (*) "*" (identifier) "foundmemnode" (=) "=" (call_expression) "memnode_find(address, gcmemnode_memnode(gmnode))" (identifier) "memnode_find" (argument_list) "(address, gcmemnode_memnode(gmnode))" (() "(" (identifier) "address" (,) "," (call_expression) "gcmemnode_memnode(gmnode)" (identifier) "gcmemnode_memnode" (argument_list) "(gmnode)" (() "(" (identifier) "gmnode" ()) ")" ()) ")" (;) ";" (if_statement) "if (foundmemnode == NULL){\n return 1;\n }" (if) "if" (parenthesized_expression) "(foundmemnode == NULL)" (() "(" (binary_expression) "foundmemnode == NULL" (identifier) "foundmemnode" (==) "==" (null) "NULL" (NULL) "NULL" ()) ")" (compound_statement) "{\n return 1;\n }" ({) "{" (return_statement) "return 1;" (return) "return" (number_literal) "1" (;) ";" (}) "}" (declaration) "size_t offset = address - foundmemnode->sequence;" (primitive_type) "size_t" (init_declarator) "offset = address - foundmemnode->sequence" (identifier) "offset" (=) "=" (binary_expression) "address - foundmemnode->sequence" (identifier) "address" (-) "-" (field_expression) "foundmemnode->sequence" (identifier) "foundmemnode" (->) "->" (field_identifier) "sequence" (;) ";" (declaration) "gcmemnode *foundgmnode = (gcmemnode*)foundmemnode;" (type_identifier) "gcmemnode" (init_declarator) "*foundgmnode = (gcmemnode*)foundmemnode" (pointer_declarator) "*foundgmnode" (*) "*" (identifier) "foundgmnode" (=) "=" (cast_expression) "(gcmemnode*)foundmemnode" (() "(" (type_descriptor) "gcmemnode*" (type_identifier) "gcmemnode" (abstract_pointer_declarator) "*" (*) "*" ()) ")" (identifier) "foundmemnode" (;) ";" (if_statement) "if (bitarray_fill(0, offset, offset + size, foundgmnode->gcmarks) != 0){\n return 1;\n }" (if) "if" (parenthesized_expression) "(bitarray_fill(0, offset, offset + size, foundgmnode->gcmarks) != 0)" (() "(" (binary_expression) "bitarray_fill(0, offset, offset + size, foundgmnode->gcmarks) != 0" (call_expression) "bitarray_fill(0, offset, offset + size, foundgmnode->gcmarks)" (identifier) "bitarray_fill" (argument_list) "(0, offset, offset + size, foundgmnode->gcmarks)" (() "(" (number_literal) "0" (,) "," (identifier) "offset" (,) "," (binary_expression) "offset + size" (identifier) "offset" (+) "+" (identifier) "size" (,) "," (field_expression) "foundgmnode->gcmarks" (identifier) "foundgmnode" (->) "->" (field_identifier) "gcmarks" ()) ")" (!=) "!=" (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" (;) ";" (}) "}" (function_definition) "int gcmemnode_gc_markp (void *address, size_t size, gcmemnode *gmnode, bool *markp){\n memnode *foundmemnode = memnode_find(address, gcmemnode_memnode(gmnode));\n if (foundmemnode == NULL){\n return 1;\n }\n size_t offset = address - foundmemnode->sequence;\n gcmemnode *foundgmnode = (gcmemnode*)foundmemnode;\n if (bitarray_fillp(1, offset, offset + size, foundgmnode->gcmarks, markp) != 0){\n return 1;\n }\n return 0;\n}" (primitive_type) "int" (function_declarator) "gcmemnode_gc_markp (void *address, size_t size, gcmemnode *gmnode, bool *markp)" (identifier) "gcmemnode_gc_markp" (parameter_list) "(void *address, size_t size, gcmemnode *gmnode, bool *markp)" (() "(" (parameter_declaration) "void *address" (primitive_type) "void" (pointer_declarator) "*address" (*) "*" (identifier) "address" (,) "," (parameter_declaration) "size_t size" (primitive_type) "size_t" (identifier) "size" (,) "," (parameter_declaration) "gcmemnode *gmnode" (type_identifier) "gcmemnode" (pointer_declarator) "*gmnode" (*) "*" (identifier) "gmnode" (,) "," (parameter_declaration) "bool *markp" (primitive_type) "bool" (pointer_declarator) "*markp" (*) "*" (identifier) "markp" ()) ")" (compound_statement) "{\n memnode *foundmemnode = memnode_find(address, gcmemnode_memnode(gmnode));\n if (foundmemnode == NULL){\n return 1;\n }\n size_t offset = address - foundmemnode->sequence;\n gcmemnode *foundgmnode = (gcmemnode*)foundmemnode;\n if (bitarray_fillp(1, offset, offset + size, foundgmnode->gcmarks, markp) != 0){\n return 1;\n }\n return 0;\n}" ({) "{" (declaration) "memnode *foundmemnode = memnode_find(address, gcmemnode_memnode(gmnode));" (type_identifier) "memnode" (init_declarator) "*foundmemnode = memnode_find(address, gcmemnode_memnode(gmnode))" (pointer_declarator) "*foundmemnode" (*) "*" (identifier) "foundmemnode" (=) "=" (call_expression) "memnode_find(address, gcmemnode_memnode(gmnode))" (identifier) "memnode_find" (argument_list) "(address, gcmemnode_memnode(gmnode))" (() "(" (identifier) "address" (,) "," (call_expression) "gcmemnode_memnode(gmnode)" (identifier) "gcmemnode_memnode" (argument_list) "(gmnode)" (() "(" (identifier) "gmnode" ()) ")" ()) ")" (;) ";" (if_statement) "if (foundmemnode == NULL){\n return 1;\n }" (if) "if" (parenthesized_expression) "(foundmemnode == NULL)" (() "(" (binary_expression) "foundmemnode == NULL" (identifier) "foundmemnode" (==) "==" (null) "NULL" (NULL) "NULL" ()) ")" (compound_statement) "{\n return 1;\n }" ({) "{" (return_statement) "return 1;" (return) "return" (number_literal) "1" (;) ";" (}) "}" (declaration) "size_t offset = address - foundmemnode->sequence;" (primitive_type) "size_t" (init_declarator) "offset = address - foundmemnode->sequence" (identifier) "offset" (=) "=" (binary_expression) "address - foundmemnode->sequence" (identifier) "address" (-) "-" (field_expression) "foundmemnode->sequence" (identifier) "foundmemnode" (->) "->" (field_identifier) "sequence" (;) ";" (declaration) "gcmemnode *foundgmnode = (gcmemnode*)foundmemnode;" (type_identifier) "gcmemnode" (init_declarator) "*foundgmnode = (gcmemnode*)foundmemnode" (pointer_declarator) "*foundgmnode" (*) "*" (identifier) "foundgmnode" (=) "=" (cast_expression) "(gcmemnode*)foundmemnode" (() "(" (type_descriptor) "gcmemnode*" (type_identifier) "gcmemnode" (abstract_pointer_declarator) "*" (*) "*" ()) ")" (identifier) "foundmemnode" (;) ";" (if_statement) "if (bitarray_fillp(1, offset, offset + size, foundgmnode->gcmarks, markp) != 0){\n return 1;\n }" (if) "if" (parenthesized_expression) "(bitarray_fillp(1, offset, offset + size, foundgmnode->gcmarks, markp) != 0)" (() "(" (binary_expression) "bitarray_fillp(1, offset, offset + size, foundgmnode->gcmarks, markp) != 0" (call_expression) "bitarray_fillp(1, offset, offset + size, foundgmnode->gcmarks, markp)" (identifier) "bitarray_fillp" (argument_list) "(1, offset, offset + size, foundgmnode->gcmarks, markp)" (() "(" (number_literal) "1" (,) "," (identifier) "offset" (,) "," (binary_expression) "offset + size" (identifier) "offset" (+) "+" (identifier) "size" (,) "," (field_expression) "foundgmnode->gcmarks" (identifier) "foundgmnode" (->) "->" (field_identifier) "gcmarks" (,) "," (identifier) "markp" ()) ")" (!=) "!=" (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" (;) ";" (}) "}" (function_definition) "int gcmemnode_gc_end (gcmemnode *gmnode){\n for (gcmemnode *nd = gmnode; nd != NULL; nd = gcmemnode_next(nd)){\n if (bitarray_copy(nd->gcmarks, gcmemnode_memnode(nd)->reservemask) != 0){\n return 1;\n }\n }\n return 0;\n}" (primitive_type) "int" (function_declarator) "gcmemnode_gc_end (gcmemnode *gmnode)" (identifier) "gcmemnode_gc_end" (parameter_list) "(gcmemnode *gmnode)" (() "(" (parameter_declaration) "gcmemnode *gmnode" (type_identifier) "gcmemnode" (pointer_declarator) "*gmnode" (*) "*" (identifier) "gmnode" ()) ")" (compound_statement) "{\n for (gcmemnode *nd = gmnode; nd != NULL; nd = gcmemnode_next(nd)){\n if (bitarray_copy(nd->gcmarks, gcmemnode_memnode(nd)->reservemask) != 0){\n return 1;\n }\n }\n return 0;\n}" ({) "{" (for_statement) "for (gcmemnode *nd = gmnode; nd != NULL; nd = gcmemnode_next(nd)){\n if (bitarray_copy(nd->gcmarks, gcmemnode_memnode(nd)->reservemask) != 0){\n return 1;\n }\n }" (for) "for" (() "(" (declaration) "gcmemnode *nd = gmnode;" (type_identifier) "gcmemnode" (init_declarator) "*nd = gmnode" (pointer_declarator) "*nd" (*) "*" (identifier) "nd" (=) "=" (identifier) "gmnode" (;) ";" (binary_expression) "nd != NULL" (identifier) "nd" (!=) "!=" (null) "NULL" (NULL) "NULL" (;) ";" (assignment_expression) "nd = gcmemnode_next(nd)" (identifier) "nd" (=) "=" (call_expression) "gcmemnode_next(nd)" (identifier) "gcmemnode_next" (argument_list) "(nd)" (() "(" (identifier) "nd" ()) ")" ()) ")" (compound_statement) "{\n if (bitarray_copy(nd->gcmarks, gcmemnode_memnode(nd)->reservemask) != 0){\n return 1;\n }\n }" ({) "{" (if_statement) "if (bitarray_copy(nd->gcmarks, gcmemnode_memnode(nd)->reservemask) != 0){\n return 1;\n }" (if) "if" (parenthesized_expression) "(bitarray_copy(nd->gcmarks, gcmemnode_memnode(nd)->reservemask) != 0)" (() "(" (binary_expression) "bitarray_copy(nd->gcmarks, gcmemnode_memnode(nd)->reservemask) != 0" (call_expression) "bitarray_copy(nd->gcmarks, gcmemnode_memnode(nd)->reservemask)" (identifier) "bitarray_copy" (argument_list) "(nd->gcmarks, gcmemnode_memnode(nd)->reservemask)" (() "(" (field_expression) "nd->gcmarks" (identifier) "nd" (->) "->" (field_identifier) "gcmarks" (,) "," (field_expression) "gcmemnode_memnode(nd)->reservemask" (call_expression) "gcmemnode_memnode(nd)" (identifier) "gcmemnode_memnode" (argument_list) "(nd)" (() "(" (identifier) "nd" ()) ")" (->) "->" (field_identifier) "reservemask" ()) ")" (!=) "!=" (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" (;) ";" (}) "}"
1,034
0
{"language": "c", "success": true, "metadata": {"lines": 98, "avg_line_length": 30.65, "nodes": 674, "errors": 0, "source_hash": "2dc0c5f88e724771b794e5e196980f8300648d88be46f5abc44c99dfef09e312", "categorized_nodes": 444}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#include <stddef.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": "<stddef.h>", "parent": 0, "children": [], "start_point": {"row": 1, "column": 9}, "end_point": {"row": 1, "column": 19}}, {"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": 9}, "end_point": {"row": 2, "column": 19}}, {"id": 6, "type": "preproc_include", "text": "#include <stdbool.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": "<stdbool.h>", "parent": 6, "children": [], "start_point": {"row": 3, "column": 9}, "end_point": {"row": 3, "column": 20}}, {"id": 9, "type": "preproc_include", "text": "#include \"memnode.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": "\"memnode.h\"", "parent": 9, "children": [], "start_point": {"row": 4, "column": 9}, "end_point": {"row": 4, "column": 20}}, {"id": 12, "type": "preproc_include", "text": "#include \"bitarray.h\"\n", "parent": null, "children": [13, 14], "start_point": {"row": 5, "column": 0}, "end_point": {"row": 6, "column": 0}}, {"id": 13, "type": "#include", "text": "#include", "parent": 12, "children": [], "start_point": {"row": 5, "column": 0}, "end_point": {"row": 5, "column": 8}}, {"id": 14, "type": "string_literal", "text": "\"bitarray.h\"", "parent": 12, "children": [], "start_point": {"row": 5, "column": 9}, "end_point": {"row": 5, "column": 21}}, {"id": 15, "type": "preproc_include", "text": "#include \"gcmemnode.h\"\n", "parent": null, "children": [16, 17], "start_point": {"row": 6, "column": 0}, "end_point": {"row": 7, "column": 0}}, {"id": 16, "type": "#include", "text": "#include", "parent": 15, "children": [], "start_point": {"row": 6, "column": 0}, "end_point": {"row": 6, "column": 8}}, {"id": 17, "type": "string_literal", "text": "\"gcmemnode.h\"", "parent": 15, "children": [], "start_point": {"row": 6, "column": 9}, "end_point": {"row": 6, "column": 22}}, {"id": 18, "type": "function_definition", "text": "void gcmemnode_init (void *sequence, size_t size, bitarray *reservemask, bitarray *gcmarks, gcmemnode *nextnode, gcmemnode *gmnode){\n memnode_init(sequence, size, reservemask, (memnode*)nextnode, &(gmnode->memnode));\n gmnode->gcmarks = gcmarks;\n}", "parent": null, "children": [19, 20], "start_point": {"row": 8, "column": 0}, "end_point": {"row": 11, "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": "function_declarator", "text": "gcmemnode_init (void *sequence, size_t size, bitarray *reservemask, bitarray *gcmarks, gcmemnode *nextnode, gcmemnode *gmnode)", "parent": 18, "children": [21, 22], "start_point": {"row": 8, "column": 5}, "end_point": {"row": 8, "column": 131}}, {"id": 21, "type": "identifier", "text": "gcmemnode_init", "parent": 20, "children": [], "start_point": {"row": 8, "column": 5}, "end_point": {"row": 8, "column": 19}}, {"id": 22, "type": "parameter_list", "text": "(void *sequence, size_t size, bitarray *reservemask, bitarray *gcmarks, gcmemnode *nextnode, gcmemnode *gmnode)", "parent": 20, "children": [23, 28, 31, 36, 41, 46], "start_point": {"row": 8, "column": 20}, "end_point": {"row": 8, "column": 131}}, {"id": 23, "type": "parameter_declaration", "text": "void *sequence", "parent": 22, "children": [24, 25], "start_point": {"row": 8, "column": 21}, "end_point": {"row": 8, "column": 35}}, {"id": 24, "type": "primitive_type", "text": "void", "parent": 23, "children": [], "start_point": {"row": 8, "column": 21}, "end_point": {"row": 8, "column": 25}}, {"id": 25, "type": "pointer_declarator", "text": "*sequence", "parent": 23, "children": [26, 27], "start_point": {"row": 8, "column": 26}, "end_point": {"row": 8, "column": 35}}, {"id": 26, "type": "*", "text": "*", "parent": 25, "children": [], "start_point": {"row": 8, "column": 26}, "end_point": {"row": 8, "column": 27}}, {"id": 27, "type": "identifier", "text": "sequence", "parent": 25, "children": [], "start_point": {"row": 8, "column": 27}, "end_point": {"row": 8, "column": 35}}, {"id": 28, "type": "parameter_declaration", "text": "size_t size", "parent": 22, "children": [29, 30], "start_point": {"row": 8, "column": 37}, "end_point": {"row": 8, "column": 48}}, {"id": 29, "type": "primitive_type", "text": "size_t", "parent": 28, "children": [], "start_point": {"row": 8, "column": 37}, "end_point": {"row": 8, "column": 43}}, {"id": 30, "type": "identifier", "text": "size", "parent": 28, "children": [], "start_point": {"row": 8, "column": 44}, "end_point": {"row": 8, "column": 48}}, {"id": 31, "type": "parameter_declaration", "text": "bitarray *reservemask", "parent": 22, "children": [32, 33], "start_point": {"row": 8, "column": 50}, "end_point": {"row": 8, "column": 71}}, {"id": 32, "type": "type_identifier", "text": "bitarray", "parent": 31, "children": [], "start_point": {"row": 8, "column": 50}, "end_point": {"row": 8, "column": 58}}, {"id": 33, "type": "pointer_declarator", "text": "*reservemask", "parent": 31, "children": [34, 35], "start_point": {"row": 8, "column": 59}, "end_point": {"row": 8, "column": 71}}, {"id": 34, "type": "*", "text": "*", "parent": 33, "children": [], "start_point": {"row": 8, "column": 59}, "end_point": {"row": 8, "column": 60}}, {"id": 35, "type": "identifier", "text": "reservemask", "parent": 33, "children": [], "start_point": {"row": 8, "column": 60}, "end_point": {"row": 8, "column": 71}}, {"id": 36, "type": "parameter_declaration", "text": "bitarray *gcmarks", "parent": 22, "children": [37, 38], "start_point": {"row": 8, "column": 73}, "end_point": {"row": 8, "column": 90}}, {"id": 37, "type": "type_identifier", "text": "bitarray", "parent": 36, "children": [], "start_point": {"row": 8, "column": 73}, "end_point": {"row": 8, "column": 81}}, {"id": 38, "type": "pointer_declarator", "text": "*gcmarks", "parent": 36, "children": [39, 40], "start_point": {"row": 8, "column": 82}, "end_point": {"row": 8, "column": 90}}, {"id": 39, "type": "*", "text": "*", "parent": 38, "children": [], "start_point": {"row": 8, "column": 82}, "end_point": {"row": 8, "column": 83}}, {"id": 40, "type": "identifier", "text": "gcmarks", "parent": 38, "children": [], "start_point": {"row": 8, "column": 83}, "end_point": {"row": 8, "column": 90}}, {"id": 41, "type": "parameter_declaration", "text": "gcmemnode *nextnode", "parent": 22, "children": [42, 43], "start_point": {"row": 8, "column": 92}, "end_point": {"row": 8, "column": 111}}, {"id": 42, "type": "type_identifier", "text": "gcmemnode", "parent": 41, "children": [], "start_point": {"row": 8, "column": 92}, "end_point": {"row": 8, "column": 101}}, {"id": 43, "type": "pointer_declarator", "text": "*nextnode", "parent": 41, "children": [44, 45], "start_point": {"row": 8, "column": 102}, "end_point": {"row": 8, "column": 111}}, {"id": 44, "type": "*", "text": "*", "parent": 43, "children": [], "start_point": {"row": 8, "column": 102}, "end_point": {"row": 8, "column": 103}}, {"id": 45, "type": "identifier", "text": "nextnode", "parent": 43, "children": [], "start_point": {"row": 8, "column": 103}, "end_point": {"row": 8, "column": 111}}, {"id": 46, "type": "parameter_declaration", "text": "gcmemnode *gmnode", "parent": 22, "children": [47, 48], "start_point": {"row": 8, "column": 113}, "end_point": {"row": 8, "column": 130}}, {"id": 47, "type": "type_identifier", "text": "gcmemnode", "parent": 46, "children": [], "start_point": {"row": 8, "column": 113}, "end_point": {"row": 8, "column": 122}}, {"id": 48, "type": "pointer_declarator", "text": "*gmnode", "parent": 46, "children": [49, 50], "start_point": {"row": 8, "column": 123}, "end_point": {"row": 8, "column": 130}}, {"id": 49, "type": "*", "text": "*", "parent": 48, "children": [], "start_point": {"row": 8, "column": 123}, "end_point": {"row": 8, "column": 124}}, {"id": 50, "type": "identifier", "text": "gmnode", "parent": 48, "children": [], "start_point": {"row": 8, "column": 124}, "end_point": {"row": 8, "column": 130}}, {"id": 51, "type": "call_expression", "text": "memnode_init(sequence, size, reservemask, (memnode*)nextnode, &(gmnode->memnode))", "parent": 18, "children": [52, 53], "start_point": {"row": 9, "column": 2}, "end_point": {"row": 9, "column": 83}}, {"id": 52, "type": "identifier", "text": "memnode_init", "parent": 51, "children": [], "start_point": {"row": 9, "column": 2}, "end_point": {"row": 9, "column": 14}}, {"id": 53, "type": "argument_list", "text": "(sequence, size, reservemask, (memnode*)nextnode, &(gmnode->memnode))", "parent": 51, "children": [54, 55, 56, 57, 63], "start_point": {"row": 9, "column": 14}, "end_point": {"row": 9, "column": 83}}, {"id": 54, "type": "identifier", "text": "sequence", "parent": 53, "children": [], "start_point": {"row": 9, "column": 15}, "end_point": {"row": 9, "column": 23}}, {"id": 55, "type": "identifier", "text": "size", "parent": 53, "children": [], "start_point": {"row": 9, "column": 25}, "end_point": {"row": 9, "column": 29}}, {"id": 56, "type": "identifier", "text": "reservemask", "parent": 53, "children": [], "start_point": {"row": 9, "column": 31}, "end_point": {"row": 9, "column": 42}}, {"id": 57, "type": "cast_expression", "text": "(memnode*)nextnode", "parent": 53, "children": [58, 62], "start_point": {"row": 9, "column": 44}, "end_point": {"row": 9, "column": 62}}, {"id": 58, "type": "type_descriptor", "text": "memnode*", "parent": 57, "children": [59, 60], "start_point": {"row": 9, "column": 45}, "end_point": {"row": 9, "column": 53}}, {"id": 59, "type": "type_identifier", "text": "memnode", "parent": 58, "children": [], "start_point": {"row": 9, "column": 45}, "end_point": {"row": 9, "column": 52}}, {"id": 60, "type": "abstract_pointer_declarator", "text": "*", "parent": 58, "children": [61], "start_point": {"row": 9, "column": 52}, "end_point": {"row": 9, "column": 53}}, {"id": 61, "type": "*", "text": "*", "parent": 60, "children": [], "start_point": {"row": 9, "column": 52}, "end_point": {"row": 9, "column": 53}}, {"id": 62, "type": "identifier", "text": "nextnode", "parent": 57, "children": [], "start_point": {"row": 9, "column": 54}, "end_point": {"row": 9, "column": 62}}, {"id": 63, "type": "pointer_expression", "text": "&(gmnode->memnode)", "parent": 53, "children": [64], "start_point": {"row": 9, "column": 64}, "end_point": {"row": 9, "column": 82}}, {"id": 64, "type": "parenthesized_expression", "text": "(gmnode->memnode)", "parent": 63, "children": [65], "start_point": {"row": 9, "column": 65}, "end_point": {"row": 9, "column": 82}}, {"id": 65, "type": "field_expression", "text": "gmnode->memnode", "parent": 64, "children": [66, 67], "start_point": {"row": 9, "column": 66}, "end_point": {"row": 9, "column": 81}}, {"id": 66, "type": "identifier", "text": "gmnode", "parent": 65, "children": [], "start_point": {"row": 9, "column": 66}, "end_point": {"row": 9, "column": 72}}, {"id": 67, "type": "field_identifier", "text": "memnode", "parent": 65, "children": [], "start_point": {"row": 9, "column": 74}, "end_point": {"row": 9, "column": 81}}, {"id": 68, "type": "assignment_expression", "text": "gmnode->gcmarks = gcmarks", "parent": 18, "children": [69, 72, 73], "start_point": {"row": 10, "column": 2}, "end_point": {"row": 10, "column": 27}}, {"id": 69, "type": "field_expression", "text": "gmnode->gcmarks", "parent": 68, "children": [70, 71], "start_point": {"row": 10, "column": 2}, "end_point": {"row": 10, "column": 17}}, {"id": 70, "type": "identifier", "text": "gmnode", "parent": 69, "children": [], "start_point": {"row": 10, "column": 2}, "end_point": {"row": 10, "column": 8}}, {"id": 71, "type": "field_identifier", "text": "gcmarks", "parent": 69, "children": [], "start_point": {"row": 10, "column": 10}, "end_point": {"row": 10, "column": 17}}, {"id": 72, "type": "=", "text": "=", "parent": 68, "children": [], "start_point": {"row": 10, "column": 18}, "end_point": {"row": 10, "column": 19}}, {"id": 73, "type": "identifier", "text": "gcmarks", "parent": 68, "children": [], "start_point": {"row": 10, "column": 20}, "end_point": {"row": 10, "column": 27}}, {"id": 74, "type": "function_definition", "text": "gcmemnode *make_gcmemnode (size_t size, gcmemnode *nextnode){\n gcmemnode *gmnode = malloc(sizeof(gcmemnode));\n if (gmnode == NULL){\n }\n uint8_t *gmnodeseq = malloc(sizeof(uint8_t) * size);\n if (gmnodeseq == NULL){\n }\n bitarray *reservemask = make_bitarray(size);\n if (reservemask == NULL){\n }\n bitarray *gcmarks = make_bitarray(size);\n if (gcmarks == NULL){\n }\n gcmemnode_init(gmnodeseq, size, reservemask, gcmarks, nextnode, gmnode);\n return gmnode;\n}", "parent": null, "children": [75, 76], "start_point": {"row": 13, "column": 0}, "end_point": {"row": 28, "column": 1}}, {"id": 75, "type": "type_identifier", "text": "gcmemnode", "parent": 74, "children": [], "start_point": {"row": 13, "column": 0}, "end_point": {"row": 13, "column": 9}}, {"id": 76, "type": "pointer_declarator", "text": "*make_gcmemnode (size_t size, gcmemnode *nextnode)", "parent": 74, "children": [77, 78], "start_point": {"row": 13, "column": 10}, "end_point": {"row": 13, "column": 60}}, {"id": 77, "type": "*", "text": "*", "parent": 76, "children": [], "start_point": {"row": 13, "column": 10}, "end_point": {"row": 13, "column": 11}}, {"id": 78, "type": "function_declarator", "text": "make_gcmemnode (size_t size, gcmemnode *nextnode)", "parent": 76, "children": [79, 80], "start_point": {"row": 13, "column": 11}, "end_point": {"row": 13, "column": 60}}, {"id": 79, "type": "identifier", "text": "make_gcmemnode", "parent": 78, "children": [], "start_point": {"row": 13, "column": 11}, "end_point": {"row": 13, "column": 25}}, {"id": 80, "type": "parameter_list", "text": "(size_t size, gcmemnode *nextnode)", "parent": 78, "children": [81, 84], "start_point": {"row": 13, "column": 26}, "end_point": {"row": 13, "column": 60}}, {"id": 81, "type": "parameter_declaration", "text": "size_t size", "parent": 80, "children": [82, 83], "start_point": {"row": 13, "column": 27}, "end_point": {"row": 13, "column": 38}}, {"id": 82, "type": "primitive_type", "text": "size_t", "parent": 81, "children": [], "start_point": {"row": 13, "column": 27}, "end_point": {"row": 13, "column": 33}}, {"id": 83, "type": "identifier", "text": "size", "parent": 81, "children": [], "start_point": {"row": 13, "column": 34}, "end_point": {"row": 13, "column": 38}}, {"id": 84, "type": "parameter_declaration", "text": "gcmemnode *nextnode", "parent": 80, "children": [85, 86], "start_point": {"row": 13, "column": 40}, "end_point": {"row": 13, "column": 59}}, {"id": 85, "type": "type_identifier", "text": "gcmemnode", "parent": 84, "children": [], "start_point": {"row": 13, "column": 40}, "end_point": {"row": 13, "column": 49}}, {"id": 86, "type": "pointer_declarator", "text": "*nextnode", "parent": 84, "children": [87, 88], "start_point": {"row": 13, "column": 50}, "end_point": {"row": 13, "column": 59}}, {"id": 87, "type": "*", "text": "*", "parent": 86, "children": [], "start_point": {"row": 13, "column": 50}, "end_point": {"row": 13, "column": 51}}, {"id": 88, "type": "identifier", "text": "nextnode", "parent": 86, "children": [], "start_point": {"row": 13, "column": 51}, "end_point": {"row": 13, "column": 59}}, {"id": 89, "type": "declaration", "text": "gcmemnode *gmnode = malloc(sizeof(gcmemnode));", "parent": 74, "children": [90, 91], "start_point": {"row": 14, "column": 2}, "end_point": {"row": 14, "column": 48}}, {"id": 90, "type": "type_identifier", "text": "gcmemnode", "parent": 89, "children": [], "start_point": {"row": 14, "column": 2}, "end_point": {"row": 14, "column": 11}}, {"id": 91, "type": "init_declarator", "text": "*gmnode = malloc(sizeof(gcmemnode))", "parent": 89, "children": [92, 95, 96], "start_point": {"row": 14, "column": 12}, "end_point": {"row": 14, "column": 47}}, {"id": 92, "type": "pointer_declarator", "text": "*gmnode", "parent": 91, "children": [93, 94], "start_point": {"row": 14, "column": 12}, "end_point": {"row": 14, "column": 19}}, {"id": 93, "type": "*", "text": "*", "parent": 92, "children": [], "start_point": {"row": 14, "column": 12}, "end_point": {"row": 14, "column": 13}}, {"id": 94, "type": "identifier", "text": "gmnode", "parent": 92, "children": [], "start_point": {"row": 14, "column": 13}, "end_point": {"row": 14, "column": 19}}, {"id": 95, "type": "=", "text": "=", "parent": 91, "children": [], "start_point": {"row": 14, "column": 20}, "end_point": {"row": 14, "column": 21}}, {"id": 96, "type": "call_expression", "text": "malloc(sizeof(gcmemnode))", "parent": 91, "children": [97, 98], "start_point": {"row": 14, "column": 22}, "end_point": {"row": 14, "column": 47}}, {"id": 97, "type": "identifier", "text": "malloc", "parent": 96, "children": [], "start_point": {"row": 14, "column": 22}, "end_point": {"row": 14, "column": 28}}, {"id": 98, "type": "argument_list", "text": "(sizeof(gcmemnode))", "parent": 96, "children": [99], "start_point": {"row": 14, "column": 28}, "end_point": {"row": 14, "column": 47}}, {"id": 99, "type": "sizeof_expression", "text": "sizeof(gcmemnode)", "parent": 98, "children": [100], "start_point": {"row": 14, "column": 29}, "end_point": {"row": 14, "column": 46}}, {"id": 100, "type": "parenthesized_expression", "text": "(gcmemnode)", "parent": 99, "children": [101], "start_point": {"row": 14, "column": 35}, "end_point": {"row": 14, "column": 46}}, {"id": 101, "type": "identifier", "text": "gcmemnode", "parent": 100, "children": [], "start_point": {"row": 14, "column": 36}, "end_point": {"row": 14, "column": 45}}, {"id": 102, "type": "if_statement", "text": "if (gmnode == NULL){\n }", "parent": 74, "children": [103], "start_point": {"row": 15, "column": 2}, "end_point": {"row": 16, "column": 3}}, {"id": 103, "type": "parenthesized_expression", "text": "(gmnode == NULL)", "parent": 102, "children": [104], "start_point": {"row": 15, "column": 5}, "end_point": {"row": 15, "column": 21}}, {"id": 104, "type": "binary_expression", "text": "gmnode == NULL", "parent": 103, "children": [105, 106, 107], "start_point": {"row": 15, "column": 6}, "end_point": {"row": 15, "column": 20}}, {"id": 105, "type": "identifier", "text": "gmnode", "parent": 104, "children": [], "start_point": {"row": 15, "column": 6}, "end_point": {"row": 15, "column": 12}}, {"id": 106, "type": "==", "text": "==", "parent": 104, "children": [], "start_point": {"row": 15, "column": 13}, "end_point": {"row": 15, "column": 15}}, {"id": 107, "type": "null", "text": "NULL", "parent": 104, "children": [108], "start_point": {"row": 15, "column": 16}, "end_point": {"row": 15, "column": 20}}, {"id": 108, "type": "NULL", "text": "NULL", "parent": 107, "children": [], "start_point": {"row": 15, "column": 16}, "end_point": {"row": 15, "column": 20}}, {"id": 109, "type": "declaration", "text": "uint8_t *gmnodeseq = malloc(sizeof(uint8_t) * size);", "parent": 74, "children": [110, 111], "start_point": {"row": 17, "column": 2}, "end_point": {"row": 17, "column": 54}}, {"id": 110, "type": "primitive_type", "text": "uint8_t", "parent": 109, "children": [], "start_point": {"row": 17, "column": 2}, "end_point": {"row": 17, "column": 9}}, {"id": 111, "type": "init_declarator", "text": "*gmnodeseq = malloc(sizeof(uint8_t) * size)", "parent": 109, "children": [112, 115, 116], "start_point": {"row": 17, "column": 10}, "end_point": {"row": 17, "column": 53}}, {"id": 112, "type": "pointer_declarator", "text": "*gmnodeseq", "parent": 111, "children": [113, 114], "start_point": {"row": 17, "column": 10}, "end_point": {"row": 17, "column": 20}}, {"id": 113, "type": "*", "text": "*", "parent": 112, "children": [], "start_point": {"row": 17, "column": 10}, "end_point": {"row": 17, "column": 11}}, {"id": 114, "type": "identifier", "text": "gmnodeseq", "parent": 112, "children": [], "start_point": {"row": 17, "column": 11}, "end_point": {"row": 17, "column": 20}}, {"id": 115, "type": "=", "text": "=", "parent": 111, "children": [], "start_point": {"row": 17, "column": 21}, "end_point": {"row": 17, "column": 22}}, {"id": 116, "type": "call_expression", "text": "malloc(sizeof(uint8_t) * size)", "parent": 111, "children": [117, 118], "start_point": {"row": 17, "column": 23}, "end_point": {"row": 17, "column": 53}}, {"id": 117, "type": "identifier", "text": "malloc", "parent": 116, "children": [], "start_point": {"row": 17, "column": 23}, "end_point": {"row": 17, "column": 29}}, {"id": 118, "type": "argument_list", "text": "(sizeof(uint8_t) * size)", "parent": 116, "children": [119], "start_point": {"row": 17, "column": 29}, "end_point": {"row": 17, "column": 53}}, {"id": 119, "type": "binary_expression", "text": "sizeof(uint8_t) * size", "parent": 118, "children": [120, 123, 124], "start_point": {"row": 17, "column": 30}, "end_point": {"row": 17, "column": 52}}, {"id": 120, "type": "sizeof_expression", "text": "sizeof(uint8_t)", "parent": 119, "children": [121], "start_point": {"row": 17, "column": 30}, "end_point": {"row": 17, "column": 45}}, {"id": 121, "type": "type_descriptor", "text": "uint8_t", "parent": 120, "children": [122], "start_point": {"row": 17, "column": 37}, "end_point": {"row": 17, "column": 44}}, {"id": 122, "type": "primitive_type", "text": "uint8_t", "parent": 121, "children": [], "start_point": {"row": 17, "column": 37}, "end_point": {"row": 17, "column": 44}}, {"id": 123, "type": "*", "text": "*", "parent": 119, "children": [], "start_point": {"row": 17, "column": 46}, "end_point": {"row": 17, "column": 47}}, {"id": 124, "type": "identifier", "text": "size", "parent": 119, "children": [], "start_point": {"row": 17, "column": 48}, "end_point": {"row": 17, "column": 52}}, {"id": 125, "type": "if_statement", "text": "if (gmnodeseq == NULL){\n }", "parent": 74, "children": [126], "start_point": {"row": 18, "column": 2}, "end_point": {"row": 19, "column": 3}}, {"id": 126, "type": "parenthesized_expression", "text": "(gmnodeseq == NULL)", "parent": 125, "children": [127], "start_point": {"row": 18, "column": 5}, "end_point": {"row": 18, "column": 24}}, {"id": 127, "type": "binary_expression", "text": "gmnodeseq == NULL", "parent": 126, "children": [128, 129, 130], "start_point": {"row": 18, "column": 6}, "end_point": {"row": 18, "column": 23}}, {"id": 128, "type": "identifier", "text": "gmnodeseq", "parent": 127, "children": [], "start_point": {"row": 18, "column": 6}, "end_point": {"row": 18, "column": 15}}, {"id": 129, "type": "==", "text": "==", "parent": 127, "children": [], "start_point": {"row": 18, "column": 16}, "end_point": {"row": 18, "column": 18}}, {"id": 130, "type": "null", "text": "NULL", "parent": 127, "children": [131], "start_point": {"row": 18, "column": 19}, "end_point": {"row": 18, "column": 23}}, {"id": 131, "type": "NULL", "text": "NULL", "parent": 130, "children": [], "start_point": {"row": 18, "column": 19}, "end_point": {"row": 18, "column": 23}}, {"id": 132, "type": "declaration", "text": "bitarray *reservemask = make_bitarray(size);", "parent": 74, "children": [133, 134], "start_point": {"row": 20, "column": 2}, "end_point": {"row": 20, "column": 46}}, {"id": 133, "type": "type_identifier", "text": "bitarray", "parent": 132, "children": [], "start_point": {"row": 20, "column": 2}, "end_point": {"row": 20, "column": 10}}, {"id": 134, "type": "init_declarator", "text": "*reservemask = make_bitarray(size)", "parent": 132, "children": [135, 138, 139], "start_point": {"row": 20, "column": 11}, "end_point": {"row": 20, "column": 45}}, {"id": 135, "type": "pointer_declarator", "text": "*reservemask", "parent": 134, "children": [136, 137], "start_point": {"row": 20, "column": 11}, "end_point": {"row": 20, "column": 23}}, {"id": 136, "type": "*", "text": "*", "parent": 135, "children": [], "start_point": {"row": 20, "column": 11}, "end_point": {"row": 20, "column": 12}}, {"id": 137, "type": "identifier", "text": "reservemask", "parent": 135, "children": [], "start_point": {"row": 20, "column": 12}, "end_point": {"row": 20, "column": 23}}, {"id": 138, "type": "=", "text": "=", "parent": 134, "children": [], "start_point": {"row": 20, "column": 24}, "end_point": {"row": 20, "column": 25}}, {"id": 139, "type": "call_expression", "text": "make_bitarray(size)", "parent": 134, "children": [140, 141], "start_point": {"row": 20, "column": 26}, "end_point": {"row": 20, "column": 45}}, {"id": 140, "type": "identifier", "text": "make_bitarray", "parent": 139, "children": [], "start_point": {"row": 20, "column": 26}, "end_point": {"row": 20, "column": 39}}, {"id": 141, "type": "argument_list", "text": "(size)", "parent": 139, "children": [142], "start_point": {"row": 20, "column": 39}, "end_point": {"row": 20, "column": 45}}, {"id": 142, "type": "identifier", "text": "size", "parent": 141, "children": [], "start_point": {"row": 20, "column": 40}, "end_point": {"row": 20, "column": 44}}, {"id": 143, "type": "if_statement", "text": "if (reservemask == NULL){\n }", "parent": 74, "children": [144], "start_point": {"row": 21, "column": 2}, "end_point": {"row": 22, "column": 3}}, {"id": 144, "type": "parenthesized_expression", "text": "(reservemask == NULL)", "parent": 143, "children": [145], "start_point": {"row": 21, "column": 5}, "end_point": {"row": 21, "column": 26}}, {"id": 145, "type": "binary_expression", "text": "reservemask == NULL", "parent": 144, "children": [146, 147, 148], "start_point": {"row": 21, "column": 6}, "end_point": {"row": 21, "column": 25}}, {"id": 146, "type": "identifier", "text": "reservemask", "parent": 145, "children": [], "start_point": {"row": 21, "column": 6}, "end_point": {"row": 21, "column": 17}}, {"id": 147, "type": "==", "text": "==", "parent": 145, "children": [], "start_point": {"row": 21, "column": 18}, "end_point": {"row": 21, "column": 20}}, {"id": 148, "type": "null", "text": "NULL", "parent": 145, "children": [149], "start_point": {"row": 21, "column": 21}, "end_point": {"row": 21, "column": 25}}, {"id": 149, "type": "NULL", "text": "NULL", "parent": 148, "children": [], "start_point": {"row": 21, "column": 21}, "end_point": {"row": 21, "column": 25}}, {"id": 150, "type": "declaration", "text": "bitarray *gcmarks = make_bitarray(size);", "parent": 74, "children": [151, 152], "start_point": {"row": 23, "column": 2}, "end_point": {"row": 23, "column": 42}}, {"id": 151, "type": "type_identifier", "text": "bitarray", "parent": 150, "children": [], "start_point": {"row": 23, "column": 2}, "end_point": {"row": 23, "column": 10}}, {"id": 152, "type": "init_declarator", "text": "*gcmarks = make_bitarray(size)", "parent": 150, "children": [153, 156, 157], "start_point": {"row": 23, "column": 11}, "end_point": {"row": 23, "column": 41}}, {"id": 153, "type": "pointer_declarator", "text": "*gcmarks", "parent": 152, "children": [154, 155], "start_point": {"row": 23, "column": 11}, "end_point": {"row": 23, "column": 19}}, {"id": 154, "type": "*", "text": "*", "parent": 153, "children": [], "start_point": {"row": 23, "column": 11}, "end_point": {"row": 23, "column": 12}}, {"id": 155, "type": "identifier", "text": "gcmarks", "parent": 153, "children": [], "start_point": {"row": 23, "column": 12}, "end_point": {"row": 23, "column": 19}}, {"id": 156, "type": "=", "text": "=", "parent": 152, "children": [], "start_point": {"row": 23, "column": 20}, "end_point": {"row": 23, "column": 21}}, {"id": 157, "type": "call_expression", "text": "make_bitarray(size)", "parent": 152, "children": [158, 159], "start_point": {"row": 23, "column": 22}, "end_point": {"row": 23, "column": 41}}, {"id": 158, "type": "identifier", "text": "make_bitarray", "parent": 157, "children": [], "start_point": {"row": 23, "column": 22}, "end_point": {"row": 23, "column": 35}}, {"id": 159, "type": "argument_list", "text": "(size)", "parent": 157, "children": [160], "start_point": {"row": 23, "column": 35}, "end_point": {"row": 23, "column": 41}}, {"id": 160, "type": "identifier", "text": "size", "parent": 159, "children": [], "start_point": {"row": 23, "column": 36}, "end_point": {"row": 23, "column": 40}}, {"id": 161, "type": "if_statement", "text": "if (gcmarks == NULL){\n }", "parent": 74, "children": [162], "start_point": {"row": 24, "column": 2}, "end_point": {"row": 25, "column": 3}}, {"id": 162, "type": "parenthesized_expression", "text": "(gcmarks == NULL)", "parent": 161, "children": [163], "start_point": {"row": 24, "column": 5}, "end_point": {"row": 24, "column": 22}}, {"id": 163, "type": "binary_expression", "text": "gcmarks == NULL", "parent": 162, "children": [164, 165, 166], "start_point": {"row": 24, "column": 6}, "end_point": {"row": 24, "column": 21}}, {"id": 164, "type": "identifier", "text": "gcmarks", "parent": 163, "children": [], "start_point": {"row": 24, "column": 6}, "end_point": {"row": 24, "column": 13}}, {"id": 165, "type": "==", "text": "==", "parent": 163, "children": [], "start_point": {"row": 24, "column": 14}, "end_point": {"row": 24, "column": 16}}, {"id": 166, "type": "null", "text": "NULL", "parent": 163, "children": [167], "start_point": {"row": 24, "column": 17}, "end_point": {"row": 24, "column": 21}}, {"id": 167, "type": "NULL", "text": "NULL", "parent": 166, "children": [], "start_point": {"row": 24, "column": 17}, "end_point": {"row": 24, "column": 21}}, {"id": 168, "type": "call_expression", "text": "gcmemnode_init(gmnodeseq, size, reservemask, gcmarks, nextnode, gmnode)", "parent": 74, "children": [169, 170], "start_point": {"row": 26, "column": 2}, "end_point": {"row": 26, "column": 73}}, {"id": 169, "type": "identifier", "text": "gcmemnode_init", "parent": 168, "children": [], "start_point": {"row": 26, "column": 2}, "end_point": {"row": 26, "column": 16}}, {"id": 170, "type": "argument_list", "text": "(gmnodeseq, size, reservemask, gcmarks, nextnode, gmnode)", "parent": 168, "children": [171, 172, 173, 174, 175, 176], "start_point": {"row": 26, "column": 16}, "end_point": {"row": 26, "column": 73}}, {"id": 171, "type": "identifier", "text": "gmnodeseq", "parent": 170, "children": [], "start_point": {"row": 26, "column": 17}, "end_point": {"row": 26, "column": 26}}, {"id": 172, "type": "identifier", "text": "size", "parent": 170, "children": [], "start_point": {"row": 26, "column": 28}, "end_point": {"row": 26, "column": 32}}, {"id": 173, "type": "identifier", "text": "reservemask", "parent": 170, "children": [], "start_point": {"row": 26, "column": 34}, "end_point": {"row": 26, "column": 45}}, {"id": 174, "type": "identifier", "text": "gcmarks", "parent": 170, "children": [], "start_point": {"row": 26, "column": 47}, "end_point": {"row": 26, "column": 54}}, {"id": 175, "type": "identifier", "text": "nextnode", "parent": 170, "children": [], "start_point": {"row": 26, "column": 56}, "end_point": {"row": 26, "column": 64}}, {"id": 176, "type": "identifier", "text": "gmnode", "parent": 170, "children": [], "start_point": {"row": 26, "column": 66}, "end_point": {"row": 26, "column": 72}}, {"id": 177, "type": "return_statement", "text": "return gmnode;", "parent": 74, "children": [178], "start_point": {"row": 27, "column": 2}, "end_point": {"row": 27, "column": 16}}, {"id": 178, "type": "identifier", "text": "gmnode", "parent": 177, "children": [], "start_point": {"row": 27, "column": 9}, "end_point": {"row": 27, "column": 15}}, {"id": 179, "type": "function_definition", "text": "void free_gcmemnode (gcmemnode *gmnode){\n free_bitarray(gmnode->memnode.reservemask);\n free_bitarray(gmnode->gcmarks);\n free(gmnode->memnode.sequence);\n free(gmnode);\n}", "parent": null, "children": [180, 181], "start_point": {"row": 30, "column": 0}, "end_point": {"row": 35, "column": 1}}, {"id": 180, "type": "primitive_type", "text": "void", "parent": 179, "children": [], "start_point": {"row": 30, "column": 0}, "end_point": {"row": 30, "column": 4}}, {"id": 181, "type": "function_declarator", "text": "free_gcmemnode (gcmemnode *gmnode)", "parent": 179, "children": [182, 183], "start_point": {"row": 30, "column": 5}, "end_point": {"row": 30, "column": 39}}, {"id": 182, "type": "identifier", "text": "free_gcmemnode", "parent": 181, "children": [], "start_point": {"row": 30, "column": 5}, "end_point": {"row": 30, "column": 19}}, {"id": 183, "type": "parameter_list", "text": "(gcmemnode *gmnode)", "parent": 181, "children": [184], "start_point": {"row": 30, "column": 20}, "end_point": {"row": 30, "column": 39}}, {"id": 184, "type": "parameter_declaration", "text": "gcmemnode *gmnode", "parent": 183, "children": [185, 186], "start_point": {"row": 30, "column": 21}, "end_point": {"row": 30, "column": 38}}, {"id": 185, "type": "type_identifier", "text": "gcmemnode", "parent": 184, "children": [], "start_point": {"row": 30, "column": 21}, "end_point": {"row": 30, "column": 30}}, {"id": 186, "type": "pointer_declarator", "text": "*gmnode", "parent": 184, "children": [187, 188], "start_point": {"row": 30, "column": 31}, "end_point": {"row": 30, "column": 38}}, {"id": 187, "type": "*", "text": "*", "parent": 186, "children": [], "start_point": {"row": 30, "column": 31}, "end_point": {"row": 30, "column": 32}}, {"id": 188, "type": "identifier", "text": "gmnode", "parent": 186, "children": [], "start_point": {"row": 30, "column": 32}, "end_point": {"row": 30, "column": 38}}, {"id": 189, "type": "call_expression", "text": "free_bitarray(gmnode->memnode.reservemask)", "parent": 179, "children": [190, 191], "start_point": {"row": 31, "column": 2}, "end_point": {"row": 31, "column": 44}}, {"id": 190, "type": "identifier", "text": "free_bitarray", "parent": 189, "children": [], "start_point": {"row": 31, "column": 2}, "end_point": {"row": 31, "column": 15}}, {"id": 191, "type": "argument_list", "text": "(gmnode->memnode.reservemask)", "parent": 189, "children": [192], "start_point": {"row": 31, "column": 15}, "end_point": {"row": 31, "column": 44}}, {"id": 192, "type": "field_expression", "text": "gmnode->memnode.reservemask", "parent": 191, "children": [193, 196], "start_point": {"row": 31, "column": 16}, "end_point": {"row": 31, "column": 43}}, {"id": 193, "type": "field_expression", "text": "gmnode->memnode", "parent": 192, "children": [194, 195], "start_point": {"row": 31, "column": 16}, "end_point": {"row": 31, "column": 31}}, {"id": 194, "type": "identifier", "text": "gmnode", "parent": 193, "children": [], "start_point": {"row": 31, "column": 16}, "end_point": {"row": 31, "column": 22}}, {"id": 195, "type": "field_identifier", "text": "memnode", "parent": 193, "children": [], "start_point": {"row": 31, "column": 24}, "end_point": {"row": 31, "column": 31}}, {"id": 196, "type": "field_identifier", "text": "reservemask", "parent": 192, "children": [], "start_point": {"row": 31, "column": 32}, "end_point": {"row": 31, "column": 43}}, {"id": 197, "type": "call_expression", "text": "free_bitarray(gmnode->gcmarks)", "parent": 179, "children": [198, 199], "start_point": {"row": 32, "column": 2}, "end_point": {"row": 32, "column": 32}}, {"id": 198, "type": "identifier", "text": "free_bitarray", "parent": 197, "children": [], "start_point": {"row": 32, "column": 2}, "end_point": {"row": 32, "column": 15}}, {"id": 199, "type": "argument_list", "text": "(gmnode->gcmarks)", "parent": 197, "children": [200], "start_point": {"row": 32, "column": 15}, "end_point": {"row": 32, "column": 32}}, {"id": 200, "type": "field_expression", "text": "gmnode->gcmarks", "parent": 199, "children": [201, 202], "start_point": {"row": 32, "column": 16}, "end_point": {"row": 32, "column": 31}}, {"id": 201, "type": "identifier", "text": "gmnode", "parent": 200, "children": [], "start_point": {"row": 32, "column": 16}, "end_point": {"row": 32, "column": 22}}, {"id": 202, "type": "field_identifier", "text": "gcmarks", "parent": 200, "children": [], "start_point": {"row": 32, "column": 24}, "end_point": {"row": 32, "column": 31}}, {"id": 203, "type": "call_expression", "text": "free(gmnode->memnode.sequence)", "parent": 179, "children": [204, 205], "start_point": {"row": 33, "column": 2}, "end_point": {"row": 33, "column": 32}}, {"id": 204, "type": "identifier", "text": "free", "parent": 203, "children": [], "start_point": {"row": 33, "column": 2}, "end_point": {"row": 33, "column": 6}}, {"id": 205, "type": "argument_list", "text": "(gmnode->memnode.sequence)", "parent": 203, "children": [206], "start_point": {"row": 33, "column": 6}, "end_point": {"row": 33, "column": 32}}, {"id": 206, "type": "field_expression", "text": "gmnode->memnode.sequence", "parent": 205, "children": [207, 210], "start_point": {"row": 33, "column": 7}, "end_point": {"row": 33, "column": 31}}, {"id": 207, "type": "field_expression", "text": "gmnode->memnode", "parent": 206, "children": [208, 209], "start_point": {"row": 33, "column": 7}, "end_point": {"row": 33, "column": 22}}, {"id": 208, "type": "identifier", "text": "gmnode", "parent": 207, "children": [], "start_point": {"row": 33, "column": 7}, "end_point": {"row": 33, "column": 13}}, {"id": 209, "type": "field_identifier", "text": "memnode", "parent": 207, "children": [], "start_point": {"row": 33, "column": 15}, "end_point": {"row": 33, "column": 22}}, {"id": 210, "type": "field_identifier", "text": "sequence", "parent": 206, "children": [], "start_point": {"row": 33, "column": 23}, "end_point": {"row": 33, "column": 31}}, {"id": 211, "type": "call_expression", "text": "free(gmnode)", "parent": 179, "children": [212, 213], "start_point": {"row": 34, "column": 2}, "end_point": {"row": 34, "column": 14}}, {"id": 212, "type": "identifier", "text": "free", "parent": 211, "children": [], "start_point": {"row": 34, "column": 2}, "end_point": {"row": 34, "column": 6}}, {"id": 213, "type": "argument_list", "text": "(gmnode)", "parent": 211, "children": [214], "start_point": {"row": 34, "column": 6}, "end_point": {"row": 34, "column": 14}}, {"id": 214, "type": "identifier", "text": "gmnode", "parent": 213, "children": [], "start_point": {"row": 34, "column": 7}, "end_point": {"row": 34, "column": 13}}, {"id": 215, "type": "function_definition", "text": "void free_gcmemnode_all (gcmemnode *gmnode){\n gcmemnode *gmnd = gmnode;\n while (gmnd != NULL){\n gcmemnode *nextnode = gcmemnode_next(gmnd);\n free_gcmemnode(gmnd);\n gmnd = nextnode;\n }\n}", "parent": null, "children": [216, 217], "start_point": {"row": 37, "column": 0}, "end_point": {"row": 44, "column": 1}}, {"id": 216, "type": "primitive_type", "text": "void", "parent": 215, "children": [], "start_point": {"row": 37, "column": 0}, "end_point": {"row": 37, "column": 4}}, {"id": 217, "type": "function_declarator", "text": "free_gcmemnode_all (gcmemnode *gmnode)", "parent": 215, "children": [218, 219], "start_point": {"row": 37, "column": 5}, "end_point": {"row": 37, "column": 43}}, {"id": 218, "type": "identifier", "text": "free_gcmemnode_all", "parent": 217, "children": [], "start_point": {"row": 37, "column": 5}, "end_point": {"row": 37, "column": 23}}, {"id": 219, "type": "parameter_list", "text": "(gcmemnode *gmnode)", "parent": 217, "children": [220], "start_point": {"row": 37, "column": 24}, "end_point": {"row": 37, "column": 43}}, {"id": 220, "type": "parameter_declaration", "text": "gcmemnode *gmnode", "parent": 219, "children": [221, 222], "start_point": {"row": 37, "column": 25}, "end_point": {"row": 37, "column": 42}}, {"id": 221, "type": "type_identifier", "text": "gcmemnode", "parent": 220, "children": [], "start_point": {"row": 37, "column": 25}, "end_point": {"row": 37, "column": 34}}, {"id": 222, "type": "pointer_declarator", "text": "*gmnode", "parent": 220, "children": [223, 224], "start_point": {"row": 37, "column": 35}, "end_point": {"row": 37, "column": 42}}, {"id": 223, "type": "*", "text": "*", "parent": 222, "children": [], "start_point": {"row": 37, "column": 35}, "end_point": {"row": 37, "column": 36}}, {"id": 224, "type": "identifier", "text": "gmnode", "parent": 222, "children": [], "start_point": {"row": 37, "column": 36}, "end_point": {"row": 37, "column": 42}}, {"id": 225, "type": "declaration", "text": "gcmemnode *gmnd = gmnode;", "parent": 215, "children": [226, 227], "start_point": {"row": 38, "column": 2}, "end_point": {"row": 38, "column": 27}}, {"id": 226, "type": "type_identifier", "text": "gcmemnode", "parent": 225, "children": [], "start_point": {"row": 38, "column": 2}, "end_point": {"row": 38, "column": 11}}, {"id": 227, "type": "init_declarator", "text": "*gmnd = gmnode", "parent": 225, "children": [228, 231, 232], "start_point": {"row": 38, "column": 12}, "end_point": {"row": 38, "column": 26}}, {"id": 228, "type": "pointer_declarator", "text": "*gmnd", "parent": 227, "children": [229, 230], "start_point": {"row": 38, "column": 12}, "end_point": {"row": 38, "column": 17}}, {"id": 229, "type": "*", "text": "*", "parent": 228, "children": [], "start_point": {"row": 38, "column": 12}, "end_point": {"row": 38, "column": 13}}, {"id": 230, "type": "identifier", "text": "gmnd", "parent": 228, "children": [], "start_point": {"row": 38, "column": 13}, "end_point": {"row": 38, "column": 17}}, {"id": 231, "type": "=", "text": "=", "parent": 227, "children": [], "start_point": {"row": 38, "column": 18}, "end_point": {"row": 38, "column": 19}}, {"id": 232, "type": "identifier", "text": "gmnode", "parent": 227, "children": [], "start_point": {"row": 38, "column": 20}, "end_point": {"row": 38, "column": 26}}, {"id": 233, "type": "while_statement", "text": "while (gmnd != NULL){\n gcmemnode *nextnode = gcmemnode_next(gmnd);\n free_gcmemnode(gmnd);\n gmnd = nextnode;\n }", "parent": 215, "children": [234], "start_point": {"row": 39, "column": 2}, "end_point": {"row": 43, "column": 3}}, {"id": 234, "type": "parenthesized_expression", "text": "(gmnd != NULL)", "parent": 233, "children": [235], "start_point": {"row": 39, "column": 8}, "end_point": {"row": 39, "column": 22}}, {"id": 235, "type": "binary_expression", "text": "gmnd != NULL", "parent": 234, "children": [236, 237, 238], "start_point": {"row": 39, "column": 9}, "end_point": {"row": 39, "column": 21}}, {"id": 236, "type": "identifier", "text": "gmnd", "parent": 235, "children": [], "start_point": {"row": 39, "column": 9}, "end_point": {"row": 39, "column": 13}}, {"id": 237, "type": "!=", "text": "!=", "parent": 235, "children": [], "start_point": {"row": 39, "column": 14}, "end_point": {"row": 39, "column": 16}}, {"id": 238, "type": "null", "text": "NULL", "parent": 235, "children": [239], "start_point": {"row": 39, "column": 17}, "end_point": {"row": 39, "column": 21}}, {"id": 239, "type": "NULL", "text": "NULL", "parent": 238, "children": [], "start_point": {"row": 39, "column": 17}, "end_point": {"row": 39, "column": 21}}, {"id": 240, "type": "declaration", "text": "gcmemnode *nextnode = gcmemnode_next(gmnd);", "parent": 233, "children": [241, 242], "start_point": {"row": 40, "column": 4}, "end_point": {"row": 40, "column": 47}}, {"id": 241, "type": "type_identifier", "text": "gcmemnode", "parent": 240, "children": [], "start_point": {"row": 40, "column": 4}, "end_point": {"row": 40, "column": 13}}, {"id": 242, "type": "init_declarator", "text": "*nextnode = gcmemnode_next(gmnd)", "parent": 240, "children": [243, 246, 247], "start_point": {"row": 40, "column": 14}, "end_point": {"row": 40, "column": 46}}, {"id": 243, "type": "pointer_declarator", "text": "*nextnode", "parent": 242, "children": [244, 245], "start_point": {"row": 40, "column": 14}, "end_point": {"row": 40, "column": 23}}, {"id": 244, "type": "*", "text": "*", "parent": 243, "children": [], "start_point": {"row": 40, "column": 14}, "end_point": {"row": 40, "column": 15}}, {"id": 245, "type": "identifier", "text": "nextnode", "parent": 243, "children": [], "start_point": {"row": 40, "column": 15}, "end_point": {"row": 40, "column": 23}}, {"id": 246, "type": "=", "text": "=", "parent": 242, "children": [], "start_point": {"row": 40, "column": 24}, "end_point": {"row": 40, "column": 25}}, {"id": 247, "type": "call_expression", "text": "gcmemnode_next(gmnd)", "parent": 242, "children": [248, 249], "start_point": {"row": 40, "column": 26}, "end_point": {"row": 40, "column": 46}}, {"id": 248, "type": "identifier", "text": "gcmemnode_next", "parent": 247, "children": [], "start_point": {"row": 40, "column": 26}, "end_point": {"row": 40, "column": 40}}, {"id": 249, "type": "argument_list", "text": "(gmnd)", "parent": 247, "children": [250], "start_point": {"row": 40, "column": 40}, "end_point": {"row": 40, "column": 46}}, {"id": 250, "type": "identifier", "text": "gmnd", "parent": 249, "children": [], "start_point": {"row": 40, "column": 41}, "end_point": {"row": 40, "column": 45}}, {"id": 251, "type": "call_expression", "text": "free_gcmemnode(gmnd)", "parent": 233, "children": [252, 253], "start_point": {"row": 41, "column": 4}, "end_point": {"row": 41, "column": 24}}, {"id": 252, "type": "identifier", "text": "free_gcmemnode", "parent": 251, "children": [], "start_point": {"row": 41, "column": 4}, "end_point": {"row": 41, "column": 18}}, {"id": 253, "type": "argument_list", "text": "(gmnd)", "parent": 251, "children": [254], "start_point": {"row": 41, "column": 18}, "end_point": {"row": 41, "column": 24}}, {"id": 254, "type": "identifier", "text": "gmnd", "parent": 253, "children": [], "start_point": {"row": 41, "column": 19}, "end_point": {"row": 41, "column": 23}}, {"id": 255, "type": "assignment_expression", "text": "gmnd = nextnode", "parent": 233, "children": [256, 257, 258], "start_point": {"row": 42, "column": 4}, "end_point": {"row": 42, "column": 19}}, {"id": 256, "type": "identifier", "text": "gmnd", "parent": 255, "children": [], "start_point": {"row": 42, "column": 4}, "end_point": {"row": 42, "column": 8}}, {"id": 257, "type": "=", "text": "=", "parent": 255, "children": [], "start_point": {"row": 42, "column": 9}, "end_point": {"row": 42, "column": 10}}, {"id": 258, "type": "identifier", "text": "nextnode", "parent": 255, "children": [], "start_point": {"row": 42, "column": 11}, "end_point": {"row": 42, "column": 19}}, {"id": 259, "type": "function_definition", "text": "memnode *gcmemnode_memnode (gcmemnode *gmnode){\n return &(gmnode->memnode);\n}", "parent": null, "children": [260, 261], "start_point": {"row": 46, "column": 0}, "end_point": {"row": 48, "column": 1}}, {"id": 260, "type": "type_identifier", "text": "memnode", "parent": 259, "children": [], "start_point": {"row": 46, "column": 0}, "end_point": {"row": 46, "column": 7}}, {"id": 261, "type": "pointer_declarator", "text": "*gcmemnode_memnode (gcmemnode *gmnode)", "parent": 259, "children": [262, 263], "start_point": {"row": 46, "column": 8}, "end_point": {"row": 46, "column": 46}}, {"id": 262, "type": "*", "text": "*", "parent": 261, "children": [], "start_point": {"row": 46, "column": 8}, "end_point": {"row": 46, "column": 9}}, {"id": 263, "type": "function_declarator", "text": "gcmemnode_memnode (gcmemnode *gmnode)", "parent": 261, "children": [264, 265], "start_point": {"row": 46, "column": 9}, "end_point": {"row": 46, "column": 46}}, {"id": 264, "type": "identifier", "text": "gcmemnode_memnode", "parent": 263, "children": [], "start_point": {"row": 46, "column": 9}, "end_point": {"row": 46, "column": 26}}, {"id": 265, "type": "parameter_list", "text": "(gcmemnode *gmnode)", "parent": 263, "children": [266], "start_point": {"row": 46, "column": 27}, "end_point": {"row": 46, "column": 46}}, {"id": 266, "type": "parameter_declaration", "text": "gcmemnode *gmnode", "parent": 265, "children": [267, 268], "start_point": {"row": 46, "column": 28}, "end_point": {"row": 46, "column": 45}}, {"id": 267, "type": "type_identifier", "text": "gcmemnode", "parent": 266, "children": [], "start_point": {"row": 46, "column": 28}, "end_point": {"row": 46, "column": 37}}, {"id": 268, "type": "pointer_declarator", "text": "*gmnode", "parent": 266, "children": [269, 270], "start_point": {"row": 46, "column": 38}, "end_point": {"row": 46, "column": 45}}, {"id": 269, "type": "*", "text": "*", "parent": 268, "children": [], "start_point": {"row": 46, "column": 38}, "end_point": {"row": 46, "column": 39}}, {"id": 270, "type": "identifier", "text": "gmnode", "parent": 268, "children": [], "start_point": {"row": 46, "column": 39}, "end_point": {"row": 46, "column": 45}}, {"id": 271, "type": "return_statement", "text": "return &(gmnode->memnode);", "parent": 259, "children": [272], "start_point": {"row": 47, "column": 2}, "end_point": {"row": 47, "column": 28}}, {"id": 272, "type": "pointer_expression", "text": "&(gmnode->memnode)", "parent": 271, "children": [273], "start_point": {"row": 47, "column": 9}, "end_point": {"row": 47, "column": 27}}, {"id": 273, "type": "parenthesized_expression", "text": "(gmnode->memnode)", "parent": 272, "children": [274], "start_point": {"row": 47, "column": 10}, "end_point": {"row": 47, "column": 27}}, {"id": 274, "type": "field_expression", "text": "gmnode->memnode", "parent": 273, "children": [275, 276], "start_point": {"row": 47, "column": 11}, "end_point": {"row": 47, "column": 26}}, {"id": 275, "type": "identifier", "text": "gmnode", "parent": 274, "children": [], "start_point": {"row": 47, "column": 11}, "end_point": {"row": 47, "column": 17}}, {"id": 276, "type": "field_identifier", "text": "memnode", "parent": 274, "children": [], "start_point": {"row": 47, "column": 19}, "end_point": {"row": 47, "column": 26}}, {"id": 277, "type": "function_definition", "text": "gcmemnode *gcmemnode_next (gcmemnode *gmnode){\n return (gcmemnode*)gcmemnode_memnode(gmnode)->nextnode;\n}", "parent": null, "children": [278, 279], "start_point": {"row": 50, "column": 0}, "end_point": {"row": 52, "column": 1}}, {"id": 278, "type": "type_identifier", "text": "gcmemnode", "parent": 277, "children": [], "start_point": {"row": 50, "column": 0}, "end_point": {"row": 50, "column": 9}}, {"id": 279, "type": "pointer_declarator", "text": "*gcmemnode_next (gcmemnode *gmnode)", "parent": 277, "children": [280, 281], "start_point": {"row": 50, "column": 10}, "end_point": {"row": 50, "column": 45}}, {"id": 280, "type": "*", "text": "*", "parent": 279, "children": [], "start_point": {"row": 50, "column": 10}, "end_point": {"row": 50, "column": 11}}, {"id": 281, "type": "function_declarator", "text": "gcmemnode_next (gcmemnode *gmnode)", "parent": 279, "children": [282, 283], "start_point": {"row": 50, "column": 11}, "end_point": {"row": 50, "column": 45}}, {"id": 282, "type": "identifier", "text": "gcmemnode_next", "parent": 281, "children": [], "start_point": {"row": 50, "column": 11}, "end_point": {"row": 50, "column": 25}}, {"id": 283, "type": "parameter_list", "text": "(gcmemnode *gmnode)", "parent": 281, "children": [284], "start_point": {"row": 50, "column": 26}, "end_point": {"row": 50, "column": 45}}, {"id": 284, "type": "parameter_declaration", "text": "gcmemnode *gmnode", "parent": 283, "children": [285, 286], "start_point": {"row": 50, "column": 27}, "end_point": {"row": 50, "column": 44}}, {"id": 285, "type": "type_identifier", "text": "gcmemnode", "parent": 284, "children": [], "start_point": {"row": 50, "column": 27}, "end_point": {"row": 50, "column": 36}}, {"id": 286, "type": "pointer_declarator", "text": "*gmnode", "parent": 284, "children": [287, 288], "start_point": {"row": 50, "column": 37}, "end_point": {"row": 50, "column": 44}}, {"id": 287, "type": "*", "text": "*", "parent": 286, "children": [], "start_point": {"row": 50, "column": 37}, "end_point": {"row": 50, "column": 38}}, {"id": 288, "type": "identifier", "text": "gmnode", "parent": 286, "children": [], "start_point": {"row": 50, "column": 38}, "end_point": {"row": 50, "column": 44}}, {"id": 289, "type": "return_statement", "text": "return (gcmemnode*)gcmemnode_memnode(gmnode)->nextnode;", "parent": 277, "children": [290], "start_point": {"row": 51, "column": 2}, "end_point": {"row": 51, "column": 57}}, {"id": 290, "type": "cast_expression", "text": "(gcmemnode*)gcmemnode_memnode(gmnode)->nextnode", "parent": 289, "children": [291, 295], "start_point": {"row": 51, "column": 9}, "end_point": {"row": 51, "column": 56}}, {"id": 291, "type": "type_descriptor", "text": "gcmemnode*", "parent": 290, "children": [292, 293], "start_point": {"row": 51, "column": 10}, "end_point": {"row": 51, "column": 20}}, {"id": 292, "type": "type_identifier", "text": "gcmemnode", "parent": 291, "children": [], "start_point": {"row": 51, "column": 10}, "end_point": {"row": 51, "column": 19}}, {"id": 293, "type": "abstract_pointer_declarator", "text": "*", "parent": 291, "children": [294], "start_point": {"row": 51, "column": 19}, "end_point": {"row": 51, "column": 20}}, {"id": 294, "type": "*", "text": "*", "parent": 293, "children": [], "start_point": {"row": 51, "column": 19}, "end_point": {"row": 51, "column": 20}}, {"id": 295, "type": "field_expression", "text": "gcmemnode_memnode(gmnode)->nextnode", "parent": 290, "children": [296, 300], "start_point": {"row": 51, "column": 21}, "end_point": {"row": 51, "column": 56}}, {"id": 296, "type": "call_expression", "text": "gcmemnode_memnode(gmnode)", "parent": 295, "children": [297, 298], "start_point": {"row": 51, "column": 21}, "end_point": {"row": 51, "column": 46}}, {"id": 297, "type": "identifier", "text": "gcmemnode_memnode", "parent": 296, "children": [], "start_point": {"row": 51, "column": 21}, "end_point": {"row": 51, "column": 38}}, {"id": 298, "type": "argument_list", "text": "(gmnode)", "parent": 296, "children": [299], "start_point": {"row": 51, "column": 38}, "end_point": {"row": 51, "column": 46}}, {"id": 299, "type": "identifier", "text": "gmnode", "parent": 298, "children": [], "start_point": {"row": 51, "column": 39}, "end_point": {"row": 51, "column": 45}}, {"id": 300, "type": "field_identifier", "text": "nextnode", "parent": 295, "children": [], "start_point": {"row": 51, "column": 48}, "end_point": {"row": 51, "column": 56}}, {"id": 301, "type": "function_definition", "text": "int gcmemnode_gc_start (gcmemnode *gmnode){\n for (gcmemnode *nd = gmnode; nd != NULL; nd = gcmemnode_next(nd)){\n if (bitarray_fill(0, 0, bitarray_length(nd->gcmarks), nd->gcmarks) != 0){\n return 1;\n }\n }\n return 0;\n}", "parent": null, "children": [302, 303], "start_point": {"row": 54, "column": 0}, "end_point": {"row": 61, "column": 1}}, {"id": 302, "type": "primitive_type", "text": "int", "parent": 301, "children": [], "start_point": {"row": 54, "column": 0}, "end_point": {"row": 54, "column": 3}}, {"id": 303, "type": "function_declarator", "text": "gcmemnode_gc_start (gcmemnode *gmnode)", "parent": 301, "children": [304, 305], "start_point": {"row": 54, "column": 4}, "end_point": {"row": 54, "column": 42}}, {"id": 304, "type": "identifier", "text": "gcmemnode_gc_start", "parent": 303, "children": [], "start_point": {"row": 54, "column": 4}, "end_point": {"row": 54, "column": 22}}, {"id": 305, "type": "parameter_list", "text": "(gcmemnode *gmnode)", "parent": 303, "children": [306], "start_point": {"row": 54, "column": 23}, "end_point": {"row": 54, "column": 42}}, {"id": 306, "type": "parameter_declaration", "text": "gcmemnode *gmnode", "parent": 305, "children": [307, 308], "start_point": {"row": 54, "column": 24}, "end_point": {"row": 54, "column": 41}}, {"id": 307, "type": "type_identifier", "text": "gcmemnode", "parent": 306, "children": [], "start_point": {"row": 54, "column": 24}, "end_point": {"row": 54, "column": 33}}, {"id": 308, "type": "pointer_declarator", "text": "*gmnode", "parent": 306, "children": [309, 310], "start_point": {"row": 54, "column": 34}, "end_point": {"row": 54, "column": 41}}, {"id": 309, "type": "*", "text": "*", "parent": 308, "children": [], "start_point": {"row": 54, "column": 34}, "end_point": {"row": 54, "column": 35}}, {"id": 310, "type": "identifier", "text": "gmnode", "parent": 308, "children": [], "start_point": {"row": 54, "column": 35}, "end_point": {"row": 54, "column": 41}}, {"id": 311, "type": "for_statement", "text": "for (gcmemnode *nd = gmnode; nd != NULL; nd = gcmemnode_next(nd)){\n if (bitarray_fill(0, 0, bitarray_length(nd->gcmarks), nd->gcmarks) != 0){\n return 1;\n }\n }", "parent": 301, "children": [312, 320, 325], "start_point": {"row": 55, "column": 2}, "end_point": {"row": 59, "column": 3}}, {"id": 312, "type": "declaration", "text": "gcmemnode *nd = gmnode;", "parent": 311, "children": [313, 314], "start_point": {"row": 55, "column": 7}, "end_point": {"row": 55, "column": 30}}, {"id": 313, "type": "type_identifier", "text": "gcmemnode", "parent": 312, "children": [], "start_point": {"row": 55, "column": 7}, "end_point": {"row": 55, "column": 16}}, {"id": 314, "type": "init_declarator", "text": "*nd = gmnode", "parent": 312, "children": [315, 318, 319], "start_point": {"row": 55, "column": 17}, "end_point": {"row": 55, "column": 29}}, {"id": 315, "type": "pointer_declarator", "text": "*nd", "parent": 314, "children": [316, 317], "start_point": {"row": 55, "column": 17}, "end_point": {"row": 55, "column": 20}}, {"id": 316, "type": "*", "text": "*", "parent": 315, "children": [], "start_point": {"row": 55, "column": 17}, "end_point": {"row": 55, "column": 18}}, {"id": 317, "type": "identifier", "text": "nd", "parent": 315, "children": [], "start_point": {"row": 55, "column": 18}, "end_point": {"row": 55, "column": 20}}, {"id": 318, "type": "=", "text": "=", "parent": 314, "children": [], "start_point": {"row": 55, "column": 21}, "end_point": {"row": 55, "column": 22}}, {"id": 319, "type": "identifier", "text": "gmnode", "parent": 314, "children": [], "start_point": {"row": 55, "column": 23}, "end_point": {"row": 55, "column": 29}}, {"id": 320, "type": "binary_expression", "text": "nd != NULL", "parent": 311, "children": [321, 322, 323], "start_point": {"row": 55, "column": 31}, "end_point": {"row": 55, "column": 41}}, {"id": 321, "type": "identifier", "text": "nd", "parent": 320, "children": [], "start_point": {"row": 55, "column": 31}, "end_point": {"row": 55, "column": 33}}, {"id": 322, "type": "!=", "text": "!=", "parent": 320, "children": [], "start_point": {"row": 55, "column": 34}, "end_point": {"row": 55, "column": 36}}, {"id": 323, "type": "null", "text": "NULL", "parent": 320, "children": [324], "start_point": {"row": 55, "column": 37}, "end_point": {"row": 55, "column": 41}}, {"id": 324, "type": "NULL", "text": "NULL", "parent": 323, "children": [], "start_point": {"row": 55, "column": 37}, "end_point": {"row": 55, "column": 41}}, {"id": 325, "type": "assignment_expression", "text": "nd = gcmemnode_next(nd)", "parent": 311, "children": [326, 327, 328], "start_point": {"row": 55, "column": 43}, "end_point": {"row": 55, "column": 66}}, {"id": 326, "type": "identifier", "text": "nd", "parent": 325, "children": [], "start_point": {"row": 55, "column": 43}, "end_point": {"row": 55, "column": 45}}, {"id": 327, "type": "=", "text": "=", "parent": 325, "children": [], "start_point": {"row": 55, "column": 46}, "end_point": {"row": 55, "column": 47}}, {"id": 328, "type": "call_expression", "text": "gcmemnode_next(nd)", "parent": 325, "children": [329, 330], "start_point": {"row": 55, "column": 48}, "end_point": {"row": 55, "column": 66}}, {"id": 329, "type": "identifier", "text": "gcmemnode_next", "parent": 328, "children": [], "start_point": {"row": 55, "column": 48}, "end_point": {"row": 55, "column": 62}}, {"id": 330, "type": "argument_list", "text": "(nd)", "parent": 328, "children": [331], "start_point": {"row": 55, "column": 62}, "end_point": {"row": 55, "column": 66}}, {"id": 331, "type": "identifier", "text": "nd", "parent": 330, "children": [], "start_point": {"row": 55, "column": 63}, "end_point": {"row": 55, "column": 65}}, {"id": 332, "type": "if_statement", "text": "if (bitarray_fill(0, 0, bitarray_length(nd->gcmarks), nd->gcmarks) != 0){\n return 1;\n }", "parent": 311, "children": [333], "start_point": {"row": 56, "column": 4}, "end_point": {"row": 58, "column": 5}}, {"id": 333, "type": "parenthesized_expression", "text": "(bitarray_fill(0, 0, bitarray_length(nd->gcmarks), nd->gcmarks) != 0)", "parent": 332, "children": [334], "start_point": {"row": 56, "column": 7}, "end_point": {"row": 56, "column": 76}}, {"id": 334, "type": "binary_expression", "text": "bitarray_fill(0, 0, bitarray_length(nd->gcmarks), nd->gcmarks) != 0", "parent": 333, "children": [335, 349, 350], "start_point": {"row": 56, "column": 8}, "end_point": {"row": 56, "column": 75}}, {"id": 335, "type": "call_expression", "text": "bitarray_fill(0, 0, bitarray_length(nd->gcmarks), nd->gcmarks)", "parent": 334, "children": [336, 337], "start_point": {"row": 56, "column": 8}, "end_point": {"row": 56, "column": 70}}, {"id": 336, "type": "identifier", "text": "bitarray_fill", "parent": 335, "children": [], "start_point": {"row": 56, "column": 8}, "end_point": {"row": 56, "column": 21}}, {"id": 337, "type": "argument_list", "text": "(0, 0, bitarray_length(nd->gcmarks), nd->gcmarks)", "parent": 335, "children": [338, 339, 340, 346], "start_point": {"row": 56, "column": 21}, "end_point": {"row": 56, "column": 70}}, {"id": 338, "type": "number_literal", "text": "0", "parent": 337, "children": [], "start_point": {"row": 56, "column": 22}, "end_point": {"row": 56, "column": 23}}, {"id": 339, "type": "number_literal", "text": "0", "parent": 337, "children": [], "start_point": {"row": 56, "column": 25}, "end_point": {"row": 56, "column": 26}}, {"id": 340, "type": "call_expression", "text": "bitarray_length(nd->gcmarks)", "parent": 337, "children": [341, 342], "start_point": {"row": 56, "column": 28}, "end_point": {"row": 56, "column": 56}}, {"id": 341, "type": "identifier", "text": "bitarray_length", "parent": 340, "children": [], "start_point": {"row": 56, "column": 28}, "end_point": {"row": 56, "column": 43}}, {"id": 342, "type": "argument_list", "text": "(nd->gcmarks)", "parent": 340, "children": [343], "start_point": {"row": 56, "column": 43}, "end_point": {"row": 56, "column": 56}}, {"id": 343, "type": "field_expression", "text": "nd->gcmarks", "parent": 342, "children": [344, 345], "start_point": {"row": 56, "column": 44}, "end_point": {"row": 56, "column": 55}}, {"id": 344, "type": "identifier", "text": "nd", "parent": 343, "children": [], "start_point": {"row": 56, "column": 44}, "end_point": {"row": 56, "column": 46}}, {"id": 345, "type": "field_identifier", "text": "gcmarks", "parent": 343, "children": [], "start_point": {"row": 56, "column": 48}, "end_point": {"row": 56, "column": 55}}, {"id": 346, "type": "field_expression", "text": "nd->gcmarks", "parent": 337, "children": [347, 348], "start_point": {"row": 56, "column": 58}, "end_point": {"row": 56, "column": 69}}, {"id": 347, "type": "identifier", "text": "nd", "parent": 346, "children": [], "start_point": {"row": 56, "column": 58}, "end_point": {"row": 56, "column": 60}}, {"id": 348, "type": "field_identifier", "text": "gcmarks", "parent": 346, "children": [], "start_point": {"row": 56, "column": 62}, "end_point": {"row": 56, "column": 69}}, {"id": 349, "type": "!=", "text": "!=", "parent": 334, "children": [], "start_point": {"row": 56, "column": 71}, "end_point": {"row": 56, "column": 73}}, {"id": 350, "type": "number_literal", "text": "0", "parent": 334, "children": [], "start_point": {"row": 56, "column": 74}, "end_point": {"row": 56, "column": 75}}, {"id": 351, "type": "return_statement", "text": "return 1;", "parent": 332, "children": [352], "start_point": {"row": 57, "column": 6}, "end_point": {"row": 57, "column": 15}}, {"id": 352, "type": "number_literal", "text": "1", "parent": 351, "children": [], "start_point": {"row": 57, "column": 13}, "end_point": {"row": 57, "column": 14}}, {"id": 353, "type": "return_statement", "text": "return 0;", "parent": 301, "children": [354], "start_point": {"row": 60, "column": 2}, "end_point": {"row": 60, "column": 11}}, {"id": 354, "type": "number_literal", "text": "0", "parent": 353, "children": [], "start_point": {"row": 60, "column": 9}, "end_point": {"row": 60, "column": 10}}, {"id": 355, "type": "function_definition", "text": "int gcmemnode_gc_mark (void *address, size_t size, gcmemnode *gmnode){\n memnode *foundmemnode = memnode_find(address, gcmemnode_memnode(gmnode));\n if (foundmemnode == NULL){\n return 1;\n }\n size_t offset = address - foundmemnode->sequence;\n gcmemnode *foundgmnode = (gcmemnode*)foundmemnode;\n if (bitarray_fill(1, offset, offset + size, foundgmnode->gcmarks) != 0){\n return 1;\n }\n return 0;\n}", "parent": null, "children": [356, 357], "start_point": {"row": 63, "column": 0}, "end_point": {"row": 74, "column": 1}}, {"id": 356, "type": "primitive_type", "text": "int", "parent": 355, "children": [], "start_point": {"row": 63, "column": 0}, "end_point": {"row": 63, "column": 3}}, {"id": 357, "type": "function_declarator", "text": "gcmemnode_gc_mark (void *address, size_t size, gcmemnode *gmnode)", "parent": 355, "children": [358, 359], "start_point": {"row": 63, "column": 4}, "end_point": {"row": 63, "column": 69}}, {"id": 358, "type": "identifier", "text": "gcmemnode_gc_mark", "parent": 357, "children": [], "start_point": {"row": 63, "column": 4}, "end_point": {"row": 63, "column": 21}}, {"id": 359, "type": "parameter_list", "text": "(void *address, size_t size, gcmemnode *gmnode)", "parent": 357, "children": [360, 365, 368], "start_point": {"row": 63, "column": 22}, "end_point": {"row": 63, "column": 69}}, {"id": 360, "type": "parameter_declaration", "text": "void *address", "parent": 359, "children": [361, 362], "start_point": {"row": 63, "column": 23}, "end_point": {"row": 63, "column": 36}}, {"id": 361, "type": "primitive_type", "text": "void", "parent": 360, "children": [], "start_point": {"row": 63, "column": 23}, "end_point": {"row": 63, "column": 27}}, {"id": 362, "type": "pointer_declarator", "text": "*address", "parent": 360, "children": [363, 364], "start_point": {"row": 63, "column": 28}, "end_point": {"row": 63, "column": 36}}, {"id": 363, "type": "*", "text": "*", "parent": 362, "children": [], "start_point": {"row": 63, "column": 28}, "end_point": {"row": 63, "column": 29}}, {"id": 364, "type": "identifier", "text": "address", "parent": 362, "children": [], "start_point": {"row": 63, "column": 29}, "end_point": {"row": 63, "column": 36}}, {"id": 365, "type": "parameter_declaration", "text": "size_t size", "parent": 359, "children": [366, 367], "start_point": {"row": 63, "column": 38}, "end_point": {"row": 63, "column": 49}}, {"id": 366, "type": "primitive_type", "text": "size_t", "parent": 365, "children": [], "start_point": {"row": 63, "column": 38}, "end_point": {"row": 63, "column": 44}}, {"id": 367, "type": "identifier", "text": "size", "parent": 365, "children": [], "start_point": {"row": 63, "column": 45}, "end_point": {"row": 63, "column": 49}}, {"id": 368, "type": "parameter_declaration", "text": "gcmemnode *gmnode", "parent": 359, "children": [369, 370], "start_point": {"row": 63, "column": 51}, "end_point": {"row": 63, "column": 68}}, {"id": 369, "type": "type_identifier", "text": "gcmemnode", "parent": 368, "children": [], "start_point": {"row": 63, "column": 51}, "end_point": {"row": 63, "column": 60}}, {"id": 370, "type": "pointer_declarator", "text": "*gmnode", "parent": 368, "children": [371, 372], "start_point": {"row": 63, "column": 61}, "end_point": {"row": 63, "column": 68}}, {"id": 371, "type": "*", "text": "*", "parent": 370, "children": [], "start_point": {"row": 63, "column": 61}, "end_point": {"row": 63, "column": 62}}, {"id": 372, "type": "identifier", "text": "gmnode", "parent": 370, "children": [], "start_point": {"row": 63, "column": 62}, "end_point": {"row": 63, "column": 68}}, {"id": 373, "type": "declaration", "text": "memnode *foundmemnode = memnode_find(address, gcmemnode_memnode(gmnode));", "parent": 355, "children": [374, 375], "start_point": {"row": 64, "column": 2}, "end_point": {"row": 64, "column": 75}}, {"id": 374, "type": "type_identifier", "text": "memnode", "parent": 373, "children": [], "start_point": {"row": 64, "column": 2}, "end_point": {"row": 64, "column": 9}}, {"id": 375, "type": "init_declarator", "text": "*foundmemnode = memnode_find(address, gcmemnode_memnode(gmnode))", "parent": 373, "children": [376, 379, 380], "start_point": {"row": 64, "column": 10}, "end_point": {"row": 64, "column": 74}}, {"id": 376, "type": "pointer_declarator", "text": "*foundmemnode", "parent": 375, "children": [377, 378], "start_point": {"row": 64, "column": 10}, "end_point": {"row": 64, "column": 23}}, {"id": 377, "type": "*", "text": "*", "parent": 376, "children": [], "start_point": {"row": 64, "column": 10}, "end_point": {"row": 64, "column": 11}}, {"id": 378, "type": "identifier", "text": "foundmemnode", "parent": 376, "children": [], "start_point": {"row": 64, "column": 11}, "end_point": {"row": 64, "column": 23}}, {"id": 379, "type": "=", "text": "=", "parent": 375, "children": [], "start_point": {"row": 64, "column": 24}, "end_point": {"row": 64, "column": 25}}, {"id": 380, "type": "call_expression", "text": "memnode_find(address, gcmemnode_memnode(gmnode))", "parent": 375, "children": [381, 382], "start_point": {"row": 64, "column": 26}, "end_point": {"row": 64, "column": 74}}, {"id": 381, "type": "identifier", "text": "memnode_find", "parent": 380, "children": [], "start_point": {"row": 64, "column": 26}, "end_point": {"row": 64, "column": 38}}, {"id": 382, "type": "argument_list", "text": "(address, gcmemnode_memnode(gmnode))", "parent": 380, "children": [383, 384], "start_point": {"row": 64, "column": 38}, "end_point": {"row": 64, "column": 74}}, {"id": 383, "type": "identifier", "text": "address", "parent": 382, "children": [], "start_point": {"row": 64, "column": 39}, "end_point": {"row": 64, "column": 46}}, {"id": 384, "type": "call_expression", "text": "gcmemnode_memnode(gmnode)", "parent": 382, "children": [385, 386], "start_point": {"row": 64, "column": 48}, "end_point": {"row": 64, "column": 73}}, {"id": 385, "type": "identifier", "text": "gcmemnode_memnode", "parent": 384, "children": [], "start_point": {"row": 64, "column": 48}, "end_point": {"row": 64, "column": 65}}, {"id": 386, "type": "argument_list", "text": "(gmnode)", "parent": 384, "children": [387], "start_point": {"row": 64, "column": 65}, "end_point": {"row": 64, "column": 73}}, {"id": 387, "type": "identifier", "text": "gmnode", "parent": 386, "children": [], "start_point": {"row": 64, "column": 66}, "end_point": {"row": 64, "column": 72}}, {"id": 388, "type": "if_statement", "text": "if (foundmemnode == NULL){\n return 1;\n }", "parent": 355, "children": [389], "start_point": {"row": 65, "column": 2}, "end_point": {"row": 67, "column": 3}}, {"id": 389, "type": "parenthesized_expression", "text": "(foundmemnode == NULL)", "parent": 388, "children": [390], "start_point": {"row": 65, "column": 5}, "end_point": {"row": 65, "column": 27}}, {"id": 390, "type": "binary_expression", "text": "foundmemnode == NULL", "parent": 389, "children": [391, 392, 393], "start_point": {"row": 65, "column": 6}, "end_point": {"row": 65, "column": 26}}, {"id": 391, "type": "identifier", "text": "foundmemnode", "parent": 390, "children": [], "start_point": {"row": 65, "column": 6}, "end_point": {"row": 65, "column": 18}}, {"id": 392, "type": "==", "text": "==", "parent": 390, "children": [], "start_point": {"row": 65, "column": 19}, "end_point": {"row": 65, "column": 21}}, {"id": 393, "type": "null", "text": "NULL", "parent": 390, "children": [394], "start_point": {"row": 65, "column": 22}, "end_point": {"row": 65, "column": 26}}, {"id": 394, "type": "NULL", "text": "NULL", "parent": 393, "children": [], "start_point": {"row": 65, "column": 22}, "end_point": {"row": 65, "column": 26}}, {"id": 395, "type": "return_statement", "text": "return 1;", "parent": 388, "children": [396], "start_point": {"row": 66, "column": 4}, "end_point": {"row": 66, "column": 13}}, {"id": 396, "type": "number_literal", "text": "1", "parent": 395, "children": [], "start_point": {"row": 66, "column": 11}, "end_point": {"row": 66, "column": 12}}, {"id": 397, "type": "declaration", "text": "size_t offset = address - foundmemnode->sequence;", "parent": 355, "children": [398, 399], "start_point": {"row": 68, "column": 2}, "end_point": {"row": 68, "column": 51}}, {"id": 398, "type": "primitive_type", "text": "size_t", "parent": 397, "children": [], "start_point": {"row": 68, "column": 2}, "end_point": {"row": 68, "column": 8}}, {"id": 399, "type": "init_declarator", "text": "offset = address - foundmemnode->sequence", "parent": 397, "children": [400, 401, 402], "start_point": {"row": 68, "column": 9}, "end_point": {"row": 68, "column": 50}}, {"id": 400, "type": "identifier", "text": "offset", "parent": 399, "children": [], "start_point": {"row": 68, "column": 9}, "end_point": {"row": 68, "column": 15}}, {"id": 401, "type": "=", "text": "=", "parent": 399, "children": [], "start_point": {"row": 68, "column": 16}, "end_point": {"row": 68, "column": 17}}, {"id": 402, "type": "binary_expression", "text": "address - foundmemnode->sequence", "parent": 399, "children": [403, 404, 405], "start_point": {"row": 68, "column": 18}, "end_point": {"row": 68, "column": 50}}, {"id": 403, "type": "identifier", "text": "address", "parent": 402, "children": [], "start_point": {"row": 68, "column": 18}, "end_point": {"row": 68, "column": 25}}, {"id": 404, "type": "-", "text": "-", "parent": 402, "children": [], "start_point": {"row": 68, "column": 26}, "end_point": {"row": 68, "column": 27}}, {"id": 405, "type": "field_expression", "text": "foundmemnode->sequence", "parent": 402, "children": [406, 407], "start_point": {"row": 68, "column": 28}, "end_point": {"row": 68, "column": 50}}, {"id": 406, "type": "identifier", "text": "foundmemnode", "parent": 405, "children": [], "start_point": {"row": 68, "column": 28}, "end_point": {"row": 68, "column": 40}}, {"id": 407, "type": "field_identifier", "text": "sequence", "parent": 405, "children": [], "start_point": {"row": 68, "column": 42}, "end_point": {"row": 68, "column": 50}}, {"id": 408, "type": "declaration", "text": "gcmemnode *foundgmnode = (gcmemnode*)foundmemnode;", "parent": 355, "children": [409, 410], "start_point": {"row": 69, "column": 2}, "end_point": {"row": 69, "column": 52}}, {"id": 409, "type": "type_identifier", "text": "gcmemnode", "parent": 408, "children": [], "start_point": {"row": 69, "column": 2}, "end_point": {"row": 69, "column": 11}}, {"id": 410, "type": "init_declarator", "text": "*foundgmnode = (gcmemnode*)foundmemnode", "parent": 408, "children": [411, 414, 415], "start_point": {"row": 69, "column": 12}, "end_point": {"row": 69, "column": 51}}, {"id": 411, "type": "pointer_declarator", "text": "*foundgmnode", "parent": 410, "children": [412, 413], "start_point": {"row": 69, "column": 12}, "end_point": {"row": 69, "column": 24}}, {"id": 412, "type": "*", "text": "*", "parent": 411, "children": [], "start_point": {"row": 69, "column": 12}, "end_point": {"row": 69, "column": 13}}, {"id": 413, "type": "identifier", "text": "foundgmnode", "parent": 411, "children": [], "start_point": {"row": 69, "column": 13}, "end_point": {"row": 69, "column": 24}}, {"id": 414, "type": "=", "text": "=", "parent": 410, "children": [], "start_point": {"row": 69, "column": 25}, "end_point": {"row": 69, "column": 26}}, {"id": 415, "type": "cast_expression", "text": "(gcmemnode*)foundmemnode", "parent": 410, "children": [416, 420], "start_point": {"row": 69, "column": 27}, "end_point": {"row": 69, "column": 51}}, {"id": 416, "type": "type_descriptor", "text": "gcmemnode*", "parent": 415, "children": [417, 418], "start_point": {"row": 69, "column": 28}, "end_point": {"row": 69, "column": 38}}, {"id": 417, "type": "type_identifier", "text": "gcmemnode", "parent": 416, "children": [], "start_point": {"row": 69, "column": 28}, "end_point": {"row": 69, "column": 37}}, {"id": 418, "type": "abstract_pointer_declarator", "text": "*", "parent": 416, "children": [419], "start_point": {"row": 69, "column": 37}, "end_point": {"row": 69, "column": 38}}, {"id": 419, "type": "*", "text": "*", "parent": 418, "children": [], "start_point": {"row": 69, "column": 37}, "end_point": {"row": 69, "column": 38}}, {"id": 420, "type": "identifier", "text": "foundmemnode", "parent": 415, "children": [], "start_point": {"row": 69, "column": 39}, "end_point": {"row": 69, "column": 51}}, {"id": 421, "type": "if_statement", "text": "if (bitarray_fill(1, offset, offset + size, foundgmnode->gcmarks) != 0){\n return 1;\n }", "parent": 355, "children": [422], "start_point": {"row": 70, "column": 2}, "end_point": {"row": 72, "column": 3}}, {"id": 422, "type": "parenthesized_expression", "text": "(bitarray_fill(1, offset, offset + size, foundgmnode->gcmarks) != 0)", "parent": 421, "children": [423], "start_point": {"row": 70, "column": 5}, "end_point": {"row": 70, "column": 73}}, {"id": 423, "type": "binary_expression", "text": "bitarray_fill(1, offset, offset + size, foundgmnode->gcmarks) != 0", "parent": 422, "children": [424, 436, 437], "start_point": {"row": 70, "column": 6}, "end_point": {"row": 70, "column": 72}}, {"id": 424, "type": "call_expression", "text": "bitarray_fill(1, offset, offset + size, foundgmnode->gcmarks)", "parent": 423, "children": [425, 426], "start_point": {"row": 70, "column": 6}, "end_point": {"row": 70, "column": 67}}, {"id": 425, "type": "identifier", "text": "bitarray_fill", "parent": 424, "children": [], "start_point": {"row": 70, "column": 6}, "end_point": {"row": 70, "column": 19}}, {"id": 426, "type": "argument_list", "text": "(1, offset, offset + size, foundgmnode->gcmarks)", "parent": 424, "children": [427, 428, 429, 433], "start_point": {"row": 70, "column": 19}, "end_point": {"row": 70, "column": 67}}, {"id": 427, "type": "number_literal", "text": "1", "parent": 426, "children": [], "start_point": {"row": 70, "column": 20}, "end_point": {"row": 70, "column": 21}}, {"id": 428, "type": "identifier", "text": "offset", "parent": 426, "children": [], "start_point": {"row": 70, "column": 23}, "end_point": {"row": 70, "column": 29}}, {"id": 429, "type": "binary_expression", "text": "offset + size", "parent": 426, "children": [430, 431, 432], "start_point": {"row": 70, "column": 31}, "end_point": {"row": 70, "column": 44}}, {"id": 430, "type": "identifier", "text": "offset", "parent": 429, "children": [], "start_point": {"row": 70, "column": 31}, "end_point": {"row": 70, "column": 37}}, {"id": 431, "type": "+", "text": "+", "parent": 429, "children": [], "start_point": {"row": 70, "column": 38}, "end_point": {"row": 70, "column": 39}}, {"id": 432, "type": "identifier", "text": "size", "parent": 429, "children": [], "start_point": {"row": 70, "column": 40}, "end_point": {"row": 70, "column": 44}}, {"id": 433, "type": "field_expression", "text": "foundgmnode->gcmarks", "parent": 426, "children": [434, 435], "start_point": {"row": 70, "column": 46}, "end_point": {"row": 70, "column": 66}}, {"id": 434, "type": "identifier", "text": "foundgmnode", "parent": 433, "children": [], "start_point": {"row": 70, "column": 46}, "end_point": {"row": 70, "column": 57}}, {"id": 435, "type": "field_identifier", "text": "gcmarks", "parent": 433, "children": [], "start_point": {"row": 70, "column": 59}, "end_point": {"row": 70, "column": 66}}, {"id": 436, "type": "!=", "text": "!=", "parent": 423, "children": [], "start_point": {"row": 70, "column": 68}, "end_point": {"row": 70, "column": 70}}, {"id": 437, "type": "number_literal", "text": "0", "parent": 423, "children": [], "start_point": {"row": 70, "column": 71}, "end_point": {"row": 70, "column": 72}}, {"id": 438, "type": "return_statement", "text": "return 1;", "parent": 421, "children": [439], "start_point": {"row": 71, "column": 4}, "end_point": {"row": 71, "column": 13}}, {"id": 439, "type": "number_literal", "text": "1", "parent": 438, "children": [], "start_point": {"row": 71, "column": 11}, "end_point": {"row": 71, "column": 12}}, {"id": 440, "type": "return_statement", "text": "return 0;", "parent": 355, "children": [441], "start_point": {"row": 73, "column": 2}, "end_point": {"row": 73, "column": 11}}, {"id": 441, "type": "number_literal", "text": "0", "parent": 440, "children": [], "start_point": {"row": 73, "column": 9}, "end_point": {"row": 73, "column": 10}}, {"id": 442, "type": "function_definition", "text": "int gcmemnode_gc_unmark (void *address, size_t size, gcmemnode *gmnode){\n memnode *foundmemnode = memnode_find(address, gcmemnode_memnode(gmnode));\n if (foundmemnode == NULL){\n return 1;\n }\n size_t offset = address - foundmemnode->sequence;\n gcmemnode *foundgmnode = (gcmemnode*)foundmemnode;\n if (bitarray_fill(0, offset, offset + size, foundgmnode->gcmarks) != 0){\n return 1;\n }\n return 0;\n}", "parent": null, "children": [443, 444], "start_point": {"row": 76, "column": 0}, "end_point": {"row": 87, "column": 1}}, {"id": 443, "type": "primitive_type", "text": "int", "parent": 442, "children": [], "start_point": {"row": 76, "column": 0}, "end_point": {"row": 76, "column": 3}}, {"id": 444, "type": "function_declarator", "text": "gcmemnode_gc_unmark (void *address, size_t size, gcmemnode *gmnode)", "parent": 442, "children": [445, 446], "start_point": {"row": 76, "column": 4}, "end_point": {"row": 76, "column": 71}}, {"id": 445, "type": "identifier", "text": "gcmemnode_gc_unmark", "parent": 444, "children": [], "start_point": {"row": 76, "column": 4}, "end_point": {"row": 76, "column": 23}}, {"id": 446, "type": "parameter_list", "text": "(void *address, size_t size, gcmemnode *gmnode)", "parent": 444, "children": [447, 452, 455], "start_point": {"row": 76, "column": 24}, "end_point": {"row": 76, "column": 71}}, {"id": 447, "type": "parameter_declaration", "text": "void *address", "parent": 446, "children": [448, 449], "start_point": {"row": 76, "column": 25}, "end_point": {"row": 76, "column": 38}}, {"id": 448, "type": "primitive_type", "text": "void", "parent": 447, "children": [], "start_point": {"row": 76, "column": 25}, "end_point": {"row": 76, "column": 29}}, {"id": 449, "type": "pointer_declarator", "text": "*address", "parent": 447, "children": [450, 451], "start_point": {"row": 76, "column": 30}, "end_point": {"row": 76, "column": 38}}, {"id": 450, "type": "*", "text": "*", "parent": 449, "children": [], "start_point": {"row": 76, "column": 30}, "end_point": {"row": 76, "column": 31}}, {"id": 451, "type": "identifier", "text": "address", "parent": 449, "children": [], "start_point": {"row": 76, "column": 31}, "end_point": {"row": 76, "column": 38}}, {"id": 452, "type": "parameter_declaration", "text": "size_t size", "parent": 446, "children": [453, 454], "start_point": {"row": 76, "column": 40}, "end_point": {"row": 76, "column": 51}}, {"id": 453, "type": "primitive_type", "text": "size_t", "parent": 452, "children": [], "start_point": {"row": 76, "column": 40}, "end_point": {"row": 76, "column": 46}}, {"id": 454, "type": "identifier", "text": "size", "parent": 452, "children": [], "start_point": {"row": 76, "column": 47}, "end_point": {"row": 76, "column": 51}}, {"id": 455, "type": "parameter_declaration", "text": "gcmemnode *gmnode", "parent": 446, "children": [456, 457], "start_point": {"row": 76, "column": 53}, "end_point": {"row": 76, "column": 70}}, {"id": 456, "type": "type_identifier", "text": "gcmemnode", "parent": 455, "children": [], "start_point": {"row": 76, "column": 53}, "end_point": {"row": 76, "column": 62}}, {"id": 457, "type": "pointer_declarator", "text": "*gmnode", "parent": 455, "children": [458, 459], "start_point": {"row": 76, "column": 63}, "end_point": {"row": 76, "column": 70}}, {"id": 458, "type": "*", "text": "*", "parent": 457, "children": [], "start_point": {"row": 76, "column": 63}, "end_point": {"row": 76, "column": 64}}, {"id": 459, "type": "identifier", "text": "gmnode", "parent": 457, "children": [], "start_point": {"row": 76, "column": 64}, "end_point": {"row": 76, "column": 70}}, {"id": 460, "type": "declaration", "text": "memnode *foundmemnode = memnode_find(address, gcmemnode_memnode(gmnode));", "parent": 442, "children": [461, 462], "start_point": {"row": 77, "column": 2}, "end_point": {"row": 77, "column": 75}}, {"id": 461, "type": "type_identifier", "text": "memnode", "parent": 460, "children": [], "start_point": {"row": 77, "column": 2}, "end_point": {"row": 77, "column": 9}}, {"id": 462, "type": "init_declarator", "text": "*foundmemnode = memnode_find(address, gcmemnode_memnode(gmnode))", "parent": 460, "children": [463, 466, 467], "start_point": {"row": 77, "column": 10}, "end_point": {"row": 77, "column": 74}}, {"id": 463, "type": "pointer_declarator", "text": "*foundmemnode", "parent": 462, "children": [464, 465], "start_point": {"row": 77, "column": 10}, "end_point": {"row": 77, "column": 23}}, {"id": 464, "type": "*", "text": "*", "parent": 463, "children": [], "start_point": {"row": 77, "column": 10}, "end_point": {"row": 77, "column": 11}}, {"id": 465, "type": "identifier", "text": "foundmemnode", "parent": 463, "children": [], "start_point": {"row": 77, "column": 11}, "end_point": {"row": 77, "column": 23}}, {"id": 466, "type": "=", "text": "=", "parent": 462, "children": [], "start_point": {"row": 77, "column": 24}, "end_point": {"row": 77, "column": 25}}, {"id": 467, "type": "call_expression", "text": "memnode_find(address, gcmemnode_memnode(gmnode))", "parent": 462, "children": [468, 469], "start_point": {"row": 77, "column": 26}, "end_point": {"row": 77, "column": 74}}, {"id": 468, "type": "identifier", "text": "memnode_find", "parent": 467, "children": [], "start_point": {"row": 77, "column": 26}, "end_point": {"row": 77, "column": 38}}, {"id": 469, "type": "argument_list", "text": "(address, gcmemnode_memnode(gmnode))", "parent": 467, "children": [470, 471], "start_point": {"row": 77, "column": 38}, "end_point": {"row": 77, "column": 74}}, {"id": 470, "type": "identifier", "text": "address", "parent": 469, "children": [], "start_point": {"row": 77, "column": 39}, "end_point": {"row": 77, "column": 46}}, {"id": 471, "type": "call_expression", "text": "gcmemnode_memnode(gmnode)", "parent": 469, "children": [472, 473], "start_point": {"row": 77, "column": 48}, "end_point": {"row": 77, "column": 73}}, {"id": 472, "type": "identifier", "text": "gcmemnode_memnode", "parent": 471, "children": [], "start_point": {"row": 77, "column": 48}, "end_point": {"row": 77, "column": 65}}, {"id": 473, "type": "argument_list", "text": "(gmnode)", "parent": 471, "children": [474], "start_point": {"row": 77, "column": 65}, "end_point": {"row": 77, "column": 73}}, {"id": 474, "type": "identifier", "text": "gmnode", "parent": 473, "children": [], "start_point": {"row": 77, "column": 66}, "end_point": {"row": 77, "column": 72}}, {"id": 475, "type": "if_statement", "text": "if (foundmemnode == NULL){\n return 1;\n }", "parent": 442, "children": [476], "start_point": {"row": 78, "column": 2}, "end_point": {"row": 80, "column": 3}}, {"id": 476, "type": "parenthesized_expression", "text": "(foundmemnode == NULL)", "parent": 475, "children": [477], "start_point": {"row": 78, "column": 5}, "end_point": {"row": 78, "column": 27}}, {"id": 477, "type": "binary_expression", "text": "foundmemnode == NULL", "parent": 476, "children": [478, 479, 480], "start_point": {"row": 78, "column": 6}, "end_point": {"row": 78, "column": 26}}, {"id": 478, "type": "identifier", "text": "foundmemnode", "parent": 477, "children": [], "start_point": {"row": 78, "column": 6}, "end_point": {"row": 78, "column": 18}}, {"id": 479, "type": "==", "text": "==", "parent": 477, "children": [], "start_point": {"row": 78, "column": 19}, "end_point": {"row": 78, "column": 21}}, {"id": 480, "type": "null", "text": "NULL", "parent": 477, "children": [481], "start_point": {"row": 78, "column": 22}, "end_point": {"row": 78, "column": 26}}, {"id": 481, "type": "NULL", "text": "NULL", "parent": 480, "children": [], "start_point": {"row": 78, "column": 22}, "end_point": {"row": 78, "column": 26}}, {"id": 482, "type": "return_statement", "text": "return 1;", "parent": 475, "children": [483], "start_point": {"row": 79, "column": 4}, "end_point": {"row": 79, "column": 13}}, {"id": 483, "type": "number_literal", "text": "1", "parent": 482, "children": [], "start_point": {"row": 79, "column": 11}, "end_point": {"row": 79, "column": 12}}, {"id": 484, "type": "declaration", "text": "size_t offset = address - foundmemnode->sequence;", "parent": 442, "children": [485, 486], "start_point": {"row": 81, "column": 2}, "end_point": {"row": 81, "column": 51}}, {"id": 485, "type": "primitive_type", "text": "size_t", "parent": 484, "children": [], "start_point": {"row": 81, "column": 2}, "end_point": {"row": 81, "column": 8}}, {"id": 486, "type": "init_declarator", "text": "offset = address - foundmemnode->sequence", "parent": 484, "children": [487, 488, 489], "start_point": {"row": 81, "column": 9}, "end_point": {"row": 81, "column": 50}}, {"id": 487, "type": "identifier", "text": "offset", "parent": 486, "children": [], "start_point": {"row": 81, "column": 9}, "end_point": {"row": 81, "column": 15}}, {"id": 488, "type": "=", "text": "=", "parent": 486, "children": [], "start_point": {"row": 81, "column": 16}, "end_point": {"row": 81, "column": 17}}, {"id": 489, "type": "binary_expression", "text": "address - foundmemnode->sequence", "parent": 486, "children": [490, 491, 492], "start_point": {"row": 81, "column": 18}, "end_point": {"row": 81, "column": 50}}, {"id": 490, "type": "identifier", "text": "address", "parent": 489, "children": [], "start_point": {"row": 81, "column": 18}, "end_point": {"row": 81, "column": 25}}, {"id": 491, "type": "-", "text": "-", "parent": 489, "children": [], "start_point": {"row": 81, "column": 26}, "end_point": {"row": 81, "column": 27}}, {"id": 492, "type": "field_expression", "text": "foundmemnode->sequence", "parent": 489, "children": [493, 494], "start_point": {"row": 81, "column": 28}, "end_point": {"row": 81, "column": 50}}, {"id": 493, "type": "identifier", "text": "foundmemnode", "parent": 492, "children": [], "start_point": {"row": 81, "column": 28}, "end_point": {"row": 81, "column": 40}}, {"id": 494, "type": "field_identifier", "text": "sequence", "parent": 492, "children": [], "start_point": {"row": 81, "column": 42}, "end_point": {"row": 81, "column": 50}}, {"id": 495, "type": "declaration", "text": "gcmemnode *foundgmnode = (gcmemnode*)foundmemnode;", "parent": 442, "children": [496, 497], "start_point": {"row": 82, "column": 2}, "end_point": {"row": 82, "column": 52}}, {"id": 496, "type": "type_identifier", "text": "gcmemnode", "parent": 495, "children": [], "start_point": {"row": 82, "column": 2}, "end_point": {"row": 82, "column": 11}}, {"id": 497, "type": "init_declarator", "text": "*foundgmnode = (gcmemnode*)foundmemnode", "parent": 495, "children": [498, 501, 502], "start_point": {"row": 82, "column": 12}, "end_point": {"row": 82, "column": 51}}, {"id": 498, "type": "pointer_declarator", "text": "*foundgmnode", "parent": 497, "children": [499, 500], "start_point": {"row": 82, "column": 12}, "end_point": {"row": 82, "column": 24}}, {"id": 499, "type": "*", "text": "*", "parent": 498, "children": [], "start_point": {"row": 82, "column": 12}, "end_point": {"row": 82, "column": 13}}, {"id": 500, "type": "identifier", "text": "foundgmnode", "parent": 498, "children": [], "start_point": {"row": 82, "column": 13}, "end_point": {"row": 82, "column": 24}}, {"id": 501, "type": "=", "text": "=", "parent": 497, "children": [], "start_point": {"row": 82, "column": 25}, "end_point": {"row": 82, "column": 26}}, {"id": 502, "type": "cast_expression", "text": "(gcmemnode*)foundmemnode", "parent": 497, "children": [503, 507], "start_point": {"row": 82, "column": 27}, "end_point": {"row": 82, "column": 51}}, {"id": 503, "type": "type_descriptor", "text": "gcmemnode*", "parent": 502, "children": [504, 505], "start_point": {"row": 82, "column": 28}, "end_point": {"row": 82, "column": 38}}, {"id": 504, "type": "type_identifier", "text": "gcmemnode", "parent": 503, "children": [], "start_point": {"row": 82, "column": 28}, "end_point": {"row": 82, "column": 37}}, {"id": 505, "type": "abstract_pointer_declarator", "text": "*", "parent": 503, "children": [506], "start_point": {"row": 82, "column": 37}, "end_point": {"row": 82, "column": 38}}, {"id": 506, "type": "*", "text": "*", "parent": 505, "children": [], "start_point": {"row": 82, "column": 37}, "end_point": {"row": 82, "column": 38}}, {"id": 507, "type": "identifier", "text": "foundmemnode", "parent": 502, "children": [], "start_point": {"row": 82, "column": 39}, "end_point": {"row": 82, "column": 51}}, {"id": 508, "type": "if_statement", "text": "if (bitarray_fill(0, offset, offset + size, foundgmnode->gcmarks) != 0){\n return 1;\n }", "parent": 442, "children": [509], "start_point": {"row": 83, "column": 2}, "end_point": {"row": 85, "column": 3}}, {"id": 509, "type": "parenthesized_expression", "text": "(bitarray_fill(0, offset, offset + size, foundgmnode->gcmarks) != 0)", "parent": 508, "children": [510], "start_point": {"row": 83, "column": 5}, "end_point": {"row": 83, "column": 73}}, {"id": 510, "type": "binary_expression", "text": "bitarray_fill(0, offset, offset + size, foundgmnode->gcmarks) != 0", "parent": 509, "children": [511, 523, 524], "start_point": {"row": 83, "column": 6}, "end_point": {"row": 83, "column": 72}}, {"id": 511, "type": "call_expression", "text": "bitarray_fill(0, offset, offset + size, foundgmnode->gcmarks)", "parent": 510, "children": [512, 513], "start_point": {"row": 83, "column": 6}, "end_point": {"row": 83, "column": 67}}, {"id": 512, "type": "identifier", "text": "bitarray_fill", "parent": 511, "children": [], "start_point": {"row": 83, "column": 6}, "end_point": {"row": 83, "column": 19}}, {"id": 513, "type": "argument_list", "text": "(0, offset, offset + size, foundgmnode->gcmarks)", "parent": 511, "children": [514, 515, 516, 520], "start_point": {"row": 83, "column": 19}, "end_point": {"row": 83, "column": 67}}, {"id": 514, "type": "number_literal", "text": "0", "parent": 513, "children": [], "start_point": {"row": 83, "column": 20}, "end_point": {"row": 83, "column": 21}}, {"id": 515, "type": "identifier", "text": "offset", "parent": 513, "children": [], "start_point": {"row": 83, "column": 23}, "end_point": {"row": 83, "column": 29}}, {"id": 516, "type": "binary_expression", "text": "offset + size", "parent": 513, "children": [517, 518, 519], "start_point": {"row": 83, "column": 31}, "end_point": {"row": 83, "column": 44}}, {"id": 517, "type": "identifier", "text": "offset", "parent": 516, "children": [], "start_point": {"row": 83, "column": 31}, "end_point": {"row": 83, "column": 37}}, {"id": 518, "type": "+", "text": "+", "parent": 516, "children": [], "start_point": {"row": 83, "column": 38}, "end_point": {"row": 83, "column": 39}}, {"id": 519, "type": "identifier", "text": "size", "parent": 516, "children": [], "start_point": {"row": 83, "column": 40}, "end_point": {"row": 83, "column": 44}}, {"id": 520, "type": "field_expression", "text": "foundgmnode->gcmarks", "parent": 513, "children": [521, 522], "start_point": {"row": 83, "column": 46}, "end_point": {"row": 83, "column": 66}}, {"id": 521, "type": "identifier", "text": "foundgmnode", "parent": 520, "children": [], "start_point": {"row": 83, "column": 46}, "end_point": {"row": 83, "column": 57}}, {"id": 522, "type": "field_identifier", "text": "gcmarks", "parent": 520, "children": [], "start_point": {"row": 83, "column": 59}, "end_point": {"row": 83, "column": 66}}, {"id": 523, "type": "!=", "text": "!=", "parent": 510, "children": [], "start_point": {"row": 83, "column": 68}, "end_point": {"row": 83, "column": 70}}, {"id": 524, "type": "number_literal", "text": "0", "parent": 510, "children": [], "start_point": {"row": 83, "column": 71}, "end_point": {"row": 83, "column": 72}}, {"id": 525, "type": "return_statement", "text": "return 1;", "parent": 508, "children": [526], "start_point": {"row": 84, "column": 4}, "end_point": {"row": 84, "column": 13}}, {"id": 526, "type": "number_literal", "text": "1", "parent": 525, "children": [], "start_point": {"row": 84, "column": 11}, "end_point": {"row": 84, "column": 12}}, {"id": 527, "type": "return_statement", "text": "return 0;", "parent": 442, "children": [528], "start_point": {"row": 86, "column": 2}, "end_point": {"row": 86, "column": 11}}, {"id": 528, "type": "number_literal", "text": "0", "parent": 527, "children": [], "start_point": {"row": 86, "column": 9}, "end_point": {"row": 86, "column": 10}}, {"id": 529, "type": "function_definition", "text": "int gcmemnode_gc_markp (void *address, size_t size, gcmemnode *gmnode, bool *markp){\n memnode *foundmemnode = memnode_find(address, gcmemnode_memnode(gmnode));\n if (foundmemnode == NULL){\n return 1;\n }\n size_t offset = address - foundmemnode->sequence;\n gcmemnode *foundgmnode = (gcmemnode*)foundmemnode;\n if (bitarray_fillp(1, offset, offset + size, foundgmnode->gcmarks, markp) != 0){\n return 1;\n }\n return 0;\n}", "parent": null, "children": [530, 531], "start_point": {"row": 89, "column": 0}, "end_point": {"row": 100, "column": 1}}, {"id": 530, "type": "primitive_type", "text": "int", "parent": 529, "children": [], "start_point": {"row": 89, "column": 0}, "end_point": {"row": 89, "column": 3}}, {"id": 531, "type": "function_declarator", "text": "gcmemnode_gc_markp (void *address, size_t size, gcmemnode *gmnode, bool *markp)", "parent": 529, "children": [532, 533], "start_point": {"row": 89, "column": 4}, "end_point": {"row": 89, "column": 83}}, {"id": 532, "type": "identifier", "text": "gcmemnode_gc_markp", "parent": 531, "children": [], "start_point": {"row": 89, "column": 4}, "end_point": {"row": 89, "column": 22}}, {"id": 533, "type": "parameter_list", "text": "(void *address, size_t size, gcmemnode *gmnode, bool *markp)", "parent": 531, "children": [534, 539, 542, 547], "start_point": {"row": 89, "column": 23}, "end_point": {"row": 89, "column": 83}}, {"id": 534, "type": "parameter_declaration", "text": "void *address", "parent": 533, "children": [535, 536], "start_point": {"row": 89, "column": 24}, "end_point": {"row": 89, "column": 37}}, {"id": 535, "type": "primitive_type", "text": "void", "parent": 534, "children": [], "start_point": {"row": 89, "column": 24}, "end_point": {"row": 89, "column": 28}}, {"id": 536, "type": "pointer_declarator", "text": "*address", "parent": 534, "children": [537, 538], "start_point": {"row": 89, "column": 29}, "end_point": {"row": 89, "column": 37}}, {"id": 537, "type": "*", "text": "*", "parent": 536, "children": [], "start_point": {"row": 89, "column": 29}, "end_point": {"row": 89, "column": 30}}, {"id": 538, "type": "identifier", "text": "address", "parent": 536, "children": [], "start_point": {"row": 89, "column": 30}, "end_point": {"row": 89, "column": 37}}, {"id": 539, "type": "parameter_declaration", "text": "size_t size", "parent": 533, "children": [540, 541], "start_point": {"row": 89, "column": 39}, "end_point": {"row": 89, "column": 50}}, {"id": 540, "type": "primitive_type", "text": "size_t", "parent": 539, "children": [], "start_point": {"row": 89, "column": 39}, "end_point": {"row": 89, "column": 45}}, {"id": 541, "type": "identifier", "text": "size", "parent": 539, "children": [], "start_point": {"row": 89, "column": 46}, "end_point": {"row": 89, "column": 50}}, {"id": 542, "type": "parameter_declaration", "text": "gcmemnode *gmnode", "parent": 533, "children": [543, 544], "start_point": {"row": 89, "column": 52}, "end_point": {"row": 89, "column": 69}}, {"id": 543, "type": "type_identifier", "text": "gcmemnode", "parent": 542, "children": [], "start_point": {"row": 89, "column": 52}, "end_point": {"row": 89, "column": 61}}, {"id": 544, "type": "pointer_declarator", "text": "*gmnode", "parent": 542, "children": [545, 546], "start_point": {"row": 89, "column": 62}, "end_point": {"row": 89, "column": 69}}, {"id": 545, "type": "*", "text": "*", "parent": 544, "children": [], "start_point": {"row": 89, "column": 62}, "end_point": {"row": 89, "column": 63}}, {"id": 546, "type": "identifier", "text": "gmnode", "parent": 544, "children": [], "start_point": {"row": 89, "column": 63}, "end_point": {"row": 89, "column": 69}}, {"id": 547, "type": "parameter_declaration", "text": "bool *markp", "parent": 533, "children": [548, 549], "start_point": {"row": 89, "column": 71}, "end_point": {"row": 89, "column": 82}}, {"id": 548, "type": "primitive_type", "text": "bool", "parent": 547, "children": [], "start_point": {"row": 89, "column": 71}, "end_point": {"row": 89, "column": 75}}, {"id": 549, "type": "pointer_declarator", "text": "*markp", "parent": 547, "children": [550, 551], "start_point": {"row": 89, "column": 76}, "end_point": {"row": 89, "column": 82}}, {"id": 550, "type": "*", "text": "*", "parent": 549, "children": [], "start_point": {"row": 89, "column": 76}, "end_point": {"row": 89, "column": 77}}, {"id": 551, "type": "identifier", "text": "markp", "parent": 549, "children": [], "start_point": {"row": 89, "column": 77}, "end_point": {"row": 89, "column": 82}}, {"id": 552, "type": "declaration", "text": "memnode *foundmemnode = memnode_find(address, gcmemnode_memnode(gmnode));", "parent": 529, "children": [553, 554], "start_point": {"row": 90, "column": 2}, "end_point": {"row": 90, "column": 75}}, {"id": 553, "type": "type_identifier", "text": "memnode", "parent": 552, "children": [], "start_point": {"row": 90, "column": 2}, "end_point": {"row": 90, "column": 9}}, {"id": 554, "type": "init_declarator", "text": "*foundmemnode = memnode_find(address, gcmemnode_memnode(gmnode))", "parent": 552, "children": [555, 558, 559], "start_point": {"row": 90, "column": 10}, "end_point": {"row": 90, "column": 74}}, {"id": 555, "type": "pointer_declarator", "text": "*foundmemnode", "parent": 554, "children": [556, 557], "start_point": {"row": 90, "column": 10}, "end_point": {"row": 90, "column": 23}}, {"id": 556, "type": "*", "text": "*", "parent": 555, "children": [], "start_point": {"row": 90, "column": 10}, "end_point": {"row": 90, "column": 11}}, {"id": 557, "type": "identifier", "text": "foundmemnode", "parent": 555, "children": [], "start_point": {"row": 90, "column": 11}, "end_point": {"row": 90, "column": 23}}, {"id": 558, "type": "=", "text": "=", "parent": 554, "children": [], "start_point": {"row": 90, "column": 24}, "end_point": {"row": 90, "column": 25}}, {"id": 559, "type": "call_expression", "text": "memnode_find(address, gcmemnode_memnode(gmnode))", "parent": 554, "children": [560, 561], "start_point": {"row": 90, "column": 26}, "end_point": {"row": 90, "column": 74}}, {"id": 560, "type": "identifier", "text": "memnode_find", "parent": 559, "children": [], "start_point": {"row": 90, "column": 26}, "end_point": {"row": 90, "column": 38}}, {"id": 561, "type": "argument_list", "text": "(address, gcmemnode_memnode(gmnode))", "parent": 559, "children": [562, 563], "start_point": {"row": 90, "column": 38}, "end_point": {"row": 90, "column": 74}}, {"id": 562, "type": "identifier", "text": "address", "parent": 561, "children": [], "start_point": {"row": 90, "column": 39}, "end_point": {"row": 90, "column": 46}}, {"id": 563, "type": "call_expression", "text": "gcmemnode_memnode(gmnode)", "parent": 561, "children": [564, 565], "start_point": {"row": 90, "column": 48}, "end_point": {"row": 90, "column": 73}}, {"id": 564, "type": "identifier", "text": "gcmemnode_memnode", "parent": 563, "children": [], "start_point": {"row": 90, "column": 48}, "end_point": {"row": 90, "column": 65}}, {"id": 565, "type": "argument_list", "text": "(gmnode)", "parent": 563, "children": [566], "start_point": {"row": 90, "column": 65}, "end_point": {"row": 90, "column": 73}}, {"id": 566, "type": "identifier", "text": "gmnode", "parent": 565, "children": [], "start_point": {"row": 90, "column": 66}, "end_point": {"row": 90, "column": 72}}, {"id": 567, "type": "if_statement", "text": "if (foundmemnode == NULL){\n return 1;\n }", "parent": 529, "children": [568], "start_point": {"row": 91, "column": 2}, "end_point": {"row": 93, "column": 3}}, {"id": 568, "type": "parenthesized_expression", "text": "(foundmemnode == NULL)", "parent": 567, "children": [569], "start_point": {"row": 91, "column": 5}, "end_point": {"row": 91, "column": 27}}, {"id": 569, "type": "binary_expression", "text": "foundmemnode == NULL", "parent": 568, "children": [570, 571, 572], "start_point": {"row": 91, "column": 6}, "end_point": {"row": 91, "column": 26}}, {"id": 570, "type": "identifier", "text": "foundmemnode", "parent": 569, "children": [], "start_point": {"row": 91, "column": 6}, "end_point": {"row": 91, "column": 18}}, {"id": 571, "type": "==", "text": "==", "parent": 569, "children": [], "start_point": {"row": 91, "column": 19}, "end_point": {"row": 91, "column": 21}}, {"id": 572, "type": "null", "text": "NULL", "parent": 569, "children": [573], "start_point": {"row": 91, "column": 22}, "end_point": {"row": 91, "column": 26}}, {"id": 573, "type": "NULL", "text": "NULL", "parent": 572, "children": [], "start_point": {"row": 91, "column": 22}, "end_point": {"row": 91, "column": 26}}, {"id": 574, "type": "return_statement", "text": "return 1;", "parent": 567, "children": [575], "start_point": {"row": 92, "column": 4}, "end_point": {"row": 92, "column": 13}}, {"id": 575, "type": "number_literal", "text": "1", "parent": 574, "children": [], "start_point": {"row": 92, "column": 11}, "end_point": {"row": 92, "column": 12}}, {"id": 576, "type": "declaration", "text": "size_t offset = address - foundmemnode->sequence;", "parent": 529, "children": [577, 578], "start_point": {"row": 94, "column": 2}, "end_point": {"row": 94, "column": 51}}, {"id": 577, "type": "primitive_type", "text": "size_t", "parent": 576, "children": [], "start_point": {"row": 94, "column": 2}, "end_point": {"row": 94, "column": 8}}, {"id": 578, "type": "init_declarator", "text": "offset = address - foundmemnode->sequence", "parent": 576, "children": [579, 580, 581], "start_point": {"row": 94, "column": 9}, "end_point": {"row": 94, "column": 50}}, {"id": 579, "type": "identifier", "text": "offset", "parent": 578, "children": [], "start_point": {"row": 94, "column": 9}, "end_point": {"row": 94, "column": 15}}, {"id": 580, "type": "=", "text": "=", "parent": 578, "children": [], "start_point": {"row": 94, "column": 16}, "end_point": {"row": 94, "column": 17}}, {"id": 581, "type": "binary_expression", "text": "address - foundmemnode->sequence", "parent": 578, "children": [582, 583, 584], "start_point": {"row": 94, "column": 18}, "end_point": {"row": 94, "column": 50}}, {"id": 582, "type": "identifier", "text": "address", "parent": 581, "children": [], "start_point": {"row": 94, "column": 18}, "end_point": {"row": 94, "column": 25}}, {"id": 583, "type": "-", "text": "-", "parent": 581, "children": [], "start_point": {"row": 94, "column": 26}, "end_point": {"row": 94, "column": 27}}, {"id": 584, "type": "field_expression", "text": "foundmemnode->sequence", "parent": 581, "children": [585, 586], "start_point": {"row": 94, "column": 28}, "end_point": {"row": 94, "column": 50}}, {"id": 585, "type": "identifier", "text": "foundmemnode", "parent": 584, "children": [], "start_point": {"row": 94, "column": 28}, "end_point": {"row": 94, "column": 40}}, {"id": 586, "type": "field_identifier", "text": "sequence", "parent": 584, "children": [], "start_point": {"row": 94, "column": 42}, "end_point": {"row": 94, "column": 50}}, {"id": 587, "type": "declaration", "text": "gcmemnode *foundgmnode = (gcmemnode*)foundmemnode;", "parent": 529, "children": [588, 589], "start_point": {"row": 95, "column": 2}, "end_point": {"row": 95, "column": 52}}, {"id": 588, "type": "type_identifier", "text": "gcmemnode", "parent": 587, "children": [], "start_point": {"row": 95, "column": 2}, "end_point": {"row": 95, "column": 11}}, {"id": 589, "type": "init_declarator", "text": "*foundgmnode = (gcmemnode*)foundmemnode", "parent": 587, "children": [590, 593, 594], "start_point": {"row": 95, "column": 12}, "end_point": {"row": 95, "column": 51}}, {"id": 590, "type": "pointer_declarator", "text": "*foundgmnode", "parent": 589, "children": [591, 592], "start_point": {"row": 95, "column": 12}, "end_point": {"row": 95, "column": 24}}, {"id": 591, "type": "*", "text": "*", "parent": 590, "children": [], "start_point": {"row": 95, "column": 12}, "end_point": {"row": 95, "column": 13}}, {"id": 592, "type": "identifier", "text": "foundgmnode", "parent": 590, "children": [], "start_point": {"row": 95, "column": 13}, "end_point": {"row": 95, "column": 24}}, {"id": 593, "type": "=", "text": "=", "parent": 589, "children": [], "start_point": {"row": 95, "column": 25}, "end_point": {"row": 95, "column": 26}}, {"id": 594, "type": "cast_expression", "text": "(gcmemnode*)foundmemnode", "parent": 589, "children": [595, 599], "start_point": {"row": 95, "column": 27}, "end_point": {"row": 95, "column": 51}}, {"id": 595, "type": "type_descriptor", "text": "gcmemnode*", "parent": 594, "children": [596, 597], "start_point": {"row": 95, "column": 28}, "end_point": {"row": 95, "column": 38}}, {"id": 596, "type": "type_identifier", "text": "gcmemnode", "parent": 595, "children": [], "start_point": {"row": 95, "column": 28}, "end_point": {"row": 95, "column": 37}}, {"id": 597, "type": "abstract_pointer_declarator", "text": "*", "parent": 595, "children": [598], "start_point": {"row": 95, "column": 37}, "end_point": {"row": 95, "column": 38}}, {"id": 598, "type": "*", "text": "*", "parent": 597, "children": [], "start_point": {"row": 95, "column": 37}, "end_point": {"row": 95, "column": 38}}, {"id": 599, "type": "identifier", "text": "foundmemnode", "parent": 594, "children": [], "start_point": {"row": 95, "column": 39}, "end_point": {"row": 95, "column": 51}}, {"id": 600, "type": "if_statement", "text": "if (bitarray_fillp(1, offset, offset + size, foundgmnode->gcmarks, markp) != 0){\n return 1;\n }", "parent": 529, "children": [601], "start_point": {"row": 96, "column": 2}, "end_point": {"row": 98, "column": 3}}, {"id": 601, "type": "parenthesized_expression", "text": "(bitarray_fillp(1, offset, offset + size, foundgmnode->gcmarks, markp) != 0)", "parent": 600, "children": [602], "start_point": {"row": 96, "column": 5}, "end_point": {"row": 96, "column": 81}}, {"id": 602, "type": "binary_expression", "text": "bitarray_fillp(1, offset, offset + size, foundgmnode->gcmarks, markp) != 0", "parent": 601, "children": [603, 616, 617], "start_point": {"row": 96, "column": 6}, "end_point": {"row": 96, "column": 80}}, {"id": 603, "type": "call_expression", "text": "bitarray_fillp(1, offset, offset + size, foundgmnode->gcmarks, markp)", "parent": 602, "children": [604, 605], "start_point": {"row": 96, "column": 6}, "end_point": {"row": 96, "column": 75}}, {"id": 604, "type": "identifier", "text": "bitarray_fillp", "parent": 603, "children": [], "start_point": {"row": 96, "column": 6}, "end_point": {"row": 96, "column": 20}}, {"id": 605, "type": "argument_list", "text": "(1, offset, offset + size, foundgmnode->gcmarks, markp)", "parent": 603, "children": [606, 607, 608, 612, 615], "start_point": {"row": 96, "column": 20}, "end_point": {"row": 96, "column": 75}}, {"id": 606, "type": "number_literal", "text": "1", "parent": 605, "children": [], "start_point": {"row": 96, "column": 21}, "end_point": {"row": 96, "column": 22}}, {"id": 607, "type": "identifier", "text": "offset", "parent": 605, "children": [], "start_point": {"row": 96, "column": 24}, "end_point": {"row": 96, "column": 30}}, {"id": 608, "type": "binary_expression", "text": "offset + size", "parent": 605, "children": [609, 610, 611], "start_point": {"row": 96, "column": 32}, "end_point": {"row": 96, "column": 45}}, {"id": 609, "type": "identifier", "text": "offset", "parent": 608, "children": [], "start_point": {"row": 96, "column": 32}, "end_point": {"row": 96, "column": 38}}, {"id": 610, "type": "+", "text": "+", "parent": 608, "children": [], "start_point": {"row": 96, "column": 39}, "end_point": {"row": 96, "column": 40}}, {"id": 611, "type": "identifier", "text": "size", "parent": 608, "children": [], "start_point": {"row": 96, "column": 41}, "end_point": {"row": 96, "column": 45}}, {"id": 612, "type": "field_expression", "text": "foundgmnode->gcmarks", "parent": 605, "children": [613, 614], "start_point": {"row": 96, "column": 47}, "end_point": {"row": 96, "column": 67}}, {"id": 613, "type": "identifier", "text": "foundgmnode", "parent": 612, "children": [], "start_point": {"row": 96, "column": 47}, "end_point": {"row": 96, "column": 58}}, {"id": 614, "type": "field_identifier", "text": "gcmarks", "parent": 612, "children": [], "start_point": {"row": 96, "column": 60}, "end_point": {"row": 96, "column": 67}}, {"id": 615, "type": "identifier", "text": "markp", "parent": 605, "children": [], "start_point": {"row": 96, "column": 69}, "end_point": {"row": 96, "column": 74}}, {"id": 616, "type": "!=", "text": "!=", "parent": 602, "children": [], "start_point": {"row": 96, "column": 76}, "end_point": {"row": 96, "column": 78}}, {"id": 617, "type": "number_literal", "text": "0", "parent": 602, "children": [], "start_point": {"row": 96, "column": 79}, "end_point": {"row": 96, "column": 80}}, {"id": 618, "type": "return_statement", "text": "return 1;", "parent": 600, "children": [619], "start_point": {"row": 97, "column": 4}, "end_point": {"row": 97, "column": 13}}, {"id": 619, "type": "number_literal", "text": "1", "parent": 618, "children": [], "start_point": {"row": 97, "column": 11}, "end_point": {"row": 97, "column": 12}}, {"id": 620, "type": "return_statement", "text": "return 0;", "parent": 529, "children": [621], "start_point": {"row": 99, "column": 2}, "end_point": {"row": 99, "column": 11}}, {"id": 621, "type": "number_literal", "text": "0", "parent": 620, "children": [], "start_point": {"row": 99, "column": 9}, "end_point": {"row": 99, "column": 10}}, {"id": 622, "type": "function_definition", "text": "int gcmemnode_gc_end (gcmemnode *gmnode){\n for (gcmemnode *nd = gmnode; nd != NULL; nd = gcmemnode_next(nd)){\n if (bitarray_copy(nd->gcmarks, gcmemnode_memnode(nd)->reservemask) != 0){\n return 1;\n }\n }\n return 0;\n}", "parent": null, "children": [623, 624], "start_point": {"row": 102, "column": 0}, "end_point": {"row": 109, "column": 1}}, {"id": 623, "type": "primitive_type", "text": "int", "parent": 622, "children": [], "start_point": {"row": 102, "column": 0}, "end_point": {"row": 102, "column": 3}}, {"id": 624, "type": "function_declarator", "text": "gcmemnode_gc_end (gcmemnode *gmnode)", "parent": 622, "children": [625, 626], "start_point": {"row": 102, "column": 4}, "end_point": {"row": 102, "column": 40}}, {"id": 625, "type": "identifier", "text": "gcmemnode_gc_end", "parent": 624, "children": [], "start_point": {"row": 102, "column": 4}, "end_point": {"row": 102, "column": 20}}, {"id": 626, "type": "parameter_list", "text": "(gcmemnode *gmnode)", "parent": 624, "children": [627], "start_point": {"row": 102, "column": 21}, "end_point": {"row": 102, "column": 40}}, {"id": 627, "type": "parameter_declaration", "text": "gcmemnode *gmnode", "parent": 626, "children": [628, 629], "start_point": {"row": 102, "column": 22}, "end_point": {"row": 102, "column": 39}}, {"id": 628, "type": "type_identifier", "text": "gcmemnode", "parent": 627, "children": [], "start_point": {"row": 102, "column": 22}, "end_point": {"row": 102, "column": 31}}, {"id": 629, "type": "pointer_declarator", "text": "*gmnode", "parent": 627, "children": [630, 631], "start_point": {"row": 102, "column": 32}, "end_point": {"row": 102, "column": 39}}, {"id": 630, "type": "*", "text": "*", "parent": 629, "children": [], "start_point": {"row": 102, "column": 32}, "end_point": {"row": 102, "column": 33}}, {"id": 631, "type": "identifier", "text": "gmnode", "parent": 629, "children": [], "start_point": {"row": 102, "column": 33}, "end_point": {"row": 102, "column": 39}}, {"id": 632, "type": "for_statement", "text": "for (gcmemnode *nd = gmnode; nd != NULL; nd = gcmemnode_next(nd)){\n if (bitarray_copy(nd->gcmarks, gcmemnode_memnode(nd)->reservemask) != 0){\n return 1;\n }\n }", "parent": 622, "children": [633, 641, 646], "start_point": {"row": 103, "column": 2}, "end_point": {"row": 107, "column": 3}}, {"id": 633, "type": "declaration", "text": "gcmemnode *nd = gmnode;", "parent": 632, "children": [634, 635], "start_point": {"row": 103, "column": 7}, "end_point": {"row": 103, "column": 30}}, {"id": 634, "type": "type_identifier", "text": "gcmemnode", "parent": 633, "children": [], "start_point": {"row": 103, "column": 7}, "end_point": {"row": 103, "column": 16}}, {"id": 635, "type": "init_declarator", "text": "*nd = gmnode", "parent": 633, "children": [636, 639, 640], "start_point": {"row": 103, "column": 17}, "end_point": {"row": 103, "column": 29}}, {"id": 636, "type": "pointer_declarator", "text": "*nd", "parent": 635, "children": [637, 638], "start_point": {"row": 103, "column": 17}, "end_point": {"row": 103, "column": 20}}, {"id": 637, "type": "*", "text": "*", "parent": 636, "children": [], "start_point": {"row": 103, "column": 17}, "end_point": {"row": 103, "column": 18}}, {"id": 638, "type": "identifier", "text": "nd", "parent": 636, "children": [], "start_point": {"row": 103, "column": 18}, "end_point": {"row": 103, "column": 20}}, {"id": 639, "type": "=", "text": "=", "parent": 635, "children": [], "start_point": {"row": 103, "column": 21}, "end_point": {"row": 103, "column": 22}}, {"id": 640, "type": "identifier", "text": "gmnode", "parent": 635, "children": [], "start_point": {"row": 103, "column": 23}, "end_point": {"row": 103, "column": 29}}, {"id": 641, "type": "binary_expression", "text": "nd != NULL", "parent": 632, "children": [642, 643, 644], "start_point": {"row": 103, "column": 31}, "end_point": {"row": 103, "column": 41}}, {"id": 642, "type": "identifier", "text": "nd", "parent": 641, "children": [], "start_point": {"row": 103, "column": 31}, "end_point": {"row": 103, "column": 33}}, {"id": 643, "type": "!=", "text": "!=", "parent": 641, "children": [], "start_point": {"row": 103, "column": 34}, "end_point": {"row": 103, "column": 36}}, {"id": 644, "type": "null", "text": "NULL", "parent": 641, "children": [645], "start_point": {"row": 103, "column": 37}, "end_point": {"row": 103, "column": 41}}, {"id": 645, "type": "NULL", "text": "NULL", "parent": 644, "children": [], "start_point": {"row": 103, "column": 37}, "end_point": {"row": 103, "column": 41}}, {"id": 646, "type": "assignment_expression", "text": "nd = gcmemnode_next(nd)", "parent": 632, "children": [647, 648, 649], "start_point": {"row": 103, "column": 43}, "end_point": {"row": 103, "column": 66}}, {"id": 647, "type": "identifier", "text": "nd", "parent": 646, "children": [], "start_point": {"row": 103, "column": 43}, "end_point": {"row": 103, "column": 45}}, {"id": 648, "type": "=", "text": "=", "parent": 646, "children": [], "start_point": {"row": 103, "column": 46}, "end_point": {"row": 103, "column": 47}}, {"id": 649, "type": "call_expression", "text": "gcmemnode_next(nd)", "parent": 646, "children": [650, 651], "start_point": {"row": 103, "column": 48}, "end_point": {"row": 103, "column": 66}}, {"id": 650, "type": "identifier", "text": "gcmemnode_next", "parent": 649, "children": [], "start_point": {"row": 103, "column": 48}, "end_point": {"row": 103, "column": 62}}, {"id": 651, "type": "argument_list", "text": "(nd)", "parent": 649, "children": [652], "start_point": {"row": 103, "column": 62}, "end_point": {"row": 103, "column": 66}}, {"id": 652, "type": "identifier", "text": "nd", "parent": 651, "children": [], "start_point": {"row": 103, "column": 63}, "end_point": {"row": 103, "column": 65}}, {"id": 653, "type": "if_statement", "text": "if (bitarray_copy(nd->gcmarks, gcmemnode_memnode(nd)->reservemask) != 0){\n return 1;\n }", "parent": 632, "children": [654], "start_point": {"row": 104, "column": 4}, "end_point": {"row": 106, "column": 5}}, {"id": 654, "type": "parenthesized_expression", "text": "(bitarray_copy(nd->gcmarks, gcmemnode_memnode(nd)->reservemask) != 0)", "parent": 653, "children": [655], "start_point": {"row": 104, "column": 7}, "end_point": {"row": 104, "column": 76}}, {"id": 655, "type": "binary_expression", "text": "bitarray_copy(nd->gcmarks, gcmemnode_memnode(nd)->reservemask) != 0", "parent": 654, "children": [656, 668, 669], "start_point": {"row": 104, "column": 8}, "end_point": {"row": 104, "column": 75}}, {"id": 656, "type": "call_expression", "text": "bitarray_copy(nd->gcmarks, gcmemnode_memnode(nd)->reservemask)", "parent": 655, "children": [657, 658], "start_point": {"row": 104, "column": 8}, "end_point": {"row": 104, "column": 70}}, {"id": 657, "type": "identifier", "text": "bitarray_copy", "parent": 656, "children": [], "start_point": {"row": 104, "column": 8}, "end_point": {"row": 104, "column": 21}}, {"id": 658, "type": "argument_list", "text": "(nd->gcmarks, gcmemnode_memnode(nd)->reservemask)", "parent": 656, "children": [659, 662], "start_point": {"row": 104, "column": 21}, "end_point": {"row": 104, "column": 70}}, {"id": 659, "type": "field_expression", "text": "nd->gcmarks", "parent": 658, "children": [660, 661], "start_point": {"row": 104, "column": 22}, "end_point": {"row": 104, "column": 33}}, {"id": 660, "type": "identifier", "text": "nd", "parent": 659, "children": [], "start_point": {"row": 104, "column": 22}, "end_point": {"row": 104, "column": 24}}, {"id": 661, "type": "field_identifier", "text": "gcmarks", "parent": 659, "children": [], "start_point": {"row": 104, "column": 26}, "end_point": {"row": 104, "column": 33}}, {"id": 662, "type": "field_expression", "text": "gcmemnode_memnode(nd)->reservemask", "parent": 658, "children": [663, 667], "start_point": {"row": 104, "column": 35}, "end_point": {"row": 104, "column": 69}}, {"id": 663, "type": "call_expression", "text": "gcmemnode_memnode(nd)", "parent": 662, "children": [664, 665], "start_point": {"row": 104, "column": 35}, "end_point": {"row": 104, "column": 56}}, {"id": 664, "type": "identifier", "text": "gcmemnode_memnode", "parent": 663, "children": [], "start_point": {"row": 104, "column": 35}, "end_point": {"row": 104, "column": 52}}, {"id": 665, "type": "argument_list", "text": "(nd)", "parent": 663, "children": [666], "start_point": {"row": 104, "column": 52}, "end_point": {"row": 104, "column": 56}}, {"id": 666, "type": "identifier", "text": "nd", "parent": 665, "children": [], "start_point": {"row": 104, "column": 53}, "end_point": {"row": 104, "column": 55}}, {"id": 667, "type": "field_identifier", "text": "reservemask", "parent": 662, "children": [], "start_point": {"row": 104, "column": 58}, "end_point": {"row": 104, "column": 69}}, {"id": 668, "type": "!=", "text": "!=", "parent": 655, "children": [], "start_point": {"row": 104, "column": 71}, "end_point": {"row": 104, "column": 73}}, {"id": 669, "type": "number_literal", "text": "0", "parent": 655, "children": [], "start_point": {"row": 104, "column": 74}, "end_point": {"row": 104, "column": 75}}, {"id": 670, "type": "return_statement", "text": "return 1;", "parent": 653, "children": [671], "start_point": {"row": 105, "column": 6}, "end_point": {"row": 105, "column": 15}}, {"id": 671, "type": "number_literal", "text": "1", "parent": 670, "children": [], "start_point": {"row": 105, "column": 13}, "end_point": {"row": 105, "column": 14}}, {"id": 672, "type": "return_statement", "text": "return 0;", "parent": 622, "children": [673], "start_point": {"row": 108, "column": 2}, "end_point": {"row": 108, "column": 11}}, {"id": 673, "type": "number_literal", "text": "0", "parent": 672, "children": [], "start_point": {"row": 108, "column": 9}, "end_point": {"row": 108, "column": 10}}]}, "node_categories": {"declarations": {"functions": [18, 20, 74, 78, 179, 181, 215, 217, 259, 263, 277, 281, 301, 303, 355, 357, 442, 444, 529, 531, 622, 624], "variables": [23, 28, 31, 36, 41, 46, 81, 84, 89, 109, 132, 150, 184, 220, 225, 240, 266, 284, 306, 312, 360, 365, 368, 373, 397, 408, 447, 452, 455, 460, 484, 495, 534, 539, 542, 547, 552, 576, 587, 627, 633], "classes": [], "imports": [0, 1, 3, 4, 6, 7, 9, 10, 12, 13, 15, 16], "modules": [], "enums": []}, "statements": {"expressions": [51, 57, 63, 64, 65, 69, 96, 99, 100, 103, 104, 116, 119, 120, 126, 127, 139, 144, 145, 157, 162, 163, 168, 189, 192, 193, 197, 200, 203, 206, 207, 211, 234, 235, 247, 251, 272, 273, 274, 290, 295, 296, 320, 328, 333, 334, 335, 340, 343, 346, 380, 384, 389, 390, 402, 405, 415, 422, 423, 424, 429, 433, 467, 471, 476, 477, 489, 492, 502, 509, 510, 511, 516, 520, 559, 563, 568, 569, 581, 584, 594, 601, 602, 603, 608, 612, 641, 649, 654, 655, 656, 659, 662, 663], "assignments": [68, 255, 325, 646], "loops": [233, 311, 632], "conditionals": [21, 27, 30, 32, 35, 37, 40, 42, 45, 47, 50, 52, 54, 55, 56, 59, 62, 66, 67, 70, 71, 73, 75, 79, 83, 85, 88, 90, 94, 97, 101, 102, 105, 114, 117, 124, 125, 128, 133, 137, 140, 142, 143, 146, 151, 155, 158, 160, 161, 164, 169, 171, 172, 173, 174, 175, 176, 178, 182, 185, 188, 190, 194, 195, 196, 198, 201, 202, 204, 208, 209, 210, 212, 214, 218, 221, 224, 226, 230, 232, 236, 241, 245, 248, 250, 252, 254, 256, 258, 260, 264, 267, 270, 275, 276, 278, 282, 285, 288, 292, 297, 299, 300, 304, 307, 310, 313, 317, 319, 321, 326, 329, 331, 332, 336, 341, 344, 345, 347, 348, 358, 364, 367, 369, 372, 374, 378, 381, 383, 385, 387, 388, 391, 400, 403, 406, 407, 409, 413, 417, 420, 421, 425, 428, 430, 432, 434, 435, 445, 451, 454, 456, 459, 461, 465, 468, 470, 472, 474, 475, 478, 487, 490, 493, 494, 496, 500, 504, 507, 508, 512, 515, 517, 519, 521, 522, 532, 538, 541, 543, 546, 551, 553, 557, 560, 562, 564, 566, 567, 570, 579, 582, 585, 586, 588, 592, 596, 599, 600, 604, 607, 609, 611, 613, 614, 615, 625, 628, 631, 634, 638, 640, 642, 647, 650, 652, 653, 657, 660, 661, 664, 666, 667], "returns": [177, 271, 289, 351, 353, 395, 438, 440, 482, 525, 527, 574, 618, 620, 670, 672], "exceptions": []}, "expressions": {"calls": [], "literals": [2, 5, 8, 11, 14, 17, 338, 339, 350, 352, 354, 396, 427, 437, 439, 441, 483, 514, 524, 526, 528, 575, 606, 617, 619, 621, 669, 671, 673], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [{"node_id": 18, "universal_type": "function", "name": "gcmemnode_init", "text_snippet": "void gcmemnode_init (void *sequence, size_t size, bitarray *reservemask, bitarray *gcmarks, gcmemnod"}, {"node_id": 20, "universal_type": "function", "name": "unknown", "text_snippet": "gcmemnode_init (void *sequence, size_t size, bitarray *reservemask, bitarray *gcmarks, gcmemnode *ne"}, {"node_id": 74, "universal_type": "function", "name": "unknown", "text_snippet": "gcmemnode *make_gcmemnode (size_t size, gcmemnode *nextnode){\n gcmemnode *gmnode = malloc(sizeof(gc"}, {"node_id": 78, "universal_type": "function", "name": "unknown", "text_snippet": "make_gcmemnode (size_t size, gcmemnode *nextnode)"}, {"node_id": 179, "universal_type": "function", "name": "free_gcmemnode", "text_snippet": "void free_gcmemnode (gcmemnode *gmnode){\n free_bitarray(gmnode->memnode.reservemask);\n free_bitarr"}, {"node_id": 181, "universal_type": "function", "name": "unknown", "text_snippet": "free_gcmemnode (gcmemnode *gmnode)"}, {"node_id": 215, "universal_type": "function", "name": "free_gcmemnode_all", "text_snippet": "void free_gcmemnode_all (gcmemnode *gmnode){\n gcmemnode *gmnd = gmnode;\n while (gmnd != NULL){\n "}, {"node_id": 217, "universal_type": "function", "name": "unknown", "text_snippet": "free_gcmemnode_all (gcmemnode *gmnode)"}, {"node_id": 259, "universal_type": "function", "name": "unknown", "text_snippet": "memnode *gcmemnode_memnode (gcmemnode *gmnode){\n return &(gmnode->memnode);\n}"}, {"node_id": 263, "universal_type": "function", "name": "unknown", "text_snippet": "gcmemnode_memnode (gcmemnode *gmnode)"}, {"node_id": 277, "universal_type": "function", "name": "unknown", "text_snippet": "gcmemnode *gcmemnode_next (gcmemnode *gmnode){\n return (gcmemnode*)gcmemnode_memnode(gmnode)->nextn"}, {"node_id": 281, "universal_type": "function", "name": "unknown", "text_snippet": "gcmemnode_next (gcmemnode *gmnode)"}, {"node_id": 301, "universal_type": "function", "name": "gcmemnode_gc_start", "text_snippet": "int gcmemnode_gc_start (gcmemnode *gmnode){\n for (gcmemnode *nd = gmnode; nd != NULL; nd = gcmemnod"}, {"node_id": 303, "universal_type": "function", "name": "unknown", "text_snippet": "gcmemnode_gc_start (gcmemnode *gmnode)"}, {"node_id": 355, "universal_type": "function", "name": "gcmemnode_gc_mark", "text_snippet": "int gcmemnode_gc_mark (void *address, size_t size, gcmemnode *gmnode){\n memnode *foundmemnode = mem"}, {"node_id": 357, "universal_type": "function", "name": "unknown", "text_snippet": "gcmemnode_gc_mark (void *address, size_t size, gcmemnode *gmnode)"}, {"node_id": 442, "universal_type": "function", "name": "gcmemnode_gc_unmark", "text_snippet": "int gcmemnode_gc_unmark (void *address, size_t size, gcmemnode *gmnode){\n memnode *foundmemnode = m"}, {"node_id": 444, "universal_type": "function", "name": "unknown", "text_snippet": "gcmemnode_gc_unmark (void *address, size_t size, gcmemnode *gmnode)"}, {"node_id": 529, "universal_type": "function", "name": "gcmemnode_gc_markp", "text_snippet": "int gcmemnode_gc_markp (void *address, size_t size, gcmemnode *gmnode, bool *markp){\n memnode *foun"}, {"node_id": 531, "universal_type": "function", "name": "*markp)", "text_snippet": "gcmemnode_gc_markp (void *address, size_t size, gcmemnode *gmnode, bool *markp)"}, {"node_id": 622, "universal_type": "function", "name": "gcmemnode_gc_end", "text_snippet": "int gcmemnode_gc_end (gcmemnode *gmnode){\n for (gcmemnode *nd = gmnode; nd != NULL; nd = gcmemnode_"}, {"node_id": 624, "universal_type": "function", "name": "unknown", "text_snippet": "gcmemnode_gc_end (gcmemnode *gmnode)"}], "class_declarations": [], "import_statements": [{"node_id": 0, "text": "#include <stddef.h>\n"}, {"node_id": 1, "text": "#include"}, {"node_id": 3, "text": "#include <stdlib.h>\n"}, {"node_id": 4, "text": "#include"}, {"node_id": 6, "text": "#include <stdbool.h>\n"}, {"node_id": 7, "text": "#include"}, {"node_id": 9, "text": "#include \"memnode.h\"\n"}, {"node_id": 10, "text": "#include"}, {"node_id": 12, "text": "#include \"bitarray.h\"\n"}, {"node_id": 13, "text": "#include"}, {"node_id": 15, "text": "#include \"gcmemnode.h\"\n"}, {"node_id": 16, "text": "#include"}]}, "original_source_code": "\n#include <stddef.h>\n#include <stdlib.h>\n#include <stdbool.h>\n#include \"memnode.h\"\n#include \"bitarray.h\"\n#include \"gcmemnode.h\"\n\nvoid gcmemnode_init (void *sequence, size_t size, bitarray *reservemask, bitarray *gcmarks, gcmemnode *nextnode, gcmemnode *gmnode){\n memnode_init(sequence, size, reservemask, (memnode*)nextnode, &(gmnode->memnode));\n gmnode->gcmarks = gcmarks;\n}\n\ngcmemnode *make_gcmemnode (size_t size, gcmemnode *nextnode){\n gcmemnode *gmnode = malloc(sizeof(gcmemnode));\n if (gmnode == NULL){\n }\n uint8_t *gmnodeseq = malloc(sizeof(uint8_t) * size);\n if (gmnodeseq == NULL){\n }\n bitarray *reservemask = make_bitarray(size);\n if (reservemask == NULL){\n }\n bitarray *gcmarks = make_bitarray(size);\n if (gcmarks == NULL){\n }\n gcmemnode_init(gmnodeseq, size, reservemask, gcmarks, nextnode, gmnode);\n return gmnode;\n}\n\nvoid free_gcmemnode (gcmemnode *gmnode){\n free_bitarray(gmnode->memnode.reservemask);\n free_bitarray(gmnode->gcmarks);\n free(gmnode->memnode.sequence);\n free(gmnode);\n}\n\nvoid free_gcmemnode_all (gcmemnode *gmnode){\n gcmemnode *gmnd = gmnode;\n while (gmnd != NULL){\n gcmemnode *nextnode = gcmemnode_next(gmnd);\n free_gcmemnode(gmnd);\n gmnd = nextnode;\n }\n}\n\nmemnode *gcmemnode_memnode (gcmemnode *gmnode){\n return &(gmnode->memnode);\n}\n\ngcmemnode *gcmemnode_next (gcmemnode *gmnode){\n return (gcmemnode*)gcmemnode_memnode(gmnode)->nextnode;\n}\n\nint gcmemnode_gc_start (gcmemnode *gmnode){\n for (gcmemnode *nd = gmnode; nd != NULL; nd = gcmemnode_next(nd)){\n if (bitarray_fill(0, 0, bitarray_length(nd->gcmarks), nd->gcmarks) != 0){\n return 1;\n }\n }\n return 0;\n}\n\nint gcmemnode_gc_mark (void *address, size_t size, gcmemnode *gmnode){\n memnode *foundmemnode = memnode_find(address, gcmemnode_memnode(gmnode));\n if (foundmemnode == NULL){\n return 1;\n }\n size_t offset = address - foundmemnode->sequence;\n gcmemnode *foundgmnode = (gcmemnode*)foundmemnode;\n if (bitarray_fill(1, offset, offset + size, foundgmnode->gcmarks) != 0){\n return 1;\n }\n return 0;\n}\n\nint gcmemnode_gc_unmark (void *address, size_t size, gcmemnode *gmnode){\n memnode *foundmemnode = memnode_find(address, gcmemnode_memnode(gmnode));\n if (foundmemnode == NULL){\n return 1;\n }\n size_t offset = address - foundmemnode->sequence;\n gcmemnode *foundgmnode = (gcmemnode*)foundmemnode;\n if (bitarray_fill(0, offset, offset + size, foundgmnode->gcmarks) != 0){\n return 1;\n }\n return 0;\n}\n\nint gcmemnode_gc_markp (void *address, size_t size, gcmemnode *gmnode, bool *markp){\n memnode *foundmemnode = memnode_find(address, gcmemnode_memnode(gmnode));\n if (foundmemnode == NULL){\n return 1;\n }\n size_t offset = address - foundmemnode->sequence;\n gcmemnode *foundgmnode = (gcmemnode*)foundmemnode;\n if (bitarray_fillp(1, offset, offset + size, foundgmnode->gcmarks, markp) != 0){\n return 1;\n }\n return 0;\n}\n\nint gcmemnode_gc_end (gcmemnode *gmnode){\n for (gcmemnode *nd = gmnode; nd != NULL; nd = gcmemnode_next(nd)){\n if (bitarray_copy(nd->gcmarks, gcmemnode_memnode(nd)->reservemask) != 0){\n return 1;\n }\n }\n return 0;\n}\n"}
80,092
c
// // TJPTabBarController.h // TJPYingKe // // Created by Walkman on 2016/12/7. // Copyright © 2016年 AaronTang. All rights reserved. // #import <UIKit/UIKit.h> @interface TJPTabBarController : UITabBarController /** 获取单例对象 @return TabBarController */ + (instancetype)shareInstance; /** 添加子控制器的block @param addVCBlock 添加代码块 @return TabBarController */ + (instancetype)tabBarControllerWitnAddChildVCBlock:(void(^)(TJPTabBarController *tabBarVC))addVCBlock; /** * 根据参数, 创建并添加对应的子控制器 * * @param vc 需要添加的控制器(会自动包装导航控制器) * @param isRequired 标题 * @param normalImageName 一般图片名称 * @param selectedImageName 选中图片名称 */ - (void)addChildVC:(UIViewController *)vc normalImageName:(NSString *)normalImageName selectedImageName:(NSString *)selectedImageName isRequiredNavController:(BOOL)isRequired; @end
24.55
33
(translation_unit) "//\n// TJPTabBarController.h\n// TJPYingKe\n//\n// Created by Walkman on 2016/12/7.\n// Copyright © 2016年 AaronTang. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n\n@interface TJPTabBarController : UITabBarController\n\n\n/**\n 获取单例对象\n\n @return TabBarController\n */\n+ (instancetype)shareInstance;\n\n\n/**\n 添加子控制器的block\n\n @param addVCBlock 添加代码块\n @return TabBarController\n */\n+ (instancetype)tabBarControllerWitnAddChildVCBlock:(void(^)(TJPTabBarController *tabBarVC))addVCBlock;\n\n\n/**\n * 根据参数, 创建并添加对应的子控制器\n *\n * @param vc 需要添加的控制器(会自动包装导航控制器)\n * @param isRequired 标题\n * @param normalImageName 一般图片名称\n * @param selectedImageName 选中图片名称\n */\n- (void)addChildVC:(UIViewController *)vc normalImageName:(NSString *)normalImageName selectedImageName:(NSString *)selectedImageName isRequiredNavController:(BOOL)isRequired;\n\n@end\n" (comment) "//" (comment) "// TJPTabBarController.h" (comment) "// TJPYingKe" (comment) "//" (comment) "// Created by Walkman on 2016/12/7." (comment) "// Copyright © 2016年 AaronTang. 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 TJPTabBarController : UITabBarController\n\n\n" (ERROR) "t" (type_identifier) "erface TJ" (identifier) "TabBarController : " (:) "I" (identifier) "abBarController\n\n\n" (comment) "\n 获取单例对象\n\n @return TabBarController\n */\n+ (instancetyp" (expression_statement) ")shareInstance;\n\n\n/**\n 添加子控制器的" (unary_expression) ")shareInstance;\n\n\n/**\n 添加子控制器" (+) ")" (cast_expression) "hareInstance;\n\n\n/**\n 添加子控制器" (() "h" (type_descriptor) "areInstance;" (type_identifier) "areInstance;" ()) "\n" (identifier) "\n\n/**\n 添加子控制器" (;) "的" (comment) "ck\n\n @param addVCBlock 添加代码块\n @return TabBarController\n */\n+ (instancetype)tabBarControllerWitnAd" (ERROR) "ChildVCBlock:(void(^)(TJPTabBarController *tabBarVC))" (unary_expression) "ChildVCBlock:(void(^)(TJPTabBarController *tabBarVC" (+) "C" (cast_expression) "ildVCBlock:(void(^)(TJPTabBarController *tabBarVC" (() "i" (type_descriptor) "ldVCBlock:(v" (type_identifier) "ldVCBlock:(v" ()) "o" (identifier) "id(^)(TJPTabBarController *tabBarVC" (:) ")" (() ")" (declaration) "addVCBlock;\n\n\n/**\n * 根据参数, 创建并添加对应的子控制器\n *\n * @p" (primitive_type) "addV" (parenthesized_declarator) "CBlock;\n\n\n/**\n * 根据参数, 创建并添加对应的子控" (() "C" (ERROR) "Block;\n\n\n/**\n * 根据参数," (^) "B" ()) "l" (() "o" (identifier) "ck;\n\n\n/**\n * 根据参数," (pointer_declarator) "创建并添加对应的子" (*) "创" (identifier) "建并添加对应的子" ()) "控" (ERROR) "制器\n *\n * @" ()) "制" (identifier) "器\n *\n * @" (;) "p" (comment) "m vc 需要添加的控制器(会自动包装导航控制器)\n * @param isRequired 标题\n * @param normalImageName 一般图片名称\n * @param selectedImageName 选中图片名称\n */\n- (void)addChildVC:(UIViewController *)vc normalImageName:(NSString *)normalImageName selectedImageName:(NSString *)selectedImageName " (ERROR) "sRequiredNavController:(BOOL)isRequired;\n\n@end\n" (binary_expression) "sRequiredNavController:(BOOL)isRequired;\n\n@end\n" (binary_expression) "sRequiredNavController:(BOOL)isRequired;\n\n@end\n" (binary_expression) "sRequiredNavController:(BOOL)isRequired;\n\n@end\n" (unary_expression) "sRequiredNavContro" (-) "s" (cast_expression) "equiredNavContro" (() "e" (type_descriptor) "quir" (primitive_type) "quir" ()) "e" (identifier) "dNavContro" (ERROR) "ller:(BOOL)isRequi" (:) "l" (() "l" (identifier) "er:(BOOL)isRequi" (*) "e" (ERROR) "d;\n" ()) "d" (identifier) ";\n" (identifier) "@end\n" (ERROR) "" (:) "" (() "" (identifier) "" (*) "" (ERROR) "" ()) "" (identifier) "" (identifier) "" (ERROR) "" (:) "" (() "" (identifier) "" (*) "" (ERROR) "" ()) "" (identifier) "" (identifier) "" (:) "" (() "" (identifier) "" ()) "" (identifier) "" (;) "" (ERROR) "" (identifier) ""
105
13
{"language": "c", "success": true, "metadata": {"lines": 33, "avg_line_length": 24.55, "nodes": 62, "errors": 0, "source_hash": "6a6266eb3173a3398bc32d7fc450c662fc1c49295fed8f12893c836d396709b0", "categorized_nodes": 33}, "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 TJPTabBarController : UITabBarController\n\n\n", "parent": null, "children": [4, 5, 6, 7], "start_point": {"row": 10, "column": 0}, "end_point": {"row": 10, "column": 51}}, {"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 TJ", "parent": 3, "children": [], "start_point": {"row": 10, "column": 1}, "end_point": {"row": 10, "column": 10}}, {"id": 6, "type": "identifier", "text": "TabBarController : ", "parent": 3, "children": [], "start_point": {"row": 10, "column": 11}, "end_point": {"row": 10, "column": 30}}, {"id": 7, "type": "identifier", "text": "abBarController\n\n\n", "parent": 3, "children": [], "start_point": {"row": 10, "column": 33}, "end_point": {"row": 10, "column": 51}}, {"id": 8, "type": "unary_expression", "text": ")shareInstance;\n\n\n/**\n \u6dfb\u52a0\u5b50\u63a7\u5236\u5668", "parent": null, "children": [9], "start_point": {"row": 18, "column": 0}, "end_point": {"row": 18, "column": 29}}, {"id": 9, "type": "cast_expression", "text": "hareInstance;\n\n\n/**\n \u6dfb\u52a0\u5b50\u63a7\u5236\u5668", "parent": 8, "children": [10, 12], "start_point": {"row": 18, "column": 2}, "end_point": {"row": 18, "column": 29}}, {"id": 10, "type": "type_descriptor", "text": "areInstance;", "parent": 9, "children": [11], "start_point": {"row": 18, "column": 3}, "end_point": {"row": 18, "column": 15}}, {"id": 11, "type": "type_identifier", "text": "areInstance;", "parent": 10, "children": [], "start_point": {"row": 18, "column": 3}, "end_point": {"row": 18, "column": 15}}, {"id": 12, "type": "identifier", "text": "\n\n/**\n \u6dfb\u52a0\u5b50\u63a7\u5236\u5668", "parent": 9, "children": [], "start_point": {"row": 18, "column": 16}, "end_point": {"row": 18, "column": 29}}, {"id": 13, "type": "ERROR", "text": "ChildVCBlock:(void(^)(TJPTabBarController *tabBarVC))", "parent": null, "children": [14], "start_point": {"row": 27, "column": 0}, "end_point": {"row": 27, "column": 53}}, {"id": 14, "type": "unary_expression", "text": "ChildVCBlock:(void(^)(TJPTabBarController *tabBarVC", "parent": 13, "children": [15, 16], "start_point": {"row": 27, "column": 0}, "end_point": {"row": 27, "column": 51}}, {"id": 15, "type": "+", "text": "C", "parent": 14, "children": [], "start_point": {"row": 27, "column": 0}, "end_point": {"row": 27, "column": 1}}, {"id": 16, "type": "cast_expression", "text": "ildVCBlock:(void(^)(TJPTabBarController *tabBarVC", "parent": 14, "children": [17, 19], "start_point": {"row": 27, "column": 2}, "end_point": {"row": 27, "column": 51}}, {"id": 17, "type": "type_descriptor", "text": "ldVCBlock:(v", "parent": 16, "children": [18], "start_point": {"row": 27, "column": 3}, "end_point": {"row": 27, "column": 15}}, {"id": 18, "type": "type_identifier", "text": "ldVCBlock:(v", "parent": 17, "children": [], "start_point": {"row": 27, "column": 3}, "end_point": {"row": 27, "column": 15}}, {"id": 19, "type": "identifier", "text": "id(^)(TJPTabBarController *tabBarVC", "parent": 16, "children": [], "start_point": {"row": 27, "column": 16}, "end_point": {"row": 27, "column": 51}}, {"id": 20, "type": "declaration", "text": "addVCBlock;\n\n\n/**\n * \u6839\u636e\u53c2\u6570, \u521b\u5efa\u5e76\u6dfb\u52a0\u5bf9\u5e94\u7684\u5b50\u63a7\u5236\u5668\n *\n * @p", "parent": null, "children": [21, 22, 29], "start_point": {"row": 27, "column": 53}, "end_point": {"row": 27, "column": 103}}, {"id": 21, "type": "primitive_type", "text": "addV", "parent": 20, "children": [], "start_point": {"row": 27, "column": 53}, "end_point": {"row": 27, "column": 57}}, {"id": 22, "type": "parenthesized_declarator", "text": "CBlock;\n\n\n/**\n * \u6839\u636e\u53c2\u6570, \u521b\u5efa\u5e76\u6dfb\u52a0\u5bf9\u5e94\u7684\u5b50\u63a7", "parent": 20, "children": [23, 26], "start_point": {"row": 27, "column": 57}, "end_point": {"row": 27, "column": 91}}, {"id": 23, "type": "ERROR", "text": "Block;\n\n\n/**\n * \u6839\u636e\u53c2\u6570,", "parent": 22, "children": [24, 25], "start_point": {"row": 27, "column": 58}, "end_point": {"row": 27, "column": 80}}, {"id": 24, "type": "^", "text": "B", "parent": 23, "children": [], "start_point": {"row": 27, "column": 58}, "end_point": {"row": 27, "column": 59}}, {"id": 25, "type": "identifier", "text": "ck;\n\n\n/**\n * \u6839\u636e\u53c2\u6570,", "parent": 23, "children": [], "start_point": {"row": 27, "column": 61}, "end_point": {"row": 27, "column": 80}}, {"id": 26, "type": "pointer_declarator", "text": "\u521b\u5efa\u5e76\u6dfb\u52a0\u5bf9\u5e94\u7684\u5b50", "parent": 22, "children": [27, 28], "start_point": {"row": 27, "column": 81}, "end_point": {"row": 27, "column": 90}}, {"id": 27, "type": "*", "text": "\u521b", "parent": 26, "children": [], "start_point": {"row": 27, "column": 81}, "end_point": {"row": 27, "column": 82}}, {"id": 28, "type": "identifier", "text": "\u5efa\u5e76\u6dfb\u52a0\u5bf9\u5e94\u7684\u5b50", "parent": 26, "children": [], "start_point": {"row": 27, "column": 82}, "end_point": {"row": 27, "column": 90}}, {"id": 29, "type": "ERROR", "text": "\u5236\u5668\n *\n * @", "parent": 20, "children": [30], "start_point": {"row": 27, "column": 91}, "end_point": {"row": 27, "column": 102}}, {"id": 30, "type": "identifier", "text": "\u5668\n *\n * @", "parent": 29, "children": [], "start_point": {"row": 27, "column": 92}, "end_point": {"row": 27, "column": 102}}, {"id": 31, "type": "ERROR", "text": "sRequiredNavController:(BOOL)isRequired;\n\n@end\n", "parent": null, "children": [32, 58, 59, 60, 61], "start_point": {"row": 38, "column": 0}, "end_point": {"row": 40, "column": 4}}, {"id": 32, "type": "binary_expression", "text": "sRequiredNavController:(BOOL)isRequired;\n\n@end\n", "parent": 31, "children": [33, 52, 54, 55, 57], "start_point": {"row": 38, "column": 0}, "end_point": {"row": 38, "column": 157}}, {"id": 33, "type": "binary_expression", "text": "sRequiredNavController:(BOOL)isRequired;\n\n@end\n", "parent": 32, "children": [34, 46, 48, 49, 51], "start_point": {"row": 38, "column": 0}, "end_point": {"row": 38, "column": 103}}, {"id": 34, "type": "binary_expression", "text": "sRequiredNavController:(BOOL)isRequired;\n\n@end\n", "parent": 33, "children": [35, 41, 43, 44, 45], "start_point": {"row": 38, "column": 0}, "end_point": {"row": 38, "column": 57}}, {"id": 35, "type": "unary_expression", "text": "sRequiredNavContro", "parent": 34, "children": [36, 37], "start_point": {"row": 38, "column": 0}, "end_point": {"row": 38, "column": 18}}, {"id": 36, "type": "-", "text": "s", "parent": 35, "children": [], "start_point": {"row": 38, "column": 0}, "end_point": {"row": 38, "column": 1}}, {"id": 37, "type": "cast_expression", "text": "equiredNavContro", "parent": 35, "children": [38, 40], "start_point": {"row": 38, "column": 2}, "end_point": {"row": 38, "column": 18}}, {"id": 38, "type": "type_descriptor", "text": "quir", "parent": 37, "children": [39], "start_point": {"row": 38, "column": 3}, "end_point": {"row": 38, "column": 7}}, {"id": 39, "type": "primitive_type", "text": "quir", "parent": 38, "children": [], "start_point": {"row": 38, "column": 3}, "end_point": {"row": 38, "column": 7}}, {"id": 40, "type": "identifier", "text": "dNavContro", "parent": 37, "children": [], "start_point": {"row": 38, "column": 8}, "end_point": {"row": 38, "column": 18}}, {"id": 41, "type": "ERROR", "text": "ller:(BOOL)isRequi", "parent": 34, "children": [42], "start_point": {"row": 38, "column": 18}, "end_point": {"row": 38, "column": 36}}, {"id": 42, "type": "identifier", "text": "er:(BOOL)isRequi", "parent": 41, "children": [], "start_point": {"row": 38, "column": 20}, "end_point": {"row": 38, "column": 36}}, {"id": 43, "type": "*", "text": "e", "parent": 34, "children": [], "start_point": {"row": 38, "column": 37}, "end_point": {"row": 38, "column": 38}}, {"id": 44, "type": "ERROR", "text": "d;\n", "parent": 34, "children": [], "start_point": {"row": 38, "column": 38}, "end_point": {"row": 38, "column": 41}}, {"id": 45, "type": "identifier", "text": "@end\n", "parent": 34, "children": [], "start_point": {"row": 38, "column": 42}, "end_point": {"row": 38, "column": 57}}, {"id": 46, "type": "ERROR", "text": "", "parent": 33, "children": [47], "start_point": {"row": 38, "column": 57}, "end_point": {"row": 38, "column": 67}}, {"id": 47, "type": "identifier", "text": "", "parent": 46, "children": [], "start_point": {"row": 38, "column": 59}, "end_point": {"row": 38, "column": 67}}, {"id": 48, "type": "*", "text": "", "parent": 33, "children": [], "start_point": {"row": 38, "column": 68}, "end_point": {"row": 38, "column": 69}}, {"id": 49, "type": "ERROR", "text": "", "parent": 33, "children": [50], "start_point": {"row": 38, "column": 69}, "end_point": {"row": 38, "column": 85}}, {"id": 50, "type": "identifier", "text": "", "parent": 49, "children": [], "start_point": {"row": 38, "column": 70}, "end_point": {"row": 38, "column": 85}}, {"id": 51, "type": "identifier", "text": "", "parent": 33, "children": [], "start_point": {"row": 38, "column": 86}, "end_point": {"row": 38, "column": 103}}, {"id": 52, "type": "ERROR", "text": "", "parent": 32, "children": [53], "start_point": {"row": 38, "column": 103}, "end_point": {"row": 38, "column": 113}}, {"id": 53, "type": "identifier", "text": "", "parent": 52, "children": [], "start_point": {"row": 38, "column": 105}, "end_point": {"row": 38, "column": 113}}, {"id": 54, "type": "*", "text": "", "parent": 32, "children": [], "start_point": {"row": 38, "column": 114}, "end_point": {"row": 38, "column": 115}}, {"id": 55, "type": "ERROR", "text": "", "parent": 32, "children": [56], "start_point": {"row": 38, "column": 115}, "end_point": {"row": 38, "column": 133}}, {"id": 56, "type": "identifier", "text": "", "parent": 55, "children": [], "start_point": {"row": 38, "column": 116}, "end_point": {"row": 38, "column": 133}}, {"id": 57, "type": "identifier", "text": "", "parent": 32, "children": [], "start_point": {"row": 38, "column": 134}, "end_point": {"row": 38, "column": 157}}, {"id": 58, "type": "identifier", "text": "", "parent": 31, "children": [], "start_point": {"row": 38, "column": 159}, "end_point": {"row": 38, "column": 163}}, {"id": 59, "type": "identifier", "text": "", "parent": 31, "children": [], "start_point": {"row": 38, "column": 164}, "end_point": {"row": 38, "column": 174}}, {"id": 60, "type": "ERROR", "text": "", "parent": 31, "children": [], "start_point": {"row": 40, "column": 0}, "end_point": {"row": 40, "column": 1}}, {"id": 61, "type": "identifier", "text": "", "parent": 31, "children": [], "start_point": {"row": 40, "column": 1}, "end_point": {"row": 40, "column": 4}}]}, "node_categories": {"declarations": {"functions": [], "variables": [20], "classes": [], "imports": [], "modules": [], "enums": []}, "statements": {"expressions": [8, 9, 14, 16, 32, 33, 34, 35, 37], "assignments": [], "loops": [], "conditionals": [5, 6, 7, 11, 12, 18, 19, 25, 28, 30, 40, 42, 45, 47, 50, 51, 53, 56, 57, 58, 59, 61], "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// TJPTabBarController.h\n// TJPYingKe\n//\n// Created by Walkman on 2016/12/7.\n// Copyright \u00a9 2016\u5e74 AaronTang. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n\n@interface TJPTabBarController : UITabBarController\n\n\n/**\n \u83b7\u53d6\u5355\u4f8b\u5bf9\u8c61\n\n @return TabBarController\n */\n+ (instancetype)shareInstance;\n\n\n/**\n \u6dfb\u52a0\u5b50\u63a7\u5236\u5668\u7684block\n\n @param addVCBlock \u6dfb\u52a0\u4ee3\u7801\u5757\n @return TabBarController\n */\n+ (instancetype)tabBarControllerWitnAddChildVCBlock:(void(^)(TJPTabBarController *tabBarVC))addVCBlock;\n\n\n/**\n * \u6839\u636e\u53c2\u6570, \u521b\u5efa\u5e76\u6dfb\u52a0\u5bf9\u5e94\u7684\u5b50\u63a7\u5236\u5668\n *\n * @param vc \u9700\u8981\u6dfb\u52a0\u7684\u63a7\u5236\u5668(\u4f1a\u81ea\u52a8\u5305\u88c5\u5bfc\u822a\u63a7\u5236\u5668)\n * @param isRequired \u6807\u9898\n * @param normalImageName \u4e00\u822c\u56fe\u7247\u540d\u79f0\n * @param selectedImageName \u9009\u4e2d\u56fe\u7247\u540d\u79f0\n */\n- (void)addChildVC:(UIViewController *)vc normalImageName:(NSString *)normalImageName selectedImageName:(NSString *)selectedImageName isRequiredNavController:(BOOL)isRequired;\n\n@end\n"}
80,093
c
/* * Copyright (C) 2018 SoloKeys, Inc. <https://solokeys.com/> * * This file is part of Solo. * * Solo is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * Solo is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with Solo. If not, see <https://www.gnu.org/licenses/> * * This code is available under licenses for commercial use. * Please contact SoloKeys for more information. */ /* * app.h * * Created on: Jun 25, 2018 * Author: conor */ #ifndef INC_APP_H_ #define INC_APP_H_ #define USE_PRINTING void usb_transfer_complete(); void spi_transfer_complete(); #define INPUT_ENDPOINT EP2OUT #define OUTPUT_ENDPOINT EP3IN #define INPUT_ENDPOINT_NUM 0x83 #define OUTPUT_ENDPOINT_NUM 0x02 //#define INPUT_ENDPOINT EP1OUT //#define OUTPUT_ENDPOINT EP1IN // //#define INPUT_ENDPOINT_NUM 0x81 //#define OUTPUT_ENDPOINT_NUM 0x01 void delay(int ms); #endif /* INC_APP_H_ */
28.96
45
(translation_unit) "/*\n * Copyright (C) 2018 SoloKeys, Inc. <https://solokeys.com/>\n * \n * This file is part of Solo.\n * \n * Solo is free software: you can redistribute it and/or modify\n * it under the terms of the GNU General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n * \n * Solo is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n * GNU General Public License for more details.\n * \n * You should have received a copy of the GNU General Public License\n * along with Solo. If not, see <https://www.gnu.org/licenses/>\n * \n * This code is available under licenses for commercial use.\n * Please contact SoloKeys for more information.\n */\n/*\n * app.h\n *\n * Created on: Jun 25, 2018\n * Author: conor\n */\n\n#ifndef INC_APP_H_\n#define INC_APP_H_\n\n#define USE_PRINTING\n\nvoid usb_transfer_complete();\nvoid spi_transfer_complete();\n\n\n\n#define INPUT_ENDPOINT EP2OUT\n#define OUTPUT_ENDPOINT EP3IN\n\n#define INPUT_ENDPOINT_NUM 0x83\n#define OUTPUT_ENDPOINT_NUM 0x02\n\n//#define INPUT_ENDPOINT EP1OUT\n//#define OUTPUT_ENDPOINT EP1IN\n//\n//#define INPUT_ENDPOINT_NUM 0x81\n//#define OUTPUT_ENDPOINT_NUM 0x01\n\n\nvoid delay(int ms);\n\n#endif /* INC_APP_H_ */\n" (comment) "/*\n * Copyright (C) 2018 SoloKeys, Inc. <https://solokeys.com/>\n * \n * This file is part of Solo.\n * \n * Solo is free software: you can redistribute it and/or modify\n * it under the terms of the GNU General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n * \n * Solo is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n * GNU General Public License for more details.\n * \n * You should have received a copy of the GNU General Public License\n * along with Solo. If not, see <https://www.gnu.org/licenses/>\n * \n * This code is available under licenses for commercial use.\n * Please contact SoloKeys for more information.\n */" (comment) "/*\n * app.h\n *\n * Created on: Jun 25, 2018\n * Author: conor\n */" (preproc_ifdef) "#ifndef INC_APP_H_\n#define INC_APP_H_\n\n#define USE_PRINTING\n\nvoid usb_transfer_complete();\nvoid spi_transfer_complete();\n\n\n\n#define INPUT_ENDPOINT EP2OUT\n#define OUTPUT_ENDPOINT EP3IN\n\n#define INPUT_ENDPOINT_NUM 0x83\n#define OUTPUT_ENDPOINT_NUM 0x02\n\n//#define INPUT_ENDPOINT EP1OUT\n//#define OUTPUT_ENDPOINT EP1IN\n//\n//#define INPUT_ENDPOINT_NUM 0x81\n//#define OUTPUT_ENDPOINT_NUM 0x01\n\n\nvoid delay(int ms);\n\n#endif" (#ifndef) "#ifndef" (identifier) "INC_APP_H_" (preproc_def) "#define INC_APP_H_\n" (#define) "#define" (identifier) "INC_APP_H_" (preproc_def) "#define USE_PRINTING\n" (#define) "#define" (identifier) "USE_PRINTING" (declaration) "void usb_transfer_complete();" (primitive_type) "void" (function_declarator) "usb_transfer_complete()" (identifier) "usb_transfer_complete" (parameter_list) "()" (() "(" ()) ")" (;) ";" (declaration) "void spi_transfer_complete();" (primitive_type) "void" (function_declarator) "spi_transfer_complete()" (identifier) "spi_transfer_complete" (parameter_list) "()" (() "(" ()) ")" (;) ";" (preproc_def) "#define INPUT_ENDPOINT EP2OUT\n" (#define) "#define" (identifier) "INPUT_ENDPOINT" (preproc_arg) "EP2OUT" (preproc_def) "#define OUTPUT_ENDPOINT EP3IN\n" (#define) "#define" (identifier) "OUTPUT_ENDPOINT" (preproc_arg) "EP3IN" (preproc_def) "#define INPUT_ENDPOINT_NUM 0x83\n" (#define) "#define" (identifier) "INPUT_ENDPOINT_NUM" (preproc_arg) "0x83" (preproc_def) "#define OUTPUT_ENDPOINT_NUM 0x02\n" (#define) "#define" (identifier) "OUTPUT_ENDPOINT_NUM" (preproc_arg) "0x02" (comment) "//#define INPUT_ENDPOINT EP1OUT" (comment) "//#define OUTPUT_ENDPOINT EP1IN" (comment) "//" (comment) "//#define INPUT_ENDPOINT_NUM 0x81" (comment) "//#define OUTPUT_ENDPOINT_NUM 0x01" (declaration) "void delay(int ms);" (primitive_type) "void" (function_declarator) "delay(int ms)" (identifier) "delay" (parameter_list) "(int ms)" (() "(" (parameter_declaration) "int ms" (primitive_type) "int" (identifier) "ms" ()) ")" (;) ";" (#endif) "#endif" (comment) "/* INC_APP_H_ */"
62
0
{"language": "c", "success": true, "metadata": {"lines": 45, "avg_line_length": 28.96, "nodes": 44, "errors": 0, "source_hash": "8fb743b137a41fece56146a84d753bec715cb87de2f178cf2f27d4ab9557eabc", "categorized_nodes": 21}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef INC_APP_H_\n#define INC_APP_H_\n\n#define USE_PRINTING\n\nvoid usb_transfer_complete();\nvoid spi_transfer_complete();\n\n\n\n#define INPUT_ENDPOINT\t\tEP2OUT\n#define OUTPUT_ENDPOINT\t\tEP3IN\n\n#define INPUT_ENDPOINT_NUM\t\t0x83\n#define OUTPUT_ENDPOINT_NUM\t\t0x02\n\n//#define INPUT_ENDPOINT\t\tEP1OUT\n//#define OUTPUT_ENDPOINT\t\tEP1IN\n//\n//#define INPUT_ENDPOINT_NUM\t\t0x81\n//#define OUTPUT_ENDPOINT_NUM\t\t0x01\n\n\nvoid delay(int ms);\n\n#endif", "parent": null, "children": [1, 2, 3, 6, 9, 14, 19, 23, 27, 31, 35, 43], "start_point": {"row": 28, "column": 0}, "end_point": {"row": 53, "column": 6}}, {"id": 1, "type": "#ifndef", "text": "#ifndef", "parent": 0, "children": [], "start_point": {"row": 28, "column": 0}, "end_point": {"row": 28, "column": 7}}, {"id": 2, "type": "identifier", "text": "INC_APP_H_", "parent": 0, "children": [], "start_point": {"row": 28, "column": 8}, "end_point": {"row": 28, "column": 18}}, {"id": 3, "type": "preproc_def", "text": "#define INC_APP_H_\n", "parent": 0, "children": [4, 5], "start_point": {"row": 29, "column": 0}, "end_point": {"row": 30, "column": 0}}, {"id": 4, "type": "#define", "text": "#define", "parent": 3, "children": [], "start_point": {"row": 29, "column": 0}, "end_point": {"row": 29, "column": 7}}, {"id": 5, "type": "identifier", "text": "INC_APP_H_", "parent": 3, "children": [], "start_point": {"row": 29, "column": 8}, "end_point": {"row": 29, "column": 18}}, {"id": 6, "type": "preproc_def", "text": "#define USE_PRINTING\n", "parent": 0, "children": [7, 8], "start_point": {"row": 31, "column": 0}, "end_point": {"row": 32, "column": 0}}, {"id": 7, "type": "#define", "text": "#define", "parent": 6, "children": [], "start_point": {"row": 31, "column": 0}, "end_point": {"row": 31, "column": 7}}, {"id": 8, "type": "identifier", "text": "USE_PRINTING", "parent": 6, "children": [], "start_point": {"row": 31, "column": 8}, "end_point": {"row": 31, "column": 20}}, {"id": 9, "type": "declaration", "text": "void usb_transfer_complete();", "parent": 0, "children": [10, 11], "start_point": {"row": 33, "column": 0}, "end_point": {"row": 33, "column": 29}}, {"id": 10, "type": "primitive_type", "text": "void", "parent": 9, "children": [], "start_point": {"row": 33, "column": 0}, "end_point": {"row": 33, "column": 4}}, {"id": 11, "type": "function_declarator", "text": "usb_transfer_complete()", "parent": 9, "children": [12, 13], "start_point": {"row": 33, "column": 5}, "end_point": {"row": 33, "column": 28}}, {"id": 12, "type": "identifier", "text": "usb_transfer_complete", "parent": 11, "children": [], "start_point": {"row": 33, "column": 5}, "end_point": {"row": 33, "column": 26}}, {"id": 13, "type": "parameter_list", "text": "()", "parent": 11, "children": [], "start_point": {"row": 33, "column": 26}, "end_point": {"row": 33, "column": 28}}, {"id": 14, "type": "declaration", "text": "void spi_transfer_complete();", "parent": 0, "children": [15, 16], "start_point": {"row": 34, "column": 0}, "end_point": {"row": 34, "column": 29}}, {"id": 15, "type": "primitive_type", "text": "void", "parent": 14, "children": [], "start_point": {"row": 34, "column": 0}, "end_point": {"row": 34, "column": 4}}, {"id": 16, "type": "function_declarator", "text": "spi_transfer_complete()", "parent": 14, "children": [17, 18], "start_point": {"row": 34, "column": 5}, "end_point": {"row": 34, "column": 28}}, {"id": 17, "type": "identifier", "text": "spi_transfer_complete", "parent": 16, "children": [], "start_point": {"row": 34, "column": 5}, "end_point": {"row": 34, "column": 26}}, {"id": 18, "type": "parameter_list", "text": "()", "parent": 16, "children": [], "start_point": {"row": 34, "column": 26}, "end_point": {"row": 34, "column": 28}}, {"id": 19, "type": "preproc_def", "text": "#define INPUT_ENDPOINT\t\tEP2OUT\n", "parent": 0, "children": [20, 21, 22], "start_point": {"row": 38, "column": 0}, "end_point": {"row": 39, "column": 0}}, {"id": 20, "type": "#define", "text": "#define", "parent": 19, "children": [], "start_point": {"row": 38, "column": 0}, "end_point": {"row": 38, "column": 7}}, {"id": 21, "type": "identifier", "text": "INPUT_ENDPOINT", "parent": 19, "children": [], "start_point": {"row": 38, "column": 8}, "end_point": {"row": 38, "column": 22}}, {"id": 22, "type": "preproc_arg", "text": "EP2OUT", "parent": 19, "children": [], "start_point": {"row": 38, "column": 24}, "end_point": {"row": 38, "column": 30}}, {"id": 23, "type": "preproc_def", "text": "#define OUTPUT_ENDPOINT\t\tEP3IN\n", "parent": 0, "children": [24, 25, 26], "start_point": {"row": 39, "column": 0}, "end_point": {"row": 40, "column": 0}}, {"id": 24, "type": "#define", "text": "#define", "parent": 23, "children": [], "start_point": {"row": 39, "column": 0}, "end_point": {"row": 39, "column": 7}}, {"id": 25, "type": "identifier", "text": "OUTPUT_ENDPOINT", "parent": 23, "children": [], "start_point": {"row": 39, "column": 8}, "end_point": {"row": 39, "column": 23}}, {"id": 26, "type": "preproc_arg", "text": "EP3IN", "parent": 23, "children": [], "start_point": {"row": 39, "column": 25}, "end_point": {"row": 39, "column": 30}}, {"id": 27, "type": "preproc_def", "text": "#define INPUT_ENDPOINT_NUM\t\t0x83\n", "parent": 0, "children": [28, 29, 30], "start_point": {"row": 41, "column": 0}, "end_point": {"row": 42, "column": 0}}, {"id": 28, "type": "#define", "text": "#define", "parent": 27, "children": [], "start_point": {"row": 41, "column": 0}, "end_point": {"row": 41, "column": 7}}, {"id": 29, "type": "identifier", "text": "INPUT_ENDPOINT_NUM", "parent": 27, "children": [], "start_point": {"row": 41, "column": 8}, "end_point": {"row": 41, "column": 26}}, {"id": 30, "type": "preproc_arg", "text": "0x83", "parent": 27, "children": [], "start_point": {"row": 41, "column": 28}, "end_point": {"row": 41, "column": 32}}, {"id": 31, "type": "preproc_def", "text": "#define OUTPUT_ENDPOINT_NUM\t\t0x02\n", "parent": 0, "children": [32, 33, 34], "start_point": {"row": 42, "column": 0}, "end_point": {"row": 43, "column": 0}}, {"id": 32, "type": "#define", "text": "#define", "parent": 31, "children": [], "start_point": {"row": 42, "column": 0}, "end_point": {"row": 42, "column": 7}}, {"id": 33, "type": "identifier", "text": "OUTPUT_ENDPOINT_NUM", "parent": 31, "children": [], "start_point": {"row": 42, "column": 8}, "end_point": {"row": 42, "column": 27}}, {"id": 34, "type": "preproc_arg", "text": "0x02", "parent": 31, "children": [], "start_point": {"row": 42, "column": 29}, "end_point": {"row": 42, "column": 33}}, {"id": 35, "type": "declaration", "text": "void delay(int ms);", "parent": 0, "children": [36, 37], "start_point": {"row": 51, "column": 0}, "end_point": {"row": 51, "column": 19}}, {"id": 36, "type": "primitive_type", "text": "void", "parent": 35, "children": [], "start_point": {"row": 51, "column": 0}, "end_point": {"row": 51, "column": 4}}, {"id": 37, "type": "function_declarator", "text": "delay(int ms)", "parent": 35, "children": [38, 39], "start_point": {"row": 51, "column": 5}, "end_point": {"row": 51, "column": 18}}, {"id": 38, "type": "identifier", "text": "delay", "parent": 37, "children": [], "start_point": {"row": 51, "column": 5}, "end_point": {"row": 51, "column": 10}}, {"id": 39, "type": "parameter_list", "text": "(int ms)", "parent": 37, "children": [40], "start_point": {"row": 51, "column": 10}, "end_point": {"row": 51, "column": 18}}, {"id": 40, "type": "parameter_declaration", "text": "int ms", "parent": 39, "children": [41, 42], "start_point": {"row": 51, "column": 11}, "end_point": {"row": 51, "column": 17}}, {"id": 41, "type": "primitive_type", "text": "int", "parent": 40, "children": [], "start_point": {"row": 51, "column": 11}, "end_point": {"row": 51, "column": 14}}, {"id": 42, "type": "identifier", "text": "ms", "parent": 40, "children": [], "start_point": {"row": 51, "column": 15}, "end_point": {"row": 51, "column": 17}}, {"id": 43, "type": "#endif", "text": "#endif", "parent": 0, "children": [], "start_point": {"row": 53, "column": 0}, "end_point": {"row": 53, "column": 6}}]}, "node_categories": {"declarations": {"functions": [11, 16, 37], "variables": [9, 14, 35, 40], "classes": [], "imports": [], "modules": [], "enums": []}, "statements": {"expressions": [], "assignments": [], "loops": [], "conditionals": [0, 1, 2, 5, 8, 12, 17, 21, 25, 29, 33, 38, 42, 43], "returns": [], "exceptions": []}, "expressions": {"calls": [], "literals": [], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [{"node_id": 11, "universal_type": "function", "name": "unknown", "text_snippet": "usb_transfer_complete()"}, {"node_id": 16, "universal_type": "function", "name": "unknown", "text_snippet": "spi_transfer_complete()"}, {"node_id": 37, "universal_type": "function", "name": "unknown", "text_snippet": "delay(int ms)"}], "class_declarations": [], "import_statements": []}, "original_source_code": "/*\n * Copyright (C) 2018 SoloKeys, Inc. <https://solokeys.com/>\n * \n * This file is part of Solo.\n * \n * Solo is free software: you can redistribute it and/or modify\n * it under the terms of the GNU General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n * \n * Solo is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n * GNU General Public License for more details.\n * \n * You should have received a copy of the GNU General Public License\n * along with Solo. If not, see <https://www.gnu.org/licenses/>\n * \n * This code is available under licenses for commercial use.\n * Please contact SoloKeys for more information.\n */\n/*\n * app.h\n *\n * Created on: Jun 25, 2018\n * Author: conor\n */\n\n#ifndef INC_APP_H_\n#define INC_APP_H_\n\n#define USE_PRINTING\n\nvoid usb_transfer_complete();\nvoid spi_transfer_complete();\n\n\n\n#define INPUT_ENDPOINT\t\tEP2OUT\n#define OUTPUT_ENDPOINT\t\tEP3IN\n\n#define INPUT_ENDPOINT_NUM\t\t0x83\n#define OUTPUT_ENDPOINT_NUM\t\t0x02\n\n//#define INPUT_ENDPOINT\t\tEP1OUT\n//#define OUTPUT_ENDPOINT\t\tEP1IN\n//\n//#define INPUT_ENDPOINT_NUM\t\t0x81\n//#define OUTPUT_ENDPOINT_NUM\t\t0x01\n\n\nvoid delay(int ms);\n\n#endif /* INC_APP_H_ */\n"}
80,094
c
/* ChibiOS/RT - Copyright (C) 2006,2007,2008,2009,2010, 2011,2012,2013 <NAME>. This file is part of ChibiOS/RT. ChibiOS/RT is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3 of the License, or (at your option) any later version. ChibiOS/RT is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>. --- A special exception to the GPL can be applied should you wish to distribute a combined work that includes ChibiOS/RT, without being obliged to provide the source code for any proprietary components. See the file exception.txt for full details of how and when the exception can be applied. */ /** * @file IAR/ARMCMx/chcore_v7m.c * @brief ARMv7-M architecture port code. * * @addtogroup IAR_ARMCMx_V7M_CORE * @{ */ #include "ch.h" /*===========================================================================*/ /* Port interrupt handlers. */ /*===========================================================================*/ /** * @brief System Timer vector. * @details This interrupt is used as system tick. * @note The timer must be initialized in the startup code. */ CH_IRQ_HANDLER(SysTickVector) { CH_IRQ_PROLOGUE(); chSysLockFromIsr(); chSysTimerHandlerI(); chSysUnlockFromIsr(); CH_IRQ_EPILOGUE(); } #if !CORTEX_SIMPLIFIED_PRIORITY || defined(__DOXYGEN__) /** * @brief SVC vector. * @details The SVC vector is used for exception mode re-entering after a * context switch. * @note The PendSV vector is only used in advanced kernel mode. */ void SVCallVector(void) { struct extctx *ctxp; #if CORTEX_USE_FPU /* Enforcing unstacking of the FP part of the context.*/ SCB_FPCCR &= ~FPCCR_LSPACT; #endif /* Current PSP value.*/ ctxp = (struct extctx *)__get_PSP(); /* Discarding the current exception context and positioning the stack to point to the real one.*/ ctxp++; /* Restoring real position of the original stack frame.*/ __set_PSP((unsigned long)ctxp); port_unlock_from_isr(); } #endif /* !CORTEX_SIMPLIFIED_PRIORITY */ #if CORTEX_SIMPLIFIED_PRIORITY || defined(__DOXYGEN__) /** * @brief PendSV vector. * @details The PendSV vector is used for exception mode re-entering after a * context switch. * @note The PendSV vector is only used in compact kernel mode. */ void PendSVVector(void) { struct extctx *ctxp; #if CORTEX_USE_FPU /* Enforcing unstacking of the FP part of the context.*/ SCB_FPCCR &= ~FPCCR_LSPACT; #endif /* Current PSP value.*/ ctxp = (struct extctx *)__get_PSP(); /* Discarding the current exception context and positioning the stack to point to the real one.*/ ctxp++; /* Restoring real position of the original stack frame.*/ __set_PSP((unsigned long)ctxp); } #endif /* CORTEX_SIMPLIFIED_PRIORITY */ /*===========================================================================*/ /* Port exported functions. */ /*===========================================================================*/ /** * @brief Port-related initialization code. */ void _port_init(void) { /* Initialization of the vector table and priority related settings.*/ SCB_VTOR = CORTEX_VTOR_INIT; SCB_AIRCR = AIRCR_VECTKEY | AIRCR_PRIGROUP(CORTEX_PRIGROUP_INIT); #if CORTEX_USE_FPU { /* Initializing the FPU context save in lazy mode.*/ SCB_FPCCR = FPCCR_ASPEN | FPCCR_LSPEN; /* CP10 and CP11 set to full access.*/ SCB_CPACR |= 0x00F00000; /* Enables FPU context save/restore on exception entry/exit (FPCA bit).*/ __set_CONTROL(__get_CONTROL() | 4); /* FPSCR and FPDSCR initially zero.*/ __set_FPSCR(0); SCB_FPDSCR = 0; } #endif /* Initialization of the system vectors used by the port.*/ nvicSetSystemHandlerPriority(HANDLER_SVCALL, CORTEX_PRIORITY_MASK(CORTEX_PRIORITY_SVCALL)); nvicSetSystemHandlerPriority(HANDLER_PENDSV, CORTEX_PRIORITY_MASK(CORTEX_PRIORITY_PENDSV)); nvicSetSystemHandlerPriority(HANDLER_SYSTICK, CORTEX_PRIORITY_MASK(CORTEX_PRIORITY_SYSTICK)); } /** * @brief Exception exit redirection to _port_switch_from_isr(). */ void _port_irq_epilogue(void) { port_lock_from_isr(); if ((SCB_ICSR & ICSR_RETTOBASE) != 0) { struct extctx *ctxp; #if CORTEX_USE_FPU /* Enforcing a lazy FPU state save. Note, it goes in the original context because the FPCAR register has not been modified.*/ (void)__get_FPSCR(); #endif /* Current PSP value.*/ ctxp = (struct extctx *)__get_PSP(); /* Adding an artificial exception return context, there is no need to populate it fully.*/ ctxp--; ctxp->xpsr = (regarm_t)0x01000000; #if CORTEX_USE_FPU ctxp->fpscr = (regarm_t)SCB_FPDSCR; #endif __set_PSP((unsigned long)ctxp); /* The exit sequence is different depending on if a preemption is required or not.*/ if (chSchIsPreemptionRequired()) { /* Preemption is required we need to enforce a context switch.*/ ctxp->pc = (regarm_t)_port_switch_from_isr; } else { /* Preemption not required, we just need to exit the exception atomically.*/ ctxp->pc = (regarm_t)_port_exit_from_isr; } /* Note, returning without unlocking is intentional, this is done in order to keep the rest of the context switch atomic.*/ return; } port_unlock_from_isr(); } /** @} */
30.01
198
(translation_unit) "/* \n ChibiOS/RT - Copyright (C) 2006,2007,2008,2009,2010, \n 2011,2012,2013 <NAME>. \n \n This file is part of ChibiOS/RT. \n \n ChibiOS/RT is free software; you can redistribute it and/or modify \n it under the terms of the GNU General Public License as published by \n the Free Software Foundation; either version 3 of the License, or \n (at your option) any later version. \n \n ChibiOS/RT is distributed in the hope that it will be useful, \n but WITHOUT ANY WARRANTY; without even the implied warranty of \n MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the \n GNU General Public License for more details. \n \n You should have received a copy of the GNU General Public License \n along with this program. If not, see <http://www.gnu.org/licenses/>. \n \n --- \n \n A special exception to the GPL can be applied should you wish to distribute \n a combined work that includes ChibiOS/RT, without being obliged to provide \n the source code for any proprietary components. See the file exception.txt \n for full details of how and when the exception can be applied. \n*/ \n \n/** \n * @file IAR/ARMCMx/chcore_v7m.c \n * @brief ARMv7-M architecture port code. \n * \n * @addtogroup IAR_ARMCMx_V7M_CORE \n * @{ \n */ \n \n#include "ch.h" \n \n/*===========================================================================*/ \n/* Port interrupt handlers. */ \n/*===========================================================================*/ \n \n/** \n * @brief System Timer vector. \n * @details This interrupt is used as system tick. \n * @note The timer must be initialized in the startup code. \n */ \nCH_IRQ_HANDLER(SysTickVector) { \n \n CH_IRQ_PROLOGUE(); \n \n chSysLockFromIsr(); \n chSysTimerHandlerI(); \n chSysUnlockFromIsr(); \n \n CH_IRQ_EPILOGUE(); \n} \n \n#if !CORTEX_SIMPLIFIED_PRIORITY || defined(__DOXYGEN__) \n/** \n * @brief SVC vector. \n * @details The SVC vector is used for exception mode re-entering after a \n * context switch. \n * @note The PendSV vector is only used in advanced kernel mode. \n */ \nvoid SVCallVector(void) { \n struct extctx *ctxp; \n \n#if CORTEX_USE_FPU \n /* Enforcing unstacking of the FP part of the context.*/ \n SCB_FPCCR &= ~FPCCR_LSPACT; \n#endif \n \n /* Current PSP value.*/ \n ctxp = (struct extctx *)__get_PSP(); \n \n /* Discarding the current exception context and positioning the stack to \n point to the real one.*/ \n ctxp++; \n \n /* Restoring real position of the original stack frame.*/ \n __set_PSP((unsigned long)ctxp); \n port_unlock_from_isr(); \n} \n#endif /* !CORTEX_SIMPLIFIED_PRIORITY */ \n \n#if CORTEX_SIMPLIFIED_PRIORITY || defined(__DOXYGEN__) \n/** \n * @brief PendSV vector. \n * @details The PendSV vector is used for exception mode re-entering after a \n * context switch. \n * @note The PendSV vector is only used in compact kernel mode. \n */ \nvoid PendSVVector(void) { \n struct extctx *ctxp; \n \n#if CORTEX_USE_FPU \n /* Enforcing unstacking of the FP part of the context.*/ \n SCB_FPCCR &= ~FPCCR_LSPACT; \n#endif \n \n /* Current PSP value.*/ \n ctxp = (struct extctx *)__get_PSP(); \n \n /* Discarding the current exception context and positioning the stack to \n point to the real one.*/ \n ctxp++; \n \n /* Restoring real position of the original stack frame.*/ \n __set_PSP((unsigned long)ctxp); \n} \n#endif /* CORTEX_SIMPLIFIED_PRIORITY */ \n \n/*===========================================================================*/ \n/* Port exported functions. */ \n/*===========================================================================*/ \n \n/** \n * @brief Port-related initialization code. \n */ \nvoid _port_init(void) { \n \n /* Initialization of the vector table and priority related settings.*/ \n SCB_VTOR = CORTEX_VTOR_INIT; \n SCB_AIRCR = AIRCR_VECTKEY | AIRCR_PRIGROUP(CORTEX_PRIGROUP_INIT); \n \n#if CORTEX_USE_FPU \n { \n /* Initializing the FPU context save in lazy mode.*/ \n SCB_FPCCR = FPCCR_ASPEN | FPCCR_LSPEN; \n \n /* CP10 and CP11 set to full access.*/ \n SCB_CPACR |= 0x00F00000; \n \n /* Enables FPU context save/restore on exception entry/exit (FPCA bit).*/ \n __set_CONTROL(__get_CONTROL() | 4); \n \n /* FPSCR and FPDSCR initially zero.*/ \n __set_FPSCR(0); \n SCB_FPDSCR = 0; \n } \n#endif \n \n /* Initialization of the system vectors used by the port.*/ \n nvicSetSystemHandlerPriority(HANDLER_SVCALL, \n CORTEX_PRIORITY_MASK(CORTEX_PRIORITY_SVCALL)); \n nvicSetSystemHandlerPriority(HANDLER_PENDSV, \n CORTEX_PRIORITY_MASK(CORTEX_PRIORITY_PENDSV)); \n nvicSetSystemHandlerPriority(HANDLER_SYSTICK, \n CORTEX_PRIORITY_MASK(CORTEX_PRIORITY_SYSTICK)); \n} \n \n/** \n * @brief Exception exit redirection to _port_switch_from_isr(). \n */ \nvoid _port_irq_epilogue(void) { \n \n port_lock_from_isr(); \n if ((SCB_ICSR & ICSR_RETTOBASE) != 0) { \n struct extctx *ctxp; \n \n#if CORTEX_USE_FPU \n /* Enforcing a lazy FPU state save. Note, it goes in the original \n context because the FPCAR register has not been modified.*/ \n (void)__get_FPSCR(); \n#endif \n \n /* Current PSP value.*/ \n ctxp = (struct extctx *)__get_PSP(); \n \n /* Adding an artificial exception return context, there is no need to \n populate it fully.*/ \n ctxp--; \n ctxp->xpsr = (regarm_t)0x01000000; \n#if CORTEX_USE_FPU \n ctxp->fpscr = (regarm_t)SCB_FPDSCR; \n#endif \n __set_PSP((unsigned long)ctxp); \n \n /* The exit sequence is different depending on if a preemption is \n required or not.*/ \n if (chSchIsPreemptionRequired()) { \n /* Preemption is required we need to enforce a context switch.*/ \n ctxp->pc = (regarm_t)_port_switch_from_isr; \n } \n else { \n /* Preemption not required, we just need to exit the exception \n atomically.*/ \n ctxp->pc = (regarm_t)_port_exit_from_isr; \n } \n \n /* Note, returning without unlocking is intentional, this is done in \n order to keep the rest of the context switch atomic.*/ \n return; \n } \n port_unlock_from_isr(); \n} \n \n/** @} */ \n" (comment) "/* \n ChibiOS/RT - Copyright (C) 2006,2007,2008,2009,2010, \n 2011,2012,2013 <NAME>. \n \n This file is part of ChibiOS/RT. \n \n ChibiOS/RT is free software; you can redistribute it and/or modify \n it under the terms of the GNU General Public License as published by \n the Free Software Foundation; either version 3 of the License, or \n (at your option) any later version. \n \n ChibiOS/RT is distributed in the hope that it will be useful, \n but WITHOUT ANY WARRANTY; without even the implied warranty of \n MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the \n GNU General Public License for more details. \n \n You should have received a copy of the GNU General Public License \n along with this program. If not, see <http://www.gnu.org/licenses/>. \n \n --- \n \n A special exception to the GPL can be applied should you wish to distribute \n a combined work that includes ChibiOS/RT, without being obliged to provide \n the source code for any proprietary components. See the file exception.txt \n for full details of how and when the exception can be applied. \n*/" (comment) "/** \n * @file IAR/ARMCMx/chcore_v7m.c \n * @brief ARMv7-M architecture port code. \n * \n * @addtogroup IAR_ARMCMx_V7M_CORE \n * @{ \n */" (preproc_include) "#include "ch.h" \n" (#include) "#include" (string_literal) ""ch.h"" (") """ (string_content) "ch.h" (") """ (comment) "/*===========================================================================*/" (comment) "/* Port interrupt handlers. */" (comment) "/*===========================================================================*/" (comment) "/** \n * @brief System Timer vector. \n * @details This interrupt is used as system tick. \n * @note The timer must be initialized in the startup code. \n */" (function_definition) "CH_IRQ_HANDLER(SysTickVector) { \n \n CH_IRQ_PROLOGUE(); \n \n chSysLockFromIsr(); \n chSysTimerHandlerI(); \n chSysUnlockFromIsr(); \n \n CH_IRQ_EPILOGUE(); \n}" (type_identifier) "CH_IRQ_HANDLER" (parenthesized_declarator) "(SysTickVector)" (() "(" (identifier) "SysTickVector" ()) ")" (compound_statement) "{ \n \n CH_IRQ_PROLOGUE(); \n \n chSysLockFromIsr(); \n chSysTimerHandlerI(); \n chSysUnlockFromIsr(); \n \n CH_IRQ_EPILOGUE(); \n}" ({) "{" (expression_statement) "CH_IRQ_PROLOGUE();" (call_expression) "CH_IRQ_PROLOGUE()" (identifier) "CH_IRQ_PROLOGUE" (argument_list) "()" (() "(" ()) ")" (;) ";" (expression_statement) "chSysLockFromIsr();" (call_expression) "chSysLockFromIsr()" (identifier) "chSysLockFromIsr" (argument_list) "()" (() "(" ()) ")" (;) ";" (expression_statement) "chSysTimerHandlerI();" (call_expression) "chSysTimerHandlerI()" (identifier) "chSysTimerHandlerI" (argument_list) "()" (() "(" ()) ")" (;) ";" (expression_statement) "chSysUnlockFromIsr();" (call_expression) "chSysUnlockFromIsr()" (identifier) "chSysUnlockFromIsr" (argument_list) "()" (() "(" ()) ")" (;) ";" (expression_statement) "CH_IRQ_EPILOGUE();" (call_expression) "CH_IRQ_EPILOGUE()" (identifier) "CH_IRQ_EPILOGUE" (argument_list) "()" (() "(" ()) ")" (;) ";" (}) "}" (preproc_if) "#if !CORTEX_SIMPLIFIED_PRIORITY || defined(__DOXYGEN__) \n/** \n * @brief SVC vector. \n * @details The SVC vector is used for exception mode re-entering after a \n * context switch. \n * @note The PendSV vector is only used in advanced kernel mode. \n */ \nvoid SVCallVector(void) { \n struct extctx *ctxp; \n \n#if CORTEX_USE_FPU \n /* Enforcing unstacking of the FP part of the context.*/ \n SCB_FPCCR &= ~FPCCR_LSPACT; \n#endif \n \n /* Current PSP value.*/ \n ctxp = (struct extctx *)__get_PSP(); \n \n /* Discarding the current exception context and positioning the stack to \n point to the real one.*/ \n ctxp++; \n \n /* Restoring real position of the original stack frame.*/ \n __set_PSP((unsigned long)ctxp); \n port_unlock_from_isr(); \n} \n#endif" (#if) "#if" (binary_expression) "!CORTEX_SIMPLIFIED_PRIORITY || defined(__DOXYGEN__)" (unary_expression) "!CORTEX_SIMPLIFIED_PRIORITY" (!) "!" (identifier) "CORTEX_SIMPLIFIED_PRIORITY" (||) "||" (preproc_defined) "defined(__DOXYGEN__)" (defined) "defined" (() "(" (identifier) "__DOXYGEN__" ()) ")" ( ) "\n" (comment) "/** \n * @brief SVC vector. \n * @details The SVC vector is used for exception mode re-entering after a \n * context switch. \n * @note The PendSV vector is only used in advanced kernel mode. \n */" (function_definition) "void SVCallVector(void) { \n struct extctx *ctxp; \n \n#if CORTEX_USE_FPU \n /* Enforcing unstacking of the FP part of the context.*/ \n SCB_FPCCR &= ~FPCCR_LSPACT; \n#endif \n \n /* Current PSP value.*/ \n ctxp = (struct extctx *)__get_PSP(); \n \n /* Discarding the current exception context and positioning the stack to \n point to the real one.*/ \n ctxp++; \n \n /* Restoring real position of the original stack frame.*/ \n __set_PSP((unsigned long)ctxp); \n port_unlock_from_isr(); \n}" (primitive_type) "void" (function_declarator) "SVCallVector(void)" (identifier) "SVCallVector" (parameter_list) "(void)" (() "(" (parameter_declaration) "void" (primitive_type) "void" ()) ")" (compound_statement) "{ \n struct extctx *ctxp; \n \n#if CORTEX_USE_FPU \n /* Enforcing unstacking of the FP part of the context.*/ \n SCB_FPCCR &= ~FPCCR_LSPACT; \n#endif \n \n /* Current PSP value.*/ \n ctxp = (struct extctx *)__get_PSP(); \n \n /* Discarding the current exception context and positioning the stack to \n point to the real one.*/ \n ctxp++; \n \n /* Restoring real position of the original stack frame.*/ \n __set_PSP((unsigned long)ctxp); \n port_unlock_from_isr(); \n}" ({) "{" (declaration) "struct extctx *ctxp;" (struct_specifier) "struct extctx" (struct) "struct" (type_identifier) "extctx" (pointer_declarator) "*ctxp" (*) "*" (identifier) "ctxp" (;) ";" (preproc_if) "#if CORTEX_USE_FPU \n /* Enforcing unstacking of the FP part of the context.*/ \n SCB_FPCCR &= ~FPCCR_LSPACT; \n#endif" (#if) "#if" (identifier) "CORTEX_USE_FPU" ( ) "\n" (comment) "/* Enforcing unstacking of the FP part of the context.*/" (expression_statement) "SCB_FPCCR &= ~FPCCR_LSPACT;" (assignment_expression) "SCB_FPCCR &= ~FPCCR_LSPACT" (identifier) "SCB_FPCCR" (&=) "&=" (unary_expression) "~FPCCR_LSPACT" (~) "~" (identifier) "FPCCR_LSPACT" (;) ";" (#endif) "#endif" (comment) "/* Current PSP value.*/" (expression_statement) "ctxp = (struct extctx *)__get_PSP();" (assignment_expression) "ctxp = (struct extctx *)__get_PSP()" (identifier) "ctxp" (=) "=" (cast_expression) "(struct extctx *)__get_PSP()" (() "(" (type_descriptor) "struct extctx *" (struct_specifier) "struct extctx" (struct) "struct" (type_identifier) "extctx" (abstract_pointer_declarator) "*" (*) "*" ()) ")" (call_expression) "__get_PSP()" (identifier) "__get_PSP" (argument_list) "()" (() "(" ()) ")" (;) ";" (comment) "/* Discarding the current exception context and positioning the stack to \n point to the real one.*/" (expression_statement) "ctxp++;" (update_expression) "ctxp++" (identifier) "ctxp" (++) "++" (;) ";" (comment) "/* Restoring real position of the original stack frame.*/" (expression_statement) "__set_PSP((unsigned long)ctxp);" (call_expression) "__set_PSP((unsigned long)ctxp)" (identifier) "__set_PSP" (argument_list) "((unsigned long)ctxp)" (() "(" (cast_expression) "(unsigned long)ctxp" (() "(" (type_descriptor) "unsigned long" (sized_type_specifier) "unsigned long" (unsigned) "unsigned" (long) "long" ()) ")" (identifier) "ctxp" ()) ")" (;) ";" (expression_statement) "port_unlock_from_isr();" (call_expression) "port_unlock_from_isr()" (identifier) "port_unlock_from_isr" (argument_list) "()" (() "(" ()) ")" (;) ";" (}) "}" (#endif) "#endif" (comment) "/* !CORTEX_SIMPLIFIED_PRIORITY */" (preproc_if) "#if CORTEX_SIMPLIFIED_PRIORITY || defined(__DOXYGEN__) \n/** \n * @brief PendSV vector. \n * @details The PendSV vector is used for exception mode re-entering after a \n * context switch. \n * @note The PendSV vector is only used in compact kernel mode. \n */ \nvoid PendSVVector(void) { \n struct extctx *ctxp; \n \n#if CORTEX_USE_FPU \n /* Enforcing unstacking of the FP part of the context.*/ \n SCB_FPCCR &= ~FPCCR_LSPACT; \n#endif \n \n /* Current PSP value.*/ \n ctxp = (struct extctx *)__get_PSP(); \n \n /* Discarding the current exception context and positioning the stack to \n point to the real one.*/ \n ctxp++; \n \n /* Restoring real position of the original stack frame.*/ \n __set_PSP((unsigned long)ctxp); \n} \n#endif" (#if) "#if" (binary_expression) "CORTEX_SIMPLIFIED_PRIORITY || defined(__DOXYGEN__)" (identifier) "CORTEX_SIMPLIFIED_PRIORITY" (||) "||" (preproc_defined) "defined(__DOXYGEN__)" (defined) "defined" (() "(" (identifier) "__DOXYGEN__" ()) ")" ( ) "\n" (comment) "/** \n * @brief PendSV vector. \n * @details The PendSV vector is used for exception mode re-entering after a \n * context switch. \n * @note The PendSV vector is only used in compact kernel mode. \n */" (function_definition) "void PendSVVector(void) { \n struct extctx *ctxp; \n \n#if CORTEX_USE_FPU \n /* Enforcing unstacking of the FP part of the context.*/ \n SCB_FPCCR &= ~FPCCR_LSPACT; \n#endif \n \n /* Current PSP value.*/ \n ctxp = (struct extctx *)__get_PSP(); \n \n /* Discarding the current exception context and positioning the stack to \n point to the real one.*/ \n ctxp++; \n \n /* Restoring real position of the original stack frame.*/ \n __set_PSP((unsigned long)ctxp); \n}" (primitive_type) "void" (function_declarator) "PendSVVector(void)" (identifier) "PendSVVector" (parameter_list) "(void)" (() "(" (parameter_declaration) "void" (primitive_type) "void" ()) ")" (compound_statement) "{ \n struct extctx *ctxp; \n \n#if CORTEX_USE_FPU \n /* Enforcing unstacking of the FP part of the context.*/ \n SCB_FPCCR &= ~FPCCR_LSPACT; \n#endif \n \n /* Current PSP value.*/ \n ctxp = (struct extctx *)__get_PSP(); \n \n /* Discarding the current exception context and positioning the stack to \n point to the real one.*/ \n ctxp++; \n \n /* Restoring real position of the original stack frame.*/ \n __set_PSP((unsigned long)ctxp); \n}" ({) "{" (declaration) "struct extctx *ctxp;" (struct_specifier) "struct extctx" (struct) "struct" (type_identifier) "extctx" (pointer_declarator) "*ctxp" (*) "*" (identifier) "ctxp" (;) ";" (preproc_if) "#if CORTEX_USE_FPU \n /* Enforcing unstacking of the FP part of the context.*/ \n SCB_FPCCR &= ~FPCCR_LSPACT; \n#endif" (#if) "#if" (identifier) "CORTEX_USE_FPU" ( ) "\n" (comment) "/* Enforcing unstacking of the FP part of the context.*/" (expression_statement) "SCB_FPCCR &= ~FPCCR_LSPACT;" (assignment_expression) "SCB_FPCCR &= ~FPCCR_LSPACT" (identifier) "SCB_FPCCR" (&=) "&=" (unary_expression) "~FPCCR_LSPACT" (~) "~" (identifier) "FPCCR_LSPACT" (;) ";" (#endif) "#endif" (comment) "/* Current PSP value.*/" (expression_statement) "ctxp = (struct extctx *)__get_PSP();" (assignment_expression) "ctxp = (struct extctx *)__get_PSP()" (identifier) "ctxp" (=) "=" (cast_expression) "(struct extctx *)__get_PSP()" (() "(" (type_descriptor) "struct extctx *" (struct_specifier) "struct extctx" (struct) "struct" (type_identifier) "extctx" (abstract_pointer_declarator) "*" (*) "*" ()) ")" (call_expression) "__get_PSP()" (identifier) "__get_PSP" (argument_list) "()" (() "(" ()) ")" (;) ";" (comment) "/* Discarding the current exception context and positioning the stack to \n point to the real one.*/" (expression_statement) "ctxp++;" (update_expression) "ctxp++" (identifier) "ctxp" (++) "++" (;) ";" (comment) "/* Restoring real position of the original stack frame.*/" (expression_statement) "__set_PSP((unsigned long)ctxp);" (call_expression) "__set_PSP((unsigned long)ctxp)" (identifier) "__set_PSP" (argument_list) "((unsigned long)ctxp)" (() "(" (cast_expression) "(unsigned long)ctxp" (() "(" (type_descriptor) "unsigned long" (sized_type_specifier) "unsigned long" (unsigned) "unsigned" (long) "long" ()) ")" (identifier) "ctxp" ()) ")" (;) ";" (}) "}" (#endif) "#endif" (comment) "/* CORTEX_SIMPLIFIED_PRIORITY */" (comment) "/*===========================================================================*/" (comment) "/* Port exported functions. */" (comment) "/*===========================================================================*/" (comment) "/** \n * @brief Port-related initialization code. \n */" (function_definition) "void _port_init(void) { \n \n /* Initialization of the vector table and priority related settings.*/ \n SCB_VTOR = CORTEX_VTOR_INIT; \n SCB_AIRCR = AIRCR_VECTKEY | AIRCR_PRIGROUP(CORTEX_PRIGROUP_INIT); \n \n#if CORTEX_USE_FPU \n { \n /* Initializing the FPU context save in lazy mode.*/ \n SCB_FPCCR = FPCCR_ASPEN | FPCCR_LSPEN; \n \n /* CP10 and CP11 set to full access.*/ \n SCB_CPACR |= 0x00F00000; \n \n /* Enables FPU context save/restore on exception entry/exit (FPCA bit).*/ \n __set_CONTROL(__get_CONTROL() | 4); \n \n /* FPSCR and FPDSCR initially zero.*/ \n __set_FPSCR(0); \n SCB_FPDSCR = 0; \n } \n#endif \n \n /* Initialization of the system vectors used by the port.*/ \n nvicSetSystemHandlerPriority(HANDLER_SVCALL, \n CORTEX_PRIORITY_MASK(CORTEX_PRIORITY_SVCALL)); \n nvicSetSystemHandlerPriority(HANDLER_PENDSV, \n CORTEX_PRIORITY_MASK(CORTEX_PRIORITY_PENDSV)); \n nvicSetSystemHandlerPriority(HANDLER_SYSTICK, \n CORTEX_PRIORITY_MASK(CORTEX_PRIORITY_SYSTICK)); \n}" (primitive_type) "void" (function_declarator) "_port_init(void)" (identifier) "_port_init" (parameter_list) "(void)" (() "(" (parameter_declaration) "void" (primitive_type) "void" ()) ")" (compound_statement) "{ \n \n /* Initialization of the vector table and priority related settings.*/ \n SCB_VTOR = CORTEX_VTOR_INIT; \n SCB_AIRCR = AIRCR_VECTKEY | AIRCR_PRIGROUP(CORTEX_PRIGROUP_INIT); \n \n#if CORTEX_USE_FPU \n { \n /* Initializing the FPU context save in lazy mode.*/ \n SCB_FPCCR = FPCCR_ASPEN | FPCCR_LSPEN; \n \n /* CP10 and CP11 set to full access.*/ \n SCB_CPACR |= 0x00F00000; \n \n /* Enables FPU context save/restore on exception entry/exit (FPCA bit).*/ \n __set_CONTROL(__get_CONTROL() | 4); \n \n /* FPSCR and FPDSCR initially zero.*/ \n __set_FPSCR(0); \n SCB_FPDSCR = 0; \n } \n#endif \n \n /* Initialization of the system vectors used by the port.*/ \n nvicSetSystemHandlerPriority(HANDLER_SVCALL, \n CORTEX_PRIORITY_MASK(CORTEX_PRIORITY_SVCALL)); \n nvicSetSystemHandlerPriority(HANDLER_PENDSV, \n CORTEX_PRIORITY_MASK(CORTEX_PRIORITY_PENDSV)); \n nvicSetSystemHandlerPriority(HANDLER_SYSTICK, \n CORTEX_PRIORITY_MASK(CORTEX_PRIORITY_SYSTICK)); \n}" ({) "{" (comment) "/* Initialization of the vector table and priority related settings.*/" (expression_statement) "SCB_VTOR = CORTEX_VTOR_INIT;" (assignment_expression) "SCB_VTOR = CORTEX_VTOR_INIT" (identifier) "SCB_VTOR" (=) "=" (identifier) "CORTEX_VTOR_INIT" (;) ";" (expression_statement) "SCB_AIRCR = AIRCR_VECTKEY | AIRCR_PRIGROUP(CORTEX_PRIGROUP_INIT);" (assignment_expression) "SCB_AIRCR = AIRCR_VECTKEY | AIRCR_PRIGROUP(CORTEX_PRIGROUP_INIT)" (identifier) "SCB_AIRCR" (=) "=" (binary_expression) "AIRCR_VECTKEY | AIRCR_PRIGROUP(CORTEX_PRIGROUP_INIT)" (identifier) "AIRCR_VECTKEY" (|) "|" (call_expression) "AIRCR_PRIGROUP(CORTEX_PRIGROUP_INIT)" (identifier) "AIRCR_PRIGROUP" (argument_list) "(CORTEX_PRIGROUP_INIT)" (() "(" (identifier) "CORTEX_PRIGROUP_INIT" ()) ")" (;) ";" (preproc_if) "#if CORTEX_USE_FPU \n { \n /* Initializing the FPU context save in lazy mode.*/ \n SCB_FPCCR = FPCCR_ASPEN | FPCCR_LSPEN; \n \n /* CP10 and CP11 set to full access.*/ \n SCB_CPACR |= 0x00F00000; \n \n /* Enables FPU context save/restore on exception entry/exit (FPCA bit).*/ \n __set_CONTROL(__get_CONTROL() | 4); \n \n /* FPSCR and FPDSCR initially zero.*/ \n __set_FPSCR(0); \n SCB_FPDSCR = 0; \n } \n#endif" (#if) "#if" (identifier) "CORTEX_USE_FPU" ( ) "\n" (compound_statement) "{ \n /* Initializing the FPU context save in lazy mode.*/ \n SCB_FPCCR = FPCCR_ASPEN | FPCCR_LSPEN; \n \n /* CP10 and CP11 set to full access.*/ \n SCB_CPACR |= 0x00F00000; \n \n /* Enables FPU context save/restore on exception entry/exit (FPCA bit).*/ \n __set_CONTROL(__get_CONTROL() | 4); \n \n /* FPSCR and FPDSCR initially zero.*/ \n __set_FPSCR(0); \n SCB_FPDSCR = 0; \n }" ({) "{" (comment) "/* Initializing the FPU context save in lazy mode.*/" (expression_statement) "SCB_FPCCR = FPCCR_ASPEN | FPCCR_LSPEN;" (assignment_expression) "SCB_FPCCR = FPCCR_ASPEN | FPCCR_LSPEN" (identifier) "SCB_FPCCR" (=) "=" (binary_expression) "FPCCR_ASPEN | FPCCR_LSPEN" (identifier) "FPCCR_ASPEN" (|) "|" (identifier) "FPCCR_LSPEN" (;) ";" (comment) "/* CP10 and CP11 set to full access.*/" (expression_statement) "SCB_CPACR |= 0x00F00000;" (assignment_expression) "SCB_CPACR |= 0x00F00000" (identifier) "SCB_CPACR" (|=) "|=" (number_literal) "0x00F00000" (;) ";" (comment) "/* Enables FPU context save/restore on exception entry/exit (FPCA bit).*/" (expression_statement) "__set_CONTROL(__get_CONTROL() | 4);" (call_expression) "__set_CONTROL(__get_CONTROL() | 4)" (identifier) "__set_CONTROL" (argument_list) "(__get_CONTROL() | 4)" (() "(" (binary_expression) "__get_CONTROL() | 4" (call_expression) "__get_CONTROL()" (identifier) "__get_CONTROL" (argument_list) "()" (() "(" ()) ")" (|) "|" (number_literal) "4" ()) ")" (;) ";" (comment) "/* FPSCR and FPDSCR initially zero.*/" (expression_statement) "__set_FPSCR(0);" (call_expression) "__set_FPSCR(0)" (identifier) "__set_FPSCR" (argument_list) "(0)" (() "(" (number_literal) "0" ()) ")" (;) ";" (expression_statement) "SCB_FPDSCR = 0;" (assignment_expression) "SCB_FPDSCR = 0" (identifier) "SCB_FPDSCR" (=) "=" (number_literal) "0" (;) ";" (}) "}" (#endif) "#endif" (comment) "/* Initialization of the system vectors used by the port.*/" (expression_statement) "nvicSetSystemHandlerPriority(HANDLER_SVCALL, \n CORTEX_PRIORITY_MASK(CORTEX_PRIORITY_SVCALL));" (call_expression) "nvicSetSystemHandlerPriority(HANDLER_SVCALL, \n CORTEX_PRIORITY_MASK(CORTEX_PRIORITY_SVCALL))" (identifier) "nvicSetSystemHandlerPriority" (argument_list) "(HANDLER_SVCALL, \n CORTEX_PRIORITY_MASK(CORTEX_PRIORITY_SVCALL))" (() "(" (identifier) "HANDLER_SVCALL" (,) "," (call_expression) "CORTEX_PRIORITY_MASK(CORTEX_PRIORITY_SVCALL)" (identifier) "CORTEX_PRIORITY_MASK" (argument_list) "(CORTEX_PRIORITY_SVCALL)" (() "(" (identifier) "CORTEX_PRIORITY_SVCALL" ()) ")" ()) ")" (;) ";" (expression_statement) "nvicSetSystemHandlerPriority(HANDLER_PENDSV, \n CORTEX_PRIORITY_MASK(CORTEX_PRIORITY_PENDSV));" (call_expression) "nvicSetSystemHandlerPriority(HANDLER_PENDSV, \n CORTEX_PRIORITY_MASK(CORTEX_PRIORITY_PENDSV))" (identifier) "nvicSetSystemHandlerPriority" (argument_list) "(HANDLER_PENDSV, \n CORTEX_PRIORITY_MASK(CORTEX_PRIORITY_PENDSV))" (() "(" (identifier) "HANDLER_PENDSV" (,) "," (call_expression) "CORTEX_PRIORITY_MASK(CORTEX_PRIORITY_PENDSV)" (identifier) "CORTEX_PRIORITY_MASK" (argument_list) "(CORTEX_PRIORITY_PENDSV)" (() "(" (identifier) "CORTEX_PRIORITY_PENDSV" ()) ")" ()) ")" (;) ";" (expression_statement) "nvicSetSystemHandlerPriority(HANDLER_SYSTICK, \n CORTEX_PRIORITY_MASK(CORTEX_PRIORITY_SYSTICK));" (call_expression) "nvicSetSystemHandlerPriority(HANDLER_SYSTICK, \n CORTEX_PRIORITY_MASK(CORTEX_PRIORITY_SYSTICK))" (identifier) "nvicSetSystemHandlerPriority" (argument_list) "(HANDLER_SYSTICK, \n CORTEX_PRIORITY_MASK(CORTEX_PRIORITY_SYSTICK))" (() "(" (identifier) "HANDLER_SYSTICK" (,) "," (call_expression) "CORTEX_PRIORITY_MASK(CORTEX_PRIORITY_SYSTICK)" (identifier) "CORTEX_PRIORITY_MASK" (argument_list) "(CORTEX_PRIORITY_SYSTICK)" (() "(" (identifier) "CORTEX_PRIORITY_SYSTICK" ()) ")" ()) ")" (;) ";" (}) "}" (comment) "/** \n * @brief Exception exit redirection to _port_switch_from_isr(). \n */" (function_definition) "void _port_irq_epilogue(void) { \n \n port_lock_from_isr(); \n if ((SCB_ICSR & ICSR_RETTOBASE) != 0) { \n struct extctx *ctxp; \n \n#if CORTEX_USE_FPU \n /* Enforcing a lazy FPU state save. Note, it goes in the original \n context because the FPCAR register has not been modified.*/ \n (void)__get_FPSCR(); \n#endif \n \n /* Current PSP value.*/ \n ctxp = (struct extctx *)__get_PSP(); \n \n /* Adding an artificial exception return context, there is no need to \n populate it fully.*/ \n ctxp--; \n ctxp->xpsr = (regarm_t)0x01000000; \n#if CORTEX_USE_FPU \n ctxp->fpscr = (regarm_t)SCB_FPDSCR; \n#endif \n __set_PSP((unsigned long)ctxp); \n \n /* The exit sequence is different depending on if a preemption is \n required or not.*/ \n if (chSchIsPreemptionRequired()) { \n /* Preemption is required we need to enforce a context switch.*/ \n ctxp->pc = (regarm_t)_port_switch_from_isr; \n } \n else { \n /* Preemption not required, we just need to exit the exception \n atomically.*/ \n ctxp->pc = (regarm_t)_port_exit_from_isr; \n } \n \n /* Note, returning without unlocking is intentional, this is done in \n order to keep the rest of the context switch atomic.*/ \n return; \n } \n port_unlock_from_isr(); \n}" (primitive_type) "void" (function_declarator) "_port_irq_epilogue(void)" (identifier) "_port_irq_epilogue" (parameter_list) "(void)" (() "(" (parameter_declaration) "void" (primitive_type) "void" ()) ")" (compound_statement) "{ \n \n port_lock_from_isr(); \n if ((SCB_ICSR & ICSR_RETTOBASE) != 0) { \n struct extctx *ctxp; \n \n#if CORTEX_USE_FPU \n /* Enforcing a lazy FPU state save. Note, it goes in the original \n context because the FPCAR register has not been modified.*/ \n (void)__get_FPSCR(); \n#endif \n \n /* Current PSP value.*/ \n ctxp = (struct extctx *)__get_PSP(); \n \n /* Adding an artificial exception return context, there is no need to \n populate it fully.*/ \n ctxp--; \n ctxp->xpsr = (regarm_t)0x01000000; \n#if CORTEX_USE_FPU \n ctxp->fpscr = (regarm_t)SCB_FPDSCR; \n#endif \n __set_PSP((unsigned long)ctxp); \n \n /* The exit sequence is different depending on if a preemption is \n required or not.*/ \n if (chSchIsPreemptionRequired()) { \n /* Preemption is required we need to enforce a context switch.*/ \n ctxp->pc = (regarm_t)_port_switch_from_isr; \n } \n else { \n /* Preemption not required, we just need to exit the exception \n atomically.*/ \n ctxp->pc = (regarm_t)_port_exit_from_isr; \n } \n \n /* Note, returning without unlocking is intentional, this is done in \n order to keep the rest of the context switch atomic.*/ \n return; \n } \n port_unlock_from_isr(); \n}" ({) "{" (expression_statement) "port_lock_from_isr();" (call_expression) "port_lock_from_isr()" (identifier) "port_lock_from_isr" (argument_list) "()" (() "(" ()) ")" (;) ";" (if_statement) "if ((SCB_ICSR & ICSR_RETTOBASE) != 0) { \n struct extctx *ctxp; \n \n#if CORTEX_USE_FPU \n /* Enforcing a lazy FPU state save. Note, it goes in the original \n context because the FPCAR register has not been modified.*/ \n (void)__get_FPSCR(); \n#endif \n \n /* Current PSP value.*/ \n ctxp = (struct extctx *)__get_PSP(); \n \n /* Adding an artificial exception return context, there is no need to \n populate it fully.*/ \n ctxp--; \n ctxp->xpsr = (regarm_t)0x01000000; \n#if CORTEX_USE_FPU \n ctxp->fpscr = (regarm_t)SCB_FPDSCR; \n#endif \n __set_PSP((unsigned long)ctxp); \n \n /* The exit sequence is different depending on if a preemption is \n required or not.*/ \n if (chSchIsPreemptionRequired()) { \n /* Preemption is required we need to enforce a context switch.*/ \n ctxp->pc = (regarm_t)_port_switch_from_isr; \n } \n else { \n /* Preemption not required, we just need to exit the exception \n atomically.*/ \n ctxp->pc = (regarm_t)_port_exit_from_isr; \n } \n \n /* Note, returning without unlocking is intentional, this is done in \n order to keep the rest of the context switch atomic.*/ \n return; \n }" (if) "if" (parenthesized_expression) "((SCB_ICSR & ICSR_RETTOBASE) != 0)" (() "(" (binary_expression) "(SCB_ICSR & ICSR_RETTOBASE) != 0" (parenthesized_expression) "(SCB_ICSR & ICSR_RETTOBASE)" (() "(" (binary_expression) "SCB_ICSR & ICSR_RETTOBASE" (identifier) "SCB_ICSR" (&) "&" (identifier) "ICSR_RETTOBASE" ()) ")" (!=) "!=" (number_literal) "0" ()) ")" (compound_statement) "{ \n struct extctx *ctxp; \n \n#if CORTEX_USE_FPU \n /* Enforcing a lazy FPU state save. Note, it goes in the original \n context because the FPCAR register has not been modified.*/ \n (void)__get_FPSCR(); \n#endif \n \n /* Current PSP value.*/ \n ctxp = (struct extctx *)__get_PSP(); \n \n /* Adding an artificial exception return context, there is no need to \n populate it fully.*/ \n ctxp--; \n ctxp->xpsr = (regarm_t)0x01000000; \n#if CORTEX_USE_FPU \n ctxp->fpscr = (regarm_t)SCB_FPDSCR; \n#endif \n __set_PSP((unsigned long)ctxp); \n \n /* The exit sequence is different depending on if a preemption is \n required or not.*/ \n if (chSchIsPreemptionRequired()) { \n /* Preemption is required we need to enforce a context switch.*/ \n ctxp->pc = (regarm_t)_port_switch_from_isr; \n } \n else { \n /* Preemption not required, we just need to exit the exception \n atomically.*/ \n ctxp->pc = (regarm_t)_port_exit_from_isr; \n } \n \n /* Note, returning without unlocking is intentional, this is done in \n order to keep the rest of the context switch atomic.*/ \n return; \n }" ({) "{" (declaration) "struct extctx *ctxp;" (struct_specifier) "struct extctx" (struct) "struct" (type_identifier) "extctx" (pointer_declarator) "*ctxp" (*) "*" (identifier) "ctxp" (;) ";" (preproc_if) "#if CORTEX_USE_FPU \n /* Enforcing a lazy FPU state save. Note, it goes in the original \n context because the FPCAR register has not been modified.*/ \n (void)__get_FPSCR(); \n#endif" (#if) "#if" (identifier) "CORTEX_USE_FPU" ( ) "\n" (comment) "/* Enforcing a lazy FPU state save. Note, it goes in the original \n context because the FPCAR register has not been modified.*/" (expression_statement) "(void)__get_FPSCR();" (cast_expression) "(void)__get_FPSCR()" (() "(" (type_descriptor) "void" (primitive_type) "void" ()) ")" (call_expression) "__get_FPSCR()" (identifier) "__get_FPSCR" (argument_list) "()" (() "(" ()) ")" (;) ";" (#endif) "#endif" (comment) "/* Current PSP value.*/" (expression_statement) "ctxp = (struct extctx *)__get_PSP();" (assignment_expression) "ctxp = (struct extctx *)__get_PSP()" (identifier) "ctxp" (=) "=" (cast_expression) "(struct extctx *)__get_PSP()" (() "(" (type_descriptor) "struct extctx *" (struct_specifier) "struct extctx" (struct) "struct" (type_identifier) "extctx" (abstract_pointer_declarator) "*" (*) "*" ()) ")" (call_expression) "__get_PSP()" (identifier) "__get_PSP" (argument_list) "()" (() "(" ()) ")" (;) ";" (comment) "/* Adding an artificial exception return context, there is no need to \n populate it fully.*/" (expression_statement) "ctxp--;" (update_expression) "ctxp--" (identifier) "ctxp" (--) "--" (;) ";" (expression_statement) "ctxp->xpsr = (regarm_t)0x01000000;" (assignment_expression) "ctxp->xpsr = (regarm_t)0x01000000" (field_expression) "ctxp->xpsr" (identifier) "ctxp" (->) "->" (field_identifier) "xpsr" (=) "=" (cast_expression) "(regarm_t)0x01000000" (() "(" (type_descriptor) "regarm_t" (type_identifier) "regarm_t" ()) ")" (number_literal) "0x01000000" (;) ";" (preproc_if) "#if CORTEX_USE_FPU \n ctxp->fpscr = (regarm_t)SCB_FPDSCR; \n#endif" (#if) "#if" (identifier) "CORTEX_USE_FPU" ( ) "\n" (expression_statement) "ctxp->fpscr = (regarm_t)SCB_FPDSCR;" (assignment_expression) "ctxp->fpscr = (regarm_t)SCB_FPDSCR" (field_expression) "ctxp->fpscr" (identifier) "ctxp" (->) "->" (field_identifier) "fpscr" (=) "=" (cast_expression) "(regarm_t)SCB_FPDSCR" (() "(" (type_descriptor) "regarm_t" (type_identifier) "regarm_t" ()) ")" (identifier) "SCB_FPDSCR" (;) ";" (#endif) "#endif" (expression_statement) "__set_PSP((unsigned long)ctxp);" (call_expression) "__set_PSP((unsigned long)ctxp)" (identifier) "__set_PSP" (argument_list) "((unsigned long)ctxp)" (() "(" (cast_expression) "(unsigned long)ctxp" (() "(" (type_descriptor) "unsigned long" (sized_type_specifier) "unsigned long" (unsigned) "unsigned" (long) "long" ()) ")" (identifier) "ctxp" ()) ")" (;) ";" (comment) "/* The exit sequence is different depending on if a preemption is \n required or not.*/" (if_statement) "if (chSchIsPreemptionRequired()) { \n /* Preemption is required we need to enforce a context switch.*/ \n ctxp->pc = (regarm_t)_port_switch_from_isr; \n } \n else { \n /* Preemption not required, we just need to exit the exception \n atomically.*/ \n ctxp->pc = (regarm_t)_port_exit_from_isr; \n }" (if) "if" (parenthesized_expression) "(chSchIsPreemptionRequired())" (() "(" (call_expression) "chSchIsPreemptionRequired()" (identifier) "chSchIsPreemptionRequired" (argument_list) "()" (() "(" ()) ")" ()) ")" (compound_statement) "{ \n /* Preemption is required we need to enforce a context switch.*/ \n ctxp->pc = (regarm_t)_port_switch_from_isr; \n }" ({) "{" (comment) "/* Preemption is required we need to enforce a context switch.*/" (expression_statement) "ctxp->pc = (regarm_t)_port_switch_from_isr;" (assignment_expression) "ctxp->pc = (regarm_t)_port_switch_from_isr" (field_expression) "ctxp->pc" (identifier) "ctxp" (->) "->" (field_identifier) "pc" (=) "=" (cast_expression) "(regarm_t)_port_switch_from_isr" (() "(" (type_descriptor) "regarm_t" (type_identifier) "regarm_t" ()) ")" (identifier) "_port_switch_from_isr" (;) ";" (}) "}" (else_clause) "else { \n /* Preemption not required, we just need to exit the exception \n atomically.*/ \n ctxp->pc = (regarm_t)_port_exit_from_isr; \n }" (else) "else" (compound_statement) "{ \n /* Preemption not required, we just need to exit the exception \n atomically.*/ \n ctxp->pc = (regarm_t)_port_exit_from_isr; \n }" ({) "{" (comment) "/* Preemption not required, we just need to exit the exception \n atomically.*/" (expression_statement) "ctxp->pc = (regarm_t)_port_exit_from_isr;" (assignment_expression) "ctxp->pc = (regarm_t)_port_exit_from_isr" (field_expression) "ctxp->pc" (identifier) "ctxp" (->) "->" (field_identifier) "pc" (=) "=" (cast_expression) "(regarm_t)_port_exit_from_isr" (() "(" (type_descriptor) "regarm_t" (type_identifier) "regarm_t" ()) ")" (identifier) "_port_exit_from_isr" (;) ";" (}) "}" (comment) "/* Note, returning without unlocking is intentional, this is done in \n order to keep the rest of the context switch atomic.*/" (return_statement) "return;" (return) "return" (;) ";" (}) "}" (expression_statement) "port_unlock_from_isr();" (call_expression) "port_unlock_from_isr()" (identifier) "port_unlock_from_isr" (argument_list) "()" (() "(" ()) ")" (;) ";" (}) "}" (comment) "/** @} */"
584
0
{"language": "c", "success": true, "metadata": {"lines": 198, "avg_line_length": 30.01, "nodes": 335, "errors": 0, "source_hash": "832ed93e7ab9938a52d3aa79666f11f1dc344eb8854402a7703af2284dd6a265", "categorized_nodes": 231}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#include \"ch.h\"\r\n", "parent": null, "children": [1, 2], "start_point": {"row": 35, "column": 0}, "end_point": {"row": 36, "column": 0}}, {"id": 1, "type": "#include", "text": "#include", "parent": 0, "children": [], "start_point": {"row": 35, "column": 0}, "end_point": {"row": 35, "column": 8}}, {"id": 2, "type": "string_literal", "text": "\"ch.h\"", "parent": 0, "children": [], "start_point": {"row": 35, "column": 9}, "end_point": {"row": 35, "column": 15}}, {"id": 3, "type": "function_definition", "text": "CH_IRQ_HANDLER(SysTickVector) {\r\n\r\n CH_IRQ_PROLOGUE();\r\n\r\n chSysLockFromIsr();\r\n chSysTimerHandlerI();\r\n chSysUnlockFromIsr();\r\n\r\n CH_IRQ_EPILOGUE();\r\n}", "parent": null, "children": [4, 5], "start_point": {"row": 46, "column": 0}, "end_point": {"row": 55, "column": 1}}, {"id": 4, "type": "type_identifier", "text": "CH_IRQ_HANDLER", "parent": 3, "children": [], "start_point": {"row": 46, "column": 0}, "end_point": {"row": 46, "column": 14}}, {"id": 5, "type": "parenthesized_declarator", "text": "(SysTickVector)", "parent": 3, "children": [6], "start_point": {"row": 46, "column": 14}, "end_point": {"row": 46, "column": 29}}, {"id": 6, "type": "identifier", "text": "SysTickVector", "parent": 5, "children": [], "start_point": {"row": 46, "column": 15}, "end_point": {"row": 46, "column": 28}}, {"id": 7, "type": "call_expression", "text": "CH_IRQ_PROLOGUE()", "parent": 3, "children": [8, 9], "start_point": {"row": 48, "column": 2}, "end_point": {"row": 48, "column": 19}}, {"id": 8, "type": "identifier", "text": "CH_IRQ_PROLOGUE", "parent": 7, "children": [], "start_point": {"row": 48, "column": 2}, "end_point": {"row": 48, "column": 17}}, {"id": 9, "type": "argument_list", "text": "()", "parent": 7, "children": [], "start_point": {"row": 48, "column": 17}, "end_point": {"row": 48, "column": 19}}, {"id": 10, "type": "call_expression", "text": "chSysLockFromIsr()", "parent": 3, "children": [11, 12], "start_point": {"row": 50, "column": 2}, "end_point": {"row": 50, "column": 20}}, {"id": 11, "type": "identifier", "text": "chSysLockFromIsr", "parent": 10, "children": [], "start_point": {"row": 50, "column": 2}, "end_point": {"row": 50, "column": 18}}, {"id": 12, "type": "argument_list", "text": "()", "parent": 10, "children": [], "start_point": {"row": 50, "column": 18}, "end_point": {"row": 50, "column": 20}}, {"id": 13, "type": "call_expression", "text": "chSysTimerHandlerI()", "parent": 3, "children": [14, 15], "start_point": {"row": 51, "column": 2}, "end_point": {"row": 51, "column": 22}}, {"id": 14, "type": "identifier", "text": "chSysTimerHandlerI", "parent": 13, "children": [], "start_point": {"row": 51, "column": 2}, "end_point": {"row": 51, "column": 20}}, {"id": 15, "type": "argument_list", "text": "()", "parent": 13, "children": [], "start_point": {"row": 51, "column": 20}, "end_point": {"row": 51, "column": 22}}, {"id": 16, "type": "call_expression", "text": "chSysUnlockFromIsr()", "parent": 3, "children": [17, 18], "start_point": {"row": 52, "column": 2}, "end_point": {"row": 52, "column": 22}}, {"id": 17, "type": "identifier", "text": "chSysUnlockFromIsr", "parent": 16, "children": [], "start_point": {"row": 52, "column": 2}, "end_point": {"row": 52, "column": 20}}, {"id": 18, "type": "argument_list", "text": "()", "parent": 16, "children": [], "start_point": {"row": 52, "column": 20}, "end_point": {"row": 52, "column": 22}}, {"id": 19, "type": "call_expression", "text": "CH_IRQ_EPILOGUE()", "parent": 3, "children": [20, 21], "start_point": {"row": 54, "column": 2}, "end_point": {"row": 54, "column": 19}}, {"id": 20, "type": "identifier", "text": "CH_IRQ_EPILOGUE", "parent": 19, "children": [], "start_point": {"row": 54, "column": 2}, "end_point": {"row": 54, "column": 17}}, {"id": 21, "type": "argument_list", "text": "()", "parent": 19, "children": [], "start_point": {"row": 54, "column": 17}, "end_point": {"row": 54, "column": 19}}, {"id": 22, "type": "preproc_if", "text": "#if !CORTEX_SIMPLIFIED_PRIORITY || defined(__DOXYGEN__)\r\n/**\r\n * @brief SVC vector.\r\n * @details The SVC vector is used for exception mode re-entering after a\r\n * context switch.\r\n * @note The PendSV vector is only used in advanced kernel mode.\r\n */\r\nvoid SVCallVector(void) {\r\n struct extctx *ctxp;\r\n\r\n#if CORTEX_USE_FPU\r\n /* Enforcing unstacking of the FP part of the context.*/\r\n SCB_FPCCR &= ~FPCCR_LSPACT;\r\n#endif\r\n\r\n /* Current PSP value.*/\r\n ctxp = (struct extctx *)__get_PSP();\r\n\r\n /* Discarding the current exception context and positioning the stack to\r\n point to the real one.*/\r\n ctxp++;\r\n\r\n /* Restoring real position of the original stack frame.*/\r\n __set_PSP((unsigned long)ctxp);\r\n port_unlock_from_isr();\r\n}\r\n#endif", "parent": null, "children": [23, 24, 32, 33, 86], "start_point": {"row": 57, "column": 0}, "end_point": {"row": 83, "column": 6}}, {"id": 23, "type": "#if", "text": "#if", "parent": 22, "children": [], "start_point": {"row": 57, "column": 0}, "end_point": {"row": 57, "column": 3}}, {"id": 24, "type": "binary_expression", "text": "!CORTEX_SIMPLIFIED_PRIORITY || defined(__DOXYGEN__)", "parent": 22, "children": [25, 28, 29], "start_point": {"row": 57, "column": 4}, "end_point": {"row": 57, "column": 55}}, {"id": 25, "type": "unary_expression", "text": "!CORTEX_SIMPLIFIED_PRIORITY", "parent": 24, "children": [26, 27], "start_point": {"row": 57, "column": 4}, "end_point": {"row": 57, "column": 31}}, {"id": 26, "type": "!", "text": "!", "parent": 25, "children": [], "start_point": {"row": 57, "column": 4}, "end_point": {"row": 57, "column": 5}}, {"id": 27, "type": "identifier", "text": "CORTEX_SIMPLIFIED_PRIORITY", "parent": 25, "children": [], "start_point": {"row": 57, "column": 5}, "end_point": {"row": 57, "column": 31}}, {"id": 28, "type": "||", "text": "||", "parent": 24, "children": [], "start_point": {"row": 57, "column": 32}, "end_point": {"row": 57, "column": 34}}, {"id": 29, "type": "preproc_defined", "text": "defined(__DOXYGEN__)", "parent": 24, "children": [30, 31], "start_point": {"row": 57, "column": 35}, "end_point": {"row": 57, "column": 55}}, {"id": 30, "type": "defined", "text": "defined", "parent": 29, "children": [], "start_point": {"row": 57, "column": 35}, "end_point": {"row": 57, "column": 42}}, {"id": 31, "type": "identifier", "text": "__DOXYGEN__", "parent": 29, "children": [], "start_point": {"row": 57, "column": 43}, "end_point": {"row": 57, "column": 54}}, {"id": 32, "type": "\n", "text": "\n", "parent": 22, "children": [], "start_point": {"row": 57, "column": 56}, "end_point": {"row": 58, "column": 0}}, {"id": 33, "type": "function_definition", "text": "void SVCallVector(void) {\r\n struct extctx *ctxp;\r\n\r\n#if CORTEX_USE_FPU\r\n /* Enforcing unstacking of the FP part of the context.*/\r\n SCB_FPCCR &= ~FPCCR_LSPACT;\r\n#endif\r\n\r\n /* Current PSP value.*/\r\n ctxp = (struct extctx *)__get_PSP();\r\n\r\n /* Discarding the current exception context and positioning the stack to\r\n point to the real one.*/\r\n ctxp++;\r\n\r\n /* Restoring real position of the original stack frame.*/\r\n __set_PSP((unsigned long)ctxp);\r\n port_unlock_from_isr();\r\n}", "parent": 22, "children": [34, 35], "start_point": {"row": 64, "column": 0}, "end_point": {"row": 82, "column": 1}}, {"id": 34, "type": "primitive_type", "text": "void", "parent": 33, "children": [], "start_point": {"row": 64, "column": 0}, "end_point": {"row": 64, "column": 4}}, {"id": 35, "type": "function_declarator", "text": "SVCallVector(void)", "parent": 33, "children": [36, 37], "start_point": {"row": 64, "column": 5}, "end_point": {"row": 64, "column": 23}}, {"id": 36, "type": "identifier", "text": "SVCallVector", "parent": 35, "children": [], "start_point": {"row": 64, "column": 5}, "end_point": {"row": 64, "column": 17}}, {"id": 37, "type": "parameter_list", "text": "(void)", "parent": 35, "children": [38], "start_point": {"row": 64, "column": 17}, "end_point": {"row": 64, "column": 23}}, {"id": 38, "type": "parameter_declaration", "text": "void", "parent": 37, "children": [39], "start_point": {"row": 64, "column": 18}, "end_point": {"row": 64, "column": 22}}, {"id": 39, "type": "primitive_type", "text": "void", "parent": 38, "children": [], "start_point": {"row": 64, "column": 18}, "end_point": {"row": 64, "column": 22}}, {"id": 40, "type": "declaration", "text": "struct extctx *ctxp;", "parent": 33, "children": [41, 44], "start_point": {"row": 65, "column": 2}, "end_point": {"row": 65, "column": 22}}, {"id": 41, "type": "struct_specifier", "text": "struct extctx", "parent": 40, "children": [42, 43], "start_point": {"row": 65, "column": 2}, "end_point": {"row": 65, "column": 15}}, {"id": 42, "type": "struct", "text": "struct", "parent": 41, "children": [], "start_point": {"row": 65, "column": 2}, "end_point": {"row": 65, "column": 8}}, {"id": 43, "type": "type_identifier", "text": "extctx", "parent": 41, "children": [], "start_point": {"row": 65, "column": 9}, "end_point": {"row": 65, "column": 15}}, {"id": 44, "type": "pointer_declarator", "text": "*ctxp", "parent": 40, "children": [45, 46], "start_point": {"row": 65, "column": 16}, "end_point": {"row": 65, "column": 21}}, {"id": 45, "type": "*", "text": "*", "parent": 44, "children": [], "start_point": {"row": 65, "column": 16}, "end_point": {"row": 65, "column": 17}}, {"id": 46, "type": "identifier", "text": "ctxp", "parent": 44, "children": [], "start_point": {"row": 65, "column": 17}, "end_point": {"row": 65, "column": 21}}, {"id": 47, "type": "preproc_if", "text": "#if CORTEX_USE_FPU\r\n /* Enforcing unstacking of the FP part of the context.*/\r\n SCB_FPCCR &= ~FPCCR_LSPACT;\r\n#endif", "parent": 33, "children": [48, 49, 50, 57], "start_point": {"row": 67, "column": 0}, "end_point": {"row": 70, "column": 6}}, {"id": 48, "type": "#if", "text": "#if", "parent": 47, "children": [], "start_point": {"row": 67, "column": 0}, "end_point": {"row": 67, "column": 3}}, {"id": 49, "type": "identifier", "text": "CORTEX_USE_FPU", "parent": 47, "children": [], "start_point": {"row": 67, "column": 4}, "end_point": {"row": 67, "column": 18}}, {"id": 50, "type": "\n", "text": "\n", "parent": 47, "children": [], "start_point": {"row": 67, "column": 19}, "end_point": {"row": 68, "column": 0}}, {"id": 51, "type": "assignment_expression", "text": "SCB_FPCCR &= ~FPCCR_LSPACT", "parent": 47, "children": [52, 53, 54], "start_point": {"row": 69, "column": 2}, "end_point": {"row": 69, "column": 28}}, {"id": 52, "type": "identifier", "text": "SCB_FPCCR", "parent": 51, "children": [], "start_point": {"row": 69, "column": 2}, "end_point": {"row": 69, "column": 11}}, {"id": 53, "type": "&=", "text": "&=", "parent": 51, "children": [], "start_point": {"row": 69, "column": 12}, "end_point": {"row": 69, "column": 14}}, {"id": 54, "type": "unary_expression", "text": "~FPCCR_LSPACT", "parent": 51, "children": [55, 56], "start_point": {"row": 69, "column": 15}, "end_point": {"row": 69, "column": 28}}, {"id": 55, "type": "~", "text": "~", "parent": 54, "children": [], "start_point": {"row": 69, "column": 15}, "end_point": {"row": 69, "column": 16}}, {"id": 56, "type": "identifier", "text": "FPCCR_LSPACT", "parent": 54, "children": [], "start_point": {"row": 69, "column": 16}, "end_point": {"row": 69, "column": 28}}, {"id": 57, "type": "#endif", "text": "#endif", "parent": 47, "children": [], "start_point": {"row": 70, "column": 0}, "end_point": {"row": 70, "column": 6}}, {"id": 58, "type": "assignment_expression", "text": "ctxp = (struct extctx *)__get_PSP()", "parent": 33, "children": [59, 60, 61], "start_point": {"row": 73, "column": 2}, "end_point": {"row": 73, "column": 37}}, {"id": 59, "type": "identifier", "text": "ctxp", "parent": 58, "children": [], "start_point": {"row": 73, "column": 2}, "end_point": {"row": 73, "column": 6}}, {"id": 60, "type": "=", "text": "=", "parent": 58, "children": [], "start_point": {"row": 73, "column": 7}, "end_point": {"row": 73, "column": 8}}, {"id": 61, "type": "cast_expression", "text": "(struct extctx *)__get_PSP()", "parent": 58, "children": [62, 68], "start_point": {"row": 73, "column": 9}, "end_point": {"row": 73, "column": 37}}, {"id": 62, "type": "type_descriptor", "text": "struct extctx *", "parent": 61, "children": [63, 66], "start_point": {"row": 73, "column": 10}, "end_point": {"row": 73, "column": 25}}, {"id": 63, "type": "struct_specifier", "text": "struct extctx", "parent": 62, "children": [64, 65], "start_point": {"row": 73, "column": 10}, "end_point": {"row": 73, "column": 23}}, {"id": 64, "type": "struct", "text": "struct", "parent": 63, "children": [], "start_point": {"row": 73, "column": 10}, "end_point": {"row": 73, "column": 16}}, {"id": 65, "type": "type_identifier", "text": "extctx", "parent": 63, "children": [], "start_point": {"row": 73, "column": 17}, "end_point": {"row": 73, "column": 23}}, {"id": 66, "type": "abstract_pointer_declarator", "text": "*", "parent": 62, "children": [67], "start_point": {"row": 73, "column": 24}, "end_point": {"row": 73, "column": 25}}, {"id": 67, "type": "*", "text": "*", "parent": 66, "children": [], "start_point": {"row": 73, "column": 24}, "end_point": {"row": 73, "column": 25}}, {"id": 68, "type": "call_expression", "text": "__get_PSP()", "parent": 61, "children": [69, 70], "start_point": {"row": 73, "column": 26}, "end_point": {"row": 73, "column": 37}}, {"id": 69, "type": "identifier", "text": "__get_PSP", "parent": 68, "children": [], "start_point": {"row": 73, "column": 26}, "end_point": {"row": 73, "column": 35}}, {"id": 70, "type": "argument_list", "text": "()", "parent": 68, "children": [], "start_point": {"row": 73, "column": 35}, "end_point": {"row": 73, "column": 37}}, {"id": 71, "type": "update_expression", "text": "ctxp++", "parent": 33, "children": [72, 73], "start_point": {"row": 77, "column": 2}, "end_point": {"row": 77, "column": 8}}, {"id": 72, "type": "identifier", "text": "ctxp", "parent": 71, "children": [], "start_point": {"row": 77, "column": 2}, "end_point": {"row": 77, "column": 6}}, {"id": 73, "type": "++", "text": "++", "parent": 71, "children": [], "start_point": {"row": 77, "column": 6}, "end_point": {"row": 77, "column": 8}}, {"id": 74, "type": "call_expression", "text": "__set_PSP((unsigned long)ctxp)", "parent": 33, "children": [75, 76], "start_point": {"row": 80, "column": 2}, "end_point": {"row": 80, "column": 32}}, {"id": 75, "type": "identifier", "text": "__set_PSP", "parent": 74, "children": [], "start_point": {"row": 80, "column": 2}, "end_point": {"row": 80, "column": 11}}, {"id": 76, "type": "argument_list", "text": "((unsigned long)ctxp)", "parent": 74, "children": [77], "start_point": {"row": 80, "column": 11}, "end_point": {"row": 80, "column": 32}}, {"id": 77, "type": "cast_expression", "text": "(unsigned long)ctxp", "parent": 76, "children": [78, 82], "start_point": {"row": 80, "column": 12}, "end_point": {"row": 80, "column": 31}}, {"id": 78, "type": "type_descriptor", "text": "unsigned long", "parent": 77, "children": [79], "start_point": {"row": 80, "column": 13}, "end_point": {"row": 80, "column": 26}}, {"id": 79, "type": "sized_type_specifier", "text": "unsigned long", "parent": 78, "children": [80, 81], "start_point": {"row": 80, "column": 13}, "end_point": {"row": 80, "column": 26}}, {"id": 80, "type": "unsigned", "text": "unsigned", "parent": 79, "children": [], "start_point": {"row": 80, "column": 13}, "end_point": {"row": 80, "column": 21}}, {"id": 81, "type": "long", "text": "long", "parent": 79, "children": [], "start_point": {"row": 80, "column": 22}, "end_point": {"row": 80, "column": 26}}, {"id": 82, "type": "identifier", "text": "ctxp", "parent": 77, "children": [], "start_point": {"row": 80, "column": 27}, "end_point": {"row": 80, "column": 31}}, {"id": 83, "type": "call_expression", "text": "port_unlock_from_isr()", "parent": 33, "children": [84, 85], "start_point": {"row": 81, "column": 2}, "end_point": {"row": 81, "column": 24}}, {"id": 84, "type": "identifier", "text": "port_unlock_from_isr", "parent": 83, "children": [], "start_point": {"row": 81, "column": 2}, "end_point": {"row": 81, "column": 22}}, {"id": 85, "type": "argument_list", "text": "()", "parent": 83, "children": [], "start_point": {"row": 81, "column": 22}, "end_point": {"row": 81, "column": 24}}, {"id": 86, "type": "#endif", "text": "#endif", "parent": 22, "children": [], "start_point": {"row": 83, "column": 0}, "end_point": {"row": 83, "column": 6}}, {"id": 87, "type": "preproc_if", "text": "#if CORTEX_SIMPLIFIED_PRIORITY || defined(__DOXYGEN__)\r\n/**\r\n * @brief PendSV vector.\r\n * @details The PendSV vector is used for exception mode re-entering after a\r\n * context switch.\r\n * @note The PendSV vector is only used in compact kernel mode.\r\n */\r\nvoid PendSVVector(void) {\r\n struct extctx *ctxp;\r\n\r\n#if CORTEX_USE_FPU\r\n /* Enforcing unstacking of the FP part of the context.*/\r\n SCB_FPCCR &= ~FPCCR_LSPACT;\r\n#endif\r\n\r\n /* Current PSP value.*/\r\n ctxp = (struct extctx *)__get_PSP();\r\n\r\n /* Discarding the current exception context and positioning the stack to\r\n point to the real one.*/\r\n ctxp++;\r\n\r\n /* Restoring real position of the original stack frame.*/\r\n __set_PSP((unsigned long)ctxp);\r\n}\r\n#endif", "parent": null, "children": [88, 89, 95, 96, 146], "start_point": {"row": 85, "column": 0}, "end_point": {"row": 110, "column": 6}}, {"id": 88, "type": "#if", "text": "#if", "parent": 87, "children": [], "start_point": {"row": 85, "column": 0}, "end_point": {"row": 85, "column": 3}}, {"id": 89, "type": "binary_expression", "text": "CORTEX_SIMPLIFIED_PRIORITY || defined(__DOXYGEN__)", "parent": 87, "children": [90, 91, 92], "start_point": {"row": 85, "column": 4}, "end_point": {"row": 85, "column": 54}}, {"id": 90, "type": "identifier", "text": "CORTEX_SIMPLIFIED_PRIORITY", "parent": 89, "children": [], "start_point": {"row": 85, "column": 4}, "end_point": {"row": 85, "column": 30}}, {"id": 91, "type": "||", "text": "||", "parent": 89, "children": [], "start_point": {"row": 85, "column": 31}, "end_point": {"row": 85, "column": 33}}, {"id": 92, "type": "preproc_defined", "text": "defined(__DOXYGEN__)", "parent": 89, "children": [93, 94], "start_point": {"row": 85, "column": 34}, "end_point": {"row": 85, "column": 54}}, {"id": 93, "type": "defined", "text": "defined", "parent": 92, "children": [], "start_point": {"row": 85, "column": 34}, "end_point": {"row": 85, "column": 41}}, {"id": 94, "type": "identifier", "text": "__DOXYGEN__", "parent": 92, "children": [], "start_point": {"row": 85, "column": 42}, "end_point": {"row": 85, "column": 53}}, {"id": 95, "type": "\n", "text": "\n", "parent": 87, "children": [], "start_point": {"row": 85, "column": 55}, "end_point": {"row": 86, "column": 0}}, {"id": 96, "type": "function_definition", "text": "void PendSVVector(void) {\r\n struct extctx *ctxp;\r\n\r\n#if CORTEX_USE_FPU\r\n /* Enforcing unstacking of the FP part of the context.*/\r\n SCB_FPCCR &= ~FPCCR_LSPACT;\r\n#endif\r\n\r\n /* Current PSP value.*/\r\n ctxp = (struct extctx *)__get_PSP();\r\n\r\n /* Discarding the current exception context and positioning the stack to\r\n point to the real one.*/\r\n ctxp++;\r\n\r\n /* Restoring real position of the original stack frame.*/\r\n __set_PSP((unsigned long)ctxp);\r\n}", "parent": 87, "children": [97, 98], "start_point": {"row": 92, "column": 0}, "end_point": {"row": 109, "column": 1}}, {"id": 97, "type": "primitive_type", "text": "void", "parent": 96, "children": [], "start_point": {"row": 92, "column": 0}, "end_point": {"row": 92, "column": 4}}, {"id": 98, "type": "function_declarator", "text": "PendSVVector(void)", "parent": 96, "children": [99, 100], "start_point": {"row": 92, "column": 5}, "end_point": {"row": 92, "column": 23}}, {"id": 99, "type": "identifier", "text": "PendSVVector", "parent": 98, "children": [], "start_point": {"row": 92, "column": 5}, "end_point": {"row": 92, "column": 17}}, {"id": 100, "type": "parameter_list", "text": "(void)", "parent": 98, "children": [101], "start_point": {"row": 92, "column": 17}, "end_point": {"row": 92, "column": 23}}, {"id": 101, "type": "parameter_declaration", "text": "void", "parent": 100, "children": [102], "start_point": {"row": 92, "column": 18}, "end_point": {"row": 92, "column": 22}}, {"id": 102, "type": "primitive_type", "text": "void", "parent": 101, "children": [], "start_point": {"row": 92, "column": 18}, "end_point": {"row": 92, "column": 22}}, {"id": 103, "type": "declaration", "text": "struct extctx *ctxp;", "parent": 96, "children": [104, 107], "start_point": {"row": 93, "column": 2}, "end_point": {"row": 93, "column": 22}}, {"id": 104, "type": "struct_specifier", "text": "struct extctx", "parent": 103, "children": [105, 106], "start_point": {"row": 93, "column": 2}, "end_point": {"row": 93, "column": 15}}, {"id": 105, "type": "struct", "text": "struct", "parent": 104, "children": [], "start_point": {"row": 93, "column": 2}, "end_point": {"row": 93, "column": 8}}, {"id": 106, "type": "type_identifier", "text": "extctx", "parent": 104, "children": [], "start_point": {"row": 93, "column": 9}, "end_point": {"row": 93, "column": 15}}, {"id": 107, "type": "pointer_declarator", "text": "*ctxp", "parent": 103, "children": [108, 109], "start_point": {"row": 93, "column": 16}, "end_point": {"row": 93, "column": 21}}, {"id": 108, "type": "*", "text": "*", "parent": 107, "children": [], "start_point": {"row": 93, "column": 16}, "end_point": {"row": 93, "column": 17}}, {"id": 109, "type": "identifier", "text": "ctxp", "parent": 107, "children": [], "start_point": {"row": 93, "column": 17}, "end_point": {"row": 93, "column": 21}}, {"id": 110, "type": "preproc_if", "text": "#if CORTEX_USE_FPU\r\n /* Enforcing unstacking of the FP part of the context.*/\r\n SCB_FPCCR &= ~FPCCR_LSPACT;\r\n#endif", "parent": 96, "children": [111, 112, 113, 120], "start_point": {"row": 95, "column": 0}, "end_point": {"row": 98, "column": 6}}, {"id": 111, "type": "#if", "text": "#if", "parent": 110, "children": [], "start_point": {"row": 95, "column": 0}, "end_point": {"row": 95, "column": 3}}, {"id": 112, "type": "identifier", "text": "CORTEX_USE_FPU", "parent": 110, "children": [], "start_point": {"row": 95, "column": 4}, "end_point": {"row": 95, "column": 18}}, {"id": 113, "type": "\n", "text": "\n", "parent": 110, "children": [], "start_point": {"row": 95, "column": 19}, "end_point": {"row": 96, "column": 0}}, {"id": 114, "type": "assignment_expression", "text": "SCB_FPCCR &= ~FPCCR_LSPACT", "parent": 110, "children": [115, 116, 117], "start_point": {"row": 97, "column": 2}, "end_point": {"row": 97, "column": 28}}, {"id": 115, "type": "identifier", "text": "SCB_FPCCR", "parent": 114, "children": [], "start_point": {"row": 97, "column": 2}, "end_point": {"row": 97, "column": 11}}, {"id": 116, "type": "&=", "text": "&=", "parent": 114, "children": [], "start_point": {"row": 97, "column": 12}, "end_point": {"row": 97, "column": 14}}, {"id": 117, "type": "unary_expression", "text": "~FPCCR_LSPACT", "parent": 114, "children": [118, 119], "start_point": {"row": 97, "column": 15}, "end_point": {"row": 97, "column": 28}}, {"id": 118, "type": "~", "text": "~", "parent": 117, "children": [], "start_point": {"row": 97, "column": 15}, "end_point": {"row": 97, "column": 16}}, {"id": 119, "type": "identifier", "text": "FPCCR_LSPACT", "parent": 117, "children": [], "start_point": {"row": 97, "column": 16}, "end_point": {"row": 97, "column": 28}}, {"id": 120, "type": "#endif", "text": "#endif", "parent": 110, "children": [], "start_point": {"row": 98, "column": 0}, "end_point": {"row": 98, "column": 6}}, {"id": 121, "type": "assignment_expression", "text": "ctxp = (struct extctx *)__get_PSP()", "parent": 96, "children": [122, 123, 124], "start_point": {"row": 101, "column": 2}, "end_point": {"row": 101, "column": 37}}, {"id": 122, "type": "identifier", "text": "ctxp", "parent": 121, "children": [], "start_point": {"row": 101, "column": 2}, "end_point": {"row": 101, "column": 6}}, {"id": 123, "type": "=", "text": "=", "parent": 121, "children": [], "start_point": {"row": 101, "column": 7}, "end_point": {"row": 101, "column": 8}}, {"id": 124, "type": "cast_expression", "text": "(struct extctx *)__get_PSP()", "parent": 121, "children": [125, 131], "start_point": {"row": 101, "column": 9}, "end_point": {"row": 101, "column": 37}}, {"id": 125, "type": "type_descriptor", "text": "struct extctx *", "parent": 124, "children": [126, 129], "start_point": {"row": 101, "column": 10}, "end_point": {"row": 101, "column": 25}}, {"id": 126, "type": "struct_specifier", "text": "struct extctx", "parent": 125, "children": [127, 128], "start_point": {"row": 101, "column": 10}, "end_point": {"row": 101, "column": 23}}, {"id": 127, "type": "struct", "text": "struct", "parent": 126, "children": [], "start_point": {"row": 101, "column": 10}, "end_point": {"row": 101, "column": 16}}, {"id": 128, "type": "type_identifier", "text": "extctx", "parent": 126, "children": [], "start_point": {"row": 101, "column": 17}, "end_point": {"row": 101, "column": 23}}, {"id": 129, "type": "abstract_pointer_declarator", "text": "*", "parent": 125, "children": [130], "start_point": {"row": 101, "column": 24}, "end_point": {"row": 101, "column": 25}}, {"id": 130, "type": "*", "text": "*", "parent": 129, "children": [], "start_point": {"row": 101, "column": 24}, "end_point": {"row": 101, "column": 25}}, {"id": 131, "type": "call_expression", "text": "__get_PSP()", "parent": 124, "children": [132, 133], "start_point": {"row": 101, "column": 26}, "end_point": {"row": 101, "column": 37}}, {"id": 132, "type": "identifier", "text": "__get_PSP", "parent": 131, "children": [], "start_point": {"row": 101, "column": 26}, "end_point": {"row": 101, "column": 35}}, {"id": 133, "type": "argument_list", "text": "()", "parent": 131, "children": [], "start_point": {"row": 101, "column": 35}, "end_point": {"row": 101, "column": 37}}, {"id": 134, "type": "update_expression", "text": "ctxp++", "parent": 96, "children": [135, 136], "start_point": {"row": 105, "column": 2}, "end_point": {"row": 105, "column": 8}}, {"id": 135, "type": "identifier", "text": "ctxp", "parent": 134, "children": [], "start_point": {"row": 105, "column": 2}, "end_point": {"row": 105, "column": 6}}, {"id": 136, "type": "++", "text": "++", "parent": 134, "children": [], "start_point": {"row": 105, "column": 6}, "end_point": {"row": 105, "column": 8}}, {"id": 137, "type": "call_expression", "text": "__set_PSP((unsigned long)ctxp)", "parent": 96, "children": [138, 139], "start_point": {"row": 108, "column": 2}, "end_point": {"row": 108, "column": 32}}, {"id": 138, "type": "identifier", "text": "__set_PSP", "parent": 137, "children": [], "start_point": {"row": 108, "column": 2}, "end_point": {"row": 108, "column": 11}}, {"id": 139, "type": "argument_list", "text": "((unsigned long)ctxp)", "parent": 137, "children": [140], "start_point": {"row": 108, "column": 11}, "end_point": {"row": 108, "column": 32}}, {"id": 140, "type": "cast_expression", "text": "(unsigned long)ctxp", "parent": 139, "children": [141, 145], "start_point": {"row": 108, "column": 12}, "end_point": {"row": 108, "column": 31}}, {"id": 141, "type": "type_descriptor", "text": "unsigned long", "parent": 140, "children": [142], "start_point": {"row": 108, "column": 13}, "end_point": {"row": 108, "column": 26}}, {"id": 142, "type": "sized_type_specifier", "text": "unsigned long", "parent": 141, "children": [143, 144], "start_point": {"row": 108, "column": 13}, "end_point": {"row": 108, "column": 26}}, {"id": 143, "type": "unsigned", "text": "unsigned", "parent": 142, "children": [], "start_point": {"row": 108, "column": 13}, "end_point": {"row": 108, "column": 21}}, {"id": 144, "type": "long", "text": "long", "parent": 142, "children": [], "start_point": {"row": 108, "column": 22}, "end_point": {"row": 108, "column": 26}}, {"id": 145, "type": "identifier", "text": "ctxp", "parent": 140, "children": [], "start_point": {"row": 108, "column": 27}, "end_point": {"row": 108, "column": 31}}, {"id": 146, "type": "#endif", "text": "#endif", "parent": 87, "children": [], "start_point": {"row": 110, "column": 0}, "end_point": {"row": 110, "column": 6}}, {"id": 147, "type": "function_definition", "text": "void _port_init(void) {\r\n\r\n /* Initialization of the vector table and priority related settings.*/\r\n SCB_VTOR = CORTEX_VTOR_INIT;\r\n SCB_AIRCR = AIRCR_VECTKEY | AIRCR_PRIGROUP(CORTEX_PRIGROUP_INIT);\r\n\r\n#if CORTEX_USE_FPU\r\n {\r\n /* Initializing the FPU context save in lazy mode.*/\r\n SCB_FPCCR = FPCCR_ASPEN | FPCCR_LSPEN;\r\n\r\n /* CP10 and CP11 set to full access.*/\r\n SCB_CPACR |= 0x00F00000;\r\n\r\n /* Enables FPU context save/restore on exception entry/exit (FPCA bit).*/\r\n __set_CONTROL(__get_CONTROL() | 4);\r\n\r\n /* FPSCR and FPDSCR initially zero.*/\r\n __set_FPSCR(0);\r\n SCB_FPDSCR = 0;\r\n }\r\n#endif\r\n\r\n /* Initialization of the system vectors used by the port.*/\r\n nvicSetSystemHandlerPriority(HANDLER_SVCALL,\r\n CORTEX_PRIORITY_MASK(CORTEX_PRIORITY_SVCALL));\r\n nvicSetSystemHandlerPriority(HANDLER_PENDSV,\r\n CORTEX_PRIORITY_MASK(CORTEX_PRIORITY_PENDSV));\r\n nvicSetSystemHandlerPriority(HANDLER_SYSTICK,\r\n CORTEX_PRIORITY_MASK(CORTEX_PRIORITY_SYSTICK));\r\n}", "parent": null, "children": [148, 149], "start_point": {"row": 119, "column": 0}, "end_point": {"row": 149, "column": 1}}, {"id": 148, "type": "primitive_type", "text": "void", "parent": 147, "children": [], "start_point": {"row": 119, "column": 0}, "end_point": {"row": 119, "column": 4}}, {"id": 149, "type": "function_declarator", "text": "_port_init(void)", "parent": 147, "children": [150, 151], "start_point": {"row": 119, "column": 5}, "end_point": {"row": 119, "column": 21}}, {"id": 150, "type": "identifier", "text": "_port_init", "parent": 149, "children": [], "start_point": {"row": 119, "column": 5}, "end_point": {"row": 119, "column": 15}}, {"id": 151, "type": "parameter_list", "text": "(void)", "parent": 149, "children": [152], "start_point": {"row": 119, "column": 15}, "end_point": {"row": 119, "column": 21}}, {"id": 152, "type": "parameter_declaration", "text": "void", "parent": 151, "children": [153], "start_point": {"row": 119, "column": 16}, "end_point": {"row": 119, "column": 20}}, {"id": 153, "type": "primitive_type", "text": "void", "parent": 152, "children": [], "start_point": {"row": 119, "column": 16}, "end_point": {"row": 119, "column": 20}}, {"id": 154, "type": "assignment_expression", "text": "SCB_VTOR = CORTEX_VTOR_INIT", "parent": 147, "children": [155, 156, 157], "start_point": {"row": 122, "column": 2}, "end_point": {"row": 122, "column": 29}}, {"id": 155, "type": "identifier", "text": "SCB_VTOR", "parent": 154, "children": [], "start_point": {"row": 122, "column": 2}, "end_point": {"row": 122, "column": 10}}, {"id": 156, "type": "=", "text": "=", "parent": 154, "children": [], "start_point": {"row": 122, "column": 11}, "end_point": {"row": 122, "column": 12}}, {"id": 157, "type": "identifier", "text": "CORTEX_VTOR_INIT", "parent": 154, "children": [], "start_point": {"row": 122, "column": 13}, "end_point": {"row": 122, "column": 29}}, {"id": 158, "type": "assignment_expression", "text": "SCB_AIRCR = AIRCR_VECTKEY | AIRCR_PRIGROUP(CORTEX_PRIGROUP_INIT)", "parent": 147, "children": [159, 160, 161], "start_point": {"row": 123, "column": 2}, "end_point": {"row": 123, "column": 66}}, {"id": 159, "type": "identifier", "text": "SCB_AIRCR", "parent": 158, "children": [], "start_point": {"row": 123, "column": 2}, "end_point": {"row": 123, "column": 11}}, {"id": 160, "type": "=", "text": "=", "parent": 158, "children": [], "start_point": {"row": 123, "column": 12}, "end_point": {"row": 123, "column": 13}}, {"id": 161, "type": "binary_expression", "text": "AIRCR_VECTKEY | AIRCR_PRIGROUP(CORTEX_PRIGROUP_INIT)", "parent": 158, "children": [162, 163], "start_point": {"row": 123, "column": 14}, "end_point": {"row": 123, "column": 66}}, {"id": 162, "type": "identifier", "text": "AIRCR_VECTKEY", "parent": 161, "children": [], "start_point": {"row": 123, "column": 14}, "end_point": {"row": 123, "column": 27}}, {"id": 163, "type": "call_expression", "text": "AIRCR_PRIGROUP(CORTEX_PRIGROUP_INIT)", "parent": 161, "children": [164, 165], "start_point": {"row": 123, "column": 30}, "end_point": {"row": 123, "column": 66}}, {"id": 164, "type": "identifier", "text": "AIRCR_PRIGROUP", "parent": 163, "children": [], "start_point": {"row": 123, "column": 30}, "end_point": {"row": 123, "column": 44}}, {"id": 165, "type": "argument_list", "text": "(CORTEX_PRIGROUP_INIT)", "parent": 163, "children": [166], "start_point": {"row": 123, "column": 44}, "end_point": {"row": 123, "column": 66}}, {"id": 166, "type": "identifier", "text": "CORTEX_PRIGROUP_INIT", "parent": 165, "children": [], "start_point": {"row": 123, "column": 45}, "end_point": {"row": 123, "column": 65}}, {"id": 167, "type": "preproc_if", "text": "#if CORTEX_USE_FPU\r\n {\r\n /* Initializing the FPU context save in lazy mode.*/\r\n SCB_FPCCR = FPCCR_ASPEN | FPCCR_LSPEN;\r\n\r\n /* CP10 and CP11 set to full access.*/\r\n SCB_CPACR |= 0x00F00000;\r\n\r\n /* Enables FPU context save/restore on exception entry/exit (FPCA bit).*/\r\n __set_CONTROL(__get_CONTROL() | 4);\r\n\r\n /* FPSCR and FPDSCR initially zero.*/\r\n __set_FPSCR(0);\r\n SCB_FPDSCR = 0;\r\n }\r\n#endif", "parent": 147, "children": [168, 169, 170, 197], "start_point": {"row": 125, "column": 0}, "end_point": {"row": 140, "column": 6}}, {"id": 168, "type": "#if", "text": "#if", "parent": 167, "children": [], "start_point": {"row": 125, "column": 0}, "end_point": {"row": 125, "column": 3}}, {"id": 169, "type": "identifier", "text": "CORTEX_USE_FPU", "parent": 167, "children": [], "start_point": {"row": 125, "column": 4}, "end_point": {"row": 125, "column": 18}}, {"id": 170, "type": "\n", "text": "\n", "parent": 167, "children": [], "start_point": {"row": 125, "column": 19}, "end_point": {"row": 126, "column": 0}}, {"id": 171, "type": "assignment_expression", "text": "SCB_FPCCR = FPCCR_ASPEN | FPCCR_LSPEN", "parent": 167, "children": [172, 173, 174], "start_point": {"row": 128, "column": 4}, "end_point": {"row": 128, "column": 41}}, {"id": 172, "type": "identifier", "text": "SCB_FPCCR", "parent": 171, "children": [], "start_point": {"row": 128, "column": 4}, "end_point": {"row": 128, "column": 13}}, {"id": 173, "type": "=", "text": "=", "parent": 171, "children": [], "start_point": {"row": 128, "column": 14}, "end_point": {"row": 128, "column": 15}}, {"id": 174, "type": "binary_expression", "text": "FPCCR_ASPEN | FPCCR_LSPEN", "parent": 171, "children": [175, 176], "start_point": {"row": 128, "column": 16}, "end_point": {"row": 128, "column": 41}}, {"id": 175, "type": "identifier", "text": "FPCCR_ASPEN", "parent": 174, "children": [], "start_point": {"row": 128, "column": 16}, "end_point": {"row": 128, "column": 27}}, {"id": 176, "type": "identifier", "text": "FPCCR_LSPEN", "parent": 174, "children": [], "start_point": {"row": 128, "column": 30}, "end_point": {"row": 128, "column": 41}}, {"id": 177, "type": "assignment_expression", "text": "SCB_CPACR |= 0x00F00000", "parent": 167, "children": [178, 179, 180], "start_point": {"row": 131, "column": 4}, "end_point": {"row": 131, "column": 27}}, {"id": 178, "type": "identifier", "text": "SCB_CPACR", "parent": 177, "children": [], "start_point": {"row": 131, "column": 4}, "end_point": {"row": 131, "column": 13}}, {"id": 179, "type": "|=", "text": "|=", "parent": 177, "children": [], "start_point": {"row": 131, "column": 14}, "end_point": {"row": 131, "column": 16}}, {"id": 180, "type": "number_literal", "text": "0x00F00000", "parent": 177, "children": [], "start_point": {"row": 131, "column": 17}, "end_point": {"row": 131, "column": 27}}, {"id": 181, "type": "call_expression", "text": "__set_CONTROL(__get_CONTROL() | 4)", "parent": 167, "children": [182, 183], "start_point": {"row": 134, "column": 4}, "end_point": {"row": 134, "column": 38}}, {"id": 182, "type": "identifier", "text": "__set_CONTROL", "parent": 181, "children": [], "start_point": {"row": 134, "column": 4}, "end_point": {"row": 134, "column": 17}}, {"id": 183, "type": "argument_list", "text": "(__get_CONTROL() | 4)", "parent": 181, "children": [184], "start_point": {"row": 134, "column": 17}, "end_point": {"row": 134, "column": 38}}, {"id": 184, "type": "binary_expression", "text": "__get_CONTROL() | 4", "parent": 183, "children": [185, 188], "start_point": {"row": 134, "column": 18}, "end_point": {"row": 134, "column": 37}}, {"id": 185, "type": "call_expression", "text": "__get_CONTROL()", "parent": 184, "children": [186, 187], "start_point": {"row": 134, "column": 18}, "end_point": {"row": 134, "column": 33}}, {"id": 186, "type": "identifier", "text": "__get_CONTROL", "parent": 185, "children": [], "start_point": {"row": 134, "column": 18}, "end_point": {"row": 134, "column": 31}}, {"id": 187, "type": "argument_list", "text": "()", "parent": 185, "children": [], "start_point": {"row": 134, "column": 31}, "end_point": {"row": 134, "column": 33}}, {"id": 188, "type": "number_literal", "text": "4", "parent": 184, "children": [], "start_point": {"row": 134, "column": 36}, "end_point": {"row": 134, "column": 37}}, {"id": 189, "type": "call_expression", "text": "__set_FPSCR(0)", "parent": 167, "children": [190, 191], "start_point": {"row": 137, "column": 4}, "end_point": {"row": 137, "column": 18}}, {"id": 190, "type": "identifier", "text": "__set_FPSCR", "parent": 189, "children": [], "start_point": {"row": 137, "column": 4}, "end_point": {"row": 137, "column": 15}}, {"id": 191, "type": "argument_list", "text": "(0)", "parent": 189, "children": [192], "start_point": {"row": 137, "column": 15}, "end_point": {"row": 137, "column": 18}}, {"id": 192, "type": "number_literal", "text": "0", "parent": 191, "children": [], "start_point": {"row": 137, "column": 16}, "end_point": {"row": 137, "column": 17}}, {"id": 193, "type": "assignment_expression", "text": "SCB_FPDSCR = 0", "parent": 167, "children": [194, 195, 196], "start_point": {"row": 138, "column": 4}, "end_point": {"row": 138, "column": 18}}, {"id": 194, "type": "identifier", "text": "SCB_FPDSCR", "parent": 193, "children": [], "start_point": {"row": 138, "column": 4}, "end_point": {"row": 138, "column": 14}}, {"id": 195, "type": "=", "text": "=", "parent": 193, "children": [], "start_point": {"row": 138, "column": 15}, "end_point": {"row": 138, "column": 16}}, {"id": 196, "type": "number_literal", "text": "0", "parent": 193, "children": [], "start_point": {"row": 138, "column": 17}, "end_point": {"row": 138, "column": 18}}, {"id": 197, "type": "#endif", "text": "#endif", "parent": 167, "children": [], "start_point": {"row": 140, "column": 0}, "end_point": {"row": 140, "column": 6}}, {"id": 198, "type": "call_expression", "text": "nvicSetSystemHandlerPriority(HANDLER_SVCALL,\r\n CORTEX_PRIORITY_MASK(CORTEX_PRIORITY_SVCALL))", "parent": 147, "children": [199, 200], "start_point": {"row": 143, "column": 2}, "end_point": {"row": 144, "column": 49}}, {"id": 199, "type": "identifier", "text": "nvicSetSystemHandlerPriority", "parent": 198, "children": [], "start_point": {"row": 143, "column": 2}, "end_point": {"row": 143, "column": 30}}, {"id": 200, "type": "argument_list", "text": "(HANDLER_SVCALL,\r\n CORTEX_PRIORITY_MASK(CORTEX_PRIORITY_SVCALL))", "parent": 198, "children": [201, 202], "start_point": {"row": 143, "column": 30}, "end_point": {"row": 144, "column": 49}}, {"id": 201, "type": "identifier", "text": "HANDLER_SVCALL", "parent": 200, "children": [], "start_point": {"row": 143, "column": 31}, "end_point": {"row": 143, "column": 45}}, {"id": 202, "type": "call_expression", "text": "CORTEX_PRIORITY_MASK(CORTEX_PRIORITY_SVCALL)", "parent": 200, "children": [203, 204], "start_point": {"row": 144, "column": 4}, "end_point": {"row": 144, "column": 48}}, {"id": 203, "type": "identifier", "text": "CORTEX_PRIORITY_MASK", "parent": 202, "children": [], "start_point": {"row": 144, "column": 4}, "end_point": {"row": 144, "column": 24}}, {"id": 204, "type": "argument_list", "text": "(CORTEX_PRIORITY_SVCALL)", "parent": 202, "children": [205], "start_point": {"row": 144, "column": 24}, "end_point": {"row": 144, "column": 48}}, {"id": 205, "type": "identifier", "text": "CORTEX_PRIORITY_SVCALL", "parent": 204, "children": [], "start_point": {"row": 144, "column": 25}, "end_point": {"row": 144, "column": 47}}, {"id": 206, "type": "call_expression", "text": "nvicSetSystemHandlerPriority(HANDLER_PENDSV,\r\n CORTEX_PRIORITY_MASK(CORTEX_PRIORITY_PENDSV))", "parent": 147, "children": [207, 208], "start_point": {"row": 145, "column": 2}, "end_point": {"row": 146, "column": 49}}, {"id": 207, "type": "identifier", "text": "nvicSetSystemHandlerPriority", "parent": 206, "children": [], "start_point": {"row": 145, "column": 2}, "end_point": {"row": 145, "column": 30}}, {"id": 208, "type": "argument_list", "text": "(HANDLER_PENDSV,\r\n CORTEX_PRIORITY_MASK(CORTEX_PRIORITY_PENDSV))", "parent": 206, "children": [209, 210], "start_point": {"row": 145, "column": 30}, "end_point": {"row": 146, "column": 49}}, {"id": 209, "type": "identifier", "text": "HANDLER_PENDSV", "parent": 208, "children": [], "start_point": {"row": 145, "column": 31}, "end_point": {"row": 145, "column": 45}}, {"id": 210, "type": "call_expression", "text": "CORTEX_PRIORITY_MASK(CORTEX_PRIORITY_PENDSV)", "parent": 208, "children": [211, 212], "start_point": {"row": 146, "column": 4}, "end_point": {"row": 146, "column": 48}}, {"id": 211, "type": "identifier", "text": "CORTEX_PRIORITY_MASK", "parent": 210, "children": [], "start_point": {"row": 146, "column": 4}, "end_point": {"row": 146, "column": 24}}, {"id": 212, "type": "argument_list", "text": "(CORTEX_PRIORITY_PENDSV)", "parent": 210, "children": [213], "start_point": {"row": 146, "column": 24}, "end_point": {"row": 146, "column": 48}}, {"id": 213, "type": "identifier", "text": "CORTEX_PRIORITY_PENDSV", "parent": 212, "children": [], "start_point": {"row": 146, "column": 25}, "end_point": {"row": 146, "column": 47}}, {"id": 214, "type": "call_expression", "text": "nvicSetSystemHandlerPriority(HANDLER_SYSTICK,\r\n CORTEX_PRIORITY_MASK(CORTEX_PRIORITY_SYSTICK))", "parent": 147, "children": [215, 216], "start_point": {"row": 147, "column": 2}, "end_point": {"row": 148, "column": 50}}, {"id": 215, "type": "identifier", "text": "nvicSetSystemHandlerPriority", "parent": 214, "children": [], "start_point": {"row": 147, "column": 2}, "end_point": {"row": 147, "column": 30}}, {"id": 216, "type": "argument_list", "text": "(HANDLER_SYSTICK,\r\n CORTEX_PRIORITY_MASK(CORTEX_PRIORITY_SYSTICK))", "parent": 214, "children": [217, 218], "start_point": {"row": 147, "column": 30}, "end_point": {"row": 148, "column": 50}}, {"id": 217, "type": "identifier", "text": "HANDLER_SYSTICK", "parent": 216, "children": [], "start_point": {"row": 147, "column": 31}, "end_point": {"row": 147, "column": 46}}, {"id": 218, "type": "call_expression", "text": "CORTEX_PRIORITY_MASK(CORTEX_PRIORITY_SYSTICK)", "parent": 216, "children": [219, 220], "start_point": {"row": 148, "column": 4}, "end_point": {"row": 148, "column": 49}}, {"id": 219, "type": "identifier", "text": "CORTEX_PRIORITY_MASK", "parent": 218, "children": [], "start_point": {"row": 148, "column": 4}, "end_point": {"row": 148, "column": 24}}, {"id": 220, "type": "argument_list", "text": "(CORTEX_PRIORITY_SYSTICK)", "parent": 218, "children": [221], "start_point": {"row": 148, "column": 24}, "end_point": {"row": 148, "column": 49}}, {"id": 221, "type": "identifier", "text": "CORTEX_PRIORITY_SYSTICK", "parent": 220, "children": [], "start_point": {"row": 148, "column": 25}, "end_point": {"row": 148, "column": 48}}, {"id": 222, "type": "function_definition", "text": "void _port_irq_epilogue(void) {\r\n\r\n port_lock_from_isr();\r\n if ((SCB_ICSR & ICSR_RETTOBASE) != 0) {\r\n struct extctx *ctxp;\r\n\r\n#if CORTEX_USE_FPU\r\n /* Enforcing a lazy FPU state save. Note, it goes in the original\r\n context because the FPCAR register has not been modified.*/\r\n (void)__get_FPSCR();\r\n#endif\r\n\r\n /* Current PSP value.*/\r\n ctxp = (struct extctx *)__get_PSP();\r\n\r\n /* Adding an artificial exception return context, there is no need to\r\n populate it fully.*/\r\n ctxp--;\r\n ctxp->xpsr = (regarm_t)0x01000000;\r\n#if CORTEX_USE_FPU\r\n ctxp->fpscr = (regarm_t)SCB_FPDSCR;\r\n#endif\r\n __set_PSP((unsigned long)ctxp);\r\n\r\n /* The exit sequence is different depending on if a preemption is\r\n required or not.*/\r\n if (chSchIsPreemptionRequired()) {\r\n /* Preemption is required we need to enforce a context switch.*/\r\n ctxp->pc = (regarm_t)_port_switch_from_isr;\r\n }\r\n else {\r\n /* Preemption not required, we just need to exit the exception\r\n atomically.*/\r\n ctxp->pc = (regarm_t)_port_exit_from_isr;\r\n }\r\n\r\n /* Note, returning without unlocking is intentional, this is done in\r\n order to keep the rest of the context switch atomic.*/\r\n return;\r\n }\r\n port_unlock_from_isr();\r\n}", "parent": null, "children": [223, 224], "start_point": {"row": 154, "column": 0}, "end_point": {"row": 195, "column": 1}}, {"id": 223, "type": "primitive_type", "text": "void", "parent": 222, "children": [], "start_point": {"row": 154, "column": 0}, "end_point": {"row": 154, "column": 4}}, {"id": 224, "type": "function_declarator", "text": "_port_irq_epilogue(void)", "parent": 222, "children": [225, 226], "start_point": {"row": 154, "column": 5}, "end_point": {"row": 154, "column": 29}}, {"id": 225, "type": "identifier", "text": "_port_irq_epilogue", "parent": 224, "children": [], "start_point": {"row": 154, "column": 5}, "end_point": {"row": 154, "column": 23}}, {"id": 226, "type": "parameter_list", "text": "(void)", "parent": 224, "children": [227], "start_point": {"row": 154, "column": 23}, "end_point": {"row": 154, "column": 29}}, {"id": 227, "type": "parameter_declaration", "text": "void", "parent": 226, "children": [228], "start_point": {"row": 154, "column": 24}, "end_point": {"row": 154, "column": 28}}, {"id": 228, "type": "primitive_type", "text": "void", "parent": 227, "children": [], "start_point": {"row": 154, "column": 24}, "end_point": {"row": 154, "column": 28}}, {"id": 229, "type": "call_expression", "text": "port_lock_from_isr()", "parent": 222, "children": [230, 231], "start_point": {"row": 156, "column": 2}, "end_point": {"row": 156, "column": 22}}, {"id": 230, "type": "identifier", "text": "port_lock_from_isr", "parent": 229, "children": [], "start_point": {"row": 156, "column": 2}, "end_point": {"row": 156, "column": 20}}, {"id": 231, "type": "argument_list", "text": "()", "parent": 229, "children": [], "start_point": {"row": 156, "column": 20}, "end_point": {"row": 156, "column": 22}}, {"id": 232, "type": "if_statement", "text": "if ((SCB_ICSR & ICSR_RETTOBASE) != 0) {\r\n struct extctx *ctxp;\r\n\r\n#if CORTEX_USE_FPU\r\n /* Enforcing a lazy FPU state save. Note, it goes in the original\r\n context because the FPCAR register has not been modified.*/\r\n (void)__get_FPSCR();\r\n#endif\r\n\r\n /* Current PSP value.*/\r\n ctxp = (struct extctx *)__get_PSP();\r\n\r\n /* Adding an artificial exception return context, there is no need to\r\n populate it fully.*/\r\n ctxp--;\r\n ctxp->xpsr = (regarm_t)0x01000000;\r\n#if CORTEX_USE_FPU\r\n ctxp->fpscr = (regarm_t)SCB_FPDSCR;\r\n#endif\r\n __set_PSP((unsigned long)ctxp);\r\n\r\n /* The exit sequence is different depending on if a preemption is\r\n required or not.*/\r\n if (chSchIsPreemptionRequired()) {\r\n /* Preemption is required we need to enforce a context switch.*/\r\n ctxp->pc = (regarm_t)_port_switch_from_isr;\r\n }\r\n else {\r\n /* Preemption not required, we just need to exit the exception\r\n atomically.*/\r\n ctxp->pc = (regarm_t)_port_exit_from_isr;\r\n }\r\n\r\n /* Note, returning without unlocking is intentional, this is done in\r\n order to keep the rest of the context switch atomic.*/\r\n return;\r\n }", "parent": 222, "children": [233], "start_point": {"row": 157, "column": 2}, "end_point": {"row": 193, "column": 3}}, {"id": 233, "type": "parenthesized_expression", "text": "((SCB_ICSR & ICSR_RETTOBASE) != 0)", "parent": 232, "children": [234], "start_point": {"row": 157, "column": 5}, "end_point": {"row": 157, "column": 39}}, {"id": 234, "type": "binary_expression", "text": "(SCB_ICSR & ICSR_RETTOBASE) != 0", "parent": 233, "children": [235, 239, 240], "start_point": {"row": 157, "column": 6}, "end_point": {"row": 157, "column": 38}}, {"id": 235, "type": "parenthesized_expression", "text": "(SCB_ICSR & ICSR_RETTOBASE)", "parent": 234, "children": [236], "start_point": {"row": 157, "column": 6}, "end_point": {"row": 157, "column": 33}}, {"id": 236, "type": "binary_expression", "text": "SCB_ICSR & ICSR_RETTOBASE", "parent": 235, "children": [237, 238], "start_point": {"row": 157, "column": 7}, "end_point": {"row": 157, "column": 32}}, {"id": 237, "type": "identifier", "text": "SCB_ICSR", "parent": 236, "children": [], "start_point": {"row": 157, "column": 7}, "end_point": {"row": 157, "column": 15}}, {"id": 238, "type": "identifier", "text": "ICSR_RETTOBASE", "parent": 236, "children": [], "start_point": {"row": 157, "column": 18}, "end_point": {"row": 157, "column": 32}}, {"id": 239, "type": "!=", "text": "!=", "parent": 234, "children": [], "start_point": {"row": 157, "column": 34}, "end_point": {"row": 157, "column": 36}}, {"id": 240, "type": "number_literal", "text": "0", "parent": 234, "children": [], "start_point": {"row": 157, "column": 37}, "end_point": {"row": 157, "column": 38}}, {"id": 241, "type": "declaration", "text": "struct extctx *ctxp;", "parent": 232, "children": [242, 245], "start_point": {"row": 158, "column": 4}, "end_point": {"row": 158, "column": 24}}, {"id": 242, "type": "struct_specifier", "text": "struct extctx", "parent": 241, "children": [243, 244], "start_point": {"row": 158, "column": 4}, "end_point": {"row": 158, "column": 17}}, {"id": 243, "type": "struct", "text": "struct", "parent": 242, "children": [], "start_point": {"row": 158, "column": 4}, "end_point": {"row": 158, "column": 10}}, {"id": 244, "type": "type_identifier", "text": "extctx", "parent": 242, "children": [], "start_point": {"row": 158, "column": 11}, "end_point": {"row": 158, "column": 17}}, {"id": 245, "type": "pointer_declarator", "text": "*ctxp", "parent": 241, "children": [246, 247], "start_point": {"row": 158, "column": 18}, "end_point": {"row": 158, "column": 23}}, {"id": 246, "type": "*", "text": "*", "parent": 245, "children": [], "start_point": {"row": 158, "column": 18}, "end_point": {"row": 158, "column": 19}}, {"id": 247, "type": "identifier", "text": "ctxp", "parent": 245, "children": [], "start_point": {"row": 158, "column": 19}, "end_point": {"row": 158, "column": 23}}, {"id": 248, "type": "preproc_if", "text": "#if CORTEX_USE_FPU\r\n /* Enforcing a lazy FPU state save. Note, it goes in the original\r\n context because the FPCAR register has not been modified.*/\r\n (void)__get_FPSCR();\r\n#endif", "parent": 232, "children": [249, 250, 251, 258], "start_point": {"row": 160, "column": 0}, "end_point": {"row": 164, "column": 6}}, {"id": 249, "type": "#if", "text": "#if", "parent": 248, "children": [], "start_point": {"row": 160, "column": 0}, "end_point": {"row": 160, "column": 3}}, {"id": 250, "type": "identifier", "text": "CORTEX_USE_FPU", "parent": 248, "children": [], "start_point": {"row": 160, "column": 4}, "end_point": {"row": 160, "column": 18}}, {"id": 251, "type": "\n", "text": "\n", "parent": 248, "children": [], "start_point": {"row": 160, "column": 19}, "end_point": {"row": 161, "column": 0}}, {"id": 252, "type": "cast_expression", "text": "(void)__get_FPSCR()", "parent": 248, "children": [253, 255], "start_point": {"row": 163, "column": 4}, "end_point": {"row": 163, "column": 23}}, {"id": 253, "type": "type_descriptor", "text": "void", "parent": 252, "children": [254], "start_point": {"row": 163, "column": 5}, "end_point": {"row": 163, "column": 9}}, {"id": 254, "type": "primitive_type", "text": "void", "parent": 253, "children": [], "start_point": {"row": 163, "column": 5}, "end_point": {"row": 163, "column": 9}}, {"id": 255, "type": "call_expression", "text": "__get_FPSCR()", "parent": 252, "children": [256, 257], "start_point": {"row": 163, "column": 10}, "end_point": {"row": 163, "column": 23}}, {"id": 256, "type": "identifier", "text": "__get_FPSCR", "parent": 255, "children": [], "start_point": {"row": 163, "column": 10}, "end_point": {"row": 163, "column": 21}}, {"id": 257, "type": "argument_list", "text": "()", "parent": 255, "children": [], "start_point": {"row": 163, "column": 21}, "end_point": {"row": 163, "column": 23}}, {"id": 258, "type": "#endif", "text": "#endif", "parent": 248, "children": [], "start_point": {"row": 164, "column": 0}, "end_point": {"row": 164, "column": 6}}, {"id": 259, "type": "assignment_expression", "text": "ctxp = (struct extctx *)__get_PSP()", "parent": 232, "children": [260, 261, 262], "start_point": {"row": 167, "column": 4}, "end_point": {"row": 167, "column": 39}}, {"id": 260, "type": "identifier", "text": "ctxp", "parent": 259, "children": [], "start_point": {"row": 167, "column": 4}, "end_point": {"row": 167, "column": 8}}, {"id": 261, "type": "=", "text": "=", "parent": 259, "children": [], "start_point": {"row": 167, "column": 9}, "end_point": {"row": 167, "column": 10}}, {"id": 262, "type": "cast_expression", "text": "(struct extctx *)__get_PSP()", "parent": 259, "children": [263, 269], "start_point": {"row": 167, "column": 11}, "end_point": {"row": 167, "column": 39}}, {"id": 263, "type": "type_descriptor", "text": "struct extctx *", "parent": 262, "children": [264, 267], "start_point": {"row": 167, "column": 12}, "end_point": {"row": 167, "column": 27}}, {"id": 264, "type": "struct_specifier", "text": "struct extctx", "parent": 263, "children": [265, 266], "start_point": {"row": 167, "column": 12}, "end_point": {"row": 167, "column": 25}}, {"id": 265, "type": "struct", "text": "struct", "parent": 264, "children": [], "start_point": {"row": 167, "column": 12}, "end_point": {"row": 167, "column": 18}}, {"id": 266, "type": "type_identifier", "text": "extctx", "parent": 264, "children": [], "start_point": {"row": 167, "column": 19}, "end_point": {"row": 167, "column": 25}}, {"id": 267, "type": "abstract_pointer_declarator", "text": "*", "parent": 263, "children": [268], "start_point": {"row": 167, "column": 26}, "end_point": {"row": 167, "column": 27}}, {"id": 268, "type": "*", "text": "*", "parent": 267, "children": [], "start_point": {"row": 167, "column": 26}, "end_point": {"row": 167, "column": 27}}, {"id": 269, "type": "call_expression", "text": "__get_PSP()", "parent": 262, "children": [270, 271], "start_point": {"row": 167, "column": 28}, "end_point": {"row": 167, "column": 39}}, {"id": 270, "type": "identifier", "text": "__get_PSP", "parent": 269, "children": [], "start_point": {"row": 167, "column": 28}, "end_point": {"row": 167, "column": 37}}, {"id": 271, "type": "argument_list", "text": "()", "parent": 269, "children": [], "start_point": {"row": 167, "column": 37}, "end_point": {"row": 167, "column": 39}}, {"id": 272, "type": "update_expression", "text": "ctxp--", "parent": 232, "children": [273, 274], "start_point": {"row": 171, "column": 4}, "end_point": {"row": 171, "column": 10}}, {"id": 273, "type": "identifier", "text": "ctxp", "parent": 272, "children": [], "start_point": {"row": 171, "column": 4}, "end_point": {"row": 171, "column": 8}}, {"id": 274, "type": "--", "text": "--", "parent": 272, "children": [], "start_point": {"row": 171, "column": 8}, "end_point": {"row": 171, "column": 10}}, {"id": 275, "type": "assignment_expression", "text": "ctxp->xpsr = (regarm_t)0x01000000", "parent": 232, "children": [276, 279, 280], "start_point": {"row": 172, "column": 4}, "end_point": {"row": 172, "column": 37}}, {"id": 276, "type": "field_expression", "text": "ctxp->xpsr", "parent": 275, "children": [277, 278], "start_point": {"row": 172, "column": 4}, "end_point": {"row": 172, "column": 14}}, {"id": 277, "type": "identifier", "text": "ctxp", "parent": 276, "children": [], "start_point": {"row": 172, "column": 4}, "end_point": {"row": 172, "column": 8}}, {"id": 278, "type": "field_identifier", "text": "xpsr", "parent": 276, "children": [], "start_point": {"row": 172, "column": 10}, "end_point": {"row": 172, "column": 14}}, {"id": 279, "type": "=", "text": "=", "parent": 275, "children": [], "start_point": {"row": 172, "column": 15}, "end_point": {"row": 172, "column": 16}}, {"id": 280, "type": "cast_expression", "text": "(regarm_t)0x01000000", "parent": 275, "children": [281, 283], "start_point": {"row": 172, "column": 17}, "end_point": {"row": 172, "column": 37}}, {"id": 281, "type": "type_descriptor", "text": "regarm_t", "parent": 280, "children": [282], "start_point": {"row": 172, "column": 18}, "end_point": {"row": 172, "column": 26}}, {"id": 282, "type": "type_identifier", "text": "regarm_t", "parent": 281, "children": [], "start_point": {"row": 172, "column": 18}, "end_point": {"row": 172, "column": 26}}, {"id": 283, "type": "number_literal", "text": "0x01000000", "parent": 280, "children": [], "start_point": {"row": 172, "column": 27}, "end_point": {"row": 172, "column": 37}}, {"id": 284, "type": "preproc_if", "text": "#if CORTEX_USE_FPU\r\n ctxp->fpscr = (regarm_t)SCB_FPDSCR;\r\n#endif", "parent": 232, "children": [285, 286, 287, 297], "start_point": {"row": 173, "column": 0}, "end_point": {"row": 175, "column": 6}}, {"id": 285, "type": "#if", "text": "#if", "parent": 284, "children": [], "start_point": {"row": 173, "column": 0}, "end_point": {"row": 173, "column": 3}}, {"id": 286, "type": "identifier", "text": "CORTEX_USE_FPU", "parent": 284, "children": [], "start_point": {"row": 173, "column": 4}, "end_point": {"row": 173, "column": 18}}, {"id": 287, "type": "\n", "text": "\n", "parent": 284, "children": [], "start_point": {"row": 173, "column": 19}, "end_point": {"row": 174, "column": 0}}, {"id": 288, "type": "assignment_expression", "text": "ctxp->fpscr = (regarm_t)SCB_FPDSCR", "parent": 284, "children": [289, 292, 293], "start_point": {"row": 174, "column": 4}, "end_point": {"row": 174, "column": 38}}, {"id": 289, "type": "field_expression", "text": "ctxp->fpscr", "parent": 288, "children": [290, 291], "start_point": {"row": 174, "column": 4}, "end_point": {"row": 174, "column": 15}}, {"id": 290, "type": "identifier", "text": "ctxp", "parent": 289, "children": [], "start_point": {"row": 174, "column": 4}, "end_point": {"row": 174, "column": 8}}, {"id": 291, "type": "field_identifier", "text": "fpscr", "parent": 289, "children": [], "start_point": {"row": 174, "column": 10}, "end_point": {"row": 174, "column": 15}}, {"id": 292, "type": "=", "text": "=", "parent": 288, "children": [], "start_point": {"row": 174, "column": 16}, "end_point": {"row": 174, "column": 17}}, {"id": 293, "type": "cast_expression", "text": "(regarm_t)SCB_FPDSCR", "parent": 288, "children": [294, 296], "start_point": {"row": 174, "column": 18}, "end_point": {"row": 174, "column": 38}}, {"id": 294, "type": "type_descriptor", "text": "regarm_t", "parent": 293, "children": [295], "start_point": {"row": 174, "column": 19}, "end_point": {"row": 174, "column": 27}}, {"id": 295, "type": "type_identifier", "text": "regarm_t", "parent": 294, "children": [], "start_point": {"row": 174, "column": 19}, "end_point": {"row": 174, "column": 27}}, {"id": 296, "type": "identifier", "text": "SCB_FPDSCR", "parent": 293, "children": [], "start_point": {"row": 174, "column": 28}, "end_point": {"row": 174, "column": 38}}, {"id": 297, "type": "#endif", "text": "#endif", "parent": 284, "children": [], "start_point": {"row": 175, "column": 0}, "end_point": {"row": 175, "column": 6}}, {"id": 298, "type": "call_expression", "text": "__set_PSP((unsigned long)ctxp)", "parent": 232, "children": [299, 300], "start_point": {"row": 176, "column": 4}, "end_point": {"row": 176, "column": 34}}, {"id": 299, "type": "identifier", "text": "__set_PSP", "parent": 298, "children": [], "start_point": {"row": 176, "column": 4}, "end_point": {"row": 176, "column": 13}}, {"id": 300, "type": "argument_list", "text": "((unsigned long)ctxp)", "parent": 298, "children": [301], "start_point": {"row": 176, "column": 13}, "end_point": {"row": 176, "column": 34}}, {"id": 301, "type": "cast_expression", "text": "(unsigned long)ctxp", "parent": 300, "children": [302, 306], "start_point": {"row": 176, "column": 14}, "end_point": {"row": 176, "column": 33}}, {"id": 302, "type": "type_descriptor", "text": "unsigned long", "parent": 301, "children": [303], "start_point": {"row": 176, "column": 15}, "end_point": {"row": 176, "column": 28}}, {"id": 303, "type": "sized_type_specifier", "text": "unsigned long", "parent": 302, "children": [304, 305], "start_point": {"row": 176, "column": 15}, "end_point": {"row": 176, "column": 28}}, {"id": 304, "type": "unsigned", "text": "unsigned", "parent": 303, "children": [], "start_point": {"row": 176, "column": 15}, "end_point": {"row": 176, "column": 23}}, {"id": 305, "type": "long", "text": "long", "parent": 303, "children": [], "start_point": {"row": 176, "column": 24}, "end_point": {"row": 176, "column": 28}}, {"id": 306, "type": "identifier", "text": "ctxp", "parent": 301, "children": [], "start_point": {"row": 176, "column": 29}, "end_point": {"row": 176, "column": 33}}, {"id": 307, "type": "if_statement", "text": "if (chSchIsPreemptionRequired()) {\r\n /* Preemption is required we need to enforce a context switch.*/\r\n ctxp->pc = (regarm_t)_port_switch_from_isr;\r\n }\r\n else {\r\n /* Preemption not required, we just need to exit the exception\r\n atomically.*/\r\n ctxp->pc = (regarm_t)_port_exit_from_isr;\r\n }", "parent": 232, "children": [308, 321], "start_point": {"row": 180, "column": 4}, "end_point": {"row": 188, "column": 5}}, {"id": 308, "type": "parenthesized_expression", "text": "(chSchIsPreemptionRequired())", "parent": 307, "children": [309], "start_point": {"row": 180, "column": 7}, "end_point": {"row": 180, "column": 36}}, {"id": 309, "type": "call_expression", "text": "chSchIsPreemptionRequired()", "parent": 308, "children": [310, 311], "start_point": {"row": 180, "column": 8}, "end_point": {"row": 180, "column": 35}}, {"id": 310, "type": "identifier", "text": "chSchIsPreemptionRequired", "parent": 309, "children": [], "start_point": {"row": 180, "column": 8}, "end_point": {"row": 180, "column": 33}}, {"id": 311, "type": "argument_list", "text": "()", "parent": 309, "children": [], "start_point": {"row": 180, "column": 33}, "end_point": {"row": 180, "column": 35}}, {"id": 312, "type": "assignment_expression", "text": "ctxp->pc = (regarm_t)_port_switch_from_isr", "parent": 307, "children": [313, 316, 317], "start_point": {"row": 182, "column": 6}, "end_point": {"row": 182, "column": 48}}, {"id": 313, "type": "field_expression", "text": "ctxp->pc", "parent": 312, "children": [314, 315], "start_point": {"row": 182, "column": 6}, "end_point": {"row": 182, "column": 14}}, {"id": 314, "type": "identifier", "text": "ctxp", "parent": 313, "children": [], "start_point": {"row": 182, "column": 6}, "end_point": {"row": 182, "column": 10}}, {"id": 315, "type": "field_identifier", "text": "pc", "parent": 313, "children": [], "start_point": {"row": 182, "column": 12}, "end_point": {"row": 182, "column": 14}}, {"id": 316, "type": "=", "text": "=", "parent": 312, "children": [], "start_point": {"row": 182, "column": 15}, "end_point": {"row": 182, "column": 16}}, {"id": 317, "type": "cast_expression", "text": "(regarm_t)_port_switch_from_isr", "parent": 312, "children": [318, 320], "start_point": {"row": 182, "column": 17}, "end_point": {"row": 182, "column": 48}}, {"id": 318, "type": "type_descriptor", "text": "regarm_t", "parent": 317, "children": [319], "start_point": {"row": 182, "column": 18}, "end_point": {"row": 182, "column": 26}}, {"id": 319, "type": "type_identifier", "text": "regarm_t", "parent": 318, "children": [], "start_point": {"row": 182, "column": 18}, "end_point": {"row": 182, "column": 26}}, {"id": 320, "type": "identifier", "text": "_port_switch_from_isr", "parent": 317, "children": [], "start_point": {"row": 182, "column": 27}, "end_point": {"row": 182, "column": 48}}, {"id": 321, "type": "else_clause", "text": "else {\r\n /* Preemption not required, we just need to exit the exception\r\n atomically.*/\r\n ctxp->pc = (regarm_t)_port_exit_from_isr;\r\n }", "parent": 307, "children": [], "start_point": {"row": 184, "column": 4}, "end_point": {"row": 188, "column": 5}}, {"id": 322, "type": "assignment_expression", "text": "ctxp->pc = (regarm_t)_port_exit_from_isr", "parent": 321, "children": [323, 326, 327], "start_point": {"row": 187, "column": 6}, "end_point": {"row": 187, "column": 46}}, {"id": 323, "type": "field_expression", "text": "ctxp->pc", "parent": 322, "children": [324, 325], "start_point": {"row": 187, "column": 6}, "end_point": {"row": 187, "column": 14}}, {"id": 324, "type": "identifier", "text": "ctxp", "parent": 323, "children": [], "start_point": {"row": 187, "column": 6}, "end_point": {"row": 187, "column": 10}}, {"id": 325, "type": "field_identifier", "text": "pc", "parent": 323, "children": [], "start_point": {"row": 187, "column": 12}, "end_point": {"row": 187, "column": 14}}, {"id": 326, "type": "=", "text": "=", "parent": 322, "children": [], "start_point": {"row": 187, "column": 15}, "end_point": {"row": 187, "column": 16}}, {"id": 327, "type": "cast_expression", "text": "(regarm_t)_port_exit_from_isr", "parent": 322, "children": [328, 330], "start_point": {"row": 187, "column": 17}, "end_point": {"row": 187, "column": 46}}, {"id": 328, "type": "type_descriptor", "text": "regarm_t", "parent": 327, "children": [329], "start_point": {"row": 187, "column": 18}, "end_point": {"row": 187, "column": 26}}, {"id": 329, "type": "type_identifier", "text": "regarm_t", "parent": 328, "children": [], "start_point": {"row": 187, "column": 18}, "end_point": {"row": 187, "column": 26}}, {"id": 330, "type": "identifier", "text": "_port_exit_from_isr", "parent": 327, "children": [], "start_point": {"row": 187, "column": 27}, "end_point": {"row": 187, "column": 46}}, {"id": 331, "type": "return_statement", "text": "return;", "parent": 232, "children": [], "start_point": {"row": 192, "column": 4}, "end_point": {"row": 192, "column": 11}}, {"id": 332, "type": "call_expression", "text": "port_unlock_from_isr()", "parent": 222, "children": [333, 334], "start_point": {"row": 194, "column": 2}, "end_point": {"row": 194, "column": 24}}, {"id": 333, "type": "identifier", "text": "port_unlock_from_isr", "parent": 332, "children": [], "start_point": {"row": 194, "column": 2}, "end_point": {"row": 194, "column": 22}}, {"id": 334, "type": "argument_list", "text": "()", "parent": 332, "children": [], "start_point": {"row": 194, "column": 22}, "end_point": {"row": 194, "column": 24}}]}, "node_categories": {"declarations": {"functions": [3, 33, 35, 96, 98, 147, 149, 222, 224], "variables": [38, 40, 101, 103, 152, 227, 241], "classes": [41, 42, 63, 64, 104, 105, 126, 127, 242, 243, 264, 265], "imports": [0, 1], "modules": [], "enums": []}, "statements": {"expressions": [7, 10, 13, 16, 19, 24, 25, 54, 61, 68, 71, 74, 77, 83, 89, 117, 124, 131, 134, 137, 140, 161, 163, 174, 181, 184, 185, 189, 198, 202, 206, 210, 214, 218, 229, 233, 234, 235, 236, 252, 255, 262, 269, 272, 276, 280, 289, 293, 298, 301, 308, 309, 313, 317, 323, 327, 332], "assignments": [51, 58, 114, 121, 154, 158, 171, 177, 193, 259, 275, 288, 312, 322], "loops": [], "conditionals": [4, 6, 8, 11, 14, 17, 20, 22, 23, 27, 31, 36, 43, 46, 47, 48, 49, 52, 56, 57, 59, 65, 69, 72, 75, 79, 82, 84, 86, 87, 88, 90, 94, 99, 106, 109, 110, 111, 112, 115, 119, 120, 122, 128, 132, 135, 138, 142, 145, 146, 150, 155, 157, 159, 162, 164, 166, 167, 168, 169, 172, 175, 176, 178, 182, 186, 190, 194, 197, 199, 201, 203, 205, 207, 209, 211, 213, 215, 217, 219, 221, 225, 230, 232, 237, 238, 244, 247, 248, 249, 250, 256, 258, 260, 266, 270, 273, 277, 278, 282, 284, 285, 286, 290, 291, 295, 296, 297, 299, 303, 306, 307, 310, 314, 315, 319, 320, 324, 325, 329, 330, 333], "returns": [331], "exceptions": []}, "expressions": {"calls": [], "literals": [2, 180, 188, 192, 196, 240, 283], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [{"node_id": 3, "universal_type": "function", "name": "unknown", "text_snippet": "CH_IRQ_HANDLER(SysTickVector) {\r\n\r\n CH_IRQ_PROLOGUE();\r\n\r\n chSysLockFromIsr();\r\n chSysTimerHandle"}, {"node_id": 33, "universal_type": "function", "name": "SVCallVector", "text_snippet": "void SVCallVector(void) {\r\n struct extctx *ctxp;\r\n\r\n#if CORTEX_USE_FPU\r\n /* Enforcing unstacking o"}, {"node_id": 35, "universal_type": "function", "name": "unknown", "text_snippet": "SVCallVector(void)"}, {"node_id": 96, "universal_type": "function", "name": "PendSVVector", "text_snippet": "void PendSVVector(void) {\r\n struct extctx *ctxp;\r\n\r\n#if CORTEX_USE_FPU\r\n /* Enforcing unstacking o"}, {"node_id": 98, "universal_type": "function", "name": "unknown", "text_snippet": "PendSVVector(void)"}, {"node_id": 147, "universal_type": "function", "name": "_port_init", "text_snippet": "void _port_init(void) {\r\n\r\n /* Initialization of the vector table and priority related settings.*/\r"}, {"node_id": 149, "universal_type": "function", "name": "unknown", "text_snippet": "_port_init(void)"}, {"node_id": 222, "universal_type": "function", "name": "_port_irq_epilogue", "text_snippet": "void _port_irq_epilogue(void) {\r\n\r\n port_lock_from_isr();\r\n if ((SCB_ICSR & ICSR_RETTOBASE) != 0) "}, {"node_id": 224, "universal_type": "function", "name": "unknown", "text_snippet": "_port_irq_epilogue(void)"}], "class_declarations": [{"node_id": 41, "universal_type": "class", "name": "extctx", "text_snippet": "struct extctx"}, {"node_id": 42, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 63, "universal_type": "class", "name": "extctx", "text_snippet": "struct extctx"}, {"node_id": 64, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 104, "universal_type": "class", "name": "extctx", "text_snippet": "struct extctx"}, {"node_id": 105, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 126, "universal_type": "class", "name": "extctx", "text_snippet": "struct extctx"}, {"node_id": 127, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 242, "universal_type": "class", "name": "extctx", "text_snippet": "struct extctx"}, {"node_id": 243, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 264, "universal_type": "class", "name": "extctx", "text_snippet": "struct extctx"}, {"node_id": 265, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}], "import_statements": [{"node_id": 0, "text": "#include \"ch.h\"\r\n"}, {"node_id": 1, "text": "#include"}]}, "original_source_code": "/*\r\n ChibiOS/RT - Copyright (C) 2006,2007,2008,2009,2010,\r\n 2011,2012,2013 <NAME>.\r\n\r\n This file is part of ChibiOS/RT.\r\n\r\n ChibiOS/RT is free software; you can redistribute it and/or modify\r\n it under the terms of the GNU General Public License as published by\r\n the Free Software Foundation; either version 3 of the License, or\r\n (at your option) any later version.\r\n\r\n ChibiOS/RT is distributed in the hope that it will be useful,\r\n but WITHOUT ANY WARRANTY; without even the implied warranty of\r\n MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\r\n GNU General Public License for more details.\r\n\r\n You should have received a copy of the GNU General Public License\r\n along with this program. If not, see <http://www.gnu.org/licenses/>.\r\n\r\n ---\r\n\r\n A special exception to the GPL can be applied should you wish to distribute\r\n a combined work that includes ChibiOS/RT, without being obliged to provide\r\n the source code for any proprietary components. See the file exception.txt\r\n for full details of how and when the exception can be applied.\r\n*/\r\n\r\n/**\r\n * @file IAR/ARMCMx/chcore_v7m.c\r\n * @brief ARMv7-M architecture port code.\r\n *\r\n * @addtogroup IAR_ARMCMx_V7M_CORE\r\n * @{\r\n */\r\n\r\n#include \"ch.h\"\r\n\r\n/*===========================================================================*/\r\n/* Port interrupt handlers. */\r\n/*===========================================================================*/\r\n\r\n/**\r\n * @brief System Timer vector.\r\n * @details This interrupt is used as system tick.\r\n * @note The timer must be initialized in the startup code.\r\n */\r\nCH_IRQ_HANDLER(SysTickVector) {\r\n\r\n CH_IRQ_PROLOGUE();\r\n\r\n chSysLockFromIsr();\r\n chSysTimerHandlerI();\r\n chSysUnlockFromIsr();\r\n\r\n CH_IRQ_EPILOGUE();\r\n}\r\n\r\n#if !CORTEX_SIMPLIFIED_PRIORITY || defined(__DOXYGEN__)\r\n/**\r\n * @brief SVC vector.\r\n * @details The SVC vector is used for exception mode re-entering after a\r\n * context switch.\r\n * @note The PendSV vector is only used in advanced kernel mode.\r\n */\r\nvoid SVCallVector(void) {\r\n struct extctx *ctxp;\r\n\r\n#if CORTEX_USE_FPU\r\n /* Enforcing unstacking of the FP part of the context.*/\r\n SCB_FPCCR &= ~FPCCR_LSPACT;\r\n#endif\r\n\r\n /* Current PSP value.*/\r\n ctxp = (struct extctx *)__get_PSP();\r\n\r\n /* Discarding the current exception context and positioning the stack to\r\n point to the real one.*/\r\n ctxp++;\r\n\r\n /* Restoring real position of the original stack frame.*/\r\n __set_PSP((unsigned long)ctxp);\r\n port_unlock_from_isr();\r\n}\r\n#endif /* !CORTEX_SIMPLIFIED_PRIORITY */\r\n\r\n#if CORTEX_SIMPLIFIED_PRIORITY || defined(__DOXYGEN__)\r\n/**\r\n * @brief PendSV vector.\r\n * @details The PendSV vector is used for exception mode re-entering after a\r\n * context switch.\r\n * @note The PendSV vector is only used in compact kernel mode.\r\n */\r\nvoid PendSVVector(void) {\r\n struct extctx *ctxp;\r\n\r\n#if CORTEX_USE_FPU\r\n /* Enforcing unstacking of the FP part of the context.*/\r\n SCB_FPCCR &= ~FPCCR_LSPACT;\r\n#endif\r\n\r\n /* Current PSP value.*/\r\n ctxp = (struct extctx *)__get_PSP();\r\n\r\n /* Discarding the current exception context and positioning the stack to\r\n point to the real one.*/\r\n ctxp++;\r\n\r\n /* Restoring real position of the original stack frame.*/\r\n __set_PSP((unsigned long)ctxp);\r\n}\r\n#endif /* CORTEX_SIMPLIFIED_PRIORITY */\r\n\r\n/*===========================================================================*/\r\n/* Port exported functions. */\r\n/*===========================================================================*/\r\n\r\n/**\r\n * @brief Port-related initialization code.\r\n */\r\nvoid _port_init(void) {\r\n\r\n /* Initialization of the vector table and priority related settings.*/\r\n SCB_VTOR = CORTEX_VTOR_INIT;\r\n SCB_AIRCR = AIRCR_VECTKEY | AIRCR_PRIGROUP(CORTEX_PRIGROUP_INIT);\r\n\r\n#if CORTEX_USE_FPU\r\n {\r\n /* Initializing the FPU context save in lazy mode.*/\r\n SCB_FPCCR = FPCCR_ASPEN | FPCCR_LSPEN;\r\n\r\n /* CP10 and CP11 set to full access.*/\r\n SCB_CPACR |= 0x00F00000;\r\n\r\n /* Enables FPU context save/restore on exception entry/exit (FPCA bit).*/\r\n __set_CONTROL(__get_CONTROL() | 4);\r\n\r\n /* FPSCR and FPDSCR initially zero.*/\r\n __set_FPSCR(0);\r\n SCB_FPDSCR = 0;\r\n }\r\n#endif\r\n\r\n /* Initialization of the system vectors used by the port.*/\r\n nvicSetSystemHandlerPriority(HANDLER_SVCALL,\r\n CORTEX_PRIORITY_MASK(CORTEX_PRIORITY_SVCALL));\r\n nvicSetSystemHandlerPriority(HANDLER_PENDSV,\r\n CORTEX_PRIORITY_MASK(CORTEX_PRIORITY_PENDSV));\r\n nvicSetSystemHandlerPriority(HANDLER_SYSTICK,\r\n CORTEX_PRIORITY_MASK(CORTEX_PRIORITY_SYSTICK));\r\n}\r\n\r\n/**\r\n * @brief Exception exit redirection to _port_switch_from_isr().\r\n */\r\nvoid _port_irq_epilogue(void) {\r\n\r\n port_lock_from_isr();\r\n if ((SCB_ICSR & ICSR_RETTOBASE) != 0) {\r\n struct extctx *ctxp;\r\n\r\n#if CORTEX_USE_FPU\r\n /* Enforcing a lazy FPU state save. Note, it goes in the original\r\n context because the FPCAR register has not been modified.*/\r\n (void)__get_FPSCR();\r\n#endif\r\n\r\n /* Current PSP value.*/\r\n ctxp = (struct extctx *)__get_PSP();\r\n\r\n /* Adding an artificial exception return context, there is no need to\r\n populate it fully.*/\r\n ctxp--;\r\n ctxp->xpsr = (regarm_t)0x01000000;\r\n#if CORTEX_USE_FPU\r\n ctxp->fpscr = (regarm_t)SCB_FPDSCR;\r\n#endif\r\n __set_PSP((unsigned long)ctxp);\r\n\r\n /* The exit sequence is different depending on if a preemption is\r\n required or not.*/\r\n if (chSchIsPreemptionRequired()) {\r\n /* Preemption is required we need to enforce a context switch.*/\r\n ctxp->pc = (regarm_t)_port_switch_from_isr;\r\n }\r\n else {\r\n /* Preemption not required, we just need to exit the exception\r\n atomically.*/\r\n ctxp->pc = (regarm_t)_port_exit_from_isr;\r\n }\r\n\r\n /* Note, returning without unlocking is intentional, this is done in\r\n order to keep the rest of the context switch atomic.*/\r\n return;\r\n }\r\n port_unlock_from_isr();\r\n}\r\n\r\n/** @} */\r\n"}
80,095
c
/* * MJSONLIB - SMALL JSON LIBRARY based on M*LIB * * Copyright (c) 2018, <NAME> * All rights reserved. * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * + Redistributions of source code must retain the above copyright * notice, this list of conditions and the following disclaimer. * + Redistributions in binary form must reproduce the above copyright * notice, this list of conditions and the following disclaimer in the * documentation and/or other materials provided with the distribution. * * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND ANY * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE * DISCLAIMED. IN NO EVENT SHALL THE REGENTS AND CONTRIBUTORS BE LIABLE FOR ANY * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ #include <stdio.h> #include <ctype.h> #include <math.h> #include <stdarg.h> #include "m-array.h" #include "m-dict.h" #include "m-string.h" #include "m-variant.h" #include "mjsonlib.h" /* First let's handle the OUT/IN functions of boolean */ static inline void boolean_out_str(FILE *f, bool b) { fprintf(f, b ? "true" : "false"); } static inline bool boolean_in_str(bool *b, FILE *f) { char c = fgetc(f); if (c == 't') { *b = true; c = fgetc(f); if (c != 'r') return false; c = fgetc(f); if (c != 'u') return false; c = fgetc(f); return c == 'e'; } else if (c == 'f') { *b = false; c = fgetc(f); if (c != 'a') return false; c = fgetc(f); if (c != 'l') return false; c = fgetc(f); if (c != 's') return false; c = fgetc(f); return c == 'e'; } else { return false; } } /* Then the OUT/IN functions of float */ static inline void real_out_str(FILE *f, float r) { fprintf(f, "%f", (double) r); } static inline bool real_in_str(float *r, FILE *f) { return fscanf(f, "%f", r) == 1; } /* Use of M*LIB to define the structure of a JSON */ #define JSON_OPLIST \ (INIT(json_init M_IPTR), CLEAR(json_clear), \ INIT_SET(json_init_set M_IPTR), SET(json_set M_IPTR), \ OUT_STR(json_out_str), IN_STR(json_in_str M_IPTR) ) DICT_DEF2(dict_json, string_t, STRING_OPLIST, mjson_t, JSON_OPLIST) ARRAY_DEF(array_json, mjson_t, JSON_OPLIST) VARIANT_DEF2(variant_json, (boolean, bool, M_OPEXTEND(M_DEFAULT_OPLIST, OUT_STR(boolean_out_str), IN_STR(boolean_in_str M_IPTR)) ), (real, float, M_OPEXTEND (M_DEFAULT_OPLIST, OUT_STR(real_out_str), IN_STR(real_in_str M_IPTR))), (string, string_t, STRING_OPLIST), (array, array_json_t, ARRAY_OPLIST(array_json, JSON_OPLIST)), (dict, dict_json_t, DICT_OPLIST(dict_json, STRING_OPLIST, JSON_OPLIST))) /* Let's complete the structure */ struct mjson_node_s { variant_json_t json; }; void json_init(mjson_t *p) { assert (p != NULL); *p = malloc (sizeof (struct mjson_node_s)); if (*p == NULL) abort(); variant_json_init((*p)->json); } void json_clear (mjson_t p) { assert (p != NULL); variant_json_clear (p->json); free(p); } void json_init_set(mjson_t *p, mjson_t o) { assert (p != NULL && o != NULL); *p = malloc (sizeof (struct mjson_node_s)); if (*p == NULL) abort(); variant_json_init_set((*p)->json, o->json); } void json_set(mjson_t *p, mjson_t o) { assert (p != NULL && *p != NULL && o != NULL); variant_json_set((*p)->json, o->json); } void json_out_str(FILE *f, mjson_t o) { assert (f != NULL && o != NULL); if (variant_json_boolean_p(o->json)) { boolean_out_str(f, *variant_json_get_boolean(o->json)); } else if (variant_json_real_p(o->json)) { real_out_str(f, *variant_json_get_real(o->json)); } else if (variant_json_string_p(o->json)) { string_out_str(f, *variant_json_get_string(o->json)); } else if (variant_json_array_p(o->json)) { array_json_out_str(f, *variant_json_get_array(o->json)); } else if (variant_json_dict_p(o->json)) { dict_json_out_str(f, *variant_json_get_dict(o->json)); } else { fprintf(f, "null"); } } static int skip_space(FILE *f) { int c; do { c = fgetc(f); if (ferror(f) || feof(f)) return 0; } while (isspace(c)); ungetc(c, f); return c; } bool json_in_str(mjson_t *p, FILE *f) { assert (p != NULL); bool b; char c = skip_space(f); if (ferror(f) || feof(f)) return false; variant_json_clear((*p)->json); if (c == 't' || c == 'f') { variant_json_init_boolean((*p)->json); b = boolean_in_str(variant_json_get_boolean((*p)->json), f); if (!b) return false; } else if ((c >= '0' && c <= '9') || (c == '-')){ variant_json_init_real((*p)->json); b = real_in_str(variant_json_get_real((*p)->json), f); if (!b) return false; } else if (c == '\"') { variant_json_init_string((*p)->json); b = string_in_str(*variant_json_get_string((*p)->json), f); if (!b) return false; } else if (c == '[') { variant_json_init_array((*p)->json); b = array_json_in_str(*variant_json_get_array((*p)->json), f); if (!b) return false; } else if (c == '{') { variant_json_init_dict((*p)->json); b = dict_json_in_str(*variant_json_get_dict((*p)->json), f); if (!b) return false; } else if (c == 'n') { variant_json_init((*p)->json); c = fgetc(f); c = fgetc(f); if (c != 'u') return false; c = fgetc(f); if (c != 'l') return false; c = fgetc(f); return (c == 'l'); } else { return false; } return true; } bool json_init_in_str(mjson_t *p, FILE *f) { json_init(p); return json_in_str(p, f); } static mjson_t json_get_field(mjson_t p, va_list list) { mjson_t r = p; while (true) { const char *str = va_arg(list, const char*); if (str == NULL) return r; if (str[0] == '[') { if (!variant_json_array_p(r->json)) return NULL; int n = atoi(str+1); if (n < 0 || (unsigned)n >= array_json_size(*variant_json_get_array(r->json))) return NULL; r = *array_json_get(*variant_json_get_array(r->json), n); } else { if (!variant_json_dict_p(r->json)) return NULL; string_t s; string_init_set_str (s, str); // BAD API: I want a macro to have a string_t from a const char* but STRING_CTE doesn't work :( mjson_t *v = dict_json_get (*variant_json_get_dict(r->json), s); string_clear(s); if (v == NULL) return NULL; r = *v; } } } double json_get_real(mjson_t p, ...) { va_list ap; va_start(ap, p); mjson_t r = json_get_field(p, ap); va_end(ap); if (r == NULL || !variant_json_real_p(r->json)) return NAN; else return *variant_json_get_real(r->json); } int json_get_boolean(mjson_t p, ...) { va_list ap; va_start(ap, p); mjson_t r = json_get_field(p, ap); va_end(ap); if (r == NULL || !variant_json_boolean_p(r->json)) return -1; else return *variant_json_get_boolean(r->json); } bool json_get_empty(mjson_t p, ...) { va_list ap; va_start(ap, p); mjson_t r = json_get_field(p, ap); va_end(ap); if (r == NULL || !variant_json_empty_p(r->json)) return false; else return true; } const char *json_get_string(mjson_t p, ...) { va_list ap; va_start(ap, p); mjson_t r = json_get_field(p, ap); va_end(ap); if (r == NULL || !variant_json_string_p(r->json)) return NULL; else return string_get_cstr(*variant_json_get_string(r->json)); }
30.77
251
(translation_unit) "/*\n * MJSONLIB - SMALL JSON LIBRARY based on M*LIB\n *\n * Copyright (c) 2018, <NAME>\n * All rights reserved.\n * Redistribution and use in source and binary forms, with or without\n * modification, are permitted provided that the following conditions are met:\n * + Redistributions of source code must retain the above copyright\n * notice, this list of conditions and the following disclaimer.\n * + Redistributions in binary form must reproduce the above copyright\n * notice, this list of conditions and the following disclaimer in the\n * documentation and/or other materials provided with the distribution.\n *\n * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND ANY\n * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED\n * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE\n * DISCLAIMED. IN NO EVENT SHALL THE REGENTS AND CONTRIBUTORS BE LIABLE FOR ANY\n * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES\n * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;\n * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND\n * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT\n * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS\n * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\n*/\n#include <stdio.h>\n#include <ctype.h>\n#include <math.h>\n#include <stdarg.h>\n\n#include "m-array.h"\n#include "m-dict.h"\n#include "m-string.h"\n#include "m-variant.h"\n\n#include "mjsonlib.h"\n\n/* First let's handle the OUT/IN functions of boolean */\nstatic inline void boolean_out_str(FILE *f, bool b)\n{\n fprintf(f, b ? "true" : "false");\n}\n\nstatic inline bool boolean_in_str(bool *b, FILE *f)\n{\n char c = fgetc(f);\n if (c == 't') {\n *b = true;\n c = fgetc(f);\n if (c != 'r') return false;\n c = fgetc(f);\n if (c != 'u') return false;\n c = fgetc(f);\n return c == 'e';\n } else if (c == 'f') {\n *b = false;\n c = fgetc(f);\n if (c != 'a') return false;\n c = fgetc(f);\n if (c != 'l') return false;\n c = fgetc(f);\n if (c != 's') return false;\n c = fgetc(f);\n return c == 'e';\n } else {\n return false;\n }\n}\n\n/* Then the OUT/IN functions of float */\nstatic inline void real_out_str(FILE *f, float r)\n{\n fprintf(f, "%f", (double) r);\n}\n\nstatic inline bool real_in_str(float *r, FILE *f)\n{\n return fscanf(f, "%f", r) == 1;\n}\n\n/* Use of M*LIB to define the structure of a JSON */\n#define JSON_OPLIST \\n (INIT(json_init M_IPTR), CLEAR(json_clear), \\n INIT_SET(json_init_set M_IPTR), SET(json_set M_IPTR), \\n OUT_STR(json_out_str), IN_STR(json_in_str M_IPTR) )\n\nDICT_DEF2(dict_json, string_t, STRING_OPLIST, mjson_t, JSON_OPLIST)\n\nARRAY_DEF(array_json, mjson_t, JSON_OPLIST)\n\nVARIANT_DEF2(variant_json,\n (boolean, bool, M_OPEXTEND(M_DEFAULT_OPLIST, OUT_STR(boolean_out_str), IN_STR(boolean_in_str M_IPTR)) ),\n (real, float, M_OPEXTEND (M_DEFAULT_OPLIST, OUT_STR(real_out_str), IN_STR(real_in_str M_IPTR))),\n (string, string_t, STRING_OPLIST),\n (array, array_json_t, ARRAY_OPLIST(array_json, JSON_OPLIST)), \n (dict, dict_json_t, DICT_OPLIST(dict_json, STRING_OPLIST, JSON_OPLIST)))\n\n/* Let's complete the structure */\nstruct mjson_node_s {\n variant_json_t json;\n};\n\nvoid json_init(mjson_t *p)\n{\n assert (p != NULL);\n *p = malloc (sizeof (struct mjson_node_s));\n if (*p == NULL) abort();\n variant_json_init((*p)->json);\n}\n\nvoid json_clear (mjson_t p)\n{\n assert (p != NULL);\n variant_json_clear (p->json);\n free(p);\n}\n\nvoid json_init_set(mjson_t *p, mjson_t o)\n{\n assert (p != NULL && o != NULL);\n *p = malloc (sizeof (struct mjson_node_s));\n if (*p == NULL) abort();\n variant_json_init_set((*p)->json, o->json);\n}\n\nvoid json_set(mjson_t *p, mjson_t o)\n{\n assert (p != NULL && *p != NULL && o != NULL);\n variant_json_set((*p)->json, o->json);\n}\n\nvoid json_out_str(FILE *f, mjson_t o)\n{\n assert (f != NULL && o != NULL);\n if (variant_json_boolean_p(o->json)) {\n boolean_out_str(f, *variant_json_get_boolean(o->json));\n } else if (variant_json_real_p(o->json)) {\n real_out_str(f, *variant_json_get_real(o->json));\n } else if (variant_json_string_p(o->json)) {\n string_out_str(f, *variant_json_get_string(o->json));\n } else if (variant_json_array_p(o->json)) {\n array_json_out_str(f, *variant_json_get_array(o->json));\n } else if (variant_json_dict_p(o->json)) {\n dict_json_out_str(f, *variant_json_get_dict(o->json));\n } else {\n fprintf(f, "null");\n }\n}\n\nstatic int skip_space(FILE *f)\n{\n int c;\n do {\n c = fgetc(f);\n if (ferror(f) || feof(f)) return 0;\n } while (isspace(c));\n ungetc(c, f);\n return c;\n}\n\nbool json_in_str(mjson_t *p, FILE *f)\n{\n assert (p != NULL);\n bool b;\n char c = skip_space(f);\n if (ferror(f) || feof(f)) return false;\n variant_json_clear((*p)->json);\n if (c == 't' || c == 'f') {\n variant_json_init_boolean((*p)->json);\n b = boolean_in_str(variant_json_get_boolean((*p)->json), f);\n if (!b) return false;\n } else if ((c >= '0' && c <= '9') || (c == '-')){\n variant_json_init_real((*p)->json);\n b = real_in_str(variant_json_get_real((*p)->json), f);\n if (!b) return false;\n } else if (c == '\"') {\n variant_json_init_string((*p)->json);\n b = string_in_str(*variant_json_get_string((*p)->json), f);\n if (!b) return false;\n } else if (c == '[') {\n variant_json_init_array((*p)->json);\n b = array_json_in_str(*variant_json_get_array((*p)->json), f);\n if (!b) return false;\n } else if (c == '{') {\n variant_json_init_dict((*p)->json);\n b = dict_json_in_str(*variant_json_get_dict((*p)->json), f);\n if (!b) return false;\n } else if (c == 'n') {\n variant_json_init((*p)->json);\n c = fgetc(f);\n c = fgetc(f); if (c != 'u') return false;\n c = fgetc(f); if (c != 'l') return false;\n c = fgetc(f);\n return (c == 'l');\n } else {\n return false;\n }\n return true;\n}\n\nbool json_init_in_str(mjson_t *p, FILE *f)\n{\n json_init(p);\n return json_in_str(p, f);\n}\n\nstatic mjson_t json_get_field(mjson_t p, va_list list)\n{\n mjson_t r = p;\n while (true) {\n const char *str = va_arg(list, const char*);\n if (str == NULL)\n return r;\n if (str[0] == '[') {\n if (!variant_json_array_p(r->json)) return NULL;\n int n = atoi(str+1);\n if (n < 0 || (unsigned)n >= array_json_size(*variant_json_get_array(r->json)))\n return NULL;\n r = *array_json_get(*variant_json_get_array(r->json), n);\n } else {\n if (!variant_json_dict_p(r->json)) return NULL;\n string_t s;\n string_init_set_str (s, str); // BAD API: I want a macro to have a string_t from a const char* but STRING_CTE doesn't work :(\n mjson_t *v = dict_json_get (*variant_json_get_dict(r->json), s);\n string_clear(s);\n if (v == NULL) return NULL;\n r = *v;\n }\n }\n}\n\ndouble json_get_real(mjson_t p, ...)\n{\n va_list ap;\n va_start(ap, p);\n mjson_t r = json_get_field(p, ap);\n va_end(ap);\n if (r == NULL || !variant_json_real_p(r->json))\n return NAN;\n else\n return *variant_json_get_real(r->json);\n}\n\nint json_get_boolean(mjson_t p, ...)\n{\n va_list ap;\n va_start(ap, p);\n mjson_t r = json_get_field(p, ap);\n va_end(ap);\n if (r == NULL || !variant_json_boolean_p(r->json))\n return -1;\n else\n return *variant_json_get_boolean(r->json);\n}\n\nbool json_get_empty(mjson_t p, ...)\n{\n va_list ap;\n va_start(ap, p);\n mjson_t r = json_get_field(p, ap);\n va_end(ap);\n if (r == NULL || !variant_json_empty_p(r->json))\n return false;\n else\n return true;\n}\n\nconst char *json_get_string(mjson_t p, ...)\n{\n va_list ap;\n va_start(ap, p);\n mjson_t r = json_get_field(p, ap);\n va_end(ap);\n if (r == NULL || !variant_json_string_p(r->json))\n return NULL;\n else\n return string_get_cstr(*variant_json_get_string(r->json));\n}\n\n" (comment) "/*\n * MJSONLIB - SMALL JSON LIBRARY based on M*LIB\n *\n * Copyright (c) 2018, <NAME>\n * All rights reserved.\n * Redistribution and use in source and binary forms, with or without\n * modification, are permitted provided that the following conditions are met:\n * + Redistributions of source code must retain the above copyright\n * notice, this list of conditions and the following disclaimer.\n * + Redistributions in binary form must reproduce the above copyright\n * notice, this list of conditions and the following disclaimer in the\n * documentation and/or other materials provided with the distribution.\n *\n * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND ANY\n * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED\n * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE\n * DISCLAIMED. IN NO EVENT SHALL THE REGENTS AND CONTRIBUTORS BE LIABLE FOR ANY\n * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES\n * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;\n * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND\n * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT\n * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS\n * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\n*/" (preproc_include) "#include <stdio.h>\n" (#include) "#include" (system_lib_string) "<stdio.h>" (preproc_include) "#include <ctype.h>\n" (#include) "#include" (system_lib_string) "<ctype.h>" (preproc_include) "#include <math.h>\n" (#include) "#include" (system_lib_string) "<math.h>" (preproc_include) "#include <stdarg.h>\n" (#include) "#include" (system_lib_string) "<stdarg.h>" (preproc_include) "#include "m-array.h"\n" (#include) "#include" (string_literal) ""m-array.h"" (") """ (string_content) "m-array.h" (") """ (preproc_include) "#include "m-dict.h"\n" (#include) "#include" (string_literal) ""m-dict.h"" (") """ (string_content) "m-dict.h" (") """ (preproc_include) "#include "m-string.h"\n" (#include) "#include" (string_literal) ""m-string.h"" (") """ (string_content) "m-string.h" (") """ (preproc_include) "#include "m-variant.h"\n" (#include) "#include" (string_literal) ""m-variant.h"" (") """ (string_content) "m-variant.h" (") """ (preproc_include) "#include "mjsonlib.h"\n" (#include) "#include" (string_literal) ""mjsonlib.h"" (") """ (string_content) "mjsonlib.h" (") """ (comment) "/* First let's handle the OUT/IN functions of boolean */" (function_definition) "static inline void boolean_out_str(FILE *f, bool b)\n{\n fprintf(f, b ? "true" : "false");\n}" (storage_class_specifier) "static" (static) "static" (storage_class_specifier) "inline" (inline) "inline" (primitive_type) "void" (function_declarator) "boolean_out_str(FILE *f, bool b)" (identifier) "boolean_out_str" (parameter_list) "(FILE *f, bool b)" (() "(" (parameter_declaration) "FILE *f" (type_identifier) "FILE" (pointer_declarator) "*f" (*) "*" (identifier) "f" (,) "," (parameter_declaration) "bool b" (primitive_type) "bool" (identifier) "b" ()) ")" (compound_statement) "{\n fprintf(f, b ? "true" : "false");\n}" ({) "{" (expression_statement) "fprintf(f, b ? "true" : "false");" (call_expression) "fprintf(f, b ? "true" : "false")" (identifier) "fprintf" (argument_list) "(f, b ? "true" : "false")" (() "(" (identifier) "f" (,) "," (conditional_expression) "b ? "true" : "false"" (identifier) "b" (?) "?" (string_literal) ""true"" (") """ (string_content) "true" (") """ (:) ":" (string_literal) ""false"" (") """ (string_content) "false" (") """ ()) ")" (;) ";" (}) "}" (function_definition) "static inline bool boolean_in_str(bool *b, FILE *f)\n{\n char c = fgetc(f);\n if (c == 't') {\n *b = true;\n c = fgetc(f);\n if (c != 'r') return false;\n c = fgetc(f);\n if (c != 'u') return false;\n c = fgetc(f);\n return c == 'e';\n } else if (c == 'f') {\n *b = false;\n c = fgetc(f);\n if (c != 'a') return false;\n c = fgetc(f);\n if (c != 'l') return false;\n c = fgetc(f);\n if (c != 's') return false;\n c = fgetc(f);\n return c == 'e';\n } else {\n return false;\n }\n}" (storage_class_specifier) "static" (static) "static" (storage_class_specifier) "inline" (inline) "inline" (primitive_type) "bool" (function_declarator) "boolean_in_str(bool *b, FILE *f)" (identifier) "boolean_in_str" (parameter_list) "(bool *b, FILE *f)" (() "(" (parameter_declaration) "bool *b" (primitive_type) "bool" (pointer_declarator) "*b" (*) "*" (identifier) "b" (,) "," (parameter_declaration) "FILE *f" (type_identifier) "FILE" (pointer_declarator) "*f" (*) "*" (identifier) "f" ()) ")" (compound_statement) "{\n char c = fgetc(f);\n if (c == 't') {\n *b = true;\n c = fgetc(f);\n if (c != 'r') return false;\n c = fgetc(f);\n if (c != 'u') return false;\n c = fgetc(f);\n return c == 'e';\n } else if (c == 'f') {\n *b = false;\n c = fgetc(f);\n if (c != 'a') return false;\n c = fgetc(f);\n if (c != 'l') return false;\n c = fgetc(f);\n if (c != 's') return false;\n c = fgetc(f);\n return c == 'e';\n } else {\n return false;\n }\n}" ({) "{" (declaration) "char c = fgetc(f);" (primitive_type) "char" (init_declarator) "c = fgetc(f)" (identifier) "c" (=) "=" (call_expression) "fgetc(f)" (identifier) "fgetc" (argument_list) "(f)" (() "(" (identifier) "f" ()) ")" (;) ";" (if_statement) "if (c == 't') {\n *b = true;\n c = fgetc(f);\n if (c != 'r') return false;\n c = fgetc(f);\n if (c != 'u') return false;\n c = fgetc(f);\n return c == 'e';\n } else if (c == 'f') {\n *b = false;\n c = fgetc(f);\n if (c != 'a') return false;\n c = fgetc(f);\n if (c != 'l') return false;\n c = fgetc(f);\n if (c != 's') return false;\n c = fgetc(f);\n return c == 'e';\n } else {\n return false;\n }" (if) "if" (parenthesized_expression) "(c == 't')" (() "(" (binary_expression) "c == 't'" (identifier) "c" (==) "==" (char_literal) "'t'" (') "'" (character) "t" (') "'" ()) ")" (compound_statement) "{\n *b = true;\n c = fgetc(f);\n if (c != 'r') return false;\n c = fgetc(f);\n if (c != 'u') return false;\n c = fgetc(f);\n return c == 'e';\n }" ({) "{" (expression_statement) "*b = true;" (assignment_expression) "*b = true" (pointer_expression) "*b" (*) "*" (identifier) "b" (=) "=" (true) "true" (;) ";" (expression_statement) "c = fgetc(f);" (assignment_expression) "c = fgetc(f)" (identifier) "c" (=) "=" (call_expression) "fgetc(f)" (identifier) "fgetc" (argument_list) "(f)" (() "(" (identifier) "f" ()) ")" (;) ";" (if_statement) "if (c != 'r') return false;" (if) "if" (parenthesized_expression) "(c != 'r')" (() "(" (binary_expression) "c != 'r'" (identifier) "c" (!=) "!=" (char_literal) "'r'" (') "'" (character) "r" (') "'" ()) ")" (return_statement) "return false;" (return) "return" (false) "false" (;) ";" (expression_statement) "c = fgetc(f);" (assignment_expression) "c = fgetc(f)" (identifier) "c" (=) "=" (call_expression) "fgetc(f)" (identifier) "fgetc" (argument_list) "(f)" (() "(" (identifier) "f" ()) ")" (;) ";" (if_statement) "if (c != 'u') return false;" (if) "if" (parenthesized_expression) "(c != 'u')" (() "(" (binary_expression) "c != 'u'" (identifier) "c" (!=) "!=" (char_literal) "'u'" (') "'" (character) "u" (') "'" ()) ")" (return_statement) "return false;" (return) "return" (false) "false" (;) ";" (expression_statement) "c = fgetc(f);" (assignment_expression) "c = fgetc(f)" (identifier) "c" (=) "=" (call_expression) "fgetc(f)" (identifier) "fgetc" (argument_list) "(f)" (() "(" (identifier) "f" ()) ")" (;) ";" (return_statement) "return c == 'e';" (return) "return" (binary_expression) "c == 'e'" (identifier) "c" (==) "==" (char_literal) "'e'" (') "'" (character) "e" (') "'" (;) ";" (}) "}" (else_clause) "else if (c == 'f') {\n *b = false;\n c = fgetc(f);\n if (c != 'a') return false;\n c = fgetc(f);\n if (c != 'l') return false;\n c = fgetc(f);\n if (c != 's') return false;\n c = fgetc(f);\n return c == 'e';\n } else {\n return false;\n }" (else) "else" (if_statement) "if (c == 'f') {\n *b = false;\n c = fgetc(f);\n if (c != 'a') return false;\n c = fgetc(f);\n if (c != 'l') return false;\n c = fgetc(f);\n if (c != 's') return false;\n c = fgetc(f);\n return c == 'e';\n } else {\n return false;\n }" (if) "if" (parenthesized_expression) "(c == 'f')" (() "(" (binary_expression) "c == 'f'" (identifier) "c" (==) "==" (char_literal) "'f'" (') "'" (character) "f" (') "'" ()) ")" (compound_statement) "{\n *b = false;\n c = fgetc(f);\n if (c != 'a') return false;\n c = fgetc(f);\n if (c != 'l') return false;\n c = fgetc(f);\n if (c != 's') return false;\n c = fgetc(f);\n return c == 'e';\n }" ({) "{" (expression_statement) "*b = false;" (assignment_expression) "*b = false" (pointer_expression) "*b" (*) "*" (identifier) "b" (=) "=" (false) "false" (;) ";" (expression_statement) "c = fgetc(f);" (assignment_expression) "c = fgetc(f)" (identifier) "c" (=) "=" (call_expression) "fgetc(f)" (identifier) "fgetc" (argument_list) "(f)" (() "(" (identifier) "f" ()) ")" (;) ";" (if_statement) "if (c != 'a') return false;" (if) "if" (parenthesized_expression) "(c != 'a')" (() "(" (binary_expression) "c != 'a'" (identifier) "c" (!=) "!=" (char_literal) "'a'" (') "'" (character) "a" (') "'" ()) ")" (return_statement) "return false;" (return) "return" (false) "false" (;) ";" (expression_statement) "c = fgetc(f);" (assignment_expression) "c = fgetc(f)" (identifier) "c" (=) "=" (call_expression) "fgetc(f)" (identifier) "fgetc" (argument_list) "(f)" (() "(" (identifier) "f" ()) ")" (;) ";" (if_statement) "if (c != 'l') return false;" (if) "if" (parenthesized_expression) "(c != 'l')" (() "(" (binary_expression) "c != 'l'" (identifier) "c" (!=) "!=" (char_literal) "'l'" (') "'" (character) "l" (') "'" ()) ")" (return_statement) "return false;" (return) "return" (false) "false" (;) ";" (expression_statement) "c = fgetc(f);" (assignment_expression) "c = fgetc(f)" (identifier) "c" (=) "=" (call_expression) "fgetc(f)" (identifier) "fgetc" (argument_list) "(f)" (() "(" (identifier) "f" ()) ")" (;) ";" (if_statement) "if (c != 's') return false;" (if) "if" (parenthesized_expression) "(c != 's')" (() "(" (binary_expression) "c != 's'" (identifier) "c" (!=) "!=" (char_literal) "'s'" (') "'" (character) "s" (') "'" ()) ")" (return_statement) "return false;" (return) "return" (false) "false" (;) ";" (expression_statement) "c = fgetc(f);" (assignment_expression) "c = fgetc(f)" (identifier) "c" (=) "=" (call_expression) "fgetc(f)" (identifier) "fgetc" (argument_list) "(f)" (() "(" (identifier) "f" ()) ")" (;) ";" (return_statement) "return c == 'e';" (return) "return" (binary_expression) "c == 'e'" (identifier) "c" (==) "==" (char_literal) "'e'" (') "'" (character) "e" (') "'" (;) ";" (}) "}" (else_clause) "else {\n return false;\n }" (else) "else" (compound_statement) "{\n return false;\n }" ({) "{" (return_statement) "return false;" (return) "return" (false) "false" (;) ";" (}) "}" (}) "}" (comment) "/* Then the OUT/IN functions of float */" (function_definition) "static inline void real_out_str(FILE *f, float r)\n{\n fprintf(f, "%f", (double) r);\n}" (storage_class_specifier) "static" (static) "static" (storage_class_specifier) "inline" (inline) "inline" (primitive_type) "void" (function_declarator) "real_out_str(FILE *f, float r)" (identifier) "real_out_str" (parameter_list) "(FILE *f, float r)" (() "(" (parameter_declaration) "FILE *f" (type_identifier) "FILE" (pointer_declarator) "*f" (*) "*" (identifier) "f" (,) "," (parameter_declaration) "float r" (primitive_type) "float" (identifier) "r" ()) ")" (compound_statement) "{\n fprintf(f, "%f", (double) r);\n}" ({) "{" (expression_statement) "fprintf(f, "%f", (double) r);" (call_expression) "fprintf(f, "%f", (double) r)" (identifier) "fprintf" (argument_list) "(f, "%f", (double) r)" (() "(" (identifier) "f" (,) "," (string_literal) ""%f"" (") """ (string_content) "%f" (") """ (,) "," (cast_expression) "(double) r" (() "(" (type_descriptor) "double" (primitive_type) "double" ()) ")" (identifier) "r" ()) ")" (;) ";" (}) "}" (function_definition) "static inline bool real_in_str(float *r, FILE *f)\n{\n return fscanf(f, "%f", r) == 1;\n}" (storage_class_specifier) "static" (static) "static" (storage_class_specifier) "inline" (inline) "inline" (primitive_type) "bool" (function_declarator) "real_in_str(float *r, FILE *f)" (identifier) "real_in_str" (parameter_list) "(float *r, FILE *f)" (() "(" (parameter_declaration) "float *r" (primitive_type) "float" (pointer_declarator) "*r" (*) "*" (identifier) "r" (,) "," (parameter_declaration) "FILE *f" (type_identifier) "FILE" (pointer_declarator) "*f" (*) "*" (identifier) "f" ()) ")" (compound_statement) "{\n return fscanf(f, "%f", r) == 1;\n}" ({) "{" (return_statement) "return fscanf(f, "%f", r) == 1;" (return) "return" (binary_expression) "fscanf(f, "%f", r) == 1" (call_expression) "fscanf(f, "%f", r)" (identifier) "fscanf" (argument_list) "(f, "%f", r)" (() "(" (identifier) "f" (,) "," (string_literal) ""%f"" (") """ (string_content) "%f" (") """ (,) "," (identifier) "r" ()) ")" (==) "==" (number_literal) "1" (;) ";" (}) "}" (comment) "/* Use of M*LIB to define the structure of a JSON */" (preproc_def) "#define JSON_OPLIST \\n (INIT(json_init M_IPTR), CLEAR(json_clear), \\n INIT_SET(json_init_set M_IPTR), SET(json_set M_IPTR), \\n OUT_STR(json_out_str), IN_STR(json_in_str M_IPTR) )\n" (#define) "#define" (identifier) "JSON_OPLIST" (preproc_arg) "(INIT(json_init M_IPTR), CLEAR(json_clear), \\n INIT_SET(json_init_set M_IPTR), SET(json_set M_IPTR), \\n OUT_STR(json_out_str), IN_STR(json_in_str M_IPTR) )" (expression_statement) "DICT_DEF2(dict_json, string_t, STRING_OPLIST, mjson_t, JSON_OPLIST)" (call_expression) "DICT_DEF2(dict_json, string_t, STRING_OPLIST, mjson_t, JSON_OPLIST)" (identifier) "DICT_DEF2" (argument_list) "(dict_json, string_t, STRING_OPLIST, mjson_t, JSON_OPLIST)" (() "(" (identifier) "dict_json" (,) "," (identifier) "string_t" (,) "," (identifier) "STRING_OPLIST" (,) "," (identifier) "mjson_t" (,) "," (identifier) "JSON_OPLIST" ()) ")" (;) "" (expression_statement) "ARRAY_DEF(array_json, mjson_t, JSON_OPLIST)" (call_expression) "ARRAY_DEF(array_json, mjson_t, JSON_OPLIST)" (identifier) "ARRAY_DEF" (argument_list) "(array_json, mjson_t, JSON_OPLIST)" (() "(" (identifier) "array_json" (,) "," (identifier) "mjson_t" (,) "," (identifier) "JSON_OPLIST" ()) ")" (;) "" (expression_statement) "VARIANT_DEF2(variant_json,\n (boolean, bool, M_OPEXTEND(M_DEFAULT_OPLIST, OUT_STR(boolean_out_str), IN_STR(boolean_in_str M_IPTR)) ),\n (real, float, M_OPEXTEND (M_DEFAULT_OPLIST, OUT_STR(real_out_str), IN_STR(real_in_str M_IPTR))),\n (string, string_t, STRING_OPLIST),\n (array, array_json_t, ARRAY_OPLIST(array_json, JSON_OPLIST)), \n (dict, dict_json_t, DICT_OPLIST(dict_json, STRING_OPLIST, JSON_OPLIST)))\n\n/* Let's complete the structure */" (call_expression) "VARIANT_DEF2(variant_json,\n (boolean, bool, M_OPEXTEND(M_DEFAULT_OPLIST, OUT_STR(boolean_out_str), IN_STR(boolean_in_str M_IPTR)) ),\n (real, float, M_OPEXTEND (M_DEFAULT_OPLIST, OUT_STR(real_out_str), IN_STR(real_in_str M_IPTR))),\n (string, string_t, STRING_OPLIST),\n (array, array_json_t, ARRAY_OPLIST(array_json, JSON_OPLIST)), \n (dict, dict_json_t, DICT_OPLIST(dict_json, STRING_OPLIST, JSON_OPLIST)))" (identifier) "VARIANT_DEF2" (argument_list) "(variant_json,\n (boolean, bool, M_OPEXTEND(M_DEFAULT_OPLIST, OUT_STR(boolean_out_str), IN_STR(boolean_in_str M_IPTR)) ),\n (real, float, M_OPEXTEND (M_DEFAULT_OPLIST, OUT_STR(real_out_str), IN_STR(real_in_str M_IPTR))),\n (string, string_t, STRING_OPLIST),\n (array, array_json_t, ARRAY_OPLIST(array_json, JSON_OPLIST)), \n (dict, dict_json_t, DICT_OPLIST(dict_json, STRING_OPLIST, JSON_OPLIST)))" (() "(" (identifier) "variant_json" (,) "," (parenthesized_expression) "(boolean, bool, M_OPEXTEND(M_DEFAULT_OPLIST, OUT_STR(boolean_out_str), IN_STR(boolean_in_str M_IPTR)) )" (() "(" (comma_expression) "boolean, bool, M_OPEXTEND(M_DEFAULT_OPLIST, OUT_STR(boolean_out_str), IN_STR(boolean_in_str M_IPTR))" (identifier) "boolean" (,) "," (comma_expression) "bool, M_OPEXTEND(M_DEFAULT_OPLIST, OUT_STR(boolean_out_str), IN_STR(boolean_in_str M_IPTR))" (identifier) "bool" (,) "," (call_expression) "M_OPEXTEND(M_DEFAULT_OPLIST, OUT_STR(boolean_out_str), IN_STR(boolean_in_str M_IPTR))" (identifier) "M_OPEXTEND" (argument_list) "(M_DEFAULT_OPLIST, OUT_STR(boolean_out_str), IN_STR(boolean_in_str M_IPTR))" (() "(" (identifier) "M_DEFAULT_OPLIST" (,) "," (call_expression) "OUT_STR(boolean_out_str)" (identifier) "OUT_STR" (argument_list) "(boolean_out_str)" (() "(" (identifier) "boolean_out_str" ()) ")" (,) "," (call_expression) "IN_STR(boolean_in_str M_IPTR)" (identifier) "IN_STR" (argument_list) "(boolean_in_str M_IPTR)" (() "(" (identifier) "boolean_in_str" (ERROR) "M_IPTR" (identifier) "M_IPTR" ()) ")" ()) ")" ()) ")" (,) "," (parenthesized_expression) "(real, float, M_OPEXTEND (M_DEFAULT_OPLIST, OUT_STR(real_out_str), IN_STR(real_in_str M_IPTR)))" (() "(" (comma_expression) "real, float, M_OPEXTEND (M_DEFAULT_OPLIST, OUT_STR(real_out_str), IN_STR(real_in_str M_IPTR))" (identifier) "real" (,) "," (comma_expression) "float, M_OPEXTEND (M_DEFAULT_OPLIST, OUT_STR(real_out_str), IN_STR(real_in_str M_IPTR))" (identifier) "float" (,) "," (call_expression) "M_OPEXTEND (M_DEFAULT_OPLIST, OUT_STR(real_out_str), IN_STR(real_in_str M_IPTR))" (identifier) "M_OPEXTEND" (argument_list) "(M_DEFAULT_OPLIST, OUT_STR(real_out_str), IN_STR(real_in_str M_IPTR))" (() "(" (identifier) "M_DEFAULT_OPLIST" (,) "," (call_expression) "OUT_STR(real_out_str)" (identifier) "OUT_STR" (argument_list) "(real_out_str)" (() "(" (identifier) "real_out_str" ()) ")" (,) "," (call_expression) "IN_STR(real_in_str M_IPTR)" (identifier) "IN_STR" (argument_list) "(real_in_str M_IPTR)" (() "(" (identifier) "real_in_str" (ERROR) "M_IPTR" (identifier) "M_IPTR" ()) ")" ()) ")" ()) ")" (,) "," (parenthesized_expression) "(string, string_t, STRING_OPLIST)" (() "(" (comma_expression) "string, string_t, STRING_OPLIST" (identifier) "string" (,) "," (comma_expression) "string_t, STRING_OPLIST" (identifier) "string_t" (,) "," (identifier) "STRING_OPLIST" ()) ")" (,) "," (parenthesized_expression) "(array, array_json_t, ARRAY_OPLIST(array_json, JSON_OPLIST))" (() "(" (comma_expression) "array, array_json_t, ARRAY_OPLIST(array_json, JSON_OPLIST)" (identifier) "array" (,) "," (comma_expression) "array_json_t, ARRAY_OPLIST(array_json, JSON_OPLIST)" (identifier) "array_json_t" (,) "," (call_expression) "ARRAY_OPLIST(array_json, JSON_OPLIST)" (identifier) "ARRAY_OPLIST" (argument_list) "(array_json, JSON_OPLIST)" (() "(" (identifier) "array_json" (,) "," (identifier) "JSON_OPLIST" ()) ")" ()) ")" (,) "," (parenthesized_expression) "(dict, dict_json_t, DICT_OPLIST(dict_json, STRING_OPLIST, JSON_OPLIST))" (() "(" (comma_expression) "dict, dict_json_t, DICT_OPLIST(dict_json, STRING_OPLIST, JSON_OPLIST)" (identifier) "dict" (,) "," (comma_expression) "dict_json_t, DICT_OPLIST(dict_json, STRING_OPLIST, JSON_OPLIST)" (identifier) "dict_json_t" (,) "," (call_expression) "DICT_OPLIST(dict_json, STRING_OPLIST, JSON_OPLIST)" (identifier) "DICT_OPLIST" (argument_list) "(dict_json, STRING_OPLIST, JSON_OPLIST)" (() "(" (identifier) "dict_json" (,) "," (identifier) "STRING_OPLIST" (,) "," (identifier) "JSON_OPLIST" ()) ")" ()) ")" ()) ")" (comment) "/* Let's complete the structure */" (;) "" (struct_specifier) "struct mjson_node_s {\n variant_json_t json;\n}" (struct) "struct" (type_identifier) "mjson_node_s" (field_declaration_list) "{\n variant_json_t json;\n}" ({) "{" (field_declaration) "variant_json_t json;" (type_identifier) "variant_json_t" (field_identifier) "json" (;) ";" (}) "}" (;) ";" (function_definition) "void json_init(mjson_t *p)\n{\n assert (p != NULL);\n *p = malloc (sizeof (struct mjson_node_s));\n if (*p == NULL) abort();\n variant_json_init((*p)->json);\n}" (primitive_type) "void" (function_declarator) "json_init(mjson_t *p)" (identifier) "json_init" (parameter_list) "(mjson_t *p)" (() "(" (parameter_declaration) "mjson_t *p" (type_identifier) "mjson_t" (pointer_declarator) "*p" (*) "*" (identifier) "p" ()) ")" (compound_statement) "{\n assert (p != NULL);\n *p = malloc (sizeof (struct mjson_node_s));\n if (*p == NULL) abort();\n variant_json_init((*p)->json);\n}" ({) "{" (expression_statement) "assert (p != NULL);" (call_expression) "assert (p != NULL)" (identifier) "assert" (argument_list) "(p != NULL)" (() "(" (binary_expression) "p != NULL" (identifier) "p" (!=) "!=" (null) "NULL" (NULL) "NULL" ()) ")" (;) ";" (expression_statement) "*p = malloc (sizeof (struct mjson_node_s));" (assignment_expression) "*p = malloc (sizeof (struct mjson_node_s))" (pointer_expression) "*p" (*) "*" (identifier) "p" (=) "=" (call_expression) "malloc (sizeof (struct mjson_node_s))" (identifier) "malloc" (argument_list) "(sizeof (struct mjson_node_s))" (() "(" (sizeof_expression) "sizeof (struct mjson_node_s)" (sizeof) "sizeof" (() "(" (type_descriptor) "struct mjson_node_s" (struct_specifier) "struct mjson_node_s" (struct) "struct" (type_identifier) "mjson_node_s" ()) ")" ()) ")" (;) ";" (if_statement) "if (*p == NULL) abort();" (if) "if" (parenthesized_expression) "(*p == NULL)" (() "(" (binary_expression) "*p == NULL" (pointer_expression) "*p" (*) "*" (identifier) "p" (==) "==" (null) "NULL" (NULL) "NULL" ()) ")" (expression_statement) "abort();" (call_expression) "abort()" (identifier) "abort" (argument_list) "()" (() "(" ()) ")" (;) ";" (expression_statement) "variant_json_init((*p)->json);" (call_expression) "variant_json_init((*p)->json)" (identifier) "variant_json_init" (argument_list) "((*p)->json)" (() "(" (field_expression) "(*p)->json" (parenthesized_expression) "(*p)" (() "(" (pointer_expression) "*p" (*) "*" (identifier) "p" ()) ")" (->) "->" (field_identifier) "json" ()) ")" (;) ";" (}) "}" (function_definition) "void json_clear (mjson_t p)\n{\n assert (p != NULL);\n variant_json_clear (p->json);\n free(p);\n}" (primitive_type) "void" (function_declarator) "json_clear (mjson_t p)" (identifier) "json_clear" (parameter_list) "(mjson_t p)" (() "(" (parameter_declaration) "mjson_t p" (type_identifier) "mjson_t" (identifier) "p" ()) ")" (compound_statement) "{\n assert (p != NULL);\n variant_json_clear (p->json);\n free(p);\n}" ({) "{" (expression_statement) "assert (p != NULL);" (call_expression) "assert (p != NULL)" (identifier) "assert" (argument_list) "(p != NULL)" (() "(" (binary_expression) "p != NULL" (identifier) "p" (!=) "!=" (null) "NULL" (NULL) "NULL" ()) ")" (;) ";" (expression_statement) "variant_json_clear (p->json);" (call_expression) "variant_json_clear (p->json)" (identifier) "variant_json_clear" (argument_list) "(p->json)" (() "(" (field_expression) "p->json" (identifier) "p" (->) "->" (field_identifier) "json" ()) ")" (;) ";" (expression_statement) "free(p);" (call_expression) "free(p)" (identifier) "free" (argument_list) "(p)" (() "(" (identifier) "p" ()) ")" (;) ";" (}) "}" (function_definition) "void json_init_set(mjson_t *p, mjson_t o)\n{\n assert (p != NULL && o != NULL);\n *p = malloc (sizeof (struct mjson_node_s));\n if (*p == NULL) abort();\n variant_json_init_set((*p)->json, o->json);\n}" (primitive_type) "void" (function_declarator) "json_init_set(mjson_t *p, mjson_t o)" (identifier) "json_init_set" (parameter_list) "(mjson_t *p, mjson_t o)" (() "(" (parameter_declaration) "mjson_t *p" (type_identifier) "mjson_t" (pointer_declarator) "*p" (*) "*" (identifier) "p" (,) "," (parameter_declaration) "mjson_t o" (type_identifier) "mjson_t" (identifier) "o" ()) ")" (compound_statement) "{\n assert (p != NULL && o != NULL);\n *p = malloc (sizeof (struct mjson_node_s));\n if (*p == NULL) abort();\n variant_json_init_set((*p)->json, o->json);\n}" ({) "{" (expression_statement) "assert (p != NULL && o != NULL);" (call_expression) "assert (p != NULL && o != NULL)" (identifier) "assert" (argument_list) "(p != NULL && o != NULL)" (() "(" (binary_expression) "p != NULL && o != NULL" (binary_expression) "p != NULL" (identifier) "p" (!=) "!=" (null) "NULL" (NULL) "NULL" (&&) "&&" (binary_expression) "o != NULL" (identifier) "o" (!=) "!=" (null) "NULL" (NULL) "NULL" ()) ")" (;) ";" (expression_statement) "*p = malloc (sizeof (struct mjson_node_s));" (assignment_expression) "*p = malloc (sizeof (struct mjson_node_s))" (pointer_expression) "*p" (*) "*" (identifier) "p" (=) "=" (call_expression) "malloc (sizeof (struct mjson_node_s))" (identifier) "malloc" (argument_list) "(sizeof (struct mjson_node_s))" (() "(" (sizeof_expression) "sizeof (struct mjson_node_s)" (sizeof) "sizeof" (() "(" (type_descriptor) "struct mjson_node_s" (struct_specifier) "struct mjson_node_s" (struct) "struct" (type_identifier) "mjson_node_s" ()) ")" ()) ")" (;) ";" (if_statement) "if (*p == NULL) abort();" (if) "if" (parenthesized_expression) "(*p == NULL)" (() "(" (binary_expression) "*p == NULL" (pointer_expression) "*p" (*) "*" (identifier) "p" (==) "==" (null) "NULL" (NULL) "NULL" ()) ")" (expression_statement) "abort();" (call_expression) "abort()" (identifier) "abort" (argument_list) "()" (() "(" ()) ")" (;) ";" (expression_statement) "variant_json_init_set((*p)->json, o->json);" (call_expression) "variant_json_init_set((*p)->json, o->json)" (identifier) "variant_json_init_set" (argument_list) "((*p)->json, o->json)" (() "(" (field_expression) "(*p)->json" (parenthesized_expression) "(*p)" (() "(" (pointer_expression) "*p" (*) "*" (identifier) "p" ()) ")" (->) "->" (field_identifier) "json" (,) "," (field_expression) "o->json" (identifier) "o" (->) "->" (field_identifier) "json" ()) ")" (;) ";" (}) "}" (function_definition) "void json_set(mjson_t *p, mjson_t o)\n{\n assert (p != NULL && *p != NULL && o != NULL);\n variant_json_set((*p)->json, o->json);\n}" (primitive_type) "void" (function_declarator) "json_set(mjson_t *p, mjson_t o)" (identifier) "json_set" (parameter_list) "(mjson_t *p, mjson_t o)" (() "(" (parameter_declaration) "mjson_t *p" (type_identifier) "mjson_t" (pointer_declarator) "*p" (*) "*" (identifier) "p" (,) "," (parameter_declaration) "mjson_t o" (type_identifier) "mjson_t" (identifier) "o" ()) ")" (compound_statement) "{\n assert (p != NULL && *p != NULL && o != NULL);\n variant_json_set((*p)->json, o->json);\n}" ({) "{" (expression_statement) "assert (p != NULL && *p != NULL && o != NULL);" (call_expression) "assert (p != NULL && *p != NULL && o != NULL)" (identifier) "assert" (argument_list) "(p != NULL && *p != NULL && o != NULL)" (() "(" (binary_expression) "p != NULL && *p != NULL && o != NULL" (binary_expression) "p != NULL && *p != NULL" (binary_expression) "p != NULL" (identifier) "p" (!=) "!=" (null) "NULL" (NULL) "NULL" (&&) "&&" (binary_expression) "*p != NULL" (pointer_expression) "*p" (*) "*" (identifier) "p" (!=) "!=" (null) "NULL" (NULL) "NULL" (&&) "&&" (binary_expression) "o != NULL" (identifier) "o" (!=) "!=" (null) "NULL" (NULL) "NULL" ()) ")" (;) ";" (expression_statement) "variant_json_set((*p)->json, o->json);" (call_expression) "variant_json_set((*p)->json, o->json)" (identifier) "variant_json_set" (argument_list) "((*p)->json, o->json)" (() "(" (field_expression) "(*p)->json" (parenthesized_expression) "(*p)" (() "(" (pointer_expression) "*p" (*) "*" (identifier) "p" ()) ")" (->) "->" (field_identifier) "json" (,) "," (field_expression) "o->json" (identifier) "o" (->) "->" (field_identifier) "json" ()) ")" (;) ";" (}) "}" (function_definition) "void json_out_str(FILE *f, mjson_t o)\n{\n assert (f != NULL && o != NULL);\n if (variant_json_boolean_p(o->json)) {\n boolean_out_str(f, *variant_json_get_boolean(o->json));\n } else if (variant_json_real_p(o->json)) {\n real_out_str(f, *variant_json_get_real(o->json));\n } else if (variant_json_string_p(o->json)) {\n string_out_str(f, *variant_json_get_string(o->json));\n } else if (variant_json_array_p(o->json)) {\n array_json_out_str(f, *variant_json_get_array(o->json));\n } else if (variant_json_dict_p(o->json)) {\n dict_json_out_str(f, *variant_json_get_dict(o->json));\n } else {\n fprintf(f, "null");\n }\n}" (primitive_type) "void" (function_declarator) "json_out_str(FILE *f, mjson_t o)" (identifier) "json_out_str" (parameter_list) "(FILE *f, mjson_t o)" (() "(" (parameter_declaration) "FILE *f" (type_identifier) "FILE" (pointer_declarator) "*f" (*) "*" (identifier) "f" (,) "," (parameter_declaration) "mjson_t o" (type_identifier) "mjson_t" (identifier) "o" ()) ")" (compound_statement) "{\n assert (f != NULL && o != NULL);\n if (variant_json_boolean_p(o->json)) {\n boolean_out_str(f, *variant_json_get_boolean(o->json));\n } else if (variant_json_real_p(o->json)) {\n real_out_str(f, *variant_json_get_real(o->json));\n } else if (variant_json_string_p(o->json)) {\n string_out_str(f, *variant_json_get_string(o->json));\n } else if (variant_json_array_p(o->json)) {\n array_json_out_str(f, *variant_json_get_array(o->json));\n } else if (variant_json_dict_p(o->json)) {\n dict_json_out_str(f, *variant_json_get_dict(o->json));\n } else {\n fprintf(f, "null");\n }\n}" ({) "{" (expression_statement) "assert (f != NULL && o != NULL);" (call_expression) "assert (f != NULL && o != NULL)" (identifier) "assert" (argument_list) "(f != NULL && o != NULL)" (() "(" (binary_expression) "f != NULL && o != NULL" (binary_expression) "f != NULL" (identifier) "f" (!=) "!=" (null) "NULL" (NULL) "NULL" (&&) "&&" (binary_expression) "o != NULL" (identifier) "o" (!=) "!=" (null) "NULL" (NULL) "NULL" ()) ")" (;) ";" (if_statement) "if (variant_json_boolean_p(o->json)) {\n boolean_out_str(f, *variant_json_get_boolean(o->json));\n } else if (variant_json_real_p(o->json)) {\n real_out_str(f, *variant_json_get_real(o->json));\n } else if (variant_json_string_p(o->json)) {\n string_out_str(f, *variant_json_get_string(o->json));\n } else if (variant_json_array_p(o->json)) {\n array_json_out_str(f, *variant_json_get_array(o->json));\n } else if (variant_json_dict_p(o->json)) {\n dict_json_out_str(f, *variant_json_get_dict(o->json));\n } else {\n fprintf(f, "null");\n }" (if) "if" (parenthesized_expression) "(variant_json_boolean_p(o->json))" (() "(" (call_expression) "variant_json_boolean_p(o->json)" (identifier) "variant_json_boolean_p" (argument_list) "(o->json)" (() "(" (field_expression) "o->json" (identifier) "o" (->) "->" (field_identifier) "json" ()) ")" ()) ")" (compound_statement) "{\n boolean_out_str(f, *variant_json_get_boolean(o->json));\n }" ({) "{" (expression_statement) "boolean_out_str(f, *variant_json_get_boolean(o->json));" (call_expression) "boolean_out_str(f, *variant_json_get_boolean(o->json))" (identifier) "boolean_out_str" (argument_list) "(f, *variant_json_get_boolean(o->json))" (() "(" (identifier) "f" (,) "," (pointer_expression) "*variant_json_get_boolean(o->json)" (*) "*" (call_expression) "variant_json_get_boolean(o->json)" (identifier) "variant_json_get_boolean" (argument_list) "(o->json)" (() "(" (field_expression) "o->json" (identifier) "o" (->) "->" (field_identifier) "json" ()) ")" ()) ")" (;) ";" (}) "}" (else_clause) "else if (variant_json_real_p(o->json)) {\n real_out_str(f, *variant_json_get_real(o->json));\n } else if (variant_json_string_p(o->json)) {\n string_out_str(f, *variant_json_get_string(o->json));\n } else if (variant_json_array_p(o->json)) {\n array_json_out_str(f, *variant_json_get_array(o->json));\n } else if (variant_json_dict_p(o->json)) {\n dict_json_out_str(f, *variant_json_get_dict(o->json));\n } else {\n fprintf(f, "null");\n }" (else) "else" (if_statement) "if (variant_json_real_p(o->json)) {\n real_out_str(f, *variant_json_get_real(o->json));\n } else if (variant_json_string_p(o->json)) {\n string_out_str(f, *variant_json_get_string(o->json));\n } else if (variant_json_array_p(o->json)) {\n array_json_out_str(f, *variant_json_get_array(o->json));\n } else if (variant_json_dict_p(o->json)) {\n dict_json_out_str(f, *variant_json_get_dict(o->json));\n } else {\n fprintf(f, "null");\n }" (if) "if" (parenthesized_expression) "(variant_json_real_p(o->json))" (() "(" (call_expression) "variant_json_real_p(o->json)" (identifier) "variant_json_real_p" (argument_list) "(o->json)" (() "(" (field_expression) "o->json" (identifier) "o" (->) "->" (field_identifier) "json" ()) ")" ()) ")" (compound_statement) "{\n real_out_str(f, *variant_json_get_real(o->json));\n }" ({) "{" (expression_statement) "real_out_str(f, *variant_json_get_real(o->json));" (call_expression) "real_out_str(f, *variant_json_get_real(o->json))" (identifier) "real_out_str" (argument_list) "(f, *variant_json_get_real(o->json))" (() "(" (identifier) "f" (,) "," (pointer_expression) "*variant_json_get_real(o->json)" (*) "*" (call_expression) "variant_json_get_real(o->json)" (identifier) "variant_json_get_real" (argument_list) "(o->json)" (() "(" (field_expression) "o->json" (identifier) "o" (->) "->" (field_identifier) "json" ()) ")" ()) ")" (;) ";" (}) "}" (else_clause) "else if (variant_json_string_p(o->json)) {\n string_out_str(f, *variant_json_get_string(o->json));\n } else if (variant_json_array_p(o->json)) {\n array_json_out_str(f, *variant_json_get_array(o->json));\n } else if (variant_json_dict_p(o->json)) {\n dict_json_out_str(f, *variant_json_get_dict(o->json));\n } else {\n fprintf(f, "null");\n }" (else) "else" (if_statement) "if (variant_json_string_p(o->json)) {\n string_out_str(f, *variant_json_get_string(o->json));\n } else if (variant_json_array_p(o->json)) {\n array_json_out_str(f, *variant_json_get_array(o->json));\n } else if (variant_json_dict_p(o->json)) {\n dict_json_out_str(f, *variant_json_get_dict(o->json));\n } else {\n fprintf(f, "null");\n }" (if) "if" (parenthesized_expression) "(variant_json_string_p(o->json))" (() "(" (call_expression) "variant_json_string_p(o->json)" (identifier) "variant_json_string_p" (argument_list) "(o->json)" (() "(" (field_expression) "o->json" (identifier) "o" (->) "->" (field_identifier) "json" ()) ")" ()) ")" (compound_statement) "{\n string_out_str(f, *variant_json_get_string(o->json));\n }" ({) "{" (expression_statement) "string_out_str(f, *variant_json_get_string(o->json));" (call_expression) "string_out_str(f, *variant_json_get_string(o->json))" (identifier) "string_out_str" (argument_list) "(f, *variant_json_get_string(o->json))" (() "(" (identifier) "f" (,) "," (pointer_expression) "*variant_json_get_string(o->json)" (*) "*" (call_expression) "variant_json_get_string(o->json)" (identifier) "variant_json_get_string" (argument_list) "(o->json)" (() "(" (field_expression) "o->json" (identifier) "o" (->) "->" (field_identifier) "json" ()) ")" ()) ")" (;) ";" (}) "}" (else_clause) "else if (variant_json_array_p(o->json)) {\n array_json_out_str(f, *variant_json_get_array(o->json));\n } else if (variant_json_dict_p(o->json)) {\n dict_json_out_str(f, *variant_json_get_dict(o->json));\n } else {\n fprintf(f, "null");\n }" (else) "else" (if_statement) "if (variant_json_array_p(o->json)) {\n array_json_out_str(f, *variant_json_get_array(o->json));\n } else if (variant_json_dict_p(o->json)) {\n dict_json_out_str(f, *variant_json_get_dict(o->json));\n } else {\n fprintf(f, "null");\n }" (if) "if" (parenthesized_expression) "(variant_json_array_p(o->json))" (() "(" (call_expression) "variant_json_array_p(o->json)" (identifier) "variant_json_array_p" (argument_list) "(o->json)" (() "(" (field_expression) "o->json" (identifier) "o" (->) "->" (field_identifier) "json" ()) ")" ()) ")" (compound_statement) "{\n array_json_out_str(f, *variant_json_get_array(o->json));\n }" ({) "{" (expression_statement) "array_json_out_str(f, *variant_json_get_array(o->json));" (call_expression) "array_json_out_str(f, *variant_json_get_array(o->json))" (identifier) "array_json_out_str" (argument_list) "(f, *variant_json_get_array(o->json))" (() "(" (identifier) "f" (,) "," (pointer_expression) "*variant_json_get_array(o->json)" (*) "*" (call_expression) "variant_json_get_array(o->json)" (identifier) "variant_json_get_array" (argument_list) "(o->json)" (() "(" (field_expression) "o->json" (identifier) "o" (->) "->" (field_identifier) "json" ()) ")" ()) ")" (;) ";" (}) "}" (else_clause) "else if (variant_json_dict_p(o->json)) {\n dict_json_out_str(f, *variant_json_get_dict(o->json));\n } else {\n fprintf(f, "null");\n }" (else) "else" (if_statement) "if (variant_json_dict_p(o->json)) {\n dict_json_out_str(f, *variant_json_get_dict(o->json));\n } else {\n fprintf(f, "null");\n }" (if) "if" (parenthesized_expression) "(variant_json_dict_p(o->json))" (() "(" (call_expression) "variant_json_dict_p(o->json)" (identifier) "variant_json_dict_p" (argument_list) "(o->json)" (() "(" (field_expression) "o->json" (identifier) "o" (->) "->" (field_identifier) "json" ()) ")" ()) ")" (compound_statement) "{\n dict_json_out_str(f, *variant_json_get_dict(o->json));\n }" ({) "{" (expression_statement) "dict_json_out_str(f, *variant_json_get_dict(o->json));" (call_expression) "dict_json_out_str(f, *variant_json_get_dict(o->json))" (identifier) "dict_json_out_str" (argument_list) "(f, *variant_json_get_dict(o->json))" (() "(" (identifier) "f" (,) "," (pointer_expression) "*variant_json_get_dict(o->json)" (*) "*" (call_expression) "variant_json_get_dict(o->json)" (identifier) "variant_json_get_dict" (argument_list) "(o->json)" (() "(" (field_expression) "o->json" (identifier) "o" (->) "->" (field_identifier) "json" ()) ")" ()) ")" (;) ";" (}) "}" (else_clause) "else {\n fprintf(f, "null");\n }" (else) "else" (compound_statement) "{\n fprintf(f, "null");\n }" ({) "{" (expression_statement) "fprintf(f, "null");" (call_expression) "fprintf(f, "null")" (identifier) "fprintf" (argument_list) "(f, "null")" (() "(" (identifier) "f" (,) "," (string_literal) ""null"" (") """ (string_content) "null" (") """ ()) ")" (;) ";" (}) "}" (}) "}" (function_definition) "static int skip_space(FILE *f)\n{\n int c;\n do {\n c = fgetc(f);\n if (ferror(f) || feof(f)) return 0;\n } while (isspace(c));\n ungetc(c, f);\n return c;\n}" (storage_class_specifier) "static" (static) "static" (primitive_type) "int" (function_declarator) "skip_space(FILE *f)" (identifier) "skip_space" (parameter_list) "(FILE *f)" (() "(" (parameter_declaration) "FILE *f" (type_identifier) "FILE" (pointer_declarator) "*f" (*) "*" (identifier) "f" ()) ")" (compound_statement) "{\n int c;\n do {\n c = fgetc(f);\n if (ferror(f) || feof(f)) return 0;\n } while (isspace(c));\n ungetc(c, f);\n return c;\n}" ({) "{" (declaration) "int c;" (primitive_type) "int" (identifier) "c" (;) ";" (do_statement) "do {\n c = fgetc(f);\n if (ferror(f) || feof(f)) return 0;\n } while (isspace(c));" (do) "do" (compound_statement) "{\n c = fgetc(f);\n if (ferror(f) || feof(f)) return 0;\n }" ({) "{" (expression_statement) "c = fgetc(f);" (assignment_expression) "c = fgetc(f)" (identifier) "c" (=) "=" (call_expression) "fgetc(f)" (identifier) "fgetc" (argument_list) "(f)" (() "(" (identifier) "f" ()) ")" (;) ";" (if_statement) "if (ferror(f) || feof(f)) return 0;" (if) "if" (parenthesized_expression) "(ferror(f) || feof(f))" (() "(" (binary_expression) "ferror(f) || feof(f)" (call_expression) "ferror(f)" (identifier) "ferror" (argument_list) "(f)" (() "(" (identifier) "f" ()) ")" (||) "||" (call_expression) "feof(f)" (identifier) "feof" (argument_list) "(f)" (() "(" (identifier) "f" ()) ")" ()) ")" (return_statement) "return 0;" (return) "return" (number_literal) "0" (;) ";" (}) "}" (while) "while" (parenthesized_expression) "(isspace(c))" (() "(" (call_expression) "isspace(c)" (identifier) "isspace" (argument_list) "(c)" (() "(" (identifier) "c" ()) ")" ()) ")" (;) ";" (expression_statement) "ungetc(c, f);" (call_expression) "ungetc(c, f)" (identifier) "ungetc" (argument_list) "(c, f)" (() "(" (identifier) "c" (,) "," (identifier) "f" ()) ")" (;) ";" (return_statement) "return c;" (return) "return" (identifier) "c" (;) ";" (}) "}" (function_definition) "bool json_in_str(mjson_t *p, FILE *f)\n{\n assert (p != NULL);\n bool b;\n char c = skip_space(f);\n if (ferror(f) || feof(f)) return false;\n variant_json_clear((*p)->json);\n if (c == 't' || c == 'f') {\n variant_json_init_boolean((*p)->json);\n b = boolean_in_str(variant_json_get_boolean((*p)->json), f);\n if (!b) return false;\n } else if ((c >= '0' && c <= '9') || (c == '-')){\n variant_json_init_real((*p)->json);\n b = real_in_str(variant_json_get_real((*p)->json), f);\n if (!b) return false;\n } else if (c == '\"') {\n variant_json_init_string((*p)->json);\n b = string_in_str(*variant_json_get_string((*p)->json), f);\n if (!b) return false;\n } else if (c == '[') {\n variant_json_init_array((*p)->json);\n b = array_json_in_str(*variant_json_get_array((*p)->json), f);\n if (!b) return false;\n } else if (c == '{') {\n variant_json_init_dict((*p)->json);\n b = dict_json_in_str(*variant_json_get_dict((*p)->json), f);\n if (!b) return false;\n } else if (c == 'n') {\n variant_json_init((*p)->json);\n c = fgetc(f);\n c = fgetc(f); if (c != 'u') return false;\n c = fgetc(f); if (c != 'l') return false;\n c = fgetc(f);\n return (c == 'l');\n } else {\n return false;\n }\n return true;\n}" (primitive_type) "bool" (function_declarator) "json_in_str(mjson_t *p, FILE *f)" (identifier) "json_in_str" (parameter_list) "(mjson_t *p, FILE *f)" (() "(" (parameter_declaration) "mjson_t *p" (type_identifier) "mjson_t" (pointer_declarator) "*p" (*) "*" (identifier) "p" (,) "," (parameter_declaration) "FILE *f" (type_identifier) "FILE" (pointer_declarator) "*f" (*) "*" (identifier) "f" ()) ")" (compound_statement) "{\n assert (p != NULL);\n bool b;\n char c = skip_space(f);\n if (ferror(f) || feof(f)) return false;\n variant_json_clear((*p)->json);\n if (c == 't' || c == 'f') {\n variant_json_init_boolean((*p)->json);\n b = boolean_in_str(variant_json_get_boolean((*p)->json), f);\n if (!b) return false;\n } else if ((c >= '0' && c <= '9') || (c == '-')){\n variant_json_init_real((*p)->json);\n b = real_in_str(variant_json_get_real((*p)->json), f);\n if (!b) return false;\n } else if (c == '\"') {\n variant_json_init_string((*p)->json);\n b = string_in_str(*variant_json_get_string((*p)->json), f);\n if (!b) return false;\n } else if (c == '[') {\n variant_json_init_array((*p)->json);\n b = array_json_in_str(*variant_json_get_array((*p)->json), f);\n if (!b) return false;\n } else if (c == '{') {\n variant_json_init_dict((*p)->json);\n b = dict_json_in_str(*variant_json_get_dict((*p)->json), f);\n if (!b) return false;\n } else if (c == 'n') {\n variant_json_init((*p)->json);\n c = fgetc(f);\n c = fgetc(f); if (c != 'u') return false;\n c = fgetc(f); if (c != 'l') return false;\n c = fgetc(f);\n return (c == 'l');\n } else {\n return false;\n }\n return true;\n}" ({) "{" (expression_statement) "assert (p != NULL);" (call_expression) "assert (p != NULL)" (identifier) "assert" (argument_list) "(p != NULL)" (() "(" (binary_expression) "p != NULL" (identifier) "p" (!=) "!=" (null) "NULL" (NULL) "NULL" ()) ")" (;) ";" (declaration) "bool b;" (primitive_type) "bool" (identifier) "b" (;) ";" (declaration) "char c = skip_space(f);" (primitive_type) "char" (init_declarator) "c = skip_space(f)" (identifier) "c" (=) "=" (call_expression) "skip_space(f)" (identifier) "skip_space" (argument_list) "(f)" (() "(" (identifier) "f" ()) ")" (;) ";" (if_statement) "if (ferror(f) || feof(f)) return false;" (if) "if" (parenthesized_expression) "(ferror(f) || feof(f))" (() "(" (binary_expression) "ferror(f) || feof(f)" (call_expression) "ferror(f)" (identifier) "ferror" (argument_list) "(f)" (() "(" (identifier) "f" ()) ")" (||) "||" (call_expression) "feof(f)" (identifier) "feof" (argument_list) "(f)" (() "(" (identifier) "f" ()) ")" ()) ")" (return_statement) "return false;" (return) "return" (false) "false" (;) ";" (expression_statement) "variant_json_clear((*p)->json);" (call_expression) "variant_json_clear((*p)->json)" (identifier) "variant_json_clear" (argument_list) "((*p)->json)" (() "(" (field_expression) "(*p)->json" (parenthesized_expression) "(*p)" (() "(" (pointer_expression) "*p" (*) "*" (identifier) "p" ()) ")" (->) "->" (field_identifier) "json" ()) ")" (;) ";" (if_statement) "if (c == 't' || c == 'f') {\n variant_json_init_boolean((*p)->json);\n b = boolean_in_str(variant_json_get_boolean((*p)->json), f);\n if (!b) return false;\n } else if ((c >= '0' && c <= '9') || (c == '-')){\n variant_json_init_real((*p)->json);\n b = real_in_str(variant_json_get_real((*p)->json), f);\n if (!b) return false;\n } else if (c == '\"') {\n variant_json_init_string((*p)->json);\n b = string_in_str(*variant_json_get_string((*p)->json), f);\n if (!b) return false;\n } else if (c == '[') {\n variant_json_init_array((*p)->json);\n b = array_json_in_str(*variant_json_get_array((*p)->json), f);\n if (!b) return false;\n } else if (c == '{') {\n variant_json_init_dict((*p)->json);\n b = dict_json_in_str(*variant_json_get_dict((*p)->json), f);\n if (!b) return false;\n } else if (c == 'n') {\n variant_json_init((*p)->json);\n c = fgetc(f);\n c = fgetc(f); if (c != 'u') return false;\n c = fgetc(f); if (c != 'l') return false;\n c = fgetc(f);\n return (c == 'l');\n } else {\n return false;\n }" (if) "if" (parenthesized_expression) "(c == 't' || c == 'f')" (() "(" (binary_expression) "c == 't' || c == 'f'" (binary_expression) "c == 't'" (identifier) "c" (==) "==" (char_literal) "'t'" (') "'" (character) "t" (') "'" (||) "||" (binary_expression) "c == 'f'" (identifier) "c" (==) "==" (char_literal) "'f'" (') "'" (character) "f" (') "'" ()) ")" (compound_statement) "{\n variant_json_init_boolean((*p)->json);\n b = boolean_in_str(variant_json_get_boolean((*p)->json), f);\n if (!b) return false;\n }" ({) "{" (expression_statement) "variant_json_init_boolean((*p)->json);" (call_expression) "variant_json_init_boolean((*p)->json)" (identifier) "variant_json_init_boolean" (argument_list) "((*p)->json)" (() "(" (field_expression) "(*p)->json" (parenthesized_expression) "(*p)" (() "(" (pointer_expression) "*p" (*) "*" (identifier) "p" ()) ")" (->) "->" (field_identifier) "json" ()) ")" (;) ";" (expression_statement) "b = boolean_in_str(variant_json_get_boolean((*p)->json), f);" (assignment_expression) "b = boolean_in_str(variant_json_get_boolean((*p)->json), f)" (identifier) "b" (=) "=" (call_expression) "boolean_in_str(variant_json_get_boolean((*p)->json), f)" (identifier) "boolean_in_str" (argument_list) "(variant_json_get_boolean((*p)->json), f)" (() "(" (call_expression) "variant_json_get_boolean((*p)->json)" (identifier) "variant_json_get_boolean" (argument_list) "((*p)->json)" (() "(" (field_expression) "(*p)->json" (parenthesized_expression) "(*p)" (() "(" (pointer_expression) "*p" (*) "*" (identifier) "p" ()) ")" (->) "->" (field_identifier) "json" ()) ")" (,) "," (identifier) "f" ()) ")" (;) ";" (if_statement) "if (!b) return false;" (if) "if" (parenthesized_expression) "(!b)" (() "(" (unary_expression) "!b" (!) "!" (identifier) "b" ()) ")" (return_statement) "return false;" (return) "return" (false) "false" (;) ";" (}) "}" (else_clause) "else if ((c >= '0' && c <= '9') || (c == '-')){\n variant_json_init_real((*p)->json);\n b = real_in_str(variant_json_get_real((*p)->json), f);\n if (!b) return false;\n } else if (c == '\"') {\n variant_json_init_string((*p)->json);\n b = string_in_str(*variant_json_get_string((*p)->json), f);\n if (!b) return false;\n } else if (c == '[') {\n variant_json_init_array((*p)->json);\n b = array_json_in_str(*variant_json_get_array((*p)->json), f);\n if (!b) return false;\n } else if (c == '{') {\n variant_json_init_dict((*p)->json);\n b = dict_json_in_str(*variant_json_get_dict((*p)->json), f);\n if (!b) return false;\n } else if (c == 'n') {\n variant_json_init((*p)->json);\n c = fgetc(f);\n c = fgetc(f); if (c != 'u') return false;\n c = fgetc(f); if (c != 'l') return false;\n c = fgetc(f);\n return (c == 'l');\n } else {\n return false;\n }" (else) "else" (if_statement) "if ((c >= '0' && c <= '9') || (c == '-')){\n variant_json_init_real((*p)->json);\n b = real_in_str(variant_json_get_real((*p)->json), f);\n if (!b) return false;\n } else if (c == '\"') {\n variant_json_init_string((*p)->json);\n b = string_in_str(*variant_json_get_string((*p)->json), f);\n if (!b) return false;\n } else if (c == '[') {\n variant_json_init_array((*p)->json);\n b = array_json_in_str(*variant_json_get_array((*p)->json), f);\n if (!b) return false;\n } else if (c == '{') {\n variant_json_init_dict((*p)->json);\n b = dict_json_in_str(*variant_json_get_dict((*p)->json), f);\n if (!b) return false;\n } else if (c == 'n') {\n variant_json_init((*p)->json);\n c = fgetc(f);\n c = fgetc(f); if (c != 'u') return false;\n c = fgetc(f); if (c != 'l') return false;\n c = fgetc(f);\n return (c == 'l');\n } else {\n return false;\n }" (if) "if" (parenthesized_expression) "((c >= '0' && c <= '9') || (c == '-'))" (() "(" (binary_expression) "(c >= '0' && c <= '9') || (c == '-')" (parenthesized_expression) "(c >= '0' && c <= '9')" (() "(" (binary_expression) "c >= '0' && c <= '9'" (binary_expression) "c >= '0'" (identifier) "c" (>=) ">=" (char_literal) "'0'" (') "'" (character) "0" (') "'" (&&) "&&" (binary_expression) "c <= '9'" (identifier) "c" (<=) "<=" (char_literal) "'9'" (') "'" (character) "9" (') "'" ()) ")" (||) "||" (parenthesized_expression) "(c == '-')" (() "(" (binary_expression) "c == '-'" (identifier) "c" (==) "==" (char_literal) "'-'" (') "'" (character) "-" (') "'" ()) ")" ()) ")" (compound_statement) "{\n variant_json_init_real((*p)->json);\n b = real_in_str(variant_json_get_real((*p)->json), f);\n if (!b) return false;\n }" ({) "{" (expression_statement) "variant_json_init_real((*p)->json);" (call_expression) "variant_json_init_real((*p)->json)" (identifier) "variant_json_init_real" (argument_list) "((*p)->json)" (() "(" (field_expression) "(*p)->json" (parenthesized_expression) "(*p)" (() "(" (pointer_expression) "*p" (*) "*" (identifier) "p" ()) ")" (->) "->" (field_identifier) "json" ()) ")" (;) ";" (expression_statement) "b = real_in_str(variant_json_get_real((*p)->json), f);" (assignment_expression) "b = real_in_str(variant_json_get_real((*p)->json), f)" (identifier) "b" (=) "=" (call_expression) "real_in_str(variant_json_get_real((*p)->json), f)" (identifier) "real_in_str" (argument_list) "(variant_json_get_real((*p)->json), f)" (() "(" (call_expression) "variant_json_get_real((*p)->json)" (identifier) "variant_json_get_real" (argument_list) "((*p)->json)" (() "(" (field_expression) "(*p)->json" (parenthesized_expression) "(*p)" (() "(" (pointer_expression) "*p" (*) "*" (identifier) "p" ()) ")" (->) "->" (field_identifier) "json" ()) ")" (,) "," (identifier) "f" ()) ")" (;) ";" (if_statement) "if (!b) return false;" (if) "if" (parenthesized_expression) "(!b)" (() "(" (unary_expression) "!b" (!) "!" (identifier) "b" ()) ")" (return_statement) "return false;" (return) "return" (false) "false" (;) ";" (}) "}" (else_clause) "else if (c == '\"') {\n variant_json_init_string((*p)->json);\n b = string_in_str(*variant_json_get_string((*p)->json), f);\n if (!b) return false;\n } else if (c == '[') {\n variant_json_init_array((*p)->json);\n b = array_json_in_str(*variant_json_get_array((*p)->json), f);\n if (!b) return false;\n } else if (c == '{') {\n variant_json_init_dict((*p)->json);\n b = dict_json_in_str(*variant_json_get_dict((*p)->json), f);\n if (!b) return false;\n } else if (c == 'n') {\n variant_json_init((*p)->json);\n c = fgetc(f);\n c = fgetc(f); if (c != 'u') return false;\n c = fgetc(f); if (c != 'l') return false;\n c = fgetc(f);\n return (c == 'l');\n } else {\n return false;\n }" (else) "else" (if_statement) "if (c == '\"') {\n variant_json_init_string((*p)->json);\n b = string_in_str(*variant_json_get_string((*p)->json), f);\n if (!b) return false;\n } else if (c == '[') {\n variant_json_init_array((*p)->json);\n b = array_json_in_str(*variant_json_get_array((*p)->json), f);\n if (!b) return false;\n } else if (c == '{') {\n variant_json_init_dict((*p)->json);\n b = dict_json_in_str(*variant_json_get_dict((*p)->json), f);\n if (!b) return false;\n } else if (c == 'n') {\n variant_json_init((*p)->json);\n c = fgetc(f);\n c = fgetc(f); if (c != 'u') return false;\n c = fgetc(f); if (c != 'l') return false;\n c = fgetc(f);\n return (c == 'l');\n } else {\n return false;\n }" (if) "if" (parenthesized_expression) "(c == '\"')" (() "(" (binary_expression) "c == '\"'" (identifier) "c" (==) "==" (char_literal) "'\"'" (') "'" (escape_sequence) "\"" (') "'" ()) ")" (compound_statement) "{\n variant_json_init_string((*p)->json);\n b = string_in_str(*variant_json_get_string((*p)->json), f);\n if (!b) return false;\n }" ({) "{" (expression_statement) "variant_json_init_string((*p)->json);" (call_expression) "variant_json_init_string((*p)->json)" (identifier) "variant_json_init_string" (argument_list) "((*p)->json)" (() "(" (field_expression) "(*p)->json" (parenthesized_expression) "(*p)" (() "(" (pointer_expression) "*p" (*) "*" (identifier) "p" ()) ")" (->) "->" (field_identifier) "json" ()) ")" (;) ";" (expression_statement) "b = string_in_str(*variant_json_get_string((*p)->json), f);" (assignment_expression) "b = string_in_str(*variant_json_get_string((*p)->json), f)" (identifier) "b" (=) "=" (call_expression) "string_in_str(*variant_json_get_string((*p)->json), f)" (identifier) "string_in_str" (argument_list) "(*variant_json_get_string((*p)->json), f)" (() "(" (pointer_expression) "*variant_json_get_string((*p)->json)" (*) "*" (call_expression) "variant_json_get_string((*p)->json)" (identifier) "variant_json_get_string" (argument_list) "((*p)->json)" (() "(" (field_expression) "(*p)->json" (parenthesized_expression) "(*p)" (() "(" (pointer_expression) "*p" (*) "*" (identifier) "p" ()) ")" (->) "->" (field_identifier) "json" ()) ")" (,) "," (identifier) "f" ()) ")" (;) ";" (if_statement) "if (!b) return false;" (if) "if" (parenthesized_expression) "(!b)" (() "(" (unary_expression) "!b" (!) "!" (identifier) "b" ()) ")" (return_statement) "return false;" (return) "return" (false) "false" (;) ";" (}) "}" (else_clause) "else if (c == '[') {\n variant_json_init_array((*p)->json);\n b = array_json_in_str(*variant_json_get_array((*p)->json), f);\n if (!b) return false;\n } else if (c == '{') {\n variant_json_init_dict((*p)->json);\n b = dict_json_in_str(*variant_json_get_dict((*p)->json), f);\n if (!b) return false;\n } else if (c == 'n') {\n variant_json_init((*p)->json);\n c = fgetc(f);\n c = fgetc(f); if (c != 'u') return false;\n c = fgetc(f); if (c != 'l') return false;\n c = fgetc(f);\n return (c == 'l');\n } else {\n return false;\n }" (else) "else" (if_statement) "if (c == '[') {\n variant_json_init_array((*p)->json);\n b = array_json_in_str(*variant_json_get_array((*p)->json), f);\n if (!b) return false;\n } else if (c == '{') {\n variant_json_init_dict((*p)->json);\n b = dict_json_in_str(*variant_json_get_dict((*p)->json), f);\n if (!b) return false;\n } else if (c == 'n') {\n variant_json_init((*p)->json);\n c = fgetc(f);\n c = fgetc(f); if (c != 'u') return false;\n c = fgetc(f); if (c != 'l') return false;\n c = fgetc(f);\n return (c == 'l');\n } else {\n return false;\n }" (if) "if" (parenthesized_expression) "(c == '[')" (() "(" (binary_expression) "c == '['" (identifier) "c" (==) "==" (char_literal) "'['" (') "'" (character) "[" (') "'" ()) ")" (compound_statement) "{\n variant_json_init_array((*p)->json);\n b = array_json_in_str(*variant_json_get_array((*p)->json), f);\n if (!b) return false;\n }" ({) "{" (expression_statement) "variant_json_init_array((*p)->json);" (call_expression) "variant_json_init_array((*p)->json)" (identifier) "variant_json_init_array" (argument_list) "((*p)->json)" (() "(" (field_expression) "(*p)->json" (parenthesized_expression) "(*p)" (() "(" (pointer_expression) "*p" (*) "*" (identifier) "p" ()) ")" (->) "->" (field_identifier) "json" ()) ")" (;) ";" (expression_statement) "b = array_json_in_str(*variant_json_get_array((*p)->json), f);" (assignment_expression) "b = array_json_in_str(*variant_json_get_array((*p)->json), f)" (identifier) "b" (=) "=" (call_expression) "array_json_in_str(*variant_json_get_array((*p)->json), f)" (identifier) "array_json_in_str" (argument_list) "(*variant_json_get_array((*p)->json), f)" (() "(" (pointer_expression) "*variant_json_get_array((*p)->json)" (*) "*" (call_expression) "variant_json_get_array((*p)->json)" (identifier) "variant_json_get_array" (argument_list) "((*p)->json)" (() "(" (field_expression) "(*p)->json" (parenthesized_expression) "(*p)" (() "(" (pointer_expression) "*p" (*) "*" (identifier) "p" ()) ")" (->) "->" (field_identifier) "json" ()) ")" (,) "," (identifier) "f" ()) ")" (;) ";" (if_statement) "if (!b) return false;" (if) "if" (parenthesized_expression) "(!b)" (() "(" (unary_expression) "!b" (!) "!" (identifier) "b" ()) ")" (return_statement) "return false;" (return) "return" (false) "false" (;) ";" (}) "}" (else_clause) "else if (c == '{') {\n variant_json_init_dict((*p)->json);\n b = dict_json_in_str(*variant_json_get_dict((*p)->json), f);\n if (!b) return false;\n } else if (c == 'n') {\n variant_json_init((*p)->json);\n c = fgetc(f);\n c = fgetc(f); if (c != 'u') return false;\n c = fgetc(f); if (c != 'l') return false;\n c = fgetc(f);\n return (c == 'l');\n } else {\n return false;\n }" (else) "else" (if_statement) "if (c == '{') {\n variant_json_init_dict((*p)->json);\n b = dict_json_in_str(*variant_json_get_dict((*p)->json), f);\n if (!b) return false;\n } else if (c == 'n') {\n variant_json_init((*p)->json);\n c = fgetc(f);\n c = fgetc(f); if (c != 'u') return false;\n c = fgetc(f); if (c != 'l') return false;\n c = fgetc(f);\n return (c == 'l');\n } else {\n return false;\n }" (if) "if" (parenthesized_expression) "(c == '{')" (() "(" (binary_expression) "c == '{'" (identifier) "c" (==) "==" (char_literal) "'{'" (') "'" (character) "{" (') "'" ()) ")" (compound_statement) "{\n variant_json_init_dict((*p)->json);\n b = dict_json_in_str(*variant_json_get_dict((*p)->json), f);\n if (!b) return false;\n }" ({) "{" (expression_statement) "variant_json_init_dict((*p)->json);" (call_expression) "variant_json_init_dict((*p)->json)" (identifier) "variant_json_init_dict" (argument_list) "((*p)->json)" (() "(" (field_expression) "(*p)->json" (parenthesized_expression) "(*p)" (() "(" (pointer_expression) "*p" (*) "*" (identifier) "p" ()) ")" (->) "->" (field_identifier) "json" ()) ")" (;) ";" (expression_statement) "b = dict_json_in_str(*variant_json_get_dict((*p)->json), f);" (assignment_expression) "b = dict_json_in_str(*variant_json_get_dict((*p)->json), f)" (identifier) "b" (=) "=" (call_expression) "dict_json_in_str(*variant_json_get_dict((*p)->json), f)" (identifier) "dict_json_in_str" (argument_list) "(*variant_json_get_dict((*p)->json), f)" (() "(" (pointer_expression) "*variant_json_get_dict((*p)->json)" (*) "*" (call_expression) "variant_json_get_dict((*p)->json)" (identifier) "variant_json_get_dict" (argument_list) "((*p)->json)" (() "(" (field_expression) "(*p)->json" (parenthesized_expression) "(*p)" (() "(" (pointer_expression) "*p" (*) "*" (identifier) "p" ()) ")" (->) "->" (field_identifier) "json" ()) ")" (,) "," (identifier) "f" ()) ")" (;) ";" (if_statement) "if (!b) return false;" (if) "if" (parenthesized_expression) "(!b)" (() "(" (unary_expression) "!b" (!) "!" (identifier) "b" ()) ")" (return_statement) "return false;" (return) "return" (false) "false" (;) ";" (}) "}" (else_clause) "else if (c == 'n') {\n variant_json_init((*p)->json);\n c = fgetc(f);\n c = fgetc(f); if (c != 'u') return false;\n c = fgetc(f); if (c != 'l') return false;\n c = fgetc(f);\n return (c == 'l');\n } else {\n return false;\n }" (else) "else" (if_statement) "if (c == 'n') {\n variant_json_init((*p)->json);\n c = fgetc(f);\n c = fgetc(f); if (c != 'u') return false;\n c = fgetc(f); if (c != 'l') return false;\n c = fgetc(f);\n return (c == 'l');\n } else {\n return false;\n }" (if) "if" (parenthesized_expression) "(c == 'n')" (() "(" (binary_expression) "c == 'n'" (identifier) "c" (==) "==" (char_literal) "'n'" (') "'" (character) "n" (') "'" ()) ")" (compound_statement) "{\n variant_json_init((*p)->json);\n c = fgetc(f);\n c = fgetc(f); if (c != 'u') return false;\n c = fgetc(f); if (c != 'l') return false;\n c = fgetc(f);\n return (c == 'l');\n }" ({) "{" (expression_statement) "variant_json_init((*p)->json);" (call_expression) "variant_json_init((*p)->json)" (identifier) "variant_json_init" (argument_list) "((*p)->json)" (() "(" (field_expression) "(*p)->json" (parenthesized_expression) "(*p)" (() "(" (pointer_expression) "*p" (*) "*" (identifier) "p" ()) ")" (->) "->" (field_identifier) "json" ()) ")" (;) ";" (expression_statement) "c = fgetc(f);" (assignment_expression) "c = fgetc(f)" (identifier) "c" (=) "=" (call_expression) "fgetc(f)" (identifier) "fgetc" (argument_list) "(f)" (() "(" (identifier) "f" ()) ")" (;) ";" (expression_statement) "c = fgetc(f);" (assignment_expression) "c = fgetc(f)" (identifier) "c" (=) "=" (call_expression) "fgetc(f)" (identifier) "fgetc" (argument_list) "(f)" (() "(" (identifier) "f" ()) ")" (;) ";" (if_statement) "if (c != 'u') return false;" (if) "if" (parenthesized_expression) "(c != 'u')" (() "(" (binary_expression) "c != 'u'" (identifier) "c" (!=) "!=" (char_literal) "'u'" (') "'" (character) "u" (') "'" ()) ")" (return_statement) "return false;" (return) "return" (false) "false" (;) ";" (expression_statement) "c = fgetc(f);" (assignment_expression) "c = fgetc(f)" (identifier) "c" (=) "=" (call_expression) "fgetc(f)" (identifier) "fgetc" (argument_list) "(f)" (() "(" (identifier) "f" ()) ")" (;) ";" (if_statement) "if (c != 'l') return false;" (if) "if" (parenthesized_expression) "(c != 'l')" (() "(" (binary_expression) "c != 'l'" (identifier) "c" (!=) "!=" (char_literal) "'l'" (') "'" (character) "l" (') "'" ()) ")" (return_statement) "return false;" (return) "return" (false) "false" (;) ";" (expression_statement) "c = fgetc(f);" (assignment_expression) "c = fgetc(f)" (identifier) "c" (=) "=" (call_expression) "fgetc(f)" (identifier) "fgetc" (argument_list) "(f)" (() "(" (identifier) "f" ()) ")" (;) ";" (return_statement) "return (c == 'l');" (return) "return" (parenthesized_expression) "(c == 'l')" (() "(" (binary_expression) "c == 'l'" (identifier) "c" (==) "==" (char_literal) "'l'" (') "'" (character) "l" (') "'" ()) ")" (;) ";" (}) "}" (else_clause) "else {\n return false;\n }" (else) "else" (compound_statement) "{\n return false;\n }" ({) "{" (return_statement) "return false;" (return) "return" (false) "false" (;) ";" (}) "}" (return_statement) "return true;" (return) "return" (true) "true" (;) ";" (}) "}" (function_definition) "bool json_init_in_str(mjson_t *p, FILE *f)\n{\n json_init(p);\n return json_in_str(p, f);\n}" (primitive_type) "bool" (function_declarator) "json_init_in_str(mjson_t *p, FILE *f)" (identifier) "json_init_in_str" (parameter_list) "(mjson_t *p, FILE *f)" (() "(" (parameter_declaration) "mjson_t *p" (type_identifier) "mjson_t" (pointer_declarator) "*p" (*) "*" (identifier) "p" (,) "," (parameter_declaration) "FILE *f" (type_identifier) "FILE" (pointer_declarator) "*f" (*) "*" (identifier) "f" ()) ")" (compound_statement) "{\n json_init(p);\n return json_in_str(p, f);\n}" ({) "{" (expression_statement) "json_init(p);" (call_expression) "json_init(p)" (identifier) "json_init" (argument_list) "(p)" (() "(" (identifier) "p" ()) ")" (;) ";" (return_statement) "return json_in_str(p, f);" (return) "return" (call_expression) "json_in_str(p, f)" (identifier) "json_in_str" (argument_list) "(p, f)" (() "(" (identifier) "p" (,) "," (identifier) "f" ()) ")" (;) ";" (}) "}" (function_definition) "static mjson_t json_get_field(mjson_t p, va_list list)\n{\n mjson_t r = p;\n while (true) {\n const char *str = va_arg(list, const char*);\n if (str == NULL)\n return r;\n if (str[0] == '[') {\n if (!variant_json_array_p(r->json)) return NULL;\n int n = atoi(str+1);\n if (n < 0 || (unsigned)n >= array_json_size(*variant_json_get_array(r->json)))\n return NULL;\n r = *array_json_get(*variant_json_get_array(r->json), n);\n } else {\n if (!variant_json_dict_p(r->json)) return NULL;\n string_t s;\n string_init_set_str (s, str); // BAD API: I want a macro to have a string_t from a const char* but STRING_CTE doesn't work :(\n mjson_t *v = dict_json_get (*variant_json_get_dict(r->json), s);\n string_clear(s);\n if (v == NULL) return NULL;\n r = *v;\n }\n }\n}" (storage_class_specifier) "static" (static) "static" (type_identifier) "mjson_t" (function_declarator) "json_get_field(mjson_t p, va_list list)" (identifier) "json_get_field" (parameter_list) "(mjson_t p, va_list list)" (() "(" (parameter_declaration) "mjson_t p" (type_identifier) "mjson_t" (identifier) "p" (,) "," (parameter_declaration) "va_list list" (type_identifier) "va_list" (identifier) "list" ()) ")" (compound_statement) "{\n mjson_t r = p;\n while (true) {\n const char *str = va_arg(list, const char*);\n if (str == NULL)\n return r;\n if (str[0] == '[') {\n if (!variant_json_array_p(r->json)) return NULL;\n int n = atoi(str+1);\n if (n < 0 || (unsigned)n >= array_json_size(*variant_json_get_array(r->json)))\n return NULL;\n r = *array_json_get(*variant_json_get_array(r->json), n);\n } else {\n if (!variant_json_dict_p(r->json)) return NULL;\n string_t s;\n string_init_set_str (s, str); // BAD API: I want a macro to have a string_t from a const char* but STRING_CTE doesn't work :(\n mjson_t *v = dict_json_get (*variant_json_get_dict(r->json), s);\n string_clear(s);\n if (v == NULL) return NULL;\n r = *v;\n }\n }\n}" ({) "{" (declaration) "mjson_t r = p;" (type_identifier) "mjson_t" (init_declarator) "r = p" (identifier) "r" (=) "=" (identifier) "p" (;) ";" (while_statement) "while (true) {\n const char *str = va_arg(list, const char*);\n if (str == NULL)\n return r;\n if (str[0] == '[') {\n if (!variant_json_array_p(r->json)) return NULL;\n int n = atoi(str+1);\n if (n < 0 || (unsigned)n >= array_json_size(*variant_json_get_array(r->json)))\n return NULL;\n r = *array_json_get(*variant_json_get_array(r->json), n);\n } else {\n if (!variant_json_dict_p(r->json)) return NULL;\n string_t s;\n string_init_set_str (s, str); // BAD API: I want a macro to have a string_t from a const char* but STRING_CTE doesn't work :(\n mjson_t *v = dict_json_get (*variant_json_get_dict(r->json), s);\n string_clear(s);\n if (v == NULL) return NULL;\n r = *v;\n }\n }" (while) "while" (parenthesized_expression) "(true)" (() "(" (true) "true" ()) ")" (compound_statement) "{\n const char *str = va_arg(list, const char*);\n if (str == NULL)\n return r;\n if (str[0] == '[') {\n if (!variant_json_array_p(r->json)) return NULL;\n int n = atoi(str+1);\n if (n < 0 || (unsigned)n >= array_json_size(*variant_json_get_array(r->json)))\n return NULL;\n r = *array_json_get(*variant_json_get_array(r->json), n);\n } else {\n if (!variant_json_dict_p(r->json)) return NULL;\n string_t s;\n string_init_set_str (s, str); // BAD API: I want a macro to have a string_t from a const char* but STRING_CTE doesn't work :(\n mjson_t *v = dict_json_get (*variant_json_get_dict(r->json), s);\n string_clear(s);\n if (v == NULL) return NULL;\n r = *v;\n }\n }" ({) "{" (declaration) "const char *str = va_arg(list, const char*);" (type_qualifier) "const" (const) "const" (primitive_type) "char" (init_declarator) "*str = va_arg(list, const char*)" (pointer_declarator) "*str" (*) "*" (identifier) "str" (=) "=" (call_expression) "va_arg(list, const char*)" (identifier) "va_arg" (argument_list) "(list, const char*)" (() "(" (identifier) "list" (,) "," (identifier) "const" (ERROR) "char*" (identifier) "char" (*) "*" ()) ")" (;) ";" (if_statement) "if (str == NULL)\n return r;" (if) "if" (parenthesized_expression) "(str == NULL)" (() "(" (binary_expression) "str == NULL" (identifier) "str" (==) "==" (null) "NULL" (NULL) "NULL" ()) ")" (return_statement) "return r;" (return) "return" (identifier) "r" (;) ";" (if_statement) "if (str[0] == '[') {\n if (!variant_json_array_p(r->json)) return NULL;\n int n = atoi(str+1);\n if (n < 0 || (unsigned)n >= array_json_size(*variant_json_get_array(r->json)))\n return NULL;\n r = *array_json_get(*variant_json_get_array(r->json), n);\n } else {\n if (!variant_json_dict_p(r->json)) return NULL;\n string_t s;\n string_init_set_str (s, str); // BAD API: I want a macro to have a string_t from a const char* but STRING_CTE doesn't work :(\n mjson_t *v = dict_json_get (*variant_json_get_dict(r->json), s);\n string_clear(s);\n if (v == NULL) return NULL;\n r = *v;\n }" (if) "if" (parenthesized_expression) "(str[0] == '[')" (() "(" (binary_expression) "str[0] == '['" (subscript_expression) "str[0]" (identifier) "str" ([) "[" (number_literal) "0" (]) "]" (==) "==" (char_literal) "'['" (') "'" (character) "[" (') "'" ()) ")" (compound_statement) "{\n if (!variant_json_array_p(r->json)) return NULL;\n int n = atoi(str+1);\n if (n < 0 || (unsigned)n >= array_json_size(*variant_json_get_array(r->json)))\n return NULL;\n r = *array_json_get(*variant_json_get_array(r->json), n);\n }" ({) "{" (if_statement) "if (!variant_json_array_p(r->json)) return NULL;" (if) "if" (parenthesized_expression) "(!variant_json_array_p(r->json))" (() "(" (unary_expression) "!variant_json_array_p(r->json)" (!) "!" (call_expression) "variant_json_array_p(r->json)" (identifier) "variant_json_array_p" (argument_list) "(r->json)" (() "(" (field_expression) "r->json" (identifier) "r" (->) "->" (field_identifier) "json" ()) ")" ()) ")" (return_statement) "return NULL;" (return) "return" (null) "NULL" (NULL) "NULL" (;) ";" (declaration) "int n = atoi(str+1);" (primitive_type) "int" (init_declarator) "n = atoi(str+1)" (identifier) "n" (=) "=" (call_expression) "atoi(str+1)" (identifier) "atoi" (argument_list) "(str+1)" (() "(" (binary_expression) "str+1" (identifier) "str" (+) "+" (number_literal) "1" ()) ")" (;) ";" (if_statement) "if (n < 0 || (unsigned)n >= array_json_size(*variant_json_get_array(r->json)))\n return NULL;" (if) "if" (parenthesized_expression) "(n < 0 || (unsigned)n >= array_json_size(*variant_json_get_array(r->json)))" (() "(" (binary_expression) "n < 0 || (unsigned)n >= array_json_size(*variant_json_get_array(r->json))" (binary_expression) "n < 0" (identifier) "n" (<) "<" (number_literal) "0" (||) "||" (binary_expression) "(unsigned)n >= array_json_size(*variant_json_get_array(r->json))" (cast_expression) "(unsigned)n" (() "(" (type_descriptor) "unsigned" (sized_type_specifier) "unsigned" (unsigned) "unsigned" ()) ")" (identifier) "n" (>=) ">=" (call_expression) "array_json_size(*variant_json_get_array(r->json))" (identifier) "array_json_size" (argument_list) "(*variant_json_get_array(r->json))" (() "(" (pointer_expression) "*variant_json_get_array(r->json)" (*) "*" (call_expression) "variant_json_get_array(r->json)" (identifier) "variant_json_get_array" (argument_list) "(r->json)" (() "(" (field_expression) "r->json" (identifier) "r" (->) "->" (field_identifier) "json" ()) ")" ()) ")" ()) ")" (return_statement) "return NULL;" (return) "return" (null) "NULL" (NULL) "NULL" (;) ";" (expression_statement) "r = *array_json_get(*variant_json_get_array(r->json), n);" (assignment_expression) "r = *array_json_get(*variant_json_get_array(r->json), n)" (identifier) "r" (=) "=" (pointer_expression) "*array_json_get(*variant_json_get_array(r->json), n)" (*) "*" (call_expression) "array_json_get(*variant_json_get_array(r->json), n)" (identifier) "array_json_get" (argument_list) "(*variant_json_get_array(r->json), n)" (() "(" (pointer_expression) "*variant_json_get_array(r->json)" (*) "*" (call_expression) "variant_json_get_array(r->json)" (identifier) "variant_json_get_array" (argument_list) "(r->json)" (() "(" (field_expression) "r->json" (identifier) "r" (->) "->" (field_identifier) "json" ()) ")" (,) "," (identifier) "n" ()) ")" (;) ";" (}) "}" (else_clause) "else {\n if (!variant_json_dict_p(r->json)) return NULL;\n string_t s;\n string_init_set_str (s, str); // BAD API: I want a macro to have a string_t from a const char* but STRING_CTE doesn't work :(\n mjson_t *v = dict_json_get (*variant_json_get_dict(r->json), s);\n string_clear(s);\n if (v == NULL) return NULL;\n r = *v;\n }" (else) "else" (compound_statement) "{\n if (!variant_json_dict_p(r->json)) return NULL;\n string_t s;\n string_init_set_str (s, str); // BAD API: I want a macro to have a string_t from a const char* but STRING_CTE doesn't work :(\n mjson_t *v = dict_json_get (*variant_json_get_dict(r->json), s);\n string_clear(s);\n if (v == NULL) return NULL;\n r = *v;\n }" ({) "{" (if_statement) "if (!variant_json_dict_p(r->json)) return NULL;" (if) "if" (parenthesized_expression) "(!variant_json_dict_p(r->json))" (() "(" (unary_expression) "!variant_json_dict_p(r->json)" (!) "!" (call_expression) "variant_json_dict_p(r->json)" (identifier) "variant_json_dict_p" (argument_list) "(r->json)" (() "(" (field_expression) "r->json" (identifier) "r" (->) "->" (field_identifier) "json" ()) ")" ()) ")" (return_statement) "return NULL;" (return) "return" (null) "NULL" (NULL) "NULL" (;) ";" (declaration) "string_t s;" (type_identifier) "string_t" (identifier) "s" (;) ";" (expression_statement) "string_init_set_str (s, str);" (call_expression) "string_init_set_str (s, str)" (identifier) "string_init_set_str" (argument_list) "(s, str)" (() "(" (identifier) "s" (,) "," (identifier) "str" ()) ")" (;) ";" (comment) "// BAD API: I want a macro to have a string_t from a const char* but STRING_CTE doesn't work :(" (declaration) "mjson_t *v = dict_json_get (*variant_json_get_dict(r->json), s);" (type_identifier) "mjson_t" (init_declarator) "*v = dict_json_get (*variant_json_get_dict(r->json), s)" (pointer_declarator) "*v" (*) "*" (identifier) "v" (=) "=" (call_expression) "dict_json_get (*variant_json_get_dict(r->json), s)" (identifier) "dict_json_get" (argument_list) "(*variant_json_get_dict(r->json), s)" (() "(" (pointer_expression) "*variant_json_get_dict(r->json)" (*) "*" (call_expression) "variant_json_get_dict(r->json)" (identifier) "variant_json_get_dict" (argument_list) "(r->json)" (() "(" (field_expression) "r->json" (identifier) "r" (->) "->" (field_identifier) "json" ()) ")" (,) "," (identifier) "s" ()) ")" (;) ";" (expression_statement) "string_clear(s);" (call_expression) "string_clear(s)" (identifier) "string_clear" (argument_list) "(s)" (() "(" (identifier) "s" ()) ")" (;) ";" (if_statement) "if (v == NULL) return NULL;" (if) "if" (parenthesized_expression) "(v == NULL)" (() "(" (binary_expression) "v == NULL" (identifier) "v" (==) "==" (null) "NULL" (NULL) "NULL" ()) ")" (return_statement) "return NULL;" (return) "return" (null) "NULL" (NULL) "NULL" (;) ";" (expression_statement) "r = *v;" (assignment_expression) "r = *v" (identifier) "r" (=) "=" (pointer_expression) "*v" (*) "*" (identifier) "v" (;) ";" (}) "}" (}) "}" (}) "}" (function_definition) "double json_get_real(mjson_t p, ...)\n{\n va_list ap;\n va_start(ap, p);\n mjson_t r = json_get_field(p, ap);\n va_end(ap);\n if (r == NULL || !variant_json_real_p(r->json))\n return NAN;\n else\n return *variant_json_get_real(r->json);\n}" (primitive_type) "double" (function_declarator) "json_get_real(mjson_t p, ...)" (identifier) "json_get_real" (parameter_list) "(mjson_t p, ...)" (() "(" (parameter_declaration) "mjson_t p" (type_identifier) "mjson_t" (identifier) "p" (,) "," (variadic_parameter) "..." (...) "..." ()) ")" (compound_statement) "{\n va_list ap;\n va_start(ap, p);\n mjson_t r = json_get_field(p, ap);\n va_end(ap);\n if (r == NULL || !variant_json_real_p(r->json))\n return NAN;\n else\n return *variant_json_get_real(r->json);\n}" ({) "{" (declaration) "va_list ap;" (type_identifier) "va_list" (identifier) "ap" (;) ";" (expression_statement) "va_start(ap, p);" (call_expression) "va_start(ap, p)" (identifier) "va_start" (argument_list) "(ap, p)" (() "(" (identifier) "ap" (,) "," (identifier) "p" ()) ")" (;) ";" (declaration) "mjson_t r = json_get_field(p, ap);" (type_identifier) "mjson_t" (init_declarator) "r = json_get_field(p, ap)" (identifier) "r" (=) "=" (call_expression) "json_get_field(p, ap)" (identifier) "json_get_field" (argument_list) "(p, ap)" (() "(" (identifier) "p" (,) "," (identifier) "ap" ()) ")" (;) ";" (expression_statement) "va_end(ap);" (call_expression) "va_end(ap)" (identifier) "va_end" (argument_list) "(ap)" (() "(" (identifier) "ap" ()) ")" (;) ";" (if_statement) "if (r == NULL || !variant_json_real_p(r->json))\n return NAN;\n else\n return *variant_json_get_real(r->json);" (if) "if" (parenthesized_expression) "(r == NULL || !variant_json_real_p(r->json))" (() "(" (binary_expression) "r == NULL || !variant_json_real_p(r->json)" (binary_expression) "r == NULL" (identifier) "r" (==) "==" (null) "NULL" (NULL) "NULL" (||) "||" (unary_expression) "!variant_json_real_p(r->json)" (!) "!" (call_expression) "variant_json_real_p(r->json)" (identifier) "variant_json_real_p" (argument_list) "(r->json)" (() "(" (field_expression) "r->json" (identifier) "r" (->) "->" (field_identifier) "json" ()) ")" ()) ")" (return_statement) "return NAN;" (return) "return" (identifier) "NAN" (;) ";" (else_clause) "else\n return *variant_json_get_real(r->json);" (else) "else" (return_statement) "return *variant_json_get_real(r->json);" (return) "return" (pointer_expression) "*variant_json_get_real(r->json)" (*) "*" (call_expression) "variant_json_get_real(r->json)" (identifier) "variant_json_get_real" (argument_list) "(r->json)" (() "(" (field_expression) "r->json" (identifier) "r" (->) "->" (field_identifier) "json" ()) ")" (;) ";" (}) "}" (function_definition) "int json_get_boolean(mjson_t p, ...)\n{\n va_list ap;\n va_start(ap, p);\n mjson_t r = json_get_field(p, ap);\n va_end(ap);\n if (r == NULL || !variant_json_boolean_p(r->json))\n return -1;\n else\n return *variant_json_get_boolean(r->json);\n}" (primitive_type) "int" (function_declarator) "json_get_boolean(mjson_t p, ...)" (identifier) "json_get_boolean" (parameter_list) "(mjson_t p, ...)" (() "(" (parameter_declaration) "mjson_t p" (type_identifier) "mjson_t" (identifier) "p" (,) "," (variadic_parameter) "..." (...) "..." ()) ")" (compound_statement) "{\n va_list ap;\n va_start(ap, p);\n mjson_t r = json_get_field(p, ap);\n va_end(ap);\n if (r == NULL || !variant_json_boolean_p(r->json))\n return -1;\n else\n return *variant_json_get_boolean(r->json);\n}" ({) "{" (declaration) "va_list ap;" (type_identifier) "va_list" (identifier) "ap" (;) ";" (expression_statement) "va_start(ap, p);" (call_expression) "va_start(ap, p)" (identifier) "va_start" (argument_list) "(ap, p)" (() "(" (identifier) "ap" (,) "," (identifier) "p" ()) ")" (;) ";" (declaration) "mjson_t r = json_get_field(p, ap);" (type_identifier) "mjson_t" (init_declarator) "r = json_get_field(p, ap)" (identifier) "r" (=) "=" (call_expression) "json_get_field(p, ap)" (identifier) "json_get_field" (argument_list) "(p, ap)" (() "(" (identifier) "p" (,) "," (identifier) "ap" ()) ")" (;) ";" (expression_statement) "va_end(ap);" (call_expression) "va_end(ap)" (identifier) "va_end" (argument_list) "(ap)" (() "(" (identifier) "ap" ()) ")" (;) ";" (if_statement) "if (r == NULL || !variant_json_boolean_p(r->json))\n return -1;\n else\n return *variant_json_get_boolean(r->json);" (if) "if" (parenthesized_expression) "(r == NULL || !variant_json_boolean_p(r->json))" (() "(" (binary_expression) "r == NULL || !variant_json_boolean_p(r->json)" (binary_expression) "r == NULL" (identifier) "r" (==) "==" (null) "NULL" (NULL) "NULL" (||) "||" (unary_expression) "!variant_json_boolean_p(r->json)" (!) "!" (call_expression) "variant_json_boolean_p(r->json)" (identifier) "variant_json_boolean_p" (argument_list) "(r->json)" (() "(" (field_expression) "r->json" (identifier) "r" (->) "->" (field_identifier) "json" ()) ")" ()) ")" (return_statement) "return -1;" (return) "return" (number_literal) "-1" (;) ";" (else_clause) "else\n return *variant_json_get_boolean(r->json);" (else) "else" (return_statement) "return *variant_json_get_boolean(r->json);" (return) "return" (pointer_expression) "*variant_json_get_boolean(r->json)" (*) "*" (call_expression) "variant_json_get_boolean(r->json)" (identifier) "variant_json_get_boolean" (argument_list) "(r->json)" (() "(" (field_expression) "r->json" (identifier) "r" (->) "->" (field_identifier) "json" ()) ")" (;) ";" (}) "}" (function_definition) "bool json_get_empty(mjson_t p, ...)\n{\n va_list ap;\n va_start(ap, p);\n mjson_t r = json_get_field(p, ap);\n va_end(ap);\n if (r == NULL || !variant_json_empty_p(r->json))\n return false;\n else\n return true;\n}" (primitive_type) "bool" (function_declarator) "json_get_empty(mjson_t p, ...)" (identifier) "json_get_empty" (parameter_list) "(mjson_t p, ...)" (() "(" (parameter_declaration) "mjson_t p" (type_identifier) "mjson_t" (identifier) "p" (,) "," (variadic_parameter) "..." (...) "..." ()) ")" (compound_statement) "{\n va_list ap;\n va_start(ap, p);\n mjson_t r = json_get_field(p, ap);\n va_end(ap);\n if (r == NULL || !variant_json_empty_p(r->json))\n return false;\n else\n return true;\n}" ({) "{" (declaration) "va_list ap;" (type_identifier) "va_list" (identifier) "ap" (;) ";" (expression_statement) "va_start(ap, p);" (call_expression) "va_start(ap, p)" (identifier) "va_start" (argument_list) "(ap, p)" (() "(" (identifier) "ap" (,) "," (identifier) "p" ()) ")" (;) ";" (declaration) "mjson_t r = json_get_field(p, ap);" (type_identifier) "mjson_t" (init_declarator) "r = json_get_field(p, ap)" (identifier) "r" (=) "=" (call_expression) "json_get_field(p, ap)" (identifier) "json_get_field" (argument_list) "(p, ap)" (() "(" (identifier) "p" (,) "," (identifier) "ap" ()) ")" (;) ";" (expression_statement) "va_end(ap);" (call_expression) "va_end(ap)" (identifier) "va_end" (argument_list) "(ap)" (() "(" (identifier) "ap" ()) ")" (;) ";" (if_statement) "if (r == NULL || !variant_json_empty_p(r->json))\n return false;\n else\n return true;" (if) "if" (parenthesized_expression) "(r == NULL || !variant_json_empty_p(r->json))" (() "(" (binary_expression) "r == NULL || !variant_json_empty_p(r->json)" (binary_expression) "r == NULL" (identifier) "r" (==) "==" (null) "NULL" (NULL) "NULL" (||) "||" (unary_expression) "!variant_json_empty_p(r->json)" (!) "!" (call_expression) "variant_json_empty_p(r->json)" (identifier) "variant_json_empty_p" (argument_list) "(r->json)" (() "(" (field_expression) "r->json" (identifier) "r" (->) "->" (field_identifier) "json" ()) ")" ()) ")" (return_statement) "return false;" (return) "return" (false) "false" (;) ";" (else_clause) "else\n return true;" (else) "else" (return_statement) "return true;" (return) "return" (true) "true" (;) ";" (}) "}" (function_definition) "const char *json_get_string(mjson_t p, ...)\n{\n va_list ap;\n va_start(ap, p);\n mjson_t r = json_get_field(p, ap);\n va_end(ap);\n if (r == NULL || !variant_json_string_p(r->json))\n return NULL;\n else\n return string_get_cstr(*variant_json_get_string(r->json));\n}" (type_qualifier) "const" (const) "const" (primitive_type) "char" (pointer_declarator) "*json_get_string(mjson_t p, ...)" (*) "*" (function_declarator) "json_get_string(mjson_t p, ...)" (identifier) "json_get_string" (parameter_list) "(mjson_t p, ...)" (() "(" (parameter_declaration) "mjson_t p" (type_identifier) "mjson_t" (identifier) "p" (,) "," (variadic_parameter) "..." (...) "..." ()) ")" (compound_statement) "{\n va_list ap;\n va_start(ap, p);\n mjson_t r = json_get_field(p, ap);\n va_end(ap);\n if (r == NULL || !variant_json_string_p(r->json))\n return NULL;\n else\n return string_get_cstr(*variant_json_get_string(r->json));\n}" ({) "{" (declaration) "va_list ap;" (type_identifier) "va_list" (identifier) "ap" (;) ";" (expression_statement) "va_start(ap, p);" (call_expression) "va_start(ap, p)" (identifier) "va_start" (argument_list) "(ap, p)" (() "(" (identifier) "ap" (,) "," (identifier) "p" ()) ")" (;) ";" (declaration) "mjson_t r = json_get_field(p, ap);" (type_identifier) "mjson_t" (init_declarator) "r = json_get_field(p, ap)" (identifier) "r" (=) "=" (call_expression) "json_get_field(p, ap)" (identifier) "json_get_field" (argument_list) "(p, ap)" (() "(" (identifier) "p" (,) "," (identifier) "ap" ()) ")" (;) ";" (expression_statement) "va_end(ap);" (call_expression) "va_end(ap)" (identifier) "va_end" (argument_list) "(ap)" (() "(" (identifier) "ap" ()) ")" (;) ";" (if_statement) "if (r == NULL || !variant_json_string_p(r->json))\n return NULL;\n else\n return string_get_cstr(*variant_json_get_string(r->json));" (if) "if" (parenthesized_expression) "(r == NULL || !variant_json_string_p(r->json))" (() "(" (binary_expression) "r == NULL || !variant_json_string_p(r->json)" (binary_expression) "r == NULL" (identifier) "r" (==) "==" (null) "NULL" (NULL) "NULL" (||) "||" (unary_expression) "!variant_json_string_p(r->json)" (!) "!" (call_expression) "variant_json_string_p(r->json)" (identifier) "variant_json_string_p" (argument_list) "(r->json)" (() "(" (field_expression) "r->json" (identifier) "r" (->) "->" (field_identifier) "json" ()) ")" ()) ")" (return_statement) "return NULL;" (return) "return" (null) "NULL" (NULL) "NULL" (;) ";" (else_clause) "else\n return string_get_cstr(*variant_json_get_string(r->json));" (else) "else" (return_statement) "return string_get_cstr(*variant_json_get_string(r->json));" (return) "return" (call_expression) "string_get_cstr(*variant_json_get_string(r->json))" (identifier) "string_get_cstr" (argument_list) "(*variant_json_get_string(r->json))" (() "(" (pointer_expression) "*variant_json_get_string(r->json)" (*) "*" (call_expression) "variant_json_get_string(r->json)" (identifier) "variant_json_get_string" (argument_list) "(r->json)" (() "(" (field_expression) "r->json" (identifier) "r" (->) "->" (field_identifier) "json" ()) ")" ()) ")" (;) ";" (}) "}"
2,564
3
{"language": "c", "success": true, "metadata": {"lines": 251, "avg_line_length": 30.77, "nodes": 1580, "errors": 0, "source_hash": "c1659ae525f5a802c6b6a90c2ab8c1b47ac2a1908a61ed49532556fc067d55c7", "categorized_nodes": 1068}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#include <stdio.h>\n", "parent": null, "children": [1, 2], "start_point": {"row": 24, "column": 0}, "end_point": {"row": 25, "column": 0}}, {"id": 1, "type": "#include", "text": "#include", "parent": 0, "children": [], "start_point": {"row": 24, "column": 0}, "end_point": {"row": 24, "column": 8}}, {"id": 2, "type": "system_lib_string", "text": "<stdio.h>", "parent": 0, "children": [], "start_point": {"row": 24, "column": 9}, "end_point": {"row": 24, "column": 18}}, {"id": 3, "type": "preproc_include", "text": "#include <ctype.h>\n", "parent": null, "children": [4, 5], "start_point": {"row": 25, "column": 0}, "end_point": {"row": 26, "column": 0}}, {"id": 4, "type": "#include", "text": "#include", "parent": 3, "children": [], "start_point": {"row": 25, "column": 0}, "end_point": {"row": 25, "column": 8}}, {"id": 5, "type": "system_lib_string", "text": "<ctype.h>", "parent": 3, "children": [], "start_point": {"row": 25, "column": 9}, "end_point": {"row": 25, "column": 18}}, {"id": 6, "type": "preproc_include", "text": "#include <math.h>\n", "parent": null, "children": [7, 8], "start_point": {"row": 26, "column": 0}, "end_point": {"row": 27, "column": 0}}, {"id": 7, "type": "#include", "text": "#include", "parent": 6, "children": [], "start_point": {"row": 26, "column": 0}, "end_point": {"row": 26, "column": 8}}, {"id": 8, "type": "system_lib_string", "text": "<math.h>", "parent": 6, "children": [], "start_point": {"row": 26, "column": 9}, "end_point": {"row": 26, "column": 17}}, {"id": 9, "type": "preproc_include", "text": "#include <stdarg.h>\n", "parent": null, "children": [10, 11], "start_point": {"row": 27, "column": 0}, "end_point": {"row": 28, "column": 0}}, {"id": 10, "type": "#include", "text": "#include", "parent": 9, "children": [], "start_point": {"row": 27, "column": 0}, "end_point": {"row": 27, "column": 8}}, {"id": 11, "type": "system_lib_string", "text": "<stdarg.h>", "parent": 9, "children": [], "start_point": {"row": 27, "column": 9}, "end_point": {"row": 27, "column": 19}}, {"id": 12, "type": "preproc_include", "text": "#include \"m-array.h\"\n", "parent": null, "children": [13, 14], "start_point": {"row": 29, "column": 0}, "end_point": {"row": 30, "column": 0}}, {"id": 13, "type": "#include", "text": "#include", "parent": 12, "children": [], "start_point": {"row": 29, "column": 0}, "end_point": {"row": 29, "column": 8}}, {"id": 14, "type": "string_literal", "text": "\"m-array.h\"", "parent": 12, "children": [], "start_point": {"row": 29, "column": 9}, "end_point": {"row": 29, "column": 20}}, {"id": 15, "type": "preproc_include", "text": "#include \"m-dict.h\"\n", "parent": null, "children": [16, 17], "start_point": {"row": 30, "column": 0}, "end_point": {"row": 31, "column": 0}}, {"id": 16, "type": "#include", "text": "#include", "parent": 15, "children": [], "start_point": {"row": 30, "column": 0}, "end_point": {"row": 30, "column": 8}}, {"id": 17, "type": "string_literal", "text": "\"m-dict.h\"", "parent": 15, "children": [], "start_point": {"row": 30, "column": 9}, "end_point": {"row": 30, "column": 19}}, {"id": 18, "type": "preproc_include", "text": "#include \"m-string.h\"\n", "parent": null, "children": [19, 20], "start_point": {"row": 31, "column": 0}, "end_point": {"row": 32, "column": 0}}, {"id": 19, "type": "#include", "text": "#include", "parent": 18, "children": [], "start_point": {"row": 31, "column": 0}, "end_point": {"row": 31, "column": 8}}, {"id": 20, "type": "string_literal", "text": "\"m-string.h\"", "parent": 18, "children": [], "start_point": {"row": 31, "column": 9}, "end_point": {"row": 31, "column": 21}}, {"id": 21, "type": "preproc_include", "text": "#include \"m-variant.h\"\n", "parent": null, "children": [22, 23], "start_point": {"row": 32, "column": 0}, "end_point": {"row": 33, "column": 0}}, {"id": 22, "type": "#include", "text": "#include", "parent": 21, "children": [], "start_point": {"row": 32, "column": 0}, "end_point": {"row": 32, "column": 8}}, {"id": 23, "type": "string_literal", "text": "\"m-variant.h\"", "parent": 21, "children": [], "start_point": {"row": 32, "column": 9}, "end_point": {"row": 32, "column": 22}}, {"id": 24, "type": "preproc_include", "text": "#include \"mjsonlib.h\"\n", "parent": null, "children": [25, 26], "start_point": {"row": 34, "column": 0}, "end_point": {"row": 35, "column": 0}}, {"id": 25, "type": "#include", "text": "#include", "parent": 24, "children": [], "start_point": {"row": 34, "column": 0}, "end_point": {"row": 34, "column": 8}}, {"id": 26, "type": "string_literal", "text": "\"mjsonlib.h\"", "parent": 24, "children": [], "start_point": {"row": 34, "column": 9}, "end_point": {"row": 34, "column": 21}}, {"id": 27, "type": "function_definition", "text": "static inline void boolean_out_str(FILE *f, bool b)\n{\n fprintf(f, b ? \"true\" : \"false\");\n}", "parent": null, "children": [28, 30, 31], "start_point": {"row": 37, "column": 0}, "end_point": {"row": 40, "column": 1}}, {"id": 28, "type": "storage_class_specifier", "text": "inline", "parent": 27, "children": [29], "start_point": {"row": 37, "column": 7}, "end_point": {"row": 37, "column": 13}}, {"id": 29, "type": "inline", "text": "inline", "parent": 28, "children": [], "start_point": {"row": 37, "column": 7}, "end_point": {"row": 37, "column": 13}}, {"id": 30, "type": "primitive_type", "text": "void", "parent": 27, "children": [], "start_point": {"row": 37, "column": 14}, "end_point": {"row": 37, "column": 18}}, {"id": 31, "type": "function_declarator", "text": "boolean_out_str(FILE *f, bool b)", "parent": 27, "children": [32, 33], "start_point": {"row": 37, "column": 19}, "end_point": {"row": 37, "column": 51}}, {"id": 32, "type": "identifier", "text": "boolean_out_str", "parent": 31, "children": [], "start_point": {"row": 37, "column": 19}, "end_point": {"row": 37, "column": 34}}, {"id": 33, "type": "parameter_list", "text": "(FILE *f, bool b)", "parent": 31, "children": [34, 39], "start_point": {"row": 37, "column": 34}, "end_point": {"row": 37, "column": 51}}, {"id": 34, "type": "parameter_declaration", "text": "FILE *f", "parent": 33, "children": [35, 36], "start_point": {"row": 37, "column": 35}, "end_point": {"row": 37, "column": 42}}, {"id": 35, "type": "type_identifier", "text": "FILE", "parent": 34, "children": [], "start_point": {"row": 37, "column": 35}, "end_point": {"row": 37, "column": 39}}, {"id": 36, "type": "pointer_declarator", "text": "*f", "parent": 34, "children": [37, 38], "start_point": {"row": 37, "column": 40}, "end_point": {"row": 37, "column": 42}}, {"id": 37, "type": "*", "text": "*", "parent": 36, "children": [], "start_point": {"row": 37, "column": 40}, "end_point": {"row": 37, "column": 41}}, {"id": 38, "type": "identifier", "text": "f", "parent": 36, "children": [], "start_point": {"row": 37, "column": 41}, "end_point": {"row": 37, "column": 42}}, {"id": 39, "type": "parameter_declaration", "text": "bool b", "parent": 33, "children": [40, 41], "start_point": {"row": 37, "column": 44}, "end_point": {"row": 37, "column": 50}}, {"id": 40, "type": "primitive_type", "text": "bool", "parent": 39, "children": [], "start_point": {"row": 37, "column": 44}, "end_point": {"row": 37, "column": 48}}, {"id": 41, "type": "identifier", "text": "b", "parent": 39, "children": [], "start_point": {"row": 37, "column": 49}, "end_point": {"row": 37, "column": 50}}, {"id": 42, "type": "call_expression", "text": "fprintf(f, b ? \"true\" : \"false\")", "parent": 27, "children": [43, 44], "start_point": {"row": 39, "column": 2}, "end_point": {"row": 39, "column": 34}}, {"id": 43, "type": "identifier", "text": "fprintf", "parent": 42, "children": [], "start_point": {"row": 39, "column": 2}, "end_point": {"row": 39, "column": 9}}, {"id": 44, "type": "argument_list", "text": "(f, b ? \"true\" : \"false\")", "parent": 42, "children": [45, 46], "start_point": {"row": 39, "column": 9}, "end_point": {"row": 39, "column": 34}}, {"id": 45, "type": "identifier", "text": "f", "parent": 44, "children": [], "start_point": {"row": 39, "column": 10}, "end_point": {"row": 39, "column": 11}}, {"id": 46, "type": "conditional_expression", "text": "b ? \"true\" : \"false\"", "parent": 44, "children": [47, 48, 49, 50], "start_point": {"row": 39, "column": 13}, "end_point": {"row": 39, "column": 33}}, {"id": 47, "type": "identifier", "text": "b", "parent": 46, "children": [], "start_point": {"row": 39, "column": 13}, "end_point": {"row": 39, "column": 14}}, {"id": 48, "type": "?", "text": "?", "parent": 46, "children": [], "start_point": {"row": 39, "column": 15}, "end_point": {"row": 39, "column": 16}}, {"id": 49, "type": "string_literal", "text": "\"true\"", "parent": 46, "children": [], "start_point": {"row": 39, "column": 17}, "end_point": {"row": 39, "column": 23}}, {"id": 50, "type": "string_literal", "text": "\"false\"", "parent": 46, "children": [], "start_point": {"row": 39, "column": 26}, "end_point": {"row": 39, "column": 33}}, {"id": 51, "type": "function_definition", "text": "static inline bool boolean_in_str(bool *b, FILE *f)\n{\n char c = fgetc(f);\n if (c == 't') {\n *b = true;\n c = fgetc(f);\n if (c != 'r') return false;\n c = fgetc(f);\n if (c != 'u') return false;\n c = fgetc(f);\n return c == 'e';\n } else if (c == 'f') {\n *b = false;\n c = fgetc(f);\n if (c != 'a') return false;\n c = fgetc(f);\n if (c != 'l') return false;\n c = fgetc(f);\n if (c != 's') return false;\n c = fgetc(f);\n return c == 'e';\n } else {\n return false;\n }\n}", "parent": null, "children": [52, 54, 55], "start_point": {"row": 42, "column": 0}, "end_point": {"row": 66, "column": 1}}, {"id": 52, "type": "storage_class_specifier", "text": "inline", "parent": 51, "children": [53], "start_point": {"row": 42, "column": 7}, "end_point": {"row": 42, "column": 13}}, {"id": 53, "type": "inline", "text": "inline", "parent": 52, "children": [], "start_point": {"row": 42, "column": 7}, "end_point": {"row": 42, "column": 13}}, {"id": 54, "type": "primitive_type", "text": "bool", "parent": 51, "children": [], "start_point": {"row": 42, "column": 14}, "end_point": {"row": 42, "column": 18}}, {"id": 55, "type": "function_declarator", "text": "boolean_in_str(bool *b, FILE *f)", "parent": 51, "children": [56, 57], "start_point": {"row": 42, "column": 19}, "end_point": {"row": 42, "column": 51}}, {"id": 56, "type": "identifier", "text": "boolean_in_str", "parent": 55, "children": [], "start_point": {"row": 42, "column": 19}, "end_point": {"row": 42, "column": 33}}, {"id": 57, "type": "parameter_list", "text": "(bool *b, FILE *f)", "parent": 55, "children": [58, 63], "start_point": {"row": 42, "column": 33}, "end_point": {"row": 42, "column": 51}}, {"id": 58, "type": "parameter_declaration", "text": "bool *b", "parent": 57, "children": [59, 60], "start_point": {"row": 42, "column": 34}, "end_point": {"row": 42, "column": 41}}, {"id": 59, "type": "primitive_type", "text": "bool", "parent": 58, "children": [], "start_point": {"row": 42, "column": 34}, "end_point": {"row": 42, "column": 38}}, {"id": 60, "type": "pointer_declarator", "text": "*b", "parent": 58, "children": [61, 62], "start_point": {"row": 42, "column": 39}, "end_point": {"row": 42, "column": 41}}, {"id": 61, "type": "*", "text": "*", "parent": 60, "children": [], "start_point": {"row": 42, "column": 39}, "end_point": {"row": 42, "column": 40}}, {"id": 62, "type": "identifier", "text": "b", "parent": 60, "children": [], "start_point": {"row": 42, "column": 40}, "end_point": {"row": 42, "column": 41}}, {"id": 63, "type": "parameter_declaration", "text": "FILE *f", "parent": 57, "children": [64, 65], "start_point": {"row": 42, "column": 43}, "end_point": {"row": 42, "column": 50}}, {"id": 64, "type": "type_identifier", "text": "FILE", "parent": 63, "children": [], "start_point": {"row": 42, "column": 43}, "end_point": {"row": 42, "column": 47}}, {"id": 65, "type": "pointer_declarator", "text": "*f", "parent": 63, "children": [66, 67], "start_point": {"row": 42, "column": 48}, "end_point": {"row": 42, "column": 50}}, {"id": 66, "type": "*", "text": "*", "parent": 65, "children": [], "start_point": {"row": 42, "column": 48}, "end_point": {"row": 42, "column": 49}}, {"id": 67, "type": "identifier", "text": "f", "parent": 65, "children": [], "start_point": {"row": 42, "column": 49}, "end_point": {"row": 42, "column": 50}}, {"id": 68, "type": "declaration", "text": "char c = fgetc(f);", "parent": 51, "children": [69, 70], "start_point": {"row": 44, "column": 2}, "end_point": {"row": 44, "column": 20}}, {"id": 69, "type": "primitive_type", "text": "char", "parent": 68, "children": [], "start_point": {"row": 44, "column": 2}, "end_point": {"row": 44, "column": 6}}, {"id": 70, "type": "init_declarator", "text": "c = fgetc(f)", "parent": 68, "children": [71, 72, 73], "start_point": {"row": 44, "column": 7}, "end_point": {"row": 44, "column": 19}}, {"id": 71, "type": "identifier", "text": "c", "parent": 70, "children": [], "start_point": {"row": 44, "column": 7}, "end_point": {"row": 44, "column": 8}}, {"id": 72, "type": "=", "text": "=", "parent": 70, "children": [], "start_point": {"row": 44, "column": 9}, "end_point": {"row": 44, "column": 10}}, {"id": 73, "type": "call_expression", "text": "fgetc(f)", "parent": 70, "children": [74, 75], "start_point": {"row": 44, "column": 11}, "end_point": {"row": 44, "column": 19}}, {"id": 74, "type": "identifier", "text": "fgetc", "parent": 73, "children": [], "start_point": {"row": 44, "column": 11}, "end_point": {"row": 44, "column": 16}}, {"id": 75, "type": "argument_list", "text": "(f)", "parent": 73, "children": [76], "start_point": {"row": 44, "column": 16}, "end_point": {"row": 44, "column": 19}}, {"id": 76, "type": "identifier", "text": "f", "parent": 75, "children": [], "start_point": {"row": 44, "column": 17}, "end_point": {"row": 44, "column": 18}}, {"id": 77, "type": "if_statement", "text": "if (c == 't') {\n *b = true;\n c = fgetc(f);\n if (c != 'r') return false;\n c = fgetc(f);\n if (c != 'u') return false;\n c = fgetc(f);\n return c == 'e';\n } else if (c == 'f') {\n *b = false;\n c = fgetc(f);\n if (c != 'a') return false;\n c = fgetc(f);\n if (c != 'l') return false;\n c = fgetc(f);\n if (c != 's') return false;\n c = fgetc(f);\n return c == 'e';\n } else {\n return false;\n }", "parent": 51, "children": [78, 143], "start_point": {"row": 45, "column": 2}, "end_point": {"row": 65, "column": 3}}, {"id": 78, "type": "parenthesized_expression", "text": "(c == 't')", "parent": 77, "children": [79], "start_point": {"row": 45, "column": 5}, "end_point": {"row": 45, "column": 15}}, {"id": 79, "type": "binary_expression", "text": "c == 't'", "parent": 78, "children": [80, 81, 82], "start_point": {"row": 45, "column": 6}, "end_point": {"row": 45, "column": 14}}, {"id": 80, "type": "identifier", "text": "c", "parent": 79, "children": [], "start_point": {"row": 45, "column": 6}, "end_point": {"row": 45, "column": 7}}, {"id": 81, "type": "==", "text": "==", "parent": 79, "children": [], "start_point": {"row": 45, "column": 8}, "end_point": {"row": 45, "column": 10}}, {"id": 82, "type": "char_literal", "text": "'t'", "parent": 79, "children": [83, 84, 85], "start_point": {"row": 45, "column": 11}, "end_point": {"row": 45, "column": 14}}, {"id": 83, "type": "'", "text": "'", "parent": 82, "children": [], "start_point": {"row": 45, "column": 11}, "end_point": {"row": 45, "column": 12}}, {"id": 84, "type": "character", "text": "t", "parent": 82, "children": [], "start_point": {"row": 45, "column": 12}, "end_point": {"row": 45, "column": 13}}, {"id": 85, "type": "'", "text": "'", "parent": 82, "children": [], "start_point": {"row": 45, "column": 13}, "end_point": {"row": 45, "column": 14}}, {"id": 86, "type": "assignment_expression", "text": "*b = true", "parent": 77, "children": [87, 90, 91], "start_point": {"row": 46, "column": 4}, "end_point": {"row": 46, "column": 13}}, {"id": 87, "type": "pointer_expression", "text": "*b", "parent": 86, "children": [88, 89], "start_point": {"row": 46, "column": 4}, "end_point": {"row": 46, "column": 6}}, {"id": 88, "type": "*", "text": "*", "parent": 87, "children": [], "start_point": {"row": 46, "column": 4}, "end_point": {"row": 46, "column": 5}}, {"id": 89, "type": "identifier", "text": "b", "parent": 87, "children": [], "start_point": {"row": 46, "column": 5}, "end_point": {"row": 46, "column": 6}}, {"id": 90, "type": "=", "text": "=", "parent": 86, "children": [], "start_point": {"row": 46, "column": 7}, "end_point": {"row": 46, "column": 8}}, {"id": 91, "type": "true", "text": "true", "parent": 86, "children": [], "start_point": {"row": 46, "column": 9}, "end_point": {"row": 46, "column": 13}}, {"id": 92, "type": "assignment_expression", "text": "c = fgetc(f)", "parent": 77, "children": [93, 94, 95], "start_point": {"row": 47, "column": 4}, "end_point": {"row": 47, "column": 16}}, {"id": 93, "type": "identifier", "text": "c", "parent": 92, "children": [], "start_point": {"row": 47, "column": 4}, "end_point": {"row": 47, "column": 5}}, {"id": 94, "type": "=", "text": "=", "parent": 92, "children": [], "start_point": {"row": 47, "column": 6}, "end_point": {"row": 47, "column": 7}}, {"id": 95, "type": "call_expression", "text": "fgetc(f)", "parent": 92, "children": [96, 97], "start_point": {"row": 47, "column": 8}, "end_point": {"row": 47, "column": 16}}, {"id": 96, "type": "identifier", "text": "fgetc", "parent": 95, "children": [], "start_point": {"row": 47, "column": 8}, "end_point": {"row": 47, "column": 13}}, {"id": 97, "type": "argument_list", "text": "(f)", "parent": 95, "children": [98], "start_point": {"row": 47, "column": 13}, "end_point": {"row": 47, "column": 16}}, {"id": 98, "type": "identifier", "text": "f", "parent": 97, "children": [], "start_point": {"row": 47, "column": 14}, "end_point": {"row": 47, "column": 15}}, {"id": 99, "type": "if_statement", "text": "if (c != 'r') return false;", "parent": 77, "children": [100, 108], "start_point": {"row": 48, "column": 4}, "end_point": {"row": 48, "column": 31}}, {"id": 100, "type": "parenthesized_expression", "text": "(c != 'r')", "parent": 99, "children": [101], "start_point": {"row": 48, "column": 7}, "end_point": {"row": 48, "column": 17}}, {"id": 101, "type": "binary_expression", "text": "c != 'r'", "parent": 100, "children": [102, 103, 104], "start_point": {"row": 48, "column": 8}, "end_point": {"row": 48, "column": 16}}, {"id": 102, "type": "identifier", "text": "c", "parent": 101, "children": [], "start_point": {"row": 48, "column": 8}, "end_point": {"row": 48, "column": 9}}, {"id": 103, "type": "!=", "text": "!=", "parent": 101, "children": [], "start_point": {"row": 48, "column": 10}, "end_point": {"row": 48, "column": 12}}, {"id": 104, "type": "char_literal", "text": "'r'", "parent": 101, "children": [105, 106, 107], "start_point": {"row": 48, "column": 13}, "end_point": {"row": 48, "column": 16}}, {"id": 105, "type": "'", "text": "'", "parent": 104, "children": [], "start_point": {"row": 48, "column": 13}, "end_point": {"row": 48, "column": 14}}, {"id": 106, "type": "character", "text": "r", "parent": 104, "children": [], "start_point": {"row": 48, "column": 14}, "end_point": {"row": 48, "column": 15}}, {"id": 107, "type": "'", "text": "'", "parent": 104, "children": [], "start_point": {"row": 48, "column": 15}, "end_point": {"row": 48, "column": 16}}, {"id": 108, "type": "return_statement", "text": "return false;", "parent": 99, "children": [109], "start_point": {"row": 48, "column": 18}, "end_point": {"row": 48, "column": 31}}, {"id": 109, "type": "false", "text": "false", "parent": 108, "children": [], "start_point": {"row": 48, "column": 25}, "end_point": {"row": 48, "column": 30}}, {"id": 110, "type": "assignment_expression", "text": "c = fgetc(f)", "parent": 77, "children": [111, 112, 113], "start_point": {"row": 49, "column": 4}, "end_point": {"row": 49, "column": 16}}, {"id": 111, "type": "identifier", "text": "c", "parent": 110, "children": [], "start_point": {"row": 49, "column": 4}, "end_point": {"row": 49, "column": 5}}, {"id": 112, "type": "=", "text": "=", "parent": 110, "children": [], "start_point": {"row": 49, "column": 6}, "end_point": {"row": 49, "column": 7}}, {"id": 113, "type": "call_expression", "text": "fgetc(f)", "parent": 110, "children": [114, 115], "start_point": {"row": 49, "column": 8}, "end_point": {"row": 49, "column": 16}}, {"id": 114, "type": "identifier", "text": "fgetc", "parent": 113, "children": [], "start_point": {"row": 49, "column": 8}, "end_point": {"row": 49, "column": 13}}, {"id": 115, "type": "argument_list", "text": "(f)", "parent": 113, "children": [116], "start_point": {"row": 49, "column": 13}, "end_point": {"row": 49, "column": 16}}, {"id": 116, "type": "identifier", "text": "f", "parent": 115, "children": [], "start_point": {"row": 49, "column": 14}, "end_point": {"row": 49, "column": 15}}, {"id": 117, "type": "if_statement", "text": "if (c != 'u') return false;", "parent": 77, "children": [118, 126], "start_point": {"row": 50, "column": 4}, "end_point": {"row": 50, "column": 31}}, {"id": 118, "type": "parenthesized_expression", "text": "(c != 'u')", "parent": 117, "children": [119], "start_point": {"row": 50, "column": 7}, "end_point": {"row": 50, "column": 17}}, {"id": 119, "type": "binary_expression", "text": "c != 'u'", "parent": 118, "children": [120, 121, 122], "start_point": {"row": 50, "column": 8}, "end_point": {"row": 50, "column": 16}}, {"id": 120, "type": "identifier", "text": "c", "parent": 119, "children": [], "start_point": {"row": 50, "column": 8}, "end_point": {"row": 50, "column": 9}}, {"id": 121, "type": "!=", "text": "!=", "parent": 119, "children": [], "start_point": {"row": 50, "column": 10}, "end_point": {"row": 50, "column": 12}}, {"id": 122, "type": "char_literal", "text": "'u'", "parent": 119, "children": [123, 124, 125], "start_point": {"row": 50, "column": 13}, "end_point": {"row": 50, "column": 16}}, {"id": 123, "type": "'", "text": "'", "parent": 122, "children": [], "start_point": {"row": 50, "column": 13}, "end_point": {"row": 50, "column": 14}}, {"id": 124, "type": "character", "text": "u", "parent": 122, "children": [], "start_point": {"row": 50, "column": 14}, "end_point": {"row": 50, "column": 15}}, {"id": 125, "type": "'", "text": "'", "parent": 122, "children": [], "start_point": {"row": 50, "column": 15}, "end_point": {"row": 50, "column": 16}}, {"id": 126, "type": "return_statement", "text": "return false;", "parent": 117, "children": [127], "start_point": {"row": 50, "column": 18}, "end_point": {"row": 50, "column": 31}}, {"id": 127, "type": "false", "text": "false", "parent": 126, "children": [], "start_point": {"row": 50, "column": 25}, "end_point": {"row": 50, "column": 30}}, {"id": 128, "type": "assignment_expression", "text": "c = fgetc(f)", "parent": 77, "children": [129, 130, 131], "start_point": {"row": 51, "column": 4}, "end_point": {"row": 51, "column": 16}}, {"id": 129, "type": "identifier", "text": "c", "parent": 128, "children": [], "start_point": {"row": 51, "column": 4}, "end_point": {"row": 51, "column": 5}}, {"id": 130, "type": "=", "text": "=", "parent": 128, "children": [], "start_point": {"row": 51, "column": 6}, "end_point": {"row": 51, "column": 7}}, {"id": 131, "type": "call_expression", "text": "fgetc(f)", "parent": 128, "children": [132, 133], "start_point": {"row": 51, "column": 8}, "end_point": {"row": 51, "column": 16}}, {"id": 132, "type": "identifier", "text": "fgetc", "parent": 131, "children": [], "start_point": {"row": 51, "column": 8}, "end_point": {"row": 51, "column": 13}}, {"id": 133, "type": "argument_list", "text": "(f)", "parent": 131, "children": [134], "start_point": {"row": 51, "column": 13}, "end_point": {"row": 51, "column": 16}}, {"id": 134, "type": "identifier", "text": "f", "parent": 133, "children": [], "start_point": {"row": 51, "column": 14}, "end_point": {"row": 51, "column": 15}}, {"id": 135, "type": "return_statement", "text": "return c == 'e';", "parent": 77, "children": [136], "start_point": {"row": 52, "column": 4}, "end_point": {"row": 52, "column": 20}}, {"id": 136, "type": "binary_expression", "text": "c == 'e'", "parent": 135, "children": [137, 138, 139], "start_point": {"row": 52, "column": 11}, "end_point": {"row": 52, "column": 19}}, {"id": 137, "type": "identifier", "text": "c", "parent": 136, "children": [], "start_point": {"row": 52, "column": 11}, "end_point": {"row": 52, "column": 12}}, {"id": 138, "type": "==", "text": "==", "parent": 136, "children": [], "start_point": {"row": 52, "column": 13}, "end_point": {"row": 52, "column": 15}}, {"id": 139, "type": "char_literal", "text": "'e'", "parent": 136, "children": [140, 141, 142], "start_point": {"row": 52, "column": 16}, "end_point": {"row": 52, "column": 19}}, {"id": 140, "type": "'", "text": "'", "parent": 139, "children": [], "start_point": {"row": 52, "column": 16}, "end_point": {"row": 52, "column": 17}}, {"id": 141, "type": "character", "text": "e", "parent": 139, "children": [], "start_point": {"row": 52, "column": 17}, "end_point": {"row": 52, "column": 18}}, {"id": 142, "type": "'", "text": "'", "parent": 139, "children": [], "start_point": {"row": 52, "column": 18}, "end_point": {"row": 52, "column": 19}}, {"id": 143, "type": "else_clause", "text": "else if (c == 'f') {\n *b = false;\n c = fgetc(f);\n if (c != 'a') return false;\n c = fgetc(f);\n if (c != 'l') return false;\n c = fgetc(f);\n if (c != 's') return false;\n c = fgetc(f);\n return c == 'e';\n } else {\n return false;\n }", "parent": 77, "children": [144], "start_point": {"row": 53, "column": 4}, "end_point": {"row": 65, "column": 3}}, {"id": 144, "type": "if_statement", "text": "if (c == 'f') {\n *b = false;\n c = fgetc(f);\n if (c != 'a') return false;\n c = fgetc(f);\n if (c != 'l') return false;\n c = fgetc(f);\n if (c != 's') return false;\n c = fgetc(f);\n return c == 'e';\n } else {\n return false;\n }", "parent": 143, "children": [145, 228], "start_point": {"row": 53, "column": 9}, "end_point": {"row": 65, "column": 3}}, {"id": 145, "type": "parenthesized_expression", "text": "(c == 'f')", "parent": 144, "children": [146], "start_point": {"row": 53, "column": 12}, "end_point": {"row": 53, "column": 22}}, {"id": 146, "type": "binary_expression", "text": "c == 'f'", "parent": 145, "children": [147, 148, 149], "start_point": {"row": 53, "column": 13}, "end_point": {"row": 53, "column": 21}}, {"id": 147, "type": "identifier", "text": "c", "parent": 146, "children": [], "start_point": {"row": 53, "column": 13}, "end_point": {"row": 53, "column": 14}}, {"id": 148, "type": "==", "text": "==", "parent": 146, "children": [], "start_point": {"row": 53, "column": 15}, "end_point": {"row": 53, "column": 17}}, {"id": 149, "type": "char_literal", "text": "'f'", "parent": 146, "children": [150, 151, 152], "start_point": {"row": 53, "column": 18}, "end_point": {"row": 53, "column": 21}}, {"id": 150, "type": "'", "text": "'", "parent": 149, "children": [], "start_point": {"row": 53, "column": 18}, "end_point": {"row": 53, "column": 19}}, {"id": 151, "type": "character", "text": "f", "parent": 149, "children": [], "start_point": {"row": 53, "column": 19}, "end_point": {"row": 53, "column": 20}}, {"id": 152, "type": "'", "text": "'", "parent": 149, "children": [], "start_point": {"row": 53, "column": 20}, "end_point": {"row": 53, "column": 21}}, {"id": 153, "type": "assignment_expression", "text": "*b = false", "parent": 144, "children": [154, 157, 158], "start_point": {"row": 54, "column": 4}, "end_point": {"row": 54, "column": 14}}, {"id": 154, "type": "pointer_expression", "text": "*b", "parent": 153, "children": [155, 156], "start_point": {"row": 54, "column": 4}, "end_point": {"row": 54, "column": 6}}, {"id": 155, "type": "*", "text": "*", "parent": 154, "children": [], "start_point": {"row": 54, "column": 4}, "end_point": {"row": 54, "column": 5}}, {"id": 156, "type": "identifier", "text": "b", "parent": 154, "children": [], "start_point": {"row": 54, "column": 5}, "end_point": {"row": 54, "column": 6}}, {"id": 157, "type": "=", "text": "=", "parent": 153, "children": [], "start_point": {"row": 54, "column": 7}, "end_point": {"row": 54, "column": 8}}, {"id": 158, "type": "false", "text": "false", "parent": 153, "children": [], "start_point": {"row": 54, "column": 9}, "end_point": {"row": 54, "column": 14}}, {"id": 159, "type": "assignment_expression", "text": "c = fgetc(f)", "parent": 144, "children": [160, 161, 162], "start_point": {"row": 55, "column": 4}, "end_point": {"row": 55, "column": 16}}, {"id": 160, "type": "identifier", "text": "c", "parent": 159, "children": [], "start_point": {"row": 55, "column": 4}, "end_point": {"row": 55, "column": 5}}, {"id": 161, "type": "=", "text": "=", "parent": 159, "children": [], "start_point": {"row": 55, "column": 6}, "end_point": {"row": 55, "column": 7}}, {"id": 162, "type": "call_expression", "text": "fgetc(f)", "parent": 159, "children": [163, 164], "start_point": {"row": 55, "column": 8}, "end_point": {"row": 55, "column": 16}}, {"id": 163, "type": "identifier", "text": "fgetc", "parent": 162, "children": [], "start_point": {"row": 55, "column": 8}, "end_point": {"row": 55, "column": 13}}, {"id": 164, "type": "argument_list", "text": "(f)", "parent": 162, "children": [165], "start_point": {"row": 55, "column": 13}, "end_point": {"row": 55, "column": 16}}, {"id": 165, "type": "identifier", "text": "f", "parent": 164, "children": [], "start_point": {"row": 55, "column": 14}, "end_point": {"row": 55, "column": 15}}, {"id": 166, "type": "if_statement", "text": "if (c != 'a') return false;", "parent": 144, "children": [167, 175], "start_point": {"row": 56, "column": 4}, "end_point": {"row": 56, "column": 31}}, {"id": 167, "type": "parenthesized_expression", "text": "(c != 'a')", "parent": 166, "children": [168], "start_point": {"row": 56, "column": 7}, "end_point": {"row": 56, "column": 17}}, {"id": 168, "type": "binary_expression", "text": "c != 'a'", "parent": 167, "children": [169, 170, 171], "start_point": {"row": 56, "column": 8}, "end_point": {"row": 56, "column": 16}}, {"id": 169, "type": "identifier", "text": "c", "parent": 168, "children": [], "start_point": {"row": 56, "column": 8}, "end_point": {"row": 56, "column": 9}}, {"id": 170, "type": "!=", "text": "!=", "parent": 168, "children": [], "start_point": {"row": 56, "column": 10}, "end_point": {"row": 56, "column": 12}}, {"id": 171, "type": "char_literal", "text": "'a'", "parent": 168, "children": [172, 173, 174], "start_point": {"row": 56, "column": 13}, "end_point": {"row": 56, "column": 16}}, {"id": 172, "type": "'", "text": "'", "parent": 171, "children": [], "start_point": {"row": 56, "column": 13}, "end_point": {"row": 56, "column": 14}}, {"id": 173, "type": "character", "text": "a", "parent": 171, "children": [], "start_point": {"row": 56, "column": 14}, "end_point": {"row": 56, "column": 15}}, {"id": 174, "type": "'", "text": "'", "parent": 171, "children": [], "start_point": {"row": 56, "column": 15}, "end_point": {"row": 56, "column": 16}}, {"id": 175, "type": "return_statement", "text": "return false;", "parent": 166, "children": [176], "start_point": {"row": 56, "column": 18}, "end_point": {"row": 56, "column": 31}}, {"id": 176, "type": "false", "text": "false", "parent": 175, "children": [], "start_point": {"row": 56, "column": 25}, "end_point": {"row": 56, "column": 30}}, {"id": 177, "type": "assignment_expression", "text": "c = fgetc(f)", "parent": 144, "children": [178, 179, 180], "start_point": {"row": 57, "column": 4}, "end_point": {"row": 57, "column": 16}}, {"id": 178, "type": "identifier", "text": "c", "parent": 177, "children": [], "start_point": {"row": 57, "column": 4}, "end_point": {"row": 57, "column": 5}}, {"id": 179, "type": "=", "text": "=", "parent": 177, "children": [], "start_point": {"row": 57, "column": 6}, "end_point": {"row": 57, "column": 7}}, {"id": 180, "type": "call_expression", "text": "fgetc(f)", "parent": 177, "children": [181, 182], "start_point": {"row": 57, "column": 8}, "end_point": {"row": 57, "column": 16}}, {"id": 181, "type": "identifier", "text": "fgetc", "parent": 180, "children": [], "start_point": {"row": 57, "column": 8}, "end_point": {"row": 57, "column": 13}}, {"id": 182, "type": "argument_list", "text": "(f)", "parent": 180, "children": [183], "start_point": {"row": 57, "column": 13}, "end_point": {"row": 57, "column": 16}}, {"id": 183, "type": "identifier", "text": "f", "parent": 182, "children": [], "start_point": {"row": 57, "column": 14}, "end_point": {"row": 57, "column": 15}}, {"id": 184, "type": "if_statement", "text": "if (c != 'l') return false;", "parent": 144, "children": [185, 193], "start_point": {"row": 58, "column": 4}, "end_point": {"row": 58, "column": 31}}, {"id": 185, "type": "parenthesized_expression", "text": "(c != 'l')", "parent": 184, "children": [186], "start_point": {"row": 58, "column": 7}, "end_point": {"row": 58, "column": 17}}, {"id": 186, "type": "binary_expression", "text": "c != 'l'", "parent": 185, "children": [187, 188, 189], "start_point": {"row": 58, "column": 8}, "end_point": {"row": 58, "column": 16}}, {"id": 187, "type": "identifier", "text": "c", "parent": 186, "children": [], "start_point": {"row": 58, "column": 8}, "end_point": {"row": 58, "column": 9}}, {"id": 188, "type": "!=", "text": "!=", "parent": 186, "children": [], "start_point": {"row": 58, "column": 10}, "end_point": {"row": 58, "column": 12}}, {"id": 189, "type": "char_literal", "text": "'l'", "parent": 186, "children": [190, 191, 192], "start_point": {"row": 58, "column": 13}, "end_point": {"row": 58, "column": 16}}, {"id": 190, "type": "'", "text": "'", "parent": 189, "children": [], "start_point": {"row": 58, "column": 13}, "end_point": {"row": 58, "column": 14}}, {"id": 191, "type": "character", "text": "l", "parent": 189, "children": [], "start_point": {"row": 58, "column": 14}, "end_point": {"row": 58, "column": 15}}, {"id": 192, "type": "'", "text": "'", "parent": 189, "children": [], "start_point": {"row": 58, "column": 15}, "end_point": {"row": 58, "column": 16}}, {"id": 193, "type": "return_statement", "text": "return false;", "parent": 184, "children": [194], "start_point": {"row": 58, "column": 18}, "end_point": {"row": 58, "column": 31}}, {"id": 194, "type": "false", "text": "false", "parent": 193, "children": [], "start_point": {"row": 58, "column": 25}, "end_point": {"row": 58, "column": 30}}, {"id": 195, "type": "assignment_expression", "text": "c = fgetc(f)", "parent": 144, "children": [196, 197, 198], "start_point": {"row": 59, "column": 4}, "end_point": {"row": 59, "column": 16}}, {"id": 196, "type": "identifier", "text": "c", "parent": 195, "children": [], "start_point": {"row": 59, "column": 4}, "end_point": {"row": 59, "column": 5}}, {"id": 197, "type": "=", "text": "=", "parent": 195, "children": [], "start_point": {"row": 59, "column": 6}, "end_point": {"row": 59, "column": 7}}, {"id": 198, "type": "call_expression", "text": "fgetc(f)", "parent": 195, "children": [199, 200], "start_point": {"row": 59, "column": 8}, "end_point": {"row": 59, "column": 16}}, {"id": 199, "type": "identifier", "text": "fgetc", "parent": 198, "children": [], "start_point": {"row": 59, "column": 8}, "end_point": {"row": 59, "column": 13}}, {"id": 200, "type": "argument_list", "text": "(f)", "parent": 198, "children": [201], "start_point": {"row": 59, "column": 13}, "end_point": {"row": 59, "column": 16}}, {"id": 201, "type": "identifier", "text": "f", "parent": 200, "children": [], "start_point": {"row": 59, "column": 14}, "end_point": {"row": 59, "column": 15}}, {"id": 202, "type": "if_statement", "text": "if (c != 's') return false;", "parent": 144, "children": [203, 211], "start_point": {"row": 60, "column": 4}, "end_point": {"row": 60, "column": 31}}, {"id": 203, "type": "parenthesized_expression", "text": "(c != 's')", "parent": 202, "children": [204], "start_point": {"row": 60, "column": 7}, "end_point": {"row": 60, "column": 17}}, {"id": 204, "type": "binary_expression", "text": "c != 's'", "parent": 203, "children": [205, 206, 207], "start_point": {"row": 60, "column": 8}, "end_point": {"row": 60, "column": 16}}, {"id": 205, "type": "identifier", "text": "c", "parent": 204, "children": [], "start_point": {"row": 60, "column": 8}, "end_point": {"row": 60, "column": 9}}, {"id": 206, "type": "!=", "text": "!=", "parent": 204, "children": [], "start_point": {"row": 60, "column": 10}, "end_point": {"row": 60, "column": 12}}, {"id": 207, "type": "char_literal", "text": "'s'", "parent": 204, "children": [208, 209, 210], "start_point": {"row": 60, "column": 13}, "end_point": {"row": 60, "column": 16}}, {"id": 208, "type": "'", "text": "'", "parent": 207, "children": [], "start_point": {"row": 60, "column": 13}, "end_point": {"row": 60, "column": 14}}, {"id": 209, "type": "character", "text": "s", "parent": 207, "children": [], "start_point": {"row": 60, "column": 14}, "end_point": {"row": 60, "column": 15}}, {"id": 210, "type": "'", "text": "'", "parent": 207, "children": [], "start_point": {"row": 60, "column": 15}, "end_point": {"row": 60, "column": 16}}, {"id": 211, "type": "return_statement", "text": "return false;", "parent": 202, "children": [212], "start_point": {"row": 60, "column": 18}, "end_point": {"row": 60, "column": 31}}, {"id": 212, "type": "false", "text": "false", "parent": 211, "children": [], "start_point": {"row": 60, "column": 25}, "end_point": {"row": 60, "column": 30}}, {"id": 213, "type": "assignment_expression", "text": "c = fgetc(f)", "parent": 144, "children": [214, 215, 216], "start_point": {"row": 61, "column": 4}, "end_point": {"row": 61, "column": 16}}, {"id": 214, "type": "identifier", "text": "c", "parent": 213, "children": [], "start_point": {"row": 61, "column": 4}, "end_point": {"row": 61, "column": 5}}, {"id": 215, "type": "=", "text": "=", "parent": 213, "children": [], "start_point": {"row": 61, "column": 6}, "end_point": {"row": 61, "column": 7}}, {"id": 216, "type": "call_expression", "text": "fgetc(f)", "parent": 213, "children": [217, 218], "start_point": {"row": 61, "column": 8}, "end_point": {"row": 61, "column": 16}}, {"id": 217, "type": "identifier", "text": "fgetc", "parent": 216, "children": [], "start_point": {"row": 61, "column": 8}, "end_point": {"row": 61, "column": 13}}, {"id": 218, "type": "argument_list", "text": "(f)", "parent": 216, "children": [219], "start_point": {"row": 61, "column": 13}, "end_point": {"row": 61, "column": 16}}, {"id": 219, "type": "identifier", "text": "f", "parent": 218, "children": [], "start_point": {"row": 61, "column": 14}, "end_point": {"row": 61, "column": 15}}, {"id": 220, "type": "return_statement", "text": "return c == 'e';", "parent": 144, "children": [221], "start_point": {"row": 62, "column": 4}, "end_point": {"row": 62, "column": 20}}, {"id": 221, "type": "binary_expression", "text": "c == 'e'", "parent": 220, "children": [222, 223, 224], "start_point": {"row": 62, "column": 11}, "end_point": {"row": 62, "column": 19}}, {"id": 222, "type": "identifier", "text": "c", "parent": 221, "children": [], "start_point": {"row": 62, "column": 11}, "end_point": {"row": 62, "column": 12}}, {"id": 223, "type": "==", "text": "==", "parent": 221, "children": [], "start_point": {"row": 62, "column": 13}, "end_point": {"row": 62, "column": 15}}, {"id": 224, "type": "char_literal", "text": "'e'", "parent": 221, "children": [225, 226, 227], "start_point": {"row": 62, "column": 16}, "end_point": {"row": 62, "column": 19}}, {"id": 225, "type": "'", "text": "'", "parent": 224, "children": [], "start_point": {"row": 62, "column": 16}, "end_point": {"row": 62, "column": 17}}, {"id": 226, "type": "character", "text": "e", "parent": 224, "children": [], "start_point": {"row": 62, "column": 17}, "end_point": {"row": 62, "column": 18}}, {"id": 227, "type": "'", "text": "'", "parent": 224, "children": [], "start_point": {"row": 62, "column": 18}, "end_point": {"row": 62, "column": 19}}, {"id": 228, "type": "else_clause", "text": "else {\n return false;\n }", "parent": 144, "children": [], "start_point": {"row": 63, "column": 4}, "end_point": {"row": 65, "column": 3}}, {"id": 229, "type": "return_statement", "text": "return false;", "parent": 228, "children": [230], "start_point": {"row": 64, "column": 4}, "end_point": {"row": 64, "column": 17}}, {"id": 230, "type": "false", "text": "false", "parent": 229, "children": [], "start_point": {"row": 64, "column": 11}, "end_point": {"row": 64, "column": 16}}, {"id": 231, "type": "function_definition", "text": "static inline void real_out_str(FILE *f, float r)\n{\n fprintf(f, \"%f\", (double) r);\n}", "parent": null, "children": [232, 234, 235], "start_point": {"row": 69, "column": 0}, "end_point": {"row": 72, "column": 1}}, {"id": 232, "type": "storage_class_specifier", "text": "inline", "parent": 231, "children": [233], "start_point": {"row": 69, "column": 7}, "end_point": {"row": 69, "column": 13}}, {"id": 233, "type": "inline", "text": "inline", "parent": 232, "children": [], "start_point": {"row": 69, "column": 7}, "end_point": {"row": 69, "column": 13}}, {"id": 234, "type": "primitive_type", "text": "void", "parent": 231, "children": [], "start_point": {"row": 69, "column": 14}, "end_point": {"row": 69, "column": 18}}, {"id": 235, "type": "function_declarator", "text": "real_out_str(FILE *f, float r)", "parent": 231, "children": [236, 237], "start_point": {"row": 69, "column": 19}, "end_point": {"row": 69, "column": 49}}, {"id": 236, "type": "identifier", "text": "real_out_str", "parent": 235, "children": [], "start_point": {"row": 69, "column": 19}, "end_point": {"row": 69, "column": 31}}, {"id": 237, "type": "parameter_list", "text": "(FILE *f, float r)", "parent": 235, "children": [238, 243], "start_point": {"row": 69, "column": 31}, "end_point": {"row": 69, "column": 49}}, {"id": 238, "type": "parameter_declaration", "text": "FILE *f", "parent": 237, "children": [239, 240], "start_point": {"row": 69, "column": 32}, "end_point": {"row": 69, "column": 39}}, {"id": 239, "type": "type_identifier", "text": "FILE", "parent": 238, "children": [], "start_point": {"row": 69, "column": 32}, "end_point": {"row": 69, "column": 36}}, {"id": 240, "type": "pointer_declarator", "text": "*f", "parent": 238, "children": [241, 242], "start_point": {"row": 69, "column": 37}, "end_point": {"row": 69, "column": 39}}, {"id": 241, "type": "*", "text": "*", "parent": 240, "children": [], "start_point": {"row": 69, "column": 37}, "end_point": {"row": 69, "column": 38}}, {"id": 242, "type": "identifier", "text": "f", "parent": 240, "children": [], "start_point": {"row": 69, "column": 38}, "end_point": {"row": 69, "column": 39}}, {"id": 243, "type": "parameter_declaration", "text": "float r", "parent": 237, "children": [244, 245], "start_point": {"row": 69, "column": 41}, "end_point": {"row": 69, "column": 48}}, {"id": 244, "type": "primitive_type", "text": "float", "parent": 243, "children": [], "start_point": {"row": 69, "column": 41}, "end_point": {"row": 69, "column": 46}}, {"id": 245, "type": "identifier", "text": "r", "parent": 243, "children": [], "start_point": {"row": 69, "column": 47}, "end_point": {"row": 69, "column": 48}}, {"id": 246, "type": "call_expression", "text": "fprintf(f, \"%f\", (double) r)", "parent": 231, "children": [247, 248], "start_point": {"row": 71, "column": 2}, "end_point": {"row": 71, "column": 30}}, {"id": 247, "type": "identifier", "text": "fprintf", "parent": 246, "children": [], "start_point": {"row": 71, "column": 2}, "end_point": {"row": 71, "column": 9}}, {"id": 248, "type": "argument_list", "text": "(f, \"%f\", (double) r)", "parent": 246, "children": [249, 250, 251], "start_point": {"row": 71, "column": 9}, "end_point": {"row": 71, "column": 30}}, {"id": 249, "type": "identifier", "text": "f", "parent": 248, "children": [], "start_point": {"row": 71, "column": 10}, "end_point": {"row": 71, "column": 11}}, {"id": 250, "type": "string_literal", "text": "\"%f\"", "parent": 248, "children": [], "start_point": {"row": 71, "column": 13}, "end_point": {"row": 71, "column": 17}}, {"id": 251, "type": "cast_expression", "text": "(double) r", "parent": 248, "children": [252, 254], "start_point": {"row": 71, "column": 19}, "end_point": {"row": 71, "column": 29}}, {"id": 252, "type": "type_descriptor", "text": "double", "parent": 251, "children": [253], "start_point": {"row": 71, "column": 20}, "end_point": {"row": 71, "column": 26}}, {"id": 253, "type": "primitive_type", "text": "double", "parent": 252, "children": [], "start_point": {"row": 71, "column": 20}, "end_point": {"row": 71, "column": 26}}, {"id": 254, "type": "identifier", "text": "r", "parent": 251, "children": [], "start_point": {"row": 71, "column": 28}, "end_point": {"row": 71, "column": 29}}, {"id": 255, "type": "function_definition", "text": "static inline bool real_in_str(float *r, FILE *f)\n{\n return fscanf(f, \"%f\", r) == 1;\n}", "parent": null, "children": [256, 258, 259], "start_point": {"row": 74, "column": 0}, "end_point": {"row": 77, "column": 1}}, {"id": 256, "type": "storage_class_specifier", "text": "inline", "parent": 255, "children": [257], "start_point": {"row": 74, "column": 7}, "end_point": {"row": 74, "column": 13}}, {"id": 257, "type": "inline", "text": "inline", "parent": 256, "children": [], "start_point": {"row": 74, "column": 7}, "end_point": {"row": 74, "column": 13}}, {"id": 258, "type": "primitive_type", "text": "bool", "parent": 255, "children": [], "start_point": {"row": 74, "column": 14}, "end_point": {"row": 74, "column": 18}}, {"id": 259, "type": "function_declarator", "text": "real_in_str(float *r, FILE *f)", "parent": 255, "children": [260, 261], "start_point": {"row": 74, "column": 19}, "end_point": {"row": 74, "column": 49}}, {"id": 260, "type": "identifier", "text": "real_in_str", "parent": 259, "children": [], "start_point": {"row": 74, "column": 19}, "end_point": {"row": 74, "column": 30}}, {"id": 261, "type": "parameter_list", "text": "(float *r, FILE *f)", "parent": 259, "children": [262, 267], "start_point": {"row": 74, "column": 30}, "end_point": {"row": 74, "column": 49}}, {"id": 262, "type": "parameter_declaration", "text": "float *r", "parent": 261, "children": [263, 264], "start_point": {"row": 74, "column": 31}, "end_point": {"row": 74, "column": 39}}, {"id": 263, "type": "primitive_type", "text": "float", "parent": 262, "children": [], "start_point": {"row": 74, "column": 31}, "end_point": {"row": 74, "column": 36}}, {"id": 264, "type": "pointer_declarator", "text": "*r", "parent": 262, "children": [265, 266], "start_point": {"row": 74, "column": 37}, "end_point": {"row": 74, "column": 39}}, {"id": 265, "type": "*", "text": "*", "parent": 264, "children": [], "start_point": {"row": 74, "column": 37}, "end_point": {"row": 74, "column": 38}}, {"id": 266, "type": "identifier", "text": "r", "parent": 264, "children": [], "start_point": {"row": 74, "column": 38}, "end_point": {"row": 74, "column": 39}}, {"id": 267, "type": "parameter_declaration", "text": "FILE *f", "parent": 261, "children": [268, 269], "start_point": {"row": 74, "column": 41}, "end_point": {"row": 74, "column": 48}}, {"id": 268, "type": "type_identifier", "text": "FILE", "parent": 267, "children": [], "start_point": {"row": 74, "column": 41}, "end_point": {"row": 74, "column": 45}}, {"id": 269, "type": "pointer_declarator", "text": "*f", "parent": 267, "children": [270, 271], "start_point": {"row": 74, "column": 46}, "end_point": {"row": 74, "column": 48}}, {"id": 270, "type": "*", "text": "*", "parent": 269, "children": [], "start_point": {"row": 74, "column": 46}, "end_point": {"row": 74, "column": 47}}, {"id": 271, "type": "identifier", "text": "f", "parent": 269, "children": [], "start_point": {"row": 74, "column": 47}, "end_point": {"row": 74, "column": 48}}, {"id": 272, "type": "return_statement", "text": "return fscanf(f, \"%f\", r) == 1;", "parent": 255, "children": [273], "start_point": {"row": 76, "column": 2}, "end_point": {"row": 76, "column": 33}}, {"id": 273, "type": "binary_expression", "text": "fscanf(f, \"%f\", r) == 1", "parent": 272, "children": [274, 280, 281], "start_point": {"row": 76, "column": 9}, "end_point": {"row": 76, "column": 32}}, {"id": 274, "type": "call_expression", "text": "fscanf(f, \"%f\", r)", "parent": 273, "children": [275, 276], "start_point": {"row": 76, "column": 9}, "end_point": {"row": 76, "column": 27}}, {"id": 275, "type": "identifier", "text": "fscanf", "parent": 274, "children": [], "start_point": {"row": 76, "column": 9}, "end_point": {"row": 76, "column": 15}}, {"id": 276, "type": "argument_list", "text": "(f, \"%f\", r)", "parent": 274, "children": [277, 278, 279], "start_point": {"row": 76, "column": 15}, "end_point": {"row": 76, "column": 27}}, {"id": 277, "type": "identifier", "text": "f", "parent": 276, "children": [], "start_point": {"row": 76, "column": 16}, "end_point": {"row": 76, "column": 17}}, {"id": 278, "type": "string_literal", "text": "\"%f\"", "parent": 276, "children": [], "start_point": {"row": 76, "column": 19}, "end_point": {"row": 76, "column": 23}}, {"id": 279, "type": "identifier", "text": "r", "parent": 276, "children": [], "start_point": {"row": 76, "column": 25}, "end_point": {"row": 76, "column": 26}}, {"id": 280, "type": "==", "text": "==", "parent": 273, "children": [], "start_point": {"row": 76, "column": 28}, "end_point": {"row": 76, "column": 30}}, {"id": 281, "type": "number_literal", "text": "1", "parent": 273, "children": [], "start_point": {"row": 76, "column": 31}, "end_point": {"row": 76, "column": 32}}, {"id": 282, "type": "preproc_def", "text": "#define JSON_OPLIST \\\n (INIT(json_init M_IPTR), CLEAR(json_clear), \\\n INIT_SET(json_init_set M_IPTR), SET(json_set M_IPTR), \\\n OUT_STR(json_out_str), IN_STR(json_in_str M_IPTR) )\n", "parent": null, "children": [283, 284, 285], "start_point": {"row": 80, "column": 0}, "end_point": {"row": 84, "column": 0}}, {"id": 283, "type": "#define", "text": "#define", "parent": 282, "children": [], "start_point": {"row": 80, "column": 0}, "end_point": {"row": 80, "column": 7}}, {"id": 284, "type": "identifier", "text": "JSON_OPLIST", "parent": 282, "children": [], "start_point": {"row": 80, "column": 8}, "end_point": {"row": 80, "column": 19}}, {"id": 285, "type": "preproc_arg", "text": "(INIT(json_init M_IPTR), CLEAR(json_clear), \\\n INIT_SET(json_init_set M_IPTR), SET(json_set M_IPTR), \\\n OUT_STR(json_out_str), IN_STR(json_in_str M_IPTR) )", "parent": 282, "children": [], "start_point": {"row": 81, "column": 2}, "end_point": {"row": 83, "column": 54}}, {"id": 286, "type": "call_expression", "text": "DICT_DEF2(dict_json, string_t, STRING_OPLIST, mjson_t, JSON_OPLIST)", "parent": null, "children": [287, 288], "start_point": {"row": 85, "column": 0}, "end_point": {"row": 85, "column": 67}}, {"id": 287, "type": "identifier", "text": "DICT_DEF2", "parent": 286, "children": [], "start_point": {"row": 85, "column": 0}, "end_point": {"row": 85, "column": 9}}, {"id": 288, "type": "argument_list", "text": "(dict_json, string_t, STRING_OPLIST, mjson_t, JSON_OPLIST)", "parent": 286, "children": [289, 290, 291, 292, 293], "start_point": {"row": 85, "column": 9}, "end_point": {"row": 85, "column": 67}}, {"id": 289, "type": "identifier", "text": "dict_json", "parent": 288, "children": [], "start_point": {"row": 85, "column": 10}, "end_point": {"row": 85, "column": 19}}, {"id": 290, "type": "identifier", "text": "string_t", "parent": 288, "children": [], "start_point": {"row": 85, "column": 21}, "end_point": {"row": 85, "column": 29}}, {"id": 291, "type": "identifier", "text": "STRING_OPLIST", "parent": 288, "children": [], "start_point": {"row": 85, "column": 31}, "end_point": {"row": 85, "column": 44}}, {"id": 292, "type": "identifier", "text": "mjson_t", "parent": 288, "children": [], "start_point": {"row": 85, "column": 46}, "end_point": {"row": 85, "column": 53}}, {"id": 293, "type": "identifier", "text": "JSON_OPLIST", "parent": 288, "children": [], "start_point": {"row": 85, "column": 55}, "end_point": {"row": 85, "column": 66}}, {"id": 294, "type": "call_expression", "text": "ARRAY_DEF(array_json, mjson_t, JSON_OPLIST)", "parent": null, "children": [295, 296], "start_point": {"row": 87, "column": 0}, "end_point": {"row": 87, "column": 43}}, {"id": 295, "type": "identifier", "text": "ARRAY_DEF", "parent": 294, "children": [], "start_point": {"row": 87, "column": 0}, "end_point": {"row": 87, "column": 9}}, {"id": 296, "type": "argument_list", "text": "(array_json, mjson_t, JSON_OPLIST)", "parent": 294, "children": [297, 298, 299], "start_point": {"row": 87, "column": 9}, "end_point": {"row": 87, "column": 43}}, {"id": 297, "type": "identifier", "text": "array_json", "parent": 296, "children": [], "start_point": {"row": 87, "column": 10}, "end_point": {"row": 87, "column": 20}}, {"id": 298, "type": "identifier", "text": "mjson_t", "parent": 296, "children": [], "start_point": {"row": 87, "column": 22}, "end_point": {"row": 87, "column": 29}}, {"id": 299, "type": "identifier", "text": "JSON_OPLIST", "parent": 296, "children": [], "start_point": {"row": 87, "column": 31}, "end_point": {"row": 87, "column": 42}}, {"id": 300, "type": "call_expression", "text": "VARIANT_DEF2(variant_json,\n (boolean, bool, M_OPEXTEND(M_DEFAULT_OPLIST, OUT_STR(boolean_out_str), IN_STR(boolean_in_str M_IPTR)) ),\n (real, float, M_OPEXTEND (M_DEFAULT_OPLIST, OUT_STR(real_out_str), IN_STR(real_in_str M_IPTR))),\n (string, string_t, STRING_OPLIST),\n (array, array_json_t, ARRAY_OPLIST(array_json, JSON_OPLIST)), \n (dict, dict_json_t, DICT_OPLIST(dict_json, STRING_OPLIST, JSON_OPLIST)))", "parent": null, "children": [301, 302], "start_point": {"row": 89, "column": 0}, "end_point": {"row": 94, "column": 85}}, {"id": 301, "type": "identifier", "text": "VARIANT_DEF2", "parent": 300, "children": [], "start_point": {"row": 89, "column": 0}, "end_point": {"row": 89, "column": 12}}, {"id": 302, "type": "argument_list", "text": "(variant_json,\n (boolean, bool, M_OPEXTEND(M_DEFAULT_OPLIST, OUT_STR(boolean_out_str), IN_STR(boolean_in_str M_IPTR)) ),\n (real, float, M_OPEXTEND (M_DEFAULT_OPLIST, OUT_STR(real_out_str), IN_STR(real_in_str M_IPTR))),\n (string, string_t, STRING_OPLIST),\n (array, array_json_t, ARRAY_OPLIST(array_json, JSON_OPLIST)), \n (dict, dict_json_t, DICT_OPLIST(dict_json, STRING_OPLIST, JSON_OPLIST)))", "parent": 300, "children": [303, 304, 323, 342, 348, 358], "start_point": {"row": 89, "column": 12}, "end_point": {"row": 94, "column": 85}}, {"id": 303, "type": "identifier", "text": "variant_json", "parent": 302, "children": [], "start_point": {"row": 89, "column": 13}, "end_point": {"row": 89, "column": 25}}, {"id": 304, "type": "parenthesized_expression", "text": "(boolean, bool, M_OPEXTEND(M_DEFAULT_OPLIST, OUT_STR(boolean_out_str), IN_STR(boolean_in_str M_IPTR)) )", "parent": 302, "children": [305], "start_point": {"row": 90, "column": 13}, "end_point": {"row": 90, "column": 116}}, {"id": 305, "type": "comma_expression", "text": "boolean, bool, M_OPEXTEND(M_DEFAULT_OPLIST, OUT_STR(boolean_out_str), IN_STR(boolean_in_str M_IPTR))", "parent": 304, "children": [306, 307], "start_point": {"row": 90, "column": 14}, "end_point": {"row": 90, "column": 114}}, {"id": 306, "type": "identifier", "text": "boolean", "parent": 305, "children": [], "start_point": {"row": 90, "column": 14}, "end_point": {"row": 90, "column": 21}}, {"id": 307, "type": "comma_expression", "text": "bool, M_OPEXTEND(M_DEFAULT_OPLIST, OUT_STR(boolean_out_str), IN_STR(boolean_in_str M_IPTR))", "parent": 305, "children": [308, 309], "start_point": {"row": 90, "column": 23}, "end_point": {"row": 90, "column": 114}}, {"id": 308, "type": "identifier", "text": "bool", "parent": 307, "children": [], "start_point": {"row": 90, "column": 23}, "end_point": {"row": 90, "column": 27}}, {"id": 309, "type": "call_expression", "text": "M_OPEXTEND(M_DEFAULT_OPLIST, OUT_STR(boolean_out_str), IN_STR(boolean_in_str M_IPTR))", "parent": 307, "children": [310, 311], "start_point": {"row": 90, "column": 29}, "end_point": {"row": 90, "column": 114}}, {"id": 310, "type": "identifier", "text": "M_OPEXTEND", "parent": 309, "children": [], "start_point": {"row": 90, "column": 29}, "end_point": {"row": 90, "column": 39}}, {"id": 311, "type": "argument_list", "text": "(M_DEFAULT_OPLIST, OUT_STR(boolean_out_str), IN_STR(boolean_in_str M_IPTR))", "parent": 309, "children": [312, 313, 317], "start_point": {"row": 90, "column": 39}, "end_point": {"row": 90, "column": 114}}, {"id": 312, "type": "identifier", "text": "M_DEFAULT_OPLIST", "parent": 311, "children": [], "start_point": {"row": 90, "column": 40}, "end_point": {"row": 90, "column": 56}}, {"id": 313, "type": "call_expression", "text": "OUT_STR(boolean_out_str)", "parent": 311, "children": [314, 315], "start_point": {"row": 90, "column": 58}, "end_point": {"row": 90, "column": 82}}, {"id": 314, "type": "identifier", "text": "OUT_STR", "parent": 313, "children": [], "start_point": {"row": 90, "column": 58}, "end_point": {"row": 90, "column": 65}}, {"id": 315, "type": "argument_list", "text": "(boolean_out_str)", "parent": 313, "children": [316], "start_point": {"row": 90, "column": 65}, "end_point": {"row": 90, "column": 82}}, {"id": 316, "type": "identifier", "text": "boolean_out_str", "parent": 315, "children": [], "start_point": {"row": 90, "column": 66}, "end_point": {"row": 90, "column": 81}}, {"id": 317, "type": "call_expression", "text": "IN_STR(boolean_in_str M_IPTR)", "parent": 311, "children": [318, 319], "start_point": {"row": 90, "column": 84}, "end_point": {"row": 90, "column": 113}}, {"id": 318, "type": "identifier", "text": "IN_STR", "parent": 317, "children": [], "start_point": {"row": 90, "column": 84}, "end_point": {"row": 90, "column": 90}}, {"id": 319, "type": "argument_list", "text": "(boolean_in_str M_IPTR)", "parent": 317, "children": [320, 321], "start_point": {"row": 90, "column": 90}, "end_point": {"row": 90, "column": 113}}, {"id": 320, "type": "identifier", "text": "boolean_in_str", "parent": 319, "children": [], "start_point": {"row": 90, "column": 91}, "end_point": {"row": 90, "column": 105}}, {"id": 321, "type": "ERROR", "text": "M_IPTR", "parent": 319, "children": [322], "start_point": {"row": 90, "column": 106}, "end_point": {"row": 90, "column": 112}}, {"id": 322, "type": "identifier", "text": "M_IPTR", "parent": 321, "children": [], "start_point": {"row": 90, "column": 106}, "end_point": {"row": 90, "column": 112}}, {"id": 323, "type": "parenthesized_expression", "text": "(real, float, M_OPEXTEND (M_DEFAULT_OPLIST, OUT_STR(real_out_str), IN_STR(real_in_str M_IPTR)))", "parent": 302, "children": [324], "start_point": {"row": 91, "column": 13}, "end_point": {"row": 91, "column": 108}}, {"id": 324, "type": "comma_expression", "text": "real, float, M_OPEXTEND (M_DEFAULT_OPLIST, OUT_STR(real_out_str), IN_STR(real_in_str M_IPTR))", "parent": 323, "children": [325, 326], "start_point": {"row": 91, "column": 14}, "end_point": {"row": 91, "column": 107}}, {"id": 325, "type": "identifier", "text": "real", "parent": 324, "children": [], "start_point": {"row": 91, "column": 14}, "end_point": {"row": 91, "column": 18}}, {"id": 326, "type": "comma_expression", "text": "float, M_OPEXTEND (M_DEFAULT_OPLIST, OUT_STR(real_out_str), IN_STR(real_in_str M_IPTR))", "parent": 324, "children": [327, 328], "start_point": {"row": 91, "column": 20}, "end_point": {"row": 91, "column": 107}}, {"id": 327, "type": "identifier", "text": "float", "parent": 326, "children": [], "start_point": {"row": 91, "column": 20}, "end_point": {"row": 91, "column": 25}}, {"id": 328, "type": "call_expression", "text": "M_OPEXTEND (M_DEFAULT_OPLIST, OUT_STR(real_out_str), IN_STR(real_in_str M_IPTR))", "parent": 326, "children": [329, 330], "start_point": {"row": 91, "column": 27}, "end_point": {"row": 91, "column": 107}}, {"id": 329, "type": "identifier", "text": "M_OPEXTEND", "parent": 328, "children": [], "start_point": {"row": 91, "column": 27}, "end_point": {"row": 91, "column": 37}}, {"id": 330, "type": "argument_list", "text": "(M_DEFAULT_OPLIST, OUT_STR(real_out_str), IN_STR(real_in_str M_IPTR))", "parent": 328, "children": [331, 332, 336], "start_point": {"row": 91, "column": 38}, "end_point": {"row": 91, "column": 107}}, {"id": 331, "type": "identifier", "text": "M_DEFAULT_OPLIST", "parent": 330, "children": [], "start_point": {"row": 91, "column": 39}, "end_point": {"row": 91, "column": 55}}, {"id": 332, "type": "call_expression", "text": "OUT_STR(real_out_str)", "parent": 330, "children": [333, 334], "start_point": {"row": 91, "column": 57}, "end_point": {"row": 91, "column": 78}}, {"id": 333, "type": "identifier", "text": "OUT_STR", "parent": 332, "children": [], "start_point": {"row": 91, "column": 57}, "end_point": {"row": 91, "column": 64}}, {"id": 334, "type": "argument_list", "text": "(real_out_str)", "parent": 332, "children": [335], "start_point": {"row": 91, "column": 64}, "end_point": {"row": 91, "column": 78}}, {"id": 335, "type": "identifier", "text": "real_out_str", "parent": 334, "children": [], "start_point": {"row": 91, "column": 65}, "end_point": {"row": 91, "column": 77}}, {"id": 336, "type": "call_expression", "text": "IN_STR(real_in_str M_IPTR)", "parent": 330, "children": [337, 338], "start_point": {"row": 91, "column": 80}, "end_point": {"row": 91, "column": 106}}, {"id": 337, "type": "identifier", "text": "IN_STR", "parent": 336, "children": [], "start_point": {"row": 91, "column": 80}, "end_point": {"row": 91, "column": 86}}, {"id": 338, "type": "argument_list", "text": "(real_in_str M_IPTR)", "parent": 336, "children": [339, 340], "start_point": {"row": 91, "column": 86}, "end_point": {"row": 91, "column": 106}}, {"id": 339, "type": "identifier", "text": "real_in_str", "parent": 338, "children": [], "start_point": {"row": 91, "column": 87}, "end_point": {"row": 91, "column": 98}}, {"id": 340, "type": "ERROR", "text": "M_IPTR", "parent": 338, "children": [341], "start_point": {"row": 91, "column": 99}, "end_point": {"row": 91, "column": 105}}, {"id": 341, "type": "identifier", "text": "M_IPTR", "parent": 340, "children": [], "start_point": {"row": 91, "column": 99}, "end_point": {"row": 91, "column": 105}}, {"id": 342, "type": "parenthesized_expression", "text": "(string, string_t, STRING_OPLIST)", "parent": 302, "children": [343], "start_point": {"row": 92, "column": 13}, "end_point": {"row": 92, "column": 46}}, {"id": 343, "type": "comma_expression", "text": "string, string_t, STRING_OPLIST", "parent": 342, "children": [344, 345], "start_point": {"row": 92, "column": 14}, "end_point": {"row": 92, "column": 45}}, {"id": 344, "type": "identifier", "text": "string", "parent": 343, "children": [], "start_point": {"row": 92, "column": 14}, "end_point": {"row": 92, "column": 20}}, {"id": 345, "type": "comma_expression", "text": "string_t, STRING_OPLIST", "parent": 343, "children": [346, 347], "start_point": {"row": 92, "column": 22}, "end_point": {"row": 92, "column": 45}}, {"id": 346, "type": "identifier", "text": "string_t", "parent": 345, "children": [], "start_point": {"row": 92, "column": 22}, "end_point": {"row": 92, "column": 30}}, {"id": 347, "type": "identifier", "text": "STRING_OPLIST", "parent": 345, "children": [], "start_point": {"row": 92, "column": 32}, "end_point": {"row": 92, "column": 45}}, {"id": 348, "type": "parenthesized_expression", "text": "(array, array_json_t, ARRAY_OPLIST(array_json, JSON_OPLIST))", "parent": 302, "children": [349], "start_point": {"row": 93, "column": 13}, "end_point": {"row": 93, "column": 73}}, {"id": 349, "type": "comma_expression", "text": "array, array_json_t, ARRAY_OPLIST(array_json, JSON_OPLIST)", "parent": 348, "children": [350, 351], "start_point": {"row": 93, "column": 14}, "end_point": {"row": 93, "column": 72}}, {"id": 350, "type": "identifier", "text": "array", "parent": 349, "children": [], "start_point": {"row": 93, "column": 14}, "end_point": {"row": 93, "column": 19}}, {"id": 351, "type": "comma_expression", "text": "array_json_t, ARRAY_OPLIST(array_json, JSON_OPLIST)", "parent": 349, "children": [352, 353], "start_point": {"row": 93, "column": 21}, "end_point": {"row": 93, "column": 72}}, {"id": 352, "type": "identifier", "text": "array_json_t", "parent": 351, "children": [], "start_point": {"row": 93, "column": 21}, "end_point": {"row": 93, "column": 33}}, {"id": 353, "type": "call_expression", "text": "ARRAY_OPLIST(array_json, JSON_OPLIST)", "parent": 351, "children": [354, 355], "start_point": {"row": 93, "column": 35}, "end_point": {"row": 93, "column": 72}}, {"id": 354, "type": "identifier", "text": "ARRAY_OPLIST", "parent": 353, "children": [], "start_point": {"row": 93, "column": 35}, "end_point": {"row": 93, "column": 47}}, {"id": 355, "type": "argument_list", "text": "(array_json, JSON_OPLIST)", "parent": 353, "children": [356, 357], "start_point": {"row": 93, "column": 47}, "end_point": {"row": 93, "column": 72}}, {"id": 356, "type": "identifier", "text": "array_json", "parent": 355, "children": [], "start_point": {"row": 93, "column": 48}, "end_point": {"row": 93, "column": 58}}, {"id": 357, "type": "identifier", "text": "JSON_OPLIST", "parent": 355, "children": [], "start_point": {"row": 93, "column": 60}, "end_point": {"row": 93, "column": 71}}, {"id": 358, "type": "parenthesized_expression", "text": "(dict, dict_json_t, DICT_OPLIST(dict_json, STRING_OPLIST, JSON_OPLIST))", "parent": 302, "children": [359], "start_point": {"row": 94, "column": 13}, "end_point": {"row": 94, "column": 84}}, {"id": 359, "type": "comma_expression", "text": "dict, dict_json_t, DICT_OPLIST(dict_json, STRING_OPLIST, JSON_OPLIST)", "parent": 358, "children": [360, 361], "start_point": {"row": 94, "column": 14}, "end_point": {"row": 94, "column": 83}}, {"id": 360, "type": "identifier", "text": "dict", "parent": 359, "children": [], "start_point": {"row": 94, "column": 14}, "end_point": {"row": 94, "column": 18}}, {"id": 361, "type": "comma_expression", "text": "dict_json_t, DICT_OPLIST(dict_json, STRING_OPLIST, JSON_OPLIST)", "parent": 359, "children": [362, 363], "start_point": {"row": 94, "column": 20}, "end_point": {"row": 94, "column": 83}}, {"id": 362, "type": "identifier", "text": "dict_json_t", "parent": 361, "children": [], "start_point": {"row": 94, "column": 20}, "end_point": {"row": 94, "column": 31}}, {"id": 363, "type": "call_expression", "text": "DICT_OPLIST(dict_json, STRING_OPLIST, JSON_OPLIST)", "parent": 361, "children": [364, 365], "start_point": {"row": 94, "column": 33}, "end_point": {"row": 94, "column": 83}}, {"id": 364, "type": "identifier", "text": "DICT_OPLIST", "parent": 363, "children": [], "start_point": {"row": 94, "column": 33}, "end_point": {"row": 94, "column": 44}}, {"id": 365, "type": "argument_list", "text": "(dict_json, STRING_OPLIST, JSON_OPLIST)", "parent": 363, "children": [366, 367, 368], "start_point": {"row": 94, "column": 44}, "end_point": {"row": 94, "column": 83}}, {"id": 366, "type": "identifier", "text": "dict_json", "parent": 365, "children": [], "start_point": {"row": 94, "column": 45}, "end_point": {"row": 94, "column": 54}}, {"id": 367, "type": "identifier", "text": "STRING_OPLIST", "parent": 365, "children": [], "start_point": {"row": 94, "column": 56}, "end_point": {"row": 94, "column": 69}}, {"id": 368, "type": "identifier", "text": "JSON_OPLIST", "parent": 365, "children": [], "start_point": {"row": 94, "column": 71}, "end_point": {"row": 94, "column": 82}}, {"id": 369, "type": "struct_specifier", "text": "struct mjson_node_s {\n variant_json_t json;\n}", "parent": null, "children": [370, 371], "start_point": {"row": 97, "column": 0}, "end_point": {"row": 99, "column": 1}}, {"id": 370, "type": "struct", "text": "struct", "parent": 369, "children": [], "start_point": {"row": 97, "column": 0}, "end_point": {"row": 97, "column": 6}}, {"id": 371, "type": "type_identifier", "text": "mjson_node_s", "parent": 369, "children": [], "start_point": {"row": 97, "column": 7}, "end_point": {"row": 97, "column": 19}}, {"id": 372, "type": "field_declaration", "text": "variant_json_t json;", "parent": 369, "children": [373, 374], "start_point": {"row": 98, "column": 2}, "end_point": {"row": 98, "column": 22}}, {"id": 373, "type": "type_identifier", "text": "variant_json_t", "parent": 372, "children": [], "start_point": {"row": 98, "column": 2}, "end_point": {"row": 98, "column": 16}}, {"id": 374, "type": "field_identifier", "text": "json", "parent": 372, "children": [], "start_point": {"row": 98, "column": 17}, "end_point": {"row": 98, "column": 21}}, {"id": 375, "type": "function_definition", "text": "void json_init(mjson_t *p)\n{\n assert (p != NULL);\n *p = malloc (sizeof (struct mjson_node_s));\n if (*p == NULL) abort();\n variant_json_init((*p)->json);\n}", "parent": null, "children": [376, 377], "start_point": {"row": 101, "column": 0}, "end_point": {"row": 107, "column": 1}}, {"id": 376, "type": "primitive_type", "text": "void", "parent": 375, "children": [], "start_point": {"row": 101, "column": 0}, "end_point": {"row": 101, "column": 4}}, {"id": 377, "type": "function_declarator", "text": "json_init(mjson_t *p)", "parent": 375, "children": [378, 379], "start_point": {"row": 101, "column": 5}, "end_point": {"row": 101, "column": 26}}, {"id": 378, "type": "identifier", "text": "json_init", "parent": 377, "children": [], "start_point": {"row": 101, "column": 5}, "end_point": {"row": 101, "column": 14}}, {"id": 379, "type": "parameter_list", "text": "(mjson_t *p)", "parent": 377, "children": [380], "start_point": {"row": 101, "column": 14}, "end_point": {"row": 101, "column": 26}}, {"id": 380, "type": "parameter_declaration", "text": "mjson_t *p", "parent": 379, "children": [381, 382], "start_point": {"row": 101, "column": 15}, "end_point": {"row": 101, "column": 25}}, {"id": 381, "type": "type_identifier", "text": "mjson_t", "parent": 380, "children": [], "start_point": {"row": 101, "column": 15}, "end_point": {"row": 101, "column": 22}}, {"id": 382, "type": "pointer_declarator", "text": "*p", "parent": 380, "children": [383, 384], "start_point": {"row": 101, "column": 23}, "end_point": {"row": 101, "column": 25}}, {"id": 383, "type": "*", "text": "*", "parent": 382, "children": [], "start_point": {"row": 101, "column": 23}, "end_point": {"row": 101, "column": 24}}, {"id": 384, "type": "identifier", "text": "p", "parent": 382, "children": [], "start_point": {"row": 101, "column": 24}, "end_point": {"row": 101, "column": 25}}, {"id": 385, "type": "call_expression", "text": "assert (p != NULL)", "parent": 375, "children": [386, 387], "start_point": {"row": 103, "column": 2}, "end_point": {"row": 103, "column": 20}}, {"id": 386, "type": "identifier", "text": "assert", "parent": 385, "children": [], "start_point": {"row": 103, "column": 2}, "end_point": {"row": 103, "column": 8}}, {"id": 387, "type": "argument_list", "text": "(p != NULL)", "parent": 385, "children": [388], "start_point": {"row": 103, "column": 9}, "end_point": {"row": 103, "column": 20}}, {"id": 388, "type": "binary_expression", "text": "p != NULL", "parent": 387, "children": [389, 390, 391], "start_point": {"row": 103, "column": 10}, "end_point": {"row": 103, "column": 19}}, {"id": 389, "type": "identifier", "text": "p", "parent": 388, "children": [], "start_point": {"row": 103, "column": 10}, "end_point": {"row": 103, "column": 11}}, {"id": 390, "type": "!=", "text": "!=", "parent": 388, "children": [], "start_point": {"row": 103, "column": 12}, "end_point": {"row": 103, "column": 14}}, {"id": 391, "type": "null", "text": "NULL", "parent": 388, "children": [392], "start_point": {"row": 103, "column": 15}, "end_point": {"row": 103, "column": 19}}, {"id": 392, "type": "NULL", "text": "NULL", "parent": 391, "children": [], "start_point": {"row": 103, "column": 15}, "end_point": {"row": 103, "column": 19}}, {"id": 393, "type": "assignment_expression", "text": "*p = malloc (sizeof (struct mjson_node_s))", "parent": 375, "children": [394, 397, 398], "start_point": {"row": 104, "column": 2}, "end_point": {"row": 104, "column": 44}}, {"id": 394, "type": "pointer_expression", "text": "*p", "parent": 393, "children": [395, 396], "start_point": {"row": 104, "column": 2}, "end_point": {"row": 104, "column": 4}}, {"id": 395, "type": "*", "text": "*", "parent": 394, "children": [], "start_point": {"row": 104, "column": 2}, "end_point": {"row": 104, "column": 3}}, {"id": 396, "type": "identifier", "text": "p", "parent": 394, "children": [], "start_point": {"row": 104, "column": 3}, "end_point": {"row": 104, "column": 4}}, {"id": 397, "type": "=", "text": "=", "parent": 393, "children": [], "start_point": {"row": 104, "column": 5}, "end_point": {"row": 104, "column": 6}}, {"id": 398, "type": "call_expression", "text": "malloc (sizeof (struct mjson_node_s))", "parent": 393, "children": [399, 400], "start_point": {"row": 104, "column": 7}, "end_point": {"row": 104, "column": 44}}, {"id": 399, "type": "identifier", "text": "malloc", "parent": 398, "children": [], "start_point": {"row": 104, "column": 7}, "end_point": {"row": 104, "column": 13}}, {"id": 400, "type": "argument_list", "text": "(sizeof (struct mjson_node_s))", "parent": 398, "children": [401], "start_point": {"row": 104, "column": 14}, "end_point": {"row": 104, "column": 44}}, {"id": 401, "type": "sizeof_expression", "text": "sizeof (struct mjson_node_s)", "parent": 400, "children": [402], "start_point": {"row": 104, "column": 15}, "end_point": {"row": 104, "column": 43}}, {"id": 402, "type": "type_descriptor", "text": "struct mjson_node_s", "parent": 401, "children": [403], "start_point": {"row": 104, "column": 23}, "end_point": {"row": 104, "column": 42}}, {"id": 403, "type": "struct_specifier", "text": "struct mjson_node_s", "parent": 402, "children": [404, 405], "start_point": {"row": 104, "column": 23}, "end_point": {"row": 104, "column": 42}}, {"id": 404, "type": "struct", "text": "struct", "parent": 403, "children": [], "start_point": {"row": 104, "column": 23}, "end_point": {"row": 104, "column": 29}}, {"id": 405, "type": "type_identifier", "text": "mjson_node_s", "parent": 403, "children": [], "start_point": {"row": 104, "column": 30}, "end_point": {"row": 104, "column": 42}}, {"id": 406, "type": "if_statement", "text": "if (*p == NULL) abort();", "parent": 375, "children": [407], "start_point": {"row": 105, "column": 2}, "end_point": {"row": 105, "column": 26}}, {"id": 407, "type": "parenthesized_expression", "text": "(*p == NULL)", "parent": 406, "children": [408], "start_point": {"row": 105, "column": 5}, "end_point": {"row": 105, "column": 17}}, {"id": 408, "type": "binary_expression", "text": "*p == NULL", "parent": 407, "children": [409, 412, 413], "start_point": {"row": 105, "column": 6}, "end_point": {"row": 105, "column": 16}}, {"id": 409, "type": "pointer_expression", "text": "*p", "parent": 408, "children": [410, 411], "start_point": {"row": 105, "column": 6}, "end_point": {"row": 105, "column": 8}}, {"id": 410, "type": "*", "text": "*", "parent": 409, "children": [], "start_point": {"row": 105, "column": 6}, "end_point": {"row": 105, "column": 7}}, {"id": 411, "type": "identifier", "text": "p", "parent": 409, "children": [], "start_point": {"row": 105, "column": 7}, "end_point": {"row": 105, "column": 8}}, {"id": 412, "type": "==", "text": "==", "parent": 408, "children": [], "start_point": {"row": 105, "column": 9}, "end_point": {"row": 105, "column": 11}}, {"id": 413, "type": "null", "text": "NULL", "parent": 408, "children": [414], "start_point": {"row": 105, "column": 12}, "end_point": {"row": 105, "column": 16}}, {"id": 414, "type": "NULL", "text": "NULL", "parent": 413, "children": [], "start_point": {"row": 105, "column": 12}, "end_point": {"row": 105, "column": 16}}, {"id": 415, "type": "call_expression", "text": "abort()", "parent": 406, "children": [416, 417], "start_point": {"row": 105, "column": 18}, "end_point": {"row": 105, "column": 25}}, {"id": 416, "type": "identifier", "text": "abort", "parent": 415, "children": [], "start_point": {"row": 105, "column": 18}, "end_point": {"row": 105, "column": 23}}, {"id": 417, "type": "argument_list", "text": "()", "parent": 415, "children": [], "start_point": {"row": 105, "column": 23}, "end_point": {"row": 105, "column": 25}}, {"id": 418, "type": "call_expression", "text": "variant_json_init((*p)->json)", "parent": 375, "children": [419, 420], "start_point": {"row": 106, "column": 2}, "end_point": {"row": 106, "column": 31}}, {"id": 419, "type": "identifier", "text": "variant_json_init", "parent": 418, "children": [], "start_point": {"row": 106, "column": 2}, "end_point": {"row": 106, "column": 19}}, {"id": 420, "type": "argument_list", "text": "((*p)->json)", "parent": 418, "children": [421], "start_point": {"row": 106, "column": 19}, "end_point": {"row": 106, "column": 31}}, {"id": 421, "type": "field_expression", "text": "(*p)->json", "parent": 420, "children": [422, 426], "start_point": {"row": 106, "column": 20}, "end_point": {"row": 106, "column": 30}}, {"id": 422, "type": "parenthesized_expression", "text": "(*p)", "parent": 421, "children": [423], "start_point": {"row": 106, "column": 20}, "end_point": {"row": 106, "column": 24}}, {"id": 423, "type": "pointer_expression", "text": "*p", "parent": 422, "children": [424, 425], "start_point": {"row": 106, "column": 21}, "end_point": {"row": 106, "column": 23}}, {"id": 424, "type": "*", "text": "*", "parent": 423, "children": [], "start_point": {"row": 106, "column": 21}, "end_point": {"row": 106, "column": 22}}, {"id": 425, "type": "identifier", "text": "p", "parent": 423, "children": [], "start_point": {"row": 106, "column": 22}, "end_point": {"row": 106, "column": 23}}, {"id": 426, "type": "field_identifier", "text": "json", "parent": 421, "children": [], "start_point": {"row": 106, "column": 26}, "end_point": {"row": 106, "column": 30}}, {"id": 427, "type": "function_definition", "text": "void json_clear (mjson_t p)\n{\n assert (p != NULL);\n variant_json_clear (p->json);\n free(p);\n}", "parent": null, "children": [428, 429], "start_point": {"row": 109, "column": 0}, "end_point": {"row": 114, "column": 1}}, {"id": 428, "type": "primitive_type", "text": "void", "parent": 427, "children": [], "start_point": {"row": 109, "column": 0}, "end_point": {"row": 109, "column": 4}}, {"id": 429, "type": "function_declarator", "text": "json_clear (mjson_t p)", "parent": 427, "children": [430, 431], "start_point": {"row": 109, "column": 5}, "end_point": {"row": 109, "column": 27}}, {"id": 430, "type": "identifier", "text": "json_clear", "parent": 429, "children": [], "start_point": {"row": 109, "column": 5}, "end_point": {"row": 109, "column": 15}}, {"id": 431, "type": "parameter_list", "text": "(mjson_t p)", "parent": 429, "children": [432], "start_point": {"row": 109, "column": 16}, "end_point": {"row": 109, "column": 27}}, {"id": 432, "type": "parameter_declaration", "text": "mjson_t p", "parent": 431, "children": [433, 434], "start_point": {"row": 109, "column": 17}, "end_point": {"row": 109, "column": 26}}, {"id": 433, "type": "type_identifier", "text": "mjson_t", "parent": 432, "children": [], "start_point": {"row": 109, "column": 17}, "end_point": {"row": 109, "column": 24}}, {"id": 434, "type": "identifier", "text": "p", "parent": 432, "children": [], "start_point": {"row": 109, "column": 25}, "end_point": {"row": 109, "column": 26}}, {"id": 435, "type": "call_expression", "text": "assert (p != NULL)", "parent": 427, "children": [436, 437], "start_point": {"row": 111, "column": 2}, "end_point": {"row": 111, "column": 20}}, {"id": 436, "type": "identifier", "text": "assert", "parent": 435, "children": [], "start_point": {"row": 111, "column": 2}, "end_point": {"row": 111, "column": 8}}, {"id": 437, "type": "argument_list", "text": "(p != NULL)", "parent": 435, "children": [438], "start_point": {"row": 111, "column": 9}, "end_point": {"row": 111, "column": 20}}, {"id": 438, "type": "binary_expression", "text": "p != NULL", "parent": 437, "children": [439, 440, 441], "start_point": {"row": 111, "column": 10}, "end_point": {"row": 111, "column": 19}}, {"id": 439, "type": "identifier", "text": "p", "parent": 438, "children": [], "start_point": {"row": 111, "column": 10}, "end_point": {"row": 111, "column": 11}}, {"id": 440, "type": "!=", "text": "!=", "parent": 438, "children": [], "start_point": {"row": 111, "column": 12}, "end_point": {"row": 111, "column": 14}}, {"id": 441, "type": "null", "text": "NULL", "parent": 438, "children": [442], "start_point": {"row": 111, "column": 15}, "end_point": {"row": 111, "column": 19}}, {"id": 442, "type": "NULL", "text": "NULL", "parent": 441, "children": [], "start_point": {"row": 111, "column": 15}, "end_point": {"row": 111, "column": 19}}, {"id": 443, "type": "call_expression", "text": "variant_json_clear (p->json)", "parent": 427, "children": [444, 445], "start_point": {"row": 112, "column": 2}, "end_point": {"row": 112, "column": 30}}, {"id": 444, "type": "identifier", "text": "variant_json_clear", "parent": 443, "children": [], "start_point": {"row": 112, "column": 2}, "end_point": {"row": 112, "column": 20}}, {"id": 445, "type": "argument_list", "text": "(p->json)", "parent": 443, "children": [446], "start_point": {"row": 112, "column": 21}, "end_point": {"row": 112, "column": 30}}, {"id": 446, "type": "field_expression", "text": "p->json", "parent": 445, "children": [447, 448], "start_point": {"row": 112, "column": 22}, "end_point": {"row": 112, "column": 29}}, {"id": 447, "type": "identifier", "text": "p", "parent": 446, "children": [], "start_point": {"row": 112, "column": 22}, "end_point": {"row": 112, "column": 23}}, {"id": 448, "type": "field_identifier", "text": "json", "parent": 446, "children": [], "start_point": {"row": 112, "column": 25}, "end_point": {"row": 112, "column": 29}}, {"id": 449, "type": "call_expression", "text": "free(p)", "parent": 427, "children": [450, 451], "start_point": {"row": 113, "column": 2}, "end_point": {"row": 113, "column": 9}}, {"id": 450, "type": "identifier", "text": "free", "parent": 449, "children": [], "start_point": {"row": 113, "column": 2}, "end_point": {"row": 113, "column": 6}}, {"id": 451, "type": "argument_list", "text": "(p)", "parent": 449, "children": [452], "start_point": {"row": 113, "column": 6}, "end_point": {"row": 113, "column": 9}}, {"id": 452, "type": "identifier", "text": "p", "parent": 451, "children": [], "start_point": {"row": 113, "column": 7}, "end_point": {"row": 113, "column": 8}}, {"id": 453, "type": "function_definition", "text": "void json_init_set(mjson_t *p, mjson_t o)\n{\n assert (p != NULL && o != NULL);\n *p = malloc (sizeof (struct mjson_node_s));\n if (*p == NULL) abort();\n variant_json_init_set((*p)->json, o->json);\n}", "parent": null, "children": [454, 455], "start_point": {"row": 116, "column": 0}, "end_point": {"row": 122, "column": 1}}, {"id": 454, "type": "primitive_type", "text": "void", "parent": 453, "children": [], "start_point": {"row": 116, "column": 0}, "end_point": {"row": 116, "column": 4}}, {"id": 455, "type": "function_declarator", "text": "json_init_set(mjson_t *p, mjson_t o)", "parent": 453, "children": [456, 457], "start_point": {"row": 116, "column": 5}, "end_point": {"row": 116, "column": 41}}, {"id": 456, "type": "identifier", "text": "json_init_set", "parent": 455, "children": [], "start_point": {"row": 116, "column": 5}, "end_point": {"row": 116, "column": 18}}, {"id": 457, "type": "parameter_list", "text": "(mjson_t *p, mjson_t o)", "parent": 455, "children": [458, 463], "start_point": {"row": 116, "column": 18}, "end_point": {"row": 116, "column": 41}}, {"id": 458, "type": "parameter_declaration", "text": "mjson_t *p", "parent": 457, "children": [459, 460], "start_point": {"row": 116, "column": 19}, "end_point": {"row": 116, "column": 29}}, {"id": 459, "type": "type_identifier", "text": "mjson_t", "parent": 458, "children": [], "start_point": {"row": 116, "column": 19}, "end_point": {"row": 116, "column": 26}}, {"id": 460, "type": "pointer_declarator", "text": "*p", "parent": 458, "children": [461, 462], "start_point": {"row": 116, "column": 27}, "end_point": {"row": 116, "column": 29}}, {"id": 461, "type": "*", "text": "*", "parent": 460, "children": [], "start_point": {"row": 116, "column": 27}, "end_point": {"row": 116, "column": 28}}, {"id": 462, "type": "identifier", "text": "p", "parent": 460, "children": [], "start_point": {"row": 116, "column": 28}, "end_point": {"row": 116, "column": 29}}, {"id": 463, "type": "parameter_declaration", "text": "mjson_t o", "parent": 457, "children": [464, 465], "start_point": {"row": 116, "column": 31}, "end_point": {"row": 116, "column": 40}}, {"id": 464, "type": "type_identifier", "text": "mjson_t", "parent": 463, "children": [], "start_point": {"row": 116, "column": 31}, "end_point": {"row": 116, "column": 38}}, {"id": 465, "type": "identifier", "text": "o", "parent": 463, "children": [], "start_point": {"row": 116, "column": 39}, "end_point": {"row": 116, "column": 40}}, {"id": 466, "type": "call_expression", "text": "assert (p != NULL && o != NULL)", "parent": 453, "children": [467, 468], "start_point": {"row": 118, "column": 2}, "end_point": {"row": 118, "column": 33}}, {"id": 467, "type": "identifier", "text": "assert", "parent": 466, "children": [], "start_point": {"row": 118, "column": 2}, "end_point": {"row": 118, "column": 8}}, {"id": 468, "type": "argument_list", "text": "(p != NULL && o != NULL)", "parent": 466, "children": [469], "start_point": {"row": 118, "column": 9}, "end_point": {"row": 118, "column": 33}}, {"id": 469, "type": "binary_expression", "text": "p != NULL && o != NULL", "parent": 468, "children": [470, 475, 476], "start_point": {"row": 118, "column": 10}, "end_point": {"row": 118, "column": 32}}, {"id": 470, "type": "binary_expression", "text": "p != NULL", "parent": 469, "children": [471, 472, 473], "start_point": {"row": 118, "column": 10}, "end_point": {"row": 118, "column": 19}}, {"id": 471, "type": "identifier", "text": "p", "parent": 470, "children": [], "start_point": {"row": 118, "column": 10}, "end_point": {"row": 118, "column": 11}}, {"id": 472, "type": "!=", "text": "!=", "parent": 470, "children": [], "start_point": {"row": 118, "column": 12}, "end_point": {"row": 118, "column": 14}}, {"id": 473, "type": "null", "text": "NULL", "parent": 470, "children": [474], "start_point": {"row": 118, "column": 15}, "end_point": {"row": 118, "column": 19}}, {"id": 474, "type": "NULL", "text": "NULL", "parent": 473, "children": [], "start_point": {"row": 118, "column": 15}, "end_point": {"row": 118, "column": 19}}, {"id": 475, "type": "&&", "text": "&&", "parent": 469, "children": [], "start_point": {"row": 118, "column": 20}, "end_point": {"row": 118, "column": 22}}, {"id": 476, "type": "binary_expression", "text": "o != NULL", "parent": 469, "children": [477, 478, 479], "start_point": {"row": 118, "column": 23}, "end_point": {"row": 118, "column": 32}}, {"id": 477, "type": "identifier", "text": "o", "parent": 476, "children": [], "start_point": {"row": 118, "column": 23}, "end_point": {"row": 118, "column": 24}}, {"id": 478, "type": "!=", "text": "!=", "parent": 476, "children": [], "start_point": {"row": 118, "column": 25}, "end_point": {"row": 118, "column": 27}}, {"id": 479, "type": "null", "text": "NULL", "parent": 476, "children": [480], "start_point": {"row": 118, "column": 28}, "end_point": {"row": 118, "column": 32}}, {"id": 480, "type": "NULL", "text": "NULL", "parent": 479, "children": [], "start_point": {"row": 118, "column": 28}, "end_point": {"row": 118, "column": 32}}, {"id": 481, "type": "assignment_expression", "text": "*p = malloc (sizeof (struct mjson_node_s))", "parent": 453, "children": [482, 485, 486], "start_point": {"row": 119, "column": 2}, "end_point": {"row": 119, "column": 44}}, {"id": 482, "type": "pointer_expression", "text": "*p", "parent": 481, "children": [483, 484], "start_point": {"row": 119, "column": 2}, "end_point": {"row": 119, "column": 4}}, {"id": 483, "type": "*", "text": "*", "parent": 482, "children": [], "start_point": {"row": 119, "column": 2}, "end_point": {"row": 119, "column": 3}}, {"id": 484, "type": "identifier", "text": "p", "parent": 482, "children": [], "start_point": {"row": 119, "column": 3}, "end_point": {"row": 119, "column": 4}}, {"id": 485, "type": "=", "text": "=", "parent": 481, "children": [], "start_point": {"row": 119, "column": 5}, "end_point": {"row": 119, "column": 6}}, {"id": 486, "type": "call_expression", "text": "malloc (sizeof (struct mjson_node_s))", "parent": 481, "children": [487, 488], "start_point": {"row": 119, "column": 7}, "end_point": {"row": 119, "column": 44}}, {"id": 487, "type": "identifier", "text": "malloc", "parent": 486, "children": [], "start_point": {"row": 119, "column": 7}, "end_point": {"row": 119, "column": 13}}, {"id": 488, "type": "argument_list", "text": "(sizeof (struct mjson_node_s))", "parent": 486, "children": [489], "start_point": {"row": 119, "column": 14}, "end_point": {"row": 119, "column": 44}}, {"id": 489, "type": "sizeof_expression", "text": "sizeof (struct mjson_node_s)", "parent": 488, "children": [490], "start_point": {"row": 119, "column": 15}, "end_point": {"row": 119, "column": 43}}, {"id": 490, "type": "type_descriptor", "text": "struct mjson_node_s", "parent": 489, "children": [491], "start_point": {"row": 119, "column": 23}, "end_point": {"row": 119, "column": 42}}, {"id": 491, "type": "struct_specifier", "text": "struct mjson_node_s", "parent": 490, "children": [492, 493], "start_point": {"row": 119, "column": 23}, "end_point": {"row": 119, "column": 42}}, {"id": 492, "type": "struct", "text": "struct", "parent": 491, "children": [], "start_point": {"row": 119, "column": 23}, "end_point": {"row": 119, "column": 29}}, {"id": 493, "type": "type_identifier", "text": "mjson_node_s", "parent": 491, "children": [], "start_point": {"row": 119, "column": 30}, "end_point": {"row": 119, "column": 42}}, {"id": 494, "type": "if_statement", "text": "if (*p == NULL) abort();", "parent": 453, "children": [495], "start_point": {"row": 120, "column": 2}, "end_point": {"row": 120, "column": 26}}, {"id": 495, "type": "parenthesized_expression", "text": "(*p == NULL)", "parent": 494, "children": [496], "start_point": {"row": 120, "column": 5}, "end_point": {"row": 120, "column": 17}}, {"id": 496, "type": "binary_expression", "text": "*p == NULL", "parent": 495, "children": [497, 500, 501], "start_point": {"row": 120, "column": 6}, "end_point": {"row": 120, "column": 16}}, {"id": 497, "type": "pointer_expression", "text": "*p", "parent": 496, "children": [498, 499], "start_point": {"row": 120, "column": 6}, "end_point": {"row": 120, "column": 8}}, {"id": 498, "type": "*", "text": "*", "parent": 497, "children": [], "start_point": {"row": 120, "column": 6}, "end_point": {"row": 120, "column": 7}}, {"id": 499, "type": "identifier", "text": "p", "parent": 497, "children": [], "start_point": {"row": 120, "column": 7}, "end_point": {"row": 120, "column": 8}}, {"id": 500, "type": "==", "text": "==", "parent": 496, "children": [], "start_point": {"row": 120, "column": 9}, "end_point": {"row": 120, "column": 11}}, {"id": 501, "type": "null", "text": "NULL", "parent": 496, "children": [502], "start_point": {"row": 120, "column": 12}, "end_point": {"row": 120, "column": 16}}, {"id": 502, "type": "NULL", "text": "NULL", "parent": 501, "children": [], "start_point": {"row": 120, "column": 12}, "end_point": {"row": 120, "column": 16}}, {"id": 503, "type": "call_expression", "text": "abort()", "parent": 494, "children": [504, 505], "start_point": {"row": 120, "column": 18}, "end_point": {"row": 120, "column": 25}}, {"id": 504, "type": "identifier", "text": "abort", "parent": 503, "children": [], "start_point": {"row": 120, "column": 18}, "end_point": {"row": 120, "column": 23}}, {"id": 505, "type": "argument_list", "text": "()", "parent": 503, "children": [], "start_point": {"row": 120, "column": 23}, "end_point": {"row": 120, "column": 25}}, {"id": 506, "type": "call_expression", "text": "variant_json_init_set((*p)->json, o->json)", "parent": 453, "children": [507, 508], "start_point": {"row": 121, "column": 2}, "end_point": {"row": 121, "column": 44}}, {"id": 507, "type": "identifier", "text": "variant_json_init_set", "parent": 506, "children": [], "start_point": {"row": 121, "column": 2}, "end_point": {"row": 121, "column": 23}}, {"id": 508, "type": "argument_list", "text": "((*p)->json, o->json)", "parent": 506, "children": [509, 515], "start_point": {"row": 121, "column": 23}, "end_point": {"row": 121, "column": 44}}, {"id": 509, "type": "field_expression", "text": "(*p)->json", "parent": 508, "children": [510, 514], "start_point": {"row": 121, "column": 24}, "end_point": {"row": 121, "column": 34}}, {"id": 510, "type": "parenthesized_expression", "text": "(*p)", "parent": 509, "children": [511], "start_point": {"row": 121, "column": 24}, "end_point": {"row": 121, "column": 28}}, {"id": 511, "type": "pointer_expression", "text": "*p", "parent": 510, "children": [512, 513], "start_point": {"row": 121, "column": 25}, "end_point": {"row": 121, "column": 27}}, {"id": 512, "type": "*", "text": "*", "parent": 511, "children": [], "start_point": {"row": 121, "column": 25}, "end_point": {"row": 121, "column": 26}}, {"id": 513, "type": "identifier", "text": "p", "parent": 511, "children": [], "start_point": {"row": 121, "column": 26}, "end_point": {"row": 121, "column": 27}}, {"id": 514, "type": "field_identifier", "text": "json", "parent": 509, "children": [], "start_point": {"row": 121, "column": 30}, "end_point": {"row": 121, "column": 34}}, {"id": 515, "type": "field_expression", "text": "o->json", "parent": 508, "children": [516, 517], "start_point": {"row": 121, "column": 36}, "end_point": {"row": 121, "column": 43}}, {"id": 516, "type": "identifier", "text": "o", "parent": 515, "children": [], "start_point": {"row": 121, "column": 36}, "end_point": {"row": 121, "column": 37}}, {"id": 517, "type": "field_identifier", "text": "json", "parent": 515, "children": [], "start_point": {"row": 121, "column": 39}, "end_point": {"row": 121, "column": 43}}, {"id": 518, "type": "function_definition", "text": "void json_set(mjson_t *p, mjson_t o)\n{\n assert (p != NULL && *p != NULL && o != NULL);\n variant_json_set((*p)->json, o->json);\n}", "parent": null, "children": [519, 520], "start_point": {"row": 124, "column": 0}, "end_point": {"row": 128, "column": 1}}, {"id": 519, "type": "primitive_type", "text": "void", "parent": 518, "children": [], "start_point": {"row": 124, "column": 0}, "end_point": {"row": 124, "column": 4}}, {"id": 520, "type": "function_declarator", "text": "json_set(mjson_t *p, mjson_t o)", "parent": 518, "children": [521, 522], "start_point": {"row": 124, "column": 5}, "end_point": {"row": 124, "column": 36}}, {"id": 521, "type": "identifier", "text": "json_set", "parent": 520, "children": [], "start_point": {"row": 124, "column": 5}, "end_point": {"row": 124, "column": 13}}, {"id": 522, "type": "parameter_list", "text": "(mjson_t *p, mjson_t o)", "parent": 520, "children": [523, 528], "start_point": {"row": 124, "column": 13}, "end_point": {"row": 124, "column": 36}}, {"id": 523, "type": "parameter_declaration", "text": "mjson_t *p", "parent": 522, "children": [524, 525], "start_point": {"row": 124, "column": 14}, "end_point": {"row": 124, "column": 24}}, {"id": 524, "type": "type_identifier", "text": "mjson_t", "parent": 523, "children": [], "start_point": {"row": 124, "column": 14}, "end_point": {"row": 124, "column": 21}}, {"id": 525, "type": "pointer_declarator", "text": "*p", "parent": 523, "children": [526, 527], "start_point": {"row": 124, "column": 22}, "end_point": {"row": 124, "column": 24}}, {"id": 526, "type": "*", "text": "*", "parent": 525, "children": [], "start_point": {"row": 124, "column": 22}, "end_point": {"row": 124, "column": 23}}, {"id": 527, "type": "identifier", "text": "p", "parent": 525, "children": [], "start_point": {"row": 124, "column": 23}, "end_point": {"row": 124, "column": 24}}, {"id": 528, "type": "parameter_declaration", "text": "mjson_t o", "parent": 522, "children": [529, 530], "start_point": {"row": 124, "column": 26}, "end_point": {"row": 124, "column": 35}}, {"id": 529, "type": "type_identifier", "text": "mjson_t", "parent": 528, "children": [], "start_point": {"row": 124, "column": 26}, "end_point": {"row": 124, "column": 33}}, {"id": 530, "type": "identifier", "text": "o", "parent": 528, "children": [], "start_point": {"row": 124, "column": 34}, "end_point": {"row": 124, "column": 35}}, {"id": 531, "type": "call_expression", "text": "assert (p != NULL && *p != NULL && o != NULL)", "parent": 518, "children": [532, 533], "start_point": {"row": 126, "column": 2}, "end_point": {"row": 126, "column": 47}}, {"id": 532, "type": "identifier", "text": "assert", "parent": 531, "children": [], "start_point": {"row": 126, "column": 2}, "end_point": {"row": 126, "column": 8}}, {"id": 533, "type": "argument_list", "text": "(p != NULL && *p != NULL && o != NULL)", "parent": 531, "children": [534], "start_point": {"row": 126, "column": 9}, "end_point": {"row": 126, "column": 47}}, {"id": 534, "type": "binary_expression", "text": "p != NULL && *p != NULL && o != NULL", "parent": 533, "children": [535, 549, 550], "start_point": {"row": 126, "column": 10}, "end_point": {"row": 126, "column": 46}}, {"id": 535, "type": "binary_expression", "text": "p != NULL && *p != NULL", "parent": 534, "children": [536, 541, 542], "start_point": {"row": 126, "column": 10}, "end_point": {"row": 126, "column": 33}}, {"id": 536, "type": "binary_expression", "text": "p != NULL", "parent": 535, "children": [537, 538, 539], "start_point": {"row": 126, "column": 10}, "end_point": {"row": 126, "column": 19}}, {"id": 537, "type": "identifier", "text": "p", "parent": 536, "children": [], "start_point": {"row": 126, "column": 10}, "end_point": {"row": 126, "column": 11}}, {"id": 538, "type": "!=", "text": "!=", "parent": 536, "children": [], "start_point": {"row": 126, "column": 12}, "end_point": {"row": 126, "column": 14}}, {"id": 539, "type": "null", "text": "NULL", "parent": 536, "children": [540], "start_point": {"row": 126, "column": 15}, "end_point": {"row": 126, "column": 19}}, {"id": 540, "type": "NULL", "text": "NULL", "parent": 539, "children": [], "start_point": {"row": 126, "column": 15}, "end_point": {"row": 126, "column": 19}}, {"id": 541, "type": "&&", "text": "&&", "parent": 535, "children": [], "start_point": {"row": 126, "column": 20}, "end_point": {"row": 126, "column": 22}}, {"id": 542, "type": "binary_expression", "text": "*p != NULL", "parent": 535, "children": [543, 546, 547], "start_point": {"row": 126, "column": 23}, "end_point": {"row": 126, "column": 33}}, {"id": 543, "type": "pointer_expression", "text": "*p", "parent": 542, "children": [544, 545], "start_point": {"row": 126, "column": 23}, "end_point": {"row": 126, "column": 25}}, {"id": 544, "type": "*", "text": "*", "parent": 543, "children": [], "start_point": {"row": 126, "column": 23}, "end_point": {"row": 126, "column": 24}}, {"id": 545, "type": "identifier", "text": "p", "parent": 543, "children": [], "start_point": {"row": 126, "column": 24}, "end_point": {"row": 126, "column": 25}}, {"id": 546, "type": "!=", "text": "!=", "parent": 542, "children": [], "start_point": {"row": 126, "column": 26}, "end_point": {"row": 126, "column": 28}}, {"id": 547, "type": "null", "text": "NULL", "parent": 542, "children": [548], "start_point": {"row": 126, "column": 29}, "end_point": {"row": 126, "column": 33}}, {"id": 548, "type": "NULL", "text": "NULL", "parent": 547, "children": [], "start_point": {"row": 126, "column": 29}, "end_point": {"row": 126, "column": 33}}, {"id": 549, "type": "&&", "text": "&&", "parent": 534, "children": [], "start_point": {"row": 126, "column": 34}, "end_point": {"row": 126, "column": 36}}, {"id": 550, "type": "binary_expression", "text": "o != NULL", "parent": 534, "children": [551, 552, 553], "start_point": {"row": 126, "column": 37}, "end_point": {"row": 126, "column": 46}}, {"id": 551, "type": "identifier", "text": "o", "parent": 550, "children": [], "start_point": {"row": 126, "column": 37}, "end_point": {"row": 126, "column": 38}}, {"id": 552, "type": "!=", "text": "!=", "parent": 550, "children": [], "start_point": {"row": 126, "column": 39}, "end_point": {"row": 126, "column": 41}}, {"id": 553, "type": "null", "text": "NULL", "parent": 550, "children": [554], "start_point": {"row": 126, "column": 42}, "end_point": {"row": 126, "column": 46}}, {"id": 554, "type": "NULL", "text": "NULL", "parent": 553, "children": [], "start_point": {"row": 126, "column": 42}, "end_point": {"row": 126, "column": 46}}, {"id": 555, "type": "call_expression", "text": "variant_json_set((*p)->json, o->json)", "parent": 518, "children": [556, 557], "start_point": {"row": 127, "column": 2}, "end_point": {"row": 127, "column": 39}}, {"id": 556, "type": "identifier", "text": "variant_json_set", "parent": 555, "children": [], "start_point": {"row": 127, "column": 2}, "end_point": {"row": 127, "column": 18}}, {"id": 557, "type": "argument_list", "text": "((*p)->json, o->json)", "parent": 555, "children": [558, 564], "start_point": {"row": 127, "column": 18}, "end_point": {"row": 127, "column": 39}}, {"id": 558, "type": "field_expression", "text": "(*p)->json", "parent": 557, "children": [559, 563], "start_point": {"row": 127, "column": 19}, "end_point": {"row": 127, "column": 29}}, {"id": 559, "type": "parenthesized_expression", "text": "(*p)", "parent": 558, "children": [560], "start_point": {"row": 127, "column": 19}, "end_point": {"row": 127, "column": 23}}, {"id": 560, "type": "pointer_expression", "text": "*p", "parent": 559, "children": [561, 562], "start_point": {"row": 127, "column": 20}, "end_point": {"row": 127, "column": 22}}, {"id": 561, "type": "*", "text": "*", "parent": 560, "children": [], "start_point": {"row": 127, "column": 20}, "end_point": {"row": 127, "column": 21}}, {"id": 562, "type": "identifier", "text": "p", "parent": 560, "children": [], "start_point": {"row": 127, "column": 21}, "end_point": {"row": 127, "column": 22}}, {"id": 563, "type": "field_identifier", "text": "json", "parent": 558, "children": [], "start_point": {"row": 127, "column": 25}, "end_point": {"row": 127, "column": 29}}, {"id": 564, "type": "field_expression", "text": "o->json", "parent": 557, "children": [565, 566], "start_point": {"row": 127, "column": 31}, "end_point": {"row": 127, "column": 38}}, {"id": 565, "type": "identifier", "text": "o", "parent": 564, "children": [], "start_point": {"row": 127, "column": 31}, "end_point": {"row": 127, "column": 32}}, {"id": 566, "type": "field_identifier", "text": "json", "parent": 564, "children": [], "start_point": {"row": 127, "column": 34}, "end_point": {"row": 127, "column": 38}}, {"id": 567, "type": "function_definition", "text": "void json_out_str(FILE *f, mjson_t o)\n{\n assert (f != NULL && o != NULL);\n if (variant_json_boolean_p(o->json)) {\n boolean_out_str(f, *variant_json_get_boolean(o->json));\n } else if (variant_json_real_p(o->json)) {\n real_out_str(f, *variant_json_get_real(o->json));\n } else if (variant_json_string_p(o->json)) {\n string_out_str(f, *variant_json_get_string(o->json));\n } else if (variant_json_array_p(o->json)) {\n array_json_out_str(f, *variant_json_get_array(o->json));\n } else if (variant_json_dict_p(o->json)) {\n dict_json_out_str(f, *variant_json_get_dict(o->json));\n } else {\n fprintf(f, \"null\");\n }\n}", "parent": null, "children": [568, 569], "start_point": {"row": 130, "column": 0}, "end_point": {"row": 146, "column": 1}}, {"id": 568, "type": "primitive_type", "text": "void", "parent": 567, "children": [], "start_point": {"row": 130, "column": 0}, "end_point": {"row": 130, "column": 4}}, {"id": 569, "type": "function_declarator", "text": "json_out_str(FILE *f, mjson_t o)", "parent": 567, "children": [570, 571], "start_point": {"row": 130, "column": 5}, "end_point": {"row": 130, "column": 37}}, {"id": 570, "type": "identifier", "text": "json_out_str", "parent": 569, "children": [], "start_point": {"row": 130, "column": 5}, "end_point": {"row": 130, "column": 17}}, {"id": 571, "type": "parameter_list", "text": "(FILE *f, mjson_t o)", "parent": 569, "children": [572, 577], "start_point": {"row": 130, "column": 17}, "end_point": {"row": 130, "column": 37}}, {"id": 572, "type": "parameter_declaration", "text": "FILE *f", "parent": 571, "children": [573, 574], "start_point": {"row": 130, "column": 18}, "end_point": {"row": 130, "column": 25}}, {"id": 573, "type": "type_identifier", "text": "FILE", "parent": 572, "children": [], "start_point": {"row": 130, "column": 18}, "end_point": {"row": 130, "column": 22}}, {"id": 574, "type": "pointer_declarator", "text": "*f", "parent": 572, "children": [575, 576], "start_point": {"row": 130, "column": 23}, "end_point": {"row": 130, "column": 25}}, {"id": 575, "type": "*", "text": "*", "parent": 574, "children": [], "start_point": {"row": 130, "column": 23}, "end_point": {"row": 130, "column": 24}}, {"id": 576, "type": "identifier", "text": "f", "parent": 574, "children": [], "start_point": {"row": 130, "column": 24}, "end_point": {"row": 130, "column": 25}}, {"id": 577, "type": "parameter_declaration", "text": "mjson_t o", "parent": 571, "children": [578, 579], "start_point": {"row": 130, "column": 27}, "end_point": {"row": 130, "column": 36}}, {"id": 578, "type": "type_identifier", "text": "mjson_t", "parent": 577, "children": [], "start_point": {"row": 130, "column": 27}, "end_point": {"row": 130, "column": 34}}, {"id": 579, "type": "identifier", "text": "o", "parent": 577, "children": [], "start_point": {"row": 130, "column": 35}, "end_point": {"row": 130, "column": 36}}, {"id": 580, "type": "call_expression", "text": "assert (f != NULL && o != NULL)", "parent": 567, "children": [581, 582], "start_point": {"row": 132, "column": 2}, "end_point": {"row": 132, "column": 33}}, {"id": 581, "type": "identifier", "text": "assert", "parent": 580, "children": [], "start_point": {"row": 132, "column": 2}, "end_point": {"row": 132, "column": 8}}, {"id": 582, "type": "argument_list", "text": "(f != NULL && o != NULL)", "parent": 580, "children": [583], "start_point": {"row": 132, "column": 9}, "end_point": {"row": 132, "column": 33}}, {"id": 583, "type": "binary_expression", "text": "f != NULL && o != NULL", "parent": 582, "children": [584, 589, 590], "start_point": {"row": 132, "column": 10}, "end_point": {"row": 132, "column": 32}}, {"id": 584, "type": "binary_expression", "text": "f != NULL", "parent": 583, "children": [585, 586, 587], "start_point": {"row": 132, "column": 10}, "end_point": {"row": 132, "column": 19}}, {"id": 585, "type": "identifier", "text": "f", "parent": 584, "children": [], "start_point": {"row": 132, "column": 10}, "end_point": {"row": 132, "column": 11}}, {"id": 586, "type": "!=", "text": "!=", "parent": 584, "children": [], "start_point": {"row": 132, "column": 12}, "end_point": {"row": 132, "column": 14}}, {"id": 587, "type": "null", "text": "NULL", "parent": 584, "children": [588], "start_point": {"row": 132, "column": 15}, "end_point": {"row": 132, "column": 19}}, {"id": 588, "type": "NULL", "text": "NULL", "parent": 587, "children": [], "start_point": {"row": 132, "column": 15}, "end_point": {"row": 132, "column": 19}}, {"id": 589, "type": "&&", "text": "&&", "parent": 583, "children": [], "start_point": {"row": 132, "column": 20}, "end_point": {"row": 132, "column": 22}}, {"id": 590, "type": "binary_expression", "text": "o != NULL", "parent": 583, "children": [591, 592, 593], "start_point": {"row": 132, "column": 23}, "end_point": {"row": 132, "column": 32}}, {"id": 591, "type": "identifier", "text": "o", "parent": 590, "children": [], "start_point": {"row": 132, "column": 23}, "end_point": {"row": 132, "column": 24}}, {"id": 592, "type": "!=", "text": "!=", "parent": 590, "children": [], "start_point": {"row": 132, "column": 25}, "end_point": {"row": 132, "column": 27}}, {"id": 593, "type": "null", "text": "NULL", "parent": 590, "children": [594], "start_point": {"row": 132, "column": 28}, "end_point": {"row": 132, "column": 32}}, {"id": 594, "type": "NULL", "text": "NULL", "parent": 593, "children": [], "start_point": {"row": 132, "column": 28}, "end_point": {"row": 132, "column": 32}}, {"id": 595, "type": "if_statement", "text": "if (variant_json_boolean_p(o->json)) {\n boolean_out_str(f, *variant_json_get_boolean(o->json));\n } else if (variant_json_real_p(o->json)) {\n real_out_str(f, *variant_json_get_real(o->json));\n } else if (variant_json_string_p(o->json)) {\n string_out_str(f, *variant_json_get_string(o->json));\n } else if (variant_json_array_p(o->json)) {\n array_json_out_str(f, *variant_json_get_array(o->json));\n } else if (variant_json_dict_p(o->json)) {\n dict_json_out_str(f, *variant_json_get_dict(o->json));\n } else {\n fprintf(f, \"null\");\n }", "parent": 567, "children": [596, 615], "start_point": {"row": 133, "column": 2}, "end_point": {"row": 145, "column": 3}}, {"id": 596, "type": "parenthesized_expression", "text": "(variant_json_boolean_p(o->json))", "parent": 595, "children": [597], "start_point": {"row": 133, "column": 5}, "end_point": {"row": 133, "column": 38}}, {"id": 597, "type": "call_expression", "text": "variant_json_boolean_p(o->json)", "parent": 596, "children": [598, 599], "start_point": {"row": 133, "column": 6}, "end_point": {"row": 133, "column": 37}}, {"id": 598, "type": "identifier", "text": "variant_json_boolean_p", "parent": 597, "children": [], "start_point": {"row": 133, "column": 6}, "end_point": {"row": 133, "column": 28}}, {"id": 599, "type": "argument_list", "text": "(o->json)", "parent": 597, "children": [600], "start_point": {"row": 133, "column": 28}, "end_point": {"row": 133, "column": 37}}, {"id": 600, "type": "field_expression", "text": "o->json", "parent": 599, "children": [601, 602], "start_point": {"row": 133, "column": 29}, "end_point": {"row": 133, "column": 36}}, {"id": 601, "type": "identifier", "text": "o", "parent": 600, "children": [], "start_point": {"row": 133, "column": 29}, "end_point": {"row": 133, "column": 30}}, {"id": 602, "type": "field_identifier", "text": "json", "parent": 600, "children": [], "start_point": {"row": 133, "column": 32}, "end_point": {"row": 133, "column": 36}}, {"id": 603, "type": "call_expression", "text": "boolean_out_str(f, *variant_json_get_boolean(o->json))", "parent": 595, "children": [604, 605], "start_point": {"row": 134, "column": 4}, "end_point": {"row": 134, "column": 58}}, {"id": 604, "type": "identifier", "text": "boolean_out_str", "parent": 603, "children": [], "start_point": {"row": 134, "column": 4}, "end_point": {"row": 134, "column": 19}}, {"id": 605, "type": "argument_list", "text": "(f, *variant_json_get_boolean(o->json))", "parent": 603, "children": [606, 607], "start_point": {"row": 134, "column": 19}, "end_point": {"row": 134, "column": 58}}, {"id": 606, "type": "identifier", "text": "f", "parent": 605, "children": [], "start_point": {"row": 134, "column": 20}, "end_point": {"row": 134, "column": 21}}, {"id": 607, "type": "pointer_expression", "text": "*variant_json_get_boolean(o->json)", "parent": 605, "children": [608, 609], "start_point": {"row": 134, "column": 23}, "end_point": {"row": 134, "column": 57}}, {"id": 608, "type": "*", "text": "*", "parent": 607, "children": [], "start_point": {"row": 134, "column": 23}, "end_point": {"row": 134, "column": 24}}, {"id": 609, "type": "call_expression", "text": "variant_json_get_boolean(o->json)", "parent": 607, "children": [610, 611], "start_point": {"row": 134, "column": 24}, "end_point": {"row": 134, "column": 57}}, {"id": 610, "type": "identifier", "text": "variant_json_get_boolean", "parent": 609, "children": [], "start_point": {"row": 134, "column": 24}, "end_point": {"row": 134, "column": 48}}, {"id": 611, "type": "argument_list", "text": "(o->json)", "parent": 609, "children": [612], "start_point": {"row": 134, "column": 48}, "end_point": {"row": 134, "column": 57}}, {"id": 612, "type": "field_expression", "text": "o->json", "parent": 611, "children": [613, 614], "start_point": {"row": 134, "column": 49}, "end_point": {"row": 134, "column": 56}}, {"id": 613, "type": "identifier", "text": "o", "parent": 612, "children": [], "start_point": {"row": 134, "column": 49}, "end_point": {"row": 134, "column": 50}}, {"id": 614, "type": "field_identifier", "text": "json", "parent": 612, "children": [], "start_point": {"row": 134, "column": 52}, "end_point": {"row": 134, "column": 56}}, {"id": 615, "type": "else_clause", "text": "else if (variant_json_real_p(o->json)) {\n real_out_str(f, *variant_json_get_real(o->json));\n } else if (variant_json_string_p(o->json)) {\n string_out_str(f, *variant_json_get_string(o->json));\n } else if (variant_json_array_p(o->json)) {\n array_json_out_str(f, *variant_json_get_array(o->json));\n } else if (variant_json_dict_p(o->json)) {\n dict_json_out_str(f, *variant_json_get_dict(o->json));\n } else {\n fprintf(f, \"null\");\n }", "parent": 595, "children": [616], "start_point": {"row": 135, "column": 4}, "end_point": {"row": 145, "column": 3}}, {"id": 616, "type": "if_statement", "text": "if (variant_json_real_p(o->json)) {\n real_out_str(f, *variant_json_get_real(o->json));\n } else if (variant_json_string_p(o->json)) {\n string_out_str(f, *variant_json_get_string(o->json));\n } else if (variant_json_array_p(o->json)) {\n array_json_out_str(f, *variant_json_get_array(o->json));\n } else if (variant_json_dict_p(o->json)) {\n dict_json_out_str(f, *variant_json_get_dict(o->json));\n } else {\n fprintf(f, \"null\");\n }", "parent": 615, "children": [617, 636], "start_point": {"row": 135, "column": 9}, "end_point": {"row": 145, "column": 3}}, {"id": 617, "type": "parenthesized_expression", "text": "(variant_json_real_p(o->json))", "parent": 616, "children": [618], "start_point": {"row": 135, "column": 12}, "end_point": {"row": 135, "column": 42}}, {"id": 618, "type": "call_expression", "text": "variant_json_real_p(o->json)", "parent": 617, "children": [619, 620], "start_point": {"row": 135, "column": 13}, "end_point": {"row": 135, "column": 41}}, {"id": 619, "type": "identifier", "text": "variant_json_real_p", "parent": 618, "children": [], "start_point": {"row": 135, "column": 13}, "end_point": {"row": 135, "column": 32}}, {"id": 620, "type": "argument_list", "text": "(o->json)", "parent": 618, "children": [621], "start_point": {"row": 135, "column": 32}, "end_point": {"row": 135, "column": 41}}, {"id": 621, "type": "field_expression", "text": "o->json", "parent": 620, "children": [622, 623], "start_point": {"row": 135, "column": 33}, "end_point": {"row": 135, "column": 40}}, {"id": 622, "type": "identifier", "text": "o", "parent": 621, "children": [], "start_point": {"row": 135, "column": 33}, "end_point": {"row": 135, "column": 34}}, {"id": 623, "type": "field_identifier", "text": "json", "parent": 621, "children": [], "start_point": {"row": 135, "column": 36}, "end_point": {"row": 135, "column": 40}}, {"id": 624, "type": "call_expression", "text": "real_out_str(f, *variant_json_get_real(o->json))", "parent": 616, "children": [625, 626], "start_point": {"row": 136, "column": 4}, "end_point": {"row": 136, "column": 52}}, {"id": 625, "type": "identifier", "text": "real_out_str", "parent": 624, "children": [], "start_point": {"row": 136, "column": 4}, "end_point": {"row": 136, "column": 16}}, {"id": 626, "type": "argument_list", "text": "(f, *variant_json_get_real(o->json))", "parent": 624, "children": [627, 628], "start_point": {"row": 136, "column": 16}, "end_point": {"row": 136, "column": 52}}, {"id": 627, "type": "identifier", "text": "f", "parent": 626, "children": [], "start_point": {"row": 136, "column": 17}, "end_point": {"row": 136, "column": 18}}, {"id": 628, "type": "pointer_expression", "text": "*variant_json_get_real(o->json)", "parent": 626, "children": [629, 630], "start_point": {"row": 136, "column": 20}, "end_point": {"row": 136, "column": 51}}, {"id": 629, "type": "*", "text": "*", "parent": 628, "children": [], "start_point": {"row": 136, "column": 20}, "end_point": {"row": 136, "column": 21}}, {"id": 630, "type": "call_expression", "text": "variant_json_get_real(o->json)", "parent": 628, "children": [631, 632], "start_point": {"row": 136, "column": 21}, "end_point": {"row": 136, "column": 51}}, {"id": 631, "type": "identifier", "text": "variant_json_get_real", "parent": 630, "children": [], "start_point": {"row": 136, "column": 21}, "end_point": {"row": 136, "column": 42}}, {"id": 632, "type": "argument_list", "text": "(o->json)", "parent": 630, "children": [633], "start_point": {"row": 136, "column": 42}, "end_point": {"row": 136, "column": 51}}, {"id": 633, "type": "field_expression", "text": "o->json", "parent": 632, "children": [634, 635], "start_point": {"row": 136, "column": 43}, "end_point": {"row": 136, "column": 50}}, {"id": 634, "type": "identifier", "text": "o", "parent": 633, "children": [], "start_point": {"row": 136, "column": 43}, "end_point": {"row": 136, "column": 44}}, {"id": 635, "type": "field_identifier", "text": "json", "parent": 633, "children": [], "start_point": {"row": 136, "column": 46}, "end_point": {"row": 136, "column": 50}}, {"id": 636, "type": "else_clause", "text": "else if (variant_json_string_p(o->json)) {\n string_out_str(f, *variant_json_get_string(o->json));\n } else if (variant_json_array_p(o->json)) {\n array_json_out_str(f, *variant_json_get_array(o->json));\n } else if (variant_json_dict_p(o->json)) {\n dict_json_out_str(f, *variant_json_get_dict(o->json));\n } else {\n fprintf(f, \"null\");\n }", "parent": 616, "children": [637], "start_point": {"row": 137, "column": 4}, "end_point": {"row": 145, "column": 3}}, {"id": 637, "type": "if_statement", "text": "if (variant_json_string_p(o->json)) {\n string_out_str(f, *variant_json_get_string(o->json));\n } else if (variant_json_array_p(o->json)) {\n array_json_out_str(f, *variant_json_get_array(o->json));\n } else if (variant_json_dict_p(o->json)) {\n dict_json_out_str(f, *variant_json_get_dict(o->json));\n } else {\n fprintf(f, \"null\");\n }", "parent": 636, "children": [638, 657], "start_point": {"row": 137, "column": 9}, "end_point": {"row": 145, "column": 3}}, {"id": 638, "type": "parenthesized_expression", "text": "(variant_json_string_p(o->json))", "parent": 637, "children": [639], "start_point": {"row": 137, "column": 12}, "end_point": {"row": 137, "column": 44}}, {"id": 639, "type": "call_expression", "text": "variant_json_string_p(o->json)", "parent": 638, "children": [640, 641], "start_point": {"row": 137, "column": 13}, "end_point": {"row": 137, "column": 43}}, {"id": 640, "type": "identifier", "text": "variant_json_string_p", "parent": 639, "children": [], "start_point": {"row": 137, "column": 13}, "end_point": {"row": 137, "column": 34}}, {"id": 641, "type": "argument_list", "text": "(o->json)", "parent": 639, "children": [642], "start_point": {"row": 137, "column": 34}, "end_point": {"row": 137, "column": 43}}, {"id": 642, "type": "field_expression", "text": "o->json", "parent": 641, "children": [643, 644], "start_point": {"row": 137, "column": 35}, "end_point": {"row": 137, "column": 42}}, {"id": 643, "type": "identifier", "text": "o", "parent": 642, "children": [], "start_point": {"row": 137, "column": 35}, "end_point": {"row": 137, "column": 36}}, {"id": 644, "type": "field_identifier", "text": "json", "parent": 642, "children": [], "start_point": {"row": 137, "column": 38}, "end_point": {"row": 137, "column": 42}}, {"id": 645, "type": "call_expression", "text": "string_out_str(f, *variant_json_get_string(o->json))", "parent": 637, "children": [646, 647], "start_point": {"row": 138, "column": 4}, "end_point": {"row": 138, "column": 56}}, {"id": 646, "type": "identifier", "text": "string_out_str", "parent": 645, "children": [], "start_point": {"row": 138, "column": 4}, "end_point": {"row": 138, "column": 18}}, {"id": 647, "type": "argument_list", "text": "(f, *variant_json_get_string(o->json))", "parent": 645, "children": [648, 649], "start_point": {"row": 138, "column": 18}, "end_point": {"row": 138, "column": 56}}, {"id": 648, "type": "identifier", "text": "f", "parent": 647, "children": [], "start_point": {"row": 138, "column": 19}, "end_point": {"row": 138, "column": 20}}, {"id": 649, "type": "pointer_expression", "text": "*variant_json_get_string(o->json)", "parent": 647, "children": [650, 651], "start_point": {"row": 138, "column": 22}, "end_point": {"row": 138, "column": 55}}, {"id": 650, "type": "*", "text": "*", "parent": 649, "children": [], "start_point": {"row": 138, "column": 22}, "end_point": {"row": 138, "column": 23}}, {"id": 651, "type": "call_expression", "text": "variant_json_get_string(o->json)", "parent": 649, "children": [652, 653], "start_point": {"row": 138, "column": 23}, "end_point": {"row": 138, "column": 55}}, {"id": 652, "type": "identifier", "text": "variant_json_get_string", "parent": 651, "children": [], "start_point": {"row": 138, "column": 23}, "end_point": {"row": 138, "column": 46}}, {"id": 653, "type": "argument_list", "text": "(o->json)", "parent": 651, "children": [654], "start_point": {"row": 138, "column": 46}, "end_point": {"row": 138, "column": 55}}, {"id": 654, "type": "field_expression", "text": "o->json", "parent": 653, "children": [655, 656], "start_point": {"row": 138, "column": 47}, "end_point": {"row": 138, "column": 54}}, {"id": 655, "type": "identifier", "text": "o", "parent": 654, "children": [], "start_point": {"row": 138, "column": 47}, "end_point": {"row": 138, "column": 48}}, {"id": 656, "type": "field_identifier", "text": "json", "parent": 654, "children": [], "start_point": {"row": 138, "column": 50}, "end_point": {"row": 138, "column": 54}}, {"id": 657, "type": "else_clause", "text": "else if (variant_json_array_p(o->json)) {\n array_json_out_str(f, *variant_json_get_array(o->json));\n } else if (variant_json_dict_p(o->json)) {\n dict_json_out_str(f, *variant_json_get_dict(o->json));\n } else {\n fprintf(f, \"null\");\n }", "parent": 637, "children": [658], "start_point": {"row": 139, "column": 4}, "end_point": {"row": 145, "column": 3}}, {"id": 658, "type": "if_statement", "text": "if (variant_json_array_p(o->json)) {\n array_json_out_str(f, *variant_json_get_array(o->json));\n } else if (variant_json_dict_p(o->json)) {\n dict_json_out_str(f, *variant_json_get_dict(o->json));\n } else {\n fprintf(f, \"null\");\n }", "parent": 657, "children": [659, 678], "start_point": {"row": 139, "column": 9}, "end_point": {"row": 145, "column": 3}}, {"id": 659, "type": "parenthesized_expression", "text": "(variant_json_array_p(o->json))", "parent": 658, "children": [660], "start_point": {"row": 139, "column": 12}, "end_point": {"row": 139, "column": 43}}, {"id": 660, "type": "call_expression", "text": "variant_json_array_p(o->json)", "parent": 659, "children": [661, 662], "start_point": {"row": 139, "column": 13}, "end_point": {"row": 139, "column": 42}}, {"id": 661, "type": "identifier", "text": "variant_json_array_p", "parent": 660, "children": [], "start_point": {"row": 139, "column": 13}, "end_point": {"row": 139, "column": 33}}, {"id": 662, "type": "argument_list", "text": "(o->json)", "parent": 660, "children": [663], "start_point": {"row": 139, "column": 33}, "end_point": {"row": 139, "column": 42}}, {"id": 663, "type": "field_expression", "text": "o->json", "parent": 662, "children": [664, 665], "start_point": {"row": 139, "column": 34}, "end_point": {"row": 139, "column": 41}}, {"id": 664, "type": "identifier", "text": "o", "parent": 663, "children": [], "start_point": {"row": 139, "column": 34}, "end_point": {"row": 139, "column": 35}}, {"id": 665, "type": "field_identifier", "text": "json", "parent": 663, "children": [], "start_point": {"row": 139, "column": 37}, "end_point": {"row": 139, "column": 41}}, {"id": 666, "type": "call_expression", "text": "array_json_out_str(f, *variant_json_get_array(o->json))", "parent": 658, "children": [667, 668], "start_point": {"row": 140, "column": 4}, "end_point": {"row": 140, "column": 59}}, {"id": 667, "type": "identifier", "text": "array_json_out_str", "parent": 666, "children": [], "start_point": {"row": 140, "column": 4}, "end_point": {"row": 140, "column": 22}}, {"id": 668, "type": "argument_list", "text": "(f, *variant_json_get_array(o->json))", "parent": 666, "children": [669, 670], "start_point": {"row": 140, "column": 22}, "end_point": {"row": 140, "column": 59}}, {"id": 669, "type": "identifier", "text": "f", "parent": 668, "children": [], "start_point": {"row": 140, "column": 23}, "end_point": {"row": 140, "column": 24}}, {"id": 670, "type": "pointer_expression", "text": "*variant_json_get_array(o->json)", "parent": 668, "children": [671, 672], "start_point": {"row": 140, "column": 26}, "end_point": {"row": 140, "column": 58}}, {"id": 671, "type": "*", "text": "*", "parent": 670, "children": [], "start_point": {"row": 140, "column": 26}, "end_point": {"row": 140, "column": 27}}, {"id": 672, "type": "call_expression", "text": "variant_json_get_array(o->json)", "parent": 670, "children": [673, 674], "start_point": {"row": 140, "column": 27}, "end_point": {"row": 140, "column": 58}}, {"id": 673, "type": "identifier", "text": "variant_json_get_array", "parent": 672, "children": [], "start_point": {"row": 140, "column": 27}, "end_point": {"row": 140, "column": 49}}, {"id": 674, "type": "argument_list", "text": "(o->json)", "parent": 672, "children": [675], "start_point": {"row": 140, "column": 49}, "end_point": {"row": 140, "column": 58}}, {"id": 675, "type": "field_expression", "text": "o->json", "parent": 674, "children": [676, 677], "start_point": {"row": 140, "column": 50}, "end_point": {"row": 140, "column": 57}}, {"id": 676, "type": "identifier", "text": "o", "parent": 675, "children": [], "start_point": {"row": 140, "column": 50}, "end_point": {"row": 140, "column": 51}}, {"id": 677, "type": "field_identifier", "text": "json", "parent": 675, "children": [], "start_point": {"row": 140, "column": 53}, "end_point": {"row": 140, "column": 57}}, {"id": 678, "type": "else_clause", "text": "else if (variant_json_dict_p(o->json)) {\n dict_json_out_str(f, *variant_json_get_dict(o->json));\n } else {\n fprintf(f, \"null\");\n }", "parent": 658, "children": [679], "start_point": {"row": 141, "column": 4}, "end_point": {"row": 145, "column": 3}}, {"id": 679, "type": "if_statement", "text": "if (variant_json_dict_p(o->json)) {\n dict_json_out_str(f, *variant_json_get_dict(o->json));\n } else {\n fprintf(f, \"null\");\n }", "parent": 678, "children": [680, 699], "start_point": {"row": 141, "column": 9}, "end_point": {"row": 145, "column": 3}}, {"id": 680, "type": "parenthesized_expression", "text": "(variant_json_dict_p(o->json))", "parent": 679, "children": [681], "start_point": {"row": 141, "column": 12}, "end_point": {"row": 141, "column": 42}}, {"id": 681, "type": "call_expression", "text": "variant_json_dict_p(o->json)", "parent": 680, "children": [682, 683], "start_point": {"row": 141, "column": 13}, "end_point": {"row": 141, "column": 41}}, {"id": 682, "type": "identifier", "text": "variant_json_dict_p", "parent": 681, "children": [], "start_point": {"row": 141, "column": 13}, "end_point": {"row": 141, "column": 32}}, {"id": 683, "type": "argument_list", "text": "(o->json)", "parent": 681, "children": [684], "start_point": {"row": 141, "column": 32}, "end_point": {"row": 141, "column": 41}}, {"id": 684, "type": "field_expression", "text": "o->json", "parent": 683, "children": [685, 686], "start_point": {"row": 141, "column": 33}, "end_point": {"row": 141, "column": 40}}, {"id": 685, "type": "identifier", "text": "o", "parent": 684, "children": [], "start_point": {"row": 141, "column": 33}, "end_point": {"row": 141, "column": 34}}, {"id": 686, "type": "field_identifier", "text": "json", "parent": 684, "children": [], "start_point": {"row": 141, "column": 36}, "end_point": {"row": 141, "column": 40}}, {"id": 687, "type": "call_expression", "text": "dict_json_out_str(f, *variant_json_get_dict(o->json))", "parent": 679, "children": [688, 689], "start_point": {"row": 142, "column": 4}, "end_point": {"row": 142, "column": 57}}, {"id": 688, "type": "identifier", "text": "dict_json_out_str", "parent": 687, "children": [], "start_point": {"row": 142, "column": 4}, "end_point": {"row": 142, "column": 21}}, {"id": 689, "type": "argument_list", "text": "(f, *variant_json_get_dict(o->json))", "parent": 687, "children": [690, 691], "start_point": {"row": 142, "column": 21}, "end_point": {"row": 142, "column": 57}}, {"id": 690, "type": "identifier", "text": "f", "parent": 689, "children": [], "start_point": {"row": 142, "column": 22}, "end_point": {"row": 142, "column": 23}}, {"id": 691, "type": "pointer_expression", "text": "*variant_json_get_dict(o->json)", "parent": 689, "children": [692, 693], "start_point": {"row": 142, "column": 25}, "end_point": {"row": 142, "column": 56}}, {"id": 692, "type": "*", "text": "*", "parent": 691, "children": [], "start_point": {"row": 142, "column": 25}, "end_point": {"row": 142, "column": 26}}, {"id": 693, "type": "call_expression", "text": "variant_json_get_dict(o->json)", "parent": 691, "children": [694, 695], "start_point": {"row": 142, "column": 26}, "end_point": {"row": 142, "column": 56}}, {"id": 694, "type": "identifier", "text": "variant_json_get_dict", "parent": 693, "children": [], "start_point": {"row": 142, "column": 26}, "end_point": {"row": 142, "column": 47}}, {"id": 695, "type": "argument_list", "text": "(o->json)", "parent": 693, "children": [696], "start_point": {"row": 142, "column": 47}, "end_point": {"row": 142, "column": 56}}, {"id": 696, "type": "field_expression", "text": "o->json", "parent": 695, "children": [697, 698], "start_point": {"row": 142, "column": 48}, "end_point": {"row": 142, "column": 55}}, {"id": 697, "type": "identifier", "text": "o", "parent": 696, "children": [], "start_point": {"row": 142, "column": 48}, "end_point": {"row": 142, "column": 49}}, {"id": 698, "type": "field_identifier", "text": "json", "parent": 696, "children": [], "start_point": {"row": 142, "column": 51}, "end_point": {"row": 142, "column": 55}}, {"id": 699, "type": "else_clause", "text": "else {\n fprintf(f, \"null\");\n }", "parent": 679, "children": [], "start_point": {"row": 143, "column": 4}, "end_point": {"row": 145, "column": 3}}, {"id": 700, "type": "call_expression", "text": "fprintf(f, \"null\")", "parent": 699, "children": [701, 702], "start_point": {"row": 144, "column": 4}, "end_point": {"row": 144, "column": 22}}, {"id": 701, "type": "identifier", "text": "fprintf", "parent": 700, "children": [], "start_point": {"row": 144, "column": 4}, "end_point": {"row": 144, "column": 11}}, {"id": 702, "type": "argument_list", "text": "(f, \"null\")", "parent": 700, "children": [703, 704], "start_point": {"row": 144, "column": 11}, "end_point": {"row": 144, "column": 22}}, {"id": 703, "type": "identifier", "text": "f", "parent": 702, "children": [], "start_point": {"row": 144, "column": 12}, "end_point": {"row": 144, "column": 13}}, {"id": 704, "type": "string_literal", "text": "\"null\"", "parent": 702, "children": [], "start_point": {"row": 144, "column": 15}, "end_point": {"row": 144, "column": 21}}, {"id": 705, "type": "function_definition", "text": "static int skip_space(FILE *f)\n{\n int c;\n do {\n c = fgetc(f);\n if (ferror(f) || feof(f)) return 0;\n } while (isspace(c));\n ungetc(c, f);\n return c;\n}", "parent": null, "children": [706, 707], "start_point": {"row": 148, "column": 0}, "end_point": {"row": 157, "column": 1}}, {"id": 706, "type": "primitive_type", "text": "int", "parent": 705, "children": [], "start_point": {"row": 148, "column": 7}, "end_point": {"row": 148, "column": 10}}, {"id": 707, "type": "function_declarator", "text": "skip_space(FILE *f)", "parent": 705, "children": [708, 709], "start_point": {"row": 148, "column": 11}, "end_point": {"row": 148, "column": 30}}, {"id": 708, "type": "identifier", "text": "skip_space", "parent": 707, "children": [], "start_point": {"row": 148, "column": 11}, "end_point": {"row": 148, "column": 21}}, {"id": 709, "type": "parameter_list", "text": "(FILE *f)", "parent": 707, "children": [710], "start_point": {"row": 148, "column": 21}, "end_point": {"row": 148, "column": 30}}, {"id": 710, "type": "parameter_declaration", "text": "FILE *f", "parent": 709, "children": [711, 712], "start_point": {"row": 148, "column": 22}, "end_point": {"row": 148, "column": 29}}, {"id": 711, "type": "type_identifier", "text": "FILE", "parent": 710, "children": [], "start_point": {"row": 148, "column": 22}, "end_point": {"row": 148, "column": 26}}, {"id": 712, "type": "pointer_declarator", "text": "*f", "parent": 710, "children": [713, 714], "start_point": {"row": 148, "column": 27}, "end_point": {"row": 148, "column": 29}}, {"id": 713, "type": "*", "text": "*", "parent": 712, "children": [], "start_point": {"row": 148, "column": 27}, "end_point": {"row": 148, "column": 28}}, {"id": 714, "type": "identifier", "text": "f", "parent": 712, "children": [], "start_point": {"row": 148, "column": 28}, "end_point": {"row": 148, "column": 29}}, {"id": 715, "type": "declaration", "text": "int c;", "parent": 705, "children": [716, 717], "start_point": {"row": 150, "column": 2}, "end_point": {"row": 150, "column": 8}}, {"id": 716, "type": "primitive_type", "text": "int", "parent": 715, "children": [], "start_point": {"row": 150, "column": 2}, "end_point": {"row": 150, "column": 5}}, {"id": 717, "type": "identifier", "text": "c", "parent": 715, "children": [], "start_point": {"row": 150, "column": 6}, "end_point": {"row": 150, "column": 7}}, {"id": 718, "type": "do_statement", "text": "do {\n c = fgetc(f);\n if (ferror(f) || feof(f)) return 0;\n } while (isspace(c));", "parent": 705, "children": [740], "start_point": {"row": 151, "column": 2}, "end_point": {"row": 154, "column": 23}}, {"id": 719, "type": "assignment_expression", "text": "c = fgetc(f)", "parent": 718, "children": [720, 721, 722], "start_point": {"row": 152, "column": 4}, "end_point": {"row": 152, "column": 16}}, {"id": 720, "type": "identifier", "text": "c", "parent": 719, "children": [], "start_point": {"row": 152, "column": 4}, "end_point": {"row": 152, "column": 5}}, {"id": 721, "type": "=", "text": "=", "parent": 719, "children": [], "start_point": {"row": 152, "column": 6}, "end_point": {"row": 152, "column": 7}}, {"id": 722, "type": "call_expression", "text": "fgetc(f)", "parent": 719, "children": [723, 724], "start_point": {"row": 152, "column": 8}, "end_point": {"row": 152, "column": 16}}, {"id": 723, "type": "identifier", "text": "fgetc", "parent": 722, "children": [], "start_point": {"row": 152, "column": 8}, "end_point": {"row": 152, "column": 13}}, {"id": 724, "type": "argument_list", "text": "(f)", "parent": 722, "children": [725], "start_point": {"row": 152, "column": 13}, "end_point": {"row": 152, "column": 16}}, {"id": 725, "type": "identifier", "text": "f", "parent": 724, "children": [], "start_point": {"row": 152, "column": 14}, "end_point": {"row": 152, "column": 15}}, {"id": 726, "type": "if_statement", "text": "if (ferror(f) || feof(f)) return 0;", "parent": 718, "children": [727, 738], "start_point": {"row": 153, "column": 4}, "end_point": {"row": 153, "column": 39}}, {"id": 727, "type": "parenthesized_expression", "text": "(ferror(f) || feof(f))", "parent": 726, "children": [728], "start_point": {"row": 153, "column": 7}, "end_point": {"row": 153, "column": 29}}, {"id": 728, "type": "binary_expression", "text": "ferror(f) || feof(f)", "parent": 727, "children": [729, 733, 734], "start_point": {"row": 153, "column": 8}, "end_point": {"row": 153, "column": 28}}, {"id": 729, "type": "call_expression", "text": "ferror(f)", "parent": 728, "children": [730, 731], "start_point": {"row": 153, "column": 8}, "end_point": {"row": 153, "column": 17}}, {"id": 730, "type": "identifier", "text": "ferror", "parent": 729, "children": [], "start_point": {"row": 153, "column": 8}, "end_point": {"row": 153, "column": 14}}, {"id": 731, "type": "argument_list", "text": "(f)", "parent": 729, "children": [732], "start_point": {"row": 153, "column": 14}, "end_point": {"row": 153, "column": 17}}, {"id": 732, "type": "identifier", "text": "f", "parent": 731, "children": [], "start_point": {"row": 153, "column": 15}, "end_point": {"row": 153, "column": 16}}, {"id": 733, "type": "||", "text": "||", "parent": 728, "children": [], "start_point": {"row": 153, "column": 18}, "end_point": {"row": 153, "column": 20}}, {"id": 734, "type": "call_expression", "text": "feof(f)", "parent": 728, "children": [735, 736], "start_point": {"row": 153, "column": 21}, "end_point": {"row": 153, "column": 28}}, {"id": 735, "type": "identifier", "text": "feof", "parent": 734, "children": [], "start_point": {"row": 153, "column": 21}, "end_point": {"row": 153, "column": 25}}, {"id": 736, "type": "argument_list", "text": "(f)", "parent": 734, "children": [737], "start_point": {"row": 153, "column": 25}, "end_point": {"row": 153, "column": 28}}, {"id": 737, "type": "identifier", "text": "f", "parent": 736, "children": [], "start_point": {"row": 153, "column": 26}, "end_point": {"row": 153, "column": 27}}, {"id": 738, "type": "return_statement", "text": "return 0;", "parent": 726, "children": [739], "start_point": {"row": 153, "column": 30}, "end_point": {"row": 153, "column": 39}}, {"id": 739, "type": "number_literal", "text": "0", "parent": 738, "children": [], "start_point": {"row": 153, "column": 37}, "end_point": {"row": 153, "column": 38}}, {"id": 740, "type": "parenthesized_expression", "text": "(isspace(c))", "parent": 718, "children": [741], "start_point": {"row": 154, "column": 10}, "end_point": {"row": 154, "column": 22}}, {"id": 741, "type": "call_expression", "text": "isspace(c)", "parent": 740, "children": [742, 743], "start_point": {"row": 154, "column": 11}, "end_point": {"row": 154, "column": 21}}, {"id": 742, "type": "identifier", "text": "isspace", "parent": 741, "children": [], "start_point": {"row": 154, "column": 11}, "end_point": {"row": 154, "column": 18}}, {"id": 743, "type": "argument_list", "text": "(c)", "parent": 741, "children": [744], "start_point": {"row": 154, "column": 18}, "end_point": {"row": 154, "column": 21}}, {"id": 744, "type": "identifier", "text": "c", "parent": 743, "children": [], "start_point": {"row": 154, "column": 19}, "end_point": {"row": 154, "column": 20}}, {"id": 745, "type": "call_expression", "text": "ungetc(c, f)", "parent": 705, "children": [746, 747], "start_point": {"row": 155, "column": 2}, "end_point": {"row": 155, "column": 14}}, {"id": 746, "type": "identifier", "text": "ungetc", "parent": 745, "children": [], "start_point": {"row": 155, "column": 2}, "end_point": {"row": 155, "column": 8}}, {"id": 747, "type": "argument_list", "text": "(c, f)", "parent": 745, "children": [748, 749], "start_point": {"row": 155, "column": 8}, "end_point": {"row": 155, "column": 14}}, {"id": 748, "type": "identifier", "text": "c", "parent": 747, "children": [], "start_point": {"row": 155, "column": 9}, "end_point": {"row": 155, "column": 10}}, {"id": 749, "type": "identifier", "text": "f", "parent": 747, "children": [], "start_point": {"row": 155, "column": 12}, "end_point": {"row": 155, "column": 13}}, {"id": 750, "type": "return_statement", "text": "return c;", "parent": 705, "children": [751], "start_point": {"row": 156, "column": 2}, "end_point": {"row": 156, "column": 11}}, {"id": 751, "type": "identifier", "text": "c", "parent": 750, "children": [], "start_point": {"row": 156, "column": 9}, "end_point": {"row": 156, "column": 10}}, {"id": 752, "type": "function_definition", "text": "bool json_in_str(mjson_t *p, FILE *f)\n{\n assert (p != NULL);\n bool b;\n char c = skip_space(f);\n if (ferror(f) || feof(f)) return false;\n variant_json_clear((*p)->json);\n if (c == 't' || c == 'f') {\n variant_json_init_boolean((*p)->json);\n b = boolean_in_str(variant_json_get_boolean((*p)->json), f);\n if (!b) return false;\n } else if ((c >= '0' && c <= '9') || (c == '-')){\n variant_json_init_real((*p)->json);\n b = real_in_str(variant_json_get_real((*p)->json), f);\n if (!b) return false;\n } else if (c == '\\\"') {\n variant_json_init_string((*p)->json);\n b = string_in_str(*variant_json_get_string((*p)->json), f);\n if (!b) return false;\n } else if (c == '[') {\n variant_json_init_array((*p)->json);\n b = array_json_in_str(*variant_json_get_array((*p)->json), f);\n if (!b) return false;\n } else if (c == '{') {\n variant_json_init_dict((*p)->json);\n b = dict_json_in_str(*variant_json_get_dict((*p)->json), f);\n if (!b) return false;\n } else if (c == 'n') {\n variant_json_init((*p)->json);\n c = fgetc(f);\n c = fgetc(f); if (c != 'u') return false;\n c = fgetc(f); if (c != 'l') return false;\n c = fgetc(f);\n return (c == 'l');\n } else {\n return false;\n }\n return true;\n}", "parent": null, "children": [753, 754], "start_point": {"row": 159, "column": 0}, "end_point": {"row": 197, "column": 1}}, {"id": 753, "type": "primitive_type", "text": "bool", "parent": 752, "children": [], "start_point": {"row": 159, "column": 0}, "end_point": {"row": 159, "column": 4}}, {"id": 754, "type": "function_declarator", "text": "json_in_str(mjson_t *p, FILE *f)", "parent": 752, "children": [755, 756], "start_point": {"row": 159, "column": 5}, "end_point": {"row": 159, "column": 37}}, {"id": 755, "type": "identifier", "text": "json_in_str", "parent": 754, "children": [], "start_point": {"row": 159, "column": 5}, "end_point": {"row": 159, "column": 16}}, {"id": 756, "type": "parameter_list", "text": "(mjson_t *p, FILE *f)", "parent": 754, "children": [757, 762], "start_point": {"row": 159, "column": 16}, "end_point": {"row": 159, "column": 37}}, {"id": 757, "type": "parameter_declaration", "text": "mjson_t *p", "parent": 756, "children": [758, 759], "start_point": {"row": 159, "column": 17}, "end_point": {"row": 159, "column": 27}}, {"id": 758, "type": "type_identifier", "text": "mjson_t", "parent": 757, "children": [], "start_point": {"row": 159, "column": 17}, "end_point": {"row": 159, "column": 24}}, {"id": 759, "type": "pointer_declarator", "text": "*p", "parent": 757, "children": [760, 761], "start_point": {"row": 159, "column": 25}, "end_point": {"row": 159, "column": 27}}, {"id": 760, "type": "*", "text": "*", "parent": 759, "children": [], "start_point": {"row": 159, "column": 25}, "end_point": {"row": 159, "column": 26}}, {"id": 761, "type": "identifier", "text": "p", "parent": 759, "children": [], "start_point": {"row": 159, "column": 26}, "end_point": {"row": 159, "column": 27}}, {"id": 762, "type": "parameter_declaration", "text": "FILE *f", "parent": 756, "children": [763, 764], "start_point": {"row": 159, "column": 29}, "end_point": {"row": 159, "column": 36}}, {"id": 763, "type": "type_identifier", "text": "FILE", "parent": 762, "children": [], "start_point": {"row": 159, "column": 29}, "end_point": {"row": 159, "column": 33}}, {"id": 764, "type": "pointer_declarator", "text": "*f", "parent": 762, "children": [765, 766], "start_point": {"row": 159, "column": 34}, "end_point": {"row": 159, "column": 36}}, {"id": 765, "type": "*", "text": "*", "parent": 764, "children": [], "start_point": {"row": 159, "column": 34}, "end_point": {"row": 159, "column": 35}}, {"id": 766, "type": "identifier", "text": "f", "parent": 764, "children": [], "start_point": {"row": 159, "column": 35}, "end_point": {"row": 159, "column": 36}}, {"id": 767, "type": "call_expression", "text": "assert (p != NULL)", "parent": 752, "children": [768, 769], "start_point": {"row": 161, "column": 2}, "end_point": {"row": 161, "column": 20}}, {"id": 768, "type": "identifier", "text": "assert", "parent": 767, "children": [], "start_point": {"row": 161, "column": 2}, "end_point": {"row": 161, "column": 8}}, {"id": 769, "type": "argument_list", "text": "(p != NULL)", "parent": 767, "children": [770], "start_point": {"row": 161, "column": 9}, "end_point": {"row": 161, "column": 20}}, {"id": 770, "type": "binary_expression", "text": "p != NULL", "parent": 769, "children": [771, 772, 773], "start_point": {"row": 161, "column": 10}, "end_point": {"row": 161, "column": 19}}, {"id": 771, "type": "identifier", "text": "p", "parent": 770, "children": [], "start_point": {"row": 161, "column": 10}, "end_point": {"row": 161, "column": 11}}, {"id": 772, "type": "!=", "text": "!=", "parent": 770, "children": [], "start_point": {"row": 161, "column": 12}, "end_point": {"row": 161, "column": 14}}, {"id": 773, "type": "null", "text": "NULL", "parent": 770, "children": [774], "start_point": {"row": 161, "column": 15}, "end_point": {"row": 161, "column": 19}}, {"id": 774, "type": "NULL", "text": "NULL", "parent": 773, "children": [], "start_point": {"row": 161, "column": 15}, "end_point": {"row": 161, "column": 19}}, {"id": 775, "type": "declaration", "text": "bool b;", "parent": 752, "children": [776, 777], "start_point": {"row": 162, "column": 2}, "end_point": {"row": 162, "column": 9}}, {"id": 776, "type": "primitive_type", "text": "bool", "parent": 775, "children": [], "start_point": {"row": 162, "column": 2}, "end_point": {"row": 162, "column": 6}}, {"id": 777, "type": "identifier", "text": "b", "parent": 775, "children": [], "start_point": {"row": 162, "column": 7}, "end_point": {"row": 162, "column": 8}}, {"id": 778, "type": "declaration", "text": "char c = skip_space(f);", "parent": 752, "children": [779, 780], "start_point": {"row": 163, "column": 2}, "end_point": {"row": 163, "column": 25}}, {"id": 779, "type": "primitive_type", "text": "char", "parent": 778, "children": [], "start_point": {"row": 163, "column": 2}, "end_point": {"row": 163, "column": 6}}, {"id": 780, "type": "init_declarator", "text": "c = skip_space(f)", "parent": 778, "children": [781, 782, 783], "start_point": {"row": 163, "column": 7}, "end_point": {"row": 163, "column": 24}}, {"id": 781, "type": "identifier", "text": "c", "parent": 780, "children": [], "start_point": {"row": 163, "column": 7}, "end_point": {"row": 163, "column": 8}}, {"id": 782, "type": "=", "text": "=", "parent": 780, "children": [], "start_point": {"row": 163, "column": 9}, "end_point": {"row": 163, "column": 10}}, {"id": 783, "type": "call_expression", "text": "skip_space(f)", "parent": 780, "children": [784, 785], "start_point": {"row": 163, "column": 11}, "end_point": {"row": 163, "column": 24}}, {"id": 784, "type": "identifier", "text": "skip_space", "parent": 783, "children": [], "start_point": {"row": 163, "column": 11}, "end_point": {"row": 163, "column": 21}}, {"id": 785, "type": "argument_list", "text": "(f)", "parent": 783, "children": [786], "start_point": {"row": 163, "column": 21}, "end_point": {"row": 163, "column": 24}}, {"id": 786, "type": "identifier", "text": "f", "parent": 785, "children": [], "start_point": {"row": 163, "column": 22}, "end_point": {"row": 163, "column": 23}}, {"id": 787, "type": "if_statement", "text": "if (ferror(f) || feof(f)) return false;", "parent": 752, "children": [788, 799], "start_point": {"row": 164, "column": 2}, "end_point": {"row": 164, "column": 41}}, {"id": 788, "type": "parenthesized_expression", "text": "(ferror(f) || feof(f))", "parent": 787, "children": [789], "start_point": {"row": 164, "column": 5}, "end_point": {"row": 164, "column": 27}}, {"id": 789, "type": "binary_expression", "text": "ferror(f) || feof(f)", "parent": 788, "children": [790, 794, 795], "start_point": {"row": 164, "column": 6}, "end_point": {"row": 164, "column": 26}}, {"id": 790, "type": "call_expression", "text": "ferror(f)", "parent": 789, "children": [791, 792], "start_point": {"row": 164, "column": 6}, "end_point": {"row": 164, "column": 15}}, {"id": 791, "type": "identifier", "text": "ferror", "parent": 790, "children": [], "start_point": {"row": 164, "column": 6}, "end_point": {"row": 164, "column": 12}}, {"id": 792, "type": "argument_list", "text": "(f)", "parent": 790, "children": [793], "start_point": {"row": 164, "column": 12}, "end_point": {"row": 164, "column": 15}}, {"id": 793, "type": "identifier", "text": "f", "parent": 792, "children": [], "start_point": {"row": 164, "column": 13}, "end_point": {"row": 164, "column": 14}}, {"id": 794, "type": "||", "text": "||", "parent": 789, "children": [], "start_point": {"row": 164, "column": 16}, "end_point": {"row": 164, "column": 18}}, {"id": 795, "type": "call_expression", "text": "feof(f)", "parent": 789, "children": [796, 797], "start_point": {"row": 164, "column": 19}, "end_point": {"row": 164, "column": 26}}, {"id": 796, "type": "identifier", "text": "feof", "parent": 795, "children": [], "start_point": {"row": 164, "column": 19}, "end_point": {"row": 164, "column": 23}}, {"id": 797, "type": "argument_list", "text": "(f)", "parent": 795, "children": [798], "start_point": {"row": 164, "column": 23}, "end_point": {"row": 164, "column": 26}}, {"id": 798, "type": "identifier", "text": "f", "parent": 797, "children": [], "start_point": {"row": 164, "column": 24}, "end_point": {"row": 164, "column": 25}}, {"id": 799, "type": "return_statement", "text": "return false;", "parent": 787, "children": [800], "start_point": {"row": 164, "column": 28}, "end_point": {"row": 164, "column": 41}}, {"id": 800, "type": "false", "text": "false", "parent": 799, "children": [], "start_point": {"row": 164, "column": 35}, "end_point": {"row": 164, "column": 40}}, {"id": 801, "type": "call_expression", "text": "variant_json_clear((*p)->json)", "parent": 752, "children": [802, 803], "start_point": {"row": 165, "column": 2}, "end_point": {"row": 165, "column": 32}}, {"id": 802, "type": "identifier", "text": "variant_json_clear", "parent": 801, "children": [], "start_point": {"row": 165, "column": 2}, "end_point": {"row": 165, "column": 20}}, {"id": 803, "type": "argument_list", "text": "((*p)->json)", "parent": 801, "children": [804], "start_point": {"row": 165, "column": 20}, "end_point": {"row": 165, "column": 32}}, {"id": 804, "type": "field_expression", "text": "(*p)->json", "parent": 803, "children": [805, 809], "start_point": {"row": 165, "column": 21}, "end_point": {"row": 165, "column": 31}}, {"id": 805, "type": "parenthesized_expression", "text": "(*p)", "parent": 804, "children": [806], "start_point": {"row": 165, "column": 21}, "end_point": {"row": 165, "column": 25}}, {"id": 806, "type": "pointer_expression", "text": "*p", "parent": 805, "children": [807, 808], "start_point": {"row": 165, "column": 22}, "end_point": {"row": 165, "column": 24}}, {"id": 807, "type": "*", "text": "*", "parent": 806, "children": [], "start_point": {"row": 165, "column": 22}, "end_point": {"row": 165, "column": 23}}, {"id": 808, "type": "identifier", "text": "p", "parent": 806, "children": [], "start_point": {"row": 165, "column": 23}, "end_point": {"row": 165, "column": 24}}, {"id": 809, "type": "field_identifier", "text": "json", "parent": 804, "children": [], "start_point": {"row": 165, "column": 27}, "end_point": {"row": 165, "column": 31}}, {"id": 810, "type": "if_statement", "text": "if (c == 't' || c == 'f') {\n variant_json_init_boolean((*p)->json);\n b = boolean_in_str(variant_json_get_boolean((*p)->json), f);\n if (!b) return false;\n } else if ((c >= '0' && c <= '9') || (c == '-')){\n variant_json_init_real((*p)->json);\n b = real_in_str(variant_json_get_real((*p)->json), f);\n if (!b) return false;\n } else if (c == '\\\"') {\n variant_json_init_string((*p)->json);\n b = string_in_str(*variant_json_get_string((*p)->json), f);\n if (!b) return false;\n } else if (c == '[') {\n variant_json_init_array((*p)->json);\n b = array_json_in_str(*variant_json_get_array((*p)->json), f);\n if (!b) return false;\n } else if (c == '{') {\n variant_json_init_dict((*p)->json);\n b = dict_json_in_str(*variant_json_get_dict((*p)->json), f);\n if (!b) return false;\n } else if (c == 'n') {\n variant_json_init((*p)->json);\n c = fgetc(f);\n c = fgetc(f); if (c != 'u') return false;\n c = fgetc(f); if (c != 'l') return false;\n c = fgetc(f);\n return (c == 'l');\n } else {\n return false;\n }", "parent": 752, "children": [811, 860], "start_point": {"row": 166, "column": 2}, "end_point": {"row": 195, "column": 3}}, {"id": 811, "type": "parenthesized_expression", "text": "(c == 't' || c == 'f')", "parent": 810, "children": [812], "start_point": {"row": 166, "column": 5}, "end_point": {"row": 166, "column": 27}}, {"id": 812, "type": "binary_expression", "text": "c == 't' || c == 'f'", "parent": 811, "children": [813, 820, 821], "start_point": {"row": 166, "column": 6}, "end_point": {"row": 166, "column": 26}}, {"id": 813, "type": "binary_expression", "text": "c == 't'", "parent": 812, "children": [814, 815, 816], "start_point": {"row": 166, "column": 6}, "end_point": {"row": 166, "column": 14}}, {"id": 814, "type": "identifier", "text": "c", "parent": 813, "children": [], "start_point": {"row": 166, "column": 6}, "end_point": {"row": 166, "column": 7}}, {"id": 815, "type": "==", "text": "==", "parent": 813, "children": [], "start_point": {"row": 166, "column": 8}, "end_point": {"row": 166, "column": 10}}, {"id": 816, "type": "char_literal", "text": "'t'", "parent": 813, "children": [817, 818, 819], "start_point": {"row": 166, "column": 11}, "end_point": {"row": 166, "column": 14}}, {"id": 817, "type": "'", "text": "'", "parent": 816, "children": [], "start_point": {"row": 166, "column": 11}, "end_point": {"row": 166, "column": 12}}, {"id": 818, "type": "character", "text": "t", "parent": 816, "children": [], "start_point": {"row": 166, "column": 12}, "end_point": {"row": 166, "column": 13}}, {"id": 819, "type": "'", "text": "'", "parent": 816, "children": [], "start_point": {"row": 166, "column": 13}, "end_point": {"row": 166, "column": 14}}, {"id": 820, "type": "||", "text": "||", "parent": 812, "children": [], "start_point": {"row": 166, "column": 15}, "end_point": {"row": 166, "column": 17}}, {"id": 821, "type": "binary_expression", "text": "c == 'f'", "parent": 812, "children": [822, 823, 824], "start_point": {"row": 166, "column": 18}, "end_point": {"row": 166, "column": 26}}, {"id": 822, "type": "identifier", "text": "c", "parent": 821, "children": [], "start_point": {"row": 166, "column": 18}, "end_point": {"row": 166, "column": 19}}, {"id": 823, "type": "==", "text": "==", "parent": 821, "children": [], "start_point": {"row": 166, "column": 20}, "end_point": {"row": 166, "column": 22}}, {"id": 824, "type": "char_literal", "text": "'f'", "parent": 821, "children": [825, 826, 827], "start_point": {"row": 166, "column": 23}, "end_point": {"row": 166, "column": 26}}, {"id": 825, "type": "'", "text": "'", "parent": 824, "children": [], "start_point": {"row": 166, "column": 23}, "end_point": {"row": 166, "column": 24}}, {"id": 826, "type": "character", "text": "f", "parent": 824, "children": [], "start_point": {"row": 166, "column": 24}, "end_point": {"row": 166, "column": 25}}, {"id": 827, "type": "'", "text": "'", "parent": 824, "children": [], "start_point": {"row": 166, "column": 25}, "end_point": {"row": 166, "column": 26}}, {"id": 828, "type": "call_expression", "text": "variant_json_init_boolean((*p)->json)", "parent": 810, "children": [829, 830], "start_point": {"row": 167, "column": 4}, "end_point": {"row": 167, "column": 41}}, {"id": 829, "type": "identifier", "text": "variant_json_init_boolean", "parent": 828, "children": [], "start_point": {"row": 167, "column": 4}, "end_point": {"row": 167, "column": 29}}, {"id": 830, "type": "argument_list", "text": "((*p)->json)", "parent": 828, "children": [831], "start_point": {"row": 167, "column": 29}, "end_point": {"row": 167, "column": 41}}, {"id": 831, "type": "field_expression", "text": "(*p)->json", "parent": 830, "children": [832, 836], "start_point": {"row": 167, "column": 30}, "end_point": {"row": 167, "column": 40}}, {"id": 832, "type": "parenthesized_expression", "text": "(*p)", "parent": 831, "children": [833], "start_point": {"row": 167, "column": 30}, "end_point": {"row": 167, "column": 34}}, {"id": 833, "type": "pointer_expression", "text": "*p", "parent": 832, "children": [834, 835], "start_point": {"row": 167, "column": 31}, "end_point": {"row": 167, "column": 33}}, {"id": 834, "type": "*", "text": "*", "parent": 833, "children": [], "start_point": {"row": 167, "column": 31}, "end_point": {"row": 167, "column": 32}}, {"id": 835, "type": "identifier", "text": "p", "parent": 833, "children": [], "start_point": {"row": 167, "column": 32}, "end_point": {"row": 167, "column": 33}}, {"id": 836, "type": "field_identifier", "text": "json", "parent": 831, "children": [], "start_point": {"row": 167, "column": 36}, "end_point": {"row": 167, "column": 40}}, {"id": 837, "type": "assignment_expression", "text": "b = boolean_in_str(variant_json_get_boolean((*p)->json), f)", "parent": 810, "children": [838, 839, 840], "start_point": {"row": 168, "column": 4}, "end_point": {"row": 168, "column": 63}}, {"id": 838, "type": "identifier", "text": "b", "parent": 837, "children": [], "start_point": {"row": 168, "column": 4}, "end_point": {"row": 168, "column": 5}}, {"id": 839, "type": "=", "text": "=", "parent": 837, "children": [], "start_point": {"row": 168, "column": 6}, "end_point": {"row": 168, "column": 7}}, {"id": 840, "type": "call_expression", "text": "boolean_in_str(variant_json_get_boolean((*p)->json), f)", "parent": 837, "children": [841, 842], "start_point": {"row": 168, "column": 8}, "end_point": {"row": 168, "column": 63}}, {"id": 841, "type": "identifier", "text": "boolean_in_str", "parent": 840, "children": [], "start_point": {"row": 168, "column": 8}, "end_point": {"row": 168, "column": 22}}, {"id": 842, "type": "argument_list", "text": "(variant_json_get_boolean((*p)->json), f)", "parent": 840, "children": [843, 852], "start_point": {"row": 168, "column": 22}, "end_point": {"row": 168, "column": 63}}, {"id": 843, "type": "call_expression", "text": "variant_json_get_boolean((*p)->json)", "parent": 842, "children": [844, 845], "start_point": {"row": 168, "column": 23}, "end_point": {"row": 168, "column": 59}}, {"id": 844, "type": "identifier", "text": "variant_json_get_boolean", "parent": 843, "children": [], "start_point": {"row": 168, "column": 23}, "end_point": {"row": 168, "column": 47}}, {"id": 845, "type": "argument_list", "text": "((*p)->json)", "parent": 843, "children": [846], "start_point": {"row": 168, "column": 47}, "end_point": {"row": 168, "column": 59}}, {"id": 846, "type": "field_expression", "text": "(*p)->json", "parent": 845, "children": [847, 851], "start_point": {"row": 168, "column": 48}, "end_point": {"row": 168, "column": 58}}, {"id": 847, "type": "parenthesized_expression", "text": "(*p)", "parent": 846, "children": [848], "start_point": {"row": 168, "column": 48}, "end_point": {"row": 168, "column": 52}}, {"id": 848, "type": "pointer_expression", "text": "*p", "parent": 847, "children": [849, 850], "start_point": {"row": 168, "column": 49}, "end_point": {"row": 168, "column": 51}}, {"id": 849, "type": "*", "text": "*", "parent": 848, "children": [], "start_point": {"row": 168, "column": 49}, "end_point": {"row": 168, "column": 50}}, {"id": 850, "type": "identifier", "text": "p", "parent": 848, "children": [], "start_point": {"row": 168, "column": 50}, "end_point": {"row": 168, "column": 51}}, {"id": 851, "type": "field_identifier", "text": "json", "parent": 846, "children": [], "start_point": {"row": 168, "column": 54}, "end_point": {"row": 168, "column": 58}}, {"id": 852, "type": "identifier", "text": "f", "parent": 842, "children": [], "start_point": {"row": 168, "column": 61}, "end_point": {"row": 168, "column": 62}}, {"id": 853, "type": "if_statement", "text": "if (!b) return false;", "parent": 810, "children": [854, 858], "start_point": {"row": 169, "column": 4}, "end_point": {"row": 169, "column": 25}}, {"id": 854, "type": "parenthesized_expression", "text": "(!b)", "parent": 853, "children": [855], "start_point": {"row": 169, "column": 7}, "end_point": {"row": 169, "column": 11}}, {"id": 855, "type": "unary_expression", "text": "!b", "parent": 854, "children": [856, 857], "start_point": {"row": 169, "column": 8}, "end_point": {"row": 169, "column": 10}}, {"id": 856, "type": "!", "text": "!", "parent": 855, "children": [], "start_point": {"row": 169, "column": 8}, "end_point": {"row": 169, "column": 9}}, {"id": 857, "type": "identifier", "text": "b", "parent": 855, "children": [], "start_point": {"row": 169, "column": 9}, "end_point": {"row": 169, "column": 10}}, {"id": 858, "type": "return_statement", "text": "return false;", "parent": 853, "children": [859], "start_point": {"row": 169, "column": 12}, "end_point": {"row": 169, "column": 25}}, {"id": 859, "type": "false", "text": "false", "parent": 858, "children": [], "start_point": {"row": 169, "column": 19}, "end_point": {"row": 169, "column": 24}}, {"id": 860, "type": "else_clause", "text": "else if ((c >= '0' && c <= '9') || (c == '-')){\n variant_json_init_real((*p)->json);\n b = real_in_str(variant_json_get_real((*p)->json), f);\n if (!b) return false;\n } else if (c == '\\\"') {\n variant_json_init_string((*p)->json);\n b = string_in_str(*variant_json_get_string((*p)->json), f);\n if (!b) return false;\n } else if (c == '[') {\n variant_json_init_array((*p)->json);\n b = array_json_in_str(*variant_json_get_array((*p)->json), f);\n if (!b) return false;\n } else if (c == '{') {\n variant_json_init_dict((*p)->json);\n b = dict_json_in_str(*variant_json_get_dict((*p)->json), f);\n if (!b) return false;\n } else if (c == 'n') {\n variant_json_init((*p)->json);\n c = fgetc(f);\n c = fgetc(f); if (c != 'u') return false;\n c = fgetc(f); if (c != 'l') return false;\n c = fgetc(f);\n return (c == 'l');\n } else {\n return false;\n }", "parent": 810, "children": [861], "start_point": {"row": 170, "column": 4}, "end_point": {"row": 195, "column": 3}}, {"id": 861, "type": "if_statement", "text": "if ((c >= '0' && c <= '9') || (c == '-')){\n variant_json_init_real((*p)->json);\n b = real_in_str(variant_json_get_real((*p)->json), f);\n if (!b) return false;\n } else if (c == '\\\"') {\n variant_json_init_string((*p)->json);\n b = string_in_str(*variant_json_get_string((*p)->json), f);\n if (!b) return false;\n } else if (c == '[') {\n variant_json_init_array((*p)->json);\n b = array_json_in_str(*variant_json_get_array((*p)->json), f);\n if (!b) return false;\n } else if (c == '{') {\n variant_json_init_dict((*p)->json);\n b = dict_json_in_str(*variant_json_get_dict((*p)->json), f);\n if (!b) return false;\n } else if (c == 'n') {\n variant_json_init((*p)->json);\n c = fgetc(f);\n c = fgetc(f); if (c != 'u') return false;\n c = fgetc(f); if (c != 'l') return false;\n c = fgetc(f);\n return (c == 'l');\n } else {\n return false;\n }", "parent": 860, "children": [862, 922], "start_point": {"row": 170, "column": 9}, "end_point": {"row": 195, "column": 3}}, {"id": 862, "type": "parenthesized_expression", "text": "((c >= '0' && c <= '9') || (c == '-'))", "parent": 861, "children": [863], "start_point": {"row": 170, "column": 12}, "end_point": {"row": 170, "column": 50}}, {"id": 863, "type": "binary_expression", "text": "(c >= '0' && c <= '9') || (c == '-')", "parent": 862, "children": [864, 881, 882], "start_point": {"row": 170, "column": 13}, "end_point": {"row": 170, "column": 49}}, {"id": 864, "type": "parenthesized_expression", "text": "(c >= '0' && c <= '9')", "parent": 863, "children": [865], "start_point": {"row": 170, "column": 13}, "end_point": {"row": 170, "column": 35}}, {"id": 865, "type": "binary_expression", "text": "c >= '0' && c <= '9'", "parent": 864, "children": [866, 873, 874], "start_point": {"row": 170, "column": 14}, "end_point": {"row": 170, "column": 34}}, {"id": 866, "type": "binary_expression", "text": "c >= '0'", "parent": 865, "children": [867, 868, 869], "start_point": {"row": 170, "column": 14}, "end_point": {"row": 170, "column": 22}}, {"id": 867, "type": "identifier", "text": "c", "parent": 866, "children": [], "start_point": {"row": 170, "column": 14}, "end_point": {"row": 170, "column": 15}}, {"id": 868, "type": ">=", "text": ">=", "parent": 866, "children": [], "start_point": {"row": 170, "column": 16}, "end_point": {"row": 170, "column": 18}}, {"id": 869, "type": "char_literal", "text": "'0'", "parent": 866, "children": [870, 871, 872], "start_point": {"row": 170, "column": 19}, "end_point": {"row": 170, "column": 22}}, {"id": 870, "type": "'", "text": "'", "parent": 869, "children": [], "start_point": {"row": 170, "column": 19}, "end_point": {"row": 170, "column": 20}}, {"id": 871, "type": "character", "text": "0", "parent": 869, "children": [], "start_point": {"row": 170, "column": 20}, "end_point": {"row": 170, "column": 21}}, {"id": 872, "type": "'", "text": "'", "parent": 869, "children": [], "start_point": {"row": 170, "column": 21}, "end_point": {"row": 170, "column": 22}}, {"id": 873, "type": "&&", "text": "&&", "parent": 865, "children": [], "start_point": {"row": 170, "column": 23}, "end_point": {"row": 170, "column": 25}}, {"id": 874, "type": "binary_expression", "text": "c <= '9'", "parent": 865, "children": [875, 876, 877], "start_point": {"row": 170, "column": 26}, "end_point": {"row": 170, "column": 34}}, {"id": 875, "type": "identifier", "text": "c", "parent": 874, "children": [], "start_point": {"row": 170, "column": 26}, "end_point": {"row": 170, "column": 27}}, {"id": 876, "type": "<=", "text": "<=", "parent": 874, "children": [], "start_point": {"row": 170, "column": 28}, "end_point": {"row": 170, "column": 30}}, {"id": 877, "type": "char_literal", "text": "'9'", "parent": 874, "children": [878, 879, 880], "start_point": {"row": 170, "column": 31}, "end_point": {"row": 170, "column": 34}}, {"id": 878, "type": "'", "text": "'", "parent": 877, "children": [], "start_point": {"row": 170, "column": 31}, "end_point": {"row": 170, "column": 32}}, {"id": 879, "type": "character", "text": "9", "parent": 877, "children": [], "start_point": {"row": 170, "column": 32}, "end_point": {"row": 170, "column": 33}}, {"id": 880, "type": "'", "text": "'", "parent": 877, "children": [], "start_point": {"row": 170, "column": 33}, "end_point": {"row": 170, "column": 34}}, {"id": 881, "type": "||", "text": "||", "parent": 863, "children": [], "start_point": {"row": 170, "column": 36}, "end_point": {"row": 170, "column": 38}}, {"id": 882, "type": "parenthesized_expression", "text": "(c == '-')", "parent": 863, "children": [883], "start_point": {"row": 170, "column": 39}, "end_point": {"row": 170, "column": 49}}, {"id": 883, "type": "binary_expression", "text": "c == '-'", "parent": 882, "children": [884, 885, 886], "start_point": {"row": 170, "column": 40}, "end_point": {"row": 170, "column": 48}}, {"id": 884, "type": "identifier", "text": "c", "parent": 883, "children": [], "start_point": {"row": 170, "column": 40}, "end_point": {"row": 170, "column": 41}}, {"id": 885, "type": "==", "text": "==", "parent": 883, "children": [], "start_point": {"row": 170, "column": 42}, "end_point": {"row": 170, "column": 44}}, {"id": 886, "type": "char_literal", "text": "'-'", "parent": 883, "children": [887, 888, 889], "start_point": {"row": 170, "column": 45}, "end_point": {"row": 170, "column": 48}}, {"id": 887, "type": "'", "text": "'", "parent": 886, "children": [], "start_point": {"row": 170, "column": 45}, "end_point": {"row": 170, "column": 46}}, {"id": 888, "type": "character", "text": "-", "parent": 886, "children": [], "start_point": {"row": 170, "column": 46}, "end_point": {"row": 170, "column": 47}}, {"id": 889, "type": "'", "text": "'", "parent": 886, "children": [], "start_point": {"row": 170, "column": 47}, "end_point": {"row": 170, "column": 48}}, {"id": 890, "type": "call_expression", "text": "variant_json_init_real((*p)->json)", "parent": 861, "children": [891, 892], "start_point": {"row": 171, "column": 4}, "end_point": {"row": 171, "column": 38}}, {"id": 891, "type": "identifier", "text": "variant_json_init_real", "parent": 890, "children": [], "start_point": {"row": 171, "column": 4}, "end_point": {"row": 171, "column": 26}}, {"id": 892, "type": "argument_list", "text": "((*p)->json)", "parent": 890, "children": [893], "start_point": {"row": 171, "column": 26}, "end_point": {"row": 171, "column": 38}}, {"id": 893, "type": "field_expression", "text": "(*p)->json", "parent": 892, "children": [894, 898], "start_point": {"row": 171, "column": 27}, "end_point": {"row": 171, "column": 37}}, {"id": 894, "type": "parenthesized_expression", "text": "(*p)", "parent": 893, "children": [895], "start_point": {"row": 171, "column": 27}, "end_point": {"row": 171, "column": 31}}, {"id": 895, "type": "pointer_expression", "text": "*p", "parent": 894, "children": [896, 897], "start_point": {"row": 171, "column": 28}, "end_point": {"row": 171, "column": 30}}, {"id": 896, "type": "*", "text": "*", "parent": 895, "children": [], "start_point": {"row": 171, "column": 28}, "end_point": {"row": 171, "column": 29}}, {"id": 897, "type": "identifier", "text": "p", "parent": 895, "children": [], "start_point": {"row": 171, "column": 29}, "end_point": {"row": 171, "column": 30}}, {"id": 898, "type": "field_identifier", "text": "json", "parent": 893, "children": [], "start_point": {"row": 171, "column": 33}, "end_point": {"row": 171, "column": 37}}, {"id": 899, "type": "assignment_expression", "text": "b = real_in_str(variant_json_get_real((*p)->json), f)", "parent": 861, "children": [900, 901, 902], "start_point": {"row": 172, "column": 4}, "end_point": {"row": 172, "column": 57}}, {"id": 900, "type": "identifier", "text": "b", "parent": 899, "children": [], "start_point": {"row": 172, "column": 4}, "end_point": {"row": 172, "column": 5}}, {"id": 901, "type": "=", "text": "=", "parent": 899, "children": [], "start_point": {"row": 172, "column": 6}, "end_point": {"row": 172, "column": 7}}, {"id": 902, "type": "call_expression", "text": "real_in_str(variant_json_get_real((*p)->json), f)", "parent": 899, "children": [903, 904], "start_point": {"row": 172, "column": 8}, "end_point": {"row": 172, "column": 57}}, {"id": 903, "type": "identifier", "text": "real_in_str", "parent": 902, "children": [], "start_point": {"row": 172, "column": 8}, "end_point": {"row": 172, "column": 19}}, {"id": 904, "type": "argument_list", "text": "(variant_json_get_real((*p)->json), f)", "parent": 902, "children": [905, 914], "start_point": {"row": 172, "column": 19}, "end_point": {"row": 172, "column": 57}}, {"id": 905, "type": "call_expression", "text": "variant_json_get_real((*p)->json)", "parent": 904, "children": [906, 907], "start_point": {"row": 172, "column": 20}, "end_point": {"row": 172, "column": 53}}, {"id": 906, "type": "identifier", "text": "variant_json_get_real", "parent": 905, "children": [], "start_point": {"row": 172, "column": 20}, "end_point": {"row": 172, "column": 41}}, {"id": 907, "type": "argument_list", "text": "((*p)->json)", "parent": 905, "children": [908], "start_point": {"row": 172, "column": 41}, "end_point": {"row": 172, "column": 53}}, {"id": 908, "type": "field_expression", "text": "(*p)->json", "parent": 907, "children": [909, 913], "start_point": {"row": 172, "column": 42}, "end_point": {"row": 172, "column": 52}}, {"id": 909, "type": "parenthesized_expression", "text": "(*p)", "parent": 908, "children": [910], "start_point": {"row": 172, "column": 42}, "end_point": {"row": 172, "column": 46}}, {"id": 910, "type": "pointer_expression", "text": "*p", "parent": 909, "children": [911, 912], "start_point": {"row": 172, "column": 43}, "end_point": {"row": 172, "column": 45}}, {"id": 911, "type": "*", "text": "*", "parent": 910, "children": [], "start_point": {"row": 172, "column": 43}, "end_point": {"row": 172, "column": 44}}, {"id": 912, "type": "identifier", "text": "p", "parent": 910, "children": [], "start_point": {"row": 172, "column": 44}, "end_point": {"row": 172, "column": 45}}, {"id": 913, "type": "field_identifier", "text": "json", "parent": 908, "children": [], "start_point": {"row": 172, "column": 48}, "end_point": {"row": 172, "column": 52}}, {"id": 914, "type": "identifier", "text": "f", "parent": 904, "children": [], "start_point": {"row": 172, "column": 55}, "end_point": {"row": 172, "column": 56}}, {"id": 915, "type": "if_statement", "text": "if (!b) return false;", "parent": 861, "children": [916, 920], "start_point": {"row": 173, "column": 4}, "end_point": {"row": 173, "column": 25}}, {"id": 916, "type": "parenthesized_expression", "text": "(!b)", "parent": 915, "children": [917], "start_point": {"row": 173, "column": 7}, "end_point": {"row": 173, "column": 11}}, {"id": 917, "type": "unary_expression", "text": "!b", "parent": 916, "children": [918, 919], "start_point": {"row": 173, "column": 8}, "end_point": {"row": 173, "column": 10}}, {"id": 918, "type": "!", "text": "!", "parent": 917, "children": [], "start_point": {"row": 173, "column": 8}, "end_point": {"row": 173, "column": 9}}, {"id": 919, "type": "identifier", "text": "b", "parent": 917, "children": [], "start_point": {"row": 173, "column": 9}, "end_point": {"row": 173, "column": 10}}, {"id": 920, "type": "return_statement", "text": "return false;", "parent": 915, "children": [921], "start_point": {"row": 173, "column": 12}, "end_point": {"row": 173, "column": 25}}, {"id": 921, "type": "false", "text": "false", "parent": 920, "children": [], "start_point": {"row": 173, "column": 19}, "end_point": {"row": 173, "column": 24}}, {"id": 922, "type": "else_clause", "text": "else if (c == '\\\"') {\n variant_json_init_string((*p)->json);\n b = string_in_str(*variant_json_get_string((*p)->json), f);\n if (!b) return false;\n } else if (c == '[') {\n variant_json_init_array((*p)->json);\n b = array_json_in_str(*variant_json_get_array((*p)->json), f);\n if (!b) return false;\n } else if (c == '{') {\n variant_json_init_dict((*p)->json);\n b = dict_json_in_str(*variant_json_get_dict((*p)->json), f);\n if (!b) return false;\n } else if (c == 'n') {\n variant_json_init((*p)->json);\n c = fgetc(f);\n c = fgetc(f); if (c != 'u') return false;\n c = fgetc(f); if (c != 'l') return false;\n c = fgetc(f);\n return (c == 'l');\n } else {\n return false;\n }", "parent": 861, "children": [923], "start_point": {"row": 174, "column": 4}, "end_point": {"row": 195, "column": 3}}, {"id": 923, "type": "if_statement", "text": "if (c == '\\\"') {\n variant_json_init_string((*p)->json);\n b = string_in_str(*variant_json_get_string((*p)->json), f);\n if (!b) return false;\n } else if (c == '[') {\n variant_json_init_array((*p)->json);\n b = array_json_in_str(*variant_json_get_array((*p)->json), f);\n if (!b) return false;\n } else if (c == '{') {\n variant_json_init_dict((*p)->json);\n b = dict_json_in_str(*variant_json_get_dict((*p)->json), f);\n if (!b) return false;\n } else if (c == 'n') {\n variant_json_init((*p)->json);\n c = fgetc(f);\n c = fgetc(f); if (c != 'u') return false;\n c = fgetc(f); if (c != 'l') return false;\n c = fgetc(f);\n return (c == 'l');\n } else {\n return false;\n }", "parent": 922, "children": [924, 966], "start_point": {"row": 174, "column": 9}, "end_point": {"row": 195, "column": 3}}, {"id": 924, "type": "parenthesized_expression", "text": "(c == '\\\"')", "parent": 923, "children": [925], "start_point": {"row": 174, "column": 12}, "end_point": {"row": 174, "column": 23}}, {"id": 925, "type": "binary_expression", "text": "c == '\\\"'", "parent": 924, "children": [926, 927, 928], "start_point": {"row": 174, "column": 13}, "end_point": {"row": 174, "column": 22}}, {"id": 926, "type": "identifier", "text": "c", "parent": 925, "children": [], "start_point": {"row": 174, "column": 13}, "end_point": {"row": 174, "column": 14}}, {"id": 927, "type": "==", "text": "==", "parent": 925, "children": [], "start_point": {"row": 174, "column": 15}, "end_point": {"row": 174, "column": 17}}, {"id": 928, "type": "char_literal", "text": "'\\\"'", "parent": 925, "children": [929, 930, 931], "start_point": {"row": 174, "column": 18}, "end_point": {"row": 174, "column": 22}}, {"id": 929, "type": "'", "text": "'", "parent": 928, "children": [], "start_point": {"row": 174, "column": 18}, "end_point": {"row": 174, "column": 19}}, {"id": 930, "type": "escape_sequence", "text": "\\\"", "parent": 928, "children": [], "start_point": {"row": 174, "column": 19}, "end_point": {"row": 174, "column": 21}}, {"id": 931, "type": "'", "text": "'", "parent": 928, "children": [], "start_point": {"row": 174, "column": 21}, "end_point": {"row": 174, "column": 22}}, {"id": 932, "type": "call_expression", "text": "variant_json_init_string((*p)->json)", "parent": 923, "children": [933, 934], "start_point": {"row": 175, "column": 4}, "end_point": {"row": 175, "column": 40}}, {"id": 933, "type": "identifier", "text": "variant_json_init_string", "parent": 932, "children": [], "start_point": {"row": 175, "column": 4}, "end_point": {"row": 175, "column": 28}}, {"id": 934, "type": "argument_list", "text": "((*p)->json)", "parent": 932, "children": [935], "start_point": {"row": 175, "column": 28}, "end_point": {"row": 175, "column": 40}}, {"id": 935, "type": "field_expression", "text": "(*p)->json", "parent": 934, "children": [936, 940], "start_point": {"row": 175, "column": 29}, "end_point": {"row": 175, "column": 39}}, {"id": 936, "type": "parenthesized_expression", "text": "(*p)", "parent": 935, "children": [937], "start_point": {"row": 175, "column": 29}, "end_point": {"row": 175, "column": 33}}, {"id": 937, "type": "pointer_expression", "text": "*p", "parent": 936, "children": [938, 939], "start_point": {"row": 175, "column": 30}, "end_point": {"row": 175, "column": 32}}, {"id": 938, "type": "*", "text": "*", "parent": 937, "children": [], "start_point": {"row": 175, "column": 30}, "end_point": {"row": 175, "column": 31}}, {"id": 939, "type": "identifier", "text": "p", "parent": 937, "children": [], "start_point": {"row": 175, "column": 31}, "end_point": {"row": 175, "column": 32}}, {"id": 940, "type": "field_identifier", "text": "json", "parent": 935, "children": [], "start_point": {"row": 175, "column": 35}, "end_point": {"row": 175, "column": 39}}, {"id": 941, "type": "assignment_expression", "text": "b = string_in_str(*variant_json_get_string((*p)->json), f)", "parent": 923, "children": [942, 943, 944], "start_point": {"row": 176, "column": 4}, "end_point": {"row": 176, "column": 62}}, {"id": 942, "type": "identifier", "text": "b", "parent": 941, "children": [], "start_point": {"row": 176, "column": 4}, "end_point": {"row": 176, "column": 5}}, {"id": 943, "type": "=", "text": "=", "parent": 941, "children": [], "start_point": {"row": 176, "column": 6}, "end_point": {"row": 176, "column": 7}}, {"id": 944, "type": "call_expression", "text": "string_in_str(*variant_json_get_string((*p)->json), f)", "parent": 941, "children": [945, 946], "start_point": {"row": 176, "column": 8}, "end_point": {"row": 176, "column": 62}}, {"id": 945, "type": "identifier", "text": "string_in_str", "parent": 944, "children": [], "start_point": {"row": 176, "column": 8}, "end_point": {"row": 176, "column": 21}}, {"id": 946, "type": "argument_list", "text": "(*variant_json_get_string((*p)->json), f)", "parent": 944, "children": [947, 958], "start_point": {"row": 176, "column": 21}, "end_point": {"row": 176, "column": 62}}, {"id": 947, "type": "pointer_expression", "text": "*variant_json_get_string((*p)->json)", "parent": 946, "children": [948, 949], "start_point": {"row": 176, "column": 22}, "end_point": {"row": 176, "column": 58}}, {"id": 948, "type": "*", "text": "*", "parent": 947, "children": [], "start_point": {"row": 176, "column": 22}, "end_point": {"row": 176, "column": 23}}, {"id": 949, "type": "call_expression", "text": "variant_json_get_string((*p)->json)", "parent": 947, "children": [950, 951], "start_point": {"row": 176, "column": 23}, "end_point": {"row": 176, "column": 58}}, {"id": 950, "type": "identifier", "text": "variant_json_get_string", "parent": 949, "children": [], "start_point": {"row": 176, "column": 23}, "end_point": {"row": 176, "column": 46}}, {"id": 951, "type": "argument_list", "text": "((*p)->json)", "parent": 949, "children": [952], "start_point": {"row": 176, "column": 46}, "end_point": {"row": 176, "column": 58}}, {"id": 952, "type": "field_expression", "text": "(*p)->json", "parent": 951, "children": [953, 957], "start_point": {"row": 176, "column": 47}, "end_point": {"row": 176, "column": 57}}, {"id": 953, "type": "parenthesized_expression", "text": "(*p)", "parent": 952, "children": [954], "start_point": {"row": 176, "column": 47}, "end_point": {"row": 176, "column": 51}}, {"id": 954, "type": "pointer_expression", "text": "*p", "parent": 953, "children": [955, 956], "start_point": {"row": 176, "column": 48}, "end_point": {"row": 176, "column": 50}}, {"id": 955, "type": "*", "text": "*", "parent": 954, "children": [], "start_point": {"row": 176, "column": 48}, "end_point": {"row": 176, "column": 49}}, {"id": 956, "type": "identifier", "text": "p", "parent": 954, "children": [], "start_point": {"row": 176, "column": 49}, "end_point": {"row": 176, "column": 50}}, {"id": 957, "type": "field_identifier", "text": "json", "parent": 952, "children": [], "start_point": {"row": 176, "column": 53}, "end_point": {"row": 176, "column": 57}}, {"id": 958, "type": "identifier", "text": "f", "parent": 946, "children": [], "start_point": {"row": 176, "column": 60}, "end_point": {"row": 176, "column": 61}}, {"id": 959, "type": "if_statement", "text": "if (!b) return false;", "parent": 923, "children": [960, 964], "start_point": {"row": 177, "column": 4}, "end_point": {"row": 177, "column": 25}}, {"id": 960, "type": "parenthesized_expression", "text": "(!b)", "parent": 959, "children": [961], "start_point": {"row": 177, "column": 7}, "end_point": {"row": 177, "column": 11}}, {"id": 961, "type": "unary_expression", "text": "!b", "parent": 960, "children": [962, 963], "start_point": {"row": 177, "column": 8}, "end_point": {"row": 177, "column": 10}}, {"id": 962, "type": "!", "text": "!", "parent": 961, "children": [], "start_point": {"row": 177, "column": 8}, "end_point": {"row": 177, "column": 9}}, {"id": 963, "type": "identifier", "text": "b", "parent": 961, "children": [], "start_point": {"row": 177, "column": 9}, "end_point": {"row": 177, "column": 10}}, {"id": 964, "type": "return_statement", "text": "return false;", "parent": 959, "children": [965], "start_point": {"row": 177, "column": 12}, "end_point": {"row": 177, "column": 25}}, {"id": 965, "type": "false", "text": "false", "parent": 964, "children": [], "start_point": {"row": 177, "column": 19}, "end_point": {"row": 177, "column": 24}}, {"id": 966, "type": "else_clause", "text": "else if (c == '[') {\n variant_json_init_array((*p)->json);\n b = array_json_in_str(*variant_json_get_array((*p)->json), f);\n if (!b) return false;\n } else if (c == '{') {\n variant_json_init_dict((*p)->json);\n b = dict_json_in_str(*variant_json_get_dict((*p)->json), f);\n if (!b) return false;\n } else if (c == 'n') {\n variant_json_init((*p)->json);\n c = fgetc(f);\n c = fgetc(f); if (c != 'u') return false;\n c = fgetc(f); if (c != 'l') return false;\n c = fgetc(f);\n return (c == 'l');\n } else {\n return false;\n }", "parent": 923, "children": [967], "start_point": {"row": 178, "column": 4}, "end_point": {"row": 195, "column": 3}}, {"id": 967, "type": "if_statement", "text": "if (c == '[') {\n variant_json_init_array((*p)->json);\n b = array_json_in_str(*variant_json_get_array((*p)->json), f);\n if (!b) return false;\n } else if (c == '{') {\n variant_json_init_dict((*p)->json);\n b = dict_json_in_str(*variant_json_get_dict((*p)->json), f);\n if (!b) return false;\n } else if (c == 'n') {\n variant_json_init((*p)->json);\n c = fgetc(f);\n c = fgetc(f); if (c != 'u') return false;\n c = fgetc(f); if (c != 'l') return false;\n c = fgetc(f);\n return (c == 'l');\n } else {\n return false;\n }", "parent": 966, "children": [968, 1009], "start_point": {"row": 178, "column": 9}, "end_point": {"row": 195, "column": 3}}, {"id": 968, "type": "parenthesized_expression", "text": "(c == '[')", "parent": 967, "children": [969], "start_point": {"row": 178, "column": 12}, "end_point": {"row": 178, "column": 22}}, {"id": 969, "type": "binary_expression", "text": "c == '['", "parent": 968, "children": [970, 971, 972], "start_point": {"row": 178, "column": 13}, "end_point": {"row": 178, "column": 21}}, {"id": 970, "type": "identifier", "text": "c", "parent": 969, "children": [], "start_point": {"row": 178, "column": 13}, "end_point": {"row": 178, "column": 14}}, {"id": 971, "type": "==", "text": "==", "parent": 969, "children": [], "start_point": {"row": 178, "column": 15}, "end_point": {"row": 178, "column": 17}}, {"id": 972, "type": "char_literal", "text": "'['", "parent": 969, "children": [973, 974], "start_point": {"row": 178, "column": 18}, "end_point": {"row": 178, "column": 21}}, {"id": 973, "type": "'", "text": "'", "parent": 972, "children": [], "start_point": {"row": 178, "column": 18}, "end_point": {"row": 178, "column": 19}}, {"id": 974, "type": "'", "text": "'", "parent": 972, "children": [], "start_point": {"row": 178, "column": 20}, "end_point": {"row": 178, "column": 21}}, {"id": 975, "type": "call_expression", "text": "variant_json_init_array((*p)->json)", "parent": 967, "children": [976, 977], "start_point": {"row": 179, "column": 4}, "end_point": {"row": 179, "column": 39}}, {"id": 976, "type": "identifier", "text": "variant_json_init_array", "parent": 975, "children": [], "start_point": {"row": 179, "column": 4}, "end_point": {"row": 179, "column": 27}}, {"id": 977, "type": "argument_list", "text": "((*p)->json)", "parent": 975, "children": [978], "start_point": {"row": 179, "column": 27}, "end_point": {"row": 179, "column": 39}}, {"id": 978, "type": "field_expression", "text": "(*p)->json", "parent": 977, "children": [979, 983], "start_point": {"row": 179, "column": 28}, "end_point": {"row": 179, "column": 38}}, {"id": 979, "type": "parenthesized_expression", "text": "(*p)", "parent": 978, "children": [980], "start_point": {"row": 179, "column": 28}, "end_point": {"row": 179, "column": 32}}, {"id": 980, "type": "pointer_expression", "text": "*p", "parent": 979, "children": [981, 982], "start_point": {"row": 179, "column": 29}, "end_point": {"row": 179, "column": 31}}, {"id": 981, "type": "*", "text": "*", "parent": 980, "children": [], "start_point": {"row": 179, "column": 29}, "end_point": {"row": 179, "column": 30}}, {"id": 982, "type": "identifier", "text": "p", "parent": 980, "children": [], "start_point": {"row": 179, "column": 30}, "end_point": {"row": 179, "column": 31}}, {"id": 983, "type": "field_identifier", "text": "json", "parent": 978, "children": [], "start_point": {"row": 179, "column": 34}, "end_point": {"row": 179, "column": 38}}, {"id": 984, "type": "assignment_expression", "text": "b = array_json_in_str(*variant_json_get_array((*p)->json), f)", "parent": 967, "children": [985, 986, 987], "start_point": {"row": 180, "column": 4}, "end_point": {"row": 180, "column": 65}}, {"id": 985, "type": "identifier", "text": "b", "parent": 984, "children": [], "start_point": {"row": 180, "column": 4}, "end_point": {"row": 180, "column": 5}}, {"id": 986, "type": "=", "text": "=", "parent": 984, "children": [], "start_point": {"row": 180, "column": 6}, "end_point": {"row": 180, "column": 7}}, {"id": 987, "type": "call_expression", "text": "array_json_in_str(*variant_json_get_array((*p)->json), f)", "parent": 984, "children": [988, 989], "start_point": {"row": 180, "column": 8}, "end_point": {"row": 180, "column": 65}}, {"id": 988, "type": "identifier", "text": "array_json_in_str", "parent": 987, "children": [], "start_point": {"row": 180, "column": 8}, "end_point": {"row": 180, "column": 25}}, {"id": 989, "type": "argument_list", "text": "(*variant_json_get_array((*p)->json), f)", "parent": 987, "children": [990, 1001], "start_point": {"row": 180, "column": 25}, "end_point": {"row": 180, "column": 65}}, {"id": 990, "type": "pointer_expression", "text": "*variant_json_get_array((*p)->json)", "parent": 989, "children": [991, 992], "start_point": {"row": 180, "column": 26}, "end_point": {"row": 180, "column": 61}}, {"id": 991, "type": "*", "text": "*", "parent": 990, "children": [], "start_point": {"row": 180, "column": 26}, "end_point": {"row": 180, "column": 27}}, {"id": 992, "type": "call_expression", "text": "variant_json_get_array((*p)->json)", "parent": 990, "children": [993, 994], "start_point": {"row": 180, "column": 27}, "end_point": {"row": 180, "column": 61}}, {"id": 993, "type": "identifier", "text": "variant_json_get_array", "parent": 992, "children": [], "start_point": {"row": 180, "column": 27}, "end_point": {"row": 180, "column": 49}}, {"id": 994, "type": "argument_list", "text": "((*p)->json)", "parent": 992, "children": [995], "start_point": {"row": 180, "column": 49}, "end_point": {"row": 180, "column": 61}}, {"id": 995, "type": "field_expression", "text": "(*p)->json", "parent": 994, "children": [996, 1000], "start_point": {"row": 180, "column": 50}, "end_point": {"row": 180, "column": 60}}, {"id": 996, "type": "parenthesized_expression", "text": "(*p)", "parent": 995, "children": [997], "start_point": {"row": 180, "column": 50}, "end_point": {"row": 180, "column": 54}}, {"id": 997, "type": "pointer_expression", "text": "*p", "parent": 996, "children": [998, 999], "start_point": {"row": 180, "column": 51}, "end_point": {"row": 180, "column": 53}}, {"id": 998, "type": "*", "text": "*", "parent": 997, "children": [], "start_point": {"row": 180, "column": 51}, "end_point": {"row": 180, "column": 52}}, {"id": 999, "type": "identifier", "text": "p", "parent": 997, "children": [], "start_point": {"row": 180, "column": 52}, "end_point": {"row": 180, "column": 53}}, {"id": 1000, "type": "field_identifier", "text": "json", "parent": 995, "children": [], "start_point": {"row": 180, "column": 56}, "end_point": {"row": 180, "column": 60}}, {"id": 1001, "type": "identifier", "text": "f", "parent": 989, "children": [], "start_point": {"row": 180, "column": 63}, "end_point": {"row": 180, "column": 64}}, {"id": 1002, "type": "if_statement", "text": "if (!b) return false;", "parent": 967, "children": [1003, 1007], "start_point": {"row": 181, "column": 4}, "end_point": {"row": 181, "column": 25}}, {"id": 1003, "type": "parenthesized_expression", "text": "(!b)", "parent": 1002, "children": [1004], "start_point": {"row": 181, "column": 7}, "end_point": {"row": 181, "column": 11}}, {"id": 1004, "type": "unary_expression", "text": "!b", "parent": 1003, "children": [1005, 1006], "start_point": {"row": 181, "column": 8}, "end_point": {"row": 181, "column": 10}}, {"id": 1005, "type": "!", "text": "!", "parent": 1004, "children": [], "start_point": {"row": 181, "column": 8}, "end_point": {"row": 181, "column": 9}}, {"id": 1006, "type": "identifier", "text": "b", "parent": 1004, "children": [], "start_point": {"row": 181, "column": 9}, "end_point": {"row": 181, "column": 10}}, {"id": 1007, "type": "return_statement", "text": "return false;", "parent": 1002, "children": [1008], "start_point": {"row": 181, "column": 12}, "end_point": {"row": 181, "column": 25}}, {"id": 1008, "type": "false", "text": "false", "parent": 1007, "children": [], "start_point": {"row": 181, "column": 19}, "end_point": {"row": 181, "column": 24}}, {"id": 1009, "type": "else_clause", "text": "else if (c == '{') {\n variant_json_init_dict((*p)->json);\n b = dict_json_in_str(*variant_json_get_dict((*p)->json), f);\n if (!b) return false;\n } else if (c == 'n') {\n variant_json_init((*p)->json);\n c = fgetc(f);\n c = fgetc(f); if (c != 'u') return false;\n c = fgetc(f); if (c != 'l') return false;\n c = fgetc(f);\n return (c == 'l');\n } else {\n return false;\n }", "parent": 967, "children": [1010], "start_point": {"row": 182, "column": 4}, "end_point": {"row": 195, "column": 3}}, {"id": 1010, "type": "if_statement", "text": "if (c == '{') {\n variant_json_init_dict((*p)->json);\n b = dict_json_in_str(*variant_json_get_dict((*p)->json), f);\n if (!b) return false;\n } else if (c == 'n') {\n variant_json_init((*p)->json);\n c = fgetc(f);\n c = fgetc(f); if (c != 'u') return false;\n c = fgetc(f); if (c != 'l') return false;\n c = fgetc(f);\n return (c == 'l');\n } else {\n return false;\n }", "parent": 1009, "children": [1011, 1052], "start_point": {"row": 182, "column": 9}, "end_point": {"row": 195, "column": 3}}, {"id": 1011, "type": "parenthesized_expression", "text": "(c == '{')", "parent": 1010, "children": [1012], "start_point": {"row": 182, "column": 12}, "end_point": {"row": 182, "column": 22}}, {"id": 1012, "type": "binary_expression", "text": "c == '{'", "parent": 1011, "children": [1013, 1014, 1015], "start_point": {"row": 182, "column": 13}, "end_point": {"row": 182, "column": 21}}, {"id": 1013, "type": "identifier", "text": "c", "parent": 1012, "children": [], "start_point": {"row": 182, "column": 13}, "end_point": {"row": 182, "column": 14}}, {"id": 1014, "type": "==", "text": "==", "parent": 1012, "children": [], "start_point": {"row": 182, "column": 15}, "end_point": {"row": 182, "column": 17}}, {"id": 1015, "type": "char_literal", "text": "'{'", "parent": 1012, "children": [1016, 1017], "start_point": {"row": 182, "column": 18}, "end_point": {"row": 182, "column": 21}}, {"id": 1016, "type": "'", "text": "'", "parent": 1015, "children": [], "start_point": {"row": 182, "column": 18}, "end_point": {"row": 182, "column": 19}}, {"id": 1017, "type": "'", "text": "'", "parent": 1015, "children": [], "start_point": {"row": 182, "column": 20}, "end_point": {"row": 182, "column": 21}}, {"id": 1018, "type": "call_expression", "text": "variant_json_init_dict((*p)->json)", "parent": 1010, "children": [1019, 1020], "start_point": {"row": 183, "column": 4}, "end_point": {"row": 183, "column": 38}}, {"id": 1019, "type": "identifier", "text": "variant_json_init_dict", "parent": 1018, "children": [], "start_point": {"row": 183, "column": 4}, "end_point": {"row": 183, "column": 26}}, {"id": 1020, "type": "argument_list", "text": "((*p)->json)", "parent": 1018, "children": [1021], "start_point": {"row": 183, "column": 26}, "end_point": {"row": 183, "column": 38}}, {"id": 1021, "type": "field_expression", "text": "(*p)->json", "parent": 1020, "children": [1022, 1026], "start_point": {"row": 183, "column": 27}, "end_point": {"row": 183, "column": 37}}, {"id": 1022, "type": "parenthesized_expression", "text": "(*p)", "parent": 1021, "children": [1023], "start_point": {"row": 183, "column": 27}, "end_point": {"row": 183, "column": 31}}, {"id": 1023, "type": "pointer_expression", "text": "*p", "parent": 1022, "children": [1024, 1025], "start_point": {"row": 183, "column": 28}, "end_point": {"row": 183, "column": 30}}, {"id": 1024, "type": "*", "text": "*", "parent": 1023, "children": [], "start_point": {"row": 183, "column": 28}, "end_point": {"row": 183, "column": 29}}, {"id": 1025, "type": "identifier", "text": "p", "parent": 1023, "children": [], "start_point": {"row": 183, "column": 29}, "end_point": {"row": 183, "column": 30}}, {"id": 1026, "type": "field_identifier", "text": "json", "parent": 1021, "children": [], "start_point": {"row": 183, "column": 33}, "end_point": {"row": 183, "column": 37}}, {"id": 1027, "type": "assignment_expression", "text": "b = dict_json_in_str(*variant_json_get_dict((*p)->json), f)", "parent": 1010, "children": [1028, 1029, 1030], "start_point": {"row": 184, "column": 4}, "end_point": {"row": 184, "column": 63}}, {"id": 1028, "type": "identifier", "text": "b", "parent": 1027, "children": [], "start_point": {"row": 184, "column": 4}, "end_point": {"row": 184, "column": 5}}, {"id": 1029, "type": "=", "text": "=", "parent": 1027, "children": [], "start_point": {"row": 184, "column": 6}, "end_point": {"row": 184, "column": 7}}, {"id": 1030, "type": "call_expression", "text": "dict_json_in_str(*variant_json_get_dict((*p)->json), f)", "parent": 1027, "children": [1031, 1032], "start_point": {"row": 184, "column": 8}, "end_point": {"row": 184, "column": 63}}, {"id": 1031, "type": "identifier", "text": "dict_json_in_str", "parent": 1030, "children": [], "start_point": {"row": 184, "column": 8}, "end_point": {"row": 184, "column": 24}}, {"id": 1032, "type": "argument_list", "text": "(*variant_json_get_dict((*p)->json), f)", "parent": 1030, "children": [1033, 1044], "start_point": {"row": 184, "column": 24}, "end_point": {"row": 184, "column": 63}}, {"id": 1033, "type": "pointer_expression", "text": "*variant_json_get_dict((*p)->json)", "parent": 1032, "children": [1034, 1035], "start_point": {"row": 184, "column": 25}, "end_point": {"row": 184, "column": 59}}, {"id": 1034, "type": "*", "text": "*", "parent": 1033, "children": [], "start_point": {"row": 184, "column": 25}, "end_point": {"row": 184, "column": 26}}, {"id": 1035, "type": "call_expression", "text": "variant_json_get_dict((*p)->json)", "parent": 1033, "children": [1036, 1037], "start_point": {"row": 184, "column": 26}, "end_point": {"row": 184, "column": 59}}, {"id": 1036, "type": "identifier", "text": "variant_json_get_dict", "parent": 1035, "children": [], "start_point": {"row": 184, "column": 26}, "end_point": {"row": 184, "column": 47}}, {"id": 1037, "type": "argument_list", "text": "((*p)->json)", "parent": 1035, "children": [1038], "start_point": {"row": 184, "column": 47}, "end_point": {"row": 184, "column": 59}}, {"id": 1038, "type": "field_expression", "text": "(*p)->json", "parent": 1037, "children": [1039, 1043], "start_point": {"row": 184, "column": 48}, "end_point": {"row": 184, "column": 58}}, {"id": 1039, "type": "parenthesized_expression", "text": "(*p)", "parent": 1038, "children": [1040], "start_point": {"row": 184, "column": 48}, "end_point": {"row": 184, "column": 52}}, {"id": 1040, "type": "pointer_expression", "text": "*p", "parent": 1039, "children": [1041, 1042], "start_point": {"row": 184, "column": 49}, "end_point": {"row": 184, "column": 51}}, {"id": 1041, "type": "*", "text": "*", "parent": 1040, "children": [], "start_point": {"row": 184, "column": 49}, "end_point": {"row": 184, "column": 50}}, {"id": 1042, "type": "identifier", "text": "p", "parent": 1040, "children": [], "start_point": {"row": 184, "column": 50}, "end_point": {"row": 184, "column": 51}}, {"id": 1043, "type": "field_identifier", "text": "json", "parent": 1038, "children": [], "start_point": {"row": 184, "column": 54}, "end_point": {"row": 184, "column": 58}}, {"id": 1044, "type": "identifier", "text": "f", "parent": 1032, "children": [], "start_point": {"row": 184, "column": 61}, "end_point": {"row": 184, "column": 62}}, {"id": 1045, "type": "if_statement", "text": "if (!b) return false;", "parent": 1010, "children": [1046, 1050], "start_point": {"row": 185, "column": 4}, "end_point": {"row": 185, "column": 25}}, {"id": 1046, "type": "parenthesized_expression", "text": "(!b)", "parent": 1045, "children": [1047], "start_point": {"row": 185, "column": 7}, "end_point": {"row": 185, "column": 11}}, {"id": 1047, "type": "unary_expression", "text": "!b", "parent": 1046, "children": [1048, 1049], "start_point": {"row": 185, "column": 8}, "end_point": {"row": 185, "column": 10}}, {"id": 1048, "type": "!", "text": "!", "parent": 1047, "children": [], "start_point": {"row": 185, "column": 8}, "end_point": {"row": 185, "column": 9}}, {"id": 1049, "type": "identifier", "text": "b", "parent": 1047, "children": [], "start_point": {"row": 185, "column": 9}, "end_point": {"row": 185, "column": 10}}, {"id": 1050, "type": "return_statement", "text": "return false;", "parent": 1045, "children": [1051], "start_point": {"row": 185, "column": 12}, "end_point": {"row": 185, "column": 25}}, {"id": 1051, "type": "false", "text": "false", "parent": 1050, "children": [], "start_point": {"row": 185, "column": 19}, "end_point": {"row": 185, "column": 24}}, {"id": 1052, "type": "else_clause", "text": "else if (c == 'n') {\n variant_json_init((*p)->json);\n c = fgetc(f);\n c = fgetc(f); if (c != 'u') return false;\n c = fgetc(f); if (c != 'l') return false;\n c = fgetc(f);\n return (c == 'l');\n } else {\n return false;\n }", "parent": 1010, "children": [1053], "start_point": {"row": 186, "column": 4}, "end_point": {"row": 195, "column": 3}}, {"id": 1053, "type": "if_statement", "text": "if (c == 'n') {\n variant_json_init((*p)->json);\n c = fgetc(f);\n c = fgetc(f); if (c != 'u') return false;\n c = fgetc(f); if (c != 'l') return false;\n c = fgetc(f);\n return (c == 'l');\n } else {\n return false;\n }", "parent": 1052, "children": [1054, 1130], "start_point": {"row": 186, "column": 9}, "end_point": {"row": 195, "column": 3}}, {"id": 1054, "type": "parenthesized_expression", "text": "(c == 'n')", "parent": 1053, "children": [1055], "start_point": {"row": 186, "column": 12}, "end_point": {"row": 186, "column": 22}}, {"id": 1055, "type": "binary_expression", "text": "c == 'n'", "parent": 1054, "children": [1056, 1057, 1058], "start_point": {"row": 186, "column": 13}, "end_point": {"row": 186, "column": 21}}, {"id": 1056, "type": "identifier", "text": "c", "parent": 1055, "children": [], "start_point": {"row": 186, "column": 13}, "end_point": {"row": 186, "column": 14}}, {"id": 1057, "type": "==", "text": "==", "parent": 1055, "children": [], "start_point": {"row": 186, "column": 15}, "end_point": {"row": 186, "column": 17}}, {"id": 1058, "type": "char_literal", "text": "'n'", "parent": 1055, "children": [1059, 1060, 1061], "start_point": {"row": 186, "column": 18}, "end_point": {"row": 186, "column": 21}}, {"id": 1059, "type": "'", "text": "'", "parent": 1058, "children": [], "start_point": {"row": 186, "column": 18}, "end_point": {"row": 186, "column": 19}}, {"id": 1060, "type": "character", "text": "n", "parent": 1058, "children": [], "start_point": {"row": 186, "column": 19}, "end_point": {"row": 186, "column": 20}}, {"id": 1061, "type": "'", "text": "'", "parent": 1058, "children": [], "start_point": {"row": 186, "column": 20}, "end_point": {"row": 186, "column": 21}}, {"id": 1062, "type": "call_expression", "text": "variant_json_init((*p)->json)", "parent": 1053, "children": [1063, 1064], "start_point": {"row": 187, "column": 4}, "end_point": {"row": 187, "column": 33}}, {"id": 1063, "type": "identifier", "text": "variant_json_init", "parent": 1062, "children": [], "start_point": {"row": 187, "column": 4}, "end_point": {"row": 187, "column": 21}}, {"id": 1064, "type": "argument_list", "text": "((*p)->json)", "parent": 1062, "children": [1065], "start_point": {"row": 187, "column": 21}, "end_point": {"row": 187, "column": 33}}, {"id": 1065, "type": "field_expression", "text": "(*p)->json", "parent": 1064, "children": [1066, 1070], "start_point": {"row": 187, "column": 22}, "end_point": {"row": 187, "column": 32}}, {"id": 1066, "type": "parenthesized_expression", "text": "(*p)", "parent": 1065, "children": [1067], "start_point": {"row": 187, "column": 22}, "end_point": {"row": 187, "column": 26}}, {"id": 1067, "type": "pointer_expression", "text": "*p", "parent": 1066, "children": [1068, 1069], "start_point": {"row": 187, "column": 23}, "end_point": {"row": 187, "column": 25}}, {"id": 1068, "type": "*", "text": "*", "parent": 1067, "children": [], "start_point": {"row": 187, "column": 23}, "end_point": {"row": 187, "column": 24}}, {"id": 1069, "type": "identifier", "text": "p", "parent": 1067, "children": [], "start_point": {"row": 187, "column": 24}, "end_point": {"row": 187, "column": 25}}, {"id": 1070, "type": "field_identifier", "text": "json", "parent": 1065, "children": [], "start_point": {"row": 187, "column": 28}, "end_point": {"row": 187, "column": 32}}, {"id": 1071, "type": "assignment_expression", "text": "c = fgetc(f)", "parent": 1053, "children": [1072, 1073, 1074], "start_point": {"row": 188, "column": 4}, "end_point": {"row": 188, "column": 16}}, {"id": 1072, "type": "identifier", "text": "c", "parent": 1071, "children": [], "start_point": {"row": 188, "column": 4}, "end_point": {"row": 188, "column": 5}}, {"id": 1073, "type": "=", "text": "=", "parent": 1071, "children": [], "start_point": {"row": 188, "column": 6}, "end_point": {"row": 188, "column": 7}}, {"id": 1074, "type": "call_expression", "text": "fgetc(f)", "parent": 1071, "children": [1075, 1076], "start_point": {"row": 188, "column": 8}, "end_point": {"row": 188, "column": 16}}, {"id": 1075, "type": "identifier", "text": "fgetc", "parent": 1074, "children": [], "start_point": {"row": 188, "column": 8}, "end_point": {"row": 188, "column": 13}}, {"id": 1076, "type": "argument_list", "text": "(f)", "parent": 1074, "children": [1077], "start_point": {"row": 188, "column": 13}, "end_point": {"row": 188, "column": 16}}, {"id": 1077, "type": "identifier", "text": "f", "parent": 1076, "children": [], "start_point": {"row": 188, "column": 14}, "end_point": {"row": 188, "column": 15}}, {"id": 1078, "type": "assignment_expression", "text": "c = fgetc(f)", "parent": 1053, "children": [1079, 1080, 1081], "start_point": {"row": 189, "column": 4}, "end_point": {"row": 189, "column": 16}}, {"id": 1079, "type": "identifier", "text": "c", "parent": 1078, "children": [], "start_point": {"row": 189, "column": 4}, "end_point": {"row": 189, "column": 5}}, {"id": 1080, "type": "=", "text": "=", "parent": 1078, "children": [], "start_point": {"row": 189, "column": 6}, "end_point": {"row": 189, "column": 7}}, {"id": 1081, "type": "call_expression", "text": "fgetc(f)", "parent": 1078, "children": [1082, 1083], "start_point": {"row": 189, "column": 8}, "end_point": {"row": 189, "column": 16}}, {"id": 1082, "type": "identifier", "text": "fgetc", "parent": 1081, "children": [], "start_point": {"row": 189, "column": 8}, "end_point": {"row": 189, "column": 13}}, {"id": 1083, "type": "argument_list", "text": "(f)", "parent": 1081, "children": [1084], "start_point": {"row": 189, "column": 13}, "end_point": {"row": 189, "column": 16}}, {"id": 1084, "type": "identifier", "text": "f", "parent": 1083, "children": [], "start_point": {"row": 189, "column": 14}, "end_point": {"row": 189, "column": 15}}, {"id": 1085, "type": "if_statement", "text": "if (c != 'u') return false;", "parent": 1053, "children": [1086, 1094], "start_point": {"row": 189, "column": 18}, "end_point": {"row": 189, "column": 45}}, {"id": 1086, "type": "parenthesized_expression", "text": "(c != 'u')", "parent": 1085, "children": [1087], "start_point": {"row": 189, "column": 21}, "end_point": {"row": 189, "column": 31}}, {"id": 1087, "type": "binary_expression", "text": "c != 'u'", "parent": 1086, "children": [1088, 1089, 1090], "start_point": {"row": 189, "column": 22}, "end_point": {"row": 189, "column": 30}}, {"id": 1088, "type": "identifier", "text": "c", "parent": 1087, "children": [], "start_point": {"row": 189, "column": 22}, "end_point": {"row": 189, "column": 23}}, {"id": 1089, "type": "!=", "text": "!=", "parent": 1087, "children": [], "start_point": {"row": 189, "column": 24}, "end_point": {"row": 189, "column": 26}}, {"id": 1090, "type": "char_literal", "text": "'u'", "parent": 1087, "children": [1091, 1092, 1093], "start_point": {"row": 189, "column": 27}, "end_point": {"row": 189, "column": 30}}, {"id": 1091, "type": "'", "text": "'", "parent": 1090, "children": [], "start_point": {"row": 189, "column": 27}, "end_point": {"row": 189, "column": 28}}, {"id": 1092, "type": "character", "text": "u", "parent": 1090, "children": [], "start_point": {"row": 189, "column": 28}, "end_point": {"row": 189, "column": 29}}, {"id": 1093, "type": "'", "text": "'", "parent": 1090, "children": [], "start_point": {"row": 189, "column": 29}, "end_point": {"row": 189, "column": 30}}, {"id": 1094, "type": "return_statement", "text": "return false;", "parent": 1085, "children": [1095], "start_point": {"row": 189, "column": 32}, "end_point": {"row": 189, "column": 45}}, {"id": 1095, "type": "false", "text": "false", "parent": 1094, "children": [], "start_point": {"row": 189, "column": 39}, "end_point": {"row": 189, "column": 44}}, {"id": 1096, "type": "assignment_expression", "text": "c = fgetc(f)", "parent": 1053, "children": [1097, 1098, 1099], "start_point": {"row": 190, "column": 4}, "end_point": {"row": 190, "column": 16}}, {"id": 1097, "type": "identifier", "text": "c", "parent": 1096, "children": [], "start_point": {"row": 190, "column": 4}, "end_point": {"row": 190, "column": 5}}, {"id": 1098, "type": "=", "text": "=", "parent": 1096, "children": [], "start_point": {"row": 190, "column": 6}, "end_point": {"row": 190, "column": 7}}, {"id": 1099, "type": "call_expression", "text": "fgetc(f)", "parent": 1096, "children": [1100, 1101], "start_point": {"row": 190, "column": 8}, "end_point": {"row": 190, "column": 16}}, {"id": 1100, "type": "identifier", "text": "fgetc", "parent": 1099, "children": [], "start_point": {"row": 190, "column": 8}, "end_point": {"row": 190, "column": 13}}, {"id": 1101, "type": "argument_list", "text": "(f)", "parent": 1099, "children": [1102], "start_point": {"row": 190, "column": 13}, "end_point": {"row": 190, "column": 16}}, {"id": 1102, "type": "identifier", "text": "f", "parent": 1101, "children": [], "start_point": {"row": 190, "column": 14}, "end_point": {"row": 190, "column": 15}}, {"id": 1103, "type": "if_statement", "text": "if (c != 'l') return false;", "parent": 1053, "children": [1104, 1112], "start_point": {"row": 190, "column": 18}, "end_point": {"row": 190, "column": 45}}, {"id": 1104, "type": "parenthesized_expression", "text": "(c != 'l')", "parent": 1103, "children": [1105], "start_point": {"row": 190, "column": 21}, "end_point": {"row": 190, "column": 31}}, {"id": 1105, "type": "binary_expression", "text": "c != 'l'", "parent": 1104, "children": [1106, 1107, 1108], "start_point": {"row": 190, "column": 22}, "end_point": {"row": 190, "column": 30}}, {"id": 1106, "type": "identifier", "text": "c", "parent": 1105, "children": [], "start_point": {"row": 190, "column": 22}, "end_point": {"row": 190, "column": 23}}, {"id": 1107, "type": "!=", "text": "!=", "parent": 1105, "children": [], "start_point": {"row": 190, "column": 24}, "end_point": {"row": 190, "column": 26}}, {"id": 1108, "type": "char_literal", "text": "'l'", "parent": 1105, "children": [1109, 1110, 1111], "start_point": {"row": 190, "column": 27}, "end_point": {"row": 190, "column": 30}}, {"id": 1109, "type": "'", "text": "'", "parent": 1108, "children": [], "start_point": {"row": 190, "column": 27}, "end_point": {"row": 190, "column": 28}}, {"id": 1110, "type": "character", "text": "l", "parent": 1108, "children": [], "start_point": {"row": 190, "column": 28}, "end_point": {"row": 190, "column": 29}}, {"id": 1111, "type": "'", "text": "'", "parent": 1108, "children": [], "start_point": {"row": 190, "column": 29}, "end_point": {"row": 190, "column": 30}}, {"id": 1112, "type": "return_statement", "text": "return false;", "parent": 1103, "children": [1113], "start_point": {"row": 190, "column": 32}, "end_point": {"row": 190, "column": 45}}, {"id": 1113, "type": "false", "text": "false", "parent": 1112, "children": [], "start_point": {"row": 190, "column": 39}, "end_point": {"row": 190, "column": 44}}, {"id": 1114, "type": "assignment_expression", "text": "c = fgetc(f)", "parent": 1053, "children": [1115, 1116, 1117], "start_point": {"row": 191, "column": 4}, "end_point": {"row": 191, "column": 16}}, {"id": 1115, "type": "identifier", "text": "c", "parent": 1114, "children": [], "start_point": {"row": 191, "column": 4}, "end_point": {"row": 191, "column": 5}}, {"id": 1116, "type": "=", "text": "=", "parent": 1114, "children": [], "start_point": {"row": 191, "column": 6}, "end_point": {"row": 191, "column": 7}}, {"id": 1117, "type": "call_expression", "text": "fgetc(f)", "parent": 1114, "children": [1118, 1119], "start_point": {"row": 191, "column": 8}, "end_point": {"row": 191, "column": 16}}, {"id": 1118, "type": "identifier", "text": "fgetc", "parent": 1117, "children": [], "start_point": {"row": 191, "column": 8}, "end_point": {"row": 191, "column": 13}}, {"id": 1119, "type": "argument_list", "text": "(f)", "parent": 1117, "children": [1120], "start_point": {"row": 191, "column": 13}, "end_point": {"row": 191, "column": 16}}, {"id": 1120, "type": "identifier", "text": "f", "parent": 1119, "children": [], "start_point": {"row": 191, "column": 14}, "end_point": {"row": 191, "column": 15}}, {"id": 1121, "type": "return_statement", "text": "return (c == 'l');", "parent": 1053, "children": [1122], "start_point": {"row": 192, "column": 4}, "end_point": {"row": 192, "column": 22}}, {"id": 1122, "type": "parenthesized_expression", "text": "(c == 'l')", "parent": 1121, "children": [1123], "start_point": {"row": 192, "column": 11}, "end_point": {"row": 192, "column": 21}}, {"id": 1123, "type": "binary_expression", "text": "c == 'l'", "parent": 1122, "children": [1124, 1125, 1126], "start_point": {"row": 192, "column": 12}, "end_point": {"row": 192, "column": 20}}, {"id": 1124, "type": "identifier", "text": "c", "parent": 1123, "children": [], "start_point": {"row": 192, "column": 12}, "end_point": {"row": 192, "column": 13}}, {"id": 1125, "type": "==", "text": "==", "parent": 1123, "children": [], "start_point": {"row": 192, "column": 14}, "end_point": {"row": 192, "column": 16}}, {"id": 1126, "type": "char_literal", "text": "'l'", "parent": 1123, "children": [1127, 1128, 1129], "start_point": {"row": 192, "column": 17}, "end_point": {"row": 192, "column": 20}}, {"id": 1127, "type": "'", "text": "'", "parent": 1126, "children": [], "start_point": {"row": 192, "column": 17}, "end_point": {"row": 192, "column": 18}}, {"id": 1128, "type": "character", "text": "l", "parent": 1126, "children": [], "start_point": {"row": 192, "column": 18}, "end_point": {"row": 192, "column": 19}}, {"id": 1129, "type": "'", "text": "'", "parent": 1126, "children": [], "start_point": {"row": 192, "column": 19}, "end_point": {"row": 192, "column": 20}}, {"id": 1130, "type": "else_clause", "text": "else {\n return false;\n }", "parent": 1053, "children": [], "start_point": {"row": 193, "column": 4}, "end_point": {"row": 195, "column": 3}}, {"id": 1131, "type": "return_statement", "text": "return false;", "parent": 1130, "children": [1132], "start_point": {"row": 194, "column": 4}, "end_point": {"row": 194, "column": 17}}, {"id": 1132, "type": "false", "text": "false", "parent": 1131, "children": [], "start_point": {"row": 194, "column": 11}, "end_point": {"row": 194, "column": 16}}, {"id": 1133, "type": "return_statement", "text": "return true;", "parent": 752, "children": [1134], "start_point": {"row": 196, "column": 2}, "end_point": {"row": 196, "column": 14}}, {"id": 1134, "type": "true", "text": "true", "parent": 1133, "children": [], "start_point": {"row": 196, "column": 9}, "end_point": {"row": 196, "column": 13}}, {"id": 1135, "type": "function_definition", "text": "bool json_init_in_str(mjson_t *p, FILE *f)\n{\n json_init(p);\n return json_in_str(p, f);\n}", "parent": null, "children": [1136, 1137], "start_point": {"row": 199, "column": 0}, "end_point": {"row": 203, "column": 1}}, {"id": 1136, "type": "primitive_type", "text": "bool", "parent": 1135, "children": [], "start_point": {"row": 199, "column": 0}, "end_point": {"row": 199, "column": 4}}, {"id": 1137, "type": "function_declarator", "text": "json_init_in_str(mjson_t *p, FILE *f)", "parent": 1135, "children": [1138, 1139], "start_point": {"row": 199, "column": 5}, "end_point": {"row": 199, "column": 42}}, {"id": 1138, "type": "identifier", "text": "json_init_in_str", "parent": 1137, "children": [], "start_point": {"row": 199, "column": 5}, "end_point": {"row": 199, "column": 21}}, {"id": 1139, "type": "parameter_list", "text": "(mjson_t *p, FILE *f)", "parent": 1137, "children": [1140, 1145], "start_point": {"row": 199, "column": 21}, "end_point": {"row": 199, "column": 42}}, {"id": 1140, "type": "parameter_declaration", "text": "mjson_t *p", "parent": 1139, "children": [1141, 1142], "start_point": {"row": 199, "column": 22}, "end_point": {"row": 199, "column": 32}}, {"id": 1141, "type": "type_identifier", "text": "mjson_t", "parent": 1140, "children": [], "start_point": {"row": 199, "column": 22}, "end_point": {"row": 199, "column": 29}}, {"id": 1142, "type": "pointer_declarator", "text": "*p", "parent": 1140, "children": [1143, 1144], "start_point": {"row": 199, "column": 30}, "end_point": {"row": 199, "column": 32}}, {"id": 1143, "type": "*", "text": "*", "parent": 1142, "children": [], "start_point": {"row": 199, "column": 30}, "end_point": {"row": 199, "column": 31}}, {"id": 1144, "type": "identifier", "text": "p", "parent": 1142, "children": [], "start_point": {"row": 199, "column": 31}, "end_point": {"row": 199, "column": 32}}, {"id": 1145, "type": "parameter_declaration", "text": "FILE *f", "parent": 1139, "children": [1146, 1147], "start_point": {"row": 199, "column": 34}, "end_point": {"row": 199, "column": 41}}, {"id": 1146, "type": "type_identifier", "text": "FILE", "parent": 1145, "children": [], "start_point": {"row": 199, "column": 34}, "end_point": {"row": 199, "column": 38}}, {"id": 1147, "type": "pointer_declarator", "text": "*f", "parent": 1145, "children": [1148, 1149], "start_point": {"row": 199, "column": 39}, "end_point": {"row": 199, "column": 41}}, {"id": 1148, "type": "*", "text": "*", "parent": 1147, "children": [], "start_point": {"row": 199, "column": 39}, "end_point": {"row": 199, "column": 40}}, {"id": 1149, "type": "identifier", "text": "f", "parent": 1147, "children": [], "start_point": {"row": 199, "column": 40}, "end_point": {"row": 199, "column": 41}}, {"id": 1150, "type": "call_expression", "text": "json_init(p)", "parent": 1135, "children": [1151, 1152], "start_point": {"row": 201, "column": 2}, "end_point": {"row": 201, "column": 14}}, {"id": 1151, "type": "identifier", "text": "json_init", "parent": 1150, "children": [], "start_point": {"row": 201, "column": 2}, "end_point": {"row": 201, "column": 11}}, {"id": 1152, "type": "argument_list", "text": "(p)", "parent": 1150, "children": [1153], "start_point": {"row": 201, "column": 11}, "end_point": {"row": 201, "column": 14}}, {"id": 1153, "type": "identifier", "text": "p", "parent": 1152, "children": [], "start_point": {"row": 201, "column": 12}, "end_point": {"row": 201, "column": 13}}, {"id": 1154, "type": "return_statement", "text": "return json_in_str(p, f);", "parent": 1135, "children": [1155], "start_point": {"row": 202, "column": 2}, "end_point": {"row": 202, "column": 27}}, {"id": 1155, "type": "call_expression", "text": "json_in_str(p, f)", "parent": 1154, "children": [1156, 1157], "start_point": {"row": 202, "column": 9}, "end_point": {"row": 202, "column": 26}}, {"id": 1156, "type": "identifier", "text": "json_in_str", "parent": 1155, "children": [], "start_point": {"row": 202, "column": 9}, "end_point": {"row": 202, "column": 20}}, {"id": 1157, "type": "argument_list", "text": "(p, f)", "parent": 1155, "children": [1158, 1159], "start_point": {"row": 202, "column": 20}, "end_point": {"row": 202, "column": 26}}, {"id": 1158, "type": "identifier", "text": "p", "parent": 1157, "children": [], "start_point": {"row": 202, "column": 21}, "end_point": {"row": 202, "column": 22}}, {"id": 1159, "type": "identifier", "text": "f", "parent": 1157, "children": [], "start_point": {"row": 202, "column": 24}, "end_point": {"row": 202, "column": 25}}, {"id": 1160, "type": "function_definition", "text": "static mjson_t json_get_field(mjson_t p, va_list list)\n{\n mjson_t r = p;\n while (true) {\n const char *str = va_arg(list, const char*);\n if (str == NULL)\n return r;\n if (str[0] == '[') {\n if (!variant_json_array_p(r->json)) return NULL;\n int n = atoi(str+1);\n if (n < 0 || (unsigned)n >= array_json_size(*variant_json_get_array(r->json)))\n return NULL;\n r = *array_json_get(*variant_json_get_array(r->json), n);\n } else {\n if (!variant_json_dict_p(r->json)) return NULL;\n string_t s;\n string_init_set_str (s, str); // BAD API: I want a macro to have a string_t from a const char* but STRING_CTE doesn't work :(\n mjson_t *v = dict_json_get (*variant_json_get_dict(r->json), s);\n string_clear(s);\n if (v == NULL) return NULL;\n r = *v;\n }\n }\n}", "parent": null, "children": [1161, 1162], "start_point": {"row": 205, "column": 0}, "end_point": {"row": 228, "column": 1}}, {"id": 1161, "type": "type_identifier", "text": "mjson_t", "parent": 1160, "children": [], "start_point": {"row": 205, "column": 7}, "end_point": {"row": 205, "column": 14}}, {"id": 1162, "type": "function_declarator", "text": "json_get_field(mjson_t p, va_list list)", "parent": 1160, "children": [1163, 1164], "start_point": {"row": 205, "column": 15}, "end_point": {"row": 205, "column": 54}}, {"id": 1163, "type": "identifier", "text": "json_get_field", "parent": 1162, "children": [], "start_point": {"row": 205, "column": 15}, "end_point": {"row": 205, "column": 29}}, {"id": 1164, "type": "parameter_list", "text": "(mjson_t p, va_list list)", "parent": 1162, "children": [1165, 1168], "start_point": {"row": 205, "column": 29}, "end_point": {"row": 205, "column": 54}}, {"id": 1165, "type": "parameter_declaration", "text": "mjson_t p", "parent": 1164, "children": [1166, 1167], "start_point": {"row": 205, "column": 30}, "end_point": {"row": 205, "column": 39}}, {"id": 1166, "type": "type_identifier", "text": "mjson_t", "parent": 1165, "children": [], "start_point": {"row": 205, "column": 30}, "end_point": {"row": 205, "column": 37}}, {"id": 1167, "type": "identifier", "text": "p", "parent": 1165, "children": [], "start_point": {"row": 205, "column": 38}, "end_point": {"row": 205, "column": 39}}, {"id": 1168, "type": "parameter_declaration", "text": "va_list list", "parent": 1164, "children": [1169, 1170], "start_point": {"row": 205, "column": 41}, "end_point": {"row": 205, "column": 53}}, {"id": 1169, "type": "type_identifier", "text": "va_list", "parent": 1168, "children": [], "start_point": {"row": 205, "column": 41}, "end_point": {"row": 205, "column": 48}}, {"id": 1170, "type": "identifier", "text": "list", "parent": 1168, "children": [], "start_point": {"row": 205, "column": 49}, "end_point": {"row": 205, "column": 53}}, {"id": 1171, "type": "declaration", "text": "mjson_t r = p;", "parent": 1160, "children": [1172, 1173], "start_point": {"row": 207, "column": 2}, "end_point": {"row": 207, "column": 16}}, {"id": 1172, "type": "type_identifier", "text": "mjson_t", "parent": 1171, "children": [], "start_point": {"row": 207, "column": 2}, "end_point": {"row": 207, "column": 9}}, {"id": 1173, "type": "init_declarator", "text": "r = p", "parent": 1171, "children": [1174, 1175, 1176], "start_point": {"row": 207, "column": 10}, "end_point": {"row": 207, "column": 15}}, {"id": 1174, "type": "identifier", "text": "r", "parent": 1173, "children": [], "start_point": {"row": 207, "column": 10}, "end_point": {"row": 207, "column": 11}}, {"id": 1175, "type": "=", "text": "=", "parent": 1173, "children": [], "start_point": {"row": 207, "column": 12}, "end_point": {"row": 207, "column": 13}}, {"id": 1176, "type": "identifier", "text": "p", "parent": 1173, "children": [], "start_point": {"row": 207, "column": 14}, "end_point": {"row": 207, "column": 15}}, {"id": 1177, "type": "while_statement", "text": "while (true) {\n const char *str = va_arg(list, const char*);\n if (str == NULL)\n return r;\n if (str[0] == '[') {\n if (!variant_json_array_p(r->json)) return NULL;\n int n = atoi(str+1);\n if (n < 0 || (unsigned)n >= array_json_size(*variant_json_get_array(r->json)))\n return NULL;\n r = *array_json_get(*variant_json_get_array(r->json), n);\n } else {\n if (!variant_json_dict_p(r->json)) return NULL;\n string_t s;\n string_init_set_str (s, str); // BAD API: I want a macro to have a string_t from a const char* but STRING_CTE doesn't work :(\n mjson_t *v = dict_json_get (*variant_json_get_dict(r->json), s);\n string_clear(s);\n if (v == NULL) return NULL;\n r = *v;\n }\n }", "parent": 1160, "children": [1178], "start_point": {"row": 208, "column": 2}, "end_point": {"row": 227, "column": 3}}, {"id": 1178, "type": "parenthesized_expression", "text": "(true)", "parent": 1177, "children": [1179], "start_point": {"row": 208, "column": 8}, "end_point": {"row": 208, "column": 14}}, {"id": 1179, "type": "true", "text": "true", "parent": 1178, "children": [], "start_point": {"row": 208, "column": 9}, "end_point": {"row": 208, "column": 13}}, {"id": 1180, "type": "declaration", "text": "const char *str = va_arg(list, const char*);", "parent": 1177, "children": [1181, 1182], "start_point": {"row": 209, "column": 4}, "end_point": {"row": 209, "column": 48}}, {"id": 1181, "type": "primitive_type", "text": "char", "parent": 1180, "children": [], "start_point": {"row": 209, "column": 10}, "end_point": {"row": 209, "column": 14}}, {"id": 1182, "type": "init_declarator", "text": "*str = va_arg(list, const char*)", "parent": 1180, "children": [1183, 1186, 1187], "start_point": {"row": 209, "column": 15}, "end_point": {"row": 209, "column": 47}}, {"id": 1183, "type": "pointer_declarator", "text": "*str", "parent": 1182, "children": [1184, 1185], "start_point": {"row": 209, "column": 15}, "end_point": {"row": 209, "column": 19}}, {"id": 1184, "type": "*", "text": "*", "parent": 1183, "children": [], "start_point": {"row": 209, "column": 15}, "end_point": {"row": 209, "column": 16}}, {"id": 1185, "type": "identifier", "text": "str", "parent": 1183, "children": [], "start_point": {"row": 209, "column": 16}, "end_point": {"row": 209, "column": 19}}, {"id": 1186, "type": "=", "text": "=", "parent": 1182, "children": [], "start_point": {"row": 209, "column": 20}, "end_point": {"row": 209, "column": 21}}, {"id": 1187, "type": "call_expression", "text": "va_arg(list, const char*)", "parent": 1182, "children": [1188, 1189], "start_point": {"row": 209, "column": 22}, "end_point": {"row": 209, "column": 47}}, {"id": 1188, "type": "identifier", "text": "va_arg", "parent": 1187, "children": [], "start_point": {"row": 209, "column": 22}, "end_point": {"row": 209, "column": 28}}, {"id": 1189, "type": "argument_list", "text": "(list, const char*)", "parent": 1187, "children": [1190, 1191], "start_point": {"row": 209, "column": 28}, "end_point": {"row": 209, "column": 47}}, {"id": 1190, "type": "identifier", "text": "list", "parent": 1189, "children": [], "start_point": {"row": 209, "column": 29}, "end_point": {"row": 209, "column": 33}}, {"id": 1191, "type": "ERROR", "text": "char*", "parent": 1189, "children": [1192, 1193], "start_point": {"row": 209, "column": 41}, "end_point": {"row": 209, "column": 46}}, {"id": 1192, "type": "identifier", "text": "char", "parent": 1191, "children": [], "start_point": {"row": 209, "column": 41}, "end_point": {"row": 209, "column": 45}}, {"id": 1193, "type": "*", "text": "*", "parent": 1191, "children": [], "start_point": {"row": 209, "column": 45}, "end_point": {"row": 209, "column": 46}}, {"id": 1194, "type": "if_statement", "text": "if (str == NULL)\n return r;", "parent": 1177, "children": [1195, 1201], "start_point": {"row": 210, "column": 4}, "end_point": {"row": 211, "column": 15}}, {"id": 1195, "type": "parenthesized_expression", "text": "(str == NULL)", "parent": 1194, "children": [1196], "start_point": {"row": 210, "column": 7}, "end_point": {"row": 210, "column": 20}}, {"id": 1196, "type": "binary_expression", "text": "str == NULL", "parent": 1195, "children": [1197, 1198, 1199], "start_point": {"row": 210, "column": 8}, "end_point": {"row": 210, "column": 19}}, {"id": 1197, "type": "identifier", "text": "str", "parent": 1196, "children": [], "start_point": {"row": 210, "column": 8}, "end_point": {"row": 210, "column": 11}}, {"id": 1198, "type": "==", "text": "==", "parent": 1196, "children": [], "start_point": {"row": 210, "column": 12}, "end_point": {"row": 210, "column": 14}}, {"id": 1199, "type": "null", "text": "NULL", "parent": 1196, "children": [1200], "start_point": {"row": 210, "column": 15}, "end_point": {"row": 210, "column": 19}}, {"id": 1200, "type": "NULL", "text": "NULL", "parent": 1199, "children": [], "start_point": {"row": 210, "column": 15}, "end_point": {"row": 210, "column": 19}}, {"id": 1201, "type": "return_statement", "text": "return r;", "parent": 1194, "children": [1202], "start_point": {"row": 211, "column": 6}, "end_point": {"row": 211, "column": 15}}, {"id": 1202, "type": "identifier", "text": "r", "parent": 1201, "children": [], "start_point": {"row": 211, "column": 13}, "end_point": {"row": 211, "column": 14}}, {"id": 1203, "type": "if_statement", "text": "if (str[0] == '[') {\n if (!variant_json_array_p(r->json)) return NULL;\n int n = atoi(str+1);\n if (n < 0 || (unsigned)n >= array_json_size(*variant_json_get_array(r->json)))\n return NULL;\n r = *array_json_get(*variant_json_get_array(r->json), n);\n } else {\n if (!variant_json_dict_p(r->json)) return NULL;\n string_t s;\n string_init_set_str (s, str); // BAD API: I want a macro to have a string_t from a const char* but STRING_CTE doesn't work :(\n mjson_t *v = dict_json_get (*variant_json_get_dict(r->json), s);\n string_clear(s);\n if (v == NULL) return NULL;\n r = *v;\n }", "parent": 1177, "children": [1204, 1284], "start_point": {"row": 212, "column": 4}, "end_point": {"row": 226, "column": 5}}, {"id": 1204, "type": "parenthesized_expression", "text": "(str[0] == '[')", "parent": 1203, "children": [1205], "start_point": {"row": 212, "column": 7}, "end_point": {"row": 212, "column": 22}}, {"id": 1205, "type": "binary_expression", "text": "str[0] == '['", "parent": 1204, "children": [1206, 1209, 1210], "start_point": {"row": 212, "column": 8}, "end_point": {"row": 212, "column": 21}}, {"id": 1206, "type": "subscript_expression", "text": "str[0]", "parent": 1205, "children": [1207, 1208], "start_point": {"row": 212, "column": 8}, "end_point": {"row": 212, "column": 14}}, {"id": 1207, "type": "identifier", "text": "str", "parent": 1206, "children": [], "start_point": {"row": 212, "column": 8}, "end_point": {"row": 212, "column": 11}}, {"id": 1208, "type": "number_literal", "text": "0", "parent": 1206, "children": [], "start_point": {"row": 212, "column": 12}, "end_point": {"row": 212, "column": 13}}, {"id": 1209, "type": "==", "text": "==", "parent": 1205, "children": [], "start_point": {"row": 212, "column": 15}, "end_point": {"row": 212, "column": 17}}, {"id": 1210, "type": "char_literal", "text": "'['", "parent": 1205, "children": [1211, 1212], "start_point": {"row": 212, "column": 18}, "end_point": {"row": 212, "column": 21}}, {"id": 1211, "type": "'", "text": "'", "parent": 1210, "children": [], "start_point": {"row": 212, "column": 18}, "end_point": {"row": 212, "column": 19}}, {"id": 1212, "type": "'", "text": "'", "parent": 1210, "children": [], "start_point": {"row": 212, "column": 20}, "end_point": {"row": 212, "column": 21}}, {"id": 1213, "type": "if_statement", "text": "if (!variant_json_array_p(r->json)) return NULL;", "parent": 1203, "children": [1214, 1223], "start_point": {"row": 213, "column": 6}, "end_point": {"row": 213, "column": 54}}, {"id": 1214, "type": "parenthesized_expression", "text": "(!variant_json_array_p(r->json))", "parent": 1213, "children": [1215], "start_point": {"row": 213, "column": 9}, "end_point": {"row": 213, "column": 41}}, {"id": 1215, "type": "unary_expression", "text": "!variant_json_array_p(r->json)", "parent": 1214, "children": [1216, 1217], "start_point": {"row": 213, "column": 10}, "end_point": {"row": 213, "column": 40}}, {"id": 1216, "type": "!", "text": "!", "parent": 1215, "children": [], "start_point": {"row": 213, "column": 10}, "end_point": {"row": 213, "column": 11}}, {"id": 1217, "type": "call_expression", "text": "variant_json_array_p(r->json)", "parent": 1215, "children": [1218, 1219], "start_point": {"row": 213, "column": 11}, "end_point": {"row": 213, "column": 40}}, {"id": 1218, "type": "identifier", "text": "variant_json_array_p", "parent": 1217, "children": [], "start_point": {"row": 213, "column": 11}, "end_point": {"row": 213, "column": 31}}, {"id": 1219, "type": "argument_list", "text": "(r->json)", "parent": 1217, "children": [1220], "start_point": {"row": 213, "column": 31}, "end_point": {"row": 213, "column": 40}}, {"id": 1220, "type": "field_expression", "text": "r->json", "parent": 1219, "children": [1221, 1222], "start_point": {"row": 213, "column": 32}, "end_point": {"row": 213, "column": 39}}, {"id": 1221, "type": "identifier", "text": "r", "parent": 1220, "children": [], "start_point": {"row": 213, "column": 32}, "end_point": {"row": 213, "column": 33}}, {"id": 1222, "type": "field_identifier", "text": "json", "parent": 1220, "children": [], "start_point": {"row": 213, "column": 35}, "end_point": {"row": 213, "column": 39}}, {"id": 1223, "type": "return_statement", "text": "return NULL;", "parent": 1213, "children": [1224], "start_point": {"row": 213, "column": 42}, "end_point": {"row": 213, "column": 54}}, {"id": 1224, "type": "null", "text": "NULL", "parent": 1223, "children": [1225], "start_point": {"row": 213, "column": 49}, "end_point": {"row": 213, "column": 53}}, {"id": 1225, "type": "NULL", "text": "NULL", "parent": 1224, "children": [], "start_point": {"row": 213, "column": 49}, "end_point": {"row": 213, "column": 53}}, {"id": 1226, "type": "declaration", "text": "int n = atoi(str+1);", "parent": 1203, "children": [1227, 1228], "start_point": {"row": 214, "column": 6}, "end_point": {"row": 214, "column": 26}}, {"id": 1227, "type": "primitive_type", "text": "int", "parent": 1226, "children": [], "start_point": {"row": 214, "column": 6}, "end_point": {"row": 214, "column": 9}}, {"id": 1228, "type": "init_declarator", "text": "n = atoi(str+1)", "parent": 1226, "children": [1229, 1230, 1231], "start_point": {"row": 214, "column": 10}, "end_point": {"row": 214, "column": 25}}, {"id": 1229, "type": "identifier", "text": "n", "parent": 1228, "children": [], "start_point": {"row": 214, "column": 10}, "end_point": {"row": 214, "column": 11}}, {"id": 1230, "type": "=", "text": "=", "parent": 1228, "children": [], "start_point": {"row": 214, "column": 12}, "end_point": {"row": 214, "column": 13}}, {"id": 1231, "type": "call_expression", "text": "atoi(str+1)", "parent": 1228, "children": [1232, 1233], "start_point": {"row": 214, "column": 14}, "end_point": {"row": 214, "column": 25}}, {"id": 1232, "type": "identifier", "text": "atoi", "parent": 1231, "children": [], "start_point": {"row": 214, "column": 14}, "end_point": {"row": 214, "column": 18}}, {"id": 1233, "type": "argument_list", "text": "(str+1)", "parent": 1231, "children": [1234], "start_point": {"row": 214, "column": 18}, "end_point": {"row": 214, "column": 25}}, {"id": 1234, "type": "binary_expression", "text": "str+1", "parent": 1233, "children": [1235, 1236, 1237], "start_point": {"row": 214, "column": 19}, "end_point": {"row": 214, "column": 24}}, {"id": 1235, "type": "identifier", "text": "str", "parent": 1234, "children": [], "start_point": {"row": 214, "column": 19}, "end_point": {"row": 214, "column": 22}}, {"id": 1236, "type": "+", "text": "+", "parent": 1234, "children": [], "start_point": {"row": 214, "column": 22}, "end_point": {"row": 214, "column": 23}}, {"id": 1237, "type": "number_literal", "text": "1", "parent": 1234, "children": [], "start_point": {"row": 214, "column": 23}, "end_point": {"row": 214, "column": 24}}, {"id": 1238, "type": "if_statement", "text": "if (n < 0 || (unsigned)n >= array_json_size(*variant_json_get_array(r->json)))\n return NULL;", "parent": 1203, "children": [1239, 1264], "start_point": {"row": 215, "column": 6}, "end_point": {"row": 216, "column": 20}}, {"id": 1239, "type": "parenthesized_expression", "text": "(n < 0 || (unsigned)n >= array_json_size(*variant_json_get_array(r->json)))", "parent": 1238, "children": [1240], "start_point": {"row": 215, "column": 9}, "end_point": {"row": 215, "column": 84}}, {"id": 1240, "type": "binary_expression", "text": "n < 0 || (unsigned)n >= array_json_size(*variant_json_get_array(r->json))", "parent": 1239, "children": [1241, 1245, 1246], "start_point": {"row": 215, "column": 10}, "end_point": {"row": 215, "column": 83}}, {"id": 1241, "type": "binary_expression", "text": "n < 0", "parent": 1240, "children": [1242, 1243, 1244], "start_point": {"row": 215, "column": 10}, "end_point": {"row": 215, "column": 15}}, {"id": 1242, "type": "identifier", "text": "n", "parent": 1241, "children": [], "start_point": {"row": 215, "column": 10}, "end_point": {"row": 215, "column": 11}}, {"id": 1243, "type": "<", "text": "<", "parent": 1241, "children": [], "start_point": {"row": 215, "column": 12}, "end_point": {"row": 215, "column": 13}}, {"id": 1244, "type": "number_literal", "text": "0", "parent": 1241, "children": [], "start_point": {"row": 215, "column": 14}, "end_point": {"row": 215, "column": 15}}, {"id": 1245, "type": "||", "text": "||", "parent": 1240, "children": [], "start_point": {"row": 215, "column": 16}, "end_point": {"row": 215, "column": 18}}, {"id": 1246, "type": "binary_expression", "text": "(unsigned)n >= array_json_size(*variant_json_get_array(r->json))", "parent": 1240, "children": [1247, 1252, 1253], "start_point": {"row": 215, "column": 19}, "end_point": {"row": 215, "column": 83}}, {"id": 1247, "type": "cast_expression", "text": "(unsigned)n", "parent": 1246, "children": [1248, 1251], "start_point": {"row": 215, "column": 19}, "end_point": {"row": 215, "column": 30}}, {"id": 1248, "type": "type_descriptor", "text": "unsigned", "parent": 1247, "children": [1249], "start_point": {"row": 215, "column": 20}, "end_point": {"row": 215, "column": 28}}, {"id": 1249, "type": "sized_type_specifier", "text": "unsigned", "parent": 1248, "children": [1250], "start_point": {"row": 215, "column": 20}, "end_point": {"row": 215, "column": 28}}, {"id": 1250, "type": "unsigned", "text": "unsigned", "parent": 1249, "children": [], "start_point": {"row": 215, "column": 20}, "end_point": {"row": 215, "column": 28}}, {"id": 1251, "type": "identifier", "text": "n", "parent": 1247, "children": [], "start_point": {"row": 215, "column": 29}, "end_point": {"row": 215, "column": 30}}, {"id": 1252, "type": ">=", "text": ">=", "parent": 1246, "children": [], "start_point": {"row": 215, "column": 31}, "end_point": {"row": 215, "column": 33}}, {"id": 1253, "type": "call_expression", "text": "array_json_size(*variant_json_get_array(r->json))", "parent": 1246, "children": [1254, 1255], "start_point": {"row": 215, "column": 34}, "end_point": {"row": 215, "column": 83}}, {"id": 1254, "type": "identifier", "text": "array_json_size", "parent": 1253, "children": [], "start_point": {"row": 215, "column": 34}, "end_point": {"row": 215, "column": 49}}, {"id": 1255, "type": "argument_list", "text": "(*variant_json_get_array(r->json))", "parent": 1253, "children": [1256], "start_point": {"row": 215, "column": 49}, "end_point": {"row": 215, "column": 83}}, {"id": 1256, "type": "pointer_expression", "text": "*variant_json_get_array(r->json)", "parent": 1255, "children": [1257, 1258], "start_point": {"row": 215, "column": 50}, "end_point": {"row": 215, "column": 82}}, {"id": 1257, "type": "*", "text": "*", "parent": 1256, "children": [], "start_point": {"row": 215, "column": 50}, "end_point": {"row": 215, "column": 51}}, {"id": 1258, "type": "call_expression", "text": "variant_json_get_array(r->json)", "parent": 1256, "children": [1259, 1260], "start_point": {"row": 215, "column": 51}, "end_point": {"row": 215, "column": 82}}, {"id": 1259, "type": "identifier", "text": "variant_json_get_array", "parent": 1258, "children": [], "start_point": {"row": 215, "column": 51}, "end_point": {"row": 215, "column": 73}}, {"id": 1260, "type": "argument_list", "text": "(r->json)", "parent": 1258, "children": [1261], "start_point": {"row": 215, "column": 73}, "end_point": {"row": 215, "column": 82}}, {"id": 1261, "type": "field_expression", "text": "r->json", "parent": 1260, "children": [1262, 1263], "start_point": {"row": 215, "column": 74}, "end_point": {"row": 215, "column": 81}}, {"id": 1262, "type": "identifier", "text": "r", "parent": 1261, "children": [], "start_point": {"row": 215, "column": 74}, "end_point": {"row": 215, "column": 75}}, {"id": 1263, "type": "field_identifier", "text": "json", "parent": 1261, "children": [], "start_point": {"row": 215, "column": 77}, "end_point": {"row": 215, "column": 81}}, {"id": 1264, "type": "return_statement", "text": "return NULL;", "parent": 1238, "children": [1265], "start_point": {"row": 216, "column": 8}, "end_point": {"row": 216, "column": 20}}, {"id": 1265, "type": "null", "text": "NULL", "parent": 1264, "children": [1266], "start_point": {"row": 216, "column": 15}, "end_point": {"row": 216, "column": 19}}, {"id": 1266, "type": "NULL", "text": "NULL", "parent": 1265, "children": [], "start_point": {"row": 216, "column": 15}, "end_point": {"row": 216, "column": 19}}, {"id": 1267, "type": "assignment_expression", "text": "r = *array_json_get(*variant_json_get_array(r->json), n)", "parent": 1203, "children": [1268, 1269, 1270], "start_point": {"row": 217, "column": 6}, "end_point": {"row": 217, "column": 62}}, {"id": 1268, "type": "identifier", "text": "r", "parent": 1267, "children": [], "start_point": {"row": 217, "column": 6}, "end_point": {"row": 217, "column": 7}}, {"id": 1269, "type": "=", "text": "=", "parent": 1267, "children": [], "start_point": {"row": 217, "column": 8}, "end_point": {"row": 217, "column": 9}}, {"id": 1270, "type": "pointer_expression", "text": "*array_json_get(*variant_json_get_array(r->json), n)", "parent": 1267, "children": [1271, 1272], "start_point": {"row": 217, "column": 10}, "end_point": {"row": 217, "column": 62}}, {"id": 1271, "type": "*", "text": "*", "parent": 1270, "children": [], "start_point": {"row": 217, "column": 10}, "end_point": {"row": 217, "column": 11}}, {"id": 1272, "type": "call_expression", "text": "array_json_get(*variant_json_get_array(r->json), n)", "parent": 1270, "children": [1273, 1274], "start_point": {"row": 217, "column": 11}, "end_point": {"row": 217, "column": 62}}, {"id": 1273, "type": "identifier", "text": "array_json_get", "parent": 1272, "children": [], "start_point": {"row": 217, "column": 11}, "end_point": {"row": 217, "column": 25}}, {"id": 1274, "type": "argument_list", "text": "(*variant_json_get_array(r->json), n)", "parent": 1272, "children": [1275, 1283], "start_point": {"row": 217, "column": 25}, "end_point": {"row": 217, "column": 62}}, {"id": 1275, "type": "pointer_expression", "text": "*variant_json_get_array(r->json)", "parent": 1274, "children": [1276, 1277], "start_point": {"row": 217, "column": 26}, "end_point": {"row": 217, "column": 58}}, {"id": 1276, "type": "*", "text": "*", "parent": 1275, "children": [], "start_point": {"row": 217, "column": 26}, "end_point": {"row": 217, "column": 27}}, {"id": 1277, "type": "call_expression", "text": "variant_json_get_array(r->json)", "parent": 1275, "children": [1278, 1279], "start_point": {"row": 217, "column": 27}, "end_point": {"row": 217, "column": 58}}, {"id": 1278, "type": "identifier", "text": "variant_json_get_array", "parent": 1277, "children": [], "start_point": {"row": 217, "column": 27}, "end_point": {"row": 217, "column": 49}}, {"id": 1279, "type": "argument_list", "text": "(r->json)", "parent": 1277, "children": [1280], "start_point": {"row": 217, "column": 49}, "end_point": {"row": 217, "column": 58}}, {"id": 1280, "type": "field_expression", "text": "r->json", "parent": 1279, "children": [1281, 1282], "start_point": {"row": 217, "column": 50}, "end_point": {"row": 217, "column": 57}}, {"id": 1281, "type": "identifier", "text": "r", "parent": 1280, "children": [], "start_point": {"row": 217, "column": 50}, "end_point": {"row": 217, "column": 51}}, {"id": 1282, "type": "field_identifier", "text": "json", "parent": 1280, "children": [], "start_point": {"row": 217, "column": 53}, "end_point": {"row": 217, "column": 57}}, {"id": 1283, "type": "identifier", "text": "n", "parent": 1274, "children": [], "start_point": {"row": 217, "column": 60}, "end_point": {"row": 217, "column": 61}}, {"id": 1284, "type": "else_clause", "text": "else {\n if (!variant_json_dict_p(r->json)) return NULL;\n string_t s;\n string_init_set_str (s, str); // BAD API: I want a macro to have a string_t from a const char* but STRING_CTE doesn't work :(\n mjson_t *v = dict_json_get (*variant_json_get_dict(r->json), s);\n string_clear(s);\n if (v == NULL) return NULL;\n r = *v;\n }", "parent": 1203, "children": [], "start_point": {"row": 218, "column": 6}, "end_point": {"row": 226, "column": 5}}, {"id": 1285, "type": "if_statement", "text": "if (!variant_json_dict_p(r->json)) return NULL;", "parent": 1284, "children": [1286, 1295], "start_point": {"row": 219, "column": 6}, "end_point": {"row": 219, "column": 53}}, {"id": 1286, "type": "parenthesized_expression", "text": "(!variant_json_dict_p(r->json))", "parent": 1285, "children": [1287], "start_point": {"row": 219, "column": 9}, "end_point": {"row": 219, "column": 40}}, {"id": 1287, "type": "unary_expression", "text": "!variant_json_dict_p(r->json)", "parent": 1286, "children": [1288, 1289], "start_point": {"row": 219, "column": 10}, "end_point": {"row": 219, "column": 39}}, {"id": 1288, "type": "!", "text": "!", "parent": 1287, "children": [], "start_point": {"row": 219, "column": 10}, "end_point": {"row": 219, "column": 11}}, {"id": 1289, "type": "call_expression", "text": "variant_json_dict_p(r->json)", "parent": 1287, "children": [1290, 1291], "start_point": {"row": 219, "column": 11}, "end_point": {"row": 219, "column": 39}}, {"id": 1290, "type": "identifier", "text": "variant_json_dict_p", "parent": 1289, "children": [], "start_point": {"row": 219, "column": 11}, "end_point": {"row": 219, "column": 30}}, {"id": 1291, "type": "argument_list", "text": "(r->json)", "parent": 1289, "children": [1292], "start_point": {"row": 219, "column": 30}, "end_point": {"row": 219, "column": 39}}, {"id": 1292, "type": "field_expression", "text": "r->json", "parent": 1291, "children": [1293, 1294], "start_point": {"row": 219, "column": 31}, "end_point": {"row": 219, "column": 38}}, {"id": 1293, "type": "identifier", "text": "r", "parent": 1292, "children": [], "start_point": {"row": 219, "column": 31}, "end_point": {"row": 219, "column": 32}}, {"id": 1294, "type": "field_identifier", "text": "json", "parent": 1292, "children": [], "start_point": {"row": 219, "column": 34}, "end_point": {"row": 219, "column": 38}}, {"id": 1295, "type": "return_statement", "text": "return NULL;", "parent": 1285, "children": [1296], "start_point": {"row": 219, "column": 41}, "end_point": {"row": 219, "column": 53}}, {"id": 1296, "type": "null", "text": "NULL", "parent": 1295, "children": [1297], "start_point": {"row": 219, "column": 48}, "end_point": {"row": 219, "column": 52}}, {"id": 1297, "type": "NULL", "text": "NULL", "parent": 1296, "children": [], "start_point": {"row": 219, "column": 48}, "end_point": {"row": 219, "column": 52}}, {"id": 1298, "type": "declaration", "text": "string_t s;", "parent": 1284, "children": [1299, 1300], "start_point": {"row": 220, "column": 6}, "end_point": {"row": 220, "column": 17}}, {"id": 1299, "type": "type_identifier", "text": "string_t", "parent": 1298, "children": [], "start_point": {"row": 220, "column": 6}, "end_point": {"row": 220, "column": 14}}, {"id": 1300, "type": "identifier", "text": "s", "parent": 1298, "children": [], "start_point": {"row": 220, "column": 15}, "end_point": {"row": 220, "column": 16}}, {"id": 1301, "type": "call_expression", "text": "string_init_set_str (s, str)", "parent": 1284, "children": [1302, 1303], "start_point": {"row": 221, "column": 6}, "end_point": {"row": 221, "column": 34}}, {"id": 1302, "type": "identifier", "text": "string_init_set_str", "parent": 1301, "children": [], "start_point": {"row": 221, "column": 6}, "end_point": {"row": 221, "column": 25}}, {"id": 1303, "type": "argument_list", "text": "(s, str)", "parent": 1301, "children": [1304, 1305], "start_point": {"row": 221, "column": 26}, "end_point": {"row": 221, "column": 34}}, {"id": 1304, "type": "identifier", "text": "s", "parent": 1303, "children": [], "start_point": {"row": 221, "column": 27}, "end_point": {"row": 221, "column": 28}}, {"id": 1305, "type": "identifier", "text": "str", "parent": 1303, "children": [], "start_point": {"row": 221, "column": 30}, "end_point": {"row": 221, "column": 33}}, {"id": 1306, "type": "declaration", "text": "mjson_t *v = dict_json_get (*variant_json_get_dict(r->json), s);", "parent": 1284, "children": [1307, 1308], "start_point": {"row": 222, "column": 6}, "end_point": {"row": 222, "column": 70}}, {"id": 1307, "type": "type_identifier", "text": "mjson_t", "parent": 1306, "children": [], "start_point": {"row": 222, "column": 6}, "end_point": {"row": 222, "column": 13}}, {"id": 1308, "type": "init_declarator", "text": "*v = dict_json_get (*variant_json_get_dict(r->json), s)", "parent": 1306, "children": [1309, 1312, 1313], "start_point": {"row": 222, "column": 14}, "end_point": {"row": 222, "column": 69}}, {"id": 1309, "type": "pointer_declarator", "text": "*v", "parent": 1308, "children": [1310, 1311], "start_point": {"row": 222, "column": 14}, "end_point": {"row": 222, "column": 16}}, {"id": 1310, "type": "*", "text": "*", "parent": 1309, "children": [], "start_point": {"row": 222, "column": 14}, "end_point": {"row": 222, "column": 15}}, {"id": 1311, "type": "identifier", "text": "v", "parent": 1309, "children": [], "start_point": {"row": 222, "column": 15}, "end_point": {"row": 222, "column": 16}}, {"id": 1312, "type": "=", "text": "=", "parent": 1308, "children": [], "start_point": {"row": 222, "column": 17}, "end_point": {"row": 222, "column": 18}}, {"id": 1313, "type": "call_expression", "text": "dict_json_get (*variant_json_get_dict(r->json), s)", "parent": 1308, "children": [1314, 1315], "start_point": {"row": 222, "column": 19}, "end_point": {"row": 222, "column": 69}}, {"id": 1314, "type": "identifier", "text": "dict_json_get", "parent": 1313, "children": [], "start_point": {"row": 222, "column": 19}, "end_point": {"row": 222, "column": 32}}, {"id": 1315, "type": "argument_list", "text": "(*variant_json_get_dict(r->json), s)", "parent": 1313, "children": [1316, 1324], "start_point": {"row": 222, "column": 33}, "end_point": {"row": 222, "column": 69}}, {"id": 1316, "type": "pointer_expression", "text": "*variant_json_get_dict(r->json)", "parent": 1315, "children": [1317, 1318], "start_point": {"row": 222, "column": 34}, "end_point": {"row": 222, "column": 65}}, {"id": 1317, "type": "*", "text": "*", "parent": 1316, "children": [], "start_point": {"row": 222, "column": 34}, "end_point": {"row": 222, "column": 35}}, {"id": 1318, "type": "call_expression", "text": "variant_json_get_dict(r->json)", "parent": 1316, "children": [1319, 1320], "start_point": {"row": 222, "column": 35}, "end_point": {"row": 222, "column": 65}}, {"id": 1319, "type": "identifier", "text": "variant_json_get_dict", "parent": 1318, "children": [], "start_point": {"row": 222, "column": 35}, "end_point": {"row": 222, "column": 56}}, {"id": 1320, "type": "argument_list", "text": "(r->json)", "parent": 1318, "children": [1321], "start_point": {"row": 222, "column": 56}, "end_point": {"row": 222, "column": 65}}, {"id": 1321, "type": "field_expression", "text": "r->json", "parent": 1320, "children": [1322, 1323], "start_point": {"row": 222, "column": 57}, "end_point": {"row": 222, "column": 64}}, {"id": 1322, "type": "identifier", "text": "r", "parent": 1321, "children": [], "start_point": {"row": 222, "column": 57}, "end_point": {"row": 222, "column": 58}}, {"id": 1323, "type": "field_identifier", "text": "json", "parent": 1321, "children": [], "start_point": {"row": 222, "column": 60}, "end_point": {"row": 222, "column": 64}}, {"id": 1324, "type": "identifier", "text": "s", "parent": 1315, "children": [], "start_point": {"row": 222, "column": 67}, "end_point": {"row": 222, "column": 68}}, {"id": 1325, "type": "call_expression", "text": "string_clear(s)", "parent": 1284, "children": [1326, 1327], "start_point": {"row": 223, "column": 6}, "end_point": {"row": 223, "column": 21}}, {"id": 1326, "type": "identifier", "text": "string_clear", "parent": 1325, "children": [], "start_point": {"row": 223, "column": 6}, "end_point": {"row": 223, "column": 18}}, {"id": 1327, "type": "argument_list", "text": "(s)", "parent": 1325, "children": [1328], "start_point": {"row": 223, "column": 18}, "end_point": {"row": 223, "column": 21}}, {"id": 1328, "type": "identifier", "text": "s", "parent": 1327, "children": [], "start_point": {"row": 223, "column": 19}, "end_point": {"row": 223, "column": 20}}, {"id": 1329, "type": "if_statement", "text": "if (v == NULL) return NULL;", "parent": 1284, "children": [1330, 1336], "start_point": {"row": 224, "column": 6}, "end_point": {"row": 224, "column": 33}}, {"id": 1330, "type": "parenthesized_expression", "text": "(v == NULL)", "parent": 1329, "children": [1331], "start_point": {"row": 224, "column": 9}, "end_point": {"row": 224, "column": 20}}, {"id": 1331, "type": "binary_expression", "text": "v == NULL", "parent": 1330, "children": [1332, 1333, 1334], "start_point": {"row": 224, "column": 10}, "end_point": {"row": 224, "column": 19}}, {"id": 1332, "type": "identifier", "text": "v", "parent": 1331, "children": [], "start_point": {"row": 224, "column": 10}, "end_point": {"row": 224, "column": 11}}, {"id": 1333, "type": "==", "text": "==", "parent": 1331, "children": [], "start_point": {"row": 224, "column": 12}, "end_point": {"row": 224, "column": 14}}, {"id": 1334, "type": "null", "text": "NULL", "parent": 1331, "children": [1335], "start_point": {"row": 224, "column": 15}, "end_point": {"row": 224, "column": 19}}, {"id": 1335, "type": "NULL", "text": "NULL", "parent": 1334, "children": [], "start_point": {"row": 224, "column": 15}, "end_point": {"row": 224, "column": 19}}, {"id": 1336, "type": "return_statement", "text": "return NULL;", "parent": 1329, "children": [1337], "start_point": {"row": 224, "column": 21}, "end_point": {"row": 224, "column": 33}}, {"id": 1337, "type": "null", "text": "NULL", "parent": 1336, "children": [1338], "start_point": {"row": 224, "column": 28}, "end_point": {"row": 224, "column": 32}}, {"id": 1338, "type": "NULL", "text": "NULL", "parent": 1337, "children": [], "start_point": {"row": 224, "column": 28}, "end_point": {"row": 224, "column": 32}}, {"id": 1339, "type": "assignment_expression", "text": "r = *v", "parent": 1284, "children": [1340, 1341, 1342], "start_point": {"row": 225, "column": 6}, "end_point": {"row": 225, "column": 12}}, {"id": 1340, "type": "identifier", "text": "r", "parent": 1339, "children": [], "start_point": {"row": 225, "column": 6}, "end_point": {"row": 225, "column": 7}}, {"id": 1341, "type": "=", "text": "=", "parent": 1339, "children": [], "start_point": {"row": 225, "column": 8}, "end_point": {"row": 225, "column": 9}}, {"id": 1342, "type": "pointer_expression", "text": "*v", "parent": 1339, "children": [1343, 1344], "start_point": {"row": 225, "column": 10}, "end_point": {"row": 225, "column": 12}}, {"id": 1343, "type": "*", "text": "*", "parent": 1342, "children": [], "start_point": {"row": 225, "column": 10}, "end_point": {"row": 225, "column": 11}}, {"id": 1344, "type": "identifier", "text": "v", "parent": 1342, "children": [], "start_point": {"row": 225, "column": 11}, "end_point": {"row": 225, "column": 12}}, {"id": 1345, "type": "function_definition", "text": "double json_get_real(mjson_t p, ...)\n{\n va_list ap;\n va_start(ap, p);\n mjson_t r = json_get_field(p, ap);\n va_end(ap);\n if (r == NULL || !variant_json_real_p(r->json))\n return NAN;\n else\n return *variant_json_get_real(r->json);\n}", "parent": null, "children": [1346, 1347], "start_point": {"row": 230, "column": 0}, "end_point": {"row": 240, "column": 1}}, {"id": 1346, "type": "primitive_type", "text": "double", "parent": 1345, "children": [], "start_point": {"row": 230, "column": 0}, "end_point": {"row": 230, "column": 6}}, {"id": 1347, "type": "function_declarator", "text": "json_get_real(mjson_t p, ...)", "parent": 1345, "children": [1348, 1349], "start_point": {"row": 230, "column": 7}, "end_point": {"row": 230, "column": 36}}, {"id": 1348, "type": "identifier", "text": "json_get_real", "parent": 1347, "children": [], "start_point": {"row": 230, "column": 7}, "end_point": {"row": 230, "column": 20}}, {"id": 1349, "type": "parameter_list", "text": "(mjson_t p, ...)", "parent": 1347, "children": [1350], "start_point": {"row": 230, "column": 20}, "end_point": {"row": 230, "column": 36}}, {"id": 1350, "type": "parameter_declaration", "text": "mjson_t p", "parent": 1349, "children": [1351, 1352], "start_point": {"row": 230, "column": 21}, "end_point": {"row": 230, "column": 30}}, {"id": 1351, "type": "type_identifier", "text": "mjson_t", "parent": 1350, "children": [], "start_point": {"row": 230, "column": 21}, "end_point": {"row": 230, "column": 28}}, {"id": 1352, "type": "identifier", "text": "p", "parent": 1350, "children": [], "start_point": {"row": 230, "column": 29}, "end_point": {"row": 230, "column": 30}}, {"id": 1353, "type": "declaration", "text": "va_list ap;", "parent": 1345, "children": [1354, 1355], "start_point": {"row": 232, "column": 2}, "end_point": {"row": 232, "column": 13}}, {"id": 1354, "type": "type_identifier", "text": "va_list", "parent": 1353, "children": [], "start_point": {"row": 232, "column": 2}, "end_point": {"row": 232, "column": 9}}, {"id": 1355, "type": "identifier", "text": "ap", "parent": 1353, "children": [], "start_point": {"row": 232, "column": 10}, "end_point": {"row": 232, "column": 12}}, {"id": 1356, "type": "call_expression", "text": "va_start(ap, p)", "parent": 1345, "children": [1357, 1358], "start_point": {"row": 233, "column": 2}, "end_point": {"row": 233, "column": 17}}, {"id": 1357, "type": "identifier", "text": "va_start", "parent": 1356, "children": [], "start_point": {"row": 233, "column": 2}, "end_point": {"row": 233, "column": 10}}, {"id": 1358, "type": "argument_list", "text": "(ap, p)", "parent": 1356, "children": [1359, 1360], "start_point": {"row": 233, "column": 10}, "end_point": {"row": 233, "column": 17}}, {"id": 1359, "type": "identifier", "text": "ap", "parent": 1358, "children": [], "start_point": {"row": 233, "column": 11}, "end_point": {"row": 233, "column": 13}}, {"id": 1360, "type": "identifier", "text": "p", "parent": 1358, "children": [], "start_point": {"row": 233, "column": 15}, "end_point": {"row": 233, "column": 16}}, {"id": 1361, "type": "declaration", "text": "mjson_t r = json_get_field(p, ap);", "parent": 1345, "children": [1362, 1363], "start_point": {"row": 234, "column": 2}, "end_point": {"row": 234, "column": 36}}, {"id": 1362, "type": "type_identifier", "text": "mjson_t", "parent": 1361, "children": [], "start_point": {"row": 234, "column": 2}, "end_point": {"row": 234, "column": 9}}, {"id": 1363, "type": "init_declarator", "text": "r = json_get_field(p, ap)", "parent": 1361, "children": [1364, 1365, 1366], "start_point": {"row": 234, "column": 10}, "end_point": {"row": 234, "column": 35}}, {"id": 1364, "type": "identifier", "text": "r", "parent": 1363, "children": [], "start_point": {"row": 234, "column": 10}, "end_point": {"row": 234, "column": 11}}, {"id": 1365, "type": "=", "text": "=", "parent": 1363, "children": [], "start_point": {"row": 234, "column": 12}, "end_point": {"row": 234, "column": 13}}, {"id": 1366, "type": "call_expression", "text": "json_get_field(p, ap)", "parent": 1363, "children": [1367, 1368], "start_point": {"row": 234, "column": 14}, "end_point": {"row": 234, "column": 35}}, {"id": 1367, "type": "identifier", "text": "json_get_field", "parent": 1366, "children": [], "start_point": {"row": 234, "column": 14}, "end_point": {"row": 234, "column": 28}}, {"id": 1368, "type": "argument_list", "text": "(p, ap)", "parent": 1366, "children": [1369, 1370], "start_point": {"row": 234, "column": 28}, "end_point": {"row": 234, "column": 35}}, {"id": 1369, "type": "identifier", "text": "p", "parent": 1368, "children": [], "start_point": {"row": 234, "column": 29}, "end_point": {"row": 234, "column": 30}}, {"id": 1370, "type": "identifier", "text": "ap", "parent": 1368, "children": [], "start_point": {"row": 234, "column": 32}, "end_point": {"row": 234, "column": 34}}, {"id": 1371, "type": "call_expression", "text": "va_end(ap)", "parent": 1345, "children": [1372, 1373], "start_point": {"row": 235, "column": 2}, "end_point": {"row": 235, "column": 12}}, {"id": 1372, "type": "identifier", "text": "va_end", "parent": 1371, "children": [], "start_point": {"row": 235, "column": 2}, "end_point": {"row": 235, "column": 8}}, {"id": 1373, "type": "argument_list", "text": "(ap)", "parent": 1371, "children": [1374], "start_point": {"row": 235, "column": 8}, "end_point": {"row": 235, "column": 12}}, {"id": 1374, "type": "identifier", "text": "ap", "parent": 1373, "children": [], "start_point": {"row": 235, "column": 9}, "end_point": {"row": 235, "column": 11}}, {"id": 1375, "type": "if_statement", "text": "if (r == NULL || !variant_json_real_p(r->json))\n return NAN;\n else\n return *variant_json_get_real(r->json);", "parent": 1345, "children": [1376, 1392, 1394], "start_point": {"row": 236, "column": 2}, "end_point": {"row": 239, "column": 43}}, {"id": 1376, "type": "parenthesized_expression", "text": "(r == NULL || !variant_json_real_p(r->json))", "parent": 1375, "children": [1377], "start_point": {"row": 236, "column": 5}, "end_point": {"row": 236, "column": 49}}, {"id": 1377, "type": "binary_expression", "text": "r == NULL || !variant_json_real_p(r->json)", "parent": 1376, "children": [1378, 1383, 1384], "start_point": {"row": 236, "column": 6}, "end_point": {"row": 236, "column": 48}}, {"id": 1378, "type": "binary_expression", "text": "r == NULL", "parent": 1377, "children": [1379, 1380, 1381], "start_point": {"row": 236, "column": 6}, "end_point": {"row": 236, "column": 15}}, {"id": 1379, "type": "identifier", "text": "r", "parent": 1378, "children": [], "start_point": {"row": 236, "column": 6}, "end_point": {"row": 236, "column": 7}}, {"id": 1380, "type": "==", "text": "==", "parent": 1378, "children": [], "start_point": {"row": 236, "column": 8}, "end_point": {"row": 236, "column": 10}}, {"id": 1381, "type": "null", "text": "NULL", "parent": 1378, "children": [1382], "start_point": {"row": 236, "column": 11}, "end_point": {"row": 236, "column": 15}}, {"id": 1382, "type": "NULL", "text": "NULL", "parent": 1381, "children": [], "start_point": {"row": 236, "column": 11}, "end_point": {"row": 236, "column": 15}}, {"id": 1383, "type": "||", "text": "||", "parent": 1377, "children": [], "start_point": {"row": 236, "column": 16}, "end_point": {"row": 236, "column": 18}}, {"id": 1384, "type": "unary_expression", "text": "!variant_json_real_p(r->json)", "parent": 1377, "children": [1385, 1386], "start_point": {"row": 236, "column": 19}, "end_point": {"row": 236, "column": 48}}, {"id": 1385, "type": "!", "text": "!", "parent": 1384, "children": [], "start_point": {"row": 236, "column": 19}, "end_point": {"row": 236, "column": 20}}, {"id": 1386, "type": "call_expression", "text": "variant_json_real_p(r->json)", "parent": 1384, "children": [1387, 1388], "start_point": {"row": 236, "column": 20}, "end_point": {"row": 236, "column": 48}}, {"id": 1387, "type": "identifier", "text": "variant_json_real_p", "parent": 1386, "children": [], "start_point": {"row": 236, "column": 20}, "end_point": {"row": 236, "column": 39}}, {"id": 1388, "type": "argument_list", "text": "(r->json)", "parent": 1386, "children": [1389], "start_point": {"row": 236, "column": 39}, "end_point": {"row": 236, "column": 48}}, {"id": 1389, "type": "field_expression", "text": "r->json", "parent": 1388, "children": [1390, 1391], "start_point": {"row": 236, "column": 40}, "end_point": {"row": 236, "column": 47}}, {"id": 1390, "type": "identifier", "text": "r", "parent": 1389, "children": [], "start_point": {"row": 236, "column": 40}, "end_point": {"row": 236, "column": 41}}, {"id": 1391, "type": "field_identifier", "text": "json", "parent": 1389, "children": [], "start_point": {"row": 236, "column": 43}, "end_point": {"row": 236, "column": 47}}, {"id": 1392, "type": "return_statement", "text": "return NAN;", "parent": 1375, "children": [1393], "start_point": {"row": 237, "column": 4}, "end_point": {"row": 237, "column": 15}}, {"id": 1393, "type": "identifier", "text": "NAN", "parent": 1392, "children": [], "start_point": {"row": 237, "column": 11}, "end_point": {"row": 237, "column": 14}}, {"id": 1394, "type": "else_clause", "text": "else\n return *variant_json_get_real(r->json);", "parent": 1375, "children": [1395], "start_point": {"row": 238, "column": 2}, "end_point": {"row": 239, "column": 43}}, {"id": 1395, "type": "return_statement", "text": "return *variant_json_get_real(r->json);", "parent": 1394, "children": [1396], "start_point": {"row": 239, "column": 4}, "end_point": {"row": 239, "column": 43}}, {"id": 1396, "type": "pointer_expression", "text": "*variant_json_get_real(r->json)", "parent": 1395, "children": [1397, 1398], "start_point": {"row": 239, "column": 11}, "end_point": {"row": 239, "column": 42}}, {"id": 1397, "type": "*", "text": "*", "parent": 1396, "children": [], "start_point": {"row": 239, "column": 11}, "end_point": {"row": 239, "column": 12}}, {"id": 1398, "type": "call_expression", "text": "variant_json_get_real(r->json)", "parent": 1396, "children": [1399, 1400], "start_point": {"row": 239, "column": 12}, "end_point": {"row": 239, "column": 42}}, {"id": 1399, "type": "identifier", "text": "variant_json_get_real", "parent": 1398, "children": [], "start_point": {"row": 239, "column": 12}, "end_point": {"row": 239, "column": 33}}, {"id": 1400, "type": "argument_list", "text": "(r->json)", "parent": 1398, "children": [1401], "start_point": {"row": 239, "column": 33}, "end_point": {"row": 239, "column": 42}}, {"id": 1401, "type": "field_expression", "text": "r->json", "parent": 1400, "children": [1402, 1403], "start_point": {"row": 239, "column": 34}, "end_point": {"row": 239, "column": 41}}, {"id": 1402, "type": "identifier", "text": "r", "parent": 1401, "children": [], "start_point": {"row": 239, "column": 34}, "end_point": {"row": 239, "column": 35}}, {"id": 1403, "type": "field_identifier", "text": "json", "parent": 1401, "children": [], "start_point": {"row": 239, "column": 37}, "end_point": {"row": 239, "column": 41}}, {"id": 1404, "type": "function_definition", "text": "int json_get_boolean(mjson_t p, ...)\n{\n va_list ap;\n va_start(ap, p);\n mjson_t r = json_get_field(p, ap);\n va_end(ap);\n if (r == NULL || !variant_json_boolean_p(r->json))\n return -1;\n else\n return *variant_json_get_boolean(r->json);\n}", "parent": null, "children": [1405, 1406], "start_point": {"row": 242, "column": 0}, "end_point": {"row": 252, "column": 1}}, {"id": 1405, "type": "primitive_type", "text": "int", "parent": 1404, "children": [], "start_point": {"row": 242, "column": 0}, "end_point": {"row": 242, "column": 3}}, {"id": 1406, "type": "function_declarator", "text": "json_get_boolean(mjson_t p, ...)", "parent": 1404, "children": [1407, 1408], "start_point": {"row": 242, "column": 4}, "end_point": {"row": 242, "column": 36}}, {"id": 1407, "type": "identifier", "text": "json_get_boolean", "parent": 1406, "children": [], "start_point": {"row": 242, "column": 4}, "end_point": {"row": 242, "column": 20}}, {"id": 1408, "type": "parameter_list", "text": "(mjson_t p, ...)", "parent": 1406, "children": [1409], "start_point": {"row": 242, "column": 20}, "end_point": {"row": 242, "column": 36}}, {"id": 1409, "type": "parameter_declaration", "text": "mjson_t p", "parent": 1408, "children": [1410, 1411], "start_point": {"row": 242, "column": 21}, "end_point": {"row": 242, "column": 30}}, {"id": 1410, "type": "type_identifier", "text": "mjson_t", "parent": 1409, "children": [], "start_point": {"row": 242, "column": 21}, "end_point": {"row": 242, "column": 28}}, {"id": 1411, "type": "identifier", "text": "p", "parent": 1409, "children": [], "start_point": {"row": 242, "column": 29}, "end_point": {"row": 242, "column": 30}}, {"id": 1412, "type": "declaration", "text": "va_list ap;", "parent": 1404, "children": [1413, 1414], "start_point": {"row": 244, "column": 2}, "end_point": {"row": 244, "column": 13}}, {"id": 1413, "type": "type_identifier", "text": "va_list", "parent": 1412, "children": [], "start_point": {"row": 244, "column": 2}, "end_point": {"row": 244, "column": 9}}, {"id": 1414, "type": "identifier", "text": "ap", "parent": 1412, "children": [], "start_point": {"row": 244, "column": 10}, "end_point": {"row": 244, "column": 12}}, {"id": 1415, "type": "call_expression", "text": "va_start(ap, p)", "parent": 1404, "children": [1416, 1417], "start_point": {"row": 245, "column": 2}, "end_point": {"row": 245, "column": 17}}, {"id": 1416, "type": "identifier", "text": "va_start", "parent": 1415, "children": [], "start_point": {"row": 245, "column": 2}, "end_point": {"row": 245, "column": 10}}, {"id": 1417, "type": "argument_list", "text": "(ap, p)", "parent": 1415, "children": [1418, 1419], "start_point": {"row": 245, "column": 10}, "end_point": {"row": 245, "column": 17}}, {"id": 1418, "type": "identifier", "text": "ap", "parent": 1417, "children": [], "start_point": {"row": 245, "column": 11}, "end_point": {"row": 245, "column": 13}}, {"id": 1419, "type": "identifier", "text": "p", "parent": 1417, "children": [], "start_point": {"row": 245, "column": 15}, "end_point": {"row": 245, "column": 16}}, {"id": 1420, "type": "declaration", "text": "mjson_t r = json_get_field(p, ap);", "parent": 1404, "children": [1421, 1422], "start_point": {"row": 246, "column": 2}, "end_point": {"row": 246, "column": 36}}, {"id": 1421, "type": "type_identifier", "text": "mjson_t", "parent": 1420, "children": [], "start_point": {"row": 246, "column": 2}, "end_point": {"row": 246, "column": 9}}, {"id": 1422, "type": "init_declarator", "text": "r = json_get_field(p, ap)", "parent": 1420, "children": [1423, 1424, 1425], "start_point": {"row": 246, "column": 10}, "end_point": {"row": 246, "column": 35}}, {"id": 1423, "type": "identifier", "text": "r", "parent": 1422, "children": [], "start_point": {"row": 246, "column": 10}, "end_point": {"row": 246, "column": 11}}, {"id": 1424, "type": "=", "text": "=", "parent": 1422, "children": [], "start_point": {"row": 246, "column": 12}, "end_point": {"row": 246, "column": 13}}, {"id": 1425, "type": "call_expression", "text": "json_get_field(p, ap)", "parent": 1422, "children": [1426, 1427], "start_point": {"row": 246, "column": 14}, "end_point": {"row": 246, "column": 35}}, {"id": 1426, "type": "identifier", "text": "json_get_field", "parent": 1425, "children": [], "start_point": {"row": 246, "column": 14}, "end_point": {"row": 246, "column": 28}}, {"id": 1427, "type": "argument_list", "text": "(p, ap)", "parent": 1425, "children": [1428, 1429], "start_point": {"row": 246, "column": 28}, "end_point": {"row": 246, "column": 35}}, {"id": 1428, "type": "identifier", "text": "p", "parent": 1427, "children": [], "start_point": {"row": 246, "column": 29}, "end_point": {"row": 246, "column": 30}}, {"id": 1429, "type": "identifier", "text": "ap", "parent": 1427, "children": [], "start_point": {"row": 246, "column": 32}, "end_point": {"row": 246, "column": 34}}, {"id": 1430, "type": "call_expression", "text": "va_end(ap)", "parent": 1404, "children": [1431, 1432], "start_point": {"row": 247, "column": 2}, "end_point": {"row": 247, "column": 12}}, {"id": 1431, "type": "identifier", "text": "va_end", "parent": 1430, "children": [], "start_point": {"row": 247, "column": 2}, "end_point": {"row": 247, "column": 8}}, {"id": 1432, "type": "argument_list", "text": "(ap)", "parent": 1430, "children": [1433], "start_point": {"row": 247, "column": 8}, "end_point": {"row": 247, "column": 12}}, {"id": 1433, "type": "identifier", "text": "ap", "parent": 1432, "children": [], "start_point": {"row": 247, "column": 9}, "end_point": {"row": 247, "column": 11}}, {"id": 1434, "type": "if_statement", "text": "if (r == NULL || !variant_json_boolean_p(r->json))\n return -1;\n else\n return *variant_json_get_boolean(r->json);", "parent": 1404, "children": [1435, 1451, 1453], "start_point": {"row": 248, "column": 2}, "end_point": {"row": 251, "column": 46}}, {"id": 1435, "type": "parenthesized_expression", "text": "(r == NULL || !variant_json_boolean_p(r->json))", "parent": 1434, "children": [1436], "start_point": {"row": 248, "column": 5}, "end_point": {"row": 248, "column": 52}}, {"id": 1436, "type": "binary_expression", "text": "r == NULL || !variant_json_boolean_p(r->json)", "parent": 1435, "children": [1437, 1442, 1443], "start_point": {"row": 248, "column": 6}, "end_point": {"row": 248, "column": 51}}, {"id": 1437, "type": "binary_expression", "text": "r == NULL", "parent": 1436, "children": [1438, 1439, 1440], "start_point": {"row": 248, "column": 6}, "end_point": {"row": 248, "column": 15}}, {"id": 1438, "type": "identifier", "text": "r", "parent": 1437, "children": [], "start_point": {"row": 248, "column": 6}, "end_point": {"row": 248, "column": 7}}, {"id": 1439, "type": "==", "text": "==", "parent": 1437, "children": [], "start_point": {"row": 248, "column": 8}, "end_point": {"row": 248, "column": 10}}, {"id": 1440, "type": "null", "text": "NULL", "parent": 1437, "children": [1441], "start_point": {"row": 248, "column": 11}, "end_point": {"row": 248, "column": 15}}, {"id": 1441, "type": "NULL", "text": "NULL", "parent": 1440, "children": [], "start_point": {"row": 248, "column": 11}, "end_point": {"row": 248, "column": 15}}, {"id": 1442, "type": "||", "text": "||", "parent": 1436, "children": [], "start_point": {"row": 248, "column": 16}, "end_point": {"row": 248, "column": 18}}, {"id": 1443, "type": "unary_expression", "text": "!variant_json_boolean_p(r->json)", "parent": 1436, "children": [1444, 1445], "start_point": {"row": 248, "column": 19}, "end_point": {"row": 248, "column": 51}}, {"id": 1444, "type": "!", "text": "!", "parent": 1443, "children": [], "start_point": {"row": 248, "column": 19}, "end_point": {"row": 248, "column": 20}}, {"id": 1445, "type": "call_expression", "text": "variant_json_boolean_p(r->json)", "parent": 1443, "children": [1446, 1447], "start_point": {"row": 248, "column": 20}, "end_point": {"row": 248, "column": 51}}, {"id": 1446, "type": "identifier", "text": "variant_json_boolean_p", "parent": 1445, "children": [], "start_point": {"row": 248, "column": 20}, "end_point": {"row": 248, "column": 42}}, {"id": 1447, "type": "argument_list", "text": "(r->json)", "parent": 1445, "children": [1448], "start_point": {"row": 248, "column": 42}, "end_point": {"row": 248, "column": 51}}, {"id": 1448, "type": "field_expression", "text": "r->json", "parent": 1447, "children": [1449, 1450], "start_point": {"row": 248, "column": 43}, "end_point": {"row": 248, "column": 50}}, {"id": 1449, "type": "identifier", "text": "r", "parent": 1448, "children": [], "start_point": {"row": 248, "column": 43}, "end_point": {"row": 248, "column": 44}}, {"id": 1450, "type": "field_identifier", "text": "json", "parent": 1448, "children": [], "start_point": {"row": 248, "column": 46}, "end_point": {"row": 248, "column": 50}}, {"id": 1451, "type": "return_statement", "text": "return -1;", "parent": 1434, "children": [1452], "start_point": {"row": 249, "column": 4}, "end_point": {"row": 249, "column": 14}}, {"id": 1452, "type": "number_literal", "text": "-1", "parent": 1451, "children": [], "start_point": {"row": 249, "column": 11}, "end_point": {"row": 249, "column": 13}}, {"id": 1453, "type": "else_clause", "text": "else\n return *variant_json_get_boolean(r->json);", "parent": 1434, "children": [1454], "start_point": {"row": 250, "column": 2}, "end_point": {"row": 251, "column": 46}}, {"id": 1454, "type": "return_statement", "text": "return *variant_json_get_boolean(r->json);", "parent": 1453, "children": [1455], "start_point": {"row": 251, "column": 4}, "end_point": {"row": 251, "column": 46}}, {"id": 1455, "type": "pointer_expression", "text": "*variant_json_get_boolean(r->json)", "parent": 1454, "children": [1456, 1457], "start_point": {"row": 251, "column": 11}, "end_point": {"row": 251, "column": 45}}, {"id": 1456, "type": "*", "text": "*", "parent": 1455, "children": [], "start_point": {"row": 251, "column": 11}, "end_point": {"row": 251, "column": 12}}, {"id": 1457, "type": "call_expression", "text": "variant_json_get_boolean(r->json)", "parent": 1455, "children": [1458, 1459], "start_point": {"row": 251, "column": 12}, "end_point": {"row": 251, "column": 45}}, {"id": 1458, "type": "identifier", "text": "variant_json_get_boolean", "parent": 1457, "children": [], "start_point": {"row": 251, "column": 12}, "end_point": {"row": 251, "column": 36}}, {"id": 1459, "type": "argument_list", "text": "(r->json)", "parent": 1457, "children": [1460], "start_point": {"row": 251, "column": 36}, "end_point": {"row": 251, "column": 45}}, {"id": 1460, "type": "field_expression", "text": "r->json", "parent": 1459, "children": [1461, 1462], "start_point": {"row": 251, "column": 37}, "end_point": {"row": 251, "column": 44}}, {"id": 1461, "type": "identifier", "text": "r", "parent": 1460, "children": [], "start_point": {"row": 251, "column": 37}, "end_point": {"row": 251, "column": 38}}, {"id": 1462, "type": "field_identifier", "text": "json", "parent": 1460, "children": [], "start_point": {"row": 251, "column": 40}, "end_point": {"row": 251, "column": 44}}, {"id": 1463, "type": "function_definition", "text": "bool json_get_empty(mjson_t p, ...)\n{\n va_list ap;\n va_start(ap, p);\n mjson_t r = json_get_field(p, ap);\n va_end(ap);\n if (r == NULL || !variant_json_empty_p(r->json))\n return false;\n else\n return true;\n}", "parent": null, "children": [1464, 1465], "start_point": {"row": 254, "column": 0}, "end_point": {"row": 264, "column": 1}}, {"id": 1464, "type": "primitive_type", "text": "bool", "parent": 1463, "children": [], "start_point": {"row": 254, "column": 0}, "end_point": {"row": 254, "column": 4}}, {"id": 1465, "type": "function_declarator", "text": "json_get_empty(mjson_t p, ...)", "parent": 1463, "children": [1466, 1467], "start_point": {"row": 254, "column": 5}, "end_point": {"row": 254, "column": 35}}, {"id": 1466, "type": "identifier", "text": "json_get_empty", "parent": 1465, "children": [], "start_point": {"row": 254, "column": 5}, "end_point": {"row": 254, "column": 19}}, {"id": 1467, "type": "parameter_list", "text": "(mjson_t p, ...)", "parent": 1465, "children": [1468], "start_point": {"row": 254, "column": 19}, "end_point": {"row": 254, "column": 35}}, {"id": 1468, "type": "parameter_declaration", "text": "mjson_t p", "parent": 1467, "children": [1469, 1470], "start_point": {"row": 254, "column": 20}, "end_point": {"row": 254, "column": 29}}, {"id": 1469, "type": "type_identifier", "text": "mjson_t", "parent": 1468, "children": [], "start_point": {"row": 254, "column": 20}, "end_point": {"row": 254, "column": 27}}, {"id": 1470, "type": "identifier", "text": "p", "parent": 1468, "children": [], "start_point": {"row": 254, "column": 28}, "end_point": {"row": 254, "column": 29}}, {"id": 1471, "type": "declaration", "text": "va_list ap;", "parent": 1463, "children": [1472, 1473], "start_point": {"row": 256, "column": 2}, "end_point": {"row": 256, "column": 13}}, {"id": 1472, "type": "type_identifier", "text": "va_list", "parent": 1471, "children": [], "start_point": {"row": 256, "column": 2}, "end_point": {"row": 256, "column": 9}}, {"id": 1473, "type": "identifier", "text": "ap", "parent": 1471, "children": [], "start_point": {"row": 256, "column": 10}, "end_point": {"row": 256, "column": 12}}, {"id": 1474, "type": "call_expression", "text": "va_start(ap, p)", "parent": 1463, "children": [1475, 1476], "start_point": {"row": 257, "column": 2}, "end_point": {"row": 257, "column": 17}}, {"id": 1475, "type": "identifier", "text": "va_start", "parent": 1474, "children": [], "start_point": {"row": 257, "column": 2}, "end_point": {"row": 257, "column": 10}}, {"id": 1476, "type": "argument_list", "text": "(ap, p)", "parent": 1474, "children": [1477, 1478], "start_point": {"row": 257, "column": 10}, "end_point": {"row": 257, "column": 17}}, {"id": 1477, "type": "identifier", "text": "ap", "parent": 1476, "children": [], "start_point": {"row": 257, "column": 11}, "end_point": {"row": 257, "column": 13}}, {"id": 1478, "type": "identifier", "text": "p", "parent": 1476, "children": [], "start_point": {"row": 257, "column": 15}, "end_point": {"row": 257, "column": 16}}, {"id": 1479, "type": "declaration", "text": "mjson_t r = json_get_field(p, ap);", "parent": 1463, "children": [1480, 1481], "start_point": {"row": 258, "column": 2}, "end_point": {"row": 258, "column": 36}}, {"id": 1480, "type": "type_identifier", "text": "mjson_t", "parent": 1479, "children": [], "start_point": {"row": 258, "column": 2}, "end_point": {"row": 258, "column": 9}}, {"id": 1481, "type": "init_declarator", "text": "r = json_get_field(p, ap)", "parent": 1479, "children": [1482, 1483, 1484], "start_point": {"row": 258, "column": 10}, "end_point": {"row": 258, "column": 35}}, {"id": 1482, "type": "identifier", "text": "r", "parent": 1481, "children": [], "start_point": {"row": 258, "column": 10}, "end_point": {"row": 258, "column": 11}}, {"id": 1483, "type": "=", "text": "=", "parent": 1481, "children": [], "start_point": {"row": 258, "column": 12}, "end_point": {"row": 258, "column": 13}}, {"id": 1484, "type": "call_expression", "text": "json_get_field(p, ap)", "parent": 1481, "children": [1485, 1486], "start_point": {"row": 258, "column": 14}, "end_point": {"row": 258, "column": 35}}, {"id": 1485, "type": "identifier", "text": "json_get_field", "parent": 1484, "children": [], "start_point": {"row": 258, "column": 14}, "end_point": {"row": 258, "column": 28}}, {"id": 1486, "type": "argument_list", "text": "(p, ap)", "parent": 1484, "children": [1487, 1488], "start_point": {"row": 258, "column": 28}, "end_point": {"row": 258, "column": 35}}, {"id": 1487, "type": "identifier", "text": "p", "parent": 1486, "children": [], "start_point": {"row": 258, "column": 29}, "end_point": {"row": 258, "column": 30}}, {"id": 1488, "type": "identifier", "text": "ap", "parent": 1486, "children": [], "start_point": {"row": 258, "column": 32}, "end_point": {"row": 258, "column": 34}}, {"id": 1489, "type": "call_expression", "text": "va_end(ap)", "parent": 1463, "children": [1490, 1491], "start_point": {"row": 259, "column": 2}, "end_point": {"row": 259, "column": 12}}, {"id": 1490, "type": "identifier", "text": "va_end", "parent": 1489, "children": [], "start_point": {"row": 259, "column": 2}, "end_point": {"row": 259, "column": 8}}, {"id": 1491, "type": "argument_list", "text": "(ap)", "parent": 1489, "children": [1492], "start_point": {"row": 259, "column": 8}, "end_point": {"row": 259, "column": 12}}, {"id": 1492, "type": "identifier", "text": "ap", "parent": 1491, "children": [], "start_point": {"row": 259, "column": 9}, "end_point": {"row": 259, "column": 11}}, {"id": 1493, "type": "if_statement", "text": "if (r == NULL || !variant_json_empty_p(r->json))\n return false;\n else\n return true;", "parent": 1463, "children": [1494, 1510, 1512], "start_point": {"row": 260, "column": 2}, "end_point": {"row": 263, "column": 16}}, {"id": 1494, "type": "parenthesized_expression", "text": "(r == NULL || !variant_json_empty_p(r->json))", "parent": 1493, "children": [1495], "start_point": {"row": 260, "column": 5}, "end_point": {"row": 260, "column": 50}}, {"id": 1495, "type": "binary_expression", "text": "r == NULL || !variant_json_empty_p(r->json)", "parent": 1494, "children": [1496, 1501, 1502], "start_point": {"row": 260, "column": 6}, "end_point": {"row": 260, "column": 49}}, {"id": 1496, "type": "binary_expression", "text": "r == NULL", "parent": 1495, "children": [1497, 1498, 1499], "start_point": {"row": 260, "column": 6}, "end_point": {"row": 260, "column": 15}}, {"id": 1497, "type": "identifier", "text": "r", "parent": 1496, "children": [], "start_point": {"row": 260, "column": 6}, "end_point": {"row": 260, "column": 7}}, {"id": 1498, "type": "==", "text": "==", "parent": 1496, "children": [], "start_point": {"row": 260, "column": 8}, "end_point": {"row": 260, "column": 10}}, {"id": 1499, "type": "null", "text": "NULL", "parent": 1496, "children": [1500], "start_point": {"row": 260, "column": 11}, "end_point": {"row": 260, "column": 15}}, {"id": 1500, "type": "NULL", "text": "NULL", "parent": 1499, "children": [], "start_point": {"row": 260, "column": 11}, "end_point": {"row": 260, "column": 15}}, {"id": 1501, "type": "||", "text": "||", "parent": 1495, "children": [], "start_point": {"row": 260, "column": 16}, "end_point": {"row": 260, "column": 18}}, {"id": 1502, "type": "unary_expression", "text": "!variant_json_empty_p(r->json)", "parent": 1495, "children": [1503, 1504], "start_point": {"row": 260, "column": 19}, "end_point": {"row": 260, "column": 49}}, {"id": 1503, "type": "!", "text": "!", "parent": 1502, "children": [], "start_point": {"row": 260, "column": 19}, "end_point": {"row": 260, "column": 20}}, {"id": 1504, "type": "call_expression", "text": "variant_json_empty_p(r->json)", "parent": 1502, "children": [1505, 1506], "start_point": {"row": 260, "column": 20}, "end_point": {"row": 260, "column": 49}}, {"id": 1505, "type": "identifier", "text": "variant_json_empty_p", "parent": 1504, "children": [], "start_point": {"row": 260, "column": 20}, "end_point": {"row": 260, "column": 40}}, {"id": 1506, "type": "argument_list", "text": "(r->json)", "parent": 1504, "children": [1507], "start_point": {"row": 260, "column": 40}, "end_point": {"row": 260, "column": 49}}, {"id": 1507, "type": "field_expression", "text": "r->json", "parent": 1506, "children": [1508, 1509], "start_point": {"row": 260, "column": 41}, "end_point": {"row": 260, "column": 48}}, {"id": 1508, "type": "identifier", "text": "r", "parent": 1507, "children": [], "start_point": {"row": 260, "column": 41}, "end_point": {"row": 260, "column": 42}}, {"id": 1509, "type": "field_identifier", "text": "json", "parent": 1507, "children": [], "start_point": {"row": 260, "column": 44}, "end_point": {"row": 260, "column": 48}}, {"id": 1510, "type": "return_statement", "text": "return false;", "parent": 1493, "children": [1511], "start_point": {"row": 261, "column": 4}, "end_point": {"row": 261, "column": 17}}, {"id": 1511, "type": "false", "text": "false", "parent": 1510, "children": [], "start_point": {"row": 261, "column": 11}, "end_point": {"row": 261, "column": 16}}, {"id": 1512, "type": "else_clause", "text": "else\n return true;", "parent": 1493, "children": [1513], "start_point": {"row": 262, "column": 2}, "end_point": {"row": 263, "column": 16}}, {"id": 1513, "type": "return_statement", "text": "return true;", "parent": 1512, "children": [1514], "start_point": {"row": 263, "column": 4}, "end_point": {"row": 263, "column": 16}}, {"id": 1514, "type": "true", "text": "true", "parent": 1513, "children": [], "start_point": {"row": 263, "column": 11}, "end_point": {"row": 263, "column": 15}}, {"id": 1515, "type": "function_definition", "text": "const char *json_get_string(mjson_t p, ...)\n{\n va_list ap;\n va_start(ap, p);\n mjson_t r = json_get_field(p, ap);\n va_end(ap);\n if (r == NULL || !variant_json_string_p(r->json))\n return NULL;\n else\n return string_get_cstr(*variant_json_get_string(r->json));\n}", "parent": null, "children": [1516, 1517], "start_point": {"row": 266, "column": 0}, "end_point": {"row": 276, "column": 1}}, {"id": 1516, "type": "primitive_type", "text": "char", "parent": 1515, "children": [], "start_point": {"row": 266, "column": 6}, "end_point": {"row": 266, "column": 10}}, {"id": 1517, "type": "pointer_declarator", "text": "*json_get_string(mjson_t p, ...)", "parent": 1515, "children": [1518, 1519], "start_point": {"row": 266, "column": 11}, "end_point": {"row": 266, "column": 43}}, {"id": 1518, "type": "*", "text": "*", "parent": 1517, "children": [], "start_point": {"row": 266, "column": 11}, "end_point": {"row": 266, "column": 12}}, {"id": 1519, "type": "function_declarator", "text": "json_get_string(mjson_t p, ...)", "parent": 1517, "children": [1520, 1521], "start_point": {"row": 266, "column": 12}, "end_point": {"row": 266, "column": 43}}, {"id": 1520, "type": "identifier", "text": "json_get_string", "parent": 1519, "children": [], "start_point": {"row": 266, "column": 12}, "end_point": {"row": 266, "column": 27}}, {"id": 1521, "type": "parameter_list", "text": "(mjson_t p, ...)", "parent": 1519, "children": [1522], "start_point": {"row": 266, "column": 27}, "end_point": {"row": 266, "column": 43}}, {"id": 1522, "type": "parameter_declaration", "text": "mjson_t p", "parent": 1521, "children": [1523, 1524], "start_point": {"row": 266, "column": 28}, "end_point": {"row": 266, "column": 37}}, {"id": 1523, "type": "type_identifier", "text": "mjson_t", "parent": 1522, "children": [], "start_point": {"row": 266, "column": 28}, "end_point": {"row": 266, "column": 35}}, {"id": 1524, "type": "identifier", "text": "p", "parent": 1522, "children": [], "start_point": {"row": 266, "column": 36}, "end_point": {"row": 266, "column": 37}}, {"id": 1525, "type": "declaration", "text": "va_list ap;", "parent": 1515, "children": [1526, 1527], "start_point": {"row": 268, "column": 2}, "end_point": {"row": 268, "column": 13}}, {"id": 1526, "type": "type_identifier", "text": "va_list", "parent": 1525, "children": [], "start_point": {"row": 268, "column": 2}, "end_point": {"row": 268, "column": 9}}, {"id": 1527, "type": "identifier", "text": "ap", "parent": 1525, "children": [], "start_point": {"row": 268, "column": 10}, "end_point": {"row": 268, "column": 12}}, {"id": 1528, "type": "call_expression", "text": "va_start(ap, p)", "parent": 1515, "children": [1529, 1530], "start_point": {"row": 269, "column": 2}, "end_point": {"row": 269, "column": 17}}, {"id": 1529, "type": "identifier", "text": "va_start", "parent": 1528, "children": [], "start_point": {"row": 269, "column": 2}, "end_point": {"row": 269, "column": 10}}, {"id": 1530, "type": "argument_list", "text": "(ap, p)", "parent": 1528, "children": [1531, 1532], "start_point": {"row": 269, "column": 10}, "end_point": {"row": 269, "column": 17}}, {"id": 1531, "type": "identifier", "text": "ap", "parent": 1530, "children": [], "start_point": {"row": 269, "column": 11}, "end_point": {"row": 269, "column": 13}}, {"id": 1532, "type": "identifier", "text": "p", "parent": 1530, "children": [], "start_point": {"row": 269, "column": 15}, "end_point": {"row": 269, "column": 16}}, {"id": 1533, "type": "declaration", "text": "mjson_t r = json_get_field(p, ap);", "parent": 1515, "children": [1534, 1535], "start_point": {"row": 270, "column": 2}, "end_point": {"row": 270, "column": 36}}, {"id": 1534, "type": "type_identifier", "text": "mjson_t", "parent": 1533, "children": [], "start_point": {"row": 270, "column": 2}, "end_point": {"row": 270, "column": 9}}, {"id": 1535, "type": "init_declarator", "text": "r = json_get_field(p, ap)", "parent": 1533, "children": [1536, 1537, 1538], "start_point": {"row": 270, "column": 10}, "end_point": {"row": 270, "column": 35}}, {"id": 1536, "type": "identifier", "text": "r", "parent": 1535, "children": [], "start_point": {"row": 270, "column": 10}, "end_point": {"row": 270, "column": 11}}, {"id": 1537, "type": "=", "text": "=", "parent": 1535, "children": [], "start_point": {"row": 270, "column": 12}, "end_point": {"row": 270, "column": 13}}, {"id": 1538, "type": "call_expression", "text": "json_get_field(p, ap)", "parent": 1535, "children": [1539, 1540], "start_point": {"row": 270, "column": 14}, "end_point": {"row": 270, "column": 35}}, {"id": 1539, "type": "identifier", "text": "json_get_field", "parent": 1538, "children": [], "start_point": {"row": 270, "column": 14}, "end_point": {"row": 270, "column": 28}}, {"id": 1540, "type": "argument_list", "text": "(p, ap)", "parent": 1538, "children": [1541, 1542], "start_point": {"row": 270, "column": 28}, "end_point": {"row": 270, "column": 35}}, {"id": 1541, "type": "identifier", "text": "p", "parent": 1540, "children": [], "start_point": {"row": 270, "column": 29}, "end_point": {"row": 270, "column": 30}}, {"id": 1542, "type": "identifier", "text": "ap", "parent": 1540, "children": [], "start_point": {"row": 270, "column": 32}, "end_point": {"row": 270, "column": 34}}, {"id": 1543, "type": "call_expression", "text": "va_end(ap)", "parent": 1515, "children": [1544, 1545], "start_point": {"row": 271, "column": 2}, "end_point": {"row": 271, "column": 12}}, {"id": 1544, "type": "identifier", "text": "va_end", "parent": 1543, "children": [], "start_point": {"row": 271, "column": 2}, "end_point": {"row": 271, "column": 8}}, {"id": 1545, "type": "argument_list", "text": "(ap)", "parent": 1543, "children": [1546], "start_point": {"row": 271, "column": 8}, "end_point": {"row": 271, "column": 12}}, {"id": 1546, "type": "identifier", "text": "ap", "parent": 1545, "children": [], "start_point": {"row": 271, "column": 9}, "end_point": {"row": 271, "column": 11}}, {"id": 1547, "type": "if_statement", "text": "if (r == NULL || !variant_json_string_p(r->json))\n return NULL;\n else\n return string_get_cstr(*variant_json_get_string(r->json));", "parent": 1515, "children": [1548, 1564, 1567], "start_point": {"row": 272, "column": 2}, "end_point": {"row": 275, "column": 62}}, {"id": 1548, "type": "parenthesized_expression", "text": "(r == NULL || !variant_json_string_p(r->json))", "parent": 1547, "children": [1549], "start_point": {"row": 272, "column": 5}, "end_point": {"row": 272, "column": 51}}, {"id": 1549, "type": "binary_expression", "text": "r == NULL || !variant_json_string_p(r->json)", "parent": 1548, "children": [1550, 1555, 1556], "start_point": {"row": 272, "column": 6}, "end_point": {"row": 272, "column": 50}}, {"id": 1550, "type": "binary_expression", "text": "r == NULL", "parent": 1549, "children": [1551, 1552, 1553], "start_point": {"row": 272, "column": 6}, "end_point": {"row": 272, "column": 15}}, {"id": 1551, "type": "identifier", "text": "r", "parent": 1550, "children": [], "start_point": {"row": 272, "column": 6}, "end_point": {"row": 272, "column": 7}}, {"id": 1552, "type": "==", "text": "==", "parent": 1550, "children": [], "start_point": {"row": 272, "column": 8}, "end_point": {"row": 272, "column": 10}}, {"id": 1553, "type": "null", "text": "NULL", "parent": 1550, "children": [1554], "start_point": {"row": 272, "column": 11}, "end_point": {"row": 272, "column": 15}}, {"id": 1554, "type": "NULL", "text": "NULL", "parent": 1553, "children": [], "start_point": {"row": 272, "column": 11}, "end_point": {"row": 272, "column": 15}}, {"id": 1555, "type": "||", "text": "||", "parent": 1549, "children": [], "start_point": {"row": 272, "column": 16}, "end_point": {"row": 272, "column": 18}}, {"id": 1556, "type": "unary_expression", "text": "!variant_json_string_p(r->json)", "parent": 1549, "children": [1557, 1558], "start_point": {"row": 272, "column": 19}, "end_point": {"row": 272, "column": 50}}, {"id": 1557, "type": "!", "text": "!", "parent": 1556, "children": [], "start_point": {"row": 272, "column": 19}, "end_point": {"row": 272, "column": 20}}, {"id": 1558, "type": "call_expression", "text": "variant_json_string_p(r->json)", "parent": 1556, "children": [1559, 1560], "start_point": {"row": 272, "column": 20}, "end_point": {"row": 272, "column": 50}}, {"id": 1559, "type": "identifier", "text": "variant_json_string_p", "parent": 1558, "children": [], "start_point": {"row": 272, "column": 20}, "end_point": {"row": 272, "column": 41}}, {"id": 1560, "type": "argument_list", "text": "(r->json)", "parent": 1558, "children": [1561], "start_point": {"row": 272, "column": 41}, "end_point": {"row": 272, "column": 50}}, {"id": 1561, "type": "field_expression", "text": "r->json", "parent": 1560, "children": [1562, 1563], "start_point": {"row": 272, "column": 42}, "end_point": {"row": 272, "column": 49}}, {"id": 1562, "type": "identifier", "text": "r", "parent": 1561, "children": [], "start_point": {"row": 272, "column": 42}, "end_point": {"row": 272, "column": 43}}, {"id": 1563, "type": "field_identifier", "text": "json", "parent": 1561, "children": [], "start_point": {"row": 272, "column": 45}, "end_point": {"row": 272, "column": 49}}, {"id": 1564, "type": "return_statement", "text": "return NULL;", "parent": 1547, "children": [1565], "start_point": {"row": 273, "column": 4}, "end_point": {"row": 273, "column": 16}}, {"id": 1565, "type": "null", "text": "NULL", "parent": 1564, "children": [1566], "start_point": {"row": 273, "column": 11}, "end_point": {"row": 273, "column": 15}}, {"id": 1566, "type": "NULL", "text": "NULL", "parent": 1565, "children": [], "start_point": {"row": 273, "column": 11}, "end_point": {"row": 273, "column": 15}}, {"id": 1567, "type": "else_clause", "text": "else\n return string_get_cstr(*variant_json_get_string(r->json));", "parent": 1547, "children": [1568], "start_point": {"row": 274, "column": 2}, "end_point": {"row": 275, "column": 62}}, {"id": 1568, "type": "return_statement", "text": "return string_get_cstr(*variant_json_get_string(r->json));", "parent": 1567, "children": [1569], "start_point": {"row": 275, "column": 4}, "end_point": {"row": 275, "column": 62}}, {"id": 1569, "type": "call_expression", "text": "string_get_cstr(*variant_json_get_string(r->json))", "parent": 1568, "children": [1570, 1571], "start_point": {"row": 275, "column": 11}, "end_point": {"row": 275, "column": 61}}, {"id": 1570, "type": "identifier", "text": "string_get_cstr", "parent": 1569, "children": [], "start_point": {"row": 275, "column": 11}, "end_point": {"row": 275, "column": 26}}, {"id": 1571, "type": "argument_list", "text": "(*variant_json_get_string(r->json))", "parent": 1569, "children": [1572], "start_point": {"row": 275, "column": 26}, "end_point": {"row": 275, "column": 61}}, {"id": 1572, "type": "pointer_expression", "text": "*variant_json_get_string(r->json)", "parent": 1571, "children": [1573, 1574], "start_point": {"row": 275, "column": 27}, "end_point": {"row": 275, "column": 60}}, {"id": 1573, "type": "*", "text": "*", "parent": 1572, "children": [], "start_point": {"row": 275, "column": 27}, "end_point": {"row": 275, "column": 28}}, {"id": 1574, "type": "call_expression", "text": "variant_json_get_string(r->json)", "parent": 1572, "children": [1575, 1576], "start_point": {"row": 275, "column": 28}, "end_point": {"row": 275, "column": 60}}, {"id": 1575, "type": "identifier", "text": "variant_json_get_string", "parent": 1574, "children": [], "start_point": {"row": 275, "column": 28}, "end_point": {"row": 275, "column": 51}}, {"id": 1576, "type": "argument_list", "text": "(r->json)", "parent": 1574, "children": [1577], "start_point": {"row": 275, "column": 51}, "end_point": {"row": 275, "column": 60}}, {"id": 1577, "type": "field_expression", "text": "r->json", "parent": 1576, "children": [1578, 1579], "start_point": {"row": 275, "column": 52}, "end_point": {"row": 275, "column": 59}}, {"id": 1578, "type": "identifier", "text": "r", "parent": 1577, "children": [], "start_point": {"row": 275, "column": 52}, "end_point": {"row": 275, "column": 53}}, {"id": 1579, "type": "field_identifier", "text": "json", "parent": 1577, "children": [], "start_point": {"row": 275, "column": 55}, "end_point": {"row": 275, "column": 59}}]}, "node_categories": {"declarations": {"functions": [27, 31, 51, 55, 231, 235, 255, 259, 375, 377, 427, 429, 453, 455, 518, 520, 567, 569, 705, 707, 752, 754, 1135, 1137, 1160, 1162, 1345, 1347, 1404, 1406, 1463, 1465, 1515, 1519], "variables": [34, 39, 58, 63, 68, 238, 243, 262, 267, 372, 380, 432, 458, 463, 523, 528, 572, 577, 710, 715, 757, 762, 775, 778, 1140, 1145, 1165, 1168, 1171, 1180, 1226, 1298, 1306, 1350, 1353, 1361, 1409, 1412, 1420, 1468, 1471, 1479, 1522, 1525, 1533], "classes": [28, 52, 232, 256, 369, 370, 403, 404, 491, 492], "imports": [0, 1, 3, 4, 6, 7, 9, 10, 12, 13, 15, 16, 18, 19, 21, 22, 24, 25], "modules": [], "enums": []}, "statements": {"expressions": [42, 73, 78, 79, 87, 95, 100, 101, 113, 118, 119, 131, 136, 145, 146, 154, 162, 167, 168, 180, 185, 186, 198, 203, 204, 216, 221, 246, 251, 273, 274, 286, 294, 300, 304, 305, 307, 309, 313, 317, 323, 324, 326, 328, 332, 336, 342, 343, 345, 348, 349, 351, 353, 358, 359, 361, 363, 385, 388, 394, 398, 401, 407, 408, 409, 415, 418, 421, 422, 423, 435, 438, 443, 446, 449, 466, 469, 470, 476, 482, 486, 489, 495, 496, 497, 503, 506, 509, 510, 511, 515, 531, 534, 535, 536, 542, 543, 550, 555, 558, 559, 560, 564, 580, 583, 584, 590, 596, 597, 600, 603, 607, 609, 612, 617, 618, 621, 624, 628, 630, 633, 638, 639, 642, 645, 649, 651, 654, 659, 660, 663, 666, 670, 672, 675, 680, 681, 684, 687, 691, 693, 696, 700, 722, 727, 728, 729, 734, 740, 741, 745, 767, 770, 783, 788, 789, 790, 795, 801, 804, 805, 806, 811, 812, 813, 821, 828, 831, 832, 833, 840, 843, 846, 847, 848, 854, 855, 862, 863, 864, 865, 866, 874, 882, 883, 890, 893, 894, 895, 902, 905, 908, 909, 910, 916, 917, 924, 925, 932, 935, 936, 937, 944, 947, 949, 952, 953, 954, 960, 961, 968, 969, 975, 978, 979, 980, 987, 990, 992, 995, 996, 997, 1003, 1004, 1011, 1012, 1018, 1021, 1022, 1023, 1030, 1033, 1035, 1038, 1039, 1040, 1046, 1047, 1054, 1055, 1062, 1065, 1066, 1067, 1074, 1081, 1086, 1087, 1099, 1104, 1105, 1117, 1122, 1123, 1150, 1155, 1178, 1187, 1195, 1196, 1204, 1205, 1206, 1214, 1215, 1217, 1220, 1231, 1234, 1239, 1240, 1241, 1246, 1247, 1253, 1256, 1258, 1261, 1270, 1272, 1275, 1277, 1280, 1286, 1287, 1289, 1292, 1301, 1313, 1316, 1318, 1321, 1325, 1330, 1331, 1342, 1356, 1366, 1371, 1376, 1377, 1378, 1384, 1386, 1389, 1396, 1398, 1401, 1415, 1425, 1430, 1435, 1436, 1437, 1443, 1445, 1448, 1455, 1457, 1460, 1474, 1484, 1489, 1494, 1495, 1496, 1502, 1504, 1507, 1528, 1538, 1543, 1548, 1549, 1550, 1556, 1558, 1561, 1569, 1572, 1574, 1577], "assignments": [86, 92, 110, 128, 153, 159, 177, 195, 213, 393, 481, 719, 837, 899, 941, 984, 1027, 1071, 1078, 1096, 1114, 1267, 1339], "loops": [1177], "conditionals": [32, 35, 38, 41, 43, 45, 46, 47, 56, 62, 64, 67, 71, 74, 76, 77, 80, 89, 93, 96, 98, 99, 102, 111, 114, 116, 117, 120, 129, 132, 134, 137, 144, 147, 156, 160, 163, 165, 166, 169, 178, 181, 183, 184, 187, 196, 199, 201, 202, 205, 214, 217, 219, 222, 236, 239, 242, 245, 247, 249, 254, 260, 266, 268, 271, 275, 277, 279, 284, 287, 289, 290, 291, 292, 293, 295, 297, 298, 299, 301, 303, 306, 308, 310, 312, 314, 316, 318, 320, 322, 325, 327, 329, 331, 333, 335, 337, 339, 341, 344, 346, 347, 350, 352, 354, 356, 357, 360, 362, 364, 366, 367, 368, 371, 373, 374, 378, 381, 384, 386, 389, 396, 399, 405, 406, 411, 416, 419, 425, 426, 430, 433, 434, 436, 439, 444, 447, 448, 450, 452, 456, 459, 462, 464, 465, 467, 471, 477, 484, 487, 493, 494, 499, 504, 507, 513, 514, 516, 517, 521, 524, 527, 529, 530, 532, 537, 545, 551, 556, 562, 563, 565, 566, 570, 573, 576, 578, 579, 581, 585, 591, 595, 598, 601, 602, 604, 606, 610, 613, 614, 616, 619, 622, 623, 625, 627, 631, 634, 635, 637, 640, 643, 644, 646, 648, 652, 655, 656, 658, 661, 664, 665, 667, 669, 673, 676, 677, 679, 682, 685, 686, 688, 690, 694, 697, 698, 701, 703, 708, 711, 714, 717, 720, 723, 725, 726, 730, 732, 735, 737, 742, 744, 746, 748, 749, 751, 755, 758, 761, 763, 766, 768, 771, 777, 781, 784, 786, 787, 791, 793, 796, 798, 802, 808, 809, 810, 814, 822, 829, 835, 836, 838, 841, 844, 850, 851, 852, 853, 857, 861, 867, 875, 884, 891, 897, 898, 900, 903, 906, 912, 913, 914, 915, 919, 923, 926, 933, 939, 940, 942, 945, 950, 956, 957, 958, 959, 963, 967, 970, 976, 982, 983, 985, 988, 993, 999, 1000, 1001, 1002, 1006, 1010, 1013, 1019, 1025, 1026, 1028, 1031, 1036, 1042, 1043, 1044, 1045, 1049, 1053, 1056, 1063, 1069, 1070, 1072, 1075, 1077, 1079, 1082, 1084, 1085, 1088, 1097, 1100, 1102, 1103, 1106, 1115, 1118, 1120, 1124, 1138, 1141, 1144, 1146, 1149, 1151, 1153, 1156, 1158, 1159, 1161, 1163, 1166, 1167, 1169, 1170, 1172, 1174, 1176, 1185, 1188, 1190, 1192, 1194, 1197, 1202, 1203, 1207, 1213, 1218, 1221, 1222, 1229, 1232, 1235, 1238, 1242, 1249, 1251, 1254, 1259, 1262, 1263, 1268, 1273, 1278, 1281, 1282, 1283, 1285, 1290, 1293, 1294, 1299, 1300, 1302, 1304, 1305, 1307, 1311, 1314, 1319, 1322, 1323, 1324, 1326, 1328, 1329, 1332, 1340, 1344, 1348, 1351, 1352, 1354, 1355, 1357, 1359, 1360, 1362, 1364, 1367, 1369, 1370, 1372, 1374, 1375, 1379, 1387, 1390, 1391, 1393, 1399, 1402, 1403, 1407, 1410, 1411, 1413, 1414, 1416, 1418, 1419, 1421, 1423, 1426, 1428, 1429, 1431, 1433, 1434, 1438, 1446, 1449, 1450, 1458, 1461, 1462, 1466, 1469, 1470, 1472, 1473, 1475, 1477, 1478, 1480, 1482, 1485, 1487, 1488, 1490, 1492, 1493, 1497, 1505, 1508, 1509, 1520, 1523, 1524, 1526, 1527, 1529, 1531, 1532, 1534, 1536, 1539, 1541, 1542, 1544, 1546, 1547, 1551, 1559, 1562, 1563, 1570, 1575, 1578, 1579], "returns": [108, 126, 135, 175, 193, 211, 220, 229, 272, 738, 750, 799, 858, 920, 964, 1007, 1050, 1094, 1112, 1121, 1131, 1133, 1154, 1201, 1223, 1264, 1295, 1336, 1392, 1395, 1451, 1454, 1510, 1513, 1564, 1568], "exceptions": []}, "expressions": {"calls": [], "literals": [2, 5, 8, 11, 14, 17, 20, 23, 26, 49, 50, 82, 104, 122, 139, 149, 171, 189, 207, 224, 250, 278, 281, 704, 739, 816, 824, 869, 877, 886, 928, 972, 1015, 1058, 1090, 1108, 1126, 1208, 1210, 1237, 1244, 1452], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [{"node_id": 27, "universal_type": "function", "name": "boolean_out_str", "text_snippet": "static inline void boolean_out_str(FILE *f, bool b)\n{\n fprintf(f, b ? \"true\" : \"false\");\n}"}, {"node_id": 31, "universal_type": "function", "name": "b)", "text_snippet": "boolean_out_str(FILE *f, bool b)"}, {"node_id": 51, "universal_type": "function", "name": "boolean_in_str", "text_snippet": "static inline bool boolean_in_str(bool *b, FILE *f)\n{\n char c = fgetc(f);\n if (c == 't') {\n *b "}, {"node_id": 55, "universal_type": "function", "name": "unknown", "text_snippet": "boolean_in_str(bool *b, FILE *f)"}, {"node_id": 231, "universal_type": "function", "name": "real_out_str", "text_snippet": "static inline void real_out_str(FILE *f, float r)\n{\n fprintf(f, \"%f\", (double) r);\n}"}, {"node_id": 235, "universal_type": "function", "name": "unknown", "text_snippet": "real_out_str(FILE *f, float r)"}, {"node_id": 255, "universal_type": "function", "name": "real_in_str", "text_snippet": "static inline bool real_in_str(float *r, FILE *f)\n{\n return fscanf(f, \"%f\", r) == 1;\n}"}, {"node_id": 259, "universal_type": "function", "name": "unknown", "text_snippet": "real_in_str(float *r, FILE *f)"}, {"node_id": 375, "universal_type": "function", "name": "json_init", "text_snippet": "void json_init(mjson_t *p)\n{\n assert (p != NULL);\n *p = malloc (sizeof (struct mjson_node_s));\n i"}, {"node_id": 377, "universal_type": "function", "name": "unknown", "text_snippet": "json_init(mjson_t *p)"}, {"node_id": 427, "universal_type": "function", "name": "json_clear", "text_snippet": "void json_clear (mjson_t p)\n{\n assert (p != NULL);\n variant_json_clear (p->json);\n free(p);\n}"}, {"node_id": 429, "universal_type": "function", "name": "unknown", "text_snippet": "json_clear (mjson_t p)"}, {"node_id": 453, "universal_type": "function", "name": "json_init_set", "text_snippet": "void json_init_set(mjson_t *p, mjson_t o)\n{\n assert (p != NULL && o != NULL);\n *p = malloc (sizeof"}, {"node_id": 455, "universal_type": "function", "name": "unknown", "text_snippet": "json_init_set(mjson_t *p, mjson_t o)"}, {"node_id": 518, "universal_type": "function", "name": "json_set", "text_snippet": "void json_set(mjson_t *p, mjson_t o)\n{\n assert (p != NULL && *p != NULL && o != NULL);\n variant_js"}, {"node_id": 520, "universal_type": "function", "name": "unknown", "text_snippet": "json_set(mjson_t *p, mjson_t o)"}, {"node_id": 567, "universal_type": "function", "name": "json_out_str", "text_snippet": "void json_out_str(FILE *f, mjson_t o)\n{\n assert (f != NULL && o != NULL);\n if (variant_json_boolea"}, {"node_id": 569, "universal_type": "function", "name": "unknown", "text_snippet": "json_out_str(FILE *f, mjson_t o)"}, {"node_id": 705, "universal_type": "function", "name": "skip_space", "text_snippet": "static int skip_space(FILE *f)\n{\n int c;\n do {\n c = fgetc(f);\n if (ferror(f) || feof(f)) ret"}, {"node_id": 707, "universal_type": "function", "name": "unknown", "text_snippet": "skip_space(FILE *f)"}, {"node_id": 752, "universal_type": "function", "name": "json_in_str", "text_snippet": "bool json_in_str(mjson_t *p, FILE *f)\n{\n assert (p != NULL);\n bool b;\n char c = skip_space(f);\n "}, {"node_id": 754, "universal_type": "function", "name": "unknown", "text_snippet": "json_in_str(mjson_t *p, FILE *f)"}, {"node_id": 1135, "universal_type": "function", "name": "json_init_in_str", "text_snippet": "bool json_init_in_str(mjson_t *p, FILE *f)\n{\n json_init(p);\n return json_in_str(p, f);\n}"}, {"node_id": 1137, "universal_type": "function", "name": "unknown", "text_snippet": "json_init_in_str(mjson_t *p, FILE *f)"}, {"node_id": 1160, "universal_type": "function", "name": "n", "text_snippet": "static mjson_t json_get_field(mjson_t p, va_list list)\n{\n mjson_t r = p;\n while (true) {\n const"}, {"node_id": 1162, "universal_type": "function", "name": "unknown", "text_snippet": "json_get_field(mjson_t p, va_list list)"}, {"node_id": 1345, "universal_type": "function", "name": "unknown", "text_snippet": "double json_get_real(mjson_t p, ...)\n{\n va_list ap;\n va_start(ap, p);\n mjson_t r = json_get_field"}, {"node_id": 1347, "universal_type": "function", "name": "unknown", "text_snippet": "json_get_real(mjson_t p, ...)"}, {"node_id": 1404, "universal_type": "function", "name": "json_get_boolean", "text_snippet": "int json_get_boolean(mjson_t p, ...)\n{\n va_list ap;\n va_start(ap, p);\n mjson_t r = json_get_field"}, {"node_id": 1406, "universal_type": "function", "name": "unknown", "text_snippet": "json_get_boolean(mjson_t p, ...)"}, {"node_id": 1463, "universal_type": "function", "name": "json_get_empty", "text_snippet": "bool json_get_empty(mjson_t p, ...)\n{\n va_list ap;\n va_start(ap, p);\n mjson_t r = json_get_field("}, {"node_id": 1465, "universal_type": "function", "name": "unknown", "text_snippet": "json_get_empty(mjson_t p, ...)"}, {"node_id": 1515, "universal_type": "function", "name": "unknown", "text_snippet": "const char *json_get_string(mjson_t p, ...)\n{\n va_list ap;\n va_start(ap, p);\n mjson_t r = json_ge"}, {"node_id": 1519, "universal_type": "function", "name": "unknown", "text_snippet": "json_get_string(mjson_t p, ...)"}], "class_declarations": [{"node_id": 28, "universal_type": "class", "name": "unknown", "text_snippet": "inline"}, {"node_id": 52, "universal_type": "class", "name": "unknown", "text_snippet": "inline"}, {"node_id": 232, "universal_type": "class", "name": "unknown", "text_snippet": "inline"}, {"node_id": 256, "universal_type": "class", "name": "unknown", "text_snippet": "inline"}, {"node_id": 369, "universal_type": "class", "name": "mjson_node_s", "text_snippet": "struct mjson_node_s {\n variant_json_t json;\n}"}, {"node_id": 370, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 403, "universal_type": "class", "name": "mjson_node_s", "text_snippet": "struct mjson_node_s"}, {"node_id": 404, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 491, "universal_type": "class", "name": "mjson_node_s", "text_snippet": "struct mjson_node_s"}, {"node_id": 492, "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 <ctype.h>\n"}, {"node_id": 4, "text": "#include"}, {"node_id": 6, "text": "#include <math.h>\n"}, {"node_id": 7, "text": "#include"}, {"node_id": 9, "text": "#include <stdarg.h>\n"}, {"node_id": 10, "text": "#include"}, {"node_id": 12, "text": "#include \"m-array.h\"\n"}, {"node_id": 13, "text": "#include"}, {"node_id": 15, "text": "#include \"m-dict.h\"\n"}, {"node_id": 16, "text": "#include"}, {"node_id": 18, "text": "#include \"m-string.h\"\n"}, {"node_id": 19, "text": "#include"}, {"node_id": 21, "text": "#include \"m-variant.h\"\n"}, {"node_id": 22, "text": "#include"}, {"node_id": 24, "text": "#include \"mjsonlib.h\"\n"}, {"node_id": 25, "text": "#include"}]}, "original_source_code": "/*\n * MJSONLIB - SMALL JSON LIBRARY based on M*LIB\n *\n * Copyright (c) 2018, <NAME>\n * All rights reserved.\n * Redistribution and use in source and binary forms, with or without\n * modification, are permitted provided that the following conditions are met:\n * + Redistributions of source code must retain the above copyright\n * notice, this list of conditions and the following disclaimer.\n * + Redistributions in binary form must reproduce the above copyright\n * notice, this list of conditions and the following disclaimer in the\n * documentation and/or other materials provided with the distribution.\n *\n * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND ANY\n * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED\n * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE\n * DISCLAIMED. IN NO EVENT SHALL THE REGENTS AND CONTRIBUTORS BE LIABLE FOR ANY\n * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES\n * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;\n * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND\n * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT\n * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS\n * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\n*/\n#include <stdio.h>\n#include <ctype.h>\n#include <math.h>\n#include <stdarg.h>\n\n#include \"m-array.h\"\n#include \"m-dict.h\"\n#include \"m-string.h\"\n#include \"m-variant.h\"\n\n#include \"mjsonlib.h\"\n\n/* First let's handle the OUT/IN functions of boolean */\nstatic inline void boolean_out_str(FILE *f, bool b)\n{\n fprintf(f, b ? \"true\" : \"false\");\n}\n\nstatic inline bool boolean_in_str(bool *b, FILE *f)\n{\n char c = fgetc(f);\n if (c == 't') {\n *b = true;\n c = fgetc(f);\n if (c != 'r') return false;\n c = fgetc(f);\n if (c != 'u') return false;\n c = fgetc(f);\n return c == 'e';\n } else if (c == 'f') {\n *b = false;\n c = fgetc(f);\n if (c != 'a') return false;\n c = fgetc(f);\n if (c != 'l') return false;\n c = fgetc(f);\n if (c != 's') return false;\n c = fgetc(f);\n return c == 'e';\n } else {\n return false;\n }\n}\n\n/* Then the OUT/IN functions of float */\nstatic inline void real_out_str(FILE *f, float r)\n{\n fprintf(f, \"%f\", (double) r);\n}\n\nstatic inline bool real_in_str(float *r, FILE *f)\n{\n return fscanf(f, \"%f\", r) == 1;\n}\n\n/* Use of M*LIB to define the structure of a JSON */\n#define JSON_OPLIST \\\n (INIT(json_init M_IPTR), CLEAR(json_clear), \\\n INIT_SET(json_init_set M_IPTR), SET(json_set M_IPTR), \\\n OUT_STR(json_out_str), IN_STR(json_in_str M_IPTR) )\n\nDICT_DEF2(dict_json, string_t, STRING_OPLIST, mjson_t, JSON_OPLIST)\n\nARRAY_DEF(array_json, mjson_t, JSON_OPLIST)\n\nVARIANT_DEF2(variant_json,\n (boolean, bool, M_OPEXTEND(M_DEFAULT_OPLIST, OUT_STR(boolean_out_str), IN_STR(boolean_in_str M_IPTR)) ),\n (real, float, M_OPEXTEND (M_DEFAULT_OPLIST, OUT_STR(real_out_str), IN_STR(real_in_str M_IPTR))),\n (string, string_t, STRING_OPLIST),\n (array, array_json_t, ARRAY_OPLIST(array_json, JSON_OPLIST)), \n (dict, dict_json_t, DICT_OPLIST(dict_json, STRING_OPLIST, JSON_OPLIST)))\n\n/* Let's complete the structure */\nstruct mjson_node_s {\n variant_json_t json;\n};\n\nvoid json_init(mjson_t *p)\n{\n assert (p != NULL);\n *p = malloc (sizeof (struct mjson_node_s));\n if (*p == NULL) abort();\n variant_json_init((*p)->json);\n}\n\nvoid json_clear (mjson_t p)\n{\n assert (p != NULL);\n variant_json_clear (p->json);\n free(p);\n}\n\nvoid json_init_set(mjson_t *p, mjson_t o)\n{\n assert (p != NULL && o != NULL);\n *p = malloc (sizeof (struct mjson_node_s));\n if (*p == NULL) abort();\n variant_json_init_set((*p)->json, o->json);\n}\n\nvoid json_set(mjson_t *p, mjson_t o)\n{\n assert (p != NULL && *p != NULL && o != NULL);\n variant_json_set((*p)->json, o->json);\n}\n\nvoid json_out_str(FILE *f, mjson_t o)\n{\n assert (f != NULL && o != NULL);\n if (variant_json_boolean_p(o->json)) {\n boolean_out_str(f, *variant_json_get_boolean(o->json));\n } else if (variant_json_real_p(o->json)) {\n real_out_str(f, *variant_json_get_real(o->json));\n } else if (variant_json_string_p(o->json)) {\n string_out_str(f, *variant_json_get_string(o->json));\n } else if (variant_json_array_p(o->json)) {\n array_json_out_str(f, *variant_json_get_array(o->json));\n } else if (variant_json_dict_p(o->json)) {\n dict_json_out_str(f, *variant_json_get_dict(o->json));\n } else {\n fprintf(f, \"null\");\n }\n}\n\nstatic int skip_space(FILE *f)\n{\n int c;\n do {\n c = fgetc(f);\n if (ferror(f) || feof(f)) return 0;\n } while (isspace(c));\n ungetc(c, f);\n return c;\n}\n\nbool json_in_str(mjson_t *p, FILE *f)\n{\n assert (p != NULL);\n bool b;\n char c = skip_space(f);\n if (ferror(f) || feof(f)) return false;\n variant_json_clear((*p)->json);\n if (c == 't' || c == 'f') {\n variant_json_init_boolean((*p)->json);\n b = boolean_in_str(variant_json_get_boolean((*p)->json), f);\n if (!b) return false;\n } else if ((c >= '0' && c <= '9') || (c == '-')){\n variant_json_init_real((*p)->json);\n b = real_in_str(variant_json_get_real((*p)->json), f);\n if (!b) return false;\n } else if (c == '\\\"') {\n variant_json_init_string((*p)->json);\n b = string_in_str(*variant_json_get_string((*p)->json), f);\n if (!b) return false;\n } else if (c == '[') {\n variant_json_init_array((*p)->json);\n b = array_json_in_str(*variant_json_get_array((*p)->json), f);\n if (!b) return false;\n } else if (c == '{') {\n variant_json_init_dict((*p)->json);\n b = dict_json_in_str(*variant_json_get_dict((*p)->json), f);\n if (!b) return false;\n } else if (c == 'n') {\n variant_json_init((*p)->json);\n c = fgetc(f);\n c = fgetc(f); if (c != 'u') return false;\n c = fgetc(f); if (c != 'l') return false;\n c = fgetc(f);\n return (c == 'l');\n } else {\n return false;\n }\n return true;\n}\n\nbool json_init_in_str(mjson_t *p, FILE *f)\n{\n json_init(p);\n return json_in_str(p, f);\n}\n\nstatic mjson_t json_get_field(mjson_t p, va_list list)\n{\n mjson_t r = p;\n while (true) {\n const char *str = va_arg(list, const char*);\n if (str == NULL)\n return r;\n if (str[0] == '[') {\n if (!variant_json_array_p(r->json)) return NULL;\n int n = atoi(str+1);\n if (n < 0 || (unsigned)n >= array_json_size(*variant_json_get_array(r->json)))\n return NULL;\n r = *array_json_get(*variant_json_get_array(r->json), n);\n } else {\n if (!variant_json_dict_p(r->json)) return NULL;\n string_t s;\n string_init_set_str (s, str); // BAD API: I want a macro to have a string_t from a const char* but STRING_CTE doesn't work :(\n mjson_t *v = dict_json_get (*variant_json_get_dict(r->json), s);\n string_clear(s);\n if (v == NULL) return NULL;\n r = *v;\n }\n }\n}\n\ndouble json_get_real(mjson_t p, ...)\n{\n va_list ap;\n va_start(ap, p);\n mjson_t r = json_get_field(p, ap);\n va_end(ap);\n if (r == NULL || !variant_json_real_p(r->json))\n return NAN;\n else\n return *variant_json_get_real(r->json);\n}\n\nint json_get_boolean(mjson_t p, ...)\n{\n va_list ap;\n va_start(ap, p);\n mjson_t r = json_get_field(p, ap);\n va_end(ap);\n if (r == NULL || !variant_json_boolean_p(r->json))\n return -1;\n else\n return *variant_json_get_boolean(r->json);\n}\n\nbool json_get_empty(mjson_t p, ...)\n{\n va_list ap;\n va_start(ap, p);\n mjson_t r = json_get_field(p, ap);\n va_end(ap);\n if (r == NULL || !variant_json_empty_p(r->json))\n return false;\n else\n return true;\n}\n\nconst char *json_get_string(mjson_t p, ...)\n{\n va_list ap;\n va_start(ap, p);\n mjson_t r = json_get_field(p, ap);\n va_end(ap);\n if (r == NULL || !variant_json_string_p(r->json))\n return NULL;\n else\n return string_get_cstr(*variant_json_get_string(r->json));\n}\n\n"}
80,096
c
// // UGMSListViewController.h // UGouApp // // Created by 靓萌服饰靓萌服饰 on 2018/3/15. // #import <UIKit/UIKit.h> @interface UGMSListViewController : UIViewController @property(nonatomic,strong)NSNumber *brandID; /** 1 代表秒杀 2代表拍卖 */ @property(nonatomic,assign)NSInteger flag; @end
19.14
14
(translation_unit) "//\n// UGMSListViewController.h\n// UGouApp\n//\n// Created by 靓萌服饰靓萌服饰 on 2018/3/15.\n//\n\n#import <UIKit/UIKit.h>\n\n@interface UGMSListViewController : UIViewController\n@property(nonatomic,strong)NSNumber *brandID;\n\n/**\n 1 代表秒杀 2代表拍卖\n */\n@property(nonatomic,assign)NSInteger flag;\n@end\n" (comment) "//" (comment) "// UGMSListViewController.h" (comment) "// UGouApp" (comment) "//" (comment) "// Created by 靓萌服饰靓萌服饰 on 2018/3/15.\n//\n\n#import <UI" (comment) "it" (preproc_call) "IKit.h>\n\n@interface UGMS" (preproc_directive) "IKit.h>" (preproc_arg) "\n@interface UGM" (ERROR) "istViewController : UIViewController\n@property(nonatomic,strong)NSNumber *brandID;\n\n/**\n 1 代表秒杀 2代表拍卖\n */\n@property(nonatomic,assign)NSInteger flag;\n@end\n" (ERROR) "i" (type_identifier) "stViewCon" (ERROR) "roller : UIViewController\n@property(nonatom" (identifier) "roller : UIViewControl" (:) "e" (identifier) "\n@property(nonat" (ERROR) "m" (function_declarator) "ic,strong)NSNumber *brandI" (identifier) "ic,stron" (parameter_list) "g)NSNumber *brandI" (() "g" (identifier) ")NSNumber" (,) " " (identifier) "*brand" ()) "I" (declaration) "D;\n\n/**\n 1 代表秒杀 2" (type_identifier) "D;\n\n/**\n" (pointer_declarator) "1 代表秒杀 " (*) "1" (identifier) " 代表秒杀 " (;) "2" (comment) "拍卖\n */\n@property(nonatomic,assign)NSIn" (ERROR) "e" (ERROR) "e" (declaration) "ger flag;\n@end\n" (macro_type_specifier) "ger flag;\n@end\n" (identifier) "ger flag" (() ";" (type_descriptor) "\n@end\n" (type_identifier) "\n@end\n" (ERROR) "" (,) "" (identifier) "" ()) "" (identifier) "" (ERROR) "" (identifier) "" (;) "" (ERROR) "" (ERROR) "" (identifier) ""
52
10
{"language": "c", "success": true, "metadata": {"lines": 14, "avg_line_length": 19.14, "nodes": 35, "errors": 0, "source_hash": "e506db9ab821d80159239541206d02957b2bd528639841704dcaa92b4d680b09", "categorized_nodes": 19}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "IKit.h>\n\n@interface UGMS", "parent": null, "children": [1, 2], "start_point": {"row": 7, "column": 0}, "end_point": {"row": 8, "column": 0}}, {"id": 1, "type": "preproc_directive", "text": "IKit.h>", "parent": 0, "children": [], "start_point": {"row": 7, "column": 0}, "end_point": {"row": 7, "column": 7}}, {"id": 2, "type": "preproc_arg", "text": "\n@interface UGM", "parent": 0, "children": [], "start_point": {"row": 7, "column": 8}, "end_point": {"row": 7, "column": 23}}, {"id": 3, "type": "ERROR", "text": "istViewController : UIViewController\n@property(nonatomic,strong)NSNumber *brandID;\n\n/**\n 1 \u4ee3\u8868\u79d2\u6740 2\u4ee3\u8868\u62cd\u5356\n */\n@property(nonatomic,assign)NSInteger flag;\n@end\n", "parent": null, "children": [4, 5, 6, 10, 15, 20, 22, 32, 34], "start_point": {"row": 9, "column": 0}, "end_point": {"row": 16, "column": 4}}, {"id": 4, "type": "ERROR", "text": "i", "parent": 3, "children": [], "start_point": {"row": 9, "column": 0}, "end_point": {"row": 9, "column": 1}}, {"id": 5, "type": "type_identifier", "text": "stViewCon", "parent": 3, "children": [], "start_point": {"row": 9, "column": 1}, "end_point": {"row": 9, "column": 10}}, {"id": 6, "type": "ERROR", "text": "roller : UIViewController\n@property(nonatom", "parent": 3, "children": [7, 8, 9], "start_point": {"row": 9, "column": 11}, "end_point": {"row": 10, "column": 1}}, {"id": 7, "type": "identifier", "text": "roller : UIViewControl", "parent": 6, "children": [], "start_point": {"row": 9, "column": 11}, "end_point": {"row": 9, "column": 33}}, {"id": 8, "type": "identifier", "text": "\n@property(nonat", "parent": 6, "children": [], "start_point": {"row": 9, "column": 36}, "end_point": {"row": 9, "column": 52}}, {"id": 9, "type": "ERROR", "text": "m", "parent": 6, "children": [], "start_point": {"row": 10, "column": 0}, "end_point": {"row": 10, "column": 1}}, {"id": 10, "type": "function_declarator", "text": "ic,strong)NSNumber *brandI", "parent": 3, "children": [11, 12], "start_point": {"row": 10, "column": 1}, "end_point": {"row": 10, "column": 27}}, {"id": 11, "type": "identifier", "text": "ic,stron", "parent": 10, "children": [], "start_point": {"row": 10, "column": 1}, "end_point": {"row": 10, "column": 9}}, {"id": 12, "type": "parameter_list", "text": "g)NSNumber *brandI", "parent": 10, "children": [13, 14], "start_point": {"row": 10, "column": 9}, "end_point": {"row": 10, "column": 27}}, {"id": 13, "type": "identifier", "text": ")NSNumber", "parent": 12, "children": [], "start_point": {"row": 10, "column": 10}, "end_point": {"row": 10, "column": 19}}, {"id": 14, "type": "identifier", "text": "*brand", "parent": 12, "children": [], "start_point": {"row": 10, "column": 20}, "end_point": {"row": 10, "column": 26}}, {"id": 15, "type": "declaration", "text": "D;\n\n/**\n 1 \u4ee3\u8868\u79d2\u6740 2", "parent": 3, "children": [16, 17], "start_point": {"row": 10, "column": 27}, "end_point": {"row": 10, "column": 45}}, {"id": 16, "type": "type_identifier", "text": "D;\n\n/**\n", "parent": 15, "children": [], "start_point": {"row": 10, "column": 27}, "end_point": {"row": 10, "column": 35}}, {"id": 17, "type": "pointer_declarator", "text": "1 \u4ee3\u8868\u79d2\u6740 ", "parent": 15, "children": [18, 19], "start_point": {"row": 10, "column": 36}, "end_point": {"row": 10, "column": 44}}, {"id": 18, "type": "*", "text": "1", "parent": 17, "children": [], "start_point": {"row": 10, "column": 36}, "end_point": {"row": 10, "column": 37}}, {"id": 19, "type": "identifier", "text": " \u4ee3\u8868\u79d2\u6740 ", "parent": 17, "children": [], "start_point": {"row": 10, "column": 37}, "end_point": {"row": 10, "column": 44}}, {"id": 20, "type": "ERROR", "text": "e", "parent": 3, "children": [21], "start_point": {"row": 15, "column": 0}, "end_point": {"row": 15, "column": 1}}, {"id": 21, "type": "ERROR", "text": "e", "parent": 20, "children": [], "start_point": {"row": 15, "column": 0}, "end_point": {"row": 15, "column": 1}}, {"id": 22, "type": "declaration", "text": "ger flag;\n@end\n", "parent": 3, "children": [23, 29, 30], "start_point": {"row": 15, "column": 1}, "end_point": {"row": 15, "column": 42}}, {"id": 23, "type": "macro_type_specifier", "text": "ger flag;\n@end\n", "parent": 22, "children": [24, 25, 27], "start_point": {"row": 15, "column": 1}, "end_point": {"row": 15, "column": 27}}, {"id": 24, "type": "identifier", "text": "ger flag", "parent": 23, "children": [], "start_point": {"row": 15, "column": 1}, "end_point": {"row": 15, "column": 9}}, {"id": 25, "type": "type_descriptor", "text": "\n@end\n", "parent": 23, "children": [26], "start_point": {"row": 15, "column": 10}, "end_point": {"row": 15, "column": 19}}, {"id": 26, "type": "type_identifier", "text": "\n@end\n", "parent": 25, "children": [], "start_point": {"row": 15, "column": 10}, "end_point": {"row": 15, "column": 19}}, {"id": 27, "type": "ERROR", "text": "", "parent": 23, "children": [28], "start_point": {"row": 15, "column": 19}, "end_point": {"row": 15, "column": 26}}, {"id": 28, "type": "identifier", "text": "", "parent": 27, "children": [], "start_point": {"row": 15, "column": 20}, "end_point": {"row": 15, "column": 26}}, {"id": 29, "type": "identifier", "text": "", "parent": 22, "children": [], "start_point": {"row": 15, "column": 27}, "end_point": {"row": 15, "column": 36}}, {"id": 30, "type": "ERROR", "text": "", "parent": 22, "children": [31], "start_point": {"row": 15, "column": 37}, "end_point": {"row": 15, "column": 41}}, {"id": 31, "type": "identifier", "text": "", "parent": 30, "children": [], "start_point": {"row": 15, "column": 37}, "end_point": {"row": 15, "column": 41}}, {"id": 32, "type": "ERROR", "text": "", "parent": 3, "children": [33], "start_point": {"row": 16, "column": 0}, "end_point": {"row": 16, "column": 1}}, {"id": 33, "type": "ERROR", "text": "", "parent": 32, "children": [], "start_point": {"row": 16, "column": 0}, "end_point": {"row": 16, "column": 1}}, {"id": 34, "type": "identifier", "text": "", "parent": 3, "children": [], "start_point": {"row": 16, "column": 1}, "end_point": {"row": 16, "column": 4}}]}, "node_categories": {"declarations": {"functions": [10], "variables": [15, 22], "classes": [], "imports": [], "modules": [], "enums": []}, "statements": {"expressions": [], "assignments": [], "loops": [], "conditionals": [5, 7, 8, 11, 13, 14, 16, 19, 23, 24, 26, 28, 29, 31, 34], "returns": [], "exceptions": []}, "expressions": {"calls": [0], "literals": [], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [{"node_id": 10, "universal_type": "function", "name": "unknown", "text_snippet": "ic,strong)NSNumber *brandI"}], "class_declarations": [], "import_statements": []}, "original_source_code": "//\n// UGMSListViewController.h\n// UGouApp\n//\n// Created by \u9753\u840c\u670d\u9970\u9753\u840c\u670d\u9970 on 2018/3/15.\n//\n\n#import <UIKit/UIKit.h>\n\n@interface UGMSListViewController : UIViewController\n@property(nonatomic,strong)NSNumber *brandID;\n\n/**\n 1 \u4ee3\u8868\u79d2\u6740 2\u4ee3\u8868\u62cd\u5356\n */\n@property(nonatomic,assign)NSInteger flag;\n@end\n"}
80,097
c
#ifndef SRC_S21_STRING_H_ #define SRC_S21_STRING_H_ int s21_strlen(const char *str); int s21_strcmp(const char *str1, const char *str2); char* s21_strcpy(const char *src, char *dst); char* s21_strcat(char *dest, const char *src); char* s21_strchr(const char *src, int c); char* s21_strstr(const char *haystack, const char *needle); // char* s21_strtok(char *src, char *delim); #endif // SRC_S21_STRING_H_
39.6
10
(translation_unit) "#ifndef SRC_S21_STRING_H_\n#define SRC_S21_STRING_H_\n\nint s21_strlen(const char *str);\nint s21_strcmp(const char *str1, const char *str2);\nchar* s21_strcpy(const char *src, char *dst);\nchar* s21_strcat(char *dest, const char *src);\nchar* s21_strchr(const char *src, int c);\nchar* s21_strstr(const char *haystack, const char *needle);\n// char* s21_strtok(char *src, char *delim);\n\n#endif // SRC_S21_STRING_H_\n" (preproc_ifdef) "#ifndef SRC_S21_STRING_H_\n#define SRC_S21_STRING_H_\n\nint s21_strlen(const char *str);\nint s21_strcmp(const char *str1, const char *str2);\nchar* s21_strcpy(const char *src, char *dst);\nchar* s21_strcat(char *dest, const char *src);\nchar* s21_strchr(const char *src, int c);\nchar* s21_strstr(const char *haystack, const char *needle);\n// char* s21_strtok(char *src, char *delim);\n\n#endif" (#ifndef) "#ifndef" (identifier) "SRC_S21_STRING_H_" (preproc_def) "#define SRC_S21_STRING_H_\n" (#define) "#define" (identifier) "SRC_S21_STRING_H_" (declaration) "int s21_strlen(const char *str);" (primitive_type) "int" (function_declarator) "s21_strlen(const char *str)" (identifier) "s21_strlen" (parameter_list) "(const char *str)" (() "(" (parameter_declaration) "const char *str" (type_qualifier) "const" (const) "const" (primitive_type) "char" (pointer_declarator) "*str" (*) "*" (identifier) "str" ()) ")" (;) ";" (declaration) "int s21_strcmp(const char *str1, const char *str2);" (primitive_type) "int" (function_declarator) "s21_strcmp(const char *str1, const char *str2)" (identifier) "s21_strcmp" (parameter_list) "(const char *str1, const char *str2)" (() "(" (parameter_declaration) "const char *str1" (type_qualifier) "const" (const) "const" (primitive_type) "char" (pointer_declarator) "*str1" (*) "*" (identifier) "str1" (,) "," (parameter_declaration) "const char *str2" (type_qualifier) "const" (const) "const" (primitive_type) "char" (pointer_declarator) "*str2" (*) "*" (identifier) "str2" ()) ")" (;) ";" (declaration) "char* s21_strcpy(const char *src, char *dst);" (primitive_type) "char" (pointer_declarator) "* s21_strcpy(const char *src, char *dst)" (*) "*" (function_declarator) "s21_strcpy(const char *src, char *dst)" (identifier) "s21_strcpy" (parameter_list) "(const char *src, char *dst)" (() "(" (parameter_declaration) "const char *src" (type_qualifier) "const" (const) "const" (primitive_type) "char" (pointer_declarator) "*src" (*) "*" (identifier) "src" (,) "," (parameter_declaration) "char *dst" (primitive_type) "char" (pointer_declarator) "*dst" (*) "*" (identifier) "dst" ()) ")" (;) ";" (declaration) "char* s21_strcat(char *dest, const char *src);" (primitive_type) "char" (pointer_declarator) "* s21_strcat(char *dest, const char *src)" (*) "*" (function_declarator) "s21_strcat(char *dest, const char *src)" (identifier) "s21_strcat" (parameter_list) "(char *dest, const char *src)" (() "(" (parameter_declaration) "char *dest" (primitive_type) "char" (pointer_declarator) "*dest" (*) "*" (identifier) "dest" (,) "," (parameter_declaration) "const char *src" (type_qualifier) "const" (const) "const" (primitive_type) "char" (pointer_declarator) "*src" (*) "*" (identifier) "src" ()) ")" (;) ";" (declaration) "char* s21_strchr(const char *src, int c);" (primitive_type) "char" (pointer_declarator) "* s21_strchr(const char *src, int c)" (*) "*" (function_declarator) "s21_strchr(const char *src, int c)" (identifier) "s21_strchr" (parameter_list) "(const char *src, int c)" (() "(" (parameter_declaration) "const char *src" (type_qualifier) "const" (const) "const" (primitive_type) "char" (pointer_declarator) "*src" (*) "*" (identifier) "src" (,) "," (parameter_declaration) "int c" (primitive_type) "int" (identifier) "c" ()) ")" (;) ";" (declaration) "char* s21_strstr(const char *haystack, const char *needle);" (primitive_type) "char" (pointer_declarator) "* s21_strstr(const char *haystack, const char *needle)" (*) "*" (function_declarator) "s21_strstr(const char *haystack, const char *needle)" (identifier) "s21_strstr" (parameter_list) "(const char *haystack, const char *needle)" (() "(" (parameter_declaration) "const char *haystack" (type_qualifier) "const" (const) "const" (primitive_type) "char" (pointer_declarator) "*haystack" (*) "*" (identifier) "haystack" (,) "," (parameter_declaration) "const char *needle" (type_qualifier) "const" (const) "const" (primitive_type) "char" (pointer_declarator) "*needle" (*) "*" (identifier) "needle" ()) ")" (;) ";" (comment) "// char* s21_strtok(char *src, char *delim);" (#endif) "#endif" (comment) "// SRC_S21_STRING_H_"
140
0
{"language": "c", "success": true, "metadata": {"lines": 10, "avg_line_length": 39.6, "nodes": 98, "errors": 0, "source_hash": "f548f7f8e7ef2861ddb0f20da9880a7d1f9f49b5749f0be1dbe21747fb3b6bdc", "categorized_nodes": 45}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef SRC_S21_STRING_H_\n#define SRC_S21_STRING_H_\n\nint s21_strlen(const char *str);\nint s21_strcmp(const char *str1, const char *str2);\nchar* s21_strcpy(const char *src, char *dst);\nchar* s21_strcat(char *dest, const char *src);\nchar* s21_strchr(const char *src, int c);\nchar* s21_strstr(const char *haystack, const char *needle);\n// char* s21_strtok(char *src, char *delim);\n\n#endif", "parent": null, "children": [1, 2, 3, 6, 16, 31, 48, 65, 80, 97], "start_point": {"row": 0, "column": 0}, "end_point": {"row": 11, "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": "SRC_S21_STRING_H_", "parent": 0, "children": [], "start_point": {"row": 0, "column": 8}, "end_point": {"row": 0, "column": 25}}, {"id": 3, "type": "preproc_def", "text": "#define SRC_S21_STRING_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": "SRC_S21_STRING_H_", "parent": 3, "children": [], "start_point": {"row": 1, "column": 8}, "end_point": {"row": 1, "column": 25}}, {"id": 6, "type": "declaration", "text": "int s21_strlen(const char *str);", "parent": 0, "children": [7, 8], "start_point": {"row": 3, "column": 0}, "end_point": {"row": 3, "column": 32}}, {"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": "s21_strlen(const char *str)", "parent": 6, "children": [9, 10], "start_point": {"row": 3, "column": 4}, "end_point": {"row": 3, "column": 31}}, {"id": 9, "type": "identifier", "text": "s21_strlen", "parent": 8, "children": [], "start_point": {"row": 3, "column": 4}, "end_point": {"row": 3, "column": 14}}, {"id": 10, "type": "parameter_list", "text": "(const char *str)", "parent": 8, "children": [11], "start_point": {"row": 3, "column": 14}, "end_point": {"row": 3, "column": 31}}, {"id": 11, "type": "parameter_declaration", "text": "const char *str", "parent": 10, "children": [12, 13], "start_point": {"row": 3, "column": 15}, "end_point": {"row": 3, "column": 30}}, {"id": 12, "type": "primitive_type", "text": "char", "parent": 11, "children": [], "start_point": {"row": 3, "column": 21}, "end_point": {"row": 3, "column": 25}}, {"id": 13, "type": "pointer_declarator", "text": "*str", "parent": 11, "children": [14, 15], "start_point": {"row": 3, "column": 26}, "end_point": {"row": 3, "column": 30}}, {"id": 14, "type": "*", "text": "*", "parent": 13, "children": [], "start_point": {"row": 3, "column": 26}, "end_point": {"row": 3, "column": 27}}, {"id": 15, "type": "identifier", "text": "str", "parent": 13, "children": [], "start_point": {"row": 3, "column": 27}, "end_point": {"row": 3, "column": 30}}, {"id": 16, "type": "declaration", "text": "int s21_strcmp(const char *str1, const char *str2);", "parent": 0, "children": [17, 18], "start_point": {"row": 4, "column": 0}, "end_point": {"row": 4, "column": 51}}, {"id": 17, "type": "primitive_type", "text": "int", "parent": 16, "children": [], "start_point": {"row": 4, "column": 0}, "end_point": {"row": 4, "column": 3}}, {"id": 18, "type": "function_declarator", "text": "s21_strcmp(const char *str1, const char *str2)", "parent": 16, "children": [19, 20], "start_point": {"row": 4, "column": 4}, "end_point": {"row": 4, "column": 50}}, {"id": 19, "type": "identifier", "text": "s21_strcmp", "parent": 18, "children": [], "start_point": {"row": 4, "column": 4}, "end_point": {"row": 4, "column": 14}}, {"id": 20, "type": "parameter_list", "text": "(const char *str1, const char *str2)", "parent": 18, "children": [21, 26], "start_point": {"row": 4, "column": 14}, "end_point": {"row": 4, "column": 50}}, {"id": 21, "type": "parameter_declaration", "text": "const char *str1", "parent": 20, "children": [22, 23], "start_point": {"row": 4, "column": 15}, "end_point": {"row": 4, "column": 31}}, {"id": 22, "type": "primitive_type", "text": "char", "parent": 21, "children": [], "start_point": {"row": 4, "column": 21}, "end_point": {"row": 4, "column": 25}}, {"id": 23, "type": "pointer_declarator", "text": "*str1", "parent": 21, "children": [24, 25], "start_point": {"row": 4, "column": 26}, "end_point": {"row": 4, "column": 31}}, {"id": 24, "type": "*", "text": "*", "parent": 23, "children": [], "start_point": {"row": 4, "column": 26}, "end_point": {"row": 4, "column": 27}}, {"id": 25, "type": "identifier", "text": "str1", "parent": 23, "children": [], "start_point": {"row": 4, "column": 27}, "end_point": {"row": 4, "column": 31}}, {"id": 26, "type": "parameter_declaration", "text": "const char *str2", "parent": 20, "children": [27, 28], "start_point": {"row": 4, "column": 33}, "end_point": {"row": 4, "column": 49}}, {"id": 27, "type": "primitive_type", "text": "char", "parent": 26, "children": [], "start_point": {"row": 4, "column": 39}, "end_point": {"row": 4, "column": 43}}, {"id": 28, "type": "pointer_declarator", "text": "*str2", "parent": 26, "children": [29, 30], "start_point": {"row": 4, "column": 44}, "end_point": {"row": 4, "column": 49}}, {"id": 29, "type": "*", "text": "*", "parent": 28, "children": [], "start_point": {"row": 4, "column": 44}, "end_point": {"row": 4, "column": 45}}, {"id": 30, "type": "identifier", "text": "str2", "parent": 28, "children": [], "start_point": {"row": 4, "column": 45}, "end_point": {"row": 4, "column": 49}}, {"id": 31, "type": "declaration", "text": "char* s21_strcpy(const char *src, char *dst);", "parent": 0, "children": [32, 33], "start_point": {"row": 5, "column": 0}, "end_point": {"row": 5, "column": 45}}, {"id": 32, "type": "primitive_type", "text": "char", "parent": 31, "children": [], "start_point": {"row": 5, "column": 0}, "end_point": {"row": 5, "column": 4}}, {"id": 33, "type": "pointer_declarator", "text": "* s21_strcpy(const char *src, char *dst)", "parent": 31, "children": [34, 35], "start_point": {"row": 5, "column": 4}, "end_point": {"row": 5, "column": 44}}, {"id": 34, "type": "*", "text": "*", "parent": 33, "children": [], "start_point": {"row": 5, "column": 4}, "end_point": {"row": 5, "column": 5}}, {"id": 35, "type": "function_declarator", "text": "s21_strcpy(const char *src, char *dst)", "parent": 33, "children": [36, 37], "start_point": {"row": 5, "column": 6}, "end_point": {"row": 5, "column": 44}}, {"id": 36, "type": "identifier", "text": "s21_strcpy", "parent": 35, "children": [], "start_point": {"row": 5, "column": 6}, "end_point": {"row": 5, "column": 16}}, {"id": 37, "type": "parameter_list", "text": "(const char *src, char *dst)", "parent": 35, "children": [38, 43], "start_point": {"row": 5, "column": 16}, "end_point": {"row": 5, "column": 44}}, {"id": 38, "type": "parameter_declaration", "text": "const char *src", "parent": 37, "children": [39, 40], "start_point": {"row": 5, "column": 17}, "end_point": {"row": 5, "column": 32}}, {"id": 39, "type": "primitive_type", "text": "char", "parent": 38, "children": [], "start_point": {"row": 5, "column": 23}, "end_point": {"row": 5, "column": 27}}, {"id": 40, "type": "pointer_declarator", "text": "*src", "parent": 38, "children": [41, 42], "start_point": {"row": 5, "column": 28}, "end_point": {"row": 5, "column": 32}}, {"id": 41, "type": "*", "text": "*", "parent": 40, "children": [], "start_point": {"row": 5, "column": 28}, "end_point": {"row": 5, "column": 29}}, {"id": 42, "type": "identifier", "text": "src", "parent": 40, "children": [], "start_point": {"row": 5, "column": 29}, "end_point": {"row": 5, "column": 32}}, {"id": 43, "type": "parameter_declaration", "text": "char *dst", "parent": 37, "children": [44, 45], "start_point": {"row": 5, "column": 34}, "end_point": {"row": 5, "column": 43}}, {"id": 44, "type": "primitive_type", "text": "char", "parent": 43, "children": [], "start_point": {"row": 5, "column": 34}, "end_point": {"row": 5, "column": 38}}, {"id": 45, "type": "pointer_declarator", "text": "*dst", "parent": 43, "children": [46, 47], "start_point": {"row": 5, "column": 39}, "end_point": {"row": 5, "column": 43}}, {"id": 46, "type": "*", "text": "*", "parent": 45, "children": [], "start_point": {"row": 5, "column": 39}, "end_point": {"row": 5, "column": 40}}, {"id": 47, "type": "identifier", "text": "dst", "parent": 45, "children": [], "start_point": {"row": 5, "column": 40}, "end_point": {"row": 5, "column": 43}}, {"id": 48, "type": "declaration", "text": "char* s21_strcat(char *dest, const char *src);", "parent": 0, "children": [49, 50], "start_point": {"row": 6, "column": 0}, "end_point": {"row": 6, "column": 46}}, {"id": 49, "type": "primitive_type", "text": "char", "parent": 48, "children": [], "start_point": {"row": 6, "column": 0}, "end_point": {"row": 6, "column": 4}}, {"id": 50, "type": "pointer_declarator", "text": "* s21_strcat(char *dest, const char *src)", "parent": 48, "children": [51, 52], "start_point": {"row": 6, "column": 4}, "end_point": {"row": 6, "column": 45}}, {"id": 51, "type": "*", "text": "*", "parent": 50, "children": [], "start_point": {"row": 6, "column": 4}, "end_point": {"row": 6, "column": 5}}, {"id": 52, "type": "function_declarator", "text": "s21_strcat(char *dest, const char *src)", "parent": 50, "children": [53, 54], "start_point": {"row": 6, "column": 6}, "end_point": {"row": 6, "column": 45}}, {"id": 53, "type": "identifier", "text": "s21_strcat", "parent": 52, "children": [], "start_point": {"row": 6, "column": 6}, "end_point": {"row": 6, "column": 16}}, {"id": 54, "type": "parameter_list", "text": "(char *dest, const char *src)", "parent": 52, "children": [55, 60], "start_point": {"row": 6, "column": 16}, "end_point": {"row": 6, "column": 45}}, {"id": 55, "type": "parameter_declaration", "text": "char *dest", "parent": 54, "children": [56, 57], "start_point": {"row": 6, "column": 17}, "end_point": {"row": 6, "column": 27}}, {"id": 56, "type": "primitive_type", "text": "char", "parent": 55, "children": [], "start_point": {"row": 6, "column": 17}, "end_point": {"row": 6, "column": 21}}, {"id": 57, "type": "pointer_declarator", "text": "*dest", "parent": 55, "children": [58, 59], "start_point": {"row": 6, "column": 22}, "end_point": {"row": 6, "column": 27}}, {"id": 58, "type": "*", "text": "*", "parent": 57, "children": [], "start_point": {"row": 6, "column": 22}, "end_point": {"row": 6, "column": 23}}, {"id": 59, "type": "identifier", "text": "dest", "parent": 57, "children": [], "start_point": {"row": 6, "column": 23}, "end_point": {"row": 6, "column": 27}}, {"id": 60, "type": "parameter_declaration", "text": "const char *src", "parent": 54, "children": [61, 62], "start_point": {"row": 6, "column": 29}, "end_point": {"row": 6, "column": 44}}, {"id": 61, "type": "primitive_type", "text": "char", "parent": 60, "children": [], "start_point": {"row": 6, "column": 35}, "end_point": {"row": 6, "column": 39}}, {"id": 62, "type": "pointer_declarator", "text": "*src", "parent": 60, "children": [63, 64], "start_point": {"row": 6, "column": 40}, "end_point": {"row": 6, "column": 44}}, {"id": 63, "type": "*", "text": "*", "parent": 62, "children": [], "start_point": {"row": 6, "column": 40}, "end_point": {"row": 6, "column": 41}}, {"id": 64, "type": "identifier", "text": "src", "parent": 62, "children": [], "start_point": {"row": 6, "column": 41}, "end_point": {"row": 6, "column": 44}}, {"id": 65, "type": "declaration", "text": "char* s21_strchr(const char *src, int c);", "parent": 0, "children": [66, 67], "start_point": {"row": 7, "column": 0}, "end_point": {"row": 7, "column": 41}}, {"id": 66, "type": "primitive_type", "text": "char", "parent": 65, "children": [], "start_point": {"row": 7, "column": 0}, "end_point": {"row": 7, "column": 4}}, {"id": 67, "type": "pointer_declarator", "text": "* s21_strchr(const char *src, int c)", "parent": 65, "children": [68, 69], "start_point": {"row": 7, "column": 4}, "end_point": {"row": 7, "column": 40}}, {"id": 68, "type": "*", "text": "*", "parent": 67, "children": [], "start_point": {"row": 7, "column": 4}, "end_point": {"row": 7, "column": 5}}, {"id": 69, "type": "function_declarator", "text": "s21_strchr(const char *src, int c)", "parent": 67, "children": [70, 71], "start_point": {"row": 7, "column": 6}, "end_point": {"row": 7, "column": 40}}, {"id": 70, "type": "identifier", "text": "s21_strchr", "parent": 69, "children": [], "start_point": {"row": 7, "column": 6}, "end_point": {"row": 7, "column": 16}}, {"id": 71, "type": "parameter_list", "text": "(const char *src, int c)", "parent": 69, "children": [72, 77], "start_point": {"row": 7, "column": 16}, "end_point": {"row": 7, "column": 40}}, {"id": 72, "type": "parameter_declaration", "text": "const char *src", "parent": 71, "children": [73, 74], "start_point": {"row": 7, "column": 17}, "end_point": {"row": 7, "column": 32}}, {"id": 73, "type": "primitive_type", "text": "char", "parent": 72, "children": [], "start_point": {"row": 7, "column": 23}, "end_point": {"row": 7, "column": 27}}, {"id": 74, "type": "pointer_declarator", "text": "*src", "parent": 72, "children": [75, 76], "start_point": {"row": 7, "column": 28}, "end_point": {"row": 7, "column": 32}}, {"id": 75, "type": "*", "text": "*", "parent": 74, "children": [], "start_point": {"row": 7, "column": 28}, "end_point": {"row": 7, "column": 29}}, {"id": 76, "type": "identifier", "text": "src", "parent": 74, "children": [], "start_point": {"row": 7, "column": 29}, "end_point": {"row": 7, "column": 32}}, {"id": 77, "type": "parameter_declaration", "text": "int c", "parent": 71, "children": [78, 79], "start_point": {"row": 7, "column": 34}, "end_point": {"row": 7, "column": 39}}, {"id": 78, "type": "primitive_type", "text": "int", "parent": 77, "children": [], "start_point": {"row": 7, "column": 34}, "end_point": {"row": 7, "column": 37}}, {"id": 79, "type": "identifier", "text": "c", "parent": 77, "children": [], "start_point": {"row": 7, "column": 38}, "end_point": {"row": 7, "column": 39}}, {"id": 80, "type": "declaration", "text": "char* s21_strstr(const char *haystack, const char *needle);", "parent": 0, "children": [81, 82], "start_point": {"row": 8, "column": 0}, "end_point": {"row": 8, "column": 59}}, {"id": 81, "type": "primitive_type", "text": "char", "parent": 80, "children": [], "start_point": {"row": 8, "column": 0}, "end_point": {"row": 8, "column": 4}}, {"id": 82, "type": "pointer_declarator", "text": "* s21_strstr(const char *haystack, const char *needle)", "parent": 80, "children": [83, 84], "start_point": {"row": 8, "column": 4}, "end_point": {"row": 8, "column": 58}}, {"id": 83, "type": "*", "text": "*", "parent": 82, "children": [], "start_point": {"row": 8, "column": 4}, "end_point": {"row": 8, "column": 5}}, {"id": 84, "type": "function_declarator", "text": "s21_strstr(const char *haystack, const char *needle)", "parent": 82, "children": [85, 86], "start_point": {"row": 8, "column": 6}, "end_point": {"row": 8, "column": 58}}, {"id": 85, "type": "identifier", "text": "s21_strstr", "parent": 84, "children": [], "start_point": {"row": 8, "column": 6}, "end_point": {"row": 8, "column": 16}}, {"id": 86, "type": "parameter_list", "text": "(const char *haystack, const char *needle)", "parent": 84, "children": [87, 92], "start_point": {"row": 8, "column": 16}, "end_point": {"row": 8, "column": 58}}, {"id": 87, "type": "parameter_declaration", "text": "const char *haystack", "parent": 86, "children": [88, 89], "start_point": {"row": 8, "column": 17}, "end_point": {"row": 8, "column": 37}}, {"id": 88, "type": "primitive_type", "text": "char", "parent": 87, "children": [], "start_point": {"row": 8, "column": 23}, "end_point": {"row": 8, "column": 27}}, {"id": 89, "type": "pointer_declarator", "text": "*haystack", "parent": 87, "children": [90, 91], "start_point": {"row": 8, "column": 28}, "end_point": {"row": 8, "column": 37}}, {"id": 90, "type": "*", "text": "*", "parent": 89, "children": [], "start_point": {"row": 8, "column": 28}, "end_point": {"row": 8, "column": 29}}, {"id": 91, "type": "identifier", "text": "haystack", "parent": 89, "children": [], "start_point": {"row": 8, "column": 29}, "end_point": {"row": 8, "column": 37}}, {"id": 92, "type": "parameter_declaration", "text": "const char *needle", "parent": 86, "children": [93, 94], "start_point": {"row": 8, "column": 39}, "end_point": {"row": 8, "column": 57}}, {"id": 93, "type": "primitive_type", "text": "char", "parent": 92, "children": [], "start_point": {"row": 8, "column": 45}, "end_point": {"row": 8, "column": 49}}, {"id": 94, "type": "pointer_declarator", "text": "*needle", "parent": 92, "children": [95, 96], "start_point": {"row": 8, "column": 50}, "end_point": {"row": 8, "column": 57}}, {"id": 95, "type": "*", "text": "*", "parent": 94, "children": [], "start_point": {"row": 8, "column": 50}, "end_point": {"row": 8, "column": 51}}, {"id": 96, "type": "identifier", "text": "needle", "parent": 94, "children": [], "start_point": {"row": 8, "column": 51}, "end_point": {"row": 8, "column": 57}}, {"id": 97, "type": "#endif", "text": "#endif", "parent": 0, "children": [], "start_point": {"row": 11, "column": 0}, "end_point": {"row": 11, "column": 6}}]}, "node_categories": {"declarations": {"functions": [8, 18, 35, 52, 69, 84], "variables": [6, 11, 16, 21, 26, 31, 38, 43, 48, 55, 60, 65, 72, 77, 80, 87, 92], "classes": [], "imports": [], "modules": [], "enums": []}, "statements": {"expressions": [], "assignments": [], "loops": [], "conditionals": [0, 1, 2, 5, 9, 15, 19, 25, 30, 36, 42, 47, 53, 59, 64, 70, 76, 79, 85, 91, 96, 97], "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": "s21_strlen(const char *str)"}, {"node_id": 18, "universal_type": "function", "name": "unknown", "text_snippet": "s21_strcmp(const char *str1, const char *str2)"}, {"node_id": 35, "universal_type": "function", "name": "unknown", "text_snippet": "s21_strcpy(const char *src, char *dst)"}, {"node_id": 52, "universal_type": "function", "name": "unknown", "text_snippet": "s21_strcat(char *dest, const char *src)"}, {"node_id": 69, "universal_type": "function", "name": "c)", "text_snippet": "s21_strchr(const char *src, int c)"}, {"node_id": 84, "universal_type": "function", "name": "unknown", "text_snippet": "s21_strstr(const char *haystack, const char *needle)"}], "class_declarations": [], "import_statements": []}, "original_source_code": "#ifndef SRC_S21_STRING_H_\n#define SRC_S21_STRING_H_\n\nint s21_strlen(const char *str);\nint s21_strcmp(const char *str1, const char *str2);\nchar* s21_strcpy(const char *src, char *dst);\nchar* s21_strcat(char *dest, const char *src);\nchar* s21_strchr(const char *src, int c);\nchar* s21_strstr(const char *haystack, const char *needle);\n// char* s21_strtok(char *src, char *delim);\n\n#endif // SRC_S21_STRING_H_\n"}
80,098
c
/** @file tw.c * * @brief This simple client demonstrates the basic features of JACK * as they would be used by many applications. */ #include <stdio.h> #include <errno.h> #include <unistd.h> #include <stdlib.h> #include <string.h> #include <jack/jack.h> jack_port_t *input_port; jack_port_t *output_port; jack_client_t *client; /* a simple state machine for this client */ volatile enum { Init, Run, Exit } client_state = Init; static void signal_handler(int sig) { jack_client_close(client); fprintf(stderr, "signal received, exiting ...\n"); exit(0); } /** * The process callback for this JACK application is called in a * special realtime thread once for each audio cycle. * * This client follows a simple rule: when the JACK transport is * running, copy the input port to the output. When it stops, exit. */ static int _process (jack_nframes_t nframes) { jack_default_audio_sample_t *in, *out; jack_transport_state_t ts = jack_transport_query(client, NULL); if (ts == JackTransportRolling) { if (client_state == Init) client_state = Run; in = jack_port_get_buffer (input_port, nframes); out = jack_port_get_buffer (output_port, nframes); memcpy (out, in, sizeof (jack_default_audio_sample_t) * nframes); } else if (ts == JackTransportStopped) { if (client_state == Run) { client_state = Exit; return -1; // to stop the thread } } return 0; } static void* jack_thread(void *arg) { jack_client_t* client = (jack_client_t*) arg; while (1) { jack_nframes_t frames = jack_cycle_wait (client); int status = _process(frames); jack_cycle_signal (client, status); /* Possibly do something else after signaling next clients in the graph */ /* End condition */ if (status != 0) return 0; } /* not reached*/ return 0; } /* static void* jack_thread(void *arg) { jack_client_t* client = (jack_client_t*) arg; while (1) { jack_nframes_t frames; int status; // cycle 1 frames = jack_cycle_wait (client); status = _process(frames); jack_cycle_signal (client, status); // cycle 2 frames = jack_cycle_wait (client); status = _process(frames); jack_cycle_signal (client, status); // cycle 3 frames = jack_cycle_wait (client); status = _process(frames); jack_cycle_signal (client, status); // cycle 4 frames = jack_cycle_wait (client); status = _process(frames); jack_cycle_signal (client, status); } return 0; } */ /** * JACK calls this shutdown_callback if the server ever shuts down or * decides to disconnect the client. */ static void jack_shutdown (void *arg) { fprintf(stderr, "JACK shut down, exiting ...\n"); exit (1); } int main (int argc, char *argv[]) { const char **ports; const char *client_name; const char *server_name = NULL; jack_options_t options = JackNullOption; jack_status_t status; if (argc >= 2) { /* client name specified? */ client_name = argv[1]; if (argc >= 3) { /* server name specified? */ server_name = argv[2]; options |= JackServerName; } } else { /* use basename of argv[0] */ client_name = strrchr(argv[0], '/'); if (client_name == 0) { client_name = argv[0]; } else { client_name++; } } /* open a client connection to the JACK server */ client = jack_client_open (client_name, options, &status, server_name); if (client == NULL) { fprintf (stderr, "jack_client_open() failed, " "status = 0x%2.0x\n", status); if (status & JackServerFailed) { fprintf (stderr, "Unable to connect to JACK server\n"); } exit (1); } if (status & JackServerStarted) { fprintf (stderr, "JACK server started\n"); } if (status & JackNameNotUnique) { client_name = jack_get_client_name(client); fprintf (stderr, "unique name `%s' assigned\n", client_name); } /* tell the JACK server to call `process()' whenever there is work to be done. */ if (jack_set_process_thread(client, jack_thread, client) < 0) exit(1); /* tell the JACK server to call `jack_shutdown()' if it ever shuts down, either entirely, or if it just decides to stop calling us. */ jack_on_shutdown (client, jack_shutdown, 0); /* display the current sample rate. */ printf ("engine sample rate: %" PRIu32 "\n", jack_get_sample_rate (client)); /* create two ports */ input_port = jack_port_register (client, "input", JACK_DEFAULT_AUDIO_TYPE, JackPortIsInput, 0); output_port = jack_port_register (client, "output", JACK_DEFAULT_AUDIO_TYPE, JackPortIsOutput, 0); if ((input_port == NULL) || (output_port == NULL)) { fprintf(stderr, "no more JACK ports available\n"); exit (1); } /* Tell the JACK server that we are ready to roll. Our * process() callback will start running now. */ if (jack_activate (client)) { fprintf (stderr, "cannot activate client"); exit (1); } /* Connect the ports. You can't do this before the client is * activated, because we can't make connections to clients * that aren't running. Note the confusing (but necessary) * orientation of the driver backend ports: playback ports are * "input" to the backend, and capture ports are "output" from * it. */ ports = jack_get_ports (client, NULL, NULL, JackPortIsPhysical|JackPortIsOutput); if (ports == NULL) { fprintf(stderr, "no physical capture ports\n"); exit (1); } if (jack_connect (client, ports[0], jack_port_name (input_port))) { fprintf (stderr, "cannot connect input ports\n"); } jack_free (ports); ports = jack_get_ports (client, NULL, NULL, JackPortIsPhysical|JackPortIsInput); if (ports == NULL) { fprintf(stderr, "no physical playback ports\n"); exit (1); } if (jack_connect (client, jack_port_name (output_port), ports[0])) { fprintf (stderr, "cannot connect output ports\n"); } jack_free (ports); /* install a signal handler to properly quits jack client */ signal(SIGQUIT, signal_handler); signal(SIGTERM, signal_handler); signal(SIGHUP, signal_handler); signal(SIGINT, signal_handler); /* keep running until the transport stops */ while (client_state != Exit) { sleep (1); } jack_client_close (client); exit (0); }
27.39
216
(translation_unit) "/** @file tw.c\n *\n * @brief This simple client demonstrates the basic features of JACK\n * as they would be used by many applications.\n */\n\n#include <stdio.h>\n#include <errno.h>\n#include <unistd.h>\n#include <stdlib.h>\n#include <string.h>\n\n#include <jack/jack.h>\n\njack_port_t *input_port;\njack_port_t *output_port;\njack_client_t *client;\n\n/* a simple state machine for this client */\nvolatile enum {\n Init,\n Run,\n Exit\n} client_state = Init;\n\nstatic void signal_handler(int sig)\n{\n jack_client_close(client);\n fprintf(stderr, "signal received, exiting ...\n");\n exit(0);\n}\n\n/**\n * The process callback for this JACK application is called in a\n * special realtime thread once for each audio cycle.\n *\n * This client follows a simple rule: when the JACK transport is\n * running, copy the input port to the output. When it stops, exit.\n */\nstatic int\n_process (jack_nframes_t nframes)\n{\n jack_default_audio_sample_t *in, *out;\n jack_transport_state_t ts = jack_transport_query(client, NULL);\n\n if (ts == JackTransportRolling) {\n\n if (client_state == Init)\n client_state = Run;\n\n in = jack_port_get_buffer (input_port, nframes);\n out = jack_port_get_buffer (output_port, nframes);\n memcpy (out, in,\n sizeof (jack_default_audio_sample_t) * nframes);\n\n } else if (ts == JackTransportStopped) {\n\n if (client_state == Run) {\n client_state = Exit;\n return -1; // to stop the thread\n }\n }\n\n return 0;\n}\n\nstatic void* jack_thread(void *arg)\n{\n jack_client_t* client = (jack_client_t*) arg;\n\n while (1) {\n\n jack_nframes_t frames = jack_cycle_wait (client);\n int status = _process(frames);\n jack_cycle_signal (client, status);\n\n /*\n Possibly do something else after signaling next clients in the graph\n */\n\n /* End condition */\n if (status != 0)\n return 0;\n }\n\n /* not reached*/\n return 0;\n}\n\n/*\nstatic void* jack_thread(void *arg)\n{\n jack_client_t* client = (jack_client_t*) arg;\n\n while (1) {\n jack_nframes_t frames;\n int status;\n // cycle 1\n frames = jack_cycle_wait (client);\n status = _process(frames);\n jack_cycle_signal (client, status);\n // cycle 2\n frames = jack_cycle_wait (client);\n status = _process(frames);\n jack_cycle_signal (client, status);\n // cycle 3\n frames = jack_cycle_wait (client);\n status = _process(frames);\n jack_cycle_signal (client, status);\n // cycle 4\n frames = jack_cycle_wait (client);\n status = _process(frames);\n jack_cycle_signal (client, status);\n }\n\n return 0;\n}\n*/\n\n/**\n * JACK calls this shutdown_callback if the server ever shuts down or\n * decides to disconnect the client.\n */\nstatic void\njack_shutdown (void *arg)\n{\n fprintf(stderr, "JACK shut down, exiting ...\n");\n exit (1);\n}\n\nint\nmain (int argc, char *argv[])\n{\n const char **ports;\n const char *client_name;\n const char *server_name = NULL;\n jack_options_t options = JackNullOption;\n jack_status_t status;\n\n if (argc >= 2) { /* client name specified? */\n client_name = argv[1];\n if (argc >= 3) { /* server name specified? */\n server_name = argv[2];\n options |= JackServerName;\n }\n } else { /* use basename of argv[0] */\n client_name = strrchr(argv[0], '/');\n if (client_name == 0) {\n client_name = argv[0];\n } else {\n client_name++;\n }\n }\n\n /* open a client connection to the JACK server */\n\n client = jack_client_open (client_name, options, &status, server_name);\n if (client == NULL) {\n fprintf (stderr, "jack_client_open() failed, "\n "status = 0x%2.0x\n", status);\n if (status & JackServerFailed) {\n fprintf (stderr, "Unable to connect to JACK server\n");\n }\n exit (1);\n }\n if (status & JackServerStarted) {\n fprintf (stderr, "JACK server started\n");\n }\n if (status & JackNameNotUnique) {\n client_name = jack_get_client_name(client);\n fprintf (stderr, "unique name `%s' assigned\n", client_name);\n }\n\n /* tell the JACK server to call `process()' whenever\n there is work to be done.\n */\n if (jack_set_process_thread(client, jack_thread, client) < 0)\n exit(1);\n\n /* tell the JACK server to call `jack_shutdown()' if\n it ever shuts down, either entirely, or if it\n just decides to stop calling us.\n */\n\n jack_on_shutdown (client, jack_shutdown, 0);\n\n /* display the current sample rate.\n */\n\n printf ("engine sample rate: %" PRIu32 "\n",\n jack_get_sample_rate (client));\n\n /* create two ports */\n\n input_port = jack_port_register (client, "input",\n JACK_DEFAULT_AUDIO_TYPE,\n JackPortIsInput, 0);\n output_port = jack_port_register (client, "output",\n JACK_DEFAULT_AUDIO_TYPE,\n JackPortIsOutput, 0);\n\n if ((input_port == NULL) || (output_port == NULL)) {\n fprintf(stderr, "no more JACK ports available\n");\n exit (1);\n }\n\n /* Tell the JACK server that we are ready to roll. Our\n * process() callback will start running now. */\n\n if (jack_activate (client)) {\n fprintf (stderr, "cannot activate client");\n exit (1);\n }\n\n /* Connect the ports. You can't do this before the client is\n * activated, because we can't make connections to clients\n * that aren't running. Note the confusing (but necessary)\n * orientation of the driver backend ports: playback ports are\n * "input" to the backend, and capture ports are "output" from\n * it.\n */\n\n ports = jack_get_ports (client, NULL, NULL,\n JackPortIsPhysical|JackPortIsOutput);\n if (ports == NULL) {\n fprintf(stderr, "no physical capture ports\n");\n exit (1);\n }\n\n if (jack_connect (client, ports[0], jack_port_name (input_port))) {\n fprintf (stderr, "cannot connect input ports\n");\n }\n\n jack_free (ports);\n\n ports = jack_get_ports (client, NULL, NULL,\n JackPortIsPhysical|JackPortIsInput);\n if (ports == NULL) {\n fprintf(stderr, "no physical playback ports\n");\n exit (1);\n }\n\n if (jack_connect (client, jack_port_name (output_port), ports[0])) {\n fprintf (stderr, "cannot connect output ports\n");\n }\n\n jack_free (ports);\n\n /* install a signal handler to properly quits jack client */\n signal(SIGQUIT, signal_handler);\n signal(SIGTERM, signal_handler);\n signal(SIGHUP, signal_handler);\n signal(SIGINT, signal_handler);\n\n /* keep running until the transport stops */\n\n while (client_state != Exit) {\n sleep (1);\n }\n\n jack_client_close (client);\n exit (0);\n}\n" (comment) "/** @file tw.c\n *\n * @brief This simple client demonstrates the basic features of JACK\n * as they would be used by many applications.\n */" (preproc_include) "#include <stdio.h>\n" (#include) "#include" (system_lib_string) "<stdio.h>" (preproc_include) "#include <errno.h>\n" (#include) "#include" (system_lib_string) "<errno.h>" (preproc_include) "#include <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 <jack/jack.h>\n" (#include) "#include" (system_lib_string) "<jack/jack.h>" (declaration) "jack_port_t *input_port;" (type_identifier) "jack_port_t" (pointer_declarator) "*input_port" (*) "*" (identifier) "input_port" (;) ";" (declaration) "jack_port_t *output_port;" (type_identifier) "jack_port_t" (pointer_declarator) "*output_port" (*) "*" (identifier) "output_port" (;) ";" (declaration) "jack_client_t *client;" (type_identifier) "jack_client_t" (pointer_declarator) "*client" (*) "*" (identifier) "client" (;) ";" (comment) "/* a simple state machine for this client */" (declaration) "volatile enum {\n Init,\n Run,\n Exit\n} client_state = Init;" (type_qualifier) "volatile" (volatile) "volatile" (enum_specifier) "enum {\n Init,\n Run,\n Exit\n}" (enum) "enum" (enumerator_list) "{\n Init,\n Run,\n Exit\n}" ({) "{" (enumerator) "Init" (identifier) "Init" (,) "," (enumerator) "Run" (identifier) "Run" (,) "," (enumerator) "Exit" (identifier) "Exit" (}) "}" (init_declarator) "client_state = Init" (identifier) "client_state" (=) "=" (identifier) "Init" (;) ";" (function_definition) "static void signal_handler(int sig)\n{\n jack_client_close(client);\n fprintf(stderr, "signal received, exiting ...\n");\n exit(0);\n}" (storage_class_specifier) "static" (static) "static" (primitive_type) "void" (function_declarator) "signal_handler(int sig)" (identifier) "signal_handler" (parameter_list) "(int sig)" (() "(" (parameter_declaration) "int sig" (primitive_type) "int" (identifier) "sig" ()) ")" (compound_statement) "{\n jack_client_close(client);\n fprintf(stderr, "signal received, exiting ...\n");\n exit(0);\n}" ({) "{" (expression_statement) "jack_client_close(client);" (call_expression) "jack_client_close(client)" (identifier) "jack_client_close" (argument_list) "(client)" (() "(" (identifier) "client" ()) ")" (;) ";" (expression_statement) "fprintf(stderr, "signal received, exiting ...\n");" (call_expression) "fprintf(stderr, "signal received, exiting ...\n")" (identifier) "fprintf" (argument_list) "(stderr, "signal received, exiting ...\n")" (() "(" (identifier) "stderr" (,) "," (string_literal) ""signal received, exiting ...\n"" (") """ (string_content) "signal received, exiting ..." (escape_sequence) "\n" (") """ ()) ")" (;) ";" (expression_statement) "exit(0);" (call_expression) "exit(0)" (identifier) "exit" (argument_list) "(0)" (() "(" (number_literal) "0" ()) ")" (;) ";" (}) "}" (comment) "/**\n * The process callback for this JACK application is called in a\n * special realtime thread once for each audio cycle.\n *\n * This client follows a simple rule: when the JACK transport is\n * running, copy the input port to the output. When it stops, exit.\n */" (function_definition) "static int\n_process (jack_nframes_t nframes)\n{\n jack_default_audio_sample_t *in, *out;\n jack_transport_state_t ts = jack_transport_query(client, NULL);\n\n if (ts == JackTransportRolling) {\n\n if (client_state == Init)\n client_state = Run;\n\n in = jack_port_get_buffer (input_port, nframes);\n out = jack_port_get_buffer (output_port, nframes);\n memcpy (out, in,\n sizeof (jack_default_audio_sample_t) * nframes);\n\n } else if (ts == JackTransportStopped) {\n\n if (client_state == Run) {\n client_state = Exit;\n return -1; // to stop the thread\n }\n }\n\n return 0;\n}" (storage_class_specifier) "static" (static) "static" (primitive_type) "int" (function_declarator) "_process (jack_nframes_t nframes)" (identifier) "_process" (parameter_list) "(jack_nframes_t nframes)" (() "(" (parameter_declaration) "jack_nframes_t nframes" (type_identifier) "jack_nframes_t" (identifier) "nframes" ()) ")" (compound_statement) "{\n jack_default_audio_sample_t *in, *out;\n jack_transport_state_t ts = jack_transport_query(client, NULL);\n\n if (ts == JackTransportRolling) {\n\n if (client_state == Init)\n client_state = Run;\n\n in = jack_port_get_buffer (input_port, nframes);\n out = jack_port_get_buffer (output_port, nframes);\n memcpy (out, in,\n sizeof (jack_default_audio_sample_t) * nframes);\n\n } else if (ts == JackTransportStopped) {\n\n if (client_state == Run) {\n client_state = Exit;\n return -1; // to stop the thread\n }\n }\n\n return 0;\n}" ({) "{" (declaration) "jack_default_audio_sample_t *in, *out;" (type_identifier) "jack_default_audio_sample_t" (pointer_declarator) "*in" (*) "*" (identifier) "in" (,) "," (pointer_declarator) "*out" (*) "*" (identifier) "out" (;) ";" (declaration) "jack_transport_state_t ts = jack_transport_query(client, NULL);" (type_identifier) "jack_transport_state_t" (init_declarator) "ts = jack_transport_query(client, NULL)" (identifier) "ts" (=) "=" (call_expression) "jack_transport_query(client, NULL)" (identifier) "jack_transport_query" (argument_list) "(client, NULL)" (() "(" (identifier) "client" (,) "," (null) "NULL" (NULL) "NULL" ()) ")" (;) ";" (if_statement) "if (ts == JackTransportRolling) {\n\n if (client_state == Init)\n client_state = Run;\n\n in = jack_port_get_buffer (input_port, nframes);\n out = jack_port_get_buffer (output_port, nframes);\n memcpy (out, in,\n sizeof (jack_default_audio_sample_t) * nframes);\n\n } else if (ts == JackTransportStopped) {\n\n if (client_state == Run) {\n client_state = Exit;\n return -1; // to stop the thread\n }\n }" (if) "if" (parenthesized_expression) "(ts == JackTransportRolling)" (() "(" (binary_expression) "ts == JackTransportRolling" (identifier) "ts" (==) "==" (identifier) "JackTransportRolling" ()) ")" (compound_statement) "{\n\n if (client_state == Init)\n client_state = Run;\n\n in = jack_port_get_buffer (input_port, nframes);\n out = jack_port_get_buffer (output_port, nframes);\n memcpy (out, in,\n sizeof (jack_default_audio_sample_t) * nframes);\n\n }" ({) "{" (if_statement) "if (client_state == Init)\n client_state = Run;" (if) "if" (parenthesized_expression) "(client_state == Init)" (() "(" (binary_expression) "client_state == Init" (identifier) "client_state" (==) "==" (identifier) "Init" ()) ")" (expression_statement) "client_state = Run;" (assignment_expression) "client_state = Run" (identifier) "client_state" (=) "=" (identifier) "Run" (;) ";" (expression_statement) "in = jack_port_get_buffer (input_port, nframes);" (assignment_expression) "in = jack_port_get_buffer (input_port, nframes)" (identifier) "in" (=) "=" (call_expression) "jack_port_get_buffer (input_port, nframes)" (identifier) "jack_port_get_buffer" (argument_list) "(input_port, nframes)" (() "(" (identifier) "input_port" (,) "," (identifier) "nframes" ()) ")" (;) ";" (expression_statement) "out = jack_port_get_buffer (output_port, nframes);" (assignment_expression) "out = jack_port_get_buffer (output_port, nframes)" (identifier) "out" (=) "=" (call_expression) "jack_port_get_buffer (output_port, nframes)" (identifier) "jack_port_get_buffer" (argument_list) "(output_port, nframes)" (() "(" (identifier) "output_port" (,) "," (identifier) "nframes" ()) ")" (;) ";" (expression_statement) "memcpy (out, in,\n sizeof (jack_default_audio_sample_t) * nframes);" (call_expression) "memcpy (out, in,\n sizeof (jack_default_audio_sample_t) * nframes)" (identifier) "memcpy" (argument_list) "(out, in,\n sizeof (jack_default_audio_sample_t) * nframes)" (() "(" (identifier) "out" (,) "," (identifier) "in" (,) "," (binary_expression) "sizeof (jack_default_audio_sample_t) * nframes" (sizeof_expression) "sizeof (jack_default_audio_sample_t)" (sizeof) "sizeof" (parenthesized_expression) "(jack_default_audio_sample_t)" (() "(" (identifier) "jack_default_audio_sample_t" ()) ")" (*) "*" (identifier) "nframes" ()) ")" (;) ";" (}) "}" (else_clause) "else if (ts == JackTransportStopped) {\n\n if (client_state == Run) {\n client_state = Exit;\n return -1; // to stop the thread\n }\n }" (else) "else" (if_statement) "if (ts == JackTransportStopped) {\n\n if (client_state == Run) {\n client_state = Exit;\n return -1; // to stop the thread\n }\n }" (if) "if" (parenthesized_expression) "(ts == JackTransportStopped)" (() "(" (binary_expression) "ts == JackTransportStopped" (identifier) "ts" (==) "==" (identifier) "JackTransportStopped" ()) ")" (compound_statement) "{\n\n if (client_state == Run) {\n client_state = Exit;\n return -1; // to stop the thread\n }\n }" ({) "{" (if_statement) "if (client_state == Run) {\n client_state = Exit;\n return -1; // to stop the thread\n }" (if) "if" (parenthesized_expression) "(client_state == Run)" (() "(" (binary_expression) "client_state == Run" (identifier) "client_state" (==) "==" (identifier) "Run" ()) ")" (compound_statement) "{\n client_state = Exit;\n return -1; // to stop the thread\n }" ({) "{" (expression_statement) "client_state = Exit;" (assignment_expression) "client_state = Exit" (identifier) "client_state" (=) "=" (identifier) "Exit" (;) ";" (return_statement) "return -1;" (return) "return" (number_literal) "-1" (;) ";" (comment) "// to stop the thread" (}) "}" (}) "}" (return_statement) "return 0;" (return) "return" (number_literal) "0" (;) ";" (}) "}" (function_definition) "static void* jack_thread(void *arg)\n{\n jack_client_t* client = (jack_client_t*) arg;\n\n while (1) {\n\n jack_nframes_t frames = jack_cycle_wait (client);\n int status = _process(frames);\n jack_cycle_signal (client, status);\n\n /*\n Possibly do something else after signaling next clients in the graph\n */\n\n /* End condition */\n if (status != 0)\n return 0;\n }\n\n /* not reached*/\n return 0;\n}" (storage_class_specifier) "static" (static) "static" (primitive_type) "void" (pointer_declarator) "* jack_thread(void *arg)" (*) "*" (function_declarator) "jack_thread(void *arg)" (identifier) "jack_thread" (parameter_list) "(void *arg)" (() "(" (parameter_declaration) "void *arg" (primitive_type) "void" (pointer_declarator) "*arg" (*) "*" (identifier) "arg" ()) ")" (compound_statement) "{\n jack_client_t* client = (jack_client_t*) arg;\n\n while (1) {\n\n jack_nframes_t frames = jack_cycle_wait (client);\n int status = _process(frames);\n jack_cycle_signal (client, status);\n\n /*\n Possibly do something else after signaling next clients in the graph\n */\n\n /* End condition */\n if (status != 0)\n return 0;\n }\n\n /* not reached*/\n return 0;\n}" ({) "{" (declaration) "jack_client_t* client = (jack_client_t*) arg;" (type_identifier) "jack_client_t" (init_declarator) "* client = (jack_client_t*) arg" (pointer_declarator) "* client" (*) "*" (identifier) "client" (=) "=" (cast_expression) "(jack_client_t*) arg" (() "(" (type_descriptor) "jack_client_t*" (type_identifier) "jack_client_t" (abstract_pointer_declarator) "*" (*) "*" ()) ")" (identifier) "arg" (;) ";" (while_statement) "while (1) {\n\n jack_nframes_t frames = jack_cycle_wait (client);\n int status = _process(frames);\n jack_cycle_signal (client, status);\n\n /*\n Possibly do something else after signaling next clients in the graph\n */\n\n /* End condition */\n if (status != 0)\n return 0;\n }" (while) "while" (parenthesized_expression) "(1)" (() "(" (number_literal) "1" ()) ")" (compound_statement) "{\n\n jack_nframes_t frames = jack_cycle_wait (client);\n int status = _process(frames);\n jack_cycle_signal (client, status);\n\n /*\n Possibly do something else after signaling next clients in the graph\n */\n\n /* End condition */\n if (status != 0)\n return 0;\n }" ({) "{" (declaration) "jack_nframes_t frames = jack_cycle_wait (client);" (type_identifier) "jack_nframes_t" (init_declarator) "frames = jack_cycle_wait (client)" (identifier) "frames" (=) "=" (call_expression) "jack_cycle_wait (client)" (identifier) "jack_cycle_wait" (argument_list) "(client)" (() "(" (identifier) "client" ()) ")" (;) ";" (declaration) "int status = _process(frames);" (primitive_type) "int" (init_declarator) "status = _process(frames)" (identifier) "status" (=) "=" (call_expression) "_process(frames)" (identifier) "_process" (argument_list) "(frames)" (() "(" (identifier) "frames" ()) ")" (;) ";" (expression_statement) "jack_cycle_signal (client, status);" (call_expression) "jack_cycle_signal (client, status)" (identifier) "jack_cycle_signal" (argument_list) "(client, status)" (() "(" (identifier) "client" (,) "," (identifier) "status" ()) ")" (;) ";" (comment) "/*\n Possibly do something else after signaling next clients in the graph\n */" (comment) "/* End condition */" (if_statement) "if (status != 0)\n return 0;" (if) "if" (parenthesized_expression) "(status != 0)" (() "(" (binary_expression) "status != 0" (identifier) "status" (!=) "!=" (number_literal) "0" ()) ")" (return_statement) "return 0;" (return) "return" (number_literal) "0" (;) ";" (}) "}" (comment) "/* not reached*/" (return_statement) "return 0;" (return) "return" (number_literal) "0" (;) ";" (}) "}" (comment) "/*\nstatic void* jack_thread(void *arg)\n{\n jack_client_t* client = (jack_client_t*) arg;\n\n while (1) {\n jack_nframes_t frames;\n int status;\n // cycle 1\n frames = jack_cycle_wait (client);\n status = _process(frames);\n jack_cycle_signal (client, status);\n // cycle 2\n frames = jack_cycle_wait (client);\n status = _process(frames);\n jack_cycle_signal (client, status);\n // cycle 3\n frames = jack_cycle_wait (client);\n status = _process(frames);\n jack_cycle_signal (client, status);\n // cycle 4\n frames = jack_cycle_wait (client);\n status = _process(frames);\n jack_cycle_signal (client, status);\n }\n\n return 0;\n}\n*/" (comment) "/**\n * JACK calls this shutdown_callback if the server ever shuts down or\n * decides to disconnect the client.\n */" (function_definition) "static void\njack_shutdown (void *arg)\n{\n fprintf(stderr, "JACK shut down, exiting ...\n");\n exit (1);\n}" (storage_class_specifier) "static" (static) "static" (primitive_type) "void" (function_declarator) "jack_shutdown (void *arg)" (identifier) "jack_shutdown" (parameter_list) "(void *arg)" (() "(" (parameter_declaration) "void *arg" (primitive_type) "void" (pointer_declarator) "*arg" (*) "*" (identifier) "arg" ()) ")" (compound_statement) "{\n fprintf(stderr, "JACK shut down, exiting ...\n");\n exit (1);\n}" ({) "{" (expression_statement) "fprintf(stderr, "JACK shut down, exiting ...\n");" (call_expression) "fprintf(stderr, "JACK shut down, exiting ...\n")" (identifier) "fprintf" (argument_list) "(stderr, "JACK shut down, exiting ...\n")" (() "(" (identifier) "stderr" (,) "," (string_literal) ""JACK shut down, exiting ...\n"" (") """ (string_content) "JACK shut down, exiting ..." (escape_sequence) "\n" (") """ ()) ")" (;) ";" (expression_statement) "exit (1);" (call_expression) "exit (1)" (identifier) "exit" (argument_list) "(1)" (() "(" (number_literal) "1" ()) ")" (;) ";" (}) "}" (function_definition) "int\nmain (int argc, char *argv[])\n{\n const char **ports;\n const char *client_name;\n const char *server_name = NULL;\n jack_options_t options = JackNullOption;\n jack_status_t status;\n\n if (argc >= 2) { /* client name specified? */\n client_name = argv[1];\n if (argc >= 3) { /* server name specified? */\n server_name = argv[2];\n options |= JackServerName;\n }\n } else { /* use basename of argv[0] */\n client_name = strrchr(argv[0], '/');\n if (client_name == 0) {\n client_name = argv[0];\n } else {\n client_name++;\n }\n }\n\n /* open a client connection to the JACK server */\n\n client = jack_client_open (client_name, options, &status, server_name);\n if (client == NULL) {\n fprintf (stderr, "jack_client_open() failed, "\n "status = 0x%2.0x\n", status);\n if (status & JackServerFailed) {\n fprintf (stderr, "Unable to connect to JACK server\n");\n }\n exit (1);\n }\n if (status & JackServerStarted) {\n fprintf (stderr, "JACK server started\n");\n }\n if (status & JackNameNotUnique) {\n client_name = jack_get_client_name(client);\n fprintf (stderr, "unique name `%s' assigned\n", client_name);\n }\n\n /* tell the JACK server to call `process()' whenever\n there is work to be done.\n */\n if (jack_set_process_thread(client, jack_thread, client) < 0)\n exit(1);\n\n /* tell the JACK server to call `jack_shutdown()' if\n it ever shuts down, either entirely, or if it\n just decides to stop calling us.\n */\n\n jack_on_shutdown (client, jack_shutdown, 0);\n\n /* display the current sample rate.\n */\n\n printf ("engine sample rate: %" PRIu32 "\n",\n jack_get_sample_rate (client));\n\n /* create two ports */\n\n input_port = jack_port_register (client, "input",\n JACK_DEFAULT_AUDIO_TYPE,\n JackPortIsInput, 0);\n output_port = jack_port_register (client, "output",\n JACK_DEFAULT_AUDIO_TYPE,\n JackPortIsOutput, 0);\n\n if ((input_port == NULL) || (output_port == NULL)) {\n fprintf(stderr, "no more JACK ports available\n");\n exit (1);\n }\n\n /* Tell the JACK server that we are ready to roll. Our\n * process() callback will start running now. */\n\n if (jack_activate (client)) {\n fprintf (stderr, "cannot activate client");\n exit (1);\n }\n\n /* Connect the ports. You can't do this before the client is\n * activated, because we can't make connections to clients\n * that aren't running. Note the confusing (but necessary)\n * orientation of the driver backend ports: playback ports are\n * "input" to the backend, and capture ports are "output" from\n * it.\n */\n\n ports = jack_get_ports (client, NULL, NULL,\n JackPortIsPhysical|JackPortIsOutput);\n if (ports == NULL) {\n fprintf(stderr, "no physical capture ports\n");\n exit (1);\n }\n\n if (jack_connect (client, ports[0], jack_port_name (input_port))) {\n fprintf (stderr, "cannot connect input ports\n");\n }\n\n jack_free (ports);\n\n ports = jack_get_ports (client, NULL, NULL,\n JackPortIsPhysical|JackPortIsInput);\n if (ports == NULL) {\n fprintf(stderr, "no physical playback ports\n");\n exit (1);\n }\n\n if (jack_connect (client, jack_port_name (output_port), ports[0])) {\n fprintf (stderr, "cannot connect output ports\n");\n }\n\n jack_free (ports);\n\n /* install a signal handler to properly quits jack client */\n signal(SIGQUIT, signal_handler);\n signal(SIGTERM, signal_handler);\n signal(SIGHUP, signal_handler);\n signal(SIGINT, signal_handler);\n\n /* keep running until the transport stops */\n\n while (client_state != Exit) {\n sleep (1);\n }\n\n jack_client_close (client);\n exit (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 const char **ports;\n const char *client_name;\n const char *server_name = NULL;\n jack_options_t options = JackNullOption;\n jack_status_t status;\n\n if (argc >= 2) { /* client name specified? */\n client_name = argv[1];\n if (argc >= 3) { /* server name specified? */\n server_name = argv[2];\n options |= JackServerName;\n }\n } else { /* use basename of argv[0] */\n client_name = strrchr(argv[0], '/');\n if (client_name == 0) {\n client_name = argv[0];\n } else {\n client_name++;\n }\n }\n\n /* open a client connection to the JACK server */\n\n client = jack_client_open (client_name, options, &status, server_name);\n if (client == NULL) {\n fprintf (stderr, "jack_client_open() failed, "\n "status = 0x%2.0x\n", status);\n if (status & JackServerFailed) {\n fprintf (stderr, "Unable to connect to JACK server\n");\n }\n exit (1);\n }\n if (status & JackServerStarted) {\n fprintf (stderr, "JACK server started\n");\n }\n if (status & JackNameNotUnique) {\n client_name = jack_get_client_name(client);\n fprintf (stderr, "unique name `%s' assigned\n", client_name);\n }\n\n /* tell the JACK server to call `process()' whenever\n there is work to be done.\n */\n if (jack_set_process_thread(client, jack_thread, client) < 0)\n exit(1);\n\n /* tell the JACK server to call `jack_shutdown()' if\n it ever shuts down, either entirely, or if it\n just decides to stop calling us.\n */\n\n jack_on_shutdown (client, jack_shutdown, 0);\n\n /* display the current sample rate.\n */\n\n printf ("engine sample rate: %" PRIu32 "\n",\n jack_get_sample_rate (client));\n\n /* create two ports */\n\n input_port = jack_port_register (client, "input",\n JACK_DEFAULT_AUDIO_TYPE,\n JackPortIsInput, 0);\n output_port = jack_port_register (client, "output",\n JACK_DEFAULT_AUDIO_TYPE,\n JackPortIsOutput, 0);\n\n if ((input_port == NULL) || (output_port == NULL)) {\n fprintf(stderr, "no more JACK ports available\n");\n exit (1);\n }\n\n /* Tell the JACK server that we are ready to roll. Our\n * process() callback will start running now. */\n\n if (jack_activate (client)) {\n fprintf (stderr, "cannot activate client");\n exit (1);\n }\n\n /* Connect the ports. You can't do this before the client is\n * activated, because we can't make connections to clients\n * that aren't running. Note the confusing (but necessary)\n * orientation of the driver backend ports: playback ports are\n * "input" to the backend, and capture ports are "output" from\n * it.\n */\n\n ports = jack_get_ports (client, NULL, NULL,\n JackPortIsPhysical|JackPortIsOutput);\n if (ports == NULL) {\n fprintf(stderr, "no physical capture ports\n");\n exit (1);\n }\n\n if (jack_connect (client, ports[0], jack_port_name (input_port))) {\n fprintf (stderr, "cannot connect input ports\n");\n }\n\n jack_free (ports);\n\n ports = jack_get_ports (client, NULL, NULL,\n JackPortIsPhysical|JackPortIsInput);\n if (ports == NULL) {\n fprintf(stderr, "no physical playback ports\n");\n exit (1);\n }\n\n if (jack_connect (client, jack_port_name (output_port), ports[0])) {\n fprintf (stderr, "cannot connect output ports\n");\n }\n\n jack_free (ports);\n\n /* install a signal handler to properly quits jack client */\n signal(SIGQUIT, signal_handler);\n signal(SIGTERM, signal_handler);\n signal(SIGHUP, signal_handler);\n signal(SIGINT, signal_handler);\n\n /* keep running until the transport stops */\n\n while (client_state != Exit) {\n sleep (1);\n }\n\n jack_client_close (client);\n exit (0);\n}" ({) "{" (declaration) "const char **ports;" (type_qualifier) "const" (const) "const" (primitive_type) "char" (pointer_declarator) "**ports" (*) "*" (pointer_declarator) "*ports" (*) "*" (identifier) "ports" (;) ";" (declaration) "const char *client_name;" (type_qualifier) "const" (const) "const" (primitive_type) "char" (pointer_declarator) "*client_name" (*) "*" (identifier) "client_name" (;) ";" (declaration) "const char *server_name = NULL;" (type_qualifier) "const" (const) "const" (primitive_type) "char" (init_declarator) "*server_name = NULL" (pointer_declarator) "*server_name" (*) "*" (identifier) "server_name" (=) "=" (null) "NULL" (NULL) "NULL" (;) ";" (declaration) "jack_options_t options = JackNullOption;" (type_identifier) "jack_options_t" (init_declarator) "options = JackNullOption" (identifier) "options" (=) "=" (identifier) "JackNullOption" (;) ";" (declaration) "jack_status_t status;" (type_identifier) "jack_status_t" (identifier) "status" (;) ";" (if_statement) "if (argc >= 2) { /* client name specified? */\n client_name = argv[1];\n if (argc >= 3) { /* server name specified? */\n server_name = argv[2];\n options |= JackServerName;\n }\n } else { /* use basename of argv[0] */\n client_name = strrchr(argv[0], '/');\n if (client_name == 0) {\n client_name = argv[0];\n } else {\n client_name++;\n }\n }" (if) "if" (parenthesized_expression) "(argc >= 2)" (() "(" (binary_expression) "argc >= 2" (identifier) "argc" (>=) ">=" (number_literal) "2" ()) ")" (compound_statement) "{ /* client name specified? */\n client_name = argv[1];\n if (argc >= 3) { /* server name specified? */\n server_name = argv[2];\n options |= JackServerName;\n }\n }" ({) "{" (comment) "/* client name specified? */" (expression_statement) "client_name = argv[1];" (assignment_expression) "client_name = argv[1]" (identifier) "client_name" (=) "=" (subscript_expression) "argv[1]" (identifier) "argv" ([) "[" (number_literal) "1" (]) "]" (;) ";" (if_statement) "if (argc >= 3) { /* server name specified? */\n server_name = argv[2];\n options |= JackServerName;\n }" (if) "if" (parenthesized_expression) "(argc >= 3)" (() "(" (binary_expression) "argc >= 3" (identifier) "argc" (>=) ">=" (number_literal) "3" ()) ")" (compound_statement) "{ /* server name specified? */\n server_name = argv[2];\n options |= JackServerName;\n }" ({) "{" (comment) "/* server name specified? */" (expression_statement) "server_name = argv[2];" (assignment_expression) "server_name = argv[2]" (identifier) "server_name" (=) "=" (subscript_expression) "argv[2]" (identifier) "argv" ([) "[" (number_literal) "2" (]) "]" (;) ";" (expression_statement) "options |= JackServerName;" (assignment_expression) "options |= JackServerName" (identifier) "options" (|=) "|=" (identifier) "JackServerName" (;) ";" (}) "}" (}) "}" (else_clause) "else { /* use basename of argv[0] */\n client_name = strrchr(argv[0], '/');\n if (client_name == 0) {\n client_name = argv[0];\n } else {\n client_name++;\n }\n }" (else) "else" (compound_statement) "{ /* use basename of argv[0] */\n client_name = strrchr(argv[0], '/');\n if (client_name == 0) {\n client_name = argv[0];\n } else {\n client_name++;\n }\n }" ({) "{" (comment) "/* use basename of argv[0] */" (expression_statement) "client_name = strrchr(argv[0], '/');" (assignment_expression) "client_name = strrchr(argv[0], '/')" (identifier) "client_name" (=) "=" (call_expression) "strrchr(argv[0], '/')" (identifier) "strrchr" (argument_list) "(argv[0], '/')" (() "(" (subscript_expression) "argv[0]" (identifier) "argv" ([) "[" (number_literal) "0" (]) "]" (,) "," (char_literal) "'/'" (') "'" (character) "/" (') "'" ()) ")" (;) ";" (if_statement) "if (client_name == 0) {\n client_name = argv[0];\n } else {\n client_name++;\n }" (if) "if" (parenthesized_expression) "(client_name == 0)" (() "(" (binary_expression) "client_name == 0" (identifier) "client_name" (==) "==" (number_literal) "0" ()) ")" (compound_statement) "{\n client_name = argv[0];\n }" ({) "{" (expression_statement) "client_name = argv[0];" (assignment_expression) "client_name = argv[0]" (identifier) "client_name" (=) "=" (subscript_expression) "argv[0]" (identifier) "argv" ([) "[" (number_literal) "0" (]) "]" (;) ";" (}) "}" (else_clause) "else {\n client_name++;\n }" (else) "else" (compound_statement) "{\n client_name++;\n }" ({) "{" (expression_statement) "client_name++;" (update_expression) "client_name++" (identifier) "client_name" (++) "++" (;) ";" (}) "}" (}) "}" (comment) "/* open a client connection to the JACK server */" (expression_statement) "client = jack_client_open (client_name, options, &status, server_name);" (assignment_expression) "client = jack_client_open (client_name, options, &status, server_name)" (identifier) "client" (=) "=" (call_expression) "jack_client_open (client_name, options, &status, server_name)" (identifier) "jack_client_open" (argument_list) "(client_name, options, &status, server_name)" (() "(" (identifier) "client_name" (,) "," (identifier) "options" (,) "," (pointer_expression) "&status" (&) "&" (identifier) "status" (,) "," (identifier) "server_name" ()) ")" (;) ";" (if_statement) "if (client == NULL) {\n fprintf (stderr, "jack_client_open() failed, "\n "status = 0x%2.0x\n", status);\n if (status & JackServerFailed) {\n fprintf (stderr, "Unable to connect to JACK server\n");\n }\n exit (1);\n }" (if) "if" (parenthesized_expression) "(client == NULL)" (() "(" (binary_expression) "client == NULL" (identifier) "client" (==) "==" (null) "NULL" (NULL) "NULL" ()) ")" (compound_statement) "{\n fprintf (stderr, "jack_client_open() failed, "\n "status = 0x%2.0x\n", status);\n if (status & JackServerFailed) {\n fprintf (stderr, "Unable to connect to JACK server\n");\n }\n exit (1);\n }" ({) "{" (expression_statement) "fprintf (stderr, "jack_client_open() failed, "\n "status = 0x%2.0x\n", status);" (call_expression) "fprintf (stderr, "jack_client_open() failed, "\n "status = 0x%2.0x\n", status)" (identifier) "fprintf" (argument_list) "(stderr, "jack_client_open() failed, "\n "status = 0x%2.0x\n", status)" (() "(" (identifier) "stderr" (,) "," (concatenated_string) ""jack_client_open() failed, "\n "status = 0x%2.0x\n"" (string_literal) ""jack_client_open() failed, "" (") """ (string_content) "jack_client_open() failed, " (") """ (string_literal) ""status = 0x%2.0x\n"" (") """ (string_content) "status = 0x%2.0x" (escape_sequence) "\n" (") """ (,) "," (identifier) "status" ()) ")" (;) ";" (if_statement) "if (status & JackServerFailed) {\n fprintf (stderr, "Unable to connect to JACK server\n");\n }" (if) "if" (parenthesized_expression) "(status & JackServerFailed)" (() "(" (binary_expression) "status & JackServerFailed" (identifier) "status" (&) "&" (identifier) "JackServerFailed" ()) ")" (compound_statement) "{\n fprintf (stderr, "Unable to connect to JACK server\n");\n }" ({) "{" (expression_statement) "fprintf (stderr, "Unable to connect to JACK server\n");" (call_expression) "fprintf (stderr, "Unable to connect to JACK server\n")" (identifier) "fprintf" (argument_list) "(stderr, "Unable to connect to JACK server\n")" (() "(" (identifier) "stderr" (,) "," (string_literal) ""Unable to connect to JACK server\n"" (") """ (string_content) "Unable to connect to JACK server" (escape_sequence) "\n" (") """ ()) ")" (;) ";" (}) "}" (expression_statement) "exit (1);" (call_expression) "exit (1)" (identifier) "exit" (argument_list) "(1)" (() "(" (number_literal) "1" ()) ")" (;) ";" (}) "}" (if_statement) "if (status & JackServerStarted) {\n fprintf (stderr, "JACK server started\n");\n }" (if) "if" (parenthesized_expression) "(status & JackServerStarted)" (() "(" (binary_expression) "status & JackServerStarted" (identifier) "status" (&) "&" (identifier) "JackServerStarted" ()) ")" (compound_statement) "{\n fprintf (stderr, "JACK server started\n");\n }" ({) "{" (expression_statement) "fprintf (stderr, "JACK server started\n");" (call_expression) "fprintf (stderr, "JACK server started\n")" (identifier) "fprintf" (argument_list) "(stderr, "JACK server started\n")" (() "(" (identifier) "stderr" (,) "," (string_literal) ""JACK server started\n"" (") """ (string_content) "JACK server started" (escape_sequence) "\n" (") """ ()) ")" (;) ";" (}) "}" (if_statement) "if (status & JackNameNotUnique) {\n client_name = jack_get_client_name(client);\n fprintf (stderr, "unique name `%s' assigned\n", client_name);\n }" (if) "if" (parenthesized_expression) "(status & JackNameNotUnique)" (() "(" (binary_expression) "status & JackNameNotUnique" (identifier) "status" (&) "&" (identifier) "JackNameNotUnique" ()) ")" (compound_statement) "{\n client_name = jack_get_client_name(client);\n fprintf (stderr, "unique name `%s' assigned\n", client_name);\n }" ({) "{" (expression_statement) "client_name = jack_get_client_name(client);" (assignment_expression) "client_name = jack_get_client_name(client)" (identifier) "client_name" (=) "=" (call_expression) "jack_get_client_name(client)" (identifier) "jack_get_client_name" (argument_list) "(client)" (() "(" (identifier) "client" ()) ")" (;) ";" (expression_statement) "fprintf (stderr, "unique name `%s' assigned\n", client_name);" (call_expression) "fprintf (stderr, "unique name `%s' assigned\n", client_name)" (identifier) "fprintf" (argument_list) "(stderr, "unique name `%s' assigned\n", client_name)" (() "(" (identifier) "stderr" (,) "," (string_literal) ""unique name `%s' assigned\n"" (") """ (string_content) "unique name `%s' assigned" (escape_sequence) "\n" (") """ (,) "," (identifier) "client_name" ()) ")" (;) ";" (}) "}" (comment) "/* tell the JACK server to call `process()' whenever\n there is work to be done.\n */" (if_statement) "if (jack_set_process_thread(client, jack_thread, client) < 0)\n exit(1);" (if) "if" (parenthesized_expression) "(jack_set_process_thread(client, jack_thread, client) < 0)" (() "(" (binary_expression) "jack_set_process_thread(client, jack_thread, client) < 0" (call_expression) "jack_set_process_thread(client, jack_thread, client)" (identifier) "jack_set_process_thread" (argument_list) "(client, jack_thread, client)" (() "(" (identifier) "client" (,) "," (identifier) "jack_thread" (,) "," (identifier) "client" ()) ")" (<) "<" (number_literal) "0" ()) ")" (expression_statement) "exit(1);" (call_expression) "exit(1)" (identifier) "exit" (argument_list) "(1)" (() "(" (number_literal) "1" ()) ")" (;) ";" (comment) "/* tell the JACK server to call `jack_shutdown()' if\n it ever shuts down, either entirely, or if it\n just decides to stop calling us.\n */" (expression_statement) "jack_on_shutdown (client, jack_shutdown, 0);" (call_expression) "jack_on_shutdown (client, jack_shutdown, 0)" (identifier) "jack_on_shutdown" (argument_list) "(client, jack_shutdown, 0)" (() "(" (identifier) "client" (,) "," (identifier) "jack_shutdown" (,) "," (number_literal) "0" ()) ")" (;) ";" (comment) "/* display the current sample rate.\n */" (expression_statement) "printf ("engine sample rate: %" PRIu32 "\n",\n jack_get_sample_rate (client));" (call_expression) "printf ("engine sample rate: %" PRIu32 "\n",\n jack_get_sample_rate (client))" (identifier) "printf" (argument_list) "("engine sample rate: %" PRIu32 "\n",\n jack_get_sample_rate (client))" (() "(" (concatenated_string) ""engine sample rate: %" PRIu32 "\n"" (string_literal) ""engine sample rate: %"" (") """ (string_content) "engine sample rate: %" (") """ (identifier) "PRIu32" (string_literal) ""\n"" (") """ (escape_sequence) "\n" (") """ (,) "," (call_expression) "jack_get_sample_rate (client)" (identifier) "jack_get_sample_rate" (argument_list) "(client)" (() "(" (identifier) "client" ()) ")" ()) ")" (;) ";" (comment) "/* create two ports */" (expression_statement) "input_port = jack_port_register (client, "input",\n JACK_DEFAULT_AUDIO_TYPE,\n JackPortIsInput, 0);" (assignment_expression) "input_port = jack_port_register (client, "input",\n JACK_DEFAULT_AUDIO_TYPE,\n JackPortIsInput, 0)" (identifier) "input_port" (=) "=" (call_expression) "jack_port_register (client, "input",\n JACK_DEFAULT_AUDIO_TYPE,\n JackPortIsInput, 0)" (identifier) "jack_port_register" (argument_list) "(client, "input",\n JACK_DEFAULT_AUDIO_TYPE,\n JackPortIsInput, 0)" (() "(" (identifier) "client" (,) "," (string_literal) ""input"" (") """ (string_content) "input" (") """ (,) "," (identifier) "JACK_DEFAULT_AUDIO_TYPE" (,) "," (identifier) "JackPortIsInput" (,) "," (number_literal) "0" ()) ")" (;) ";" (expression_statement) "output_port = jack_port_register (client, "output",\n JACK_DEFAULT_AUDIO_TYPE,\n JackPortIsOutput, 0);" (assignment_expression) "output_port = jack_port_register (client, "output",\n JACK_DEFAULT_AUDIO_TYPE,\n JackPortIsOutput, 0)" (identifier) "output_port" (=) "=" (call_expression) "jack_port_register (client, "output",\n JACK_DEFAULT_AUDIO_TYPE,\n JackPortIsOutput, 0)" (identifier) "jack_port_register" (argument_list) "(client, "output",\n JACK_DEFAULT_AUDIO_TYPE,\n JackPortIsOutput, 0)" (() "(" (identifier) "client" (,) "," (string_literal) ""output"" (") """ (string_content) "output" (") """ (,) "," (identifier) "JACK_DEFAULT_AUDIO_TYPE" (,) "," (identifier) "JackPortIsOutput" (,) "," (number_literal) "0" ()) ")" (;) ";" (if_statement) "if ((input_port == NULL) || (output_port == NULL)) {\n fprintf(stderr, "no more JACK ports available\n");\n exit (1);\n }" (if) "if" (parenthesized_expression) "((input_port == NULL) || (output_port == NULL))" (() "(" (binary_expression) "(input_port == NULL) || (output_port == NULL)" (parenthesized_expression) "(input_port == NULL)" (() "(" (binary_expression) "input_port == NULL" (identifier) "input_port" (==) "==" (null) "NULL" (NULL) "NULL" ()) ")" (||) "||" (parenthesized_expression) "(output_port == NULL)" (() "(" (binary_expression) "output_port == NULL" (identifier) "output_port" (==) "==" (null) "NULL" (NULL) "NULL" ()) ")" ()) ")" (compound_statement) "{\n fprintf(stderr, "no more JACK ports available\n");\n exit (1);\n }" ({) "{" (expression_statement) "fprintf(stderr, "no more JACK ports available\n");" (call_expression) "fprintf(stderr, "no more JACK ports available\n")" (identifier) "fprintf" (argument_list) "(stderr, "no more JACK ports available\n")" (() "(" (identifier) "stderr" (,) "," (string_literal) ""no more JACK ports available\n"" (") """ (string_content) "no more JACK ports available" (escape_sequence) "\n" (") """ ()) ")" (;) ";" (expression_statement) "exit (1);" (call_expression) "exit (1)" (identifier) "exit" (argument_list) "(1)" (() "(" (number_literal) "1" ()) ")" (;) ";" (}) "}" (comment) "/* Tell the JACK server that we are ready to roll. Our\n * process() callback will start running now. */" (if_statement) "if (jack_activate (client)) {\n fprintf (stderr, "cannot activate client");\n exit (1);\n }" (if) "if" (parenthesized_expression) "(jack_activate (client))" (() "(" (call_expression) "jack_activate (client)" (identifier) "jack_activate" (argument_list) "(client)" (() "(" (identifier) "client" ()) ")" ()) ")" (compound_statement) "{\n fprintf (stderr, "cannot activate client");\n exit (1);\n }" ({) "{" (expression_statement) "fprintf (stderr, "cannot activate client");" (call_expression) "fprintf (stderr, "cannot activate client")" (identifier) "fprintf" (argument_list) "(stderr, "cannot activate client")" (() "(" (identifier) "stderr" (,) "," (string_literal) ""cannot activate client"" (") """ (string_content) "cannot activate client" (") """ ()) ")" (;) ";" (expression_statement) "exit (1);" (call_expression) "exit (1)" (identifier) "exit" (argument_list) "(1)" (() "(" (number_literal) "1" ()) ")" (;) ";" (}) "}" (comment) "/* Connect the ports. You can't do this before the client is\n * activated, because we can't make connections to clients\n * that aren't running. Note the confusing (but necessary)\n * orientation of the driver backend ports: playback ports are\n * "input" to the backend, and capture ports are "output" from\n * it.\n */" (expression_statement) "ports = jack_get_ports (client, NULL, NULL,\n JackPortIsPhysical|JackPortIsOutput);" (assignment_expression) "ports = jack_get_ports (client, NULL, NULL,\n JackPortIsPhysical|JackPortIsOutput)" (identifier) "ports" (=) "=" (call_expression) "jack_get_ports (client, NULL, NULL,\n JackPortIsPhysical|JackPortIsOutput)" (identifier) "jack_get_ports" (argument_list) "(client, NULL, NULL,\n JackPortIsPhysical|JackPortIsOutput)" (() "(" (identifier) "client" (,) "," (null) "NULL" (NULL) "NULL" (,) "," (null) "NULL" (NULL) "NULL" (,) "," (binary_expression) "JackPortIsPhysical|JackPortIsOutput" (identifier) "JackPortIsPhysical" (|) "|" (identifier) "JackPortIsOutput" ()) ")" (;) ";" (if_statement) "if (ports == NULL) {\n fprintf(stderr, "no physical capture ports\n");\n exit (1);\n }" (if) "if" (parenthesized_expression) "(ports == NULL)" (() "(" (binary_expression) "ports == NULL" (identifier) "ports" (==) "==" (null) "NULL" (NULL) "NULL" ()) ")" (compound_statement) "{\n fprintf(stderr, "no physical capture ports\n");\n exit (1);\n }" ({) "{" (expression_statement) "fprintf(stderr, "no physical capture ports\n");" (call_expression) "fprintf(stderr, "no physical capture ports\n")" (identifier) "fprintf" (argument_list) "(stderr, "no physical capture ports\n")" (() "(" (identifier) "stderr" (,) "," (string_literal) ""no physical capture ports\n"" (") """ (string_content) "no physical capture ports" (escape_sequence) "\n" (") """ ()) ")" (;) ";" (expression_statement) "exit (1);" (call_expression) "exit (1)" (identifier) "exit" (argument_list) "(1)" (() "(" (number_literal) "1" ()) ")" (;) ";" (}) "}" (if_statement) "if (jack_connect (client, ports[0], jack_port_name (input_port))) {\n fprintf (stderr, "cannot connect input ports\n");\n }" (if) "if" (parenthesized_expression) "(jack_connect (client, ports[0], jack_port_name (input_port)))" (() "(" (call_expression) "jack_connect (client, ports[0], jack_port_name (input_port))" (identifier) "jack_connect" (argument_list) "(client, ports[0], jack_port_name (input_port))" (() "(" (identifier) "client" (,) "," (subscript_expression) "ports[0]" (identifier) "ports" ([) "[" (number_literal) "0" (]) "]" (,) "," (call_expression) "jack_port_name (input_port)" (identifier) "jack_port_name" (argument_list) "(input_port)" (() "(" (identifier) "input_port" ()) ")" ()) ")" ()) ")" (compound_statement) "{\n fprintf (stderr, "cannot connect input ports\n");\n }" ({) "{" (expression_statement) "fprintf (stderr, "cannot connect input ports\n");" (call_expression) "fprintf (stderr, "cannot connect input ports\n")" (identifier) "fprintf" (argument_list) "(stderr, "cannot connect input ports\n")" (() "(" (identifier) "stderr" (,) "," (string_literal) ""cannot connect input ports\n"" (") """ (string_content) "cannot connect input ports" (escape_sequence) "\n" (") """ ()) ")" (;) ";" (}) "}" (expression_statement) "jack_free (ports);" (call_expression) "jack_free (ports)" (identifier) "jack_free" (argument_list) "(ports)" (() "(" (identifier) "ports" ()) ")" (;) ";" (expression_statement) "ports = jack_get_ports (client, NULL, NULL,\n JackPortIsPhysical|JackPortIsInput);" (assignment_expression) "ports = jack_get_ports (client, NULL, NULL,\n JackPortIsPhysical|JackPortIsInput)" (identifier) "ports" (=) "=" (call_expression) "jack_get_ports (client, NULL, NULL,\n JackPortIsPhysical|JackPortIsInput)" (identifier) "jack_get_ports" (argument_list) "(client, NULL, NULL,\n JackPortIsPhysical|JackPortIsInput)" (() "(" (identifier) "client" (,) "," (null) "NULL" (NULL) "NULL" (,) "," (null) "NULL" (NULL) "NULL" (,) "," (binary_expression) "JackPortIsPhysical|JackPortIsInput" (identifier) "JackPortIsPhysical" (|) "|" (identifier) "JackPortIsInput" ()) ")" (;) ";" (if_statement) "if (ports == NULL) {\n fprintf(stderr, "no physical playback ports\n");\n exit (1);\n }" (if) "if" (parenthesized_expression) "(ports == NULL)" (() "(" (binary_expression) "ports == NULL" (identifier) "ports" (==) "==" (null) "NULL" (NULL) "NULL" ()) ")" (compound_statement) "{\n fprintf(stderr, "no physical playback ports\n");\n exit (1);\n }" ({) "{" (expression_statement) "fprintf(stderr, "no physical playback ports\n");" (call_expression) "fprintf(stderr, "no physical playback ports\n")" (identifier) "fprintf" (argument_list) "(stderr, "no physical playback ports\n")" (() "(" (identifier) "stderr" (,) "," (string_literal) ""no physical playback ports\n"" (") """ (string_content) "no physical playback ports" (escape_sequence) "\n" (") """ ()) ")" (;) ";" (expression_statement) "exit (1);" (call_expression) "exit (1)" (identifier) "exit" (argument_list) "(1)" (() "(" (number_literal) "1" ()) ")" (;) ";" (}) "}" (if_statement) "if (jack_connect (client, jack_port_name (output_port), ports[0])) {\n fprintf (stderr, "cannot connect output ports\n");\n }" (if) "if" (parenthesized_expression) "(jack_connect (client, jack_port_name (output_port), ports[0]))" (() "(" (call_expression) "jack_connect (client, jack_port_name (output_port), ports[0])" (identifier) "jack_connect" (argument_list) "(client, jack_port_name (output_port), ports[0])" (() "(" (identifier) "client" (,) "," (call_expression) "jack_port_name (output_port)" (identifier) "jack_port_name" (argument_list) "(output_port)" (() "(" (identifier) "output_port" ()) ")" (,) "," (subscript_expression) "ports[0]" (identifier) "ports" ([) "[" (number_literal) "0" (]) "]" ()) ")" ()) ")" (compound_statement) "{\n fprintf (stderr, "cannot connect output ports\n");\n }" ({) "{" (expression_statement) "fprintf (stderr, "cannot connect output ports\n");" (call_expression) "fprintf (stderr, "cannot connect output ports\n")" (identifier) "fprintf" (argument_list) "(stderr, "cannot connect output ports\n")" (() "(" (identifier) "stderr" (,) "," (string_literal) ""cannot connect output ports\n"" (") """ (string_content) "cannot connect output ports" (escape_sequence) "\n" (") """ ()) ")" (;) ";" (}) "}" (expression_statement) "jack_free (ports);" (call_expression) "jack_free (ports)" (identifier) "jack_free" (argument_list) "(ports)" (() "(" (identifier) "ports" ()) ")" (;) ";" (comment) "/* install a signal handler to properly quits jack client */" (expression_statement) "signal(SIGQUIT, signal_handler);" (call_expression) "signal(SIGQUIT, signal_handler)" (identifier) "signal" (argument_list) "(SIGQUIT, signal_handler)" (() "(" (identifier) "SIGQUIT" (,) "," (identifier) "signal_handler" ()) ")" (;) ";" (expression_statement) "signal(SIGTERM, signal_handler);" (call_expression) "signal(SIGTERM, signal_handler)" (identifier) "signal" (argument_list) "(SIGTERM, signal_handler)" (() "(" (identifier) "SIGTERM" (,) "," (identifier) "signal_handler" ()) ")" (;) ";" (expression_statement) "signal(SIGHUP, signal_handler);" (call_expression) "signal(SIGHUP, signal_handler)" (identifier) "signal" (argument_list) "(SIGHUP, signal_handler)" (() "(" (identifier) "SIGHUP" (,) "," (identifier) "signal_handler" ()) ")" (;) ";" (expression_statement) "signal(SIGINT, signal_handler);" (call_expression) "signal(SIGINT, signal_handler)" (identifier) "signal" (argument_list) "(SIGINT, signal_handler)" (() "(" (identifier) "SIGINT" (,) "," (identifier) "signal_handler" ()) ")" (;) ";" (comment) "/* keep running until the transport stops */" (while_statement) "while (client_state != Exit) {\n sleep (1);\n }" (while) "while" (parenthesized_expression) "(client_state != Exit)" (() "(" (binary_expression) "client_state != Exit" (identifier) "client_state" (!=) "!=" (identifier) "Exit" ()) ")" (compound_statement) "{\n sleep (1);\n }" ({) "{" (expression_statement) "sleep (1);" (call_expression) "sleep (1)" (identifier) "sleep" (argument_list) "(1)" (() "(" (number_literal) "1" ()) ")" (;) ";" (}) "}" (expression_statement) "jack_client_close (client);" (call_expression) "jack_client_close (client)" (identifier) "jack_client_close" (argument_list) "(client)" (() "(" (identifier) "client" ()) ")" (;) ";" (expression_statement) "exit (0);" (call_expression) "exit (0)" (identifier) "exit" (argument_list) "(0)" (() "(" (number_literal) "0" ()) ")" (;) ";" (}) "}"
1,210
0
{"language": "c", "success": true, "metadata": {"lines": 216, "avg_line_length": 27.39, "nodes": 659, "errors": 0, "source_hash": "d8a03434056f36c759b3ed3c3b66698f6d2dde7752f7f023a41e76c5bb841a86", "categorized_nodes": 467}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#include <stdio.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": "<stdio.h>", "parent": 0, "children": [], "start_point": {"row": 6, "column": 9}, "end_point": {"row": 6, "column": 18}}, {"id": 3, "type": "preproc_include", "text": "#include <errno.h>\n", "parent": null, "children": [4, 5], "start_point": {"row": 7, "column": 0}, "end_point": {"row": 8, "column": 0}}, {"id": 4, "type": "#include", "text": "#include", "parent": 3, "children": [], "start_point": {"row": 7, "column": 0}, "end_point": {"row": 7, "column": 8}}, {"id": 5, "type": "system_lib_string", "text": "<errno.h>", "parent": 3, "children": [], "start_point": {"row": 7, "column": 9}, "end_point": {"row": 7, "column": 18}}, {"id": 6, "type": "preproc_include", "text": "#include <unistd.h>\n", "parent": null, "children": [7, 8], "start_point": {"row": 8, "column": 0}, "end_point": {"row": 9, "column": 0}}, {"id": 7, "type": "#include", "text": "#include", "parent": 6, "children": [], "start_point": {"row": 8, "column": 0}, "end_point": {"row": 8, "column": 8}}, {"id": 8, "type": "system_lib_string", "text": "<unistd.h>", "parent": 6, "children": [], "start_point": {"row": 8, "column": 9}, "end_point": {"row": 8, "column": 19}}, {"id": 9, "type": "preproc_include", "text": "#include <stdlib.h>\n", "parent": null, "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": "system_lib_string", "text": "<stdlib.h>", "parent": 9, "children": [], "start_point": {"row": 9, "column": 9}, "end_point": {"row": 9, "column": 19}}, {"id": 12, "type": "preproc_include", "text": "#include <string.h>\n", "parent": null, "children": [13, 14], "start_point": {"row": 10, "column": 0}, "end_point": {"row": 11, "column": 0}}, {"id": 13, "type": "#include", "text": "#include", "parent": 12, "children": [], "start_point": {"row": 10, "column": 0}, "end_point": {"row": 10, "column": 8}}, {"id": 14, "type": "system_lib_string", "text": "<string.h>", "parent": 12, "children": [], "start_point": {"row": 10, "column": 9}, "end_point": {"row": 10, "column": 19}}, {"id": 15, "type": "preproc_include", "text": "#include <jack/jack.h>\n", "parent": null, "children": [16, 17], "start_point": {"row": 12, "column": 0}, "end_point": {"row": 13, "column": 0}}, {"id": 16, "type": "#include", "text": "#include", "parent": 15, "children": [], "start_point": {"row": 12, "column": 0}, "end_point": {"row": 12, "column": 8}}, {"id": 17, "type": "system_lib_string", "text": "<jack/jack.h>", "parent": 15, "children": [], "start_point": {"row": 12, "column": 9}, "end_point": {"row": 12, "column": 22}}, {"id": 18, "type": "declaration", "text": "jack_port_t *input_port;", "parent": null, "children": [19, 20], "start_point": {"row": 14, "column": 0}, "end_point": {"row": 14, "column": 24}}, {"id": 19, "type": "type_identifier", "text": "jack_port_t", "parent": 18, "children": [], "start_point": {"row": 14, "column": 0}, "end_point": {"row": 14, "column": 11}}, {"id": 20, "type": "pointer_declarator", "text": "*input_port", "parent": 18, "children": [21, 22], "start_point": {"row": 14, "column": 12}, "end_point": {"row": 14, "column": 23}}, {"id": 21, "type": "*", "text": "*", "parent": 20, "children": [], "start_point": {"row": 14, "column": 12}, "end_point": {"row": 14, "column": 13}}, {"id": 22, "type": "identifier", "text": "input_port", "parent": 20, "children": [], "start_point": {"row": 14, "column": 13}, "end_point": {"row": 14, "column": 23}}, {"id": 23, "type": "declaration", "text": "jack_port_t *output_port;", "parent": null, "children": [24, 25], "start_point": {"row": 15, "column": 0}, "end_point": {"row": 15, "column": 25}}, {"id": 24, "type": "type_identifier", "text": "jack_port_t", "parent": 23, "children": [], "start_point": {"row": 15, "column": 0}, "end_point": {"row": 15, "column": 11}}, {"id": 25, "type": "pointer_declarator", "text": "*output_port", "parent": 23, "children": [26, 27], "start_point": {"row": 15, "column": 12}, "end_point": {"row": 15, "column": 24}}, {"id": 26, "type": "*", "text": "*", "parent": 25, "children": [], "start_point": {"row": 15, "column": 12}, "end_point": {"row": 15, "column": 13}}, {"id": 27, "type": "identifier", "text": "output_port", "parent": 25, "children": [], "start_point": {"row": 15, "column": 13}, "end_point": {"row": 15, "column": 24}}, {"id": 28, "type": "declaration", "text": "jack_client_t *client;", "parent": null, "children": [29, 30], "start_point": {"row": 16, "column": 0}, "end_point": {"row": 16, "column": 22}}, {"id": 29, "type": "type_identifier", "text": "jack_client_t", "parent": 28, "children": [], "start_point": {"row": 16, "column": 0}, "end_point": {"row": 16, "column": 13}}, {"id": 30, "type": "pointer_declarator", "text": "*client", "parent": 28, "children": [31, 32], "start_point": {"row": 16, "column": 14}, "end_point": {"row": 16, "column": 21}}, {"id": 31, "type": "*", "text": "*", "parent": 30, "children": [], "start_point": {"row": 16, "column": 14}, "end_point": {"row": 16, "column": 15}}, {"id": 32, "type": "identifier", "text": "client", "parent": 30, "children": [], "start_point": {"row": 16, "column": 15}, "end_point": {"row": 16, "column": 21}}, {"id": 33, "type": "declaration", "text": "volatile enum {\n\tInit,\n\tRun,\n\tExit\n} client_state = Init;", "parent": null, "children": [34, 36, 45], "start_point": {"row": 19, "column": 0}, "end_point": {"row": 23, "column": 22}}, {"id": 34, "type": "type_qualifier", "text": "volatile", "parent": 33, "children": [35], "start_point": {"row": 19, "column": 0}, "end_point": {"row": 19, "column": 8}}, {"id": 35, "type": "volatile", "text": "volatile", "parent": 34, "children": [], "start_point": {"row": 19, "column": 0}, "end_point": {"row": 19, "column": 8}}, {"id": 36, "type": "enum_specifier", "text": "enum {\n\tInit,\n\tRun,\n\tExit\n}", "parent": 33, "children": [37, 38], "start_point": {"row": 19, "column": 9}, "end_point": {"row": 23, "column": 1}}, {"id": 37, "type": "enum", "text": "enum", "parent": 36, "children": [], "start_point": {"row": 19, "column": 9}, "end_point": {"row": 19, "column": 13}}, {"id": 38, "type": "enumerator_list", "text": "{\n\tInit,\n\tRun,\n\tExit\n}", "parent": 36, "children": [39, 41, 43], "start_point": {"row": 19, "column": 14}, "end_point": {"row": 23, "column": 1}}, {"id": 39, "type": "enumerator", "text": "Init", "parent": 38, "children": [40], "start_point": {"row": 20, "column": 1}, "end_point": {"row": 20, "column": 5}}, {"id": 40, "type": "identifier", "text": "Init", "parent": 39, "children": [], "start_point": {"row": 20, "column": 1}, "end_point": {"row": 20, "column": 5}}, {"id": 41, "type": "enumerator", "text": "Run", "parent": 38, "children": [42], "start_point": {"row": 21, "column": 1}, "end_point": {"row": 21, "column": 4}}, {"id": 42, "type": "identifier", "text": "Run", "parent": 41, "children": [], "start_point": {"row": 21, "column": 1}, "end_point": {"row": 21, "column": 4}}, {"id": 43, "type": "enumerator", "text": "Exit", "parent": 38, "children": [44], "start_point": {"row": 22, "column": 1}, "end_point": {"row": 22, "column": 5}}, {"id": 44, "type": "identifier", "text": "Exit", "parent": 43, "children": [], "start_point": {"row": 22, "column": 1}, "end_point": {"row": 22, "column": 5}}, {"id": 45, "type": "init_declarator", "text": "client_state = Init", "parent": 33, "children": [46, 47, 48], "start_point": {"row": 23, "column": 2}, "end_point": {"row": 23, "column": 21}}, {"id": 46, "type": "identifier", "text": "client_state", "parent": 45, "children": [], "start_point": {"row": 23, "column": 2}, "end_point": {"row": 23, "column": 14}}, {"id": 47, "type": "=", "text": "=", "parent": 45, "children": [], "start_point": {"row": 23, "column": 15}, "end_point": {"row": 23, "column": 16}}, {"id": 48, "type": "identifier", "text": "Init", "parent": 45, "children": [], "start_point": {"row": 23, "column": 17}, "end_point": {"row": 23, "column": 21}}, {"id": 49, "type": "function_definition", "text": "static void signal_handler(int sig)\n{\n\tjack_client_close(client);\n\tfprintf(stderr, \"signal received, exiting ...\\n\");\n\texit(0);\n}", "parent": null, "children": [50, 51], "start_point": {"row": 25, "column": 0}, "end_point": {"row": 30, "column": 1}}, {"id": 50, "type": "primitive_type", "text": "void", "parent": 49, "children": [], "start_point": {"row": 25, "column": 7}, "end_point": {"row": 25, "column": 11}}, {"id": 51, "type": "function_declarator", "text": "signal_handler(int sig)", "parent": 49, "children": [52, 53], "start_point": {"row": 25, "column": 12}, "end_point": {"row": 25, "column": 35}}, {"id": 52, "type": "identifier", "text": "signal_handler", "parent": 51, "children": [], "start_point": {"row": 25, "column": 12}, "end_point": {"row": 25, "column": 26}}, {"id": 53, "type": "parameter_list", "text": "(int sig)", "parent": 51, "children": [54], "start_point": {"row": 25, "column": 26}, "end_point": {"row": 25, "column": 35}}, {"id": 54, "type": "parameter_declaration", "text": "int sig", "parent": 53, "children": [55, 56], "start_point": {"row": 25, "column": 27}, "end_point": {"row": 25, "column": 34}}, {"id": 55, "type": "primitive_type", "text": "int", "parent": 54, "children": [], "start_point": {"row": 25, "column": 27}, "end_point": {"row": 25, "column": 30}}, {"id": 56, "type": "identifier", "text": "sig", "parent": 54, "children": [], "start_point": {"row": 25, "column": 31}, "end_point": {"row": 25, "column": 34}}, {"id": 57, "type": "call_expression", "text": "jack_client_close(client)", "parent": 49, "children": [58, 59], "start_point": {"row": 27, "column": 1}, "end_point": {"row": 27, "column": 26}}, {"id": 58, "type": "identifier", "text": "jack_client_close", "parent": 57, "children": [], "start_point": {"row": 27, "column": 1}, "end_point": {"row": 27, "column": 18}}, {"id": 59, "type": "argument_list", "text": "(client)", "parent": 57, "children": [60], "start_point": {"row": 27, "column": 18}, "end_point": {"row": 27, "column": 26}}, {"id": 60, "type": "identifier", "text": "client", "parent": 59, "children": [], "start_point": {"row": 27, "column": 19}, "end_point": {"row": 27, "column": 25}}, {"id": 61, "type": "call_expression", "text": "fprintf(stderr, \"signal received, exiting ...\\n\")", "parent": 49, "children": [62, 63], "start_point": {"row": 28, "column": 1}, "end_point": {"row": 28, "column": 50}}, {"id": 62, "type": "identifier", "text": "fprintf", "parent": 61, "children": [], "start_point": {"row": 28, "column": 1}, "end_point": {"row": 28, "column": 8}}, {"id": 63, "type": "argument_list", "text": "(stderr, \"signal received, exiting ...\\n\")", "parent": 61, "children": [64, 65], "start_point": {"row": 28, "column": 8}, "end_point": {"row": 28, "column": 50}}, {"id": 64, "type": "identifier", "text": "stderr", "parent": 63, "children": [], "start_point": {"row": 28, "column": 9}, "end_point": {"row": 28, "column": 15}}, {"id": 65, "type": "string_literal", "text": "\"signal received, exiting ...\\n\"", "parent": 63, "children": [66], "start_point": {"row": 28, "column": 17}, "end_point": {"row": 28, "column": 49}}, {"id": 66, "type": "escape_sequence", "text": "\\n", "parent": 65, "children": [], "start_point": {"row": 28, "column": 46}, "end_point": {"row": 28, "column": 48}}, {"id": 67, "type": "call_expression", "text": "exit(0)", "parent": 49, "children": [68, 69], "start_point": {"row": 29, "column": 1}, "end_point": {"row": 29, "column": 8}}, {"id": 68, "type": "identifier", "text": "exit", "parent": 67, "children": [], "start_point": {"row": 29, "column": 1}, "end_point": {"row": 29, "column": 5}}, {"id": 69, "type": "argument_list", "text": "(0)", "parent": 67, "children": [70], "start_point": {"row": 29, "column": 5}, "end_point": {"row": 29, "column": 8}}, {"id": 70, "type": "number_literal", "text": "0", "parent": 69, "children": [], "start_point": {"row": 29, "column": 6}, "end_point": {"row": 29, "column": 7}}, {"id": 71, "type": "function_definition", "text": "static int\n_process (jack_nframes_t nframes)\n{\n\tjack_default_audio_sample_t *in, *out;\n\tjack_transport_state_t ts = jack_transport_query(client, NULL);\n\n\tif (ts == JackTransportRolling) {\n\n\t\tif (client_state == Init)\n\t\t\tclient_state = Run;\n\n\t\tin = jack_port_get_buffer (input_port, nframes);\n\t\tout = jack_port_get_buffer (output_port, nframes);\n\t\tmemcpy (out, in,\n\t\t\tsizeof (jack_default_audio_sample_t) * nframes);\n\n\t} else if (ts == JackTransportStopped) {\n\n\t\tif (client_state == Run) {\n\t\t\tclient_state = Exit;\n\t\t\treturn -1; // to stop the thread\n\t\t}\n\t}\n\n\treturn 0;\n}", "parent": null, "children": [72, 73], "start_point": {"row": 39, "column": 0}, "end_point": {"row": 64, "column": 1}}, {"id": 72, "type": "primitive_type", "text": "int", "parent": 71, "children": [], "start_point": {"row": 39, "column": 7}, "end_point": {"row": 39, "column": 10}}, {"id": 73, "type": "function_declarator", "text": "_process (jack_nframes_t nframes)", "parent": 71, "children": [74, 75], "start_point": {"row": 40, "column": 0}, "end_point": {"row": 40, "column": 33}}, {"id": 74, "type": "identifier", "text": "_process", "parent": 73, "children": [], "start_point": {"row": 40, "column": 0}, "end_point": {"row": 40, "column": 8}}, {"id": 75, "type": "parameter_list", "text": "(jack_nframes_t nframes)", "parent": 73, "children": [76], "start_point": {"row": 40, "column": 9}, "end_point": {"row": 40, "column": 33}}, {"id": 76, "type": "parameter_declaration", "text": "jack_nframes_t nframes", "parent": 75, "children": [77, 78], "start_point": {"row": 40, "column": 10}, "end_point": {"row": 40, "column": 32}}, {"id": 77, "type": "type_identifier", "text": "jack_nframes_t", "parent": 76, "children": [], "start_point": {"row": 40, "column": 10}, "end_point": {"row": 40, "column": 24}}, {"id": 78, "type": "identifier", "text": "nframes", "parent": 76, "children": [], "start_point": {"row": 40, "column": 25}, "end_point": {"row": 40, "column": 32}}, {"id": 79, "type": "declaration", "text": "jack_default_audio_sample_t *in, *out;", "parent": 71, "children": [80, 81, 84], "start_point": {"row": 42, "column": 1}, "end_point": {"row": 42, "column": 39}}, {"id": 80, "type": "type_identifier", "text": "jack_default_audio_sample_t", "parent": 79, "children": [], "start_point": {"row": 42, "column": 1}, "end_point": {"row": 42, "column": 28}}, {"id": 81, "type": "pointer_declarator", "text": "*in", "parent": 79, "children": [82, 83], "start_point": {"row": 42, "column": 29}, "end_point": {"row": 42, "column": 32}}, {"id": 82, "type": "*", "text": "*", "parent": 81, "children": [], "start_point": {"row": 42, "column": 29}, "end_point": {"row": 42, "column": 30}}, {"id": 83, "type": "identifier", "text": "in", "parent": 81, "children": [], "start_point": {"row": 42, "column": 30}, "end_point": {"row": 42, "column": 32}}, {"id": 84, "type": "pointer_declarator", "text": "*out", "parent": 79, "children": [85, 86], "start_point": {"row": 42, "column": 34}, "end_point": {"row": 42, "column": 38}}, {"id": 85, "type": "*", "text": "*", "parent": 84, "children": [], "start_point": {"row": 42, "column": 34}, "end_point": {"row": 42, "column": 35}}, {"id": 86, "type": "identifier", "text": "out", "parent": 84, "children": [], "start_point": {"row": 42, "column": 35}, "end_point": {"row": 42, "column": 38}}, {"id": 87, "type": "declaration", "text": "jack_transport_state_t ts = jack_transport_query(client, NULL);", "parent": 71, "children": [88, 89], "start_point": {"row": 43, "column": 1}, "end_point": {"row": 43, "column": 64}}, {"id": 88, "type": "type_identifier", "text": "jack_transport_state_t", "parent": 87, "children": [], "start_point": {"row": 43, "column": 1}, "end_point": {"row": 43, "column": 23}}, {"id": 89, "type": "init_declarator", "text": "ts = jack_transport_query(client, NULL)", "parent": 87, "children": [90, 91, 92], "start_point": {"row": 43, "column": 24}, "end_point": {"row": 43, "column": 63}}, {"id": 90, "type": "identifier", "text": "ts", "parent": 89, "children": [], "start_point": {"row": 43, "column": 24}, "end_point": {"row": 43, "column": 26}}, {"id": 91, "type": "=", "text": "=", "parent": 89, "children": [], "start_point": {"row": 43, "column": 27}, "end_point": {"row": 43, "column": 28}}, {"id": 92, "type": "call_expression", "text": "jack_transport_query(client, NULL)", "parent": 89, "children": [93, 94], "start_point": {"row": 43, "column": 29}, "end_point": {"row": 43, "column": 63}}, {"id": 93, "type": "identifier", "text": "jack_transport_query", "parent": 92, "children": [], "start_point": {"row": 43, "column": 29}, "end_point": {"row": 43, "column": 49}}, {"id": 94, "type": "argument_list", "text": "(client, NULL)", "parent": 92, "children": [95, 96], "start_point": {"row": 43, "column": 49}, "end_point": {"row": 43, "column": 63}}, {"id": 95, "type": "identifier", "text": "client", "parent": 94, "children": [], "start_point": {"row": 43, "column": 50}, "end_point": {"row": 43, "column": 56}}, {"id": 96, "type": "null", "text": "NULL", "parent": 94, "children": [97], "start_point": {"row": 43, "column": 58}, "end_point": {"row": 43, "column": 62}}, {"id": 97, "type": "NULL", "text": "NULL", "parent": 96, "children": [], "start_point": {"row": 43, "column": 58}, "end_point": {"row": 43, "column": 62}}, {"id": 98, "type": "if_statement", "text": "if (ts == JackTransportRolling) {\n\n\t\tif (client_state == Init)\n\t\t\tclient_state = Run;\n\n\t\tin = jack_port_get_buffer (input_port, nframes);\n\t\tout = jack_port_get_buffer (output_port, nframes);\n\t\tmemcpy (out, in,\n\t\t\tsizeof (jack_default_audio_sample_t) * nframes);\n\n\t} else if (ts == JackTransportStopped) {\n\n\t\tif (client_state == Run) {\n\t\t\tclient_state = Exit;\n\t\t\treturn -1; // to stop the thread\n\t\t}\n\t}", "parent": 71, "children": [99, 141], "start_point": {"row": 45, "column": 1}, "end_point": {"row": 61, "column": 2}}, {"id": 99, "type": "parenthesized_expression", "text": "(ts == JackTransportRolling)", "parent": 98, "children": [100], "start_point": {"row": 45, "column": 4}, "end_point": {"row": 45, "column": 32}}, {"id": 100, "type": "binary_expression", "text": "ts == JackTransportRolling", "parent": 99, "children": [101, 102, 103], "start_point": {"row": 45, "column": 5}, "end_point": {"row": 45, "column": 31}}, {"id": 101, "type": "identifier", "text": "ts", "parent": 100, "children": [], "start_point": {"row": 45, "column": 5}, "end_point": {"row": 45, "column": 7}}, {"id": 102, "type": "==", "text": "==", "parent": 100, "children": [], "start_point": {"row": 45, "column": 8}, "end_point": {"row": 45, "column": 10}}, {"id": 103, "type": "identifier", "text": "JackTransportRolling", "parent": 100, "children": [], "start_point": {"row": 45, "column": 11}, "end_point": {"row": 45, "column": 31}}, {"id": 104, "type": "if_statement", "text": "if (client_state == Init)\n\t\t\tclient_state = Run;", "parent": 98, "children": [105], "start_point": {"row": 47, "column": 2}, "end_point": {"row": 48, "column": 22}}, {"id": 105, "type": "parenthesized_expression", "text": "(client_state == Init)", "parent": 104, "children": [106], "start_point": {"row": 47, "column": 5}, "end_point": {"row": 47, "column": 27}}, {"id": 106, "type": "binary_expression", "text": "client_state == Init", "parent": 105, "children": [107, 108, 109], "start_point": {"row": 47, "column": 6}, "end_point": {"row": 47, "column": 26}}, {"id": 107, "type": "identifier", "text": "client_state", "parent": 106, "children": [], "start_point": {"row": 47, "column": 6}, "end_point": {"row": 47, "column": 18}}, {"id": 108, "type": "==", "text": "==", "parent": 106, "children": [], "start_point": {"row": 47, "column": 19}, "end_point": {"row": 47, "column": 21}}, {"id": 109, "type": "identifier", "text": "Init", "parent": 106, "children": [], "start_point": {"row": 47, "column": 22}, "end_point": {"row": 47, "column": 26}}, {"id": 110, "type": "assignment_expression", "text": "client_state = Run", "parent": 104, "children": [111, 112, 113], "start_point": {"row": 48, "column": 3}, "end_point": {"row": 48, "column": 21}}, {"id": 111, "type": "identifier", "text": "client_state", "parent": 110, "children": [], "start_point": {"row": 48, "column": 3}, "end_point": {"row": 48, "column": 15}}, {"id": 112, "type": "=", "text": "=", "parent": 110, "children": [], "start_point": {"row": 48, "column": 16}, "end_point": {"row": 48, "column": 17}}, {"id": 113, "type": "identifier", "text": "Run", "parent": 110, "children": [], "start_point": {"row": 48, "column": 18}, "end_point": {"row": 48, "column": 21}}, {"id": 114, "type": "assignment_expression", "text": "in = jack_port_get_buffer (input_port, nframes)", "parent": 98, "children": [115, 116, 117], "start_point": {"row": 50, "column": 2}, "end_point": {"row": 50, "column": 49}}, {"id": 115, "type": "identifier", "text": "in", "parent": 114, "children": [], "start_point": {"row": 50, "column": 2}, "end_point": {"row": 50, "column": 4}}, {"id": 116, "type": "=", "text": "=", "parent": 114, "children": [], "start_point": {"row": 50, "column": 5}, "end_point": {"row": 50, "column": 6}}, {"id": 117, "type": "call_expression", "text": "jack_port_get_buffer (input_port, nframes)", "parent": 114, "children": [118, 119], "start_point": {"row": 50, "column": 7}, "end_point": {"row": 50, "column": 49}}, {"id": 118, "type": "identifier", "text": "jack_port_get_buffer", "parent": 117, "children": [], "start_point": {"row": 50, "column": 7}, "end_point": {"row": 50, "column": 27}}, {"id": 119, "type": "argument_list", "text": "(input_port, nframes)", "parent": 117, "children": [120, 121], "start_point": {"row": 50, "column": 28}, "end_point": {"row": 50, "column": 49}}, {"id": 120, "type": "identifier", "text": "input_port", "parent": 119, "children": [], "start_point": {"row": 50, "column": 29}, "end_point": {"row": 50, "column": 39}}, {"id": 121, "type": "identifier", "text": "nframes", "parent": 119, "children": [], "start_point": {"row": 50, "column": 41}, "end_point": {"row": 50, "column": 48}}, {"id": 122, "type": "assignment_expression", "text": "out = jack_port_get_buffer (output_port, nframes)", "parent": 98, "children": [123, 124, 125], "start_point": {"row": 51, "column": 2}, "end_point": {"row": 51, "column": 51}}, {"id": 123, "type": "identifier", "text": "out", "parent": 122, "children": [], "start_point": {"row": 51, "column": 2}, "end_point": {"row": 51, "column": 5}}, {"id": 124, "type": "=", "text": "=", "parent": 122, "children": [], "start_point": {"row": 51, "column": 6}, "end_point": {"row": 51, "column": 7}}, {"id": 125, "type": "call_expression", "text": "jack_port_get_buffer (output_port, nframes)", "parent": 122, "children": [126, 127], "start_point": {"row": 51, "column": 8}, "end_point": {"row": 51, "column": 51}}, {"id": 126, "type": "identifier", "text": "jack_port_get_buffer", "parent": 125, "children": [], "start_point": {"row": 51, "column": 8}, "end_point": {"row": 51, "column": 28}}, {"id": 127, "type": "argument_list", "text": "(output_port, nframes)", "parent": 125, "children": [128, 129], "start_point": {"row": 51, "column": 29}, "end_point": {"row": 51, "column": 51}}, {"id": 128, "type": "identifier", "text": "output_port", "parent": 127, "children": [], "start_point": {"row": 51, "column": 30}, "end_point": {"row": 51, "column": 41}}, {"id": 129, "type": "identifier", "text": "nframes", "parent": 127, "children": [], "start_point": {"row": 51, "column": 43}, "end_point": {"row": 51, "column": 50}}, {"id": 130, "type": "call_expression", "text": "memcpy (out, in,\n\t\t\tsizeof (jack_default_audio_sample_t) * nframes)", "parent": 98, "children": [131, 132], "start_point": {"row": 52, "column": 2}, "end_point": {"row": 53, "column": 50}}, {"id": 131, "type": "identifier", "text": "memcpy", "parent": 130, "children": [], "start_point": {"row": 52, "column": 2}, "end_point": {"row": 52, "column": 8}}, {"id": 132, "type": "argument_list", "text": "(out, in,\n\t\t\tsizeof (jack_default_audio_sample_t) * nframes)", "parent": 130, "children": [133, 134, 135], "start_point": {"row": 52, "column": 9}, "end_point": {"row": 53, "column": 50}}, {"id": 133, "type": "identifier", "text": "out", "parent": 132, "children": [], "start_point": {"row": 52, "column": 10}, "end_point": {"row": 52, "column": 13}}, {"id": 134, "type": "identifier", "text": "in", "parent": 132, "children": [], "start_point": {"row": 52, "column": 15}, "end_point": {"row": 52, "column": 17}}, {"id": 135, "type": "binary_expression", "text": "sizeof (jack_default_audio_sample_t) * nframes", "parent": 132, "children": [136, 139, 140], "start_point": {"row": 53, "column": 3}, "end_point": {"row": 53, "column": 49}}, {"id": 136, "type": "sizeof_expression", "text": "sizeof (jack_default_audio_sample_t)", "parent": 135, "children": [137], "start_point": {"row": 53, "column": 3}, "end_point": {"row": 53, "column": 39}}, {"id": 137, "type": "parenthesized_expression", "text": "(jack_default_audio_sample_t)", "parent": 136, "children": [138], "start_point": {"row": 53, "column": 10}, "end_point": {"row": 53, "column": 39}}, {"id": 138, "type": "identifier", "text": "jack_default_audio_sample_t", "parent": 137, "children": [], "start_point": {"row": 53, "column": 11}, "end_point": {"row": 53, "column": 38}}, {"id": 139, "type": "*", "text": "*", "parent": 135, "children": [], "start_point": {"row": 53, "column": 40}, "end_point": {"row": 53, "column": 41}}, {"id": 140, "type": "identifier", "text": "nframes", "parent": 135, "children": [], "start_point": {"row": 53, "column": 42}, "end_point": {"row": 53, "column": 49}}, {"id": 141, "type": "else_clause", "text": "else if (ts == JackTransportStopped) {\n\n\t\tif (client_state == Run) {\n\t\t\tclient_state = Exit;\n\t\t\treturn -1; // to stop the thread\n\t\t}\n\t}", "parent": 98, "children": [142], "start_point": {"row": 55, "column": 3}, "end_point": {"row": 61, "column": 2}}, {"id": 142, "type": "if_statement", "text": "if (ts == JackTransportStopped) {\n\n\t\tif (client_state == Run) {\n\t\t\tclient_state = Exit;\n\t\t\treturn -1; // to stop the thread\n\t\t}\n\t}", "parent": 141, "children": [143], "start_point": {"row": 55, "column": 8}, "end_point": {"row": 61, "column": 2}}, {"id": 143, "type": "parenthesized_expression", "text": "(ts == JackTransportStopped)", "parent": 142, "children": [144], "start_point": {"row": 55, "column": 11}, "end_point": {"row": 55, "column": 39}}, {"id": 144, "type": "binary_expression", "text": "ts == JackTransportStopped", "parent": 143, "children": [145, 146, 147], "start_point": {"row": 55, "column": 12}, "end_point": {"row": 55, "column": 38}}, {"id": 145, "type": "identifier", "text": "ts", "parent": 144, "children": [], "start_point": {"row": 55, "column": 12}, "end_point": {"row": 55, "column": 14}}, {"id": 146, "type": "==", "text": "==", "parent": 144, "children": [], "start_point": {"row": 55, "column": 15}, "end_point": {"row": 55, "column": 17}}, {"id": 147, "type": "identifier", "text": "JackTransportStopped", "parent": 144, "children": [], "start_point": {"row": 55, "column": 18}, "end_point": {"row": 55, "column": 38}}, {"id": 148, "type": "if_statement", "text": "if (client_state == Run) {\n\t\t\tclient_state = Exit;\n\t\t\treturn -1; // to stop the thread\n\t\t}", "parent": 142, "children": [149], "start_point": {"row": 57, "column": 2}, "end_point": {"row": 60, "column": 3}}, {"id": 149, "type": "parenthesized_expression", "text": "(client_state == Run)", "parent": 148, "children": [150], "start_point": {"row": 57, "column": 5}, "end_point": {"row": 57, "column": 26}}, {"id": 150, "type": "binary_expression", "text": "client_state == Run", "parent": 149, "children": [151, 152, 153], "start_point": {"row": 57, "column": 6}, "end_point": {"row": 57, "column": 25}}, {"id": 151, "type": "identifier", "text": "client_state", "parent": 150, "children": [], "start_point": {"row": 57, "column": 6}, "end_point": {"row": 57, "column": 18}}, {"id": 152, "type": "==", "text": "==", "parent": 150, "children": [], "start_point": {"row": 57, "column": 19}, "end_point": {"row": 57, "column": 21}}, {"id": 153, "type": "identifier", "text": "Run", "parent": 150, "children": [], "start_point": {"row": 57, "column": 22}, "end_point": {"row": 57, "column": 25}}, {"id": 154, "type": "assignment_expression", "text": "client_state = Exit", "parent": 148, "children": [155, 156, 157], "start_point": {"row": 58, "column": 3}, "end_point": {"row": 58, "column": 22}}, {"id": 155, "type": "identifier", "text": "client_state", "parent": 154, "children": [], "start_point": {"row": 58, "column": 3}, "end_point": {"row": 58, "column": 15}}, {"id": 156, "type": "=", "text": "=", "parent": 154, "children": [], "start_point": {"row": 58, "column": 16}, "end_point": {"row": 58, "column": 17}}, {"id": 157, "type": "identifier", "text": "Exit", "parent": 154, "children": [], "start_point": {"row": 58, "column": 18}, "end_point": {"row": 58, "column": 22}}, {"id": 158, "type": "return_statement", "text": "return -1;", "parent": 148, "children": [159], "start_point": {"row": 59, "column": 3}, "end_point": {"row": 59, "column": 13}}, {"id": 159, "type": "number_literal", "text": "-1", "parent": 158, "children": [], "start_point": {"row": 59, "column": 10}, "end_point": {"row": 59, "column": 12}}, {"id": 160, "type": "return_statement", "text": "return 0;", "parent": 71, "children": [161], "start_point": {"row": 63, "column": 1}, "end_point": {"row": 63, "column": 10}}, {"id": 161, "type": "number_literal", "text": "0", "parent": 160, "children": [], "start_point": {"row": 63, "column": 8}, "end_point": {"row": 63, "column": 9}}, {"id": 162, "type": "function_definition", "text": "static void* jack_thread(void *arg)\n{\n\tjack_client_t* client = (jack_client_t*) arg;\n\n\twhile (1) {\n\n\t\tjack_nframes_t frames = jack_cycle_wait (client);\n\t\tint status = _process(frames);\n\t\tjack_cycle_signal (client, status);\n\n /*\n Possibly do something else after signaling next clients in the graph\n */\n\n /* End condition */\n if (status != 0)\n return 0;\n\t}\n\n /* not reached*/\n\treturn 0;\n}", "parent": null, "children": [163, 164], "start_point": {"row": 66, "column": 0}, "end_point": {"row": 87, "column": 1}}, {"id": 163, "type": "primitive_type", "text": "void", "parent": 162, "children": [], "start_point": {"row": 66, "column": 7}, "end_point": {"row": 66, "column": 11}}, {"id": 164, "type": "pointer_declarator", "text": "* jack_thread(void *arg)", "parent": 162, "children": [165, 166], "start_point": {"row": 66, "column": 11}, "end_point": {"row": 66, "column": 35}}, {"id": 165, "type": "*", "text": "*", "parent": 164, "children": [], "start_point": {"row": 66, "column": 11}, "end_point": {"row": 66, "column": 12}}, {"id": 166, "type": "function_declarator", "text": "jack_thread(void *arg)", "parent": 164, "children": [167, 168], "start_point": {"row": 66, "column": 13}, "end_point": {"row": 66, "column": 35}}, {"id": 167, "type": "identifier", "text": "jack_thread", "parent": 166, "children": [], "start_point": {"row": 66, "column": 13}, "end_point": {"row": 66, "column": 24}}, {"id": 168, "type": "parameter_list", "text": "(void *arg)", "parent": 166, "children": [169], "start_point": {"row": 66, "column": 24}, "end_point": {"row": 66, "column": 35}}, {"id": 169, "type": "parameter_declaration", "text": "void *arg", "parent": 168, "children": [170, 171], "start_point": {"row": 66, "column": 25}, "end_point": {"row": 66, "column": 34}}, {"id": 170, "type": "primitive_type", "text": "void", "parent": 169, "children": [], "start_point": {"row": 66, "column": 25}, "end_point": {"row": 66, "column": 29}}, {"id": 171, "type": "pointer_declarator", "text": "*arg", "parent": 169, "children": [172, 173], "start_point": {"row": 66, "column": 30}, "end_point": {"row": 66, "column": 34}}, {"id": 172, "type": "*", "text": "*", "parent": 171, "children": [], "start_point": {"row": 66, "column": 30}, "end_point": {"row": 66, "column": 31}}, {"id": 173, "type": "identifier", "text": "arg", "parent": 171, "children": [], "start_point": {"row": 66, "column": 31}, "end_point": {"row": 66, "column": 34}}, {"id": 174, "type": "declaration", "text": "jack_client_t* client = (jack_client_t*) arg;", "parent": 162, "children": [175, 176], "start_point": {"row": 68, "column": 1}, "end_point": {"row": 68, "column": 46}}, {"id": 175, "type": "type_identifier", "text": "jack_client_t", "parent": 174, "children": [], "start_point": {"row": 68, "column": 1}, "end_point": {"row": 68, "column": 14}}, {"id": 176, "type": "init_declarator", "text": "* client = (jack_client_t*) arg", "parent": 174, "children": [177, 180, 181], "start_point": {"row": 68, "column": 14}, "end_point": {"row": 68, "column": 45}}, {"id": 177, "type": "pointer_declarator", "text": "* client", "parent": 176, "children": [178, 179], "start_point": {"row": 68, "column": 14}, "end_point": {"row": 68, "column": 22}}, {"id": 178, "type": "*", "text": "*", "parent": 177, "children": [], "start_point": {"row": 68, "column": 14}, "end_point": {"row": 68, "column": 15}}, {"id": 179, "type": "identifier", "text": "client", "parent": 177, "children": [], "start_point": {"row": 68, "column": 16}, "end_point": {"row": 68, "column": 22}}, {"id": 180, "type": "=", "text": "=", "parent": 176, "children": [], "start_point": {"row": 68, "column": 23}, "end_point": {"row": 68, "column": 24}}, {"id": 181, "type": "cast_expression", "text": "(jack_client_t*) arg", "parent": 176, "children": [182, 186], "start_point": {"row": 68, "column": 25}, "end_point": {"row": 68, "column": 45}}, {"id": 182, "type": "type_descriptor", "text": "jack_client_t*", "parent": 181, "children": [183, 184], "start_point": {"row": 68, "column": 26}, "end_point": {"row": 68, "column": 40}}, {"id": 183, "type": "type_identifier", "text": "jack_client_t", "parent": 182, "children": [], "start_point": {"row": 68, "column": 26}, "end_point": {"row": 68, "column": 39}}, {"id": 184, "type": "abstract_pointer_declarator", "text": "*", "parent": 182, "children": [185], "start_point": {"row": 68, "column": 39}, "end_point": {"row": 68, "column": 40}}, {"id": 185, "type": "*", "text": "*", "parent": 184, "children": [], "start_point": {"row": 68, "column": 39}, "end_point": {"row": 68, "column": 40}}, {"id": 186, "type": "identifier", "text": "arg", "parent": 181, "children": [], "start_point": {"row": 68, "column": 42}, "end_point": {"row": 68, "column": 45}}, {"id": 187, "type": "while_statement", "text": "while (1) {\n\n\t\tjack_nframes_t frames = jack_cycle_wait (client);\n\t\tint status = _process(frames);\n\t\tjack_cycle_signal (client, status);\n\n /*\n Possibly do something else after signaling next clients in the graph\n */\n\n /* End condition */\n if (status != 0)\n return 0;\n\t}", "parent": 162, "children": [188], "start_point": {"row": 70, "column": 1}, "end_point": {"row": 83, "column": 2}}, {"id": 188, "type": "parenthesized_expression", "text": "(1)", "parent": 187, "children": [189], "start_point": {"row": 70, "column": 7}, "end_point": {"row": 70, "column": 10}}, {"id": 189, "type": "number_literal", "text": "1", "parent": 188, "children": [], "start_point": {"row": 70, "column": 8}, "end_point": {"row": 70, "column": 9}}, {"id": 190, "type": "declaration", "text": "jack_nframes_t frames = jack_cycle_wait (client);", "parent": 187, "children": [191, 192], "start_point": {"row": 72, "column": 2}, "end_point": {"row": 72, "column": 51}}, {"id": 191, "type": "type_identifier", "text": "jack_nframes_t", "parent": 190, "children": [], "start_point": {"row": 72, "column": 2}, "end_point": {"row": 72, "column": 16}}, {"id": 192, "type": "init_declarator", "text": "frames = jack_cycle_wait (client)", "parent": 190, "children": [193, 194, 195], "start_point": {"row": 72, "column": 17}, "end_point": {"row": 72, "column": 50}}, {"id": 193, "type": "identifier", "text": "frames", "parent": 192, "children": [], "start_point": {"row": 72, "column": 17}, "end_point": {"row": 72, "column": 23}}, {"id": 194, "type": "=", "text": "=", "parent": 192, "children": [], "start_point": {"row": 72, "column": 24}, "end_point": {"row": 72, "column": 25}}, {"id": 195, "type": "call_expression", "text": "jack_cycle_wait (client)", "parent": 192, "children": [196, 197], "start_point": {"row": 72, "column": 26}, "end_point": {"row": 72, "column": 50}}, {"id": 196, "type": "identifier", "text": "jack_cycle_wait", "parent": 195, "children": [], "start_point": {"row": 72, "column": 26}, "end_point": {"row": 72, "column": 41}}, {"id": 197, "type": "argument_list", "text": "(client)", "parent": 195, "children": [198], "start_point": {"row": 72, "column": 42}, "end_point": {"row": 72, "column": 50}}, {"id": 198, "type": "identifier", "text": "client", "parent": 197, "children": [], "start_point": {"row": 72, "column": 43}, "end_point": {"row": 72, "column": 49}}, {"id": 199, "type": "declaration", "text": "int status = _process(frames);", "parent": 187, "children": [200, 201], "start_point": {"row": 73, "column": 2}, "end_point": {"row": 73, "column": 32}}, {"id": 200, "type": "primitive_type", "text": "int", "parent": 199, "children": [], "start_point": {"row": 73, "column": 2}, "end_point": {"row": 73, "column": 5}}, {"id": 201, "type": "init_declarator", "text": "status = _process(frames)", "parent": 199, "children": [202, 203, 204], "start_point": {"row": 73, "column": 6}, "end_point": {"row": 73, "column": 31}}, {"id": 202, "type": "identifier", "text": "status", "parent": 201, "children": [], "start_point": {"row": 73, "column": 6}, "end_point": {"row": 73, "column": 12}}, {"id": 203, "type": "=", "text": "=", "parent": 201, "children": [], "start_point": {"row": 73, "column": 13}, "end_point": {"row": 73, "column": 14}}, {"id": 204, "type": "call_expression", "text": "_process(frames)", "parent": 201, "children": [205, 206], "start_point": {"row": 73, "column": 15}, "end_point": {"row": 73, "column": 31}}, {"id": 205, "type": "identifier", "text": "_process", "parent": 204, "children": [], "start_point": {"row": 73, "column": 15}, "end_point": {"row": 73, "column": 23}}, {"id": 206, "type": "argument_list", "text": "(frames)", "parent": 204, "children": [207], "start_point": {"row": 73, "column": 23}, "end_point": {"row": 73, "column": 31}}, {"id": 207, "type": "identifier", "text": "frames", "parent": 206, "children": [], "start_point": {"row": 73, "column": 24}, "end_point": {"row": 73, "column": 30}}, {"id": 208, "type": "call_expression", "text": "jack_cycle_signal (client, status)", "parent": 187, "children": [209, 210], "start_point": {"row": 74, "column": 2}, "end_point": {"row": 74, "column": 36}}, {"id": 209, "type": "identifier", "text": "jack_cycle_signal", "parent": 208, "children": [], "start_point": {"row": 74, "column": 2}, "end_point": {"row": 74, "column": 19}}, {"id": 210, "type": "argument_list", "text": "(client, status)", "parent": 208, "children": [211, 212], "start_point": {"row": 74, "column": 20}, "end_point": {"row": 74, "column": 36}}, {"id": 211, "type": "identifier", "text": "client", "parent": 210, "children": [], "start_point": {"row": 74, "column": 21}, "end_point": {"row": 74, "column": 27}}, {"id": 212, "type": "identifier", "text": "status", "parent": 210, "children": [], "start_point": {"row": 74, "column": 29}, "end_point": {"row": 74, "column": 35}}, {"id": 213, "type": "if_statement", "text": "if (status != 0)\n return 0;", "parent": 187, "children": [214, 219], "start_point": {"row": 81, "column": 8}, "end_point": {"row": 82, "column": 21}}, {"id": 214, "type": "parenthesized_expression", "text": "(status != 0)", "parent": 213, "children": [215], "start_point": {"row": 81, "column": 11}, "end_point": {"row": 81, "column": 24}}, {"id": 215, "type": "binary_expression", "text": "status != 0", "parent": 214, "children": [216, 217, 218], "start_point": {"row": 81, "column": 12}, "end_point": {"row": 81, "column": 23}}, {"id": 216, "type": "identifier", "text": "status", "parent": 215, "children": [], "start_point": {"row": 81, "column": 12}, "end_point": {"row": 81, "column": 18}}, {"id": 217, "type": "!=", "text": "!=", "parent": 215, "children": [], "start_point": {"row": 81, "column": 19}, "end_point": {"row": 81, "column": 21}}, {"id": 218, "type": "number_literal", "text": "0", "parent": 215, "children": [], "start_point": {"row": 81, "column": 22}, "end_point": {"row": 81, "column": 23}}, {"id": 219, "type": "return_statement", "text": "return 0;", "parent": 213, "children": [220], "start_point": {"row": 82, "column": 12}, "end_point": {"row": 82, "column": 21}}, {"id": 220, "type": "number_literal", "text": "0", "parent": 219, "children": [], "start_point": {"row": 82, "column": 19}, "end_point": {"row": 82, "column": 20}}, {"id": 221, "type": "return_statement", "text": "return 0;", "parent": 162, "children": [222], "start_point": {"row": 86, "column": 1}, "end_point": {"row": 86, "column": 10}}, {"id": 222, "type": "number_literal", "text": "0", "parent": 221, "children": [], "start_point": {"row": 86, "column": 8}, "end_point": {"row": 86, "column": 9}}, {"id": 223, "type": "function_definition", "text": "static void\njack_shutdown (void *arg)\n{\n fprintf(stderr, \"JACK shut down, exiting ...\\n\");\n\texit (1);\n}", "parent": null, "children": [224, 225], "start_point": {"row": 123, "column": 0}, "end_point": {"row": 128, "column": 1}}, {"id": 224, "type": "primitive_type", "text": "void", "parent": 223, "children": [], "start_point": {"row": 123, "column": 7}, "end_point": {"row": 123, "column": 11}}, {"id": 225, "type": "function_declarator", "text": "jack_shutdown (void *arg)", "parent": 223, "children": [226, 227], "start_point": {"row": 124, "column": 0}, "end_point": {"row": 124, "column": 25}}, {"id": 226, "type": "identifier", "text": "jack_shutdown", "parent": 225, "children": [], "start_point": {"row": 124, "column": 0}, "end_point": {"row": 124, "column": 13}}, {"id": 227, "type": "parameter_list", "text": "(void *arg)", "parent": 225, "children": [228], "start_point": {"row": 124, "column": 14}, "end_point": {"row": 124, "column": 25}}, {"id": 228, "type": "parameter_declaration", "text": "void *arg", "parent": 227, "children": [229, 230], "start_point": {"row": 124, "column": 15}, "end_point": {"row": 124, "column": 24}}, {"id": 229, "type": "primitive_type", "text": "void", "parent": 228, "children": [], "start_point": {"row": 124, "column": 15}, "end_point": {"row": 124, "column": 19}}, {"id": 230, "type": "pointer_declarator", "text": "*arg", "parent": 228, "children": [231, 232], "start_point": {"row": 124, "column": 20}, "end_point": {"row": 124, "column": 24}}, {"id": 231, "type": "*", "text": "*", "parent": 230, "children": [], "start_point": {"row": 124, "column": 20}, "end_point": {"row": 124, "column": 21}}, {"id": 232, "type": "identifier", "text": "arg", "parent": 230, "children": [], "start_point": {"row": 124, "column": 21}, "end_point": {"row": 124, "column": 24}}, {"id": 233, "type": "call_expression", "text": "fprintf(stderr, \"JACK shut down, exiting ...\\n\")", "parent": 223, "children": [234, 235], "start_point": {"row": 126, "column": 4}, "end_point": {"row": 126, "column": 52}}, {"id": 234, "type": "identifier", "text": "fprintf", "parent": 233, "children": [], "start_point": {"row": 126, "column": 4}, "end_point": {"row": 126, "column": 11}}, {"id": 235, "type": "argument_list", "text": "(stderr, \"JACK shut down, exiting ...\\n\")", "parent": 233, "children": [236, 237], "start_point": {"row": 126, "column": 11}, "end_point": {"row": 126, "column": 52}}, {"id": 236, "type": "identifier", "text": "stderr", "parent": 235, "children": [], "start_point": {"row": 126, "column": 12}, "end_point": {"row": 126, "column": 18}}, {"id": 237, "type": "string_literal", "text": "\"JACK shut down, exiting ...\\n\"", "parent": 235, "children": [238], "start_point": {"row": 126, "column": 20}, "end_point": {"row": 126, "column": 51}}, {"id": 238, "type": "escape_sequence", "text": "\\n", "parent": 237, "children": [], "start_point": {"row": 126, "column": 48}, "end_point": {"row": 126, "column": 50}}, {"id": 239, "type": "call_expression", "text": "exit (1)", "parent": 223, "children": [240, 241], "start_point": {"row": 127, "column": 1}, "end_point": {"row": 127, "column": 9}}, {"id": 240, "type": "identifier", "text": "exit", "parent": 239, "children": [], "start_point": {"row": 127, "column": 1}, "end_point": {"row": 127, "column": 5}}, {"id": 241, "type": "argument_list", "text": "(1)", "parent": 239, "children": [242], "start_point": {"row": 127, "column": 6}, "end_point": {"row": 127, "column": 9}}, {"id": 242, "type": "number_literal", "text": "1", "parent": 241, "children": [], "start_point": {"row": 127, "column": 7}, "end_point": {"row": 127, "column": 8}}, {"id": 243, "type": "function_definition", "text": "int\nmain (int argc, char *argv[])\n{\n\tconst char **ports;\n\tconst char *client_name;\n\tconst char *server_name = NULL;\n\tjack_options_t options = JackNullOption;\n\tjack_status_t status;\n\n\tif (argc >= 2) {\t\t/* client name specified? */\n\t\tclient_name = argv[1];\n\t\tif (argc >= 3) {\t/* server name specified? */\n\t\t\tserver_name = argv[2];\n\t\t\toptions |= JackServerName;\n\t\t}\n\t} else {\t\t\t/* use basename of argv[0] */\n\t\tclient_name = strrchr(argv[0], '/');\n\t\tif (client_name == 0) {\n\t\t\tclient_name = argv[0];\n\t\t} else {\n\t\t\tclient_name++;\n\t\t}\n\t}\n\n\t/* open a client connection to the JACK server */\n\n\tclient = jack_client_open (client_name, options, &status, server_name);\n\tif (client == NULL) {\n\t\tfprintf (stderr, \"jack_client_open() failed, \"\n\t\t\t \"status = 0x%2.0x\\n\", status);\n\t\tif (status & JackServerFailed) {\n\t\t\tfprintf (stderr, \"Unable to connect to JACK server\\n\");\n\t\t}\n\t\texit (1);\n\t}\n\tif (status & JackServerStarted) {\n\t\tfprintf (stderr, \"JACK server started\\n\");\n\t}\n\tif (status & JackNameNotUnique) {\n\t\tclient_name = jack_get_client_name(client);\n\t\tfprintf (stderr, \"unique name `%s' assigned\\n\", client_name);\n\t}\n\n\t/* tell the JACK server to call `process()' whenever\n\t there is work to be done.\n\t*/\n if (jack_set_process_thread(client, jack_thread, client) < 0)\n\t\texit(1);\n\n\t/* tell the JACK server to call `jack_shutdown()' if\n\t it ever shuts down, either entirely, or if it\n\t just decides to stop calling us.\n\t*/\n\n\tjack_on_shutdown (client, jack_shutdown, 0);\n\n\t/* display the current sample rate.\n\t */\n\n\tprintf (\"engine sample rate: %\" PRIu32 \"\\n\",\n\t\tjack_get_sample_rate (client));\n\n\t/* create two ports */\n\n\tinput_port = jack_port_register (client, \"input\",\n\t\t\t\t\t JACK_DEFAULT_AUDIO_TYPE,\n\t\t\t\t\t JackPortIsInput, 0);\n\toutput_port = jack_port_register (client, \"output\",\n\t\t\t\t\t JACK_DEFAULT_AUDIO_TYPE,\n\t\t\t\t\t JackPortIsOutput, 0);\n\n\tif ((input_port == NULL) || (output_port == NULL)) {\n\t\tfprintf(stderr, \"no more JACK ports available\\n\");\n\t\texit (1);\n\t}\n\n\t/* Tell the JACK server that we are ready to roll. Our\n\t * process() callback will start running now. */\n\n\tif (jack_activate (client)) {\n\t\tfprintf (stderr, \"cannot activate client\");\n\t\texit (1);\n\t}\n\n\t/* Connect the ports. You can't do this before the client is\n\t * activated, because we can't make connections to clients\n\t * that aren't running. Note the confusing (but necessary)\n\t * orientation of the driver backend ports: playback ports are\n\t * \"input\" to the backend, and capture ports are \"output\" from\n\t * it.\n\t */\n\n\tports = jack_get_ports (client, NULL, NULL,\n\t\t\t\tJackPortIsPhysical|JackPortIsOutput);\n\tif (ports == NULL) {\n\t\tfprintf(stderr, \"no physical capture ports\\n\");\n\t\texit (1);\n\t}\n\n\tif (jack_connect (client, ports[0], jack_port_name (input_port))) {\n\t\tfprintf (stderr, \"cannot connect input ports\\n\");\n\t}\n\n\tjack_free (ports);\n\n\tports = jack_get_ports (client, NULL, NULL,\n\t\t\t\tJackPortIsPhysical|JackPortIsInput);\n\tif (ports == NULL) {\n\t\tfprintf(stderr, \"no physical playback ports\\n\");\n\t\texit (1);\n\t}\n\n\tif (jack_connect (client, jack_port_name (output_port), ports[0])) {\n\t\tfprintf (stderr, \"cannot connect output ports\\n\");\n\t}\n\n\tjack_free (ports);\n\n /* install a signal handler to properly quits jack client */\n signal(SIGQUIT, signal_handler);\n\tsignal(SIGTERM, signal_handler);\n\tsignal(SIGHUP, signal_handler);\n\tsignal(SIGINT, signal_handler);\n\n\t/* keep running until the transport stops */\n\n\twhile (client_state != Exit) {\n\t\tsleep (1);\n\t}\n\n\tjack_client_close (client);\n\texit (0);\n}", "parent": null, "children": [244, 245], "start_point": {"row": 130, "column": 0}, "end_point": {"row": 262, "column": 1}}, {"id": 244, "type": "primitive_type", "text": "int", "parent": 243, "children": [], "start_point": {"row": 130, "column": 0}, "end_point": {"row": 130, "column": 3}}, {"id": 245, "type": "function_declarator", "text": "main (int argc, char *argv[])", "parent": 243, "children": [246, 247], "start_point": {"row": 131, "column": 0}, "end_point": {"row": 131, "column": 29}}, {"id": 246, "type": "identifier", "text": "main", "parent": 245, "children": [], "start_point": {"row": 131, "column": 0}, "end_point": {"row": 131, "column": 4}}, {"id": 247, "type": "parameter_list", "text": "(int argc, char *argv[])", "parent": 245, "children": [248, 251], "start_point": {"row": 131, "column": 5}, "end_point": {"row": 131, "column": 29}}, {"id": 248, "type": "parameter_declaration", "text": "int argc", "parent": 247, "children": [249, 250], "start_point": {"row": 131, "column": 6}, "end_point": {"row": 131, "column": 14}}, {"id": 249, "type": "primitive_type", "text": "int", "parent": 248, "children": [], "start_point": {"row": 131, "column": 6}, "end_point": {"row": 131, "column": 9}}, {"id": 250, "type": "identifier", "text": "argc", "parent": 248, "children": [], "start_point": {"row": 131, "column": 10}, "end_point": {"row": 131, "column": 14}}, {"id": 251, "type": "parameter_declaration", "text": "char *argv[]", "parent": 247, "children": [252, 253], "start_point": {"row": 131, "column": 16}, "end_point": {"row": 131, "column": 28}}, {"id": 252, "type": "primitive_type", "text": "char", "parent": 251, "children": [], "start_point": {"row": 131, "column": 16}, "end_point": {"row": 131, "column": 20}}, {"id": 253, "type": "pointer_declarator", "text": "*argv[]", "parent": 251, "children": [254, 255], "start_point": {"row": 131, "column": 21}, "end_point": {"row": 131, "column": 28}}, {"id": 254, "type": "*", "text": "*", "parent": 253, "children": [], "start_point": {"row": 131, "column": 21}, "end_point": {"row": 131, "column": 22}}, {"id": 255, "type": "array_declarator", "text": "argv[]", "parent": 253, "children": [256], "start_point": {"row": 131, "column": 22}, "end_point": {"row": 131, "column": 28}}, {"id": 256, "type": "identifier", "text": "argv", "parent": 255, "children": [], "start_point": {"row": 131, "column": 22}, "end_point": {"row": 131, "column": 26}}, {"id": 257, "type": "declaration", "text": "const char **ports;", "parent": 243, "children": [258, 259], "start_point": {"row": 133, "column": 1}, "end_point": {"row": 133, "column": 20}}, {"id": 258, "type": "primitive_type", "text": "char", "parent": 257, "children": [], "start_point": {"row": 133, "column": 7}, "end_point": {"row": 133, "column": 11}}, {"id": 259, "type": "pointer_declarator", "text": "**ports", "parent": 257, "children": [260, 261], "start_point": {"row": 133, "column": 12}, "end_point": {"row": 133, "column": 19}}, {"id": 260, "type": "*", "text": "*", "parent": 259, "children": [], "start_point": {"row": 133, "column": 12}, "end_point": {"row": 133, "column": 13}}, {"id": 261, "type": "pointer_declarator", "text": "*ports", "parent": 259, "children": [262, 263], "start_point": {"row": 133, "column": 13}, "end_point": {"row": 133, "column": 19}}, {"id": 262, "type": "*", "text": "*", "parent": 261, "children": [], "start_point": {"row": 133, "column": 13}, "end_point": {"row": 133, "column": 14}}, {"id": 263, "type": "identifier", "text": "ports", "parent": 261, "children": [], "start_point": {"row": 133, "column": 14}, "end_point": {"row": 133, "column": 19}}, {"id": 264, "type": "declaration", "text": "const char *client_name;", "parent": 243, "children": [265, 266], "start_point": {"row": 134, "column": 1}, "end_point": {"row": 134, "column": 25}}, {"id": 265, "type": "primitive_type", "text": "char", "parent": 264, "children": [], "start_point": {"row": 134, "column": 7}, "end_point": {"row": 134, "column": 11}}, {"id": 266, "type": "pointer_declarator", "text": "*client_name", "parent": 264, "children": [267, 268], "start_point": {"row": 134, "column": 12}, "end_point": {"row": 134, "column": 24}}, {"id": 267, "type": "*", "text": "*", "parent": 266, "children": [], "start_point": {"row": 134, "column": 12}, "end_point": {"row": 134, "column": 13}}, {"id": 268, "type": "identifier", "text": "client_name", "parent": 266, "children": [], "start_point": {"row": 134, "column": 13}, "end_point": {"row": 134, "column": 24}}, {"id": 269, "type": "declaration", "text": "const char *server_name = NULL;", "parent": 243, "children": [270, 271], "start_point": {"row": 135, "column": 1}, "end_point": {"row": 135, "column": 32}}, {"id": 270, "type": "primitive_type", "text": "char", "parent": 269, "children": [], "start_point": {"row": 135, "column": 7}, "end_point": {"row": 135, "column": 11}}, {"id": 271, "type": "init_declarator", "text": "*server_name = NULL", "parent": 269, "children": [272, 275, 276], "start_point": {"row": 135, "column": 12}, "end_point": {"row": 135, "column": 31}}, {"id": 272, "type": "pointer_declarator", "text": "*server_name", "parent": 271, "children": [273, 274], "start_point": {"row": 135, "column": 12}, "end_point": {"row": 135, "column": 24}}, {"id": 273, "type": "*", "text": "*", "parent": 272, "children": [], "start_point": {"row": 135, "column": 12}, "end_point": {"row": 135, "column": 13}}, {"id": 274, "type": "identifier", "text": "server_name", "parent": 272, "children": [], "start_point": {"row": 135, "column": 13}, "end_point": {"row": 135, "column": 24}}, {"id": 275, "type": "=", "text": "=", "parent": 271, "children": [], "start_point": {"row": 135, "column": 25}, "end_point": {"row": 135, "column": 26}}, {"id": 276, "type": "null", "text": "NULL", "parent": 271, "children": [277], "start_point": {"row": 135, "column": 27}, "end_point": {"row": 135, "column": 31}}, {"id": 277, "type": "NULL", "text": "NULL", "parent": 276, "children": [], "start_point": {"row": 135, "column": 27}, "end_point": {"row": 135, "column": 31}}, {"id": 278, "type": "declaration", "text": "jack_options_t options = JackNullOption;", "parent": 243, "children": [279, 280], "start_point": {"row": 136, "column": 1}, "end_point": {"row": 136, "column": 41}}, {"id": 279, "type": "type_identifier", "text": "jack_options_t", "parent": 278, "children": [], "start_point": {"row": 136, "column": 1}, "end_point": {"row": 136, "column": 15}}, {"id": 280, "type": "init_declarator", "text": "options = JackNullOption", "parent": 278, "children": [281, 282, 283], "start_point": {"row": 136, "column": 16}, "end_point": {"row": 136, "column": 40}}, {"id": 281, "type": "identifier", "text": "options", "parent": 280, "children": [], "start_point": {"row": 136, "column": 16}, "end_point": {"row": 136, "column": 23}}, {"id": 282, "type": "=", "text": "=", "parent": 280, "children": [], "start_point": {"row": 136, "column": 24}, "end_point": {"row": 136, "column": 25}}, {"id": 283, "type": "identifier", "text": "JackNullOption", "parent": 280, "children": [], "start_point": {"row": 136, "column": 26}, "end_point": {"row": 136, "column": 40}}, {"id": 284, "type": "declaration", "text": "jack_status_t status;", "parent": 243, "children": [285, 286], "start_point": {"row": 137, "column": 1}, "end_point": {"row": 137, "column": 22}}, {"id": 285, "type": "type_identifier", "text": "jack_status_t", "parent": 284, "children": [], "start_point": {"row": 137, "column": 1}, "end_point": {"row": 137, "column": 14}}, {"id": 286, "type": "identifier", "text": "status", "parent": 284, "children": [], "start_point": {"row": 137, "column": 15}, "end_point": {"row": 137, "column": 21}}, {"id": 287, "type": "if_statement", "text": "if (argc >= 2) {\t\t/* client name specified? */\n\t\tclient_name = argv[1];\n\t\tif (argc >= 3) {\t/* server name specified? */\n\t\t\tserver_name = argv[2];\n\t\t\toptions |= JackServerName;\n\t\t}\n\t} else {\t\t\t/* use basename of argv[0] */\n\t\tclient_name = strrchr(argv[0], '/');\n\t\tif (client_name == 0) {\n\t\t\tclient_name = argv[0];\n\t\t} else {\n\t\t\tclient_name++;\n\t\t}\n\t}", "parent": 243, "children": [288, 315], "start_point": {"row": 139, "column": 1}, "end_point": {"row": 152, "column": 2}}, {"id": 288, "type": "parenthesized_expression", "text": "(argc >= 2)", "parent": 287, "children": [289], "start_point": {"row": 139, "column": 4}, "end_point": {"row": 139, "column": 15}}, {"id": 289, "type": "binary_expression", "text": "argc >= 2", "parent": 288, "children": [290, 291, 292], "start_point": {"row": 139, "column": 5}, "end_point": {"row": 139, "column": 14}}, {"id": 290, "type": "identifier", "text": "argc", "parent": 289, "children": [], "start_point": {"row": 139, "column": 5}, "end_point": {"row": 139, "column": 9}}, {"id": 291, "type": ">=", "text": ">=", "parent": 289, "children": [], "start_point": {"row": 139, "column": 10}, "end_point": {"row": 139, "column": 12}}, {"id": 292, "type": "number_literal", "text": "2", "parent": 289, "children": [], "start_point": {"row": 139, "column": 13}, "end_point": {"row": 139, "column": 14}}, {"id": 293, "type": "assignment_expression", "text": "client_name = argv[1]", "parent": 287, "children": [294, 295, 296], "start_point": {"row": 140, "column": 2}, "end_point": {"row": 140, "column": 23}}, {"id": 294, "type": "identifier", "text": "client_name", "parent": 293, "children": [], "start_point": {"row": 140, "column": 2}, "end_point": {"row": 140, "column": 13}}, {"id": 295, "type": "=", "text": "=", "parent": 293, "children": [], "start_point": {"row": 140, "column": 14}, "end_point": {"row": 140, "column": 15}}, {"id": 296, "type": "subscript_expression", "text": "argv[1]", "parent": 293, "children": [297, 298], "start_point": {"row": 140, "column": 16}, "end_point": {"row": 140, "column": 23}}, {"id": 297, "type": "identifier", "text": "argv", "parent": 296, "children": [], "start_point": {"row": 140, "column": 16}, "end_point": {"row": 140, "column": 20}}, {"id": 298, "type": "number_literal", "text": "1", "parent": 296, "children": [], "start_point": {"row": 140, "column": 21}, "end_point": {"row": 140, "column": 22}}, {"id": 299, "type": "if_statement", "text": "if (argc >= 3) {\t/* server name specified? */\n\t\t\tserver_name = argv[2];\n\t\t\toptions |= JackServerName;\n\t\t}", "parent": 287, "children": [300], "start_point": {"row": 141, "column": 2}, "end_point": {"row": 144, "column": 3}}, {"id": 300, "type": "parenthesized_expression", "text": "(argc >= 3)", "parent": 299, "children": [301], "start_point": {"row": 141, "column": 5}, "end_point": {"row": 141, "column": 16}}, {"id": 301, "type": "binary_expression", "text": "argc >= 3", "parent": 300, "children": [302, 303, 304], "start_point": {"row": 141, "column": 6}, "end_point": {"row": 141, "column": 15}}, {"id": 302, "type": "identifier", "text": "argc", "parent": 301, "children": [], "start_point": {"row": 141, "column": 6}, "end_point": {"row": 141, "column": 10}}, {"id": 303, "type": ">=", "text": ">=", "parent": 301, "children": [], "start_point": {"row": 141, "column": 11}, "end_point": {"row": 141, "column": 13}}, {"id": 304, "type": "number_literal", "text": "3", "parent": 301, "children": [], "start_point": {"row": 141, "column": 14}, "end_point": {"row": 141, "column": 15}}, {"id": 305, "type": "assignment_expression", "text": "server_name = argv[2]", "parent": 299, "children": [306, 307, 308], "start_point": {"row": 142, "column": 3}, "end_point": {"row": 142, "column": 24}}, {"id": 306, "type": "identifier", "text": "server_name", "parent": 305, "children": [], "start_point": {"row": 142, "column": 3}, "end_point": {"row": 142, "column": 14}}, {"id": 307, "type": "=", "text": "=", "parent": 305, "children": [], "start_point": {"row": 142, "column": 15}, "end_point": {"row": 142, "column": 16}}, {"id": 308, "type": "subscript_expression", "text": "argv[2]", "parent": 305, "children": [309, 310], "start_point": {"row": 142, "column": 17}, "end_point": {"row": 142, "column": 24}}, {"id": 309, "type": "identifier", "text": "argv", "parent": 308, "children": [], "start_point": {"row": 142, "column": 17}, "end_point": {"row": 142, "column": 21}}, {"id": 310, "type": "number_literal", "text": "2", "parent": 308, "children": [], "start_point": {"row": 142, "column": 22}, "end_point": {"row": 142, "column": 23}}, {"id": 311, "type": "assignment_expression", "text": "options |= JackServerName", "parent": 299, "children": [312, 313, 314], "start_point": {"row": 143, "column": 3}, "end_point": {"row": 143, "column": 28}}, {"id": 312, "type": "identifier", "text": "options", "parent": 311, "children": [], "start_point": {"row": 143, "column": 3}, "end_point": {"row": 143, "column": 10}}, {"id": 313, "type": "|=", "text": "|=", "parent": 311, "children": [], "start_point": {"row": 143, "column": 11}, "end_point": {"row": 143, "column": 13}}, {"id": 314, "type": "identifier", "text": "JackServerName", "parent": 311, "children": [], "start_point": {"row": 143, "column": 14}, "end_point": {"row": 143, "column": 28}}, {"id": 315, "type": "else_clause", "text": "else {\t\t\t/* use basename of argv[0] */\n\t\tclient_name = strrchr(argv[0], '/');\n\t\tif (client_name == 0) {\n\t\t\tclient_name = argv[0];\n\t\t} else {\n\t\t\tclient_name++;\n\t\t}\n\t}", "parent": 287, "children": [], "start_point": {"row": 145, "column": 3}, "end_point": {"row": 152, "column": 2}}, {"id": 316, "type": "assignment_expression", "text": "client_name = strrchr(argv[0], '/')", "parent": 315, "children": [317, 318, 319], "start_point": {"row": 146, "column": 2}, "end_point": {"row": 146, "column": 37}}, {"id": 317, "type": "identifier", "text": "client_name", "parent": 316, "children": [], "start_point": {"row": 146, "column": 2}, "end_point": {"row": 146, "column": 13}}, {"id": 318, "type": "=", "text": "=", "parent": 316, "children": [], "start_point": {"row": 146, "column": 14}, "end_point": {"row": 146, "column": 15}}, {"id": 319, "type": "call_expression", "text": "strrchr(argv[0], '/')", "parent": 316, "children": [320, 321], "start_point": {"row": 146, "column": 16}, "end_point": {"row": 146, "column": 37}}, {"id": 320, "type": "identifier", "text": "strrchr", "parent": 319, "children": [], "start_point": {"row": 146, "column": 16}, "end_point": {"row": 146, "column": 23}}, {"id": 321, "type": "argument_list", "text": "(argv[0], '/')", "parent": 319, "children": [322, 325], "start_point": {"row": 146, "column": 23}, "end_point": {"row": 146, "column": 37}}, {"id": 322, "type": "subscript_expression", "text": "argv[0]", "parent": 321, "children": [323, 324], "start_point": {"row": 146, "column": 24}, "end_point": {"row": 146, "column": 31}}, {"id": 323, "type": "identifier", "text": "argv", "parent": 322, "children": [], "start_point": {"row": 146, "column": 24}, "end_point": {"row": 146, "column": 28}}, {"id": 324, "type": "number_literal", "text": "0", "parent": 322, "children": [], "start_point": {"row": 146, "column": 29}, "end_point": {"row": 146, "column": 30}}, {"id": 325, "type": "char_literal", "text": "'/'", "parent": 321, "children": [326, 327, 328], "start_point": {"row": 146, "column": 33}, "end_point": {"row": 146, "column": 36}}, {"id": 326, "type": "'", "text": "'", "parent": 325, "children": [], "start_point": {"row": 146, "column": 33}, "end_point": {"row": 146, "column": 34}}, {"id": 327, "type": "character", "text": "/", "parent": 325, "children": [], "start_point": {"row": 146, "column": 34}, "end_point": {"row": 146, "column": 35}}, {"id": 328, "type": "'", "text": "'", "parent": 325, "children": [], "start_point": {"row": 146, "column": 35}, "end_point": {"row": 146, "column": 36}}, {"id": 329, "type": "if_statement", "text": "if (client_name == 0) {\n\t\t\tclient_name = argv[0];\n\t\t} else {\n\t\t\tclient_name++;\n\t\t}", "parent": 315, "children": [330, 341], "start_point": {"row": 147, "column": 2}, "end_point": {"row": 151, "column": 3}}, {"id": 330, "type": "parenthesized_expression", "text": "(client_name == 0)", "parent": 329, "children": [331], "start_point": {"row": 147, "column": 5}, "end_point": {"row": 147, "column": 23}}, {"id": 331, "type": "binary_expression", "text": "client_name == 0", "parent": 330, "children": [332, 333, 334], "start_point": {"row": 147, "column": 6}, "end_point": {"row": 147, "column": 22}}, {"id": 332, "type": "identifier", "text": "client_name", "parent": 331, "children": [], "start_point": {"row": 147, "column": 6}, "end_point": {"row": 147, "column": 17}}, {"id": 333, "type": "==", "text": "==", "parent": 331, "children": [], "start_point": {"row": 147, "column": 18}, "end_point": {"row": 147, "column": 20}}, {"id": 334, "type": "number_literal", "text": "0", "parent": 331, "children": [], "start_point": {"row": 147, "column": 21}, "end_point": {"row": 147, "column": 22}}, {"id": 335, "type": "assignment_expression", "text": "client_name = argv[0]", "parent": 329, "children": [336, 337, 338], "start_point": {"row": 148, "column": 3}, "end_point": {"row": 148, "column": 24}}, {"id": 336, "type": "identifier", "text": "client_name", "parent": 335, "children": [], "start_point": {"row": 148, "column": 3}, "end_point": {"row": 148, "column": 14}}, {"id": 337, "type": "=", "text": "=", "parent": 335, "children": [], "start_point": {"row": 148, "column": 15}, "end_point": {"row": 148, "column": 16}}, {"id": 338, "type": "subscript_expression", "text": "argv[0]", "parent": 335, "children": [339, 340], "start_point": {"row": 148, "column": 17}, "end_point": {"row": 148, "column": 24}}, {"id": 339, "type": "identifier", "text": "argv", "parent": 338, "children": [], "start_point": {"row": 148, "column": 17}, "end_point": {"row": 148, "column": 21}}, {"id": 340, "type": "number_literal", "text": "0", "parent": 338, "children": [], "start_point": {"row": 148, "column": 22}, "end_point": {"row": 148, "column": 23}}, {"id": 341, "type": "else_clause", "text": "else {\n\t\t\tclient_name++;\n\t\t}", "parent": 329, "children": [], "start_point": {"row": 149, "column": 4}, "end_point": {"row": 151, "column": 3}}, {"id": 342, "type": "update_expression", "text": "client_name++", "parent": 341, "children": [343, 344], "start_point": {"row": 150, "column": 3}, "end_point": {"row": 150, "column": 16}}, {"id": 343, "type": "identifier", "text": "client_name", "parent": 342, "children": [], "start_point": {"row": 150, "column": 3}, "end_point": {"row": 150, "column": 14}}, {"id": 344, "type": "++", "text": "++", "parent": 342, "children": [], "start_point": {"row": 150, "column": 14}, "end_point": {"row": 150, "column": 16}}, {"id": 345, "type": "assignment_expression", "text": "client = jack_client_open (client_name, options, &status, server_name)", "parent": 243, "children": [346, 347, 348], "start_point": {"row": 156, "column": 1}, "end_point": {"row": 156, "column": 71}}, {"id": 346, "type": "identifier", "text": "client", "parent": 345, "children": [], "start_point": {"row": 156, "column": 1}, "end_point": {"row": 156, "column": 7}}, {"id": 347, "type": "=", "text": "=", "parent": 345, "children": [], "start_point": {"row": 156, "column": 8}, "end_point": {"row": 156, "column": 9}}, {"id": 348, "type": "call_expression", "text": "jack_client_open (client_name, options, &status, server_name)", "parent": 345, "children": [349, 350], "start_point": {"row": 156, "column": 10}, "end_point": {"row": 156, "column": 71}}, {"id": 349, "type": "identifier", "text": "jack_client_open", "parent": 348, "children": [], "start_point": {"row": 156, "column": 10}, "end_point": {"row": 156, "column": 26}}, {"id": 350, "type": "argument_list", "text": "(client_name, options, &status, server_name)", "parent": 348, "children": [351, 352, 353, 355], "start_point": {"row": 156, "column": 27}, "end_point": {"row": 156, "column": 71}}, {"id": 351, "type": "identifier", "text": "client_name", "parent": 350, "children": [], "start_point": {"row": 156, "column": 28}, "end_point": {"row": 156, "column": 39}}, {"id": 352, "type": "identifier", "text": "options", "parent": 350, "children": [], "start_point": {"row": 156, "column": 41}, "end_point": {"row": 156, "column": 48}}, {"id": 353, "type": "pointer_expression", "text": "&status", "parent": 350, "children": [354], "start_point": {"row": 156, "column": 50}, "end_point": {"row": 156, "column": 57}}, {"id": 354, "type": "identifier", "text": "status", "parent": 353, "children": [], "start_point": {"row": 156, "column": 51}, "end_point": {"row": 156, "column": 57}}, {"id": 355, "type": "identifier", "text": "server_name", "parent": 350, "children": [], "start_point": {"row": 156, "column": 59}, "end_point": {"row": 156, "column": 70}}, {"id": 356, "type": "if_statement", "text": "if (client == NULL) {\n\t\tfprintf (stderr, \"jack_client_open() failed, \"\n\t\t\t \"status = 0x%2.0x\\n\", status);\n\t\tif (status & JackServerFailed) {\n\t\t\tfprintf (stderr, \"Unable to connect to JACK server\\n\");\n\t\t}\n\t\texit (1);\n\t}", "parent": 243, "children": [357], "start_point": {"row": 157, "column": 1}, "end_point": {"row": 164, "column": 2}}, {"id": 357, "type": "parenthesized_expression", "text": "(client == NULL)", "parent": 356, "children": [358], "start_point": {"row": 157, "column": 4}, "end_point": {"row": 157, "column": 20}}, {"id": 358, "type": "binary_expression", "text": "client == NULL", "parent": 357, "children": [359, 360, 361], "start_point": {"row": 157, "column": 5}, "end_point": {"row": 157, "column": 19}}, {"id": 359, "type": "identifier", "text": "client", "parent": 358, "children": [], "start_point": {"row": 157, "column": 5}, "end_point": {"row": 157, "column": 11}}, {"id": 360, "type": "==", "text": "==", "parent": 358, "children": [], "start_point": {"row": 157, "column": 12}, "end_point": {"row": 157, "column": 14}}, {"id": 361, "type": "null", "text": "NULL", "parent": 358, "children": [362], "start_point": {"row": 157, "column": 15}, "end_point": {"row": 157, "column": 19}}, {"id": 362, "type": "NULL", "text": "NULL", "parent": 361, "children": [], "start_point": {"row": 157, "column": 15}, "end_point": {"row": 157, "column": 19}}, {"id": 363, "type": "call_expression", "text": "fprintf (stderr, \"jack_client_open() failed, \"\n\t\t\t \"status = 0x%2.0x\\n\", status)", "parent": 356, "children": [364, 365], "start_point": {"row": 158, "column": 2}, "end_point": {"row": 159, "column": 33}}, {"id": 364, "type": "identifier", "text": "fprintf", "parent": 363, "children": [], "start_point": {"row": 158, "column": 2}, "end_point": {"row": 158, "column": 9}}, {"id": 365, "type": "argument_list", "text": "(stderr, \"jack_client_open() failed, \"\n\t\t\t \"status = 0x%2.0x\\n\", status)", "parent": 363, "children": [366, 367, 371], "start_point": {"row": 158, "column": 10}, "end_point": {"row": 159, "column": 33}}, {"id": 366, "type": "identifier", "text": "stderr", "parent": 365, "children": [], "start_point": {"row": 158, "column": 11}, "end_point": {"row": 158, "column": 17}}, {"id": 367, "type": "concatenated_string", "text": "\"jack_client_open() failed, \"\n\t\t\t \"status = 0x%2.0x\\n\"", "parent": 365, "children": [368, 369], "start_point": {"row": 158, "column": 19}, "end_point": {"row": 159, "column": 24}}, {"id": 368, "type": "string_literal", "text": "\"jack_client_open() failed, \"", "parent": 367, "children": [], "start_point": {"row": 158, "column": 19}, "end_point": {"row": 158, "column": 48}}, {"id": 369, "type": "string_literal", "text": "\"status = 0x%2.0x\\n\"", "parent": 367, "children": [370], "start_point": {"row": 159, "column": 4}, "end_point": {"row": 159, "column": 24}}, {"id": 370, "type": "escape_sequence", "text": "\\n", "parent": 369, "children": [], "start_point": {"row": 159, "column": 21}, "end_point": {"row": 159, "column": 23}}, {"id": 371, "type": "identifier", "text": "status", "parent": 365, "children": [], "start_point": {"row": 159, "column": 26}, "end_point": {"row": 159, "column": 32}}, {"id": 372, "type": "if_statement", "text": "if (status & JackServerFailed) {\n\t\t\tfprintf (stderr, \"Unable to connect to JACK server\\n\");\n\t\t}", "parent": 356, "children": [373], "start_point": {"row": 160, "column": 2}, "end_point": {"row": 162, "column": 3}}, {"id": 373, "type": "parenthesized_expression", "text": "(status & JackServerFailed)", "parent": 372, "children": [374], "start_point": {"row": 160, "column": 5}, "end_point": {"row": 160, "column": 32}}, {"id": 374, "type": "binary_expression", "text": "status & JackServerFailed", "parent": 373, "children": [375, 376], "start_point": {"row": 160, "column": 6}, "end_point": {"row": 160, "column": 31}}, {"id": 375, "type": "identifier", "text": "status", "parent": 374, "children": [], "start_point": {"row": 160, "column": 6}, "end_point": {"row": 160, "column": 12}}, {"id": 376, "type": "identifier", "text": "JackServerFailed", "parent": 374, "children": [], "start_point": {"row": 160, "column": 15}, "end_point": {"row": 160, "column": 31}}, {"id": 377, "type": "call_expression", "text": "fprintf (stderr, \"Unable to connect to JACK server\\n\")", "parent": 372, "children": [378, 379], "start_point": {"row": 161, "column": 3}, "end_point": {"row": 161, "column": 57}}, {"id": 378, "type": "identifier", "text": "fprintf", "parent": 377, "children": [], "start_point": {"row": 161, "column": 3}, "end_point": {"row": 161, "column": 10}}, {"id": 379, "type": "argument_list", "text": "(stderr, \"Unable to connect to JACK server\\n\")", "parent": 377, "children": [380, 381], "start_point": {"row": 161, "column": 11}, "end_point": {"row": 161, "column": 57}}, {"id": 380, "type": "identifier", "text": "stderr", "parent": 379, "children": [], "start_point": {"row": 161, "column": 12}, "end_point": {"row": 161, "column": 18}}, {"id": 381, "type": "string_literal", "text": "\"Unable to connect to JACK server\\n\"", "parent": 379, "children": [382], "start_point": {"row": 161, "column": 20}, "end_point": {"row": 161, "column": 56}}, {"id": 382, "type": "escape_sequence", "text": "\\n", "parent": 381, "children": [], "start_point": {"row": 161, "column": 53}, "end_point": {"row": 161, "column": 55}}, {"id": 383, "type": "call_expression", "text": "exit (1)", "parent": 356, "children": [384, 385], "start_point": {"row": 163, "column": 2}, "end_point": {"row": 163, "column": 10}}, {"id": 384, "type": "identifier", "text": "exit", "parent": 383, "children": [], "start_point": {"row": 163, "column": 2}, "end_point": {"row": 163, "column": 6}}, {"id": 385, "type": "argument_list", "text": "(1)", "parent": 383, "children": [386], "start_point": {"row": 163, "column": 7}, "end_point": {"row": 163, "column": 10}}, {"id": 386, "type": "number_literal", "text": "1", "parent": 385, "children": [], "start_point": {"row": 163, "column": 8}, "end_point": {"row": 163, "column": 9}}, {"id": 387, "type": "if_statement", "text": "if (status & JackServerStarted) {\n\t\tfprintf (stderr, \"JACK server started\\n\");\n\t}", "parent": 243, "children": [388], "start_point": {"row": 165, "column": 1}, "end_point": {"row": 167, "column": 2}}, {"id": 388, "type": "parenthesized_expression", "text": "(status & JackServerStarted)", "parent": 387, "children": [389], "start_point": {"row": 165, "column": 4}, "end_point": {"row": 165, "column": 32}}, {"id": 389, "type": "binary_expression", "text": "status & JackServerStarted", "parent": 388, "children": [390, 391], "start_point": {"row": 165, "column": 5}, "end_point": {"row": 165, "column": 31}}, {"id": 390, "type": "identifier", "text": "status", "parent": 389, "children": [], "start_point": {"row": 165, "column": 5}, "end_point": {"row": 165, "column": 11}}, {"id": 391, "type": "identifier", "text": "JackServerStarted", "parent": 389, "children": [], "start_point": {"row": 165, "column": 14}, "end_point": {"row": 165, "column": 31}}, {"id": 392, "type": "call_expression", "text": "fprintf (stderr, \"JACK server started\\n\")", "parent": 387, "children": [393, 394], "start_point": {"row": 166, "column": 2}, "end_point": {"row": 166, "column": 43}}, {"id": 393, "type": "identifier", "text": "fprintf", "parent": 392, "children": [], "start_point": {"row": 166, "column": 2}, "end_point": {"row": 166, "column": 9}}, {"id": 394, "type": "argument_list", "text": "(stderr, \"JACK server started\\n\")", "parent": 392, "children": [395, 396], "start_point": {"row": 166, "column": 10}, "end_point": {"row": 166, "column": 43}}, {"id": 395, "type": "identifier", "text": "stderr", "parent": 394, "children": [], "start_point": {"row": 166, "column": 11}, "end_point": {"row": 166, "column": 17}}, {"id": 396, "type": "string_literal", "text": "\"JACK server started\\n\"", "parent": 394, "children": [397], "start_point": {"row": 166, "column": 19}, "end_point": {"row": 166, "column": 42}}, {"id": 397, "type": "escape_sequence", "text": "\\n", "parent": 396, "children": [], "start_point": {"row": 166, "column": 39}, "end_point": {"row": 166, "column": 41}}, {"id": 398, "type": "if_statement", "text": "if (status & JackNameNotUnique) {\n\t\tclient_name = jack_get_client_name(client);\n\t\tfprintf (stderr, \"unique name `%s' assigned\\n\", client_name);\n\t}", "parent": 243, "children": [399], "start_point": {"row": 168, "column": 1}, "end_point": {"row": 171, "column": 2}}, {"id": 399, "type": "parenthesized_expression", "text": "(status & JackNameNotUnique)", "parent": 398, "children": [400], "start_point": {"row": 168, "column": 4}, "end_point": {"row": 168, "column": 32}}, {"id": 400, "type": "binary_expression", "text": "status & JackNameNotUnique", "parent": 399, "children": [401, 402], "start_point": {"row": 168, "column": 5}, "end_point": {"row": 168, "column": 31}}, {"id": 401, "type": "identifier", "text": "status", "parent": 400, "children": [], "start_point": {"row": 168, "column": 5}, "end_point": {"row": 168, "column": 11}}, {"id": 402, "type": "identifier", "text": "JackNameNotUnique", "parent": 400, "children": [], "start_point": {"row": 168, "column": 14}, "end_point": {"row": 168, "column": 31}}, {"id": 403, "type": "assignment_expression", "text": "client_name = jack_get_client_name(client)", "parent": 398, "children": [404, 405, 406], "start_point": {"row": 169, "column": 2}, "end_point": {"row": 169, "column": 44}}, {"id": 404, "type": "identifier", "text": "client_name", "parent": 403, "children": [], "start_point": {"row": 169, "column": 2}, "end_point": {"row": 169, "column": 13}}, {"id": 405, "type": "=", "text": "=", "parent": 403, "children": [], "start_point": {"row": 169, "column": 14}, "end_point": {"row": 169, "column": 15}}, {"id": 406, "type": "call_expression", "text": "jack_get_client_name(client)", "parent": 403, "children": [407, 408], "start_point": {"row": 169, "column": 16}, "end_point": {"row": 169, "column": 44}}, {"id": 407, "type": "identifier", "text": "jack_get_client_name", "parent": 406, "children": [], "start_point": {"row": 169, "column": 16}, "end_point": {"row": 169, "column": 36}}, {"id": 408, "type": "argument_list", "text": "(client)", "parent": 406, "children": [409], "start_point": {"row": 169, "column": 36}, "end_point": {"row": 169, "column": 44}}, {"id": 409, "type": "identifier", "text": "client", "parent": 408, "children": [], "start_point": {"row": 169, "column": 37}, "end_point": {"row": 169, "column": 43}}, {"id": 410, "type": "call_expression", "text": "fprintf (stderr, \"unique name `%s' assigned\\n\", client_name)", "parent": 398, "children": [411, 412], "start_point": {"row": 170, "column": 2}, "end_point": {"row": 170, "column": 62}}, {"id": 411, "type": "identifier", "text": "fprintf", "parent": 410, "children": [], "start_point": {"row": 170, "column": 2}, "end_point": {"row": 170, "column": 9}}, {"id": 412, "type": "argument_list", "text": "(stderr, \"unique name `%s' assigned\\n\", client_name)", "parent": 410, "children": [413, 414, 416], "start_point": {"row": 170, "column": 10}, "end_point": {"row": 170, "column": 62}}, {"id": 413, "type": "identifier", "text": "stderr", "parent": 412, "children": [], "start_point": {"row": 170, "column": 11}, "end_point": {"row": 170, "column": 17}}, {"id": 414, "type": "string_literal", "text": "\"unique name `%s' assigned\\n\"", "parent": 412, "children": [415], "start_point": {"row": 170, "column": 19}, "end_point": {"row": 170, "column": 48}}, {"id": 415, "type": "escape_sequence", "text": "\\n", "parent": 414, "children": [], "start_point": {"row": 170, "column": 45}, "end_point": {"row": 170, "column": 47}}, {"id": 416, "type": "identifier", "text": "client_name", "parent": 412, "children": [], "start_point": {"row": 170, "column": 50}, "end_point": {"row": 170, "column": 61}}, {"id": 417, "type": "if_statement", "text": "if (jack_set_process_thread(client, jack_thread, client) < 0)\n\t\texit(1);", "parent": 243, "children": [418], "start_point": {"row": 176, "column": 4}, "end_point": {"row": 177, "column": 10}}, {"id": 418, "type": "parenthesized_expression", "text": "(jack_set_process_thread(client, jack_thread, client) < 0)", "parent": 417, "children": [419], "start_point": {"row": 176, "column": 7}, "end_point": {"row": 176, "column": 65}}, {"id": 419, "type": "binary_expression", "text": "jack_set_process_thread(client, jack_thread, client) < 0", "parent": 418, "children": [420, 426, 427], "start_point": {"row": 176, "column": 8}, "end_point": {"row": 176, "column": 64}}, {"id": 420, "type": "call_expression", "text": "jack_set_process_thread(client, jack_thread, client)", "parent": 419, "children": [421, 422], "start_point": {"row": 176, "column": 8}, "end_point": {"row": 176, "column": 60}}, {"id": 421, "type": "identifier", "text": "jack_set_process_thread", "parent": 420, "children": [], "start_point": {"row": 176, "column": 8}, "end_point": {"row": 176, "column": 31}}, {"id": 422, "type": "argument_list", "text": "(client, jack_thread, client)", "parent": 420, "children": [423, 424, 425], "start_point": {"row": 176, "column": 31}, "end_point": {"row": 176, "column": 60}}, {"id": 423, "type": "identifier", "text": "client", "parent": 422, "children": [], "start_point": {"row": 176, "column": 32}, "end_point": {"row": 176, "column": 38}}, {"id": 424, "type": "identifier", "text": "jack_thread", "parent": 422, "children": [], "start_point": {"row": 176, "column": 40}, "end_point": {"row": 176, "column": 51}}, {"id": 425, "type": "identifier", "text": "client", "parent": 422, "children": [], "start_point": {"row": 176, "column": 53}, "end_point": {"row": 176, "column": 59}}, {"id": 426, "type": "<", "text": "<", "parent": 419, "children": [], "start_point": {"row": 176, "column": 61}, "end_point": {"row": 176, "column": 62}}, {"id": 427, "type": "number_literal", "text": "0", "parent": 419, "children": [], "start_point": {"row": 176, "column": 63}, "end_point": {"row": 176, "column": 64}}, {"id": 428, "type": "call_expression", "text": "exit(1)", "parent": 417, "children": [429, 430], "start_point": {"row": 177, "column": 2}, "end_point": {"row": 177, "column": 9}}, {"id": 429, "type": "identifier", "text": "exit", "parent": 428, "children": [], "start_point": {"row": 177, "column": 2}, "end_point": {"row": 177, "column": 6}}, {"id": 430, "type": "argument_list", "text": "(1)", "parent": 428, "children": [431], "start_point": {"row": 177, "column": 6}, "end_point": {"row": 177, "column": 9}}, {"id": 431, "type": "number_literal", "text": "1", "parent": 430, "children": [], "start_point": {"row": 177, "column": 7}, "end_point": {"row": 177, "column": 8}}, {"id": 432, "type": "call_expression", "text": "jack_on_shutdown (client, jack_shutdown, 0)", "parent": 243, "children": [433, 434], "start_point": {"row": 184, "column": 1}, "end_point": {"row": 184, "column": 44}}, {"id": 433, "type": "identifier", "text": "jack_on_shutdown", "parent": 432, "children": [], "start_point": {"row": 184, "column": 1}, "end_point": {"row": 184, "column": 17}}, {"id": 434, "type": "argument_list", "text": "(client, jack_shutdown, 0)", "parent": 432, "children": [435, 436, 437], "start_point": {"row": 184, "column": 18}, "end_point": {"row": 184, "column": 44}}, {"id": 435, "type": "identifier", "text": "client", "parent": 434, "children": [], "start_point": {"row": 184, "column": 19}, "end_point": {"row": 184, "column": 25}}, {"id": 436, "type": "identifier", "text": "jack_shutdown", "parent": 434, "children": [], "start_point": {"row": 184, "column": 27}, "end_point": {"row": 184, "column": 40}}, {"id": 437, "type": "number_literal", "text": "0", "parent": 434, "children": [], "start_point": {"row": 184, "column": 42}, "end_point": {"row": 184, "column": 43}}, {"id": 438, "type": "call_expression", "text": "printf (\"engine sample rate: %\" PRIu32 \"\\n\",\n\t\tjack_get_sample_rate (client))", "parent": 243, "children": [439, 440], "start_point": {"row": 189, "column": 1}, "end_point": {"row": 190, "column": 32}}, {"id": 439, "type": "identifier", "text": "printf", "parent": 438, "children": [], "start_point": {"row": 189, "column": 1}, "end_point": {"row": 189, "column": 7}}, {"id": 440, "type": "argument_list", "text": "(\"engine sample rate: %\" PRIu32 \"\\n\",\n\t\tjack_get_sample_rate (client))", "parent": 438, "children": [441, 446], "start_point": {"row": 189, "column": 8}, "end_point": {"row": 190, "column": 32}}, {"id": 441, "type": "concatenated_string", "text": "\"engine sample rate: %\" PRIu32 \"\\n\"", "parent": 440, "children": [442, 443, 444], "start_point": {"row": 189, "column": 9}, "end_point": {"row": 189, "column": 44}}, {"id": 442, "type": "string_literal", "text": "\"engine sample rate: %\"", "parent": 441, "children": [], "start_point": {"row": 189, "column": 9}, "end_point": {"row": 189, "column": 32}}, {"id": 443, "type": "identifier", "text": "PRIu32", "parent": 441, "children": [], "start_point": {"row": 189, "column": 33}, "end_point": {"row": 189, "column": 39}}, {"id": 444, "type": "string_literal", "text": "\"\\n\"", "parent": 441, "children": [445], "start_point": {"row": 189, "column": 40}, "end_point": {"row": 189, "column": 44}}, {"id": 445, "type": "escape_sequence", "text": "\\n", "parent": 444, "children": [], "start_point": {"row": 189, "column": 41}, "end_point": {"row": 189, "column": 43}}, {"id": 446, "type": "call_expression", "text": "jack_get_sample_rate (client)", "parent": 440, "children": [447, 448], "start_point": {"row": 190, "column": 2}, "end_point": {"row": 190, "column": 31}}, {"id": 447, "type": "identifier", "text": "jack_get_sample_rate", "parent": 446, "children": [], "start_point": {"row": 190, "column": 2}, "end_point": {"row": 190, "column": 22}}, {"id": 448, "type": "argument_list", "text": "(client)", "parent": 446, "children": [449], "start_point": {"row": 190, "column": 23}, "end_point": {"row": 190, "column": 31}}, {"id": 449, "type": "identifier", "text": "client", "parent": 448, "children": [], "start_point": {"row": 190, "column": 24}, "end_point": {"row": 190, "column": 30}}, {"id": 450, "type": "assignment_expression", "text": "input_port = jack_port_register (client, \"input\",\n\t\t\t\t\t JACK_DEFAULT_AUDIO_TYPE,\n\t\t\t\t\t JackPortIsInput, 0)", "parent": 243, "children": [451, 452, 453], "start_point": {"row": 194, "column": 1}, "end_point": {"row": 196, "column": 25}}, {"id": 451, "type": "identifier", "text": "input_port", "parent": 450, "children": [], "start_point": {"row": 194, "column": 1}, "end_point": {"row": 194, "column": 11}}, {"id": 452, "type": "=", "text": "=", "parent": 450, "children": [], "start_point": {"row": 194, "column": 12}, "end_point": {"row": 194, "column": 13}}, {"id": 453, "type": "call_expression", "text": "jack_port_register (client, \"input\",\n\t\t\t\t\t JACK_DEFAULT_AUDIO_TYPE,\n\t\t\t\t\t JackPortIsInput, 0)", "parent": 450, "children": [454, 455], "start_point": {"row": 194, "column": 14}, "end_point": {"row": 196, "column": 25}}, {"id": 454, "type": "identifier", "text": "jack_port_register", "parent": 453, "children": [], "start_point": {"row": 194, "column": 14}, "end_point": {"row": 194, "column": 32}}, {"id": 455, "type": "argument_list", "text": "(client, \"input\",\n\t\t\t\t\t JACK_DEFAULT_AUDIO_TYPE,\n\t\t\t\t\t JackPortIsInput, 0)", "parent": 453, "children": [456, 457, 458, 459, 460], "start_point": {"row": 194, "column": 33}, "end_point": {"row": 196, "column": 25}}, {"id": 456, "type": "identifier", "text": "client", "parent": 455, "children": [], "start_point": {"row": 194, "column": 34}, "end_point": {"row": 194, "column": 40}}, {"id": 457, "type": "string_literal", "text": "\"input\"", "parent": 455, "children": [], "start_point": {"row": 194, "column": 42}, "end_point": {"row": 194, "column": 49}}, {"id": 458, "type": "identifier", "text": "JACK_DEFAULT_AUDIO_TYPE", "parent": 455, "children": [], "start_point": {"row": 195, "column": 6}, "end_point": {"row": 195, "column": 29}}, {"id": 459, "type": "identifier", "text": "JackPortIsInput", "parent": 455, "children": [], "start_point": {"row": 196, "column": 6}, "end_point": {"row": 196, "column": 21}}, {"id": 460, "type": "number_literal", "text": "0", "parent": 455, "children": [], "start_point": {"row": 196, "column": 23}, "end_point": {"row": 196, "column": 24}}, {"id": 461, "type": "assignment_expression", "text": "output_port = jack_port_register (client, \"output\",\n\t\t\t\t\t JACK_DEFAULT_AUDIO_TYPE,\n\t\t\t\t\t JackPortIsOutput, 0)", "parent": 243, "children": [462, 463, 464], "start_point": {"row": 197, "column": 1}, "end_point": {"row": 199, "column": 27}}, {"id": 462, "type": "identifier", "text": "output_port", "parent": 461, "children": [], "start_point": {"row": 197, "column": 1}, "end_point": {"row": 197, "column": 12}}, {"id": 463, "type": "=", "text": "=", "parent": 461, "children": [], "start_point": {"row": 197, "column": 13}, "end_point": {"row": 197, "column": 14}}, {"id": 464, "type": "call_expression", "text": "jack_port_register (client, \"output\",\n\t\t\t\t\t JACK_DEFAULT_AUDIO_TYPE,\n\t\t\t\t\t JackPortIsOutput, 0)", "parent": 461, "children": [465, 466], "start_point": {"row": 197, "column": 15}, "end_point": {"row": 199, "column": 27}}, {"id": 465, "type": "identifier", "text": "jack_port_register", "parent": 464, "children": [], "start_point": {"row": 197, "column": 15}, "end_point": {"row": 197, "column": 33}}, {"id": 466, "type": "argument_list", "text": "(client, \"output\",\n\t\t\t\t\t JACK_DEFAULT_AUDIO_TYPE,\n\t\t\t\t\t JackPortIsOutput, 0)", "parent": 464, "children": [467, 468, 469, 470, 471], "start_point": {"row": 197, "column": 34}, "end_point": {"row": 199, "column": 27}}, {"id": 467, "type": "identifier", "text": "client", "parent": 466, "children": [], "start_point": {"row": 197, "column": 35}, "end_point": {"row": 197, "column": 41}}, {"id": 468, "type": "string_literal", "text": "\"output\"", "parent": 466, "children": [], "start_point": {"row": 197, "column": 43}, "end_point": {"row": 197, "column": 51}}, {"id": 469, "type": "identifier", "text": "JACK_DEFAULT_AUDIO_TYPE", "parent": 466, "children": [], "start_point": {"row": 198, "column": 7}, "end_point": {"row": 198, "column": 30}}, {"id": 470, "type": "identifier", "text": "JackPortIsOutput", "parent": 466, "children": [], "start_point": {"row": 199, "column": 7}, "end_point": {"row": 199, "column": 23}}, {"id": 471, "type": "number_literal", "text": "0", "parent": 466, "children": [], "start_point": {"row": 199, "column": 25}, "end_point": {"row": 199, "column": 26}}, {"id": 472, "type": "if_statement", "text": "if ((input_port == NULL) || (output_port == NULL)) {\n\t\tfprintf(stderr, \"no more JACK ports available\\n\");\n\t\texit (1);\n\t}", "parent": 243, "children": [473], "start_point": {"row": 201, "column": 1}, "end_point": {"row": 204, "column": 2}}, {"id": 473, "type": "parenthesized_expression", "text": "((input_port == NULL) || (output_port == NULL))", "parent": 472, "children": [474], "start_point": {"row": 201, "column": 4}, "end_point": {"row": 201, "column": 51}}, {"id": 474, "type": "binary_expression", "text": "(input_port == NULL) || (output_port == NULL)", "parent": 473, "children": [475, 481, 482], "start_point": {"row": 201, "column": 5}, "end_point": {"row": 201, "column": 50}}, {"id": 475, "type": "parenthesized_expression", "text": "(input_port == NULL)", "parent": 474, "children": [476], "start_point": {"row": 201, "column": 5}, "end_point": {"row": 201, "column": 25}}, {"id": 476, "type": "binary_expression", "text": "input_port == NULL", "parent": 475, "children": [477, 478, 479], "start_point": {"row": 201, "column": 6}, "end_point": {"row": 201, "column": 24}}, {"id": 477, "type": "identifier", "text": "input_port", "parent": 476, "children": [], "start_point": {"row": 201, "column": 6}, "end_point": {"row": 201, "column": 16}}, {"id": 478, "type": "==", "text": "==", "parent": 476, "children": [], "start_point": {"row": 201, "column": 17}, "end_point": {"row": 201, "column": 19}}, {"id": 479, "type": "null", "text": "NULL", "parent": 476, "children": [480], "start_point": {"row": 201, "column": 20}, "end_point": {"row": 201, "column": 24}}, {"id": 480, "type": "NULL", "text": "NULL", "parent": 479, "children": [], "start_point": {"row": 201, "column": 20}, "end_point": {"row": 201, "column": 24}}, {"id": 481, "type": "||", "text": "||", "parent": 474, "children": [], "start_point": {"row": 201, "column": 26}, "end_point": {"row": 201, "column": 28}}, {"id": 482, "type": "parenthesized_expression", "text": "(output_port == NULL)", "parent": 474, "children": [483], "start_point": {"row": 201, "column": 29}, "end_point": {"row": 201, "column": 50}}, {"id": 483, "type": "binary_expression", "text": "output_port == NULL", "parent": 482, "children": [484, 485, 486], "start_point": {"row": 201, "column": 30}, "end_point": {"row": 201, "column": 49}}, {"id": 484, "type": "identifier", "text": "output_port", "parent": 483, "children": [], "start_point": {"row": 201, "column": 30}, "end_point": {"row": 201, "column": 41}}, {"id": 485, "type": "==", "text": "==", "parent": 483, "children": [], "start_point": {"row": 201, "column": 42}, "end_point": {"row": 201, "column": 44}}, {"id": 486, "type": "null", "text": "NULL", "parent": 483, "children": [487], "start_point": {"row": 201, "column": 45}, "end_point": {"row": 201, "column": 49}}, {"id": 487, "type": "NULL", "text": "NULL", "parent": 486, "children": [], "start_point": {"row": 201, "column": 45}, "end_point": {"row": 201, "column": 49}}, {"id": 488, "type": "call_expression", "text": "fprintf(stderr, \"no more JACK ports available\\n\")", "parent": 472, "children": [489, 490], "start_point": {"row": 202, "column": 2}, "end_point": {"row": 202, "column": 51}}, {"id": 489, "type": "identifier", "text": "fprintf", "parent": 488, "children": [], "start_point": {"row": 202, "column": 2}, "end_point": {"row": 202, "column": 9}}, {"id": 490, "type": "argument_list", "text": "(stderr, \"no more JACK ports available\\n\")", "parent": 488, "children": [491, 492], "start_point": {"row": 202, "column": 9}, "end_point": {"row": 202, "column": 51}}, {"id": 491, "type": "identifier", "text": "stderr", "parent": 490, "children": [], "start_point": {"row": 202, "column": 10}, "end_point": {"row": 202, "column": 16}}, {"id": 492, "type": "string_literal", "text": "\"no more JACK ports available\\n\"", "parent": 490, "children": [493], "start_point": {"row": 202, "column": 18}, "end_point": {"row": 202, "column": 50}}, {"id": 493, "type": "escape_sequence", "text": "\\n", "parent": 492, "children": [], "start_point": {"row": 202, "column": 47}, "end_point": {"row": 202, "column": 49}}, {"id": 494, "type": "call_expression", "text": "exit (1)", "parent": 472, "children": [495, 496], "start_point": {"row": 203, "column": 2}, "end_point": {"row": 203, "column": 10}}, {"id": 495, "type": "identifier", "text": "exit", "parent": 494, "children": [], "start_point": {"row": 203, "column": 2}, "end_point": {"row": 203, "column": 6}}, {"id": 496, "type": "argument_list", "text": "(1)", "parent": 494, "children": [497], "start_point": {"row": 203, "column": 7}, "end_point": {"row": 203, "column": 10}}, {"id": 497, "type": "number_literal", "text": "1", "parent": 496, "children": [], "start_point": {"row": 203, "column": 8}, "end_point": {"row": 203, "column": 9}}, {"id": 498, "type": "if_statement", "text": "if (jack_activate (client)) {\n\t\tfprintf (stderr, \"cannot activate client\");\n\t\texit (1);\n\t}", "parent": 243, "children": [499], "start_point": {"row": 209, "column": 1}, "end_point": {"row": 212, "column": 2}}, {"id": 499, "type": "parenthesized_expression", "text": "(jack_activate (client))", "parent": 498, "children": [500], "start_point": {"row": 209, "column": 4}, "end_point": {"row": 209, "column": 28}}, {"id": 500, "type": "call_expression", "text": "jack_activate (client)", "parent": 499, "children": [501, 502], "start_point": {"row": 209, "column": 5}, "end_point": {"row": 209, "column": 27}}, {"id": 501, "type": "identifier", "text": "jack_activate", "parent": 500, "children": [], "start_point": {"row": 209, "column": 5}, "end_point": {"row": 209, "column": 18}}, {"id": 502, "type": "argument_list", "text": "(client)", "parent": 500, "children": [503], "start_point": {"row": 209, "column": 19}, "end_point": {"row": 209, "column": 27}}, {"id": 503, "type": "identifier", "text": "client", "parent": 502, "children": [], "start_point": {"row": 209, "column": 20}, "end_point": {"row": 209, "column": 26}}, {"id": 504, "type": "call_expression", "text": "fprintf (stderr, \"cannot activate client\")", "parent": 498, "children": [505, 506], "start_point": {"row": 210, "column": 2}, "end_point": {"row": 210, "column": 44}}, {"id": 505, "type": "identifier", "text": "fprintf", "parent": 504, "children": [], "start_point": {"row": 210, "column": 2}, "end_point": {"row": 210, "column": 9}}, {"id": 506, "type": "argument_list", "text": "(stderr, \"cannot activate client\")", "parent": 504, "children": [507, 508], "start_point": {"row": 210, "column": 10}, "end_point": {"row": 210, "column": 44}}, {"id": 507, "type": "identifier", "text": "stderr", "parent": 506, "children": [], "start_point": {"row": 210, "column": 11}, "end_point": {"row": 210, "column": 17}}, {"id": 508, "type": "string_literal", "text": "\"cannot activate client\"", "parent": 506, "children": [], "start_point": {"row": 210, "column": 19}, "end_point": {"row": 210, "column": 43}}, {"id": 509, "type": "call_expression", "text": "exit (1)", "parent": 498, "children": [510, 511], "start_point": {"row": 211, "column": 2}, "end_point": {"row": 211, "column": 10}}, {"id": 510, "type": "identifier", "text": "exit", "parent": 509, "children": [], "start_point": {"row": 211, "column": 2}, "end_point": {"row": 211, "column": 6}}, {"id": 511, "type": "argument_list", "text": "(1)", "parent": 509, "children": [512], "start_point": {"row": 211, "column": 7}, "end_point": {"row": 211, "column": 10}}, {"id": 512, "type": "number_literal", "text": "1", "parent": 511, "children": [], "start_point": {"row": 211, "column": 8}, "end_point": {"row": 211, "column": 9}}, {"id": 513, "type": "assignment_expression", "text": "ports = jack_get_ports (client, NULL, NULL,\n\t\t\t\tJackPortIsPhysical|JackPortIsOutput)", "parent": 243, "children": [514, 515, 516], "start_point": {"row": 222, "column": 1}, "end_point": {"row": 223, "column": 40}}, {"id": 514, "type": "identifier", "text": "ports", "parent": 513, "children": [], "start_point": {"row": 222, "column": 1}, "end_point": {"row": 222, "column": 6}}, {"id": 515, "type": "=", "text": "=", "parent": 513, "children": [], "start_point": {"row": 222, "column": 7}, "end_point": {"row": 222, "column": 8}}, {"id": 516, "type": "call_expression", "text": "jack_get_ports (client, NULL, NULL,\n\t\t\t\tJackPortIsPhysical|JackPortIsOutput)", "parent": 513, "children": [517, 518], "start_point": {"row": 222, "column": 9}, "end_point": {"row": 223, "column": 40}}, {"id": 517, "type": "identifier", "text": "jack_get_ports", "parent": 516, "children": [], "start_point": {"row": 222, "column": 9}, "end_point": {"row": 222, "column": 23}}, {"id": 518, "type": "argument_list", "text": "(client, NULL, NULL,\n\t\t\t\tJackPortIsPhysical|JackPortIsOutput)", "parent": 516, "children": [519, 520, 522, 524], "start_point": {"row": 222, "column": 24}, "end_point": {"row": 223, "column": 40}}, {"id": 519, "type": "identifier", "text": "client", "parent": 518, "children": [], "start_point": {"row": 222, "column": 25}, "end_point": {"row": 222, "column": 31}}, {"id": 520, "type": "null", "text": "NULL", "parent": 518, "children": [521], "start_point": {"row": 222, "column": 33}, "end_point": {"row": 222, "column": 37}}, {"id": 521, "type": "NULL", "text": "NULL", "parent": 520, "children": [], "start_point": {"row": 222, "column": 33}, "end_point": {"row": 222, "column": 37}}, {"id": 522, "type": "null", "text": "NULL", "parent": 518, "children": [523], "start_point": {"row": 222, "column": 39}, "end_point": {"row": 222, "column": 43}}, {"id": 523, "type": "NULL", "text": "NULL", "parent": 522, "children": [], "start_point": {"row": 222, "column": 39}, "end_point": {"row": 222, "column": 43}}, {"id": 524, "type": "binary_expression", "text": "JackPortIsPhysical|JackPortIsOutput", "parent": 518, "children": [525, 526], "start_point": {"row": 223, "column": 4}, "end_point": {"row": 223, "column": 39}}, {"id": 525, "type": "identifier", "text": "JackPortIsPhysical", "parent": 524, "children": [], "start_point": {"row": 223, "column": 4}, "end_point": {"row": 223, "column": 22}}, {"id": 526, "type": "identifier", "text": "JackPortIsOutput", "parent": 524, "children": [], "start_point": {"row": 223, "column": 23}, "end_point": {"row": 223, "column": 39}}, {"id": 527, "type": "if_statement", "text": "if (ports == NULL) {\n\t\tfprintf(stderr, \"no physical capture ports\\n\");\n\t\texit (1);\n\t}", "parent": 243, "children": [528], "start_point": {"row": 224, "column": 1}, "end_point": {"row": 227, "column": 2}}, {"id": 528, "type": "parenthesized_expression", "text": "(ports == NULL)", "parent": 527, "children": [529], "start_point": {"row": 224, "column": 4}, "end_point": {"row": 224, "column": 19}}, {"id": 529, "type": "binary_expression", "text": "ports == NULL", "parent": 528, "children": [530, 531, 532], "start_point": {"row": 224, "column": 5}, "end_point": {"row": 224, "column": 18}}, {"id": 530, "type": "identifier", "text": "ports", "parent": 529, "children": [], "start_point": {"row": 224, "column": 5}, "end_point": {"row": 224, "column": 10}}, {"id": 531, "type": "==", "text": "==", "parent": 529, "children": [], "start_point": {"row": 224, "column": 11}, "end_point": {"row": 224, "column": 13}}, {"id": 532, "type": "null", "text": "NULL", "parent": 529, "children": [533], "start_point": {"row": 224, "column": 14}, "end_point": {"row": 224, "column": 18}}, {"id": 533, "type": "NULL", "text": "NULL", "parent": 532, "children": [], "start_point": {"row": 224, "column": 14}, "end_point": {"row": 224, "column": 18}}, {"id": 534, "type": "call_expression", "text": "fprintf(stderr, \"no physical capture ports\\n\")", "parent": 527, "children": [535, 536], "start_point": {"row": 225, "column": 2}, "end_point": {"row": 225, "column": 48}}, {"id": 535, "type": "identifier", "text": "fprintf", "parent": 534, "children": [], "start_point": {"row": 225, "column": 2}, "end_point": {"row": 225, "column": 9}}, {"id": 536, "type": "argument_list", "text": "(stderr, \"no physical capture ports\\n\")", "parent": 534, "children": [537, 538], "start_point": {"row": 225, "column": 9}, "end_point": {"row": 225, "column": 48}}, {"id": 537, "type": "identifier", "text": "stderr", "parent": 536, "children": [], "start_point": {"row": 225, "column": 10}, "end_point": {"row": 225, "column": 16}}, {"id": 538, "type": "string_literal", "text": "\"no physical capture ports\\n\"", "parent": 536, "children": [539], "start_point": {"row": 225, "column": 18}, "end_point": {"row": 225, "column": 47}}, {"id": 539, "type": "escape_sequence", "text": "\\n", "parent": 538, "children": [], "start_point": {"row": 225, "column": 44}, "end_point": {"row": 225, "column": 46}}, {"id": 540, "type": "call_expression", "text": "exit (1)", "parent": 527, "children": [541, 542], "start_point": {"row": 226, "column": 2}, "end_point": {"row": 226, "column": 10}}, {"id": 541, "type": "identifier", "text": "exit", "parent": 540, "children": [], "start_point": {"row": 226, "column": 2}, "end_point": {"row": 226, "column": 6}}, {"id": 542, "type": "argument_list", "text": "(1)", "parent": 540, "children": [543], "start_point": {"row": 226, "column": 7}, "end_point": {"row": 226, "column": 10}}, {"id": 543, "type": "number_literal", "text": "1", "parent": 542, "children": [], "start_point": {"row": 226, "column": 8}, "end_point": {"row": 226, "column": 9}}, {"id": 544, "type": "if_statement", "text": "if (jack_connect (client, ports[0], jack_port_name (input_port))) {\n\t\tfprintf (stderr, \"cannot connect input ports\\n\");\n\t}", "parent": 243, "children": [545], "start_point": {"row": 229, "column": 1}, "end_point": {"row": 231, "column": 2}}, {"id": 545, "type": "parenthesized_expression", "text": "(jack_connect (client, ports[0], jack_port_name (input_port)))", "parent": 544, "children": [546], "start_point": {"row": 229, "column": 4}, "end_point": {"row": 229, "column": 66}}, {"id": 546, "type": "call_expression", "text": "jack_connect (client, ports[0], jack_port_name (input_port))", "parent": 545, "children": [547, 548], "start_point": {"row": 229, "column": 5}, "end_point": {"row": 229, "column": 65}}, {"id": 547, "type": "identifier", "text": "jack_connect", "parent": 546, "children": [], "start_point": {"row": 229, "column": 5}, "end_point": {"row": 229, "column": 17}}, {"id": 548, "type": "argument_list", "text": "(client, ports[0], jack_port_name (input_port))", "parent": 546, "children": [549, 550, 553], "start_point": {"row": 229, "column": 18}, "end_point": {"row": 229, "column": 65}}, {"id": 549, "type": "identifier", "text": "client", "parent": 548, "children": [], "start_point": {"row": 229, "column": 19}, "end_point": {"row": 229, "column": 25}}, {"id": 550, "type": "subscript_expression", "text": "ports[0]", "parent": 548, "children": [551, 552], "start_point": {"row": 229, "column": 27}, "end_point": {"row": 229, "column": 35}}, {"id": 551, "type": "identifier", "text": "ports", "parent": 550, "children": [], "start_point": {"row": 229, "column": 27}, "end_point": {"row": 229, "column": 32}}, {"id": 552, "type": "number_literal", "text": "0", "parent": 550, "children": [], "start_point": {"row": 229, "column": 33}, "end_point": {"row": 229, "column": 34}}, {"id": 553, "type": "call_expression", "text": "jack_port_name (input_port)", "parent": 548, "children": [554, 555], "start_point": {"row": 229, "column": 37}, "end_point": {"row": 229, "column": 64}}, {"id": 554, "type": "identifier", "text": "jack_port_name", "parent": 553, "children": [], "start_point": {"row": 229, "column": 37}, "end_point": {"row": 229, "column": 51}}, {"id": 555, "type": "argument_list", "text": "(input_port)", "parent": 553, "children": [556], "start_point": {"row": 229, "column": 52}, "end_point": {"row": 229, "column": 64}}, {"id": 556, "type": "identifier", "text": "input_port", "parent": 555, "children": [], "start_point": {"row": 229, "column": 53}, "end_point": {"row": 229, "column": 63}}, {"id": 557, "type": "call_expression", "text": "fprintf (stderr, \"cannot connect input ports\\n\")", "parent": 544, "children": [558, 559], "start_point": {"row": 230, "column": 2}, "end_point": {"row": 230, "column": 50}}, {"id": 558, "type": "identifier", "text": "fprintf", "parent": 557, "children": [], "start_point": {"row": 230, "column": 2}, "end_point": {"row": 230, "column": 9}}, {"id": 559, "type": "argument_list", "text": "(stderr, \"cannot connect input ports\\n\")", "parent": 557, "children": [560, 561], "start_point": {"row": 230, "column": 10}, "end_point": {"row": 230, "column": 50}}, {"id": 560, "type": "identifier", "text": "stderr", "parent": 559, "children": [], "start_point": {"row": 230, "column": 11}, "end_point": {"row": 230, "column": 17}}, {"id": 561, "type": "string_literal", "text": "\"cannot connect input ports\\n\"", "parent": 559, "children": [562], "start_point": {"row": 230, "column": 19}, "end_point": {"row": 230, "column": 49}}, {"id": 562, "type": "escape_sequence", "text": "\\n", "parent": 561, "children": [], "start_point": {"row": 230, "column": 46}, "end_point": {"row": 230, "column": 48}}, {"id": 563, "type": "call_expression", "text": "jack_free (ports)", "parent": 243, "children": [564, 565], "start_point": {"row": 233, "column": 1}, "end_point": {"row": 233, "column": 18}}, {"id": 564, "type": "identifier", "text": "jack_free", "parent": 563, "children": [], "start_point": {"row": 233, "column": 1}, "end_point": {"row": 233, "column": 10}}, {"id": 565, "type": "argument_list", "text": "(ports)", "parent": 563, "children": [566], "start_point": {"row": 233, "column": 11}, "end_point": {"row": 233, "column": 18}}, {"id": 566, "type": "identifier", "text": "ports", "parent": 565, "children": [], "start_point": {"row": 233, "column": 12}, "end_point": {"row": 233, "column": 17}}, {"id": 567, "type": "assignment_expression", "text": "ports = jack_get_ports (client, NULL, NULL,\n\t\t\t\tJackPortIsPhysical|JackPortIsInput)", "parent": 243, "children": [568, 569, 570], "start_point": {"row": 235, "column": 1}, "end_point": {"row": 236, "column": 39}}, {"id": 568, "type": "identifier", "text": "ports", "parent": 567, "children": [], "start_point": {"row": 235, "column": 1}, "end_point": {"row": 235, "column": 6}}, {"id": 569, "type": "=", "text": "=", "parent": 567, "children": [], "start_point": {"row": 235, "column": 7}, "end_point": {"row": 235, "column": 8}}, {"id": 570, "type": "call_expression", "text": "jack_get_ports (client, NULL, NULL,\n\t\t\t\tJackPortIsPhysical|JackPortIsInput)", "parent": 567, "children": [571, 572], "start_point": {"row": 235, "column": 9}, "end_point": {"row": 236, "column": 39}}, {"id": 571, "type": "identifier", "text": "jack_get_ports", "parent": 570, "children": [], "start_point": {"row": 235, "column": 9}, "end_point": {"row": 235, "column": 23}}, {"id": 572, "type": "argument_list", "text": "(client, NULL, NULL,\n\t\t\t\tJackPortIsPhysical|JackPortIsInput)", "parent": 570, "children": [573, 574, 576, 578], "start_point": {"row": 235, "column": 24}, "end_point": {"row": 236, "column": 39}}, {"id": 573, "type": "identifier", "text": "client", "parent": 572, "children": [], "start_point": {"row": 235, "column": 25}, "end_point": {"row": 235, "column": 31}}, {"id": 574, "type": "null", "text": "NULL", "parent": 572, "children": [575], "start_point": {"row": 235, "column": 33}, "end_point": {"row": 235, "column": 37}}, {"id": 575, "type": "NULL", "text": "NULL", "parent": 574, "children": [], "start_point": {"row": 235, "column": 33}, "end_point": {"row": 235, "column": 37}}, {"id": 576, "type": "null", "text": "NULL", "parent": 572, "children": [577], "start_point": {"row": 235, "column": 39}, "end_point": {"row": 235, "column": 43}}, {"id": 577, "type": "NULL", "text": "NULL", "parent": 576, "children": [], "start_point": {"row": 235, "column": 39}, "end_point": {"row": 235, "column": 43}}, {"id": 578, "type": "binary_expression", "text": "JackPortIsPhysical|JackPortIsInput", "parent": 572, "children": [579, 580], "start_point": {"row": 236, "column": 4}, "end_point": {"row": 236, "column": 38}}, {"id": 579, "type": "identifier", "text": "JackPortIsPhysical", "parent": 578, "children": [], "start_point": {"row": 236, "column": 4}, "end_point": {"row": 236, "column": 22}}, {"id": 580, "type": "identifier", "text": "JackPortIsInput", "parent": 578, "children": [], "start_point": {"row": 236, "column": 23}, "end_point": {"row": 236, "column": 38}}, {"id": 581, "type": "if_statement", "text": "if (ports == NULL) {\n\t\tfprintf(stderr, \"no physical playback ports\\n\");\n\t\texit (1);\n\t}", "parent": 243, "children": [582], "start_point": {"row": 237, "column": 1}, "end_point": {"row": 240, "column": 2}}, {"id": 582, "type": "parenthesized_expression", "text": "(ports == NULL)", "parent": 581, "children": [583], "start_point": {"row": 237, "column": 4}, "end_point": {"row": 237, "column": 19}}, {"id": 583, "type": "binary_expression", "text": "ports == NULL", "parent": 582, "children": [584, 585, 586], "start_point": {"row": 237, "column": 5}, "end_point": {"row": 237, "column": 18}}, {"id": 584, "type": "identifier", "text": "ports", "parent": 583, "children": [], "start_point": {"row": 237, "column": 5}, "end_point": {"row": 237, "column": 10}}, {"id": 585, "type": "==", "text": "==", "parent": 583, "children": [], "start_point": {"row": 237, "column": 11}, "end_point": {"row": 237, "column": 13}}, {"id": 586, "type": "null", "text": "NULL", "parent": 583, "children": [587], "start_point": {"row": 237, "column": 14}, "end_point": {"row": 237, "column": 18}}, {"id": 587, "type": "NULL", "text": "NULL", "parent": 586, "children": [], "start_point": {"row": 237, "column": 14}, "end_point": {"row": 237, "column": 18}}, {"id": 588, "type": "call_expression", "text": "fprintf(stderr, \"no physical playback ports\\n\")", "parent": 581, "children": [589, 590], "start_point": {"row": 238, "column": 2}, "end_point": {"row": 238, "column": 49}}, {"id": 589, "type": "identifier", "text": "fprintf", "parent": 588, "children": [], "start_point": {"row": 238, "column": 2}, "end_point": {"row": 238, "column": 9}}, {"id": 590, "type": "argument_list", "text": "(stderr, \"no physical playback ports\\n\")", "parent": 588, "children": [591, 592], "start_point": {"row": 238, "column": 9}, "end_point": {"row": 238, "column": 49}}, {"id": 591, "type": "identifier", "text": "stderr", "parent": 590, "children": [], "start_point": {"row": 238, "column": 10}, "end_point": {"row": 238, "column": 16}}, {"id": 592, "type": "string_literal", "text": "\"no physical playback ports\\n\"", "parent": 590, "children": [593], "start_point": {"row": 238, "column": 18}, "end_point": {"row": 238, "column": 48}}, {"id": 593, "type": "escape_sequence", "text": "\\n", "parent": 592, "children": [], "start_point": {"row": 238, "column": 45}, "end_point": {"row": 238, "column": 47}}, {"id": 594, "type": "call_expression", "text": "exit (1)", "parent": 581, "children": [595, 596], "start_point": {"row": 239, "column": 2}, "end_point": {"row": 239, "column": 10}}, {"id": 595, "type": "identifier", "text": "exit", "parent": 594, "children": [], "start_point": {"row": 239, "column": 2}, "end_point": {"row": 239, "column": 6}}, {"id": 596, "type": "argument_list", "text": "(1)", "parent": 594, "children": [597], "start_point": {"row": 239, "column": 7}, "end_point": {"row": 239, "column": 10}}, {"id": 597, "type": "number_literal", "text": "1", "parent": 596, "children": [], "start_point": {"row": 239, "column": 8}, "end_point": {"row": 239, "column": 9}}, {"id": 598, "type": "if_statement", "text": "if (jack_connect (client, jack_port_name (output_port), ports[0])) {\n\t\tfprintf (stderr, \"cannot connect output ports\\n\");\n\t}", "parent": 243, "children": [599], "start_point": {"row": 242, "column": 1}, "end_point": {"row": 244, "column": 2}}, {"id": 599, "type": "parenthesized_expression", "text": "(jack_connect (client, jack_port_name (output_port), ports[0]))", "parent": 598, "children": [600], "start_point": {"row": 242, "column": 4}, "end_point": {"row": 242, "column": 67}}, {"id": 600, "type": "call_expression", "text": "jack_connect (client, jack_port_name (output_port), ports[0])", "parent": 599, "children": [601, 602], "start_point": {"row": 242, "column": 5}, "end_point": {"row": 242, "column": 66}}, {"id": 601, "type": "identifier", "text": "jack_connect", "parent": 600, "children": [], "start_point": {"row": 242, "column": 5}, "end_point": {"row": 242, "column": 17}}, {"id": 602, "type": "argument_list", "text": "(client, jack_port_name (output_port), ports[0])", "parent": 600, "children": [603, 604, 608], "start_point": {"row": 242, "column": 18}, "end_point": {"row": 242, "column": 66}}, {"id": 603, "type": "identifier", "text": "client", "parent": 602, "children": [], "start_point": {"row": 242, "column": 19}, "end_point": {"row": 242, "column": 25}}, {"id": 604, "type": "call_expression", "text": "jack_port_name (output_port)", "parent": 602, "children": [605, 606], "start_point": {"row": 242, "column": 27}, "end_point": {"row": 242, "column": 55}}, {"id": 605, "type": "identifier", "text": "jack_port_name", "parent": 604, "children": [], "start_point": {"row": 242, "column": 27}, "end_point": {"row": 242, "column": 41}}, {"id": 606, "type": "argument_list", "text": "(output_port)", "parent": 604, "children": [607], "start_point": {"row": 242, "column": 42}, "end_point": {"row": 242, "column": 55}}, {"id": 607, "type": "identifier", "text": "output_port", "parent": 606, "children": [], "start_point": {"row": 242, "column": 43}, "end_point": {"row": 242, "column": 54}}, {"id": 608, "type": "subscript_expression", "text": "ports[0]", "parent": 602, "children": [609, 610], "start_point": {"row": 242, "column": 57}, "end_point": {"row": 242, "column": 65}}, {"id": 609, "type": "identifier", "text": "ports", "parent": 608, "children": [], "start_point": {"row": 242, "column": 57}, "end_point": {"row": 242, "column": 62}}, {"id": 610, "type": "number_literal", "text": "0", "parent": 608, "children": [], "start_point": {"row": 242, "column": 63}, "end_point": {"row": 242, "column": 64}}, {"id": 611, "type": "call_expression", "text": "fprintf (stderr, \"cannot connect output ports\\n\")", "parent": 598, "children": [612, 613], "start_point": {"row": 243, "column": 2}, "end_point": {"row": 243, "column": 51}}, {"id": 612, "type": "identifier", "text": "fprintf", "parent": 611, "children": [], "start_point": {"row": 243, "column": 2}, "end_point": {"row": 243, "column": 9}}, {"id": 613, "type": "argument_list", "text": "(stderr, \"cannot connect output ports\\n\")", "parent": 611, "children": [614, 615], "start_point": {"row": 243, "column": 10}, "end_point": {"row": 243, "column": 51}}, {"id": 614, "type": "identifier", "text": "stderr", "parent": 613, "children": [], "start_point": {"row": 243, "column": 11}, "end_point": {"row": 243, "column": 17}}, {"id": 615, "type": "string_literal", "text": "\"cannot connect output ports\\n\"", "parent": 613, "children": [616], "start_point": {"row": 243, "column": 19}, "end_point": {"row": 243, "column": 50}}, {"id": 616, "type": "escape_sequence", "text": "\\n", "parent": 615, "children": [], "start_point": {"row": 243, "column": 47}, "end_point": {"row": 243, "column": 49}}, {"id": 617, "type": "call_expression", "text": "jack_free (ports)", "parent": 243, "children": [618, 619], "start_point": {"row": 246, "column": 1}, "end_point": {"row": 246, "column": 18}}, {"id": 618, "type": "identifier", "text": "jack_free", "parent": 617, "children": [], "start_point": {"row": 246, "column": 1}, "end_point": {"row": 246, "column": 10}}, {"id": 619, "type": "argument_list", "text": "(ports)", "parent": 617, "children": [620], "start_point": {"row": 246, "column": 11}, "end_point": {"row": 246, "column": 18}}, {"id": 620, "type": "identifier", "text": "ports", "parent": 619, "children": [], "start_point": {"row": 246, "column": 12}, "end_point": {"row": 246, "column": 17}}, {"id": 621, "type": "call_expression", "text": "signal(SIGQUIT, signal_handler)", "parent": 243, "children": [622, 623], "start_point": {"row": 249, "column": 4}, "end_point": {"row": 249, "column": 35}}, {"id": 622, "type": "identifier", "text": "signal", "parent": 621, "children": [], "start_point": {"row": 249, "column": 4}, "end_point": {"row": 249, "column": 10}}, {"id": 623, "type": "argument_list", "text": "(SIGQUIT, signal_handler)", "parent": 621, "children": [624, 625], "start_point": {"row": 249, "column": 10}, "end_point": {"row": 249, "column": 35}}, {"id": 624, "type": "identifier", "text": "SIGQUIT", "parent": 623, "children": [], "start_point": {"row": 249, "column": 11}, "end_point": {"row": 249, "column": 18}}, {"id": 625, "type": "identifier", "text": "signal_handler", "parent": 623, "children": [], "start_point": {"row": 249, "column": 20}, "end_point": {"row": 249, "column": 34}}, {"id": 626, "type": "call_expression", "text": "signal(SIGTERM, signal_handler)", "parent": 243, "children": [627, 628], "start_point": {"row": 250, "column": 1}, "end_point": {"row": 250, "column": 32}}, {"id": 627, "type": "identifier", "text": "signal", "parent": 626, "children": [], "start_point": {"row": 250, "column": 1}, "end_point": {"row": 250, "column": 7}}, {"id": 628, "type": "argument_list", "text": "(SIGTERM, signal_handler)", "parent": 626, "children": [629, 630], "start_point": {"row": 250, "column": 7}, "end_point": {"row": 250, "column": 32}}, {"id": 629, "type": "identifier", "text": "SIGTERM", "parent": 628, "children": [], "start_point": {"row": 250, "column": 8}, "end_point": {"row": 250, "column": 15}}, {"id": 630, "type": "identifier", "text": "signal_handler", "parent": 628, "children": [], "start_point": {"row": 250, "column": 17}, "end_point": {"row": 250, "column": 31}}, {"id": 631, "type": "call_expression", "text": "signal(SIGHUP, signal_handler)", "parent": 243, "children": [632, 633], "start_point": {"row": 251, "column": 1}, "end_point": {"row": 251, "column": 31}}, {"id": 632, "type": "identifier", "text": "signal", "parent": 631, "children": [], "start_point": {"row": 251, "column": 1}, "end_point": {"row": 251, "column": 7}}, {"id": 633, "type": "argument_list", "text": "(SIGHUP, signal_handler)", "parent": 631, "children": [634, 635], "start_point": {"row": 251, "column": 7}, "end_point": {"row": 251, "column": 31}}, {"id": 634, "type": "identifier", "text": "SIGHUP", "parent": 633, "children": [], "start_point": {"row": 251, "column": 8}, "end_point": {"row": 251, "column": 14}}, {"id": 635, "type": "identifier", "text": "signal_handler", "parent": 633, "children": [], "start_point": {"row": 251, "column": 16}, "end_point": {"row": 251, "column": 30}}, {"id": 636, "type": "call_expression", "text": "signal(SIGINT, signal_handler)", "parent": 243, "children": [637, 638], "start_point": {"row": 252, "column": 1}, "end_point": {"row": 252, "column": 31}}, {"id": 637, "type": "identifier", "text": "signal", "parent": 636, "children": [], "start_point": {"row": 252, "column": 1}, "end_point": {"row": 252, "column": 7}}, {"id": 638, "type": "argument_list", "text": "(SIGINT, signal_handler)", "parent": 636, "children": [639, 640], "start_point": {"row": 252, "column": 7}, "end_point": {"row": 252, "column": 31}}, {"id": 639, "type": "identifier", "text": "SIGINT", "parent": 638, "children": [], "start_point": {"row": 252, "column": 8}, "end_point": {"row": 252, "column": 14}}, {"id": 640, "type": "identifier", "text": "signal_handler", "parent": 638, "children": [], "start_point": {"row": 252, "column": 16}, "end_point": {"row": 252, "column": 30}}, {"id": 641, "type": "while_statement", "text": "while (client_state != Exit) {\n\t\tsleep (1);\n\t}", "parent": 243, "children": [642], "start_point": {"row": 256, "column": 1}, "end_point": {"row": 258, "column": 2}}, {"id": 642, "type": "parenthesized_expression", "text": "(client_state != Exit)", "parent": 641, "children": [643], "start_point": {"row": 256, "column": 7}, "end_point": {"row": 256, "column": 29}}, {"id": 643, "type": "binary_expression", "text": "client_state != Exit", "parent": 642, "children": [644, 645, 646], "start_point": {"row": 256, "column": 8}, "end_point": {"row": 256, "column": 28}}, {"id": 644, "type": "identifier", "text": "client_state", "parent": 643, "children": [], "start_point": {"row": 256, "column": 8}, "end_point": {"row": 256, "column": 20}}, {"id": 645, "type": "!=", "text": "!=", "parent": 643, "children": [], "start_point": {"row": 256, "column": 21}, "end_point": {"row": 256, "column": 23}}, {"id": 646, "type": "identifier", "text": "Exit", "parent": 643, "children": [], "start_point": {"row": 256, "column": 24}, "end_point": {"row": 256, "column": 28}}, {"id": 647, "type": "call_expression", "text": "sleep (1)", "parent": 641, "children": [648, 649], "start_point": {"row": 257, "column": 2}, "end_point": {"row": 257, "column": 11}}, {"id": 648, "type": "identifier", "text": "sleep", "parent": 647, "children": [], "start_point": {"row": 257, "column": 2}, "end_point": {"row": 257, "column": 7}}, {"id": 649, "type": "argument_list", "text": "(1)", "parent": 647, "children": [650], "start_point": {"row": 257, "column": 8}, "end_point": {"row": 257, "column": 11}}, {"id": 650, "type": "number_literal", "text": "1", "parent": 649, "children": [], "start_point": {"row": 257, "column": 9}, "end_point": {"row": 257, "column": 10}}, {"id": 651, "type": "call_expression", "text": "jack_client_close (client)", "parent": 243, "children": [652, 653], "start_point": {"row": 260, "column": 1}, "end_point": {"row": 260, "column": 27}}, {"id": 652, "type": "identifier", "text": "jack_client_close", "parent": 651, "children": [], "start_point": {"row": 260, "column": 1}, "end_point": {"row": 260, "column": 18}}, {"id": 653, "type": "argument_list", "text": "(client)", "parent": 651, "children": [654], "start_point": {"row": 260, "column": 19}, "end_point": {"row": 260, "column": 27}}, {"id": 654, "type": "identifier", "text": "client", "parent": 653, "children": [], "start_point": {"row": 260, "column": 20}, "end_point": {"row": 260, "column": 26}}, {"id": 655, "type": "call_expression", "text": "exit (0)", "parent": 243, "children": [656, 657], "start_point": {"row": 261, "column": 1}, "end_point": {"row": 261, "column": 9}}, {"id": 656, "type": "identifier", "text": "exit", "parent": 655, "children": [], "start_point": {"row": 261, "column": 1}, "end_point": {"row": 261, "column": 5}}, {"id": 657, "type": "argument_list", "text": "(0)", "parent": 655, "children": [658], "start_point": {"row": 261, "column": 6}, "end_point": {"row": 261, "column": 9}}, {"id": 658, "type": "number_literal", "text": "0", "parent": 657, "children": [], "start_point": {"row": 261, "column": 7}, "end_point": {"row": 261, "column": 8}}]}, "node_categories": {"declarations": {"functions": [49, 51, 71, 73, 162, 166, 223, 225, 243, 245], "variables": [18, 23, 28, 33, 54, 76, 79, 87, 169, 174, 190, 199, 228, 248, 251, 257, 264, 269, 278, 284], "classes": [], "imports": [0, 1, 3, 4, 6, 7, 9, 10, 12, 13, 15, 16], "modules": [], "enums": [36, 37, 38, 39, 41, 43]}, "statements": {"expressions": [57, 61, 67, 92, 99, 100, 105, 106, 117, 125, 130, 135, 136, 137, 143, 144, 149, 150, 181, 188, 195, 204, 208, 214, 215, 233, 239, 288, 289, 296, 300, 301, 308, 319, 322, 330, 331, 338, 342, 348, 353, 357, 358, 363, 373, 374, 377, 383, 388, 389, 392, 399, 400, 406, 410, 418, 419, 420, 428, 432, 438, 446, 453, 464, 473, 474, 475, 476, 482, 483, 488, 494, 499, 500, 504, 509, 516, 524, 528, 529, 534, 540, 545, 546, 550, 553, 557, 563, 570, 578, 582, 583, 588, 594, 599, 600, 604, 608, 611, 617, 621, 626, 631, 636, 642, 643, 647, 651, 655], "assignments": [110, 114, 122, 154, 293, 305, 311, 316, 335, 345, 403, 450, 461, 513, 567], "loops": [187, 641], "conditionals": [19, 22, 24, 27, 29, 32, 34, 40, 42, 44, 46, 48, 52, 56, 58, 60, 62, 64, 68, 74, 77, 78, 80, 83, 86, 88, 90, 93, 95, 98, 101, 103, 104, 107, 109, 111, 113, 115, 118, 120, 121, 123, 126, 128, 129, 131, 133, 134, 138, 140, 142, 145, 147, 148, 151, 153, 155, 157, 167, 173, 175, 179, 183, 186, 191, 193, 196, 198, 202, 205, 207, 209, 211, 212, 213, 216, 226, 232, 234, 236, 240, 246, 250, 256, 263, 268, 274, 279, 281, 283, 285, 286, 287, 290, 294, 297, 299, 302, 306, 309, 312, 314, 317, 320, 323, 329, 332, 336, 339, 343, 346, 349, 351, 352, 354, 355, 356, 359, 364, 366, 371, 372, 375, 376, 378, 380, 384, 387, 390, 391, 393, 395, 398, 401, 402, 404, 407, 409, 411, 413, 416, 417, 421, 423, 424, 425, 429, 433, 435, 436, 439, 443, 447, 449, 451, 454, 456, 458, 459, 462, 465, 467, 469, 470, 472, 477, 484, 489, 491, 495, 498, 501, 503, 505, 507, 510, 514, 517, 519, 525, 526, 527, 530, 535, 537, 541, 544, 547, 549, 551, 554, 556, 558, 560, 564, 566, 568, 571, 573, 579, 580, 581, 584, 589, 591, 595, 598, 601, 603, 605, 607, 609, 612, 614, 618, 620, 622, 624, 625, 627, 629, 630, 632, 634, 635, 637, 639, 640, 644, 646, 648, 652, 654, 656], "returns": [158, 160, 219, 221], "exceptions": []}, "expressions": {"calls": [], "literals": [2, 5, 8, 11, 14, 17, 65, 70, 159, 161, 189, 218, 220, 222, 237, 242, 292, 298, 304, 310, 324, 325, 334, 340, 367, 368, 369, 381, 386, 396, 414, 427, 431, 437, 441, 442, 444, 457, 460, 468, 471, 492, 497, 508, 512, 538, 543, 552, 561, 592, 597, 610, 615, 650, 658], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [{"node_id": 49, "universal_type": "function", "name": "signal_handler", "text_snippet": "static void signal_handler(int sig)\n{\n\tjack_client_close(client);\n\tfprintf(stderr, \"signal received,"}, {"node_id": 51, "universal_type": "function", "name": "unknown", "text_snippet": "signal_handler(int sig)"}, {"node_id": 71, "universal_type": "function", "name": "_process", "text_snippet": "static int\n_process (jack_nframes_t nframes)\n{\n\tjack_default_audio_sample_t *in, *out;\n\tjack_transpo"}, {"node_id": 73, "universal_type": "function", "name": "unknown", "text_snippet": "_process (jack_nframes_t nframes)"}, {"node_id": 162, "universal_type": "function", "name": "status", "text_snippet": "static void* jack_thread(void *arg)\n{\n\tjack_client_t* client = (jack_client_t*) arg;\n\n\twhile (1) {\n\n"}, {"node_id": 166, "universal_type": "function", "name": "unknown", "text_snippet": "jack_thread(void *arg)"}, {"node_id": 223, "universal_type": "function", "name": "jack_shutdown", "text_snippet": "static void\njack_shutdown (void *arg)\n{\n fprintf(stderr, \"JACK shut down, exiting ...\\n\");\n\texit "}, {"node_id": 225, "universal_type": "function", "name": "unknown", "text_snippet": "jack_shutdown (void *arg)"}, {"node_id": 243, "universal_type": "function", "name": "main", "text_snippet": "int\nmain (int argc, char *argv[])\n{\n\tconst char **ports;\n\tconst char *client_name;\n\tconst char *serv"}, {"node_id": 245, "universal_type": "function", "name": "unknown", "text_snippet": "main (int argc, char *argv[])"}], "class_declarations": [], "import_statements": [{"node_id": 0, "text": "#include <stdio.h>\n"}, {"node_id": 1, "text": "#include"}, {"node_id": 3, "text": "#include <errno.h>\n"}, {"node_id": 4, "text": "#include"}, {"node_id": 6, "text": "#include <unistd.h>\n"}, {"node_id": 7, "text": "#include"}, {"node_id": 9, "text": "#include <stdlib.h>\n"}, {"node_id": 10, "text": "#include"}, {"node_id": 12, "text": "#include <string.h>\n"}, {"node_id": 13, "text": "#include"}, {"node_id": 15, "text": "#include <jack/jack.h>\n"}, {"node_id": 16, "text": "#include"}]}, "original_source_code": "/** @file tw.c\n *\n * @brief This simple client demonstrates the basic features of JACK\n * as they would be used by many applications.\n */\n\n#include <stdio.h>\n#include <errno.h>\n#include <unistd.h>\n#include <stdlib.h>\n#include <string.h>\n\n#include <jack/jack.h>\n\njack_port_t *input_port;\njack_port_t *output_port;\njack_client_t *client;\n\n/* a simple state machine for this client */\nvolatile enum {\n\tInit,\n\tRun,\n\tExit\n} client_state = Init;\n\nstatic void signal_handler(int sig)\n{\n\tjack_client_close(client);\n\tfprintf(stderr, \"signal received, exiting ...\\n\");\n\texit(0);\n}\n\n/**\n * The process callback for this JACK application is called in a\n * special realtime thread once for each audio cycle.\n *\n * This client follows a simple rule: when the JACK transport is\n * running, copy the input port to the output. When it stops, exit.\n */\nstatic int\n_process (jack_nframes_t nframes)\n{\n\tjack_default_audio_sample_t *in, *out;\n\tjack_transport_state_t ts = jack_transport_query(client, NULL);\n\n\tif (ts == JackTransportRolling) {\n\n\t\tif (client_state == Init)\n\t\t\tclient_state = Run;\n\n\t\tin = jack_port_get_buffer (input_port, nframes);\n\t\tout = jack_port_get_buffer (output_port, nframes);\n\t\tmemcpy (out, in,\n\t\t\tsizeof (jack_default_audio_sample_t) * nframes);\n\n\t} else if (ts == JackTransportStopped) {\n\n\t\tif (client_state == Run) {\n\t\t\tclient_state = Exit;\n\t\t\treturn -1; // to stop the thread\n\t\t}\n\t}\n\n\treturn 0;\n}\n\nstatic void* jack_thread(void *arg)\n{\n\tjack_client_t* client = (jack_client_t*) arg;\n\n\twhile (1) {\n\n\t\tjack_nframes_t frames = jack_cycle_wait (client);\n\t\tint status = _process(frames);\n\t\tjack_cycle_signal (client, status);\n\n /*\n Possibly do something else after signaling next clients in the graph\n */\n\n /* End condition */\n if (status != 0)\n return 0;\n\t}\n\n /* not reached*/\n\treturn 0;\n}\n\n/*\nstatic void* jack_thread(void *arg)\n{\n\tjack_client_t* client = (jack_client_t*) arg;\n\n\twhile (1) {\n\t\tjack_nframes_t frames;\n\t\tint status;\n\t\t// cycle 1\n\t\tframes = jack_cycle_wait (client);\n\t\tstatus = _process(frames);\n\t\tjack_cycle_signal (client, status);\n\t\t// cycle 2\n\t\tframes = jack_cycle_wait (client);\n\t\tstatus = _process(frames);\n\t\tjack_cycle_signal (client, status);\n\t\t// cycle 3\n\t\tframes = jack_cycle_wait (client);\n\t\tstatus = _process(frames);\n\t\tjack_cycle_signal (client, status);\n\t\t// cycle 4\n\t\tframes = jack_cycle_wait (client);\n\t\tstatus = _process(frames);\n\t\tjack_cycle_signal (client, status);\n\t}\n\n\treturn 0;\n}\n*/\n\n/**\n * JACK calls this shutdown_callback if the server ever shuts down or\n * decides to disconnect the client.\n */\nstatic void\njack_shutdown (void *arg)\n{\n fprintf(stderr, \"JACK shut down, exiting ...\\n\");\n\texit (1);\n}\n\nint\nmain (int argc, char *argv[])\n{\n\tconst char **ports;\n\tconst char *client_name;\n\tconst char *server_name = NULL;\n\tjack_options_t options = JackNullOption;\n\tjack_status_t status;\n\n\tif (argc >= 2) {\t\t/* client name specified? */\n\t\tclient_name = argv[1];\n\t\tif (argc >= 3) {\t/* server name specified? */\n\t\t\tserver_name = argv[2];\n\t\t\toptions |= JackServerName;\n\t\t}\n\t} else {\t\t\t/* use basename of argv[0] */\n\t\tclient_name = strrchr(argv[0], '/');\n\t\tif (client_name == 0) {\n\t\t\tclient_name = argv[0];\n\t\t} else {\n\t\t\tclient_name++;\n\t\t}\n\t}\n\n\t/* open a client connection to the JACK server */\n\n\tclient = jack_client_open (client_name, options, &status, server_name);\n\tif (client == NULL) {\n\t\tfprintf (stderr, \"jack_client_open() failed, \"\n\t\t\t \"status = 0x%2.0x\\n\", status);\n\t\tif (status & JackServerFailed) {\n\t\t\tfprintf (stderr, \"Unable to connect to JACK server\\n\");\n\t\t}\n\t\texit (1);\n\t}\n\tif (status & JackServerStarted) {\n\t\tfprintf (stderr, \"JACK server started\\n\");\n\t}\n\tif (status & JackNameNotUnique) {\n\t\tclient_name = jack_get_client_name(client);\n\t\tfprintf (stderr, \"unique name `%s' assigned\\n\", client_name);\n\t}\n\n\t/* tell the JACK server to call `process()' whenever\n\t there is work to be done.\n\t*/\n if (jack_set_process_thread(client, jack_thread, client) < 0)\n\t\texit(1);\n\n\t/* tell the JACK server to call `jack_shutdown()' if\n\t it ever shuts down, either entirely, or if it\n\t just decides to stop calling us.\n\t*/\n\n\tjack_on_shutdown (client, jack_shutdown, 0);\n\n\t/* display the current sample rate.\n\t */\n\n\tprintf (\"engine sample rate: %\" PRIu32 \"\\n\",\n\t\tjack_get_sample_rate (client));\n\n\t/* create two ports */\n\n\tinput_port = jack_port_register (client, \"input\",\n\t\t\t\t\t JACK_DEFAULT_AUDIO_TYPE,\n\t\t\t\t\t JackPortIsInput, 0);\n\toutput_port = jack_port_register (client, \"output\",\n\t\t\t\t\t JACK_DEFAULT_AUDIO_TYPE,\n\t\t\t\t\t JackPortIsOutput, 0);\n\n\tif ((input_port == NULL) || (output_port == NULL)) {\n\t\tfprintf(stderr, \"no more JACK ports available\\n\");\n\t\texit (1);\n\t}\n\n\t/* Tell the JACK server that we are ready to roll. Our\n\t * process() callback will start running now. */\n\n\tif (jack_activate (client)) {\n\t\tfprintf (stderr, \"cannot activate client\");\n\t\texit (1);\n\t}\n\n\t/* Connect the ports. You can't do this before the client is\n\t * activated, because we can't make connections to clients\n\t * that aren't running. Note the confusing (but necessary)\n\t * orientation of the driver backend ports: playback ports are\n\t * \"input\" to the backend, and capture ports are \"output\" from\n\t * it.\n\t */\n\n\tports = jack_get_ports (client, NULL, NULL,\n\t\t\t\tJackPortIsPhysical|JackPortIsOutput);\n\tif (ports == NULL) {\n\t\tfprintf(stderr, \"no physical capture ports\\n\");\n\t\texit (1);\n\t}\n\n\tif (jack_connect (client, ports[0], jack_port_name (input_port))) {\n\t\tfprintf (stderr, \"cannot connect input ports\\n\");\n\t}\n\n\tjack_free (ports);\n\n\tports = jack_get_ports (client, NULL, NULL,\n\t\t\t\tJackPortIsPhysical|JackPortIsInput);\n\tif (ports == NULL) {\n\t\tfprintf(stderr, \"no physical playback ports\\n\");\n\t\texit (1);\n\t}\n\n\tif (jack_connect (client, jack_port_name (output_port), ports[0])) {\n\t\tfprintf (stderr, \"cannot connect output ports\\n\");\n\t}\n\n\tjack_free (ports);\n\n /* install a signal handler to properly quits jack client */\n signal(SIGQUIT, signal_handler);\n\tsignal(SIGTERM, signal_handler);\n\tsignal(SIGHUP, signal_handler);\n\tsignal(SIGINT, signal_handler);\n\n\t/* keep running until the transport stops */\n\n\twhile (client_state != Exit) {\n\t\tsleep (1);\n\t}\n\n\tjack_client_close (client);\n\texit (0);\n}\n"}
80,099